Skip to content

Commit b44c3ab

Browse files
committed
add mud config
1 parent 2d4e264 commit b44c3ab

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
11
import { defineWorld } from "@latticexyz/world";
22

33
export default defineWorld({
4-
namespace: "erc20",
4+
namespace: "erc20-own-store",
55
tables: {
66
MUDERC20: {
77
schema: {
88
totalSupply: "uint256",
99
id: "bytes32",
10-
_name: "string",
11-
_symbol: "string",
10+
name: "string",
11+
symbol: "string",
1212
},
1313
key: ["id"],
14+
codegen: {
15+
outputDirectory: "./tables",
16+
tableIdArgument: true,
17+
},
1418
},
15-
BALANCES: {
19+
Balances: {
1620
schema: {
1721
account: "address",
1822
balance: "uint256",
1923
},
2024
key: ["account"],
25+
codegen: {
26+
outputDirectory: "./tables",
27+
},
2128
},
22-
APPROVALS: {
29+
Allowances: {
2330
schema: {
2431
account: "address",
32+
spender: "address",
2533
approval: "uint256",
2634
},
27-
key: ["account"],
35+
key: ["account", "spender"],
36+
codegen: {
37+
outputDirectory: "./tables",
38+
},
2839
},
2940
},
3041
});

0 commit comments

Comments
 (0)