@latticexyz/world-modules 2.0.0-main-87235a21 → 2.0.0-main-fd10cff6
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/ArrayLib.sol/ArrayLib.json +255 -255
- package/out/CallboundDelegationControl.sol/CallboundDelegationControl.json +228 -215
- package/out/CallboundDelegations.sol/CallboundDelegations.json +2595 -2595
- package/out/DelegationControl.sol/DelegationControl.json +157 -131
- package/out/Hooks.sol/Hooks.json +45 -45
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +57 -57
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +53 -53
- package/out/IBaseWorld.sol/IBaseWorld.json +70 -70
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +51 -51
- package/out/ICoreSystem.sol/ICoreSystem.json +6 -6
- package/out/IDelegationControl.sol/IDelegationControl.json +105 -99
- package/out/IModule.sol/IModule.json +181 -151
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +34 -34
- package/out/ISystemHook.sol/ISystemHook.json +91 -91
- package/out/IUniqueEntitySystem.sol/IUniqueEntitySystem.json +13 -13
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +75 -75
- package/out/IWorldErrors.sol/IWorldErrors.json +134 -134
- package/out/IWorldKernel.sol/IWorldCall.json +155 -155
- package/out/IWorldKernel.sol/IWorldKernel.json +155 -155
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +155 -155
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +186 -186
- package/out/KeysInTable.sol/KeysInTable.json +10668 -10668
- package/out/KeysInTableHook.sol/KeysInTableHook.json +862 -862
- package/out/KeysInTableModule.sol/KeysInTableModule.json +562 -537
- package/out/KeysWithValue.sol/KeysWithValue.json +3828 -3828
- package/out/KeysWithValueHook.sol/KeysWithValueHook.json +992 -992
- package/out/KeysWithValueModule.sol/KeysWithValueModule.json +451 -426
- package/out/Module.sol/Module.json +162 -119
- 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 +276 -276
- package/out/StandardDelegationsModule.sol/StandardDelegationsModule.json +327 -308
- package/out/StoreHook.sol/StoreHook.json +358 -358
- package/out/StoreHooks.sol/StoreHooks.json +45 -45
- package/out/System.sol/System.json +23 -23
- package/out/Tables.sol/Tables.json +73 -73
- package/out/TimeboundDelegationControl.sol/TimeboundDelegationControl.json +132 -119
- package/out/TimeboundDelegations.sol/TimeboundDelegations.json +1986 -1986
- package/out/UniqueEntity.sol/UniqueEntity.json +1402 -1402
- package/out/UniqueEntityModule.sol/UniqueEntityModule.json +345 -326
- package/out/UniqueEntitySystem.sol/UniqueEntitySystem.json +86 -86
- package/out/UsedKeysIndex.sol/UsedKeysIndex.json +2722 -2722
- package/out/WorldContext.sol/WorldContextConsumer.json +357 -357
- package/out/WorldContext.sol/WorldContextProvider.json +357 -357
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
- package/out/constants.sol/constants.json +115 -115
- package/out/getKeysInTable.sol/getKeysInTable.json +564 -564
- package/out/getKeysWithValue.sol/getKeysWithValue.json +264 -264
- package/out/getTargetTableId.sol/getTargetTableId.json +163 -163
- package/out/getUniqueEntity.sol/getUniqueEntity.json +88 -88
- package/out/hasKey.sol/hasKey.json +130 -130
- package/out/index.sol/index.json +53 -53
- package/out/interfaces/IBaseWorld.sol/IBaseWorld.json +130 -130
- package/out/query.sol/query.json +1154 -1154
- package/out/revertWithBytes.sol/revertWithBytes.json +15 -15
- package/out/src/Bytes.sol/Bytes.json +1332 -1332
- package/out/src/FieldLayout.sol/FieldLayoutInstance.json +697 -697
- package/out/src/FieldLayout.sol/FieldLayoutLib.json +697 -697
- package/out/src/IStore.sol/IStore.json +53 -53
- package/out/src/IWorldKernel.sol/IWorldCall.json +156 -156
- package/out/src/IWorldKernel.sol/IWorldKernel.json +156 -156
- package/out/src/IWorldKernel.sol/IWorldModuleInstallation.json +156 -156
- package/out/src/Memory.sol/Memory.json +89 -89
- package/out/src/PackedCounter.sol/PackedCounterInstance.json +923 -923
- package/out/src/PackedCounter.sol/PackedCounterLib.json +923 -923
- package/out/src/ResourceId.sol/ResourceIdInstance.json +112 -112
- package/out/src/ResourceId.sol/ResourceIdLib.json +112 -112
- package/out/src/Schema.sol/SchemaInstance.json +787 -787
- package/out/src/Schema.sol/SchemaLib.json +787 -787
- package/out/src/Slice.sol/SliceInstance.json +429 -429
- package/out/src/Slice.sol/SliceLib.json +429 -429
- package/out/src/StoreCore.sol/StoreCore.json +4455 -4455
- package/out/src/StoreCore.sol/StoreCoreInternal.json +4455 -4455
- package/out/src/StoreSwitch.sol/StoreSwitch.json +2454 -2454
- package/out/src/WorldContext.sol/WorldContextConsumer.json +357 -357
- package/out/src/WorldContext.sol/WorldContextProvider.json +357 -357
- package/out/src/WorldResourceId.sol/WorldResourceIdInstance.json +474 -474
- package/out/src/WorldResourceId.sol/WorldResourceIdLib.json +474 -474
- package/out/storeHookTypes.sol/storeHookTypes.json +115 -115
- package/out/storeResourceTypes.sol/storeResourceTypes.json +12 -12
- package/out/tables/ResourceIds.sol/ResourceIds.json +1746 -1746
- package/out/tables/Tables.sol/Tables.json +7288 -7288
- package/out/tightcoder/EncodeArray.sol/EncodeArray.json +3246 -3246
- package/out/types.sol/types.json +39 -39
- package/out/world/src/IERC165.sol/IERC165.json +63 -57
- package/out/worldResourceTypes.sol/worldResourceTypes.json +53 -53
- package/package.json +8 -8
@@ -85,7 +85,7 @@
|
|
85
85
|
"installRoot(bytes)": "7c5b0335",
|
86
86
|
"supportsInterface(bytes4)": "01ffc9a7"
|
87
87
|
},
|
88
|
-
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"Module_NonRootInstallNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Module_RootInstallNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"getName\",\"outputs\":[{\"internalType\":\"bytes16\",\"name\":\"name\",\"type\":\"bytes16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"install\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"installRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"
|
88
|
+
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"Module_NonRootInstallNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Module_RootInstallNotSupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"getName\",\"outputs\":[{\"internalType\":\"bytes16\",\"name\":\"name\",\"type\":\"bytes16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"install\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"args\",\"type\":\"bytes\"}],\"name\":\"installRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface for the Module system. A module can be installed within the context of a world, either as a root or non-root module. This interface adheres to the ERC-165 standard for determining interface support.\",\"errors\":{\"Module_RootInstallNotSupported()\":[{\"details\":\"Errors to represent non-support of specific installation types.\"}]},\"kind\":\"dev\",\"methods\":{\"getName()\":{\"details\":\"Provides a way to identify the module by a unique name.\",\"returns\":{\"name\":\"The name of the module as a bytes16.\"}},\"install(bytes)\":{\"details\":\"This function is invoked by the World contract during `installModule` process. The module expects to be called via the World contract and thus installs itself on the `msg.sender`. Logic might differ from `installRoot`, for example, this might accept namespace parameters.\",\"params\":{\"args\":\"Arguments that may be needed during the installation process.\"}},\"installRoot(bytes)\":{\"details\":\"This function is invoked by the World contract during `installRootModule` process. The module expects to be called via the World contract and thus installs itself on the `msg.sender`.\",\"params\":{\"args\":\"Arguments that may be needed during the installation process.\"}},\"supportsInterface(bytes4)\":{\"details\":\"Interface identification is specified in ERC-165. This function uses less than 30,000 gas.\",\"params\":{\"interfaceID\":\"The interface identifier, as specified in ERC-165.\"},\"returns\":{\"_0\":\"True if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, false otherwise.\"}}},\"title\":\"IModule\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getName()\":{\"notice\":\"Return the name of the module.\"},\"install(bytes)\":{\"notice\":\"Installs the module.\"},\"installRoot(bytes)\":{\"notice\":\"Installs the module as a root module.\"},\"supportsInterface(bytes4)\":{\"notice\":\"Query if a contract implements an interface.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/mud/mud/packages/world/src/IModule.sol\":\"IModule\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@latticexyz/=node_modules/@latticexyz/\",\":ds-test/=node_modules/ds-test/src/\",\":forge-std/=node_modules/forge-std/src/\"]},\"sources\":{\"/home/runner/work/mud/mud/packages/world/src/IERC165.sol\":{\"keccak256\":\"0x7997ebbdee6a2493f28e7032c7a8b906ade40f807d95734e2653c8f1b023ff47\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c8ca41bb2619bf27e5bf886d1322f0e2dffd096c49f7ae6e716541dd1e1ddce5\",\"dweb:/ipfs/Qmb8zATUWWTtiWaSLjbAe6PGnJPes9ANvEyk7pYoWR3P3Y\"]},\"/home/runner/work/mud/mud/packages/world/src/IModule.sol\":{\"keccak256\":\"0xec02d49b84a882c9cf01e4e5c16f890ed7c52db945fd43a6f97ffe87730ba0d3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8f8ee1a3aaac5789b36808bdae2e26e32d1664583a6b21680b5721f04d81bbc3\",\"dweb:/ipfs/Qmd4L3vGQiavSCe9g2k7riyA6cer3ruuxRFehAJCSxNRfw\"]}},\"version\":1}",
|
89
89
|
"metadata": {
|
90
90
|
"compiler": {
|
91
91
|
"version": "0.8.21+commit.d9974bed"
|
@@ -163,13 +163,31 @@
|
|
163
163
|
"devdoc": {
|
164
164
|
"kind": "dev",
|
165
165
|
"methods": {
|
166
|
+
"getName()": {
|
167
|
+
"details": "Provides a way to identify the module by a unique name.",
|
168
|
+
"returns": {
|
169
|
+
"name": "The name of the module as a bytes16."
|
170
|
+
}
|
171
|
+
},
|
172
|
+
"install(bytes)": {
|
173
|
+
"details": "This function is invoked by the World contract during `installModule` process. The module expects to be called via the World contract and thus installs itself on the `msg.sender`. Logic might differ from `installRoot`, for example, this might accept namespace parameters.",
|
174
|
+
"params": {
|
175
|
+
"args": "Arguments that may be needed during the installation process."
|
176
|
+
}
|
177
|
+
},
|
178
|
+
"installRoot(bytes)": {
|
179
|
+
"details": "This function is invoked by the World contract during `installRootModule` process. The module expects to be called via the World contract and thus installs itself on the `msg.sender`.",
|
180
|
+
"params": {
|
181
|
+
"args": "Arguments that may be needed during the installation process."
|
182
|
+
}
|
183
|
+
},
|
166
184
|
"supportsInterface(bytes4)": {
|
167
|
-
"details": "Interface identification is specified in ERC-165. This function
|
185
|
+
"details": "Interface identification is specified in ERC-165. This function uses less than 30,000 gas.",
|
168
186
|
"params": {
|
169
|
-
"interfaceID": "The interface identifier, as specified in ERC-165"
|
187
|
+
"interfaceID": "The interface identifier, as specified in ERC-165."
|
170
188
|
},
|
171
189
|
"returns": {
|
172
|
-
"_0": "
|
190
|
+
"_0": "True if the contract implements `interfaceID` and `interfaceID` is not 0xffffffff, false otherwise."
|
173
191
|
}
|
174
192
|
}
|
175
193
|
},
|
@@ -179,16 +197,16 @@
|
|
179
197
|
"kind": "user",
|
180
198
|
"methods": {
|
181
199
|
"getName()": {
|
182
|
-
"notice": "Return the
|
200
|
+
"notice": "Return the name of the module."
|
183
201
|
},
|
184
202
|
"install(bytes)": {
|
185
|
-
"notice": "
|
203
|
+
"notice": "Installs the module."
|
186
204
|
},
|
187
205
|
"installRoot(bytes)": {
|
188
|
-
"notice": "
|
206
|
+
"notice": "Installs the module as a root module."
|
189
207
|
},
|
190
208
|
"supportsInterface(bytes4)": {
|
191
|
-
"notice": "Query if a contract implements an interface"
|
209
|
+
"notice": "Query if a contract implements an interface."
|
192
210
|
}
|
193
211
|
},
|
194
212
|
"version": 1
|
@@ -214,18 +232,18 @@
|
|
214
232
|
},
|
215
233
|
"sources": {
|
216
234
|
"/home/runner/work/mud/mud/packages/world/src/IERC165.sol": {
|
217
|
-
"keccak256": "
|
235
|
+
"keccak256": "0x7997ebbdee6a2493f28e7032c7a8b906ade40f807d95734e2653c8f1b023ff47",
|
218
236
|
"urls": [
|
219
|
-
"bzz-raw://
|
220
|
-
"dweb:/ipfs/
|
237
|
+
"bzz-raw://c8ca41bb2619bf27e5bf886d1322f0e2dffd096c49f7ae6e716541dd1e1ddce5",
|
238
|
+
"dweb:/ipfs/Qmb8zATUWWTtiWaSLjbAe6PGnJPes9ANvEyk7pYoWR3P3Y"
|
221
239
|
],
|
222
240
|
"license": "MIT"
|
223
241
|
},
|
224
242
|
"/home/runner/work/mud/mud/packages/world/src/IModule.sol": {
|
225
|
-
"keccak256": "
|
243
|
+
"keccak256": "0xec02d49b84a882c9cf01e4e5c16f890ed7c52db945fd43a6f97ffe87730ba0d3",
|
226
244
|
"urls": [
|
227
|
-
"bzz-raw://
|
228
|
-
"dweb:/ipfs/
|
245
|
+
"bzz-raw://8f8ee1a3aaac5789b36808bdae2e26e32d1664583a6b21680b5721f04d81bbc3",
|
246
|
+
"dweb:/ipfs/Qmd4L3vGQiavSCe9g2k7riyA6cer3ruuxRFehAJCSxNRfw"
|
229
247
|
],
|
230
248
|
"license": "MIT"
|
231
249
|
}
|
@@ -234,26 +252,26 @@
|
|
234
252
|
},
|
235
253
|
"ast": {
|
236
254
|
"absolutePath": "/home/runner/work/mud/mud/packages/world/src/IModule.sol",
|
237
|
-
"id":
|
255
|
+
"id": 22986,
|
238
256
|
"exportedSymbols": {
|
239
257
|
"ERC165_INTERFACE_ID": [
|
240
|
-
|
258
|
+
22927
|
241
259
|
],
|
242
260
|
"IERC165": [
|
243
|
-
|
261
|
+
22937
|
244
262
|
],
|
245
263
|
"IModule": [
|
246
|
-
|
264
|
+
22985
|
247
265
|
],
|
248
266
|
"MODULE_INTERFACE_ID": [
|
249
|
-
|
267
|
+
22958
|
250
268
|
]
|
251
269
|
},
|
252
270
|
"nodeType": "SourceUnit",
|
253
|
-
"src": "32:
|
271
|
+
"src": "32:1982:35",
|
254
272
|
"nodes": [
|
255
273
|
{
|
256
|
-
"id":
|
274
|
+
"id": 22939,
|
257
275
|
"nodeType": "PragmaDirective",
|
258
276
|
"src": "32:25:35",
|
259
277
|
"nodes": [],
|
@@ -265,23 +283,23 @@
|
|
265
283
|
]
|
266
284
|
},
|
267
285
|
{
|
268
|
-
"id":
|
286
|
+
"id": 22942,
|
269
287
|
"nodeType": "ImportDirective",
|
270
288
|
"src": "59:61:35",
|
271
289
|
"nodes": [],
|
272
290
|
"absolutePath": "/home/runner/work/mud/mud/packages/world/src/IERC165.sol",
|
273
291
|
"file": "./IERC165.sol",
|
274
292
|
"nameLocation": "-1:-1:-1",
|
275
|
-
"scope":
|
276
|
-
"sourceUnit":
|
293
|
+
"scope": 22986,
|
294
|
+
"sourceUnit": 22938,
|
277
295
|
"symbolAliases": [
|
278
296
|
{
|
279
297
|
"foreign": {
|
280
|
-
"id":
|
298
|
+
"id": 22940,
|
281
299
|
"name": "IERC165",
|
282
300
|
"nodeType": "Identifier",
|
283
301
|
"overloadedDeclarations": [],
|
284
|
-
"referencedDeclaration":
|
302
|
+
"referencedDeclaration": 22937,
|
285
303
|
"src": "68:7:35",
|
286
304
|
"typeDescriptions": {}
|
287
305
|
},
|
@@ -289,11 +307,11 @@
|
|
289
307
|
},
|
290
308
|
{
|
291
309
|
"foreign": {
|
292
|
-
"id":
|
310
|
+
"id": 22941,
|
293
311
|
"name": "ERC165_INTERFACE_ID",
|
294
312
|
"nodeType": "Identifier",
|
295
313
|
"overloadedDeclarations": [],
|
296
|
-
"referencedDeclaration":
|
314
|
+
"referencedDeclaration": 22927,
|
297
315
|
"src": "77:19:35",
|
298
316
|
"typeDescriptions": {}
|
299
317
|
},
|
@@ -303,15 +321,15 @@
|
|
303
321
|
"unitAlias": ""
|
304
322
|
},
|
305
323
|
{
|
306
|
-
"id":
|
324
|
+
"id": 22958,
|
307
325
|
"nodeType": "VariableDeclaration",
|
308
|
-
"src": "
|
326
|
+
"src": "322:148:35",
|
309
327
|
"nodes": [],
|
310
328
|
"constant": true,
|
311
329
|
"mutability": "constant",
|
312
330
|
"name": "MODULE_INTERFACE_ID",
|
313
|
-
"nameLocation": "
|
314
|
-
"scope":
|
331
|
+
"nameLocation": "338:19:35",
|
332
|
+
"scope": 22986,
|
315
333
|
"stateVariable": false,
|
316
334
|
"storageLocation": "default",
|
317
335
|
"typeDescriptions": {
|
@@ -319,10 +337,10 @@
|
|
319
337
|
"typeString": "bytes4"
|
320
338
|
},
|
321
339
|
"typeName": {
|
322
|
-
"id":
|
340
|
+
"id": 22944,
|
323
341
|
"name": "bytes4",
|
324
342
|
"nodeType": "ElementaryTypeName",
|
325
|
-
"src": "
|
343
|
+
"src": "322:6:35",
|
326
344
|
"typeDescriptions": {
|
327
345
|
"typeIdentifier": "t_bytes4",
|
328
346
|
"typeString": "bytes4"
|
@@ -333,7 +351,7 @@
|
|
333
351
|
"typeIdentifier": "t_bytes4",
|
334
352
|
"typeString": "bytes4"
|
335
353
|
},
|
336
|
-
"id":
|
354
|
+
"id": 22957,
|
337
355
|
"isConstant": false,
|
338
356
|
"isLValue": false,
|
339
357
|
"isPure": true,
|
@@ -343,7 +361,7 @@
|
|
343
361
|
"typeIdentifier": "t_bytes4",
|
344
362
|
"typeString": "bytes4"
|
345
363
|
},
|
346
|
-
"id":
|
364
|
+
"id": 22955,
|
347
365
|
"isConstant": false,
|
348
366
|
"isLValue": false,
|
349
367
|
"isPure": true,
|
@@ -353,7 +371,7 @@
|
|
353
371
|
"typeIdentifier": "t_bytes4",
|
354
372
|
"typeString": "bytes4"
|
355
373
|
},
|
356
|
-
"id":
|
374
|
+
"id": 22951,
|
357
375
|
"isConstant": false,
|
358
376
|
"isLValue": false,
|
359
377
|
"isPure": true,
|
@@ -361,41 +379,41 @@
|
|
361
379
|
"leftExpression": {
|
362
380
|
"expression": {
|
363
381
|
"expression": {
|
364
|
-
"id":
|
382
|
+
"id": 22945,
|
365
383
|
"name": "IModule",
|
366
384
|
"nodeType": "Identifier",
|
367
385
|
"overloadedDeclarations": [],
|
368
|
-
"referencedDeclaration":
|
369
|
-
"src": "
|
386
|
+
"referencedDeclaration": 22985,
|
387
|
+
"src": "360:7:35",
|
370
388
|
"typeDescriptions": {
|
371
|
-
"typeIdentifier": "t_type$_t_contract$_IModule_$
|
389
|
+
"typeIdentifier": "t_type$_t_contract$_IModule_$22985_$",
|
372
390
|
"typeString": "type(contract IModule)"
|
373
391
|
}
|
374
392
|
},
|
375
|
-
"id":
|
393
|
+
"id": 22946,
|
376
394
|
"isConstant": false,
|
377
395
|
"isLValue": false,
|
378
396
|
"isPure": true,
|
379
397
|
"lValueRequested": false,
|
380
|
-
"memberLocation": "
|
398
|
+
"memberLocation": "368:7:35",
|
381
399
|
"memberName": "getName",
|
382
400
|
"nodeType": "MemberAccess",
|
383
|
-
"referencedDeclaration":
|
384
|
-
"src": "
|
401
|
+
"referencedDeclaration": 22972,
|
402
|
+
"src": "360:15:35",
|
385
403
|
"typeDescriptions": {
|
386
404
|
"typeIdentifier": "t_function_declaration_view$__$returns$_t_bytes16_$",
|
387
405
|
"typeString": "function IModule.getName() view returns (bytes16)"
|
388
406
|
}
|
389
407
|
},
|
390
|
-
"id":
|
408
|
+
"id": 22947,
|
391
409
|
"isConstant": false,
|
392
410
|
"isLValue": false,
|
393
411
|
"isPure": true,
|
394
412
|
"lValueRequested": false,
|
395
|
-
"memberLocation": "
|
413
|
+
"memberLocation": "376:8:35",
|
396
414
|
"memberName": "selector",
|
397
415
|
"nodeType": "MemberAccess",
|
398
|
-
"src": "
|
416
|
+
"src": "360:24:35",
|
399
417
|
"typeDescriptions": {
|
400
418
|
"typeIdentifier": "t_bytes4",
|
401
419
|
"typeString": "bytes4"
|
@@ -406,47 +424,47 @@
|
|
406
424
|
"rightExpression": {
|
407
425
|
"expression": {
|
408
426
|
"expression": {
|
409
|
-
"id":
|
427
|
+
"id": 22948,
|
410
428
|
"name": "IModule",
|
411
429
|
"nodeType": "Identifier",
|
412
430
|
"overloadedDeclarations": [],
|
413
|
-
"referencedDeclaration":
|
414
|
-
"src": "
|
431
|
+
"referencedDeclaration": 22985,
|
432
|
+
"src": "389:7:35",
|
415
433
|
"typeDescriptions": {
|
416
|
-
"typeIdentifier": "t_type$_t_contract$_IModule_$
|
434
|
+
"typeIdentifier": "t_type$_t_contract$_IModule_$22985_$",
|
417
435
|
"typeString": "type(contract IModule)"
|
418
436
|
}
|
419
437
|
},
|
420
|
-
"id":
|
438
|
+
"id": 22949,
|
421
439
|
"isConstant": false,
|
422
440
|
"isLValue": false,
|
423
441
|
"isPure": true,
|
424
442
|
"lValueRequested": false,
|
425
|
-
"memberLocation": "
|
443
|
+
"memberLocation": "397:11:35",
|
426
444
|
"memberName": "installRoot",
|
427
445
|
"nodeType": "MemberAccess",
|
428
|
-
"referencedDeclaration":
|
429
|
-
"src": "
|
446
|
+
"referencedDeclaration": 22978,
|
447
|
+
"src": "389:19:35",
|
430
448
|
"typeDescriptions": {
|
431
449
|
"typeIdentifier": "t_function_declaration_nonpayable$_t_bytes_memory_ptr_$returns$__$",
|
432
450
|
"typeString": "function IModule.installRoot(bytes memory)"
|
433
451
|
}
|
434
452
|
},
|
435
|
-
"id":
|
453
|
+
"id": 22950,
|
436
454
|
"isConstant": false,
|
437
455
|
"isLValue": false,
|
438
456
|
"isPure": true,
|
439
457
|
"lValueRequested": false,
|
440
|
-
"memberLocation": "
|
458
|
+
"memberLocation": "409:8:35",
|
441
459
|
"memberName": "selector",
|
442
460
|
"nodeType": "MemberAccess",
|
443
|
-
"src": "
|
461
|
+
"src": "389:28:35",
|
444
462
|
"typeDescriptions": {
|
445
463
|
"typeIdentifier": "t_bytes4",
|
446
464
|
"typeString": "bytes4"
|
447
465
|
}
|
448
466
|
},
|
449
|
-
"src": "
|
467
|
+
"src": "360:57:35",
|
450
468
|
"typeDescriptions": {
|
451
469
|
"typeIdentifier": "t_bytes4",
|
452
470
|
"typeString": "bytes4"
|
@@ -457,47 +475,47 @@
|
|
457
475
|
"rightExpression": {
|
458
476
|
"expression": {
|
459
477
|
"expression": {
|
460
|
-
"id":
|
478
|
+
"id": 22952,
|
461
479
|
"name": "IModule",
|
462
480
|
"nodeType": "Identifier",
|
463
481
|
"overloadedDeclarations": [],
|
464
|
-
"referencedDeclaration":
|
465
|
-
"src": "
|
482
|
+
"referencedDeclaration": 22985,
|
483
|
+
"src": "422:7:35",
|
466
484
|
"typeDescriptions": {
|
467
|
-
"typeIdentifier": "t_type$_t_contract$_IModule_$
|
485
|
+
"typeIdentifier": "t_type$_t_contract$_IModule_$22985_$",
|
468
486
|
"typeString": "type(contract IModule)"
|
469
487
|
}
|
470
488
|
},
|
471
|
-
"id":
|
489
|
+
"id": 22953,
|
472
490
|
"isConstant": false,
|
473
491
|
"isLValue": false,
|
474
492
|
"isPure": true,
|
475
493
|
"lValueRequested": false,
|
476
|
-
"memberLocation": "
|
494
|
+
"memberLocation": "430:7:35",
|
477
495
|
"memberName": "install",
|
478
496
|
"nodeType": "MemberAccess",
|
479
|
-
"referencedDeclaration":
|
480
|
-
"src": "
|
497
|
+
"referencedDeclaration": 22984,
|
498
|
+
"src": "422:15:35",
|
481
499
|
"typeDescriptions": {
|
482
500
|
"typeIdentifier": "t_function_declaration_nonpayable$_t_bytes_memory_ptr_$returns$__$",
|
483
501
|
"typeString": "function IModule.install(bytes memory)"
|
484
502
|
}
|
485
503
|
},
|
486
|
-
"id":
|
504
|
+
"id": 22954,
|
487
505
|
"isConstant": false,
|
488
506
|
"isLValue": false,
|
489
507
|
"isPure": true,
|
490
508
|
"lValueRequested": false,
|
491
|
-
"memberLocation": "
|
509
|
+
"memberLocation": "438:8:35",
|
492
510
|
"memberName": "selector",
|
493
511
|
"nodeType": "MemberAccess",
|
494
|
-
"src": "
|
512
|
+
"src": "422:24:35",
|
495
513
|
"typeDescriptions": {
|
496
514
|
"typeIdentifier": "t_bytes4",
|
497
515
|
"typeString": "bytes4"
|
498
516
|
}
|
499
517
|
},
|
500
|
-
"src": "
|
518
|
+
"src": "360:86:35",
|
501
519
|
"typeDescriptions": {
|
502
520
|
"typeIdentifier": "t_bytes4",
|
503
521
|
"typeString": "bytes4"
|
@@ -506,18 +524,18 @@
|
|
506
524
|
"nodeType": "BinaryOperation",
|
507
525
|
"operator": "^",
|
508
526
|
"rightExpression": {
|
509
|
-
"id":
|
527
|
+
"id": 22956,
|
510
528
|
"name": "ERC165_INTERFACE_ID",
|
511
529
|
"nodeType": "Identifier",
|
512
530
|
"overloadedDeclarations": [],
|
513
|
-
"referencedDeclaration":
|
514
|
-
"src": "
|
531
|
+
"referencedDeclaration": 22927,
|
532
|
+
"src": "451:19:35",
|
515
533
|
"typeDescriptions": {
|
516
534
|
"typeIdentifier": "t_bytes4",
|
517
535
|
"typeString": "bytes4"
|
518
536
|
}
|
519
537
|
},
|
520
|
-
"src": "
|
538
|
+
"src": "360:110:35",
|
521
539
|
"typeDescriptions": {
|
522
540
|
"typeIdentifier": "t_bytes4",
|
523
541
|
"typeString": "bytes4"
|
@@ -526,76 +544,82 @@
|
|
526
544
|
"visibility": "internal"
|
527
545
|
},
|
528
546
|
{
|
529
|
-
"id":
|
547
|
+
"id": 22985,
|
530
548
|
"nodeType": "ContractDefinition",
|
531
|
-
"src": "
|
549
|
+
"src": "722:1291:35",
|
532
550
|
"nodes": [
|
533
551
|
{
|
534
|
-
"id":
|
552
|
+
"id": 22964,
|
535
553
|
"nodeType": "ErrorDefinition",
|
536
|
-
"src": "
|
554
|
+
"src": "830:39:35",
|
537
555
|
"nodes": [],
|
556
|
+
"documentation": {
|
557
|
+
"id": 22962,
|
558
|
+
"nodeType": "StructuredDocumentation",
|
559
|
+
"src": "755:72:35",
|
560
|
+
"text": "@dev Errors to represent non-support of specific installation types."
|
561
|
+
},
|
538
562
|
"errorSelector": "b6622fc0",
|
539
563
|
"name": "Module_RootInstallNotSupported",
|
540
|
-
"nameLocation": "
|
564
|
+
"nameLocation": "836:30:35",
|
541
565
|
"parameters": {
|
542
|
-
"id":
|
566
|
+
"id": 22963,
|
543
567
|
"nodeType": "ParameterList",
|
544
568
|
"parameters": [],
|
545
|
-
"src": "
|
569
|
+
"src": "866:2:35"
|
546
570
|
}
|
547
571
|
},
|
548
572
|
{
|
549
|
-
"id":
|
573
|
+
"id": 22966,
|
550
574
|
"nodeType": "ErrorDefinition",
|
551
|
-
"src": "
|
575
|
+
"src": "872:42:35",
|
552
576
|
"nodes": [],
|
553
577
|
"errorSelector": "ea8b184c",
|
554
578
|
"name": "Module_NonRootInstallNotSupported",
|
555
|
-
"nameLocation": "
|
579
|
+
"nameLocation": "878:33:35",
|
556
580
|
"parameters": {
|
557
|
-
"id":
|
581
|
+
"id": 22965,
|
558
582
|
"nodeType": "ParameterList",
|
559
583
|
"parameters": [],
|
560
|
-
"src": "
|
584
|
+
"src": "911:2:35"
|
561
585
|
}
|
562
586
|
},
|
563
587
|
{
|
564
|
-
"id":
|
588
|
+
"id": 22972,
|
565
589
|
"nodeType": "FunctionDefinition",
|
566
|
-
"src": "
|
590
|
+
"src": "1095:56:35",
|
567
591
|
"nodes": [],
|
568
592
|
"documentation": {
|
569
|
-
"id":
|
593
|
+
"id": 22967,
|
570
594
|
"nodeType": "StructuredDocumentation",
|
571
|
-
"src": "
|
572
|
-
"text": " Return the module name as a bytes16."
|
595
|
+
"src": "918:174:35",
|
596
|
+
"text": " @notice Return the name of the module.\n @dev Provides a way to identify the module by a unique name.\n @return name The name of the module as a bytes16."
|
573
597
|
},
|
574
598
|
"functionSelector": "17d7de7c",
|
575
599
|
"implemented": false,
|
576
600
|
"kind": "function",
|
577
601
|
"modifiers": [],
|
578
602
|
"name": "getName",
|
579
|
-
"nameLocation": "
|
603
|
+
"nameLocation": "1104:7:35",
|
580
604
|
"parameters": {
|
581
|
-
"id":
|
605
|
+
"id": 22968,
|
582
606
|
"nodeType": "ParameterList",
|
583
607
|
"parameters": [],
|
584
|
-
"src": "
|
608
|
+
"src": "1111:2:35"
|
585
609
|
},
|
586
610
|
"returnParameters": {
|
587
|
-
"id":
|
611
|
+
"id": 22971,
|
588
612
|
"nodeType": "ParameterList",
|
589
613
|
"parameters": [
|
590
614
|
{
|
591
615
|
"constant": false,
|
592
|
-
"id":
|
616
|
+
"id": 22970,
|
593
617
|
"mutability": "mutable",
|
594
618
|
"name": "name",
|
595
|
-
"nameLocation": "
|
619
|
+
"nameLocation": "1145:4:35",
|
596
620
|
"nodeType": "VariableDeclaration",
|
597
|
-
"scope":
|
598
|
-
"src": "
|
621
|
+
"scope": 22972,
|
622
|
+
"src": "1137:12:35",
|
599
623
|
"stateVariable": false,
|
600
624
|
"storageLocation": "default",
|
601
625
|
"typeDescriptions": {
|
@@ -603,10 +627,10 @@
|
|
603
627
|
"typeString": "bytes16"
|
604
628
|
},
|
605
629
|
"typeName": {
|
606
|
-
"id":
|
630
|
+
"id": 22969,
|
607
631
|
"name": "bytes16",
|
608
632
|
"nodeType": "ElementaryTypeName",
|
609
|
-
"src": "
|
633
|
+
"src": "1137:7:35",
|
610
634
|
"typeDescriptions": {
|
611
635
|
"typeIdentifier": "t_bytes16",
|
612
636
|
"typeString": "bytes16"
|
@@ -615,43 +639,43 @@
|
|
615
639
|
"visibility": "internal"
|
616
640
|
}
|
617
641
|
],
|
618
|
-
"src": "
|
642
|
+
"src": "1136:14:35"
|
619
643
|
},
|
620
|
-
"scope":
|
644
|
+
"scope": 22985,
|
621
645
|
"stateMutability": "view",
|
622
646
|
"virtual": false,
|
623
647
|
"visibility": "external"
|
624
648
|
},
|
625
649
|
{
|
626
|
-
"id":
|
650
|
+
"id": 22978,
|
627
651
|
"nodeType": "FunctionDefinition",
|
628
|
-
"src": "
|
652
|
+
"src": "1496:49:35",
|
629
653
|
"nodes": [],
|
630
654
|
"documentation": {
|
631
|
-
"id":
|
655
|
+
"id": 22973,
|
632
656
|
"nodeType": "StructuredDocumentation",
|
633
|
-
"src": "
|
634
|
-
"text": " This function is
|
657
|
+
"src": "1155:338:35",
|
658
|
+
"text": " @notice Installs the module as a root module.\n @dev This function is invoked by the World contract during `installRootModule` process.\n The module expects to be called via the World contract and thus installs itself on the `msg.sender`.\n @param args Arguments that may be needed during the installation process."
|
635
659
|
},
|
636
660
|
"functionSelector": "7c5b0335",
|
637
661
|
"implemented": false,
|
638
662
|
"kind": "function",
|
639
663
|
"modifiers": [],
|
640
664
|
"name": "installRoot",
|
641
|
-
"nameLocation": "
|
665
|
+
"nameLocation": "1505:11:35",
|
642
666
|
"parameters": {
|
643
|
-
"id":
|
667
|
+
"id": 22976,
|
644
668
|
"nodeType": "ParameterList",
|
645
669
|
"parameters": [
|
646
670
|
{
|
647
671
|
"constant": false,
|
648
|
-
"id":
|
672
|
+
"id": 22975,
|
649
673
|
"mutability": "mutable",
|
650
674
|
"name": "args",
|
651
|
-
"nameLocation": "
|
675
|
+
"nameLocation": "1530:4:35",
|
652
676
|
"nodeType": "VariableDeclaration",
|
653
|
-
"scope":
|
654
|
-
"src": "
|
677
|
+
"scope": 22978,
|
678
|
+
"src": "1517:17:35",
|
655
679
|
"stateVariable": false,
|
656
680
|
"storageLocation": "memory",
|
657
681
|
"typeDescriptions": {
|
@@ -659,10 +683,10 @@
|
|
659
683
|
"typeString": "bytes"
|
660
684
|
},
|
661
685
|
"typeName": {
|
662
|
-
"id":
|
686
|
+
"id": 22974,
|
663
687
|
"name": "bytes",
|
664
688
|
"nodeType": "ElementaryTypeName",
|
665
|
-
"src": "
|
689
|
+
"src": "1517:5:35",
|
666
690
|
"typeDescriptions": {
|
667
691
|
"typeIdentifier": "t_bytes_storage_ptr",
|
668
692
|
"typeString": "bytes"
|
@@ -671,49 +695,49 @@
|
|
671
695
|
"visibility": "internal"
|
672
696
|
}
|
673
697
|
],
|
674
|
-
"src": "
|
698
|
+
"src": "1516:19:35"
|
675
699
|
},
|
676
700
|
"returnParameters": {
|
677
|
-
"id":
|
701
|
+
"id": 22977,
|
678
702
|
"nodeType": "ParameterList",
|
679
703
|
"parameters": [],
|
680
|
-
"src": "
|
704
|
+
"src": "1544:0:35"
|
681
705
|
},
|
682
|
-
"scope":
|
706
|
+
"scope": 22985,
|
683
707
|
"stateMutability": "nonpayable",
|
684
708
|
"virtual": false,
|
685
709
|
"visibility": "external"
|
686
710
|
},
|
687
711
|
{
|
688
|
-
"id":
|
712
|
+
"id": 22984,
|
689
713
|
"nodeType": "FunctionDefinition",
|
690
|
-
"src": "
|
714
|
+
"src": "1966:45:35",
|
691
715
|
"nodes": [],
|
692
716
|
"documentation": {
|
693
|
-
"id":
|
717
|
+
"id": 22979,
|
694
718
|
"nodeType": "StructuredDocumentation",
|
695
|
-
"src": "
|
696
|
-
"text": " This function is
|
719
|
+
"src": "1549:414:35",
|
720
|
+
"text": " @notice Installs the module.\n @dev This function is invoked by the World contract during `installModule` process.\n The module expects to be called via the World contract and thus installs itself on the `msg.sender`.\n Logic might differ from `installRoot`, for example, this might accept namespace parameters.\n @param args Arguments that may be needed during the installation process."
|
697
721
|
},
|
698
722
|
"functionSelector": "13861fb5",
|
699
723
|
"implemented": false,
|
700
724
|
"kind": "function",
|
701
725
|
"modifiers": [],
|
702
726
|
"name": "install",
|
703
|
-
"nameLocation": "
|
727
|
+
"nameLocation": "1975:7:35",
|
704
728
|
"parameters": {
|
705
|
-
"id":
|
729
|
+
"id": 22982,
|
706
730
|
"nodeType": "ParameterList",
|
707
731
|
"parameters": [
|
708
732
|
{
|
709
733
|
"constant": false,
|
710
|
-
"id":
|
734
|
+
"id": 22981,
|
711
735
|
"mutability": "mutable",
|
712
736
|
"name": "args",
|
713
|
-
"nameLocation": "
|
737
|
+
"nameLocation": "1996:4:35",
|
714
738
|
"nodeType": "VariableDeclaration",
|
715
|
-
"scope":
|
716
|
-
"src": "
|
739
|
+
"scope": 22984,
|
740
|
+
"src": "1983:17:35",
|
717
741
|
"stateVariable": false,
|
718
742
|
"storageLocation": "memory",
|
719
743
|
"typeDescriptions": {
|
@@ -721,10 +745,10 @@
|
|
721
745
|
"typeString": "bytes"
|
722
746
|
},
|
723
747
|
"typeName": {
|
724
|
-
"id":
|
748
|
+
"id": 22980,
|
725
749
|
"name": "bytes",
|
726
750
|
"nodeType": "ElementaryTypeName",
|
727
|
-
"src": "
|
751
|
+
"src": "1983:5:35",
|
728
752
|
"typeDescriptions": {
|
729
753
|
"typeIdentifier": "t_bytes_storage_ptr",
|
730
754
|
"typeString": "bytes"
|
@@ -733,15 +757,15 @@
|
|
733
757
|
"visibility": "internal"
|
734
758
|
}
|
735
759
|
],
|
736
|
-
"src": "
|
760
|
+
"src": "1982:19:35"
|
737
761
|
},
|
738
762
|
"returnParameters": {
|
739
|
-
"id":
|
763
|
+
"id": 22983,
|
740
764
|
"nodeType": "ParameterList",
|
741
765
|
"parameters": [],
|
742
|
-
"src": "
|
766
|
+
"src": "2010:0:35"
|
743
767
|
},
|
744
|
-
"scope":
|
768
|
+
"scope": 22985,
|
745
769
|
"stateMutability": "nonpayable",
|
746
770
|
"virtual": false,
|
747
771
|
"visibility": "external"
|
@@ -751,34 +775,40 @@
|
|
751
775
|
"baseContracts": [
|
752
776
|
{
|
753
777
|
"baseName": {
|
754
|
-
"id":
|
778
|
+
"id": 22960,
|
755
779
|
"name": "IERC165",
|
756
780
|
"nameLocations": [
|
757
|
-
"
|
781
|
+
"743:7:35"
|
758
782
|
],
|
759
783
|
"nodeType": "IdentifierPath",
|
760
|
-
"referencedDeclaration":
|
761
|
-
"src": "
|
784
|
+
"referencedDeclaration": 22937,
|
785
|
+
"src": "743:7:35"
|
762
786
|
},
|
763
|
-
"id":
|
787
|
+
"id": 22961,
|
764
788
|
"nodeType": "InheritanceSpecifier",
|
765
|
-
"src": "
|
789
|
+
"src": "743:7:35"
|
766
790
|
}
|
767
791
|
],
|
768
792
|
"canonicalName": "IModule",
|
769
793
|
"contractDependencies": [],
|
770
794
|
"contractKind": "interface",
|
795
|
+
"documentation": {
|
796
|
+
"id": 22959,
|
797
|
+
"nodeType": "StructuredDocumentation",
|
798
|
+
"src": "473:248:35",
|
799
|
+
"text": " @title IModule\n @dev Interface for the Module system.\n A module can be installed within the context of a world, either as a root or non-root module.\n This interface adheres to the ERC-165 standard for determining interface support."
|
800
|
+
},
|
771
801
|
"fullyImplemented": false,
|
772
802
|
"linearizedBaseContracts": [
|
773
|
-
|
774
|
-
|
803
|
+
22985,
|
804
|
+
22937
|
775
805
|
],
|
776
806
|
"name": "IModule",
|
777
|
-
"nameLocation": "
|
778
|
-
"scope":
|
807
|
+
"nameLocation": "732:7:35",
|
808
|
+
"scope": 22986,
|
779
809
|
"usedErrors": [
|
780
|
-
|
781
|
-
|
810
|
+
22964,
|
811
|
+
22966
|
782
812
|
],
|
783
813
|
"usedEvents": []
|
784
814
|
}
|