File tree 1 file changed +17
-6
lines changed
packages/world-module-erc20-own-store
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { defineWorld } from "@latticexyz/world" ;
2
2
3
3
export default defineWorld ( {
4
- namespace : "erc20" ,
4
+ namespace : "erc20-own-store " ,
5
5
tables : {
6
6
MUDERC20 : {
7
7
schema : {
8
8
totalSupply : "uint256" ,
9
9
id : "bytes32" ,
10
- _name : "string" ,
11
- _symbol : "string" ,
10
+ name : "string" ,
11
+ symbol : "string" ,
12
12
} ,
13
13
key : [ "id" ] ,
14
+ codegen : {
15
+ outputDirectory : "./tables" ,
16
+ tableIdArgument : true ,
17
+ } ,
14
18
} ,
15
- BALANCES : {
19
+ Balances : {
16
20
schema : {
17
21
account : "address" ,
18
22
balance : "uint256" ,
19
23
} ,
20
24
key : [ "account" ] ,
25
+ codegen : {
26
+ outputDirectory : "./tables" ,
27
+ } ,
21
28
} ,
22
- APPROVALS : {
29
+ Allowances : {
23
30
schema : {
24
31
account : "address" ,
32
+ spender : "address" ,
25
33
approval : "uint256" ,
26
34
} ,
27
- key : [ "account" ] ,
35
+ key : [ "account" , "spender" ] ,
36
+ codegen : {
37
+ outputDirectory : "./tables" ,
38
+ } ,
28
39
} ,
29
40
} ,
30
41
} ) ;
You can’t perform that action at this time.
0 commit comments