Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(create-mud): use new sync packages #1214

Merged
merged 83 commits into from
Aug 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
6bc4dcd
migrate vanilla template to new sync stack
holic Jul 31, 2023
960300d
update types
holic Jul 31, 2023
9858d12
simplify
holic Jul 31, 2023
97f8a3c
migrate react client
holic Jul 31, 2023
8d7b706
migrate threejs
holic Jul 31, 2023
35c175c
migrate phaser template
holic Jul 31, 2023
5eb8bf1
update phaser example
holic Jul 31, 2023
b29a6fc
migrate example react
holic Jul 31, 2023
c6761eb
migrate example vanilla
holic Jul 31, 2023
fffdb10
start migrating e2e
holic Jul 31, 2023
d79c9d7
fix type
holic Jul 31, 2023
272cd6a
regen components
holic Aug 1, 2023
6cf4c1b
e2e wip
holic Aug 1, 2023
9f055af
fix node warning
holic Aug 1, 2023
07e9780
more wip
holic Aug 1, 2023
a5428f7
some e2e fixes
alvrs Aug 1, 2023
68f18ec
fix tests
holic Aug 2, 2023
9d9e5b4
removed unused method
holic Aug 2, 2023
3bf4eb8
make e2e tests work
holic Aug 2, 2023
0cb6cd9
bump timeout
holic Aug 2, 2023
7a150f6
disable that for now
holic Aug 2, 2023
0c34c1e
maybe fix tests
holic Aug 2, 2023
447c805
latestBlockNumberProcessed -> lastBlockNumberProcessed
holic Aug 2, 2023
89a711e
Merge remote-tracking branch 'origin/main' into holic/template-sync-s…
holic Aug 4, 2023
0db5373
update singleton entity
holic Aug 4, 2023
6bb33d8
attempt to override gas with custom transport and chain formatter
holic Aug 4, 2023
212c78c
nope, custom account doesn't work either
holic Aug 4, 2023
a0235f1
get zero fees working
holic Aug 4, 2023
08023c9
update templates etc
holic Aug 4, 2023
e46787c
bump es target
holic Aug 4, 2023
917c6d9
remove dupe keys after merge
holic Aug 4, 2023
490700f
Merge remote-tracking branch 'origin/main' into holic/template-sync-s…
holic Aug 4, 2023
f05eb13
Create tame-lemons-play.md
holic Aug 4, 2023
18b1476
a few more updates
holic Aug 4, 2023
c8b7cbd
Update tame-lemons-play.md
holic Aug 4, 2023
2b2a474
Update tame-lemons-play.md
holic Aug 4, 2023
8f5eff7
prettier
holic Aug 4, 2023
ba6f360
Update tame-lemons-play.md
holic Aug 7, 2023
f90031f
remove anvil.db before starting indexer
alvrs Aug 7, 2023
15c7ec3
Merge branch 'main' into holic/template-sync-stack
alvrs Aug 7, 2023
8a9a760
rework sqlite file handling
holic Aug 7, 2023
910eb24
rebuild recs components
holic Aug 7, 2023
a1d300f
fix start command
holic Aug 7, 2023
6840edb
I don't think this will help
holic Aug 7, 2023
3dceee3
console.log the indexer failures for playwright
holic Aug 7, 2023
eecfbad
move things around a bit
holic Aug 7, 2023
00b9b6c
log initial state
holic Aug 7, 2023
cb70bb8
this feels better
holic Aug 7, 2023
d463df2
Revert "log initial state"
holic Aug 7, 2023
eeb0a17
clean up
holic Aug 7, 2023
de05378
Update tame-lemons-play.md
holic Aug 7, 2023
39d160e
truncate instead of rm
alvrs Aug 7, 2023
08cbfb9
consolidate client config
holic Aug 7, 2023
2a44ceb
use anvil.js
holic Aug 7, 2023
81cb59e
don't use ws
holic Aug 7, 2023
f4defdb
get anvil.js working
holic Aug 8, 2023
7c1d06d
fix indexer shutdown
holic Aug 8, 2023
1b1e190
try our own exit tracking
holic Aug 8, 2023
05dc486
try an indexer instance per test
holic Aug 8, 2023
0666626
small bit of clean up
holic Aug 8, 2023
8d907e2
wip mud contract wrapper
holic Aug 8, 2023
063ea59
wip contract wrapper with nonce handling
holic Aug 8, 2023
2014146
add todo
holic Aug 8, 2023
9bb6c27
Merge remote-tracking branch 'origin/main' into holic/template-sync-s…
holic Aug 8, 2023
e89b317
clean up
holic Aug 8, 2023
891549a
throw on non-nonce issues
holic Aug 8, 2023
8a989d1
move getTableIds
holic Aug 9, 2023
cf7474c
simulate before write so we know when to increment nonce
holic Aug 9, 2023
397b8c7
deprecate/move TableId utils, replace with pure functions
holic Aug 9, 2023
945d75c
rename new utils
holic Aug 9, 2023
4f192b1
fix export
holic Aug 9, 2023
51a8017
missed an import
holic Aug 9, 2023
48ddd5a
Merge remote-tracking branch 'origin/main' into holic/template-sync-s…
holic Aug 9, 2023
8b9ede7
Merge remote-tracking branch 'origin/main' into holic/template-sync-s…
holic Aug 9, 2023
cf8aef2
revert changeset
holic Aug 9, 2023
0a810f5
update changeset
holic Aug 9, 2023
090b008
getContract -> createContract
holic Aug 9, 2023
051c510
move zero gas fee
holic Aug 9, 2023
2e270d1
move UnionOmit
holic Aug 9, 2023
f13d6d6
Merge remote-tracking branch 'origin/main' into holic/template-sync-s…
holic Aug 9, 2023
afe9613
don't need this anymore
holic Aug 9, 2023
575748e
Update .changeset/tame-lemons-play.md
holic Aug 9, 2023
d4984cc
Update tame-lemons-play.md
holic Aug 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rebuild recs components
holic committed Aug 7, 2023
commit 910eb2406f7394f731de199f387d6a11324dbf11
Original file line number Diff line number Diff line change
@@ -8,60 +8,54 @@ import {

export function defineContractComponents(world: World) {
return {
CounterTable: (() => {
return defineComponent(
world,
{
value: RecsType.Number,
CounterTable: defineComponent(
world,
{
value: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: {},
valueSchema: { value: "uint32" },
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: {},
valueSchema: { value: "uint32" },
},
} as const
);
})(),
MessageTable: (() => {
return defineComponent(
world,
{
value: RecsType.String,
} as const
),
MessageTable: defineComponent(
world,
{
value: RecsType.String,
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
} as const
),
Inventory: defineComponent(
world,
{
amount: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
} as const
);
})(),
Inventory: (() => {
return defineComponent(
world,
{
amount: RecsType.Number,
valueSchema: { amount: "uint32" },
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
valueSchema: { amount: "uint32" },
},
} as const
);
})(),
} as const
),
};
}
Original file line number Diff line number Diff line change
@@ -8,60 +8,54 @@ import {

export function defineContractComponents(world: World) {
return {
CounterTable: (() => {
return defineComponent(
world,
{
value: RecsType.Number,
CounterTable: defineComponent(
world,
{
value: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: {},
valueSchema: { value: "uint32" },
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: {},
valueSchema: { value: "uint32" },
},
} as const
);
})(),
MessageTable: (() => {
return defineComponent(
world,
{
value: RecsType.String,
} as const
),
MessageTable: defineComponent(
world,
{
value: RecsType.String,
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
} as const
),
Inventory: defineComponent(
world,
{
amount: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
} as const
);
})(),
Inventory: (() => {
return defineComponent(
world,
{
amount: RecsType.Number,
valueSchema: { amount: "uint32" },
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
valueSchema: { amount: "uint32" },
},
} as const
);
})(),
} as const
),
};
}
Original file line number Diff line number Diff line change
@@ -8,60 +8,54 @@ import {

export function defineContractComponents(world: World) {
return {
CounterTable: (() => {
return defineComponent(
world,
{
value: RecsType.Number,
CounterTable: defineComponent(
world,
{
value: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: {},
valueSchema: { value: "uint32" },
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: {},
valueSchema: { value: "uint32" },
},
} as const
);
})(),
MessageTable: (() => {
return defineComponent(
world,
{
value: RecsType.String,
} as const
),
MessageTable: defineComponent(
world,
{
value: RecsType.String,
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
} as const
),
Inventory: defineComponent(
world,
{
amount: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
} as const
);
})(),
Inventory: (() => {
return defineComponent(
world,
{
amount: RecsType.Number,
valueSchema: { amount: "uint32" },
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
valueSchema: { amount: "uint32" },
},
} as const
);
})(),
} as const
),
};
}