@latticexyz/world-modules 2.0.0-next.10 → 2.0.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/out/AccessControl.sol/AccessControl.abi.json +1 -0
  2. package/out/AccessControl.sol/AccessControl.json +1651 -0
  3. package/out/ArrayLib.sol/ArrayLib.json +477 -477
  4. package/out/Balances.sol/Balances.abi.json +1 -0
  5. package/out/Balances.sol/Balances.json +13002 -0
  6. package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +354 -354
  7. package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
  8. package/out/DelegationControl.sol/DelegationControl.json +139 -139
  9. package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
  10. package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
  11. package/out/Hooks.sol/Hooks.json +45 -45
  12. package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +18 -18
  13. package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
  14. package/out/IBaseWorld.sol/IBaseWorld.json +85 -85
  15. package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
  16. package/out/IDelegationControl.sol/IDelegationControl.json +11 -11
  17. package/out/ISystemHook.sol/ISystemHook.json +16 -16
  18. package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
  19. package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
  20. package/out/IWorldKernel.sol/IWorldCall.json +14 -14
  21. package/out/IWorldKernel.sol/IWorldKernel.json +14 -14
  22. package/out/IWorldKernel.sol/IWorldModuleInstallation.json +14 -14
  23. package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +43 -43
  24. package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
  25. package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
  26. package/out/KeysInTableModule.sol/KeysInTableModule.json +842 -842
  27. package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
  28. package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1561 -1561
  29. package/out/KeysWithValueModule.sol/KeysWithValueModule.json +654 -654
  30. package/out/Module.sol/Module.json +119 -119
  31. package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
  32. package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
  33. package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
  34. package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
  35. package/out/ResourceIds.sol/ResourceIds.json +45 -45
  36. package/out/Schema.sol/SchemaInstance.json +30 -30
  37. package/out/Schema.sol/SchemaLib.json +30 -30
  38. package/out/SchemaType.sol/SchemaType.json +729 -729
  39. package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +452 -452
  40. package/out/StoreHook.sol/StoreHook.json +639 -639
  41. package/out/StoreHooks.sol/StoreHooks.json +45 -45
  42. package/out/System.sol/System.json +32 -32
  43. package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
  44. package/out/SystemHooks.sol/SystemHooks.json +32460 -0
  45. package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
  46. package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
  47. package/out/Systems.sol/Systems.abi.json +1 -0
  48. package/out/Systems.sol/Systems.json +18508 -0
  49. package/out/Tables.sol/Tables.json +73 -73
  50. package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +187 -187
  51. package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
  52. package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
  53. package/out/UniqueEntityModule.sol/UniqueEntityModule.json +486 -486
  54. package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +132 -132
  55. package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
  56. package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
  57. package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
  58. package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
  59. package/out/WorldResourceId.sol/WorldResourceIdInstance.json +107 -107
  60. package/out/WorldResourceId.sol/WorldResourceIdLib.json +107 -107
  61. package/out/constants.sol/constants.json +477 -194
  62. package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
  63. package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
  64. package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
  65. package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
  66. package/out/hasKey.sol/hasKey.json +215 -215
  67. package/out/index.sol/index.json +73 -73
  68. package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +175 -175
  69. package/out/query.sol/query.json +1892 -1892
  70. package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
  71. package/out/src/Bytes.sol/Bytes.json +3766 -3766
  72. package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
  73. package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
  74. package/out/src/Hook.sol/HookInstance.abi.json +1 -0
  75. package/out/src/Hook.sol/HookInstance.json +2823 -0
  76. package/out/src/Hook.sol/HookLib.abi.json +1 -0
  77. package/out/src/Hook.sol/HookLib.json +2823 -0
  78. package/out/src/IStore.sol/IStore.json +73 -73
  79. package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
  80. package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
  81. package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
  82. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
  83. package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
  84. package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
  85. package/out/src/IWorldKernel.sol/IWorldCall.json +262 -262
  86. package/out/src/IWorldKernel.sol/IWorldKernel.json +262 -262
  87. package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +262 -262
  88. package/out/src/Memory.sol/Memory.json +242 -242
  89. package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
  90. package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
  91. package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
  92. package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
  93. package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
  94. package/out/src/Schema.sol/SchemaLib.json +1351 -1351
  95. package/out/src/Slice.sol/SliceInstance.json +802 -802
  96. package/out/src/Slice.sol/SliceLib.json +802 -802
  97. package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
  98. package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
  99. package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
  100. package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
  101. package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
  102. package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
  103. package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +813 -813
  104. package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +813 -813
  105. package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
  106. package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
  107. package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
  108. package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
  109. package/out/tables/Tables.sol/Tables.json +12189 -12189
  110. package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
  111. package/out/types.sol/types.json +71 -71
  112. package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
  113. package/package.json +8 -8
  114. package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
  115. package/src/utils/SystemSwitch.sol +82 -0
