@latticexyz/world-modules 2.0.0-main-f99e8898 → 2.0.0-main-94d7f1ee
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.
- package/out/AccessControl.sol/AccessControl.abi.json +1 -0
- package/out/AccessControl.sol/AccessControl.json +1651 -0
- package/out/ArrayLib.sol/ArrayLib.json +477 -477
- package/out/Balances.sol/Balances.abi.json +1 -0
- package/out/Balances.sol/Balances.json +13002 -0
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +350 -350
- package/out/CallboundDelegations.sol/CallboundDelegations.json +4497 -4497
- package/out/DelegationControl.sol/DelegationControl.json +135 -135
- package/out/FunctionSelectors.sol/FunctionSelectors.abi.json +1 -0
- package/out/FunctionSelectors.sol/FunctionSelectors.json +17874 -0
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +14 -14
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +15 -15
- package/out/IBaseWorld.sol/IBaseWorld.json +81 -81
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +15 -15
- package/out/IDelegationControl.sol/IDelegationControl.json +7 -7
- package/out/ISystemHook.sol/ISystemHook.json +12 -12
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +25 -25
- package/out/IWorldErrors.sol/IWorldErrors.json +19 -19
- package/out/IWorldKernel.sol/IWorldCall.json +10 -10
- package/out/IWorldKernel.sol/IWorldKernel.json +10 -10
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +10 -10
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +39 -39
- package/out/KeysInTable.sol/KeysInTable.json +18190 -18190
- package/out/KeysInTableHook.sol/KeysInTableHook.json +1407 -1407
- package/out/KeysInTableModule.sol/KeysInTableModule.json +838 -838
- package/out/KeysWithValue.sol/KeysWithValue.json +6631 -6631
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +1557 -1557
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +650 -650
- package/out/Module.sol/Module.json +119 -119
- package/out/NamespaceOwner.sol/NamespaceOwner.abi.json +1 -0
- package/out/NamespaceOwner.sol/NamespaceOwner.json +13016 -0
- package/out/ResourceAccess.sol/ResourceAccess.abi.json +1 -0
- package/out/ResourceAccess.sol/ResourceAccess.json +17296 -0
- package/out/ResourceIds.sol/ResourceIds.json +45 -45
- package/out/Schema.sol/SchemaInstance.json +30 -30
- package/out/Schema.sol/SchemaLib.json +30 -30
- package/out/SchemaType.sol/SchemaType.json +729 -729
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +448 -448
- package/out/StoreHook.sol/StoreHook.json +639 -639
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +32 -32
- package/out/SystemHooks.sol/SystemHooks.abi.json +1 -0
- package/out/SystemHooks.sol/SystemHooks.json +32460 -0
- package/out/SystemSwitch.sol/SystemSwitch.abi.json +1 -0
- package/out/SystemSwitch.sol/SystemSwitch.json +2879 -0
- package/out/Systems.sol/Systems.abi.json +1 -0
- package/out/Systems.sol/Systems.json +18508 -0
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +183 -183
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +3474 -3474
- package/out/UniqueEntity.sol/UniqueEntity.json +2345 -2345
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +482 -482
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +128 -128
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +4590 -4590
- package/out/WorldContext.sol/WorldContextConsumer.json +14 -14
- package/out/WorldContext.sol/WorldContextConsumerLib.json +14 -14
- package/out/WorldContext.sol/WorldContextProviderLib.json +14 -14
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +103 -103
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +103 -103
- package/out/constants.sol/constants.json +194 -194
- package/out/getKeysInTable.sol/getKeysInTable.json +918 -918
- package/out/getKeysWithValue.sol/getKeysWithValue.json +431 -431
- package/out/getTargetTableId.sol/getTargetTableId.json +272 -272
- package/out/getUniqueEntity.sol/getUniqueEntity.json +389 -240
- package/out/hasKey.sol/hasKey.json +215 -215
- package/out/index.sol/index.json +73 -73
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +171 -171
- package/out/query.sol/query.json +1892 -1892
- package/out/revertWithBytes.sol/revertWithBytes.json +52 -52
- package/out/src/Bytes.sol/Bytes.json +3766 -3766
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +1204 -1204
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +1204 -1204
- package/out/src/Hook.sol/HookInstance.abi.json +1 -0
- package/out/src/Hook.sol/HookInstance.json +2823 -0
- package/out/src/Hook.sol/HookLib.abi.json +1 -0
- package/out/src/Hook.sol/HookLib.json +2823 -0
- package/out/src/IStore.sol/IStore.json +73 -73
- package/out/src/ISystemHook.sol/ISystemHook.abi.json +67 -0
- package/out/src/ISystemHook.sol/ISystemHook.abi.json.d.ts +68 -0
- package/out/src/ISystemHook.sol/ISystemHook.json +852 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json +189 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.abi.json.d.ts +190 -0
- package/out/src/IWorldErrors.sol/IWorldErrors.json +1463 -0
- package/out/src/IWorldKernel.sol/IWorldCall.json +258 -258
- package/out/src/IWorldKernel.sol/IWorldKernel.json +258 -258
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +258 -258
- package/out/src/Memory.sol/Memory.json +242 -242
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +1633 -1633
- package/out/src/PackedCounter.sol/PackedCounterLib.json +1633 -1633
- package/out/src/ResourceId.sol/ResourceIdInstance.json +206 -206
- package/out/src/ResourceId.sol/ResourceIdLib.json +206 -206
- package/out/src/Schema.sol/SchemaInstance.json +1351 -1351
- package/out/src/Schema.sol/SchemaLib.json +1351 -1351
- package/out/src/Slice.sol/SliceInstance.json +802 -802
- package/out/src/Slice.sol/SliceLib.json +802 -802
- package/out/src/StoreCore.sol/StoreCore.json +7412 -7412
- package/out/src/StoreCore.sol/StoreCoreInternal.json +7412 -7412
- package/out/src/StoreSwitch.sol/StoreSwitch.json +4064 -4064
- package/out/src/WorldContext.sol/WorldContextConsumer.json +805 -805
- package/out/src/WorldContext.sol/WorldContextConsumerLib.json +807 -807
- package/out/src/WorldContext.sol/WorldContextProviderLib.json +807 -807
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +809 -809
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +809 -809
- package/out/storeHookTypes.sol/storeHookTypes.json +204 -204
- package/out/storeResourceTypes.sol/storeResourceTypes.json +23 -23
- package/out/systemHookTypes.sol/systemHookTypes.json +270 -0
- package/out/tables/ResourceIds.sol/ResourceIds.json +2922 -2922
- package/out/tables/Tables.sol/Tables.json +12189 -12189
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +6883 -6883
- package/out/types.sol/types.json +71 -71
- package/out/worldResourceTypes.sol/worldResourceTypes.json +92 -92
- package/package.json +8 -8
- package/src/modules/uniqueentity/getUniqueEntity.sol +5 -3
- package/src/utils/SystemSwitch.sol +82 -0
package/out/types.sol/types.json
CHANGED
@@ -10,25 +10,25 @@
|
|
10
10
|
},
|
11
11
|
"ast": {
|
12
12
|
"absolutePath": "/home/runner/work/mud/mud/packages/world/src/modules/core/types.sol",
|
13
|
-
"id":
|
13
|
+
"id": 26698,
|
14
14
|
"exportedSymbols": {
|
15
15
|
"ResourceId": [
|
16
|
-
|
16
|
+
29121
|
17
17
|
],
|
18
18
|
"SystemCallData": [
|
19
|
-
|
19
|
+
26685
|
20
20
|
],
|
21
21
|
"SystemCallFromData": [
|
22
|
-
|
22
|
+
26697
|
23
23
|
]
|
24
24
|
},
|
25
25
|
"nodeType": "SourceUnit",
|
26
|
-
"src": "32:878:
|
26
|
+
"src": "32:878:51",
|
27
27
|
"nodes": [
|
28
28
|
{
|
29
|
-
"id":
|
29
|
+
"id": 26674,
|
30
30
|
"nodeType": "PragmaDirective",
|
31
|
-
"src": "32:25:
|
31
|
+
"src": "32:25:51",
|
32
32
|
"nodes": [],
|
33
33
|
"literals": [
|
34
34
|
"solidity",
|
@@ -38,24 +38,24 @@
|
|
38
38
|
]
|
39
39
|
},
|
40
40
|
{
|
41
|
-
"id":
|
41
|
+
"id": 26676,
|
42
42
|
"nodeType": "ImportDirective",
|
43
|
-
"src": "59:66:
|
43
|
+
"src": "59:66:51",
|
44
44
|
"nodes": [],
|
45
45
|
"absolutePath": "node_modules/@latticexyz/store/src/ResourceId.sol",
|
46
46
|
"file": "@latticexyz/store/src/ResourceId.sol",
|
47
47
|
"nameLocation": "-1:-1:-1",
|
48
|
-
"scope":
|
49
|
-
"sourceUnit":
|
48
|
+
"scope": 26698,
|
49
|
+
"sourceUnit": 29193,
|
50
50
|
"symbolAliases": [
|
51
51
|
{
|
52
52
|
"foreign": {
|
53
|
-
"id":
|
53
|
+
"id": 26675,
|
54
54
|
"name": "ResourceId",
|
55
55
|
"nodeType": "Identifier",
|
56
56
|
"overloadedDeclarations": [],
|
57
|
-
"referencedDeclaration":
|
58
|
-
"src": "68:10:
|
57
|
+
"referencedDeclaration": 29121,
|
58
|
+
"src": "68:10:51",
|
59
59
|
"typeDescriptions": {}
|
60
60
|
},
|
61
61
|
"nameLocation": "-1:-1:-1"
|
@@ -64,50 +64,50 @@
|
|
64
64
|
"unitAlias": ""
|
65
65
|
},
|
66
66
|
{
|
67
|
-
"id":
|
67
|
+
"id": 26685,
|
68
68
|
"nodeType": "StructDefinition",
|
69
|
-
"src": "301:164:
|
69
|
+
"src": "301:164:51",
|
70
70
|
"nodes": [],
|
71
71
|
"canonicalName": "SystemCallData",
|
72
72
|
"documentation": {
|
73
|
-
"id":
|
73
|
+
"id": 26677,
|
74
74
|
"nodeType": "StructuredDocumentation",
|
75
|
-
"src": "127:173:
|
75
|
+
"src": "127:173:51",
|
76
76
|
"text": " @title System Call Data Structure\n @notice Holds data for making system calls.\n @dev Used to represent a call to a specific system identified by a ResourceId."
|
77
77
|
},
|
78
78
|
"members": [
|
79
79
|
{
|
80
80
|
"constant": false,
|
81
|
-
"id":
|
81
|
+
"id": 26681,
|
82
82
|
"mutability": "mutable",
|
83
83
|
"name": "systemId",
|
84
|
-
"nameLocation": "379:8:
|
84
|
+
"nameLocation": "379:8:51",
|
85
85
|
"nodeType": "VariableDeclaration",
|
86
|
-
"scope":
|
87
|
-
"src": "368:19:
|
86
|
+
"scope": 26685,
|
87
|
+
"src": "368:19:51",
|
88
88
|
"stateVariable": false,
|
89
89
|
"storageLocation": "default",
|
90
90
|
"typeDescriptions": {
|
91
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
91
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
|
92
92
|
"typeString": "ResourceId"
|
93
93
|
},
|
94
94
|
"typeName": {
|
95
|
-
"id":
|
95
|
+
"id": 26680,
|
96
96
|
"nodeType": "UserDefinedTypeName",
|
97
97
|
"pathNode": {
|
98
|
-
"id":
|
98
|
+
"id": 26679,
|
99
99
|
"name": "ResourceId",
|
100
100
|
"nameLocations": [
|
101
|
-
"368:10:
|
101
|
+
"368:10:51"
|
102
102
|
],
|
103
103
|
"nodeType": "IdentifierPath",
|
104
|
-
"referencedDeclaration":
|
105
|
-
"src": "368:10:
|
104
|
+
"referencedDeclaration": 29121,
|
105
|
+
"src": "368:10:51"
|
106
106
|
},
|
107
|
-
"referencedDeclaration":
|
108
|
-
"src": "368:10:
|
107
|
+
"referencedDeclaration": 29121,
|
108
|
+
"src": "368:10:51",
|
109
109
|
"typeDescriptions": {
|
110
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
110
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
|
111
111
|
"typeString": "ResourceId"
|
112
112
|
}
|
113
113
|
},
|
@@ -115,13 +115,13 @@
|
|
115
115
|
},
|
116
116
|
{
|
117
117
|
"constant": false,
|
118
|
-
"id":
|
118
|
+
"id": 26684,
|
119
119
|
"mutability": "mutable",
|
120
120
|
"name": "callData",
|
121
|
-
"nameLocation": "454:8:
|
121
|
+
"nameLocation": "454:8:51",
|
122
122
|
"nodeType": "VariableDeclaration",
|
123
|
-
"scope":
|
124
|
-
"src": "448:14:
|
123
|
+
"scope": 26685,
|
124
|
+
"src": "448:14:51",
|
125
125
|
"stateVariable": false,
|
126
126
|
"storageLocation": "default",
|
127
127
|
"typeDescriptions": {
|
@@ -129,10 +129,10 @@
|
|
129
129
|
"typeString": "bytes"
|
130
130
|
},
|
131
131
|
"typeName": {
|
132
|
-
"id":
|
132
|
+
"id": 26683,
|
133
133
|
"name": "bytes",
|
134
134
|
"nodeType": "ElementaryTypeName",
|
135
|
-
"src": "448:5:
|
135
|
+
"src": "448:5:51",
|
136
136
|
"typeDescriptions": {
|
137
137
|
"typeIdentifier": "t_bytes_storage_ptr",
|
138
138
|
"typeString": "bytes"
|
@@ -142,32 +142,32 @@
|
|
142
142
|
}
|
143
143
|
],
|
144
144
|
"name": "SystemCallData",
|
145
|
-
"nameLocation": "308:14:
|
146
|
-
"scope":
|
145
|
+
"nameLocation": "308:14:51",
|
146
|
+
"scope": 26698,
|
147
147
|
"visibility": "public"
|
148
148
|
},
|
149
149
|
{
|
150
|
-
"id":
|
150
|
+
"id": 26697,
|
151
151
|
"nodeType": "StructDefinition",
|
152
|
-
"src": "666:243:
|
152
|
+
"src": "666:243:51",
|
153
153
|
"nodes": [],
|
154
154
|
"canonicalName": "SystemCallFromData",
|
155
155
|
"documentation": {
|
156
|
-
"id":
|
156
|
+
"id": 26686,
|
157
157
|
"nodeType": "StructuredDocumentation",
|
158
|
-
"src": "467:198:
|
158
|
+
"src": "467:198:51",
|
159
159
|
"text": " @title System Call From Data Structure\n @notice Holds data for making system calls with a specific sender.\n @dev Used to represent a call from a specific address to a specific system."
|
160
160
|
},
|
161
161
|
"members": [
|
162
162
|
{
|
163
163
|
"constant": false,
|
164
|
-
"id":
|
164
|
+
"id": 26689,
|
165
165
|
"mutability": "mutable",
|
166
166
|
"name": "from",
|
167
|
-
"nameLocation": "763:4:
|
167
|
+
"nameLocation": "763:4:51",
|
168
168
|
"nodeType": "VariableDeclaration",
|
169
|
-
"scope":
|
170
|
-
"src": "755:12:
|
169
|
+
"scope": 26697,
|
170
|
+
"src": "755:12:51",
|
171
171
|
"stateVariable": false,
|
172
172
|
"storageLocation": "default",
|
173
173
|
"typeDescriptions": {
|
@@ -175,10 +175,10 @@
|
|
175
175
|
"typeString": "address"
|
176
176
|
},
|
177
177
|
"typeName": {
|
178
|
-
"id":
|
178
|
+
"id": 26688,
|
179
179
|
"name": "address",
|
180
180
|
"nodeType": "ElementaryTypeName",
|
181
|
-
"src": "755:7:
|
181
|
+
"src": "755:7:51",
|
182
182
|
"stateMutability": "nonpayable",
|
183
183
|
"typeDescriptions": {
|
184
184
|
"typeIdentifier": "t_address",
|
@@ -189,36 +189,36 @@
|
|
189
189
|
},
|
190
190
|
{
|
191
191
|
"constant": false,
|
192
|
-
"id":
|
192
|
+
"id": 26693,
|
193
193
|
"mutability": "mutable",
|
194
194
|
"name": "systemId",
|
195
|
-
"nameLocation": "823:8:
|
195
|
+
"nameLocation": "823:8:51",
|
196
196
|
"nodeType": "VariableDeclaration",
|
197
|
-
"scope":
|
198
|
-
"src": "812:19:
|
197
|
+
"scope": 26697,
|
198
|
+
"src": "812:19:51",
|
199
199
|
"stateVariable": false,
|
200
200
|
"storageLocation": "default",
|
201
201
|
"typeDescriptions": {
|
202
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
202
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
|
203
203
|
"typeString": "ResourceId"
|
204
204
|
},
|
205
205
|
"typeName": {
|
206
|
-
"id":
|
206
|
+
"id": 26692,
|
207
207
|
"nodeType": "UserDefinedTypeName",
|
208
208
|
"pathNode": {
|
209
|
-
"id":
|
209
|
+
"id": 26691,
|
210
210
|
"name": "ResourceId",
|
211
211
|
"nameLocations": [
|
212
|
-
"812:10:
|
212
|
+
"812:10:51"
|
213
213
|
],
|
214
214
|
"nodeType": "IdentifierPath",
|
215
|
-
"referencedDeclaration":
|
216
|
-
"src": "812:10:
|
215
|
+
"referencedDeclaration": 29121,
|
216
|
+
"src": "812:10:51"
|
217
217
|
},
|
218
|
-
"referencedDeclaration":
|
219
|
-
"src": "812:10:
|
218
|
+
"referencedDeclaration": 29121,
|
219
|
+
"src": "812:10:51",
|
220
220
|
"typeDescriptions": {
|
221
|
-
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$
|
221
|
+
"typeIdentifier": "t_userDefinedValueType$_ResourceId_$29121",
|
222
222
|
"typeString": "ResourceId"
|
223
223
|
}
|
224
224
|
},
|
@@ -226,13 +226,13 @@
|
|
226
226
|
},
|
227
227
|
{
|
228
228
|
"constant": false,
|
229
|
-
"id":
|
229
|
+
"id": 26696,
|
230
230
|
"mutability": "mutable",
|
231
231
|
"name": "callData",
|
232
|
-
"nameLocation": "898:8:
|
232
|
+
"nameLocation": "898:8:51",
|
233
233
|
"nodeType": "VariableDeclaration",
|
234
|
-
"scope":
|
235
|
-
"src": "892:14:
|
234
|
+
"scope": 26697,
|
235
|
+
"src": "892:14:51",
|
236
236
|
"stateVariable": false,
|
237
237
|
"storageLocation": "default",
|
238
238
|
"typeDescriptions": {
|
@@ -240,10 +240,10 @@
|
|
240
240
|
"typeString": "bytes"
|
241
241
|
},
|
242
242
|
"typeName": {
|
243
|
-
"id":
|
243
|
+
"id": 26695,
|
244
244
|
"name": "bytes",
|
245
245
|
"nodeType": "ElementaryTypeName",
|
246
|
-
"src": "892:5:
|
246
|
+
"src": "892:5:51",
|
247
247
|
"typeDescriptions": {
|
248
248
|
"typeIdentifier": "t_bytes_storage_ptr",
|
249
249
|
"typeString": "bytes"
|
@@ -253,12 +253,12 @@
|
|
253
253
|
}
|
254
254
|
],
|
255
255
|
"name": "SystemCallFromData",
|
256
|
-
"nameLocation": "673:18:
|
257
|
-
"scope":
|
256
|
+
"nameLocation": "673:18:51",
|
257
|
+
"scope": 26698,
|
258
258
|
"visibility": "public"
|
259
259
|
}
|
260
260
|
],
|
261
261
|
"license": "MIT"
|
262
262
|
},
|
263
|
-
"id":
|
263
|
+
"id": 51
|
264
264
|
}
|