@latticexyz/world 2.2.19 → 2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0
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/dist/{System.abi-ENBBMWQJ.js → System.abi-QE5PR27M.js} +2 -2
- package/dist/{System.abi-ENBBMWQJ.js.map → System.abi-QE5PR27M.js.map} +1 -1
- package/dist/{chunk-SGZK356L.js → chunk-PZKG3J66.js} +40 -21
- package/dist/chunk-PZKG3J66.js.map +1 -0
- package/dist/internal.js +1 -1
- package/dist/mud.config.d.ts +242 -131
- package/dist/mud.config.js +7 -5
- package/dist/node.js +21 -19
- package/dist/node.js.map +1 -1
- package/out/AccessControl.t.sol/AccessControlTest.json +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.abi.json.d.ts +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/AccessManagementSystemLib.sol/AccessManagementSystemLib.abi.json +7 -0
- package/out/AccessManagementSystemLib.sol/AccessManagementSystemLib.abi.json.d.ts +9 -0
- package/out/AccessManagementSystemLib.sol/AccessManagementSystemLib.json +1 -0
- package/out/AccessManagementSystemLib.sol/_grantAccess_ResourceId_address.abi.json +20 -0
- package/out/AccessManagementSystemLib.sol/_grantAccess_ResourceId_address.abi.json.d.ts +22 -0
- package/out/AccessManagementSystemLib.sol/_grantAccess_ResourceId_address.json +1 -0
- package/out/AccessManagementSystemLib.sol/_renounceOwnership_ResourceId.abi.json +15 -0
- package/out/AccessManagementSystemLib.sol/_renounceOwnership_ResourceId.abi.json.d.ts +17 -0
- package/out/AccessManagementSystemLib.sol/_renounceOwnership_ResourceId.json +1 -0
- package/out/AccessManagementSystemLib.sol/_revokeAccess_ResourceId_address.abi.json +20 -0
- package/out/AccessManagementSystemLib.sol/_revokeAccess_ResourceId_address.abi.json.d.ts +22 -0
- package/out/AccessManagementSystemLib.sol/_revokeAccess_ResourceId_address.json +1 -0
- package/out/AccessManagementSystemLib.sol/_transferOwnership_ResourceId_address.abi.json +20 -0
- package/out/AccessManagementSystemLib.sol/_transferOwnership_ResourceId_address.abi.json.d.ts +22 -0
- package/out/AccessManagementSystemLib.sol/_transferOwnership_ResourceId_address.json +1 -0
- package/out/AddressArray.sol/AddressArray.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.abi.json.d.ts +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/BalanceTransferSystemLib.sol/BalanceTransferSystemLib.abi.json +7 -0
- package/out/BalanceTransferSystemLib.sol/BalanceTransferSystemLib.abi.json.d.ts +9 -0
- package/out/BalanceTransferSystemLib.sol/BalanceTransferSystemLib.json +1 -0
- package/out/BalanceTransferSystemLib.sol/_transferBalanceToAddress_ResourceId_address_uint256.abi.json +25 -0
- package/out/BalanceTransferSystemLib.sol/_transferBalanceToAddress_ResourceId_address_uint256.abi.json.d.ts +27 -0
- package/out/BalanceTransferSystemLib.sol/_transferBalanceToAddress_ResourceId_address_uint256.json +1 -0
- package/out/BalanceTransferSystemLib.sol/_transferBalanceToNamespace_ResourceId_ResourceId_uint256.abi.json +25 -0
- package/out/BalanceTransferSystemLib.sol/_transferBalanceToNamespace_ResourceId_ResourceId_uint256.abi.json.d.ts +27 -0
- package/out/BalanceTransferSystemLib.sol/_transferBalanceToNamespace_ResourceId_ResourceId_uint256.json +1 -0
- package/out/Balances.sol/Balances.json +1 -1
- package/out/BatchCall.t.sol/BatchCallTest.json +1 -1
- package/out/BatchCall.t.sol/TestSystem.abi.json +1 -1
- package/out/BatchCall.t.sol/TestSystem.abi.json.d.ts +1 -1
- package/out/BatchCall.t.sol/TestSystem.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.abi.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.abi.json.d.ts +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/BatchCallSystemLib.sol/BatchCallSystemLib.abi.json +7 -0
- package/out/BatchCallSystemLib.sol/BatchCallSystemLib.abi.json.d.ts +9 -0
- package/out/BatchCallSystemLib.sol/BatchCallSystemLib.json +1 -0
- package/out/BatchCallSystemLib.sol/_batchCallFrom_SystemCallFromDataArray.abi.json +32 -0
- package/out/BatchCallSystemLib.sol/_batchCallFrom_SystemCallFromDataArray.abi.json.d.ts +34 -0
- package/out/BatchCallSystemLib.sol/_batchCallFrom_SystemCallFromDataArray.json +1 -0
- package/out/BatchCallSystemLib.sol/_batchCall_SystemCallDataArray.abi.json +27 -0
- package/out/BatchCallSystemLib.sol/_batchCall_SystemCallDataArray.abi.json.d.ts +29 -0
- package/out/BatchCallSystemLib.sol/_batchCall_SystemCallDataArray.json +1 -0
- package/out/Bool.sol/Bool.json +1 -1
- package/out/Create2Factory.sol/Create2Factory.json +1 -1
- package/out/Delegation.sol/Delegation.json +1 -1
- package/out/DelegationControl.sol/DelegationControl.abi.json +1 -1
- package/out/DelegationControl.sol/DelegationControl.abi.json.d.ts +1 -1
- package/out/DelegationControl.sol/DelegationControl.json +1 -1
- package/out/DelegationControlMock.sol/DelegationControlMock.abi.json +1 -1
- package/out/DelegationControlMock.sol/DelegationControlMock.abi.json.d.ts +1 -1
- package/out/DelegationControlMock.sol/DelegationControlMock.json +1 -1
- package/out/EchoSubscriber.sol/EchoSubscriber.json +1 -1
- package/out/Factories.t.sol/FactoriesTest.json +1 -1
- package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
- package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
- package/out/GasReporter.sol/GasReporter.json +1 -1
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -1
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -1
- package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -1
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -1
- package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -1
- package/out/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json +81 -0
- package/out/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json.d.ts +83 -0
- package/out/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.json +1 -0
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
- package/out/InitModule.sol/InitModule.abi.json +3 -3
- package/out/InitModule.sol/InitModule.abi.json.d.ts +3 -3
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/InitModule.t.sol/InitModuleTest.json +1 -1
- package/out/InitModule.t.sol/WorldMock.json +1 -1
- package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
- package/out/InitSystems.t.sol/LimitedCallContextTest.json +1 -1
- package/out/InstalledModules.sol/InstalledModules.json +1 -1
- package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -1
- package/out/Module.sol/Module.abi.json +1 -1
- package/out/Module.sol/Module.abi.json.d.ts +1 -1
- package/out/Module.sol/Module.json +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json.d.ts +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
- package/out/ModuleInstallationSystemLib.sol/ModuleInstallationSystemLib.abi.json +7 -0
- package/out/ModuleInstallationSystemLib.sol/ModuleInstallationSystemLib.abi.json.d.ts +9 -0
- package/out/ModuleInstallationSystemLib.sol/ModuleInstallationSystemLib.json +1 -0
- package/out/ModuleInstallationSystemLib.sol/_installModule_IModule_bytes.abi.json +20 -0
- package/out/ModuleInstallationSystemLib.sol/_installModule_IModule_bytes.abi.json.d.ts +22 -0
- package/out/ModuleInstallationSystemLib.sol/_installModule_IModule_bytes.json +1 -0
- package/out/MudTest.t.sol/MudTest.json +1 -1
- package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
- package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.abi.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.abi.json.d.ts +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/RegistrationSystemLib.sol/RegistrationSystemLib.abi.json +7 -0
- package/out/RegistrationSystemLib.sol/RegistrationSystemLib.abi.json.d.ts +9 -0
- package/out/RegistrationSystemLib.sol/RegistrationSystemLib.json +1 -0
- package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
- package/out/RevertSubscriber.sol/RevertSubscriber.json +1 -1
- package/out/RevertWithBytes.t.sol/RevertWithBytesTest.json +1 -1
- package/out/StdError.sol/stdError.json +1 -1
- package/out/StoreMock.sol/StoreMock.json +1 -1
- package/out/StoreRead.sol/StoreRead.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json.d.ts +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
- package/out/StoreRegistrationSystemLib.sol/StoreRegistrationSystemLib.abi.json +7 -0
- package/out/StoreRegistrationSystemLib.sol/StoreRegistrationSystemLib.abi.json.d.ts +9 -0
- package/out/StoreRegistrationSystemLib.sol/StoreRegistrationSystemLib.json +1 -0
- package/out/StoreRegistrationSystemLib.sol/_registerStoreHook_ResourceId_IStoreHook_uint8.abi.json +25 -0
- package/out/StoreRegistrationSystemLib.sol/_registerStoreHook_ResourceId_IStoreHook_uint8.abi.json.d.ts +27 -0
- package/out/StoreRegistrationSystemLib.sol/_registerStoreHook_ResourceId_IStoreHook_uint8.json +1 -0
- package/out/StoreRegistrationSystemLib.sol/_registerTable_ResourceId_FieldLayout_Schema_Schema_stringArray_stringArray.abi.json +40 -0
- package/out/StoreRegistrationSystemLib.sol/_registerTable_ResourceId_FieldLayout_Schema_Schema_stringArray_stringArray.abi.json.d.ts +42 -0
- package/out/StoreRegistrationSystemLib.sol/_registerTable_ResourceId_FieldLayout_Schema_Schema_stringArray_stringArray.json +1 -0
- package/out/StoreRegistrationSystemLib.sol/_unregisterStoreHook_ResourceId_IStoreHook.abi.json +20 -0
- package/out/StoreRegistrationSystemLib.sol/_unregisterStoreHook_ResourceId_IStoreHook.abi.json.d.ts +22 -0
- package/out/StoreRegistrationSystemLib.sol/_unregisterStoreHook_ResourceId_IStoreHook.json +1 -0
- package/out/System.sol/System.abi.json +1 -1
- package/out/System.sol/System.abi.json.d.ts +1 -1
- package/out/System.sol/System.json +1 -1
- package/out/System.t.sol/SystemTest.json +1 -1
- package/out/System.t.sol/TestSystem.abi.json +1 -1
- package/out/System.t.sol/TestSystem.abi.json.d.ts +1 -1
- package/out/System.t.sol/TestSystem.json +1 -1
- package/out/SystemCall.sol/SystemCall.json +1 -1
- package/out/SystemHook.t.sol/SystemHookTest.json +1 -1
- package/out/SystemHooks.sol/SystemHooks.json +1 -1
- package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
- package/out/Systems.sol/Systems.json +1 -1
- package/out/TwoFields.sol/TwoFields.json +1 -1
- package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
- package/out/Utils.t.sol/UtilsTest.json +1 -1
- package/out/Utils.t.sol/UtilsTestSystem.abi.json +1 -1
- package/out/Utils.t.sol/UtilsTestSystem.abi.json.d.ts +1 -1
- package/out/Utils.t.sol/UtilsTestSystem.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/World.t.sol/EchoSystemHook.json +1 -1
- package/out/World.t.sol/IWorldTestSystem.json +1 -1
- package/out/World.t.sol/PayableFallbackSystem.abi.json +1 -1
- package/out/World.t.sol/PayableFallbackSystem.abi.json.d.ts +1 -1
- package/out/World.t.sol/PayableFallbackSystem.json +1 -1
- package/out/World.t.sol/RevertSystemHook.json +1 -1
- package/out/World.t.sol/WorldTest.json +1 -1
- package/out/World.t.sol/WorldTestSystem.abi.json +1 -1
- package/out/World.t.sol/WorldTestSystem.abi.json.d.ts +1 -1
- package/out/World.t.sol/WorldTestSystem.json +1 -1
- package/out/WorldBalance.t.sol/WorldBalanceTest.json +1 -1
- package/out/WorldBalance.t.sol/WorldBalanceTestSystem.abi.json +1 -1
- package/out/WorldBalance.t.sol/WorldBalanceTestSystem.abi.json.d.ts +1 -1
- package/out/WorldBalance.t.sol/WorldBalanceTestSystem.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumer.abi.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumer.abi.json.d.ts +1 -1
- package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
- package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
- package/out/WorldContext.t.sol/TestContextConsumer.abi.json +1 -1
- package/out/WorldContext.t.sol/TestContextConsumer.abi.json.d.ts +1 -1
- package/out/WorldContext.t.sol/TestContextConsumer.json +1 -1
- package/out/WorldContext.t.sol/WorldContextTest.json +1 -1
- package/out/WorldDynamicUpdate.t.sol/UpdateInDynamicFieldTest.json +1 -1
- package/out/WorldFactory.sol/WorldFactory.json +1 -1
- package/out/WorldProxy.sol/WorldProxy.json +1 -1
- package/out/WorldProxy.t.sol/WorldProxyTest.json +1 -1
- package/out/WorldProxyFactory.sol/WorldProxyFactory.json +1 -1
- package/out/WorldProxyFactory.t.sol/WorldProxyFactoryTest.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json.d.ts +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
- package/out/WorldRegistrationSystemLib.sol/WorldRegistrationSystemLib.abi.json +7 -0
- package/out/WorldRegistrationSystemLib.sol/WorldRegistrationSystemLib.abi.json.d.ts +9 -0
- package/out/WorldRegistrationSystemLib.sol/WorldRegistrationSystemLib.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerDelegation_address_ResourceId_bytes.abi.json +25 -0
- package/out/WorldRegistrationSystemLib.sol/_registerDelegation_address_ResourceId_bytes.abi.json.d.ts +27 -0
- package/out/WorldRegistrationSystemLib.sol/_registerDelegation_address_ResourceId_bytes.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerFunctionSelector_ResourceId_string.abi.json +20 -0
- package/out/WorldRegistrationSystemLib.sol/_registerFunctionSelector_ResourceId_string.abi.json.d.ts +22 -0
- package/out/WorldRegistrationSystemLib.sol/_registerFunctionSelector_ResourceId_string.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerNamespaceDelegation_ResourceId_ResourceId_bytes.abi.json +25 -0
- package/out/WorldRegistrationSystemLib.sol/_registerNamespaceDelegation_ResourceId_ResourceId_bytes.abi.json.d.ts +27 -0
- package/out/WorldRegistrationSystemLib.sol/_registerNamespaceDelegation_ResourceId_ResourceId_bytes.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerNamespace_ResourceId.abi.json +15 -0
- package/out/WorldRegistrationSystemLib.sol/_registerNamespace_ResourceId.abi.json.d.ts +17 -0
- package/out/WorldRegistrationSystemLib.sol/_registerNamespace_ResourceId.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerRootFunctionSelector_ResourceId_string_string.abi.json +25 -0
- package/out/WorldRegistrationSystemLib.sol/_registerRootFunctionSelector_ResourceId_string_string.abi.json.d.ts +27 -0
- package/out/WorldRegistrationSystemLib.sol/_registerRootFunctionSelector_ResourceId_string_string.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerSystemHook_ResourceId_ISystemHook_uint8.abi.json +25 -0
- package/out/WorldRegistrationSystemLib.sol/_registerSystemHook_ResourceId_ISystemHook_uint8.abi.json.d.ts +27 -0
- package/out/WorldRegistrationSystemLib.sol/_registerSystemHook_ResourceId_ISystemHook_uint8.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_registerSystem_ResourceId_System_bool.abi.json +25 -0
- package/out/WorldRegistrationSystemLib.sol/_registerSystem_ResourceId_System_bool.abi.json.d.ts +27 -0
- package/out/WorldRegistrationSystemLib.sol/_registerSystem_ResourceId_System_bool.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterDelegation_address.abi.json +15 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterDelegation_address.abi.json.d.ts +17 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterDelegation_address.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterNamespaceDelegation_ResourceId.abi.json +15 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterNamespaceDelegation_ResourceId.abi.json.d.ts +17 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterNamespaceDelegation_ResourceId.json +1 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterSystemHook_ResourceId_ISystemHook.abi.json +20 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterSystemHook_ResourceId_ISystemHook.abi.json.d.ts +22 -0
- package/out/WorldRegistrationSystemLib.sol/_unregisterSystemHook_ResourceId_ISystemHook.json +1 -0
- package/out/WorldResourceId.t.sol/WorldResourceIdTest.json +1 -1
- package/out/build-info/{27bef2dac23cc424daa40171c98ac387.json → 6366a746548e984842b93ef762b76b99.json} +1 -1
- package/out/test.sol/DSTest.json +1 -1
- package/package.json +9 -9
- package/src/Module.sol +21 -0
- package/src/WorldContext.sol +1 -1
- package/src/codegen/experimental/systems/AccessManagementSystemLib.sol +182 -0
- package/src/codegen/experimental/systems/BalanceTransferSystemLib.sol +169 -0
- package/src/codegen/experimental/systems/BatchCallSystemLib.sol +153 -0
- package/src/codegen/experimental/systems/ModuleInstallationSystemLib.sol +107 -0
- package/src/codegen/experimental/systems/RegistrationSystemLib.sol +71 -0
- package/src/codegen/experimental/systems/StoreRegistrationSystemLib.sol +228 -0
- package/src/codegen/experimental/systems/WorldRegistrationSystemLib.sol +471 -0
- package/src/codegen/interfaces/IStoreRegistrationSystem.sol +29 -0
- package/src/modules/init/InitModule.sol +0 -8
- package/src/modules/init/implementations/ModuleInstallationSystem.sol +1 -1
- package/src/modules/init/implementations/StoreRegistrationSystem.sol +2 -1
- package/src/modules/init/implementations/WorldRegistrationSystem.sol +1 -1
- package/dist/chunk-SGZK356L.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"id":"
|
1
|
+
{"id":"6366a746548e984842b93ef762b76b99","source_id_to_path":{"0":"node_modules/@latticexyz/gas-report/src/GasReporter.sol","1":"node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol","2":"node_modules/@latticexyz/store/src/Bytes.sol","3":"node_modules/@latticexyz/store/src/EncodedLengths.sol","4":"node_modules/@latticexyz/store/src/FieldLayout.sol","5":"node_modules/@latticexyz/store/src/Hook.sol","6":"node_modules/@latticexyz/store/src/IERC165.sol","7":"node_modules/@latticexyz/store/src/IEncodedLengthsErrors.sol","8":"node_modules/@latticexyz/store/src/IFieldLayoutErrors.sol","9":"node_modules/@latticexyz/store/src/ISchemaErrors.sol","10":"node_modules/@latticexyz/store/src/ISliceErrors.sol","11":"node_modules/@latticexyz/store/src/IStore.sol","12":"node_modules/@latticexyz/store/src/IStoreErrors.sol","13":"node_modules/@latticexyz/store/src/IStoreEvents.sol","14":"node_modules/@latticexyz/store/src/IStoreHook.sol","15":"node_modules/@latticexyz/store/src/IStoreKernel.sol","16":"node_modules/@latticexyz/store/src/IStoreRead.sol","17":"node_modules/@latticexyz/store/src/IStoreRegistration.sol","18":"node_modules/@latticexyz/store/src/IStoreWrite.sol","19":"node_modules/@latticexyz/store/src/Memory.sol","20":"node_modules/@latticexyz/store/src/ResourceId.sol","21":"node_modules/@latticexyz/store/src/Schema.sol","22":"node_modules/@latticexyz/store/src/Slice.sol","23":"node_modules/@latticexyz/store/src/Storage.sol","24":"node_modules/@latticexyz/store/src/Store.sol","25":"node_modules/@latticexyz/store/src/StoreCore.sol","26":"node_modules/@latticexyz/store/src/StoreHook.sol","27":"node_modules/@latticexyz/store/src/StoreKernel.sol","28":"node_modules/@latticexyz/store/src/StoreRead.sol","29":"node_modules/@latticexyz/store/src/StoreSwitch.sol","30":"node_modules/@latticexyz/store/src/codegen/index.sol","31":"node_modules/@latticexyz/store/src/codegen/tables/Hooks.sol","32":"node_modules/@latticexyz/store/src/codegen/tables/ResourceIds.sol","33":"node_modules/@latticexyz/store/src/codegen/tables/StoreHooks.sol","34":"node_modules/@latticexyz/store/src/codegen/tables/Tables.sol","35":"node_modules/@latticexyz/store/src/constants.sol","36":"node_modules/@latticexyz/store/src/rightMask.sol","37":"node_modules/@latticexyz/store/src/storeHookTypes.sol","38":"node_modules/@latticexyz/store/src/storeResourceTypes.sol","39":"node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol","40":"node_modules/@latticexyz/store/src/tightcoder/EncodeArray.sol","41":"node_modules/@latticexyz/store/src/tightcoder/TightCoder.sol","42":"node_modules/@latticexyz/store/src/version.sol","43":"node_modules/@latticexyz/store/test/EchoSubscriber.sol","44":"node_modules/@latticexyz/store/test/FieldLayoutEncodeHelper.sol","45":"node_modules/@latticexyz/store/test/RevertSubscriber.sol","46":"node_modules/@latticexyz/store/test/SchemaEncodeHelper.sol","47":"node_modules/@latticexyz/store/test/StoreMock.sol","48":"node_modules/ds-test/src/test.sol","49":"node_modules/forge-std/src/Base.sol","50":"node_modules/forge-std/src/StdAssertions.sol","51":"node_modules/forge-std/src/StdChains.sol","52":"node_modules/forge-std/src/StdCheats.sol","53":"node_modules/forge-std/src/StdError.sol","54":"node_modules/forge-std/src/StdInvariant.sol","55":"node_modules/forge-std/src/StdJson.sol","56":"node_modules/forge-std/src/StdMath.sol","57":"node_modules/forge-std/src/StdStorage.sol","58":"node_modules/forge-std/src/StdStyle.sol","59":"node_modules/forge-std/src/StdUtils.sol","60":"node_modules/forge-std/src/Test.sol","61":"node_modules/forge-std/src/Vm.sol","62":"node_modules/forge-std/src/console.sol","63":"node_modules/forge-std/src/console2.sol","64":"node_modules/forge-std/src/interfaces/IMulticall3.sol","65":"node_modules/forge-std/src/safeconsole.sol","66":"src/AccessControl.sol","67":"src/Create2.sol","68":"src/Create2Factory.sol","69":"src/Delegation.sol","70":"src/DelegationControl.sol","71":"src/ERC165Checker.sol","72":"src/IDelegationControl.sol","73":"src/IERC165.sol","74":"src/IERC1967.sol","75":"src/IModule.sol","76":"src/IModuleErrors.sol","77":"src/ISystemHook.sol","78":"src/IWorldContextConsumer.sol","79":"src/IWorldErrors.sol","80":"src/IWorldEvents.sol","81":"src/IWorldFactory.sol","82":"src/IWorldKernel.sol","83":"src/Module.sol","84":"src/Proxy.sol","85":"src/StorageSlot.sol","86":"src/System.sol","87":"src/SystemCall.sol","88":"src/SystemHook.sol","89":"src/Utils.sol","90":"src/World.sol","91":"src/WorldContext.sol","92":"src/WorldFactory.sol","93":"src/WorldProxy.sol","94":"src/WorldProxyFactory.sol","95":"src/WorldResourceId.sol","96":"src/codegen/experimental/systems/AccessManagementSystemLib.sol","97":"src/codegen/experimental/systems/BalanceTransferSystemLib.sol","98":"src/codegen/experimental/systems/BatchCallSystemLib.sol","99":"src/codegen/experimental/systems/ModuleInstallationSystemLib.sol","100":"src/codegen/experimental/systems/RegistrationSystemLib.sol","101":"src/codegen/experimental/systems/StoreRegistrationSystemLib.sol","102":"src/codegen/experimental/systems/WorldRegistrationSystemLib.sol","103":"src/codegen/index.sol","104":"src/codegen/interfaces/IAccessManagementSystem.sol","105":"src/codegen/interfaces/IBalanceTransferSystem.sol","106":"src/codegen/interfaces/IBaseWorld.sol","107":"src/codegen/interfaces/IBatchCallSystem.sol","108":"src/codegen/interfaces/IModuleInstallationSystem.sol","109":"src/codegen/interfaces/IRegistrationSystem.sol","110":"src/codegen/interfaces/IStoreRegistrationSystem.sol","111":"src/codegen/interfaces/IWorldRegistrationSystem.sol","112":"src/codegen/tables/Balances.sol","113":"src/codegen/tables/FunctionSelectors.sol","114":"src/codegen/tables/FunctionSignatures.sol","115":"src/codegen/tables/InitModuleAddress.sol","116":"src/codegen/tables/InstalledModules.sol","117":"src/codegen/tables/NamespaceDelegationControl.sol","118":"src/codegen/tables/NamespaceOwner.sol","119":"src/codegen/tables/ResourceAccess.sol","120":"src/codegen/tables/SystemHooks.sol","121":"src/codegen/tables/SystemRegistry.sol","122":"src/codegen/tables/Systems.sol","123":"src/codegen/tables/UserDelegationControl.sol","124":"src/constants.sol","125":"src/modules/init/InitModule.sol","126":"src/modules/init/LimitedCallContext.sol","127":"src/modules/init/RegistrationSystem.sol","128":"src/modules/init/constants.sol","129":"src/modules/init/functionSignatures.sol","130":"src/modules/init/implementations/AccessManagementSystem.sol","131":"src/modules/init/implementations/BalanceTransferSystem.sol","132":"src/modules/init/implementations/BatchCallSystem.sol","133":"src/modules/init/implementations/ModuleInstallationSystem.sol","134":"src/modules/init/implementations/StoreRegistrationSystem.sol","135":"src/modules/init/implementations/WorldRegistrationSystem.sol","136":"src/modules/init/implementations/createDelegation.sol","137":"src/modules/init/types.sol","138":"src/requireInterface.sol","139":"src/requireNamespace.sol","140":"src/requireValidNamespace.sol","141":"src/revertWithBytes.sol","142":"src/systemHookTypes.sol","143":"src/version.sol","144":"src/worldResourceTypes.sol","145":"test/AccessControl.t.sol","146":"test/BatchCall.t.sol","147":"test/DelegationControlMock.sol","148":"test/Factories.t.sol","149":"test/InitModule.t.sol","150":"test/InitSystems.t.sol","151":"test/MudTest.t.sol","152":"test/RevertWithBytes.t.sol","153":"test/System.t.sol","154":"test/SystemHook.t.sol","155":"test/Utils.t.sol","156":"test/World.t.sol","157":"test/WorldBalance.t.sol","158":"test/WorldContext.t.sol","159":"test/WorldDynamicUpdate.t.sol","160":"test/WorldProxy.t.sol","161":"test/WorldProxyFactory.t.sol","162":"test/WorldResourceId.t.sol","163":"test/codegen/index.sol","164":"test/codegen/tables/AddressArray.sol","165":"test/codegen/tables/Bool.sol","166":"test/codegen/tables/TwoFields.sol","167":"test/createInitModule.sol","168":"test/createWorld.sol","169":"test/createWorldProxy.sol"},"language":"Solidity"}
|
package/out/test.sol/DSTest.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"abi":[{"type":"function","name":"IS_TEST","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"failed","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"event","name":"log","inputs":[{"name":"","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_address","inputs":[{"name":"","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"log_bytes","inputs":[{"name":"","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"log_bytes32","inputs":[{"name":"","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"log_int","inputs":[{"name":"","type":"int256","indexed":false,"internalType":"int256"}],"anonymous":false},{"type":"event","name":"log_named_address","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"log_named_bytes","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"log_named_bytes32","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"log_named_decimal_int","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"int256","indexed":false,"internalType":"int256"},{"name":"decimals","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_named_decimal_uint","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"decimals","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_named_int","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"int256","indexed":false,"internalType":"int256"}],"anonymous":false},{"type":"event","name":"log_named_string","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_named_uint","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_string","inputs":[{"name":"","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_uint","inputs":[{"name":"","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"logs","inputs":[{"name":"","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false}],"bytecode":{"object":"0x60806040525f805460ff1916600117905534801561001b575f80fd5b5061025e806100295f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063ba414fa614610038578063fa7626d414610054575b5f80fd5b610040610060565b604051901515815260200160405180910390f35b5f546100409060ff1681565b5f8054610100900460ff161561007e57505f54610100900460ff1690565b5f737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101b35760408051737109709ecfa91a80626ff3989d68f67f5b1dd12d602082018190527f6661696c6564000000000000000000000000000000000000000000000000000082840152825180830384018152606083019093525f929091610121917f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4916080016101e5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261015991610220565b5f604051808303815f865af19150503d805f8114610192576040519150601f19603f3d011682016040523d82523d5f602084013e610197565b606091505b50915050808060200190518101906101af9190610232565b9150505b919050565b5f81515f5b818110156101d757602081850181015186830152016101bd565b505f93019283525090919050565b7fffffffff00000000000000000000000000000000000000000000000000000000831681525f61021860048301846101b8565b949350505050565b5f61022b82846101b8565b9392505050565b5f60208284031215610242575f80fd5b8151801515811461022b575f80fdfea164736f6c6343000818000a","sourceMap":"715:19781:48:-:0;;;1572:26;;;-1:-1:-1;;1572:26:48;1594:4;1572:26;;;715:19781;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063ba414fa614610038578063fa7626d414610054575b5f80fd5b610040610060565b604051901515815260200160405180910390f35b5f546100409060ff1681565b5f8054610100900460ff161561007e57505f54610100900460ff1690565b5f737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101b35760408051737109709ecfa91a80626ff3989d68f67f5b1dd12d602082018190527f6661696c6564000000000000000000000000000000000000000000000000000082840152825180830384018152606083019093525f929091610121917f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4916080016101e5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261015991610220565b5f604051808303815f865af19150503d805f8114610192576040519150601f19603f3d011682016040523d82523d5f602084013e610197565b606091505b50915050808060200190518101906101af9190610232565b9150505b919050565b5f81515f5b818110156101d757602081850181015186830152016101bd565b505f93019283525090919050565b7fffffffff00000000000000000000000000000000000000000000000000000000831681525f61021860048301846101b8565b949350505050565b5f61022b82846101b8565b9392505050565b5f60208284031215610242575f80fd5b8151801515811461022b575f80fdfea164736f6c6343000818000a","sourceMap":"715:19781:48:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1819:584;;;:::i;:::-;;;179:14:162;;172:22;154:41;;142:2;127:18;1819:584:48;;;;;;;1572:26;;;;;;;;;1819:584;1853:4;1873:7;;;;;;;1869:528;;;-1:-1:-1;1903:7:48;;;;;;;;1819:584::o;1869:528::-;1941:17;2997:42;2985:55;3066:16;1980:374;;2196:43;;;1671:64;2196:43;;;380:74:162;;;2221:17:48;470:18:162;;;463:34;2196:43:48;;;;;;;;;353:18:162;;;2196:43:48;;;-1:-1:-1;;1671:64:48;;2086:175;;2135:34;;2086:175;;;:::i;:::-;;;;;;;;;;;;;;;2047:232;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2020:259;;;2323:7;2312:27;;;;;;;;;;;;:::i;:::-;2297:42;;2002:352;1980:374;2374:12;1819:584;-1:-1:-1;1819:584:48:o;508:322:162:-;549:3;587:5;581:12;611:1;621:128;635:6;632:1;629:13;621:128;;;732:4;717:13;;;713:24;;707:31;694:11;;;687:52;650:12;621:128;;;-1:-1:-1;804:1:162;768:16;;793:13;;;-1:-1:-1;768:16:162;;508:322;-1:-1:-1;508:322:162:o;835:324::-;1032:66;1024:6;1020:79;1015:3;1008:92;990:3;1116:37;1150:1;1145:3;1141:11;1133:6;1116:37;:::i;:::-;1109:44;835:324;-1:-1:-1;;;;835:324:162:o;1164:189::-;1293:3;1318:29;1343:3;1335:6;1318:29;:::i;:::-;1311:36;1164:189;-1:-1:-1;;;1164:189:162:o;1358:277::-;1425:6;1478:2;1466:9;1457:7;1453:23;1449:32;1446:52;;;1494:1;1491;1484:12;1446:52;1526:9;1520:16;1579:5;1572:13;1565:21;1558:5;1555:32;1545:60;;1601:1;1598;1591:12","linkReferences":{}},"methodIdentifiers":{"IS_TEST()":"fa7626d4","failed()":"ba414fa6"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"log_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"log_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"log_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"name\":\"log_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"val\",\"type\":\"address\"}],\"name\":\"log_named_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"val\",\"type\":\"bytes\"}],\"name\":\"log_named_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"val\",\"type\":\"bytes32\"}],\"name\":\"log_named_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"}],\"name\":\"log_named_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"val\",\"type\":\"string\"}],\"name\":\"log_named_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"log_named_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"log_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"logs\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"IS_TEST\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"failed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/ds-test/src/test.sol\":\"DSTest\"},\"evmVersion\":\"cancun\",\"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\":{\"node_modules/ds-test/src/test.sol\":{\"keccak256\":\"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240\",\"dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"","type":"string","indexed":false}],"type":"event","name":"log","anonymous":false},{"inputs":[{"internalType":"address","name":"","type":"address","indexed":false}],"type":"event","name":"log_address","anonymous":false},{"inputs":[{"internalType":"bytes","name":"","type":"bytes","indexed":false}],"type":"event","name":"log_bytes","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32","indexed":false}],"type":"event","name":"log_bytes32","anonymous":false},{"inputs":[{"internalType":"int256","name":"","type":"int256","indexed":false}],"type":"event","name":"log_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"address","name":"val","type":"address","indexed":false}],"type":"event","name":"log_named_address","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"bytes","name":"val","type":"bytes","indexed":false}],"type":"event","name":"log_named_bytes","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"bytes32","name":"val","type":"bytes32","indexed":false}],"type":"event","name":"log_named_bytes32","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"int256","name":"val","type":"int256","indexed":false},{"internalType":"uint256","name":"decimals","type":"uint256","indexed":false}],"type":"event","name":"log_named_decimal_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"uint256","name":"val","type":"uint256","indexed":false},{"internalType":"uint256","name":"decimals","type":"uint256","indexed":false}],"type":"event","name":"log_named_decimal_uint","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"int256","name":"val","type":"int256","indexed":false}],"type":"event","name":"log_named_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"string","name":"val","type":"string","indexed":false}],"type":"event","name":"log_named_string","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"uint256","name":"val","type":"uint256","indexed":false}],"type":"event","name":"log_named_uint","anonymous":false},{"inputs":[{"internalType":"string","name":"","type":"string","indexed":false}],"type":"event","name":"log_string","anonymous":false},{"inputs":[{"internalType":"uint256","name":"","type":"uint256","indexed":false}],"type":"event","name":"log_uint","anonymous":false},{"inputs":[{"internalType":"bytes","name":"","type":"bytes","indexed":false}],"type":"event","name":"logs","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"IS_TEST","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"failed","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@latticexyz/=node_modules/@latticexyz/","ds-test/=node_modules/ds-test/src/","forge-std/=node_modules/forge-std/src/"],"optimizer":{"enabled":true,"runs":3000},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"node_modules/ds-test/src/test.sol":"DSTest"},"evmVersion":"cancun","libraries":{}},"sources":{"node_modules/ds-test/src/test.sol":{"keccak256":"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b","urls":["bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240","dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k"],"license":"GPL-3.0-or-later"}},"version":1},"id":48}
|
1
|
+
{"abi":[{"type":"function","name":"IS_TEST","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"type":"function","name":"failed","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"nonpayable"},{"type":"event","name":"log","inputs":[{"name":"","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_address","inputs":[{"name":"","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"log_bytes","inputs":[{"name":"","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"log_bytes32","inputs":[{"name":"","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"log_int","inputs":[{"name":"","type":"int256","indexed":false,"internalType":"int256"}],"anonymous":false},{"type":"event","name":"log_named_address","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"address","indexed":false,"internalType":"address"}],"anonymous":false},{"type":"event","name":"log_named_bytes","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false},{"type":"event","name":"log_named_bytes32","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"bytes32","indexed":false,"internalType":"bytes32"}],"anonymous":false},{"type":"event","name":"log_named_decimal_int","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"int256","indexed":false,"internalType":"int256"},{"name":"decimals","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_named_decimal_uint","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"uint256","indexed":false,"internalType":"uint256"},{"name":"decimals","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_named_int","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"int256","indexed":false,"internalType":"int256"}],"anonymous":false},{"type":"event","name":"log_named_string","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_named_uint","inputs":[{"name":"key","type":"string","indexed":false,"internalType":"string"},{"name":"val","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"log_string","inputs":[{"name":"","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"type":"event","name":"log_uint","inputs":[{"name":"","type":"uint256","indexed":false,"internalType":"uint256"}],"anonymous":false},{"type":"event","name":"logs","inputs":[{"name":"","type":"bytes","indexed":false,"internalType":"bytes"}],"anonymous":false}],"bytecode":{"object":"0x60806040525f805460ff1916600117905534801561001b575f80fd5b5061025e806100295f395ff3fe608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063ba414fa614610038578063fa7626d414610054575b5f80fd5b610040610060565b604051901515815260200160405180910390f35b5f546100409060ff1681565b5f8054610100900460ff161561007e57505f54610100900460ff1690565b5f737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101b35760408051737109709ecfa91a80626ff3989d68f67f5b1dd12d602082018190527f6661696c6564000000000000000000000000000000000000000000000000000082840152825180830384018152606083019093525f929091610121917f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4916080016101e5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261015991610220565b5f604051808303815f865af19150503d805f8114610192576040519150601f19603f3d011682016040523d82523d5f602084013e610197565b606091505b50915050808060200190518101906101af9190610232565b9150505b919050565b5f81515f5b818110156101d757602081850181015186830152016101bd565b505f93019283525090919050565b7fffffffff00000000000000000000000000000000000000000000000000000000831681525f61021860048301846101b8565b949350505050565b5f61022b82846101b8565b9392505050565b5f60208284031215610242575f80fd5b8151801515811461022b575f80fdfea164736f6c6343000818000a","sourceMap":"715:19781:48:-:0;;;1572:26;;;-1:-1:-1;;1572:26:48;1594:4;1572:26;;;715:19781;;;;;;;;;;;;;;;;","linkReferences":{}},"deployedBytecode":{"object":"0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c8063ba414fa614610038578063fa7626d414610054575b5f80fd5b610040610060565b604051901515815260200160405180910390f35b5f546100409060ff1681565b5f8054610100900460ff161561007e57505f54610100900460ff1690565b5f737109709ecfa91a80626ff3989d68f67f5b1dd12d3b156101b35760408051737109709ecfa91a80626ff3989d68f67f5b1dd12d602082018190527f6661696c6564000000000000000000000000000000000000000000000000000082840152825180830384018152606083019093525f929091610121917f667f9d70ca411d70ead50d8d5c22070dafc36ad75f3dcf5e7237b22ade9aecc4916080016101e5565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261015991610220565b5f604051808303815f865af19150503d805f8114610192576040519150601f19603f3d011682016040523d82523d5f602084013e610197565b606091505b50915050808060200190518101906101af9190610232565b9150505b919050565b5f81515f5b818110156101d757602081850181015186830152016101bd565b505f93019283525090919050565b7fffffffff00000000000000000000000000000000000000000000000000000000831681525f61021860048301846101b8565b949350505050565b5f61022b82846101b8565b9392505050565b5f60208284031215610242575f80fd5b8151801515811461022b575f80fdfea164736f6c6343000818000a","sourceMap":"715:19781:48:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1819:584;;;:::i;:::-;;;179:14:170;;172:22;154:41;;142:2;127:18;1819:584:48;;;;;;;1572:26;;;;;;;;;1819:584;1853:4;1873:7;;;;;;;1869:528;;;-1:-1:-1;1903:7:48;;;;;;;;1819:584::o;1869:528::-;1941:17;2997:42;2985:55;3066:16;1980:374;;2196:43;;;1671:64;2196:43;;;380:74:170;;;2221:17:48;470:18:170;;;463:34;2196:43:48;;;;;;;;;353:18:170;;;2196:43:48;;;-1:-1:-1;;1671:64:48;;2086:175;;2135:34;;2086:175;;;:::i;:::-;;;;;;;;;;;;;;;2047:232;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2020:259;;;2323:7;2312:27;;;;;;;;;;;;:::i;:::-;2297:42;;2002:352;1980:374;2374:12;1819:584;-1:-1:-1;1819:584:48:o;508:322:170:-;549:3;587:5;581:12;611:1;621:128;635:6;632:1;629:13;621:128;;;732:4;717:13;;;713:24;;707:31;694:11;;;687:52;650:12;621:128;;;-1:-1:-1;804:1:170;768:16;;793:13;;;-1:-1:-1;768:16:170;;508:322;-1:-1:-1;508:322:170:o;835:324::-;1032:66;1024:6;1020:79;1015:3;1008:92;990:3;1116:37;1150:1;1145:3;1141:11;1133:6;1116:37;:::i;:::-;1109:44;835:324;-1:-1:-1;;;;835:324:170:o;1164:189::-;1293:3;1318:29;1343:3;1335:6;1318:29;:::i;:::-;1311:36;1164:189;-1:-1:-1;;;1164:189:170:o;1358:277::-;1425:6;1478:2;1466:9;1457:7;1453:23;1449:32;1446:52;;;1494:1;1491;1484:12;1446:52;1526:9;1520:16;1579:5;1572:13;1565:21;1558:5;1555:32;1545:60;;1601:1;1598;1591:12","linkReferences":{}},"methodIdentifiers":{"IS_TEST()":"fa7626d4","failed()":"ba414fa6"},"rawMetadata":"{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"log_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"log_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"log_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"name\":\"log_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"val\",\"type\":\"address\"}],\"name\":\"log_named_address\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"val\",\"type\":\"bytes\"}],\"name\":\"log_named_bytes\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"val\",\"type\":\"bytes32\"}],\"name\":\"log_named_bytes32\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"decimals\",\"type\":\"uint256\"}],\"name\":\"log_named_decimal_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"val\",\"type\":\"int256\"}],\"name\":\"log_named_int\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"val\",\"type\":\"string\"}],\"name\":\"log_named_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"log_named_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"log_string\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"log_uint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"logs\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"IS_TEST\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"failed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"node_modules/ds-test/src/test.sol\":\"DSTest\"},\"evmVersion\":\"cancun\",\"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\":{\"node_modules/ds-test/src/test.sol\":{\"keccak256\":\"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b\",\"license\":\"GPL-3.0-or-later\",\"urls\":[\"bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240\",\"dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k\"]}},\"version\":1}","metadata":{"compiler":{"version":"0.8.24+commit.e11b9ed9"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"string","name":"","type":"string","indexed":false}],"type":"event","name":"log","anonymous":false},{"inputs":[{"internalType":"address","name":"","type":"address","indexed":false}],"type":"event","name":"log_address","anonymous":false},{"inputs":[{"internalType":"bytes","name":"","type":"bytes","indexed":false}],"type":"event","name":"log_bytes","anonymous":false},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32","indexed":false}],"type":"event","name":"log_bytes32","anonymous":false},{"inputs":[{"internalType":"int256","name":"","type":"int256","indexed":false}],"type":"event","name":"log_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"address","name":"val","type":"address","indexed":false}],"type":"event","name":"log_named_address","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"bytes","name":"val","type":"bytes","indexed":false}],"type":"event","name":"log_named_bytes","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"bytes32","name":"val","type":"bytes32","indexed":false}],"type":"event","name":"log_named_bytes32","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"int256","name":"val","type":"int256","indexed":false},{"internalType":"uint256","name":"decimals","type":"uint256","indexed":false}],"type":"event","name":"log_named_decimal_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"uint256","name":"val","type":"uint256","indexed":false},{"internalType":"uint256","name":"decimals","type":"uint256","indexed":false}],"type":"event","name":"log_named_decimal_uint","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"int256","name":"val","type":"int256","indexed":false}],"type":"event","name":"log_named_int","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"string","name":"val","type":"string","indexed":false}],"type":"event","name":"log_named_string","anonymous":false},{"inputs":[{"internalType":"string","name":"key","type":"string","indexed":false},{"internalType":"uint256","name":"val","type":"uint256","indexed":false}],"type":"event","name":"log_named_uint","anonymous":false},{"inputs":[{"internalType":"string","name":"","type":"string","indexed":false}],"type":"event","name":"log_string","anonymous":false},{"inputs":[{"internalType":"uint256","name":"","type":"uint256","indexed":false}],"type":"event","name":"log_uint","anonymous":false},{"inputs":[{"internalType":"bytes","name":"","type":"bytes","indexed":false}],"type":"event","name":"logs","anonymous":false},{"inputs":[],"stateMutability":"view","type":"function","name":"IS_TEST","outputs":[{"internalType":"bool","name":"","type":"bool"}]},{"inputs":[],"stateMutability":"nonpayable","type":"function","name":"failed","outputs":[{"internalType":"bool","name":"","type":"bool"}]}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"remappings":["@latticexyz/=node_modules/@latticexyz/","ds-test/=node_modules/ds-test/src/","forge-std/=node_modules/forge-std/src/"],"optimizer":{"enabled":true,"runs":3000},"metadata":{"bytecodeHash":"none"},"compilationTarget":{"node_modules/ds-test/src/test.sol":"DSTest"},"evmVersion":"cancun","libraries":{}},"sources":{"node_modules/ds-test/src/test.sol":{"keccak256":"0x8758531bbac3972efcf1fa46383dbe1d276406fe527bc7abb2f236486278e83b","urls":["bzz-raw://1f64264d61506847acf8761e84aff690cebe830958eac00bac7924d8be569240","dweb:/ipfs/QmSekDJvJ82MZAmr63n7YvfLzQ7gS4NLSHPmHL3GN3rw8k"],"license":"GPL-3.0-or-later"}},"version":1},"id":48}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@latticexyz/world",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
4
4
|
"description": "World framework",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -43,12 +43,12 @@
|
|
43
43
|
"abitype": "1.0.6",
|
44
44
|
"arktype": "2.0.0-beta.6",
|
45
45
|
"debug": "^4.3.4",
|
46
|
-
"@latticexyz/block-logs-stream": "2.2.
|
47
|
-
"@latticexyz/common": "2.2.
|
48
|
-
"@latticexyz/config": "2.2.
|
49
|
-
"@latticexyz/protocol-parser": "2.2.
|
50
|
-
"@latticexyz/schema-type": "2.2.
|
51
|
-
"@latticexyz/store": "2.2.
|
46
|
+
"@latticexyz/block-logs-stream": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
47
|
+
"@latticexyz/common": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
48
|
+
"@latticexyz/config": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
49
|
+
"@latticexyz/protocol-parser": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
50
|
+
"@latticexyz/schema-type": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
51
|
+
"@latticexyz/store": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"@types/debug": "^4.1.7",
|
@@ -59,8 +59,8 @@
|
|
59
59
|
"glob": "^10.4.2",
|
60
60
|
"solhint": "^3.3.7",
|
61
61
|
"viem": "2.21.19",
|
62
|
-
"@latticexyz/abi-ts": "2.2.
|
63
|
-
"@latticexyz/gas-report": "2.2.
|
62
|
+
"@latticexyz/abi-ts": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0",
|
63
|
+
"@latticexyz/gas-report": "2.2.20-06e48e0239a5c7994ce73b4d2752860743fec4b0"
|
64
64
|
},
|
65
65
|
"peerDependencies": {
|
66
66
|
"viem": "2.x"
|
package/src/Module.sol
CHANGED
@@ -50,4 +50,25 @@ abstract contract Module is IModule, WorldContextConsumer {
|
|
50
50
|
revert Module_AlreadyInstalled();
|
51
51
|
}
|
52
52
|
}
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @notice Installs the module as a root module.
|
56
|
+
* @dev This function is invoked by the World contract during `installRootModule` process.
|
57
|
+
* The module expects to be called via the World contract and thus installs itself on the `msg.sender`.
|
58
|
+
* @param encodedArgs The ABI encoded arguments that may be needed during the installation process.
|
59
|
+
*/
|
60
|
+
function installRoot(bytes memory encodedArgs) public virtual {
|
61
|
+
revert Module_RootInstallNotSupported();
|
62
|
+
}
|
63
|
+
|
64
|
+
/**
|
65
|
+
* @notice Installs the module.
|
66
|
+
* @dev This function is invoked by the World contract during `installModule` process.
|
67
|
+
* The module expects to be called via the World contract and thus installs itself on the `msg.sender`.
|
68
|
+
* Logic might differ from `installRoot`, for example, this might accept namespace parameters.
|
69
|
+
* @param encodedArgs The ABI encoded arguments that may be needed during the installation process.
|
70
|
+
*/
|
71
|
+
function install(bytes memory encodedArgs) public virtual {
|
72
|
+
revert Module_NonRootInstallNotSupported();
|
73
|
+
}
|
53
74
|
}
|
package/src/WorldContext.sol
CHANGED
@@ -32,7 +32,7 @@ abstract contract WorldContextConsumer is IWorldContextConsumer {
|
|
32
32
|
* @return value The `msg.value` in the call to the World contract before the World routed the
|
33
33
|
* call to the WorldContextConsumer contract.
|
34
34
|
*/
|
35
|
-
function _msgValue() public
|
35
|
+
function _msgValue() public view virtual returns (uint256 value) {
|
36
36
|
return WorldContextConsumerLib._msgValue();
|
37
37
|
}
|
38
38
|
|
@@ -0,0 +1,182 @@
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
2
|
+
pragma solidity >=0.8.24;
|
3
|
+
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
5
|
+
|
6
|
+
import { AccessManagementSystem } from "../../../modules/init/implementations/AccessManagementSystem.sol";
|
7
|
+
import { ResourceId } from "../../../WorldResourceId.sol";
|
8
|
+
import { revertWithBytes } from "../../../revertWithBytes.sol";
|
9
|
+
import { IWorldCall } from "../../../IWorldKernel.sol";
|
10
|
+
import { SystemCall } from "../../../SystemCall.sol";
|
11
|
+
import { WorldContextConsumerLib } from "../../../WorldContext.sol";
|
12
|
+
import { Systems } from "../../../codegen/tables/Systems.sol";
|
13
|
+
import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
|
14
|
+
import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
|
15
|
+
|
16
|
+
type AccessManagementSystemType is bytes32;
|
17
|
+
|
18
|
+
// equivalent to WorldResourceIdLib.encode({ typeId: RESOURCE_SYSTEM, namespace: "", name: "AccessManagement" }))
|
19
|
+
AccessManagementSystemType constant accessManagementSystem = AccessManagementSystemType.wrap(
|
20
|
+
0x737900000000000000000000000000004163636573734d616e6167656d656e74
|
21
|
+
);
|
22
|
+
|
23
|
+
struct CallWrapper {
|
24
|
+
ResourceId systemId;
|
25
|
+
address from;
|
26
|
+
}
|
27
|
+
|
28
|
+
struct RootCallWrapper {
|
29
|
+
ResourceId systemId;
|
30
|
+
address from;
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* @title AccessManagementSystemLib
|
35
|
+
* @author MUD (https://mud.dev) by Lattice (https://lattice.xyz)
|
36
|
+
* @dev This library is automatically generated from the corresponding system contract. Do not edit manually.
|
37
|
+
*/
|
38
|
+
library AccessManagementSystemLib {
|
39
|
+
error AccessManagementSystemLib_CallingFromRootSystem();
|
40
|
+
|
41
|
+
function grantAccess(AccessManagementSystemType self, ResourceId resourceId, address grantee) internal {
|
42
|
+
return CallWrapper(self.toResourceId(), address(0)).grantAccess(resourceId, grantee);
|
43
|
+
}
|
44
|
+
|
45
|
+
function revokeAccess(AccessManagementSystemType self, ResourceId resourceId, address grantee) internal {
|
46
|
+
return CallWrapper(self.toResourceId(), address(0)).revokeAccess(resourceId, grantee);
|
47
|
+
}
|
48
|
+
|
49
|
+
function transferOwnership(AccessManagementSystemType self, ResourceId namespaceId, address newOwner) internal {
|
50
|
+
return CallWrapper(self.toResourceId(), address(0)).transferOwnership(namespaceId, newOwner);
|
51
|
+
}
|
52
|
+
|
53
|
+
function renounceOwnership(AccessManagementSystemType self, ResourceId namespaceId) internal {
|
54
|
+
return CallWrapper(self.toResourceId(), address(0)).renounceOwnership(namespaceId);
|
55
|
+
}
|
56
|
+
|
57
|
+
function grantAccess(CallWrapper memory self, ResourceId resourceId, address grantee) internal {
|
58
|
+
// if the contract calling this function is a root system, it should use `callAsRoot`
|
59
|
+
if (address(_world()) == address(this)) revert AccessManagementSystemLib_CallingFromRootSystem();
|
60
|
+
|
61
|
+
bytes memory systemCall = abi.encodeCall(_grantAccess_ResourceId_address.grantAccess, (resourceId, grantee));
|
62
|
+
self.from == address(0)
|
63
|
+
? _world().call(self.systemId, systemCall)
|
64
|
+
: _world().callFrom(self.from, self.systemId, systemCall);
|
65
|
+
}
|
66
|
+
|
67
|
+
function revokeAccess(CallWrapper memory self, ResourceId resourceId, address grantee) internal {
|
68
|
+
// if the contract calling this function is a root system, it should use `callAsRoot`
|
69
|
+
if (address(_world()) == address(this)) revert AccessManagementSystemLib_CallingFromRootSystem();
|
70
|
+
|
71
|
+
bytes memory systemCall = abi.encodeCall(_revokeAccess_ResourceId_address.revokeAccess, (resourceId, grantee));
|
72
|
+
self.from == address(0)
|
73
|
+
? _world().call(self.systemId, systemCall)
|
74
|
+
: _world().callFrom(self.from, self.systemId, systemCall);
|
75
|
+
}
|
76
|
+
|
77
|
+
function transferOwnership(CallWrapper memory self, ResourceId namespaceId, address newOwner) internal {
|
78
|
+
// if the contract calling this function is a root system, it should use `callAsRoot`
|
79
|
+
if (address(_world()) == address(this)) revert AccessManagementSystemLib_CallingFromRootSystem();
|
80
|
+
|
81
|
+
bytes memory systemCall = abi.encodeCall(
|
82
|
+
_transferOwnership_ResourceId_address.transferOwnership,
|
83
|
+
(namespaceId, newOwner)
|
84
|
+
);
|
85
|
+
self.from == address(0)
|
86
|
+
? _world().call(self.systemId, systemCall)
|
87
|
+
: _world().callFrom(self.from, self.systemId, systemCall);
|
88
|
+
}
|
89
|
+
|
90
|
+
function renounceOwnership(CallWrapper memory self, ResourceId namespaceId) internal {
|
91
|
+
// if the contract calling this function is a root system, it should use `callAsRoot`
|
92
|
+
if (address(_world()) == address(this)) revert AccessManagementSystemLib_CallingFromRootSystem();
|
93
|
+
|
94
|
+
bytes memory systemCall = abi.encodeCall(_renounceOwnership_ResourceId.renounceOwnership, (namespaceId));
|
95
|
+
self.from == address(0)
|
96
|
+
? _world().call(self.systemId, systemCall)
|
97
|
+
: _world().callFrom(self.from, self.systemId, systemCall);
|
98
|
+
}
|
99
|
+
|
100
|
+
function grantAccess(RootCallWrapper memory self, ResourceId resourceId, address grantee) internal {
|
101
|
+
bytes memory systemCall = abi.encodeCall(_grantAccess_ResourceId_address.grantAccess, (resourceId, grantee));
|
102
|
+
SystemCall.callWithHooksOrRevert(self.from, self.systemId, systemCall, msg.value);
|
103
|
+
}
|
104
|
+
|
105
|
+
function revokeAccess(RootCallWrapper memory self, ResourceId resourceId, address grantee) internal {
|
106
|
+
bytes memory systemCall = abi.encodeCall(_revokeAccess_ResourceId_address.revokeAccess, (resourceId, grantee));
|
107
|
+
SystemCall.callWithHooksOrRevert(self.from, self.systemId, systemCall, msg.value);
|
108
|
+
}
|
109
|
+
|
110
|
+
function transferOwnership(RootCallWrapper memory self, ResourceId namespaceId, address newOwner) internal {
|
111
|
+
bytes memory systemCall = abi.encodeCall(
|
112
|
+
_transferOwnership_ResourceId_address.transferOwnership,
|
113
|
+
(namespaceId, newOwner)
|
114
|
+
);
|
115
|
+
SystemCall.callWithHooksOrRevert(self.from, self.systemId, systemCall, msg.value);
|
116
|
+
}
|
117
|
+
|
118
|
+
function renounceOwnership(RootCallWrapper memory self, ResourceId namespaceId) internal {
|
119
|
+
bytes memory systemCall = abi.encodeCall(_renounceOwnership_ResourceId.renounceOwnership, (namespaceId));
|
120
|
+
SystemCall.callWithHooksOrRevert(self.from, self.systemId, systemCall, msg.value);
|
121
|
+
}
|
122
|
+
|
123
|
+
function callFrom(AccessManagementSystemType self, address from) internal pure returns (CallWrapper memory) {
|
124
|
+
return CallWrapper(self.toResourceId(), from);
|
125
|
+
}
|
126
|
+
|
127
|
+
function callAsRoot(AccessManagementSystemType self) internal view returns (RootCallWrapper memory) {
|
128
|
+
return RootCallWrapper(self.toResourceId(), WorldContextConsumerLib._msgSender());
|
129
|
+
}
|
130
|
+
|
131
|
+
function callAsRootFrom(
|
132
|
+
AccessManagementSystemType self,
|
133
|
+
address from
|
134
|
+
) internal pure returns (RootCallWrapper memory) {
|
135
|
+
return RootCallWrapper(self.toResourceId(), from);
|
136
|
+
}
|
137
|
+
|
138
|
+
function toResourceId(AccessManagementSystemType self) internal pure returns (ResourceId) {
|
139
|
+
return ResourceId.wrap(AccessManagementSystemType.unwrap(self));
|
140
|
+
}
|
141
|
+
|
142
|
+
function fromResourceId(ResourceId resourceId) internal pure returns (AccessManagementSystemType) {
|
143
|
+
return AccessManagementSystemType.wrap(resourceId.unwrap());
|
144
|
+
}
|
145
|
+
|
146
|
+
function getAddress(AccessManagementSystemType self) internal view returns (address) {
|
147
|
+
return Systems.getSystem(self.toResourceId());
|
148
|
+
}
|
149
|
+
|
150
|
+
function _world() private view returns (IWorldCall) {
|
151
|
+
return IWorldCall(StoreSwitch.getStoreAddress());
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
/**
|
156
|
+
* System Function Interfaces
|
157
|
+
*
|
158
|
+
* We generate an interface for each system function, which is then used for encoding system calls.
|
159
|
+
* This is necessary to handle function overloading correctly (which abi.encodeCall cannot).
|
160
|
+
*
|
161
|
+
* Each interface is uniquely named based on the function name and parameters to prevent collisions.
|
162
|
+
*/
|
163
|
+
|
164
|
+
interface _grantAccess_ResourceId_address {
|
165
|
+
function grantAccess(ResourceId resourceId, address grantee) external;
|
166
|
+
}
|
167
|
+
|
168
|
+
interface _revokeAccess_ResourceId_address {
|
169
|
+
function revokeAccess(ResourceId resourceId, address grantee) external;
|
170
|
+
}
|
171
|
+
|
172
|
+
interface _transferOwnership_ResourceId_address {
|
173
|
+
function transferOwnership(ResourceId namespaceId, address newOwner) external;
|
174
|
+
}
|
175
|
+
|
176
|
+
interface _renounceOwnership_ResourceId {
|
177
|
+
function renounceOwnership(ResourceId namespaceId) external;
|
178
|
+
}
|
179
|
+
|
180
|
+
using AccessManagementSystemLib for AccessManagementSystemType global;
|
181
|
+
using AccessManagementSystemLib for CallWrapper global;
|
182
|
+
using AccessManagementSystemLib for RootCallWrapper global;
|
@@ -0,0 +1,169 @@
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
2
|
+
pragma solidity >=0.8.24;
|
3
|
+
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
5
|
+
|
6
|
+
import { BalanceTransferSystem } from "../../../modules/init/implementations/BalanceTransferSystem.sol";
|
7
|
+
import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
|
8
|
+
import { revertWithBytes } from "../../../revertWithBytes.sol";
|
9
|
+
import { IWorldCall } from "../../../IWorldKernel.sol";
|
10
|
+
import { SystemCall } from "../../../SystemCall.sol";
|
11
|
+
import { WorldContextConsumerLib } from "../../../WorldContext.sol";
|
12
|
+
import { Systems } from "../../../codegen/tables/Systems.sol";
|
13
|
+
import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
|
14
|
+
|
15
|
+
type BalanceTransferSystemType is bytes32;
|
16
|
+
|
17
|
+
// equivalent to WorldResourceIdLib.encode({ typeId: RESOURCE_SYSTEM, namespace: "", name: "BalanceTransfer" }))
|
18
|
+
BalanceTransferSystemType constant balanceTransferSystem = BalanceTransferSystemType.wrap(
|
19
|
+
0x7379000000000000000000000000000042616c616e63655472616e7366657200
|
20
|
+
);
|
21
|
+
|
22
|
+
struct CallWrapper {
|
23
|
+
ResourceId systemId;
|
24
|
+
address from;
|
25
|
+
}
|
26
|
+
|
27
|
+
struct RootCallWrapper {
|
28
|
+
ResourceId systemId;
|
29
|
+
address from;
|
30
|
+
}
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @title BalanceTransferSystemLib
|
34
|
+
* @author MUD (https://mud.dev) by Lattice (https://lattice.xyz)
|
35
|
+
* @dev This library is automatically generated from the corresponding system contract. Do not edit manually.
|
36
|
+
*/
|
37
|
+
library BalanceTransferSystemLib {
|
38
|
+
error BalanceTransferSystemLib_CallingFromRootSystem();
|
39
|
+
|
40
|
+
function transferBalanceToNamespace(
|
41
|
+
BalanceTransferSystemType self,
|
42
|
+
ResourceId fromNamespaceId,
|
43
|
+
ResourceId toNamespaceId,
|
44
|
+
uint256 amount
|
45
|
+
) internal {
|
46
|
+
return
|
47
|
+
CallWrapper(self.toResourceId(), address(0)).transferBalanceToNamespace(fromNamespaceId, toNamespaceId, amount);
|
48
|
+
}
|
49
|
+
|
50
|
+
function transferBalanceToAddress(
|
51
|
+
BalanceTransferSystemType self,
|
52
|
+
ResourceId fromNamespaceId,
|
53
|
+
address toAddress,
|
54
|
+
uint256 amount
|
55
|
+
) internal {
|
56
|
+
return CallWrapper(self.toResourceId(), address(0)).transferBalanceToAddress(fromNamespaceId, toAddress, amount);
|
57
|
+
}
|
58
|
+
|
59
|
+
function transferBalanceToNamespace(
|
60
|
+
CallWrapper memory self,
|
61
|
+
ResourceId fromNamespaceId,
|
62
|
+
ResourceId toNamespaceId,
|
63
|
+
uint256 amount
|
64
|
+
) internal {
|
65
|
+
// if the contract calling this function is a root system, it should use `callAsRoot`
|
66
|
+
if (address(_world()) == address(this)) revert BalanceTransferSystemLib_CallingFromRootSystem();
|
67
|
+
|
68
|
+
bytes memory systemCall = abi.encodeCall(
|
69
|
+
_transferBalanceToNamespace_ResourceId_ResourceId_uint256.transferBalanceToNamespace,
|
70
|
+
(fromNamespaceId, toNamespaceId, amount)
|
71
|
+
);
|
72
|
+
self.from == address(0)
|
73
|
+
? _world().call(self.systemId, systemCall)
|
74
|
+
: _world().callFrom(self.from, self.systemId, systemCall);
|
75
|
+
}
|
76
|
+
|
77
|
+
function transferBalanceToAddress(
|
78
|
+
CallWrapper memory self,
|
79
|
+
ResourceId fromNamespaceId,
|
80
|
+
address toAddress,
|
81
|
+
uint256 amount
|
82
|
+
) internal {
|
83
|
+
// if the contract calling this function is a root system, it should use `callAsRoot`
|
84
|
+
if (address(_world()) == address(this)) revert BalanceTransferSystemLib_CallingFromRootSystem();
|
85
|
+
|
86
|
+
bytes memory systemCall = abi.encodeCall(
|
87
|
+
_transferBalanceToAddress_ResourceId_address_uint256.transferBalanceToAddress,
|
88
|
+
(fromNamespaceId, toAddress, amount)
|
89
|
+
);
|
90
|
+
self.from == address(0)
|
91
|
+
? _world().call(self.systemId, systemCall)
|
92
|
+
: _world().callFrom(self.from, self.systemId, systemCall);
|
93
|
+
}
|
94
|
+
|
95
|
+
function transferBalanceToNamespace(
|
96
|
+
RootCallWrapper memory self,
|
97
|
+
ResourceId fromNamespaceId,
|
98
|
+
ResourceId toNamespaceId,
|
99
|
+
uint256 amount
|
100
|
+
) internal {
|
101
|
+
bytes memory systemCall = abi.encodeCall(
|
102
|
+
_transferBalanceToNamespace_ResourceId_ResourceId_uint256.transferBalanceToNamespace,
|
103
|
+
(fromNamespaceId, toNamespaceId, amount)
|
104
|
+
);
|
105
|
+
SystemCall.callWithHooksOrRevert(self.from, self.systemId, systemCall, msg.value);
|
106
|
+
}
|
107
|
+
|
108
|
+
function transferBalanceToAddress(
|
109
|
+
RootCallWrapper memory self,
|
110
|
+
ResourceId fromNamespaceId,
|
111
|
+
address toAddress,
|
112
|
+
uint256 amount
|
113
|
+
) internal {
|
114
|
+
bytes memory systemCall = abi.encodeCall(
|
115
|
+
_transferBalanceToAddress_ResourceId_address_uint256.transferBalanceToAddress,
|
116
|
+
(fromNamespaceId, toAddress, amount)
|
117
|
+
);
|
118
|
+
SystemCall.callWithHooksOrRevert(self.from, self.systemId, systemCall, msg.value);
|
119
|
+
}
|
120
|
+
|
121
|
+
function callFrom(BalanceTransferSystemType self, address from) internal pure returns (CallWrapper memory) {
|
122
|
+
return CallWrapper(self.toResourceId(), from);
|
123
|
+
}
|
124
|
+
|
125
|
+
function callAsRoot(BalanceTransferSystemType self) internal view returns (RootCallWrapper memory) {
|
126
|
+
return RootCallWrapper(self.toResourceId(), WorldContextConsumerLib._msgSender());
|
127
|
+
}
|
128
|
+
|
129
|
+
function callAsRootFrom(BalanceTransferSystemType self, address from) internal pure returns (RootCallWrapper memory) {
|
130
|
+
return RootCallWrapper(self.toResourceId(), from);
|
131
|
+
}
|
132
|
+
|
133
|
+
function toResourceId(BalanceTransferSystemType self) internal pure returns (ResourceId) {
|
134
|
+
return ResourceId.wrap(BalanceTransferSystemType.unwrap(self));
|
135
|
+
}
|
136
|
+
|
137
|
+
function fromResourceId(ResourceId resourceId) internal pure returns (BalanceTransferSystemType) {
|
138
|
+
return BalanceTransferSystemType.wrap(resourceId.unwrap());
|
139
|
+
}
|
140
|
+
|
141
|
+
function getAddress(BalanceTransferSystemType self) internal view returns (address) {
|
142
|
+
return Systems.getSystem(self.toResourceId());
|
143
|
+
}
|
144
|
+
|
145
|
+
function _world() private view returns (IWorldCall) {
|
146
|
+
return IWorldCall(StoreSwitch.getStoreAddress());
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
/**
|
151
|
+
* System Function Interfaces
|
152
|
+
*
|
153
|
+
* We generate an interface for each system function, which is then used for encoding system calls.
|
154
|
+
* This is necessary to handle function overloading correctly (which abi.encodeCall cannot).
|
155
|
+
*
|
156
|
+
* Each interface is uniquely named based on the function name and parameters to prevent collisions.
|
157
|
+
*/
|
158
|
+
|
159
|
+
interface _transferBalanceToNamespace_ResourceId_ResourceId_uint256 {
|
160
|
+
function transferBalanceToNamespace(ResourceId fromNamespaceId, ResourceId toNamespaceId, uint256 amount) external;
|
161
|
+
}
|
162
|
+
|
163
|
+
interface _transferBalanceToAddress_ResourceId_address_uint256 {
|
164
|
+
function transferBalanceToAddress(ResourceId fromNamespaceId, address toAddress, uint256 amount) external;
|
165
|
+
}
|
166
|
+
|
167
|
+
using BalanceTransferSystemLib for BalanceTransferSystemType global;
|
168
|
+
using BalanceTransferSystemLib for CallWrapper global;
|
169
|
+
using BalanceTransferSystemLib for RootCallWrapper global;
|