@@ -10,22 +10,22 @@
10
10
  },
11
11
  "ast": {
12
12
  "absolutePath": "node_modules/@latticexyz/store/src/storeResourceTypes.sol",
13
- "id": 36671,
13
+ "id": 39205,
14
14
  "exportedSymbols": {
15
15
  "RESOURCE_OFFCHAIN_TABLE": [
16
- 36670
16
+ 39204
17
17
  ],
18
18
  "RESOURCE_TABLE": [
19
- 36666
19
+ 39200
20
20
  ]
21
21
  },
22
22
  "nodeType": "SourceUnit",
23
- "src": "32:417:82",
23
+ "src": "32:417:84",
24
24
  "nodes": [
25
25
  {
26
- "id": 36662,
26
+ "id": 39196,
27
27
  "nodeType": "PragmaDirective",
28
- "src": "32:25:82",
28
+ "src": "32:25:84",
29
29
  "nodes": [],
30
30
  "literals": [
31
31
  "solidity",
@@ -35,15 +35,15 @@
35
35
  ]
36
36
  },
37
37
  {
38
- "id": 36666,
38
+ "id": 39200,
39
39
  "nodeType": "VariableDeclaration",
40
- "src": "309:37:82",
40
+ "src": "309:37:84",
41
41
  "nodes": [],
42
42
  "constant": true,
43
43
  "mutability": "constant",
44
44
  "name": "RESOURCE_TABLE",
45
- "nameLocation": "325:14:82",
46
- "scope": 36671,
45
+ "nameLocation": "325:14:84",
46
+ "scope": 39205,
47
47
  "stateVariable": false,
48
48
  "storageLocation": "default",
49
49
  "typeDescriptions": {
@@ -51,10 +51,10 @@
51
51
  "typeString": "bytes2"
52
52
  },
53
53
  "typeName": {
54
- "id": 36664,
54
+ "id": 39198,
55
55
  "name": "bytes2",
56
56
  "nodeType": "ElementaryTypeName",
57
- "src": "309:6:82",
57
+ "src": "309:6:84",
58
58
  "typeDescriptions": {
59
59
  "typeIdentifier": "t_bytes2",
60
60
  "typeString": "bytes2"
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "value": {
64
64
  "hexValue": "7462",
65
- "id": 36665,
65
+ "id": 39199,
66
66
  "isConstant": false,
67
67
  "isLValue": false,
68
68
  "isPure": true,
69
69
  "kind": "string",
70
70
  "lValueRequested": false,
71
71
  "nodeType": "Literal",
72
- "src": "342:4:82",
72
+ "src": "342:4:84",
73
73
  "typeDescriptions": {
74
74
  "typeIdentifier": "t_stringliteral_2247cf150cccbcd7e60e84d03accbfaaa19844b686b28ba6fef474fca5fe0879",
75
75
  "typeString": "literal_string \"tb\""
@@ -79,15 +79,15 @@
79
79
  "visibility": "internal"
80
80
  },
81
81
  {
82
- "id": 36670,
82
+ "id": 39204,
83
83
  "nodeType": "VariableDeclaration",
84
- "src": "401:46:82",
84
+ "src": "401:46:84",
85
85
  "nodes": [],
86
86
  "constant": true,
87
87
  "mutability": "constant",
88
88
  "name": "RESOURCE_OFFCHAIN_TABLE",
89
- "nameLocation": "417:23:82",
90
- "scope": 36671,
89
+ "nameLocation": "417:23:84",
90
+ "scope": 39205,
91
91
  "stateVariable": false,
92
92
  "storageLocation": "default",
93
93
  "typeDescriptions": {
@@ -95,10 +95,10 @@
95
95
  "typeString": "bytes2"
96
96
  },
97
97
  "typeName": {
98
- "id": 36668,
98
+ "id": 39202,
99
99
  "name": "bytes2",
100
100
  "nodeType": "ElementaryTypeName",
101
- "src": "401:6:82",
101
+ "src": "401:6:84",
102
102
  "typeDescriptions": {
103
103
  "typeIdentifier": "t_bytes2",
104
104
  "typeString": "bytes2"
@@ -106,14 +106,14 @@
106
106
  },
107
107
  "value": {
108
108
  "hexValue": "6f74",
109
- "id": 36669,
109
+ "id": 39203,
110
110
  "isConstant": false,
111
111
  "isLValue": false,
112
112
  "isPure": true,
113
113
  "kind": "string",
114
114
  "lValueRequested": false,
115
115
  "nodeType": "Literal",
116
- "src": "443:4:82",
116
+ "src": "443:4:84",
117
117
  "typeDescriptions": {
118
118
  "typeIdentifier": "t_stringliteral_0ee56aa7ffcb81cfd943c08888441a893adff32a8fba66dcd1320d38c11d602a",
119
119
  "typeString": "literal_string \"ot\""
@@ -125,5 +125,5 @@
125
125
  ],
126
126
  "license": "MIT"
127
127
  },
128
- "id": 82
128
+ "id": 84
129
129
  }
@@ -0,0 +1,270 @@
1
+ {
2
+ "abi": [],
3
+ "bytecode": {
4
+ "object": "0x",
5
+ "linkReferences": {}
6
+ },
7
+ "deployedBytecode": {
8
+ "object": "0x",
9
+ "linkReferences": {}
10
+ },
11
+ "ast": {
12
+ "absolutePath": "node_modules/@latticexyz/world/src/systemHookTypes.sol",
13
+ "id": 49028,
14
+ "exportedSymbols": {
15
+ "AFTER_CALL_SYSTEM": [
16
+ 49021
17
+ ],
18
+ "ALL": [
19
+ 49027
20
+ ],
21
+ "BEFORE_CALL_SYSTEM": [
22
+ 49015
23
+ ]
24
+ },
25
+ "nodeType": "SourceUnit",
26
+ "src": "32:687:118",
27
+ "nodes": [
28
+ {
29
+ "id": 49009,
30
+ "nodeType": "PragmaDirective",
31
+ "src": "32:25:118",
32
+ "nodes": [],
33
+ "literals": [
34
+ "solidity",
35
+ ">=",
36
+ "0.8",
37
+ ".21"
38
+ ]
39
+ },
40
+ {
41
+ "id": 49015,
42
+ "nodeType": "VariableDeclaration",
43
+ "src": "356:42:118",
44
+ "nodes": [],
45
+ "constant": true,
46
+ "mutability": "constant",
47
+ "name": "BEFORE_CALL_SYSTEM",
48
+ "nameLocation": "371:18:118",
49
+ "scope": 49028,
50
+ "stateVariable": false,
51
+ "storageLocation": "default",
52
+ "typeDescriptions": {
53
+ "typeIdentifier": "t_uint8",
54
+ "typeString": "uint8"
55
+ },
56
+ "typeName": {
57
+ "id": 49011,
58
+ "name": "uint8",
59
+ "nodeType": "ElementaryTypeName",
60
+ "src": "356:5:118",
61
+ "typeDescriptions": {
62
+ "typeIdentifier": "t_uint8",
63
+ "typeString": "uint8"
64
+ }
65
+ },
66
+ "value": {
67
+ "commonType": {
68
+ "typeIdentifier": "t_rational_1_by_1",
69
+ "typeString": "int_const 1"
70
+ },
71
+ "id": 49014,
72
+ "isConstant": false,
73
+ "isLValue": false,
74
+ "isPure": true,
75
+ "lValueRequested": false,
76
+ "leftExpression": {
77
+ "hexValue": "31",
78
+ "id": 49012,
79
+ "isConstant": false,
80
+ "isLValue": false,
81
+ "isPure": true,
82
+ "kind": "number",
83
+ "lValueRequested": false,
84
+ "nodeType": "Literal",
85
+ "src": "392:1:118",
86
+ "typeDescriptions": {
87
+ "typeIdentifier": "t_rational_1_by_1",
88
+ "typeString": "int_const 1"
89
+ },
90
+ "value": "1"
91
+ },
92
+ "nodeType": "BinaryOperation",
93
+ "operator": "<<",
94
+ "rightExpression": {
95
+ "hexValue": "30",
96
+ "id": 49013,
97
+ "isConstant": false,
98
+ "isLValue": false,
99
+ "isPure": true,
100
+ "kind": "number",
101
+ "lValueRequested": false,
102
+ "nodeType": "Literal",
103
+ "src": "397:1:118",
104
+ "typeDescriptions": {
105
+ "typeIdentifier": "t_rational_0_by_1",
106
+ "typeString": "int_const 0"
107
+ },
108
+ "value": "0"
109
+ },
110
+ "src": "392:6:118",
111
+ "typeDescriptions": {
112
+ "typeIdentifier": "t_rational_1_by_1",
113
+ "typeString": "int_const 1"
114
+ }
115
+ },
116
+ "visibility": "internal"
117
+ },
118
+ {
119
+ "id": 49021,
120
+ "nodeType": "VariableDeclaration",
121
+ "src": "485:41:118",
122
+ "nodes": [],
123
+ "constant": true,
124
+ "mutability": "constant",
125
+ "name": "AFTER_CALL_SYSTEM",
126
+ "nameLocation": "500:17:118",
127
+ "scope": 49028,
128
+ "stateVariable": false,
129
+ "storageLocation": "default",
130
+ "typeDescriptions": {
131
+ "typeIdentifier": "t_uint8",
132
+ "typeString": "uint8"
133
+ },
134
+ "typeName": {
135
+ "id": 49017,
136
+ "name": "uint8",
137
+ "nodeType": "ElementaryTypeName",
138
+ "src": "485:5:118",
139
+ "typeDescriptions": {
140
+ "typeIdentifier": "t_uint8",
141
+ "typeString": "uint8"
142
+ }
143
+ },
144
+ "value": {
145
+ "commonType": {
146
+ "typeIdentifier": "t_rational_2_by_1",
147
+ "typeString": "int_const 2"
148
+ },
149
+ "id": 49020,
150
+ "isConstant": false,
151
+ "isLValue": false,
152
+ "isPure": true,
153
+ "lValueRequested": false,
154
+ "leftExpression": {
155
+ "hexValue": "31",
156
+ "id": 49018,
157
+ "isConstant": false,
158
+ "isLValue": false,
159
+ "isPure": true,
160
+ "kind": "number",
161
+ "lValueRequested": false,
162
+ "nodeType": "Literal",
163
+ "src": "520:1:118",
164
+ "typeDescriptions": {
165
+ "typeIdentifier": "t_rational_1_by_1",
166
+ "typeString": "int_const 1"
167
+ },
168
+ "value": "1"
169
+ },
170
+ "nodeType": "BinaryOperation",
171
+ "operator": "<<",
172
+ "rightExpression": {
173
+ "hexValue": "31",
174
+ "id": 49019,
175
+ "isConstant": false,
176
+ "isLValue": false,
177
+ "isPure": true,
178
+ "kind": "number",
179
+ "lValueRequested": false,
180
+ "nodeType": "Literal",
181
+ "src": "525:1:118",
182
+ "typeDescriptions": {
183
+ "typeIdentifier": "t_rational_1_by_1",
184
+ "typeString": "int_const 1"
185
+ },
186
+ "value": "1"
187
+ },
188
+ "src": "520:6:118",
189
+ "typeDescriptions": {
190
+ "typeIdentifier": "t_rational_2_by_1",
191
+ "typeString": "int_const 2"
192
+ }
193
+ },
194
+ "visibility": "internal"
195
+ },
196
+ {
197
+ "id": 49027,
198
+ "nodeType": "VariableDeclaration",
199
+ "src": "658:59:118",
200
+ "nodes": [],
201
+ "constant": true,
202
+ "mutability": "constant",
203
+ "name": "ALL",
204
+ "nameLocation": "673:3:118",
205
+ "scope": 49028,
206
+ "stateVariable": false,
207
+ "storageLocation": "default",
208
+ "typeDescriptions": {
209
+ "typeIdentifier": "t_uint8",
210
+ "typeString": "uint8"
211
+ },
212
+ "typeName": {
213
+ "id": 49023,
214
+ "name": "uint8",
215
+ "nodeType": "ElementaryTypeName",
216
+ "src": "658:5:118",
217
+ "typeDescriptions": {
218
+ "typeIdentifier": "t_uint8",
219
+ "typeString": "uint8"
220
+ }
221
+ },
222
+ "value": {
223
+ "commonType": {
224
+ "typeIdentifier": "t_uint8",
225
+ "typeString": "uint8"
226
+ },
227
+ "id": 49026,
228
+ "isConstant": false,
229
+ "isLValue": false,
230
+ "isPure": true,
231
+ "lValueRequested": false,
232
+ "leftExpression": {
233
+ "id": 49024,
234
+ "name": "BEFORE_CALL_SYSTEM",
235
+ "nodeType": "Identifier",
236
+ "overloadedDeclarations": [],
237
+ "referencedDeclaration": 49015,
238
+ "src": "679:18:118",
239
+ "typeDescriptions": {
240
+ "typeIdentifier": "t_uint8",
241
+ "typeString": "uint8"
242
+ }
243
+ },
244
+ "nodeType": "BinaryOperation",
245
+ "operator": "|",
246
+ "rightExpression": {
247
+ "id": 49025,
248
+ "name": "AFTER_CALL_SYSTEM",
249
+ "nodeType": "Identifier",
250
+ "overloadedDeclarations": [],
251
+ "referencedDeclaration": 49021,
252
+ "src": "700:17:118",
253
+ "typeDescriptions": {
254
+ "typeIdentifier": "t_uint8",
255
+ "typeString": "uint8"
256
+ }
257
+ },
258
+ "src": "679:38:118",
259
+ "typeDescriptions": {
260
+ "typeIdentifier": "t_uint8",
261
+ "typeString": "uint8"
262
+ }
263
+ },
264
+ "visibility": "internal"
265
+ }
266
+ ],
267
+ "license": "MIT"
268
+ },
269
+ "id": 118
270
+ }