/
contractComponents.ts
67 lines (65 loc) · 1.65 KB
/
contractComponents.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* Autogenerated file. Do not edit manually. */
import {
defineComponent,
Type as RecsType,
type World,
} from "@latticexyz/recs";
export function defineContractComponents(world: World) {
return {
CounterTable: (() => {
return defineComponent(
world,
{
value: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000436f756e7465725461626c6500000000",
metadata: {
componentName: "CounterTable",
tableName: ":CounterTable",
keySchema: { key: "bytes32" },
valueSchema: { value: "uint32" },
},
} as const
);
})(),
MessageTable: (() => {
return defineComponent(
world,
{
value: RecsType.String,
},
{
id: "0x000000000000000000000000000000004d6573736167655461626c6500000000",
metadata: {
componentName: "MessageTable",
tableName: ":MessageTable",
keySchema: {},
valueSchema: { value: "string" },
},
} as const
);
})(),
Inventory: (() => {
return defineComponent(
world,
{
amount: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000496e76656e746f727900000000000000",
metadata: {
componentName: "Inventory",
tableName: ":Inventory",
keySchema: {
owner: "address",
item: "uint32",
itemVariant: "uint32",
},
valueSchema: { amount: "uint32" },
},
} as const
);
})(),
};
}