-
Notifications
You must be signed in to change notification settings - Fork 0
/
mud.config.ts
96 lines (94 loc) · 2.44 KB
/
mud.config.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import { mudConfig } from "@latticexyz/world/register";
export default mudConfig({
systems: {
ClaimSystem: {
openAccess: true
},
HelperSystem: {
openAccess: true,
},
RegisterSystem: {
openAccess: true,
},
YonkSystem: {
openAccess: true,
},
},
tables: {
ERC20Address: {
keySchema: {},
valueSchema: {
value: "address",
},
},
EphemeralOwnerAddress: {
keySchema: {id: "uint64"},
valueSchema: {
value: "address",
},
},
InverseEphemeralOwnerAddress: {
keySchema: { value: "address" },
valueSchema: {
id: "uint64",
},
},
Id: {
keySchema: {},
valueSchema: {
value: "uint64",
},
},
Registration: {
keySchema: { id: "uint64" },
valueSchema: {
devicePublicKeyX: "uint256",
devicePublicKeyY: "uint256",
},
},
RegisteredAddress: {
keySchema: { id: "uint64" },
valueSchema: {
value: "address",
},
},
InverseRegisteredAddress: {
keySchema: { value: "address" },
valueSchema: {
id: "uint64",
},
},
Yonk: {
keySchema: { id: "uint64" },
valueSchema: {
dataCommitment: "bytes32",
startValue: "uint256",
endValue: "uint256",
lifeSeconds: "uint256",
startTimestamp: "uint256",
from: "uint64",
to: "uint64",
claimed: "bool",
reclaimed: "bool",
isToEphemeralOwner: "bool",
},
},
ClaimEvent: {
keySchema: {id : "uint64"},
valueSchema: {
claimedValue: "uint256",
returnedValue: "uint256",
timestamp: "uint256",
},
offchainOnly: true,
},
ReclaimEvent: {
keySchema: {id : "uint64"},
valueSchema: {
timestamp: "uint256",
returnedValue: "uint256",
},
offchainOnly: true,
}
}
});