From fe0fc1de2f548e6d255ff954e9ba5141fe4350d4 Mon Sep 17 00:00:00 2001 From: alvrs Date: Wed, 19 Jul 2023 17:52:34 +0100 Subject: [PATCH] wip: combine name and namespace to resource selector in function signature --- .../AccessControl.sol/AccessControl.abi.json | 1 - .../AccessManagementSystem.abi.json | 117 -- .../AddressArray.sol/AddressArray.abi.json | 1 - .../world/abi/ArrayLib.sol/ArrayLib.abi.json | 1 - packages/world/abi/Bool.sol/Bool.abi.json | 1 - packages/world/abi/Bytes.sol/Bytes.abi.json | 1 - packages/world/abi/Call.sol/Call.abi.json | 1 - .../abi/Callbacks.sol/Callbacks.abi.json | 1 - .../abi/CoreModule.sol/CoreModule.abi.json | 140 -- .../abi/CoreSystem.sol/CoreSystem.abi.json | 630 -------- .../abi/DecodeSlice.sol/DecodeSlice.abi.json | 1 - .../abi/EncodeArray.sol/EncodeArray.abi.json | 1 - .../EphemeralRecordSystem.abi.json | 157 -- .../FunctionSelectors.abi.json | 1 - packages/world/abi/Hooks.sol/Hooks.abi.json | 1 - .../IAccessManagementSystem.abi.json | 48 - .../abi/IBaseWorld.sol/IBaseWorld.abi.json | 1343 ----------------- .../abi/ICoreSystem.sol/ICoreSystem.abi.json | 1 - .../world/abi/IModule.sol/IModule.abi.json | 39 - .../IModuleInstallationSystem.abi.json | 20 - packages/world/abi/IStore.sol/IStore.abi.json | 654 -------- .../world/abi/IStore.sol/IStoreData.abi.json | 444 ------ .../abi/IStore.sol/IStoreEphemeral.abi.json | 55 - .../world/abi/IStore.sol/IStoreHook.abi.json | 119 -- .../world/abi/IStore.sol/IStoreRead.abi.json | 181 --- .../IStore.sol/IStoreRegistration.abi.json | 53 - .../world/abi/IStore.sol/IStoreWrite.abi.json | 265 ---- .../IStoreErrors.sol/IStoreErrors.abi.json | 108 -- .../IStoreRegistrationSystem.abi.json | 66 - .../abi/ISystemHook.sol/ISystemHook.abi.json | 48 - .../IUniqueEntitySystem.abi.json | 15 - .../IWorldEphemeral.abi.json | 35 - .../IWorldErrors.sol/IWorldErrors.abi.json | 95 -- .../abi/IWorldKernel.sol/IWorldCall.abi.json | 31 - .../abi/IWorldKernel.sol/IWorldData.abi.json | 220 --- .../IWorldKernel.sol/IWorldKernel.abi.json | 366 ----- .../IWorldModuleInstallation.abi.json | 20 - .../IWorldRegistrationSystem.abi.json | 230 --- .../InstalledModules.abi.json | 1 - .../abi/KeyEncoding.sol/KeyEncoding.abi.json | 1 - .../abi/KeysInTable.sol/KeysInTable.abi.json | 1 - .../KeysInTableHook.abi.json | 193 --- .../KeysInTableModule.abi.json | 55 - .../KeysWithValue.sol/KeysWithValue.abi.json | 1 - .../KeysWithValueHook.abi.json | 177 --- .../KeysWithValueModule.abi.json | 81 - packages/world/abi/Memory.sol/Memory.abi.json | 1 - packages/world/abi/Mixed.sol/Mixed.abi.json | 1 - .../ModuleInstallationSystem.abi.json | 73 - .../NamespaceOwner.abi.json | 1 - .../PackedCounterLib.abi.json | 1 - .../ResourceAccess.abi.json | 1 - .../ResourceSelector.abi.json | 1 - .../ResourceType.sol/ResourceType.abi.json | 1 - .../world/abi/Schema.sol/SchemaLib.abi.json | 18 - .../abi/Slice.sol/SliceInstance.abi.json | 1 - .../world/abi/Slice.sol/SliceLib.abi.json | 23 - .../SnapSyncModule.abi.json | 39 - .../SnapSyncSystem.abi.json | 104 -- .../world/abi/Storage.sol/Storage.abi.json | 1 - .../abi/StoreCore.sol/StoreCore.abi.json | 102 -- .../StoreCore.sol/StoreCoreInternal.abi.json | 1 - .../StoreMetadata.sol/StoreMetadata.abi.json | 1 - .../abi/StoreRead.sol/StoreRead.abi.json | 308 ---- .../StoreRegistrationSystem.abi.json | 69 - .../abi/StoreSwitch.sol/StoreSwitch.abi.json | 1 - packages/world/abi/System.sol/System.abi.json | 1 - .../abi/SystemHooks.sol/SystemHooks.abi.json | 1 - .../SystemRegistry.abi.json | 1 - .../world/abi/Systems.sol/Systems.abi.json | 1 - .../abi/TableData.sol/TableData.abi.json | 1 - .../world/abi/TableId.sol/TableId.abi.json | 1 - .../abi/TightCoder.sol/TightCoder.abi.json | 1 - .../UniqueEntity.sol/UniqueEntity.abi.json | 1 - .../UniqueEntityModule.abi.json | 55 - .../UniqueEntitySystem.abi.json | 68 - .../UsedKeysIndex.sol/UsedKeysIndex.abi.json | 1 - packages/world/abi/Utils.sol/Utils.abi.json | 1 - .../world/abi/Vector2.sol/Vector2.abi.json | 1 - packages/world/abi/World.sol/World.abi.json | 959 ------------ .../WorldContext.sol/WorldContext.abi.json | 1 - .../WorldRegistrationSystem.abi.json | 429 ------ .../world/abi/src/Bytes.sol/Bytes.abi.json | 1 - .../world/abi/src/IStore.sol/IStore.abi.json | 654 -------- .../abi/src/IStore.sol/IStoreData.abi.json | 444 ------ .../src/IStore.sol/IStoreEphemeral.abi.json | 55 - .../abi/src/IStore.sol/IStoreHook.abi.json | 119 -- .../abi/src/IStore.sol/IStoreRead.abi.json | 181 --- .../IStore.sol/IStoreRegistration.abi.json | 53 - .../abi/src/IStore.sol/IStoreWrite.abi.json | 265 ---- .../world/abi/src/Memory.sol/Memory.abi.json | 1 - .../PackedCounterLib.abi.json | 1 - .../abi/src/Schema.sol/SchemaLib.abi.json | 18 - .../abi/src/Slice.sol/SliceInstance.abi.json | 1 - .../world/abi/src/Slice.sol/SliceLib.abi.json | 23 - .../abi/src/StoreCore.sol/StoreCore.abi.json | 102 -- .../StoreCore.sol/StoreCoreInternal.abi.json | 1 - .../src/StoreSwitch.sol/StoreSwitch.abi.json | 1 - .../EncodeArray.sol/EncodeArray.abi.json | 1 - packages/world/mud.config.ts | 3 +- packages/world/src/AccessControl.sol | 32 +- packages/world/src/World.sol | 186 +-- packages/world/src/interfaces/IBaseWorld.sol | 4 +- ...tionSystem.sol => IRegistrationSystem.sol} | 26 +- .../interfaces/IStoreRegistrationSystem.sol | 14 - .../world/src/interfaces/IWorldKernel.sol | 88 +- .../world/src/modules/core/CoreModule.sol | 34 +- .../world/src/modules/core/CoreSystem.sol | 6 +- ...ationSystem.sol => RegistrationSystem.sol} | 76 +- .../StoreRegistrationSystem.sol | 81 - .../modules/core/tables/FunctionSelectors.sol | 108 +- 111 files changed, 155 insertions(+), 10716 deletions(-) delete mode 100644 packages/world/abi/AccessControl.sol/AccessControl.abi.json delete mode 100644 packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json delete mode 100644 packages/world/abi/AddressArray.sol/AddressArray.abi.json delete mode 100644 packages/world/abi/ArrayLib.sol/ArrayLib.abi.json delete mode 100644 packages/world/abi/Bool.sol/Bool.abi.json delete mode 100644 packages/world/abi/Bytes.sol/Bytes.abi.json delete mode 100644 packages/world/abi/Call.sol/Call.abi.json delete mode 100644 packages/world/abi/Callbacks.sol/Callbacks.abi.json delete mode 100644 packages/world/abi/CoreModule.sol/CoreModule.abi.json delete mode 100644 packages/world/abi/CoreSystem.sol/CoreSystem.abi.json delete mode 100644 packages/world/abi/DecodeSlice.sol/DecodeSlice.abi.json delete mode 100644 packages/world/abi/EncodeArray.sol/EncodeArray.abi.json delete mode 100644 packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json delete mode 100644 packages/world/abi/FunctionSelectors.sol/FunctionSelectors.abi.json delete mode 100644 packages/world/abi/Hooks.sol/Hooks.abi.json delete mode 100644 packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json delete mode 100644 packages/world/abi/IBaseWorld.sol/IBaseWorld.abi.json delete mode 100644 packages/world/abi/ICoreSystem.sol/ICoreSystem.abi.json delete mode 100644 packages/world/abi/IModule.sol/IModule.abi.json delete mode 100644 packages/world/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStore.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStoreData.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStoreEphemeral.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStoreHook.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStoreRead.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStoreRegistration.abi.json delete mode 100644 packages/world/abi/IStore.sol/IStoreWrite.abi.json delete mode 100644 packages/world/abi/IStoreErrors.sol/IStoreErrors.abi.json delete mode 100644 packages/world/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json delete mode 100644 packages/world/abi/ISystemHook.sol/ISystemHook.abi.json delete mode 100644 packages/world/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json delete mode 100644 packages/world/abi/IWorldEphemeral.sol/IWorldEphemeral.abi.json delete mode 100644 packages/world/abi/IWorldErrors.sol/IWorldErrors.abi.json delete mode 100644 packages/world/abi/IWorldKernel.sol/IWorldCall.abi.json delete mode 100644 packages/world/abi/IWorldKernel.sol/IWorldData.abi.json delete mode 100644 packages/world/abi/IWorldKernel.sol/IWorldKernel.abi.json delete mode 100644 packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json delete mode 100644 packages/world/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json delete mode 100644 packages/world/abi/InstalledModules.sol/InstalledModules.abi.json delete mode 100644 packages/world/abi/KeyEncoding.sol/KeyEncoding.abi.json delete mode 100644 packages/world/abi/KeysInTable.sol/KeysInTable.abi.json delete mode 100644 packages/world/abi/KeysInTableHook.sol/KeysInTableHook.abi.json delete mode 100644 packages/world/abi/KeysInTableModule.sol/KeysInTableModule.abi.json delete mode 100644 packages/world/abi/KeysWithValue.sol/KeysWithValue.abi.json delete mode 100644 packages/world/abi/KeysWithValueHook.sol/KeysWithValueHook.abi.json delete mode 100644 packages/world/abi/KeysWithValueModule.sol/KeysWithValueModule.abi.json delete mode 100644 packages/world/abi/Memory.sol/Memory.abi.json delete mode 100644 packages/world/abi/Mixed.sol/Mixed.abi.json delete mode 100644 packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json delete mode 100644 packages/world/abi/NamespaceOwner.sol/NamespaceOwner.abi.json delete mode 100644 packages/world/abi/PackedCounter.sol/PackedCounterLib.abi.json delete mode 100644 packages/world/abi/ResourceAccess.sol/ResourceAccess.abi.json delete mode 100644 packages/world/abi/ResourceSelector.sol/ResourceSelector.abi.json delete mode 100644 packages/world/abi/ResourceType.sol/ResourceType.abi.json delete mode 100644 packages/world/abi/Schema.sol/SchemaLib.abi.json delete mode 100644 packages/world/abi/Slice.sol/SliceInstance.abi.json delete mode 100644 packages/world/abi/Slice.sol/SliceLib.abi.json delete mode 100644 packages/world/abi/SnapSyncModule.sol/SnapSyncModule.abi.json delete mode 100644 packages/world/abi/SnapSyncSystem.sol/SnapSyncSystem.abi.json delete mode 100644 packages/world/abi/Storage.sol/Storage.abi.json delete mode 100644 packages/world/abi/StoreCore.sol/StoreCore.abi.json delete mode 100644 packages/world/abi/StoreCore.sol/StoreCoreInternal.abi.json delete mode 100644 packages/world/abi/StoreMetadata.sol/StoreMetadata.abi.json delete mode 100644 packages/world/abi/StoreRead.sol/StoreRead.abi.json delete mode 100644 packages/world/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json delete mode 100644 packages/world/abi/StoreSwitch.sol/StoreSwitch.abi.json delete mode 100644 packages/world/abi/System.sol/System.abi.json delete mode 100644 packages/world/abi/SystemHooks.sol/SystemHooks.abi.json delete mode 100644 packages/world/abi/SystemRegistry.sol/SystemRegistry.abi.json delete mode 100644 packages/world/abi/Systems.sol/Systems.abi.json delete mode 100644 packages/world/abi/TableData.sol/TableData.abi.json delete mode 100644 packages/world/abi/TableId.sol/TableId.abi.json delete mode 100644 packages/world/abi/TightCoder.sol/TightCoder.abi.json delete mode 100644 packages/world/abi/UniqueEntity.sol/UniqueEntity.abi.json delete mode 100644 packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json delete mode 100644 packages/world/abi/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json delete mode 100644 packages/world/abi/UsedKeysIndex.sol/UsedKeysIndex.abi.json delete mode 100644 packages/world/abi/Utils.sol/Utils.abi.json delete mode 100644 packages/world/abi/Vector2.sol/Vector2.abi.json delete mode 100644 packages/world/abi/World.sol/World.abi.json delete mode 100644 packages/world/abi/WorldContext.sol/WorldContext.abi.json delete mode 100644 packages/world/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json delete mode 100644 packages/world/abi/src/Bytes.sol/Bytes.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStore.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStoreData.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStoreEphemeral.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStoreHook.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStoreRead.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStoreRegistration.abi.json delete mode 100644 packages/world/abi/src/IStore.sol/IStoreWrite.abi.json delete mode 100644 packages/world/abi/src/Memory.sol/Memory.abi.json delete mode 100644 packages/world/abi/src/PackedCounter.sol/PackedCounterLib.abi.json delete mode 100644 packages/world/abi/src/Schema.sol/SchemaLib.abi.json delete mode 100644 packages/world/abi/src/Slice.sol/SliceInstance.abi.json delete mode 100644 packages/world/abi/src/Slice.sol/SliceLib.abi.json delete mode 100644 packages/world/abi/src/StoreCore.sol/StoreCore.abi.json delete mode 100644 packages/world/abi/src/StoreCore.sol/StoreCoreInternal.abi.json delete mode 100644 packages/world/abi/src/StoreSwitch.sol/StoreSwitch.abi.json delete mode 100644 packages/world/abi/tightcoder/EncodeArray.sol/EncodeArray.abi.json rename packages/world/src/interfaces/{IWorldRegistrationSystem.sol => IRegistrationSystem.sol} (57%) delete mode 100644 packages/world/src/interfaces/IStoreRegistrationSystem.sol rename packages/world/src/modules/core/implementations/{WorldRegistrationSystem.sol => RegistrationSystem.sol} (72%) delete mode 100644 packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol diff --git a/packages/world/abi/AccessControl.sol/AccessControl.abi.json b/packages/world/abi/AccessControl.sol/AccessControl.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/AccessControl.sol/AccessControl.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json b/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json deleted file mode 100644 index e4a2d6f65b..0000000000 --- a/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "grantAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "revokeAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/AddressArray.sol/AddressArray.abi.json b/packages/world/abi/AddressArray.sol/AddressArray.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/AddressArray.sol/AddressArray.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/ArrayLib.sol/ArrayLib.abi.json b/packages/world/abi/ArrayLib.sol/ArrayLib.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/ArrayLib.sol/ArrayLib.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Bool.sol/Bool.abi.json b/packages/world/abi/Bool.sol/Bool.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Bool.sol/Bool.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Bytes.sol/Bytes.abi.json b/packages/world/abi/Bytes.sol/Bytes.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Bytes.sol/Bytes.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Call.sol/Call.abi.json b/packages/world/abi/Call.sol/Call.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Call.sol/Call.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Callbacks.sol/Callbacks.abi.json b/packages/world/abi/Callbacks.sol/Callbacks.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Callbacks.sol/Callbacks.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/CoreModule.sol/CoreModule.abi.json b/packages/world/abi/CoreModule.sol/CoreModule.abi.json deleted file mode 100644 index 7aca0b168b..0000000000 --- a/packages/world/abi/CoreModule.sol/CoreModule.abi.json +++ /dev/null @@ -1,140 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resourceSelector", - "type": "string" - } - ], - "name": "RequiredModuleNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "bytes16", - "name": "", - "type": "bytes16" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "install", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/CoreSystem.sol/CoreSystem.abi.json b/packages/world/abi/CoreSystem.sol/CoreSystem.abi.json deleted file mode 100644 index acc9523276..0000000000 --- a/packages/world/abi/CoreSystem.sol/CoreSystem.abi.json +++ /dev/null @@ -1,630 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "InvalidSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "module", - "type": "string" - } - ], - "name": "ModuleAlreadyInstalled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "system", - "type": "address" - } - ], - "name": "SystemExists", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "grantAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "string", - "name": "systemFunctionName", - "type": "string" - }, - { - "internalType": "string", - "name": "systemFunctionArguments", - "type": "string" - } - ], - "name": "registerFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "hook", - "type": "address" - } - ], - "name": "registerHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - } - ], - "name": "registerNamespace", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - }, - { - "internalType": "bytes4", - "name": "systemFunctionSelector", - "type": "bytes4" - } - ], - "name": "registerRootFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract System", - "name": "system", - "type": "address" - }, - { - "internalType": "bool", - "name": "publicAccess", - "type": "bool" - } - ], - "name": "registerSystem", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract ISystemHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerSystemHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerTableHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "revokeAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/DecodeSlice.sol/DecodeSlice.abi.json b/packages/world/abi/DecodeSlice.sol/DecodeSlice.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/DecodeSlice.sol/DecodeSlice.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/EncodeArray.sol/EncodeArray.abi.json b/packages/world/abi/EncodeArray.sol/EncodeArray.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/EncodeArray.sol/EncodeArray.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json b/packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json deleted file mode 100644 index 8ff8f51443..0000000000 --- a/packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json +++ /dev/null @@ -1,157 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/FunctionSelectors.sol/FunctionSelectors.abi.json b/packages/world/abi/FunctionSelectors.sol/FunctionSelectors.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/FunctionSelectors.sol/FunctionSelectors.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Hooks.sol/Hooks.abi.json b/packages/world/abi/Hooks.sol/Hooks.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Hooks.sol/Hooks.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json b/packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json deleted file mode 100644 index abada2c7a6..0000000000 --- a/packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "grantAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "revokeAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IBaseWorld.sol/IBaseWorld.abi.json b/packages/world/abi/IBaseWorld.sol/IBaseWorld.abi.json deleted file mode 100644 index 030d25492c..0000000000 --- a/packages/world/abi/IBaseWorld.sol/IBaseWorld.abi.json +++ /dev/null @@ -1,1343 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "InvalidSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "module", - "type": "string" - } - ], - "name": "ModuleAlreadyInstalled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_DataIndexOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotImplemented", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "system", - "type": "address" - } - ], - "name": "SystemExists", - "type": "error" - }, - { - "anonymous": false, - "inputs": [], - "name": "HelloWorld", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes", - "name": "funcSelectorAndArgs", - "type": "bytes" - } - ], - "name": "call", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "grantAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installRootModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "string", - "name": "systemFunctionName", - "type": "string" - }, - { - "internalType": "string", - "name": "systemFunctionArguments", - "type": "string" - } - ], - "name": "registerFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "hook", - "type": "address" - } - ], - "name": "registerHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - } - ], - "name": "registerNamespace", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - }, - { - "internalType": "bytes4", - "name": "systemFunctionSelector", - "type": "bytes4" - } - ], - "name": "registerRootFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract System", - "name": "system", - "type": "address" - }, - { - "internalType": "bool", - "name": "publicAccess", - "type": "bool" - } - ], - "name": "registerSystem", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract ISystemHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerSystemHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "valueNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerTableHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "grantee", - "type": "address" - } - ], - "name": "revokeAccess", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/ICoreSystem.sol/ICoreSystem.abi.json b/packages/world/abi/ICoreSystem.sol/ICoreSystem.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/ICoreSystem.sol/ICoreSystem.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/IModule.sol/IModule.abi.json b/packages/world/abi/IModule.sol/IModule.abi.json deleted file mode 100644 index 0296b60f47..0000000000 --- a/packages/world/abi/IModule.sol/IModule.abi.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resourceSelector", - "type": "string" - } - ], - "name": "RequiredModuleNotFound", - "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" - } -] \ No newline at end of file diff --git a/packages/world/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json b/packages/world/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json deleted file mode 100644 index 36a2527e83..0000000000 --- a/packages/world/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStore.abi.json b/packages/world/abi/IStore.sol/IStore.abi.json deleted file mode 100644 index eef3bc4b5d..0000000000 --- a/packages/world/abi/IStore.sol/IStore.abi.json +++ /dev/null @@ -1,654 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_DataIndexOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotImplemented", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "valueNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStoreData.abi.json b/packages/world/abi/IStore.sol/IStoreData.abi.json deleted file mode 100644 index f02203d5e9..0000000000 --- a/packages/world/abi/IStore.sol/IStoreData.abi.json +++ /dev/null @@ -1,444 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStoreEphemeral.abi.json b/packages/world/abi/IStore.sol/IStoreEphemeral.abi.json deleted file mode 100644 index c9cbd9770c..0000000000 --- a/packages/world/abi/IStore.sol/IStoreEphemeral.abi.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStoreHook.abi.json b/packages/world/abi/IStore.sol/IStoreHook.abi.json deleted file mode 100644 index 171784fcb2..0000000000 --- a/packages/world/abi/IStore.sol/IStoreHook.abi.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onAfterSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onBeforeSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onDeleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onSetRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStoreRead.abi.json b/packages/world/abi/IStore.sol/IStoreRead.abi.json deleted file mode 100644 index 0f47144f3d..0000000000 --- a/packages/world/abi/IStore.sol/IStoreRead.abi.json +++ /dev/null @@ -1,181 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStoreRegistration.abi.json b/packages/world/abi/IStore.sol/IStoreRegistration.abi.json deleted file mode 100644 index f33165e276..0000000000 --- a/packages/world/abi/IStore.sol/IStoreRegistration.abi.json +++ /dev/null @@ -1,53 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "valueNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStore.sol/IStoreWrite.abi.json b/packages/world/abi/IStore.sol/IStoreWrite.abi.json deleted file mode 100644 index e5a35719c0..0000000000 --- a/packages/world/abi/IStore.sol/IStoreWrite.abi.json +++ /dev/null @@ -1,265 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStoreErrors.sol/IStoreErrors.abi.json b/packages/world/abi/IStoreErrors.sol/IStoreErrors.abi.json deleted file mode 100644 index cf6d375396..0000000000 --- a/packages/world/abi/IStoreErrors.sol/IStoreErrors.abi.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_DataIndexOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotImplemented", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - } -] \ No newline at end of file diff --git a/packages/world/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json b/packages/world/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json deleted file mode 100644 index ff79802f59..0000000000 --- a/packages/world/abi/IStoreRegistrationSystem.sol/IStoreRegistrationSystem.abi.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - } - ], - "name": "registerSchema", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableName", - "type": "string" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "setMetadata", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/ISystemHook.sol/ISystemHook.abi.json b/packages/world/abi/ISystemHook.sol/ISystemHook.abi.json deleted file mode 100644 index cbab824056..0000000000 --- a/packages/world/abi/ISystemHook.sol/ISystemHook.abi.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "msgSender", - "type": "address" - }, - { - "internalType": "address", - "name": "systemAddress", - "type": "address" - }, - { - "internalType": "bytes", - "name": "funcSelectorAndArgs", - "type": "bytes" - } - ], - "name": "onAfterCallSystem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "msgSender", - "type": "address" - }, - { - "internalType": "address", - "name": "systemAddress", - "type": "address" - }, - { - "internalType": "bytes", - "name": "funcSelectorAndArgs", - "type": "bytes" - } - ], - "name": "onBeforeCallSystem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json b/packages/world/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json deleted file mode 100644 index bfe8c4d27d..0000000000 --- a/packages/world/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "inputs": [], - "name": "uniqueEntity_system_getUniqueEntity", - "outputs": [ - { - "internalType": "bytes32", - "name": "uniqueEntity", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldEphemeral.sol/IWorldEphemeral.abi.json b/packages/world/abi/IWorldEphemeral.sol/IWorldEphemeral.abi.json deleted file mode 100644 index c4d7e548b0..0000000000 --- a/packages/world/abi/IWorldEphemeral.sol/IWorldEphemeral.abi.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldErrors.sol/IWorldErrors.abi.json b/packages/world/abi/IWorldErrors.sol/IWorldErrors.abi.json deleted file mode 100644 index be9080afeb..0000000000 --- a/packages/world/abi/IWorldErrors.sol/IWorldErrors.abi.json +++ /dev/null @@ -1,95 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "InvalidSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "module", - "type": "string" - } - ], - "name": "ModuleAlreadyInstalled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "system", - "type": "address" - } - ], - "name": "SystemExists", - "type": "error" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldKernel.sol/IWorldCall.abi.json b/packages/world/abi/IWorldKernel.sol/IWorldCall.abi.json deleted file mode 100644 index 06fe9b75ca..0000000000 --- a/packages/world/abi/IWorldKernel.sol/IWorldCall.abi.json +++ /dev/null @@ -1,31 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes", - "name": "funcSelectorAndArgs", - "type": "bytes" - } - ], - "name": "call", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldKernel.sol/IWorldData.abi.json b/packages/world/abi/IWorldKernel.sol/IWorldData.abi.json deleted file mode 100644 index 9be0c880bd..0000000000 --- a/packages/world/abi/IWorldKernel.sol/IWorldData.abi.json +++ /dev/null @@ -1,220 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldKernel.sol/IWorldKernel.abi.json b/packages/world/abi/IWorldKernel.sol/IWorldKernel.abi.json deleted file mode 100644 index 860b7a890e..0000000000 --- a/packages/world/abi/IWorldKernel.sol/IWorldKernel.abi.json +++ /dev/null @@ -1,366 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "InvalidSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "module", - "type": "string" - } - ], - "name": "ModuleAlreadyInstalled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "system", - "type": "address" - } - ], - "name": "SystemExists", - "type": "error" - }, - { - "anonymous": false, - "inputs": [], - "name": "HelloWorld", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes", - "name": "funcSelectorAndArgs", - "type": "bytes" - } - ], - "name": "call", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installRootModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json b/packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json deleted file mode 100644 index c277d6c367..0000000000 --- a/packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installRootModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json b/packages/world/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json deleted file mode 100644 index 6c5efc1fd5..0000000000 --- a/packages/world/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json +++ /dev/null @@ -1,230 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "string", - "name": "systemFunctionName", - "type": "string" - }, - { - "internalType": "string", - "name": "systemFunctionArguments", - "type": "string" - } - ], - "name": "registerFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "hook", - "type": "address" - } - ], - "name": "registerHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - } - ], - "name": "registerNamespace", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - }, - { - "internalType": "bytes4", - "name": "systemFunctionSelector", - "type": "bytes4" - } - ], - "name": "registerRootFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract System", - "name": "system", - "type": "address" - }, - { - "internalType": "bool", - "name": "publicAccess", - "type": "bool" - } - ], - "name": "registerSystem", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract ISystemHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerSystemHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerTableHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/InstalledModules.sol/InstalledModules.abi.json b/packages/world/abi/InstalledModules.sol/InstalledModules.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/InstalledModules.sol/InstalledModules.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/KeyEncoding.sol/KeyEncoding.abi.json b/packages/world/abi/KeyEncoding.sol/KeyEncoding.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/KeyEncoding.sol/KeyEncoding.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/KeysInTable.sol/KeysInTable.abi.json b/packages/world/abi/KeysInTable.sol/KeysInTable.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/KeysInTable.sol/KeysInTable.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/KeysInTableHook.sol/KeysInTableHook.abi.json b/packages/world/abi/KeysInTableHook.sol/KeysInTableHook.abi.json deleted file mode 100644 index 223ef6484f..0000000000 --- a/packages/world/abi/KeysInTableHook.sol/KeysInTableHook.abi.json +++ /dev/null @@ -1,193 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_DataIndexOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "", - "type": "bytes32" - } - ], - "name": "onAfterSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "", - "type": "bytes32" - } - ], - "name": "onBeforeSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "", - "type": "bytes32" - } - ], - "name": "onDeleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "", - "type": "bytes32" - } - ], - "name": "onSetRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/KeysInTableModule.sol/KeysInTableModule.abi.json b/packages/world/abi/KeysInTableModule.sol/KeysInTableModule.abi.json deleted file mode 100644 index 64373ae108..0000000000 --- a/packages/world/abi/KeysInTableModule.sol/KeysInTableModule.abi.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resourceSelector", - "type": "string" - } - ], - "name": "RequiredModuleNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "bytes16", - "name": "", - "type": "bytes16" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "install", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/KeysWithValue.sol/KeysWithValue.abi.json b/packages/world/abi/KeysWithValue.sol/KeysWithValue.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/KeysWithValue.sol/KeysWithValue.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/KeysWithValueHook.sol/KeysWithValueHook.abi.json b/packages/world/abi/KeysWithValueHook.sol/KeysWithValueHook.abi.json deleted file mode 100644 index a4a456e299..0000000000 --- a/packages/world/abi/KeysWithValueHook.sol/KeysWithValueHook.abi.json +++ /dev/null @@ -1,177 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "sourceTableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onAfterSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "sourceTableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onBeforeSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "sourceTableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onDeleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "sourceTableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onSetRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/KeysWithValueModule.sol/KeysWithValueModule.abi.json b/packages/world/abi/KeysWithValueModule.sol/KeysWithValueModule.abi.json deleted file mode 100644 index b23c956332..0000000000 --- a/packages/world/abi/KeysWithValueModule.sol/KeysWithValueModule.abi.json +++ /dev/null @@ -1,81 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resourceSelector", - "type": "string" - } - ], - "name": "RequiredModuleNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "bytes16", - "name": "", - "type": "bytes16" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "install", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/Memory.sol/Memory.abi.json b/packages/world/abi/Memory.sol/Memory.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Memory.sol/Memory.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Mixed.sol/Mixed.abi.json b/packages/world/abi/Mixed.sol/Mixed.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Mixed.sol/Mixed.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json b/packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json deleted file mode 100644 index 3ba41db3c5..0000000000 --- a/packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +++ /dev/null @@ -1,73 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/NamespaceOwner.sol/NamespaceOwner.abi.json b/packages/world/abi/NamespaceOwner.sol/NamespaceOwner.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/NamespaceOwner.sol/NamespaceOwner.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/PackedCounter.sol/PackedCounterLib.abi.json b/packages/world/abi/PackedCounter.sol/PackedCounterLib.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/PackedCounter.sol/PackedCounterLib.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/ResourceAccess.sol/ResourceAccess.abi.json b/packages/world/abi/ResourceAccess.sol/ResourceAccess.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/ResourceAccess.sol/ResourceAccess.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/ResourceSelector.sol/ResourceSelector.abi.json b/packages/world/abi/ResourceSelector.sol/ResourceSelector.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/ResourceSelector.sol/ResourceSelector.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/ResourceType.sol/ResourceType.abi.json b/packages/world/abi/ResourceType.sol/ResourceType.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/ResourceType.sol/ResourceType.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Schema.sol/SchemaLib.abi.json b/packages/world/abi/Schema.sol/SchemaLib.abi.json deleted file mode 100644 index 2b3a290331..0000000000 --- a/packages/world/abi/Schema.sol/SchemaLib.abi.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - } -] \ No newline at end of file diff --git a/packages/world/abi/Slice.sol/SliceInstance.abi.json b/packages/world/abi/Slice.sol/SliceInstance.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Slice.sol/SliceInstance.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Slice.sol/SliceLib.abi.json b/packages/world/abi/Slice.sol/SliceLib.abi.json deleted file mode 100644 index bae09de3e6..0000000000 --- a/packages/world/abi/Slice.sol/SliceLib.abi.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - } -] \ No newline at end of file diff --git a/packages/world/abi/SnapSyncModule.sol/SnapSyncModule.abi.json b/packages/world/abi/SnapSyncModule.sol/SnapSyncModule.abi.json deleted file mode 100644 index 32a46a1787..0000000000 --- a/packages/world/abi/SnapSyncModule.sol/SnapSyncModule.abi.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resourceSelector", - "type": "string" - } - ], - "name": "RequiredModuleNotFound", - "type": "error" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "bytes16", - "name": "", - "type": "bytes16" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "install", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/SnapSyncSystem.sol/SnapSyncSystem.abi.json b/packages/world/abi/SnapSyncSystem.sol/SnapSyncSystem.abi.json deleted file mode 100644 index fe0862a126..0000000000 --- a/packages/world/abi/SnapSyncSystem.sol/SnapSyncSystem.abi.json +++ /dev/null @@ -1,104 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - } - ], - "name": "getNumKeysInTable", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "limit", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "offset", - "type": "uint256" - } - ], - "name": "getRecords", - "outputs": [ - { - "components": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keyTuple", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "value", - "type": "bytes" - } - ], - "internalType": "struct SyncRecord[]", - "name": "records", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/Storage.sol/Storage.abi.json b/packages/world/abi/Storage.sol/Storage.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Storage.sol/Storage.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/StoreCore.sol/StoreCore.abi.json b/packages/world/abi/StoreCore.sol/StoreCore.abi.json deleted file mode 100644 index 2800cfc6ff..0000000000 --- a/packages/world/abi/StoreCore.sol/StoreCore.abi.json +++ /dev/null @@ -1,102 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - } -] \ No newline at end of file diff --git a/packages/world/abi/StoreCore.sol/StoreCoreInternal.abi.json b/packages/world/abi/StoreCore.sol/StoreCoreInternal.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/StoreCore.sol/StoreCoreInternal.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/StoreMetadata.sol/StoreMetadata.abi.json b/packages/world/abi/StoreMetadata.sol/StoreMetadata.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/StoreMetadata.sol/StoreMetadata.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/StoreRead.sol/StoreRead.abi.json b/packages/world/abi/StoreRead.sol/StoreRead.abi.json deleted file mode 100644 index 93a0e17cf5..0000000000 --- a/packages/world/abi/StoreRead.sol/StoreRead.abi.json +++ /dev/null @@ -1,308 +0,0 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json b/packages/world/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json deleted file mode 100644 index fb6658c07a..0000000000 --- a/packages/world/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +++ /dev/null @@ -1,69 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/StoreSwitch.sol/StoreSwitch.abi.json b/packages/world/abi/StoreSwitch.sol/StoreSwitch.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/StoreSwitch.sol/StoreSwitch.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/System.sol/System.abi.json b/packages/world/abi/System.sol/System.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/System.sol/System.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/SystemHooks.sol/SystemHooks.abi.json b/packages/world/abi/SystemHooks.sol/SystemHooks.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/SystemHooks.sol/SystemHooks.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/SystemRegistry.sol/SystemRegistry.abi.json b/packages/world/abi/SystemRegistry.sol/SystemRegistry.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/SystemRegistry.sol/SystemRegistry.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Systems.sol/Systems.abi.json b/packages/world/abi/Systems.sol/Systems.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Systems.sol/Systems.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/TableData.sol/TableData.abi.json b/packages/world/abi/TableData.sol/TableData.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/TableData.sol/TableData.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/TableId.sol/TableId.abi.json b/packages/world/abi/TableId.sol/TableId.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/TableId.sol/TableId.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/TightCoder.sol/TightCoder.abi.json b/packages/world/abi/TightCoder.sol/TightCoder.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/TightCoder.sol/TightCoder.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/UniqueEntity.sol/UniqueEntity.abi.json b/packages/world/abi/UniqueEntity.sol/UniqueEntity.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/UniqueEntity.sol/UniqueEntity.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json b/packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json deleted file mode 100644 index 646de1964b..0000000000 --- a/packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resourceSelector", - "type": "string" - } - ], - "name": "RequiredModuleNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [], - "name": "getName", - "outputs": [ - { - "internalType": "bytes16", - "name": "", - "type": "bytes16" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "install", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json b/packages/world/abi/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json deleted file mode 100644 index e4f117c782..0000000000 --- a/packages/world/abi/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [], - "name": "getUniqueEntity", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/UsedKeysIndex.sol/UsedKeysIndex.abi.json b/packages/world/abi/UsedKeysIndex.sol/UsedKeysIndex.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/UsedKeysIndex.sol/UsedKeysIndex.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Utils.sol/Utils.abi.json b/packages/world/abi/Utils.sol/Utils.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Utils.sol/Utils.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/Vector2.sol/Vector2.abi.json b/packages/world/abi/Vector2.sol/Vector2.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/Vector2.sol/Vector2.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/World.sol/World.abi.json b/packages/world/abi/World.sol/World.abi.json deleted file mode 100644 index 24c4c756dc..0000000000 --- a/packages/world/abi/World.sol/World.abi.json +++ /dev/null @@ -1,959 +0,0 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "InvalidSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "module", - "type": "string" - } - ], - "name": "ModuleAlreadyInstalled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_DataIndexOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "system", - "type": "address" - } - ], - "name": "SystemExists", - "type": "error" - }, - { - "anonymous": false, - "inputs": [], - "name": "HelloWorld", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "stateMutability": "payable", - "type": "fallback" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes", - "name": "funcSelectorAndArgs", - "type": "bytes" - } - ], - "name": "call", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IModule", - "name": "module", - "type": "address" - }, - { - "internalType": "bytes", - "name": "args", - "type": "bytes" - } - ], - "name": "installRootModule", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" - } -] \ No newline at end of file diff --git a/packages/world/abi/WorldContext.sol/WorldContext.abi.json b/packages/world/abi/WorldContext.sol/WorldContext.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/WorldContext.sol/WorldContext.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json b/packages/world/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json deleted file mode 100644 index 7bf047f4f4..0000000000 --- a/packages/world/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +++ /dev/null @@ -1,429 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - }, - { - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "AccessDenied", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "functionSelector", - "type": "bytes4" - } - ], - "name": "FunctionSelectorNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "InvalidSelector", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "module", - "type": "string" - } - ], - "name": "ModuleAlreadyInstalled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "resource", - "type": "string" - } - ], - "name": "ResourceNotFound", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "system", - "type": "address" - } - ], - "name": "SystemExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "string", - "name": "systemFunctionName", - "type": "string" - }, - { - "internalType": "string", - "name": "systemFunctionArguments", - "type": "string" - } - ], - "name": "registerFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "address", - "name": "hook", - "type": "address" - } - ], - "name": "registerHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - } - ], - "name": "registerNamespace", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "bytes4", - "name": "worldFunctionSelector", - "type": "bytes4" - }, - { - "internalType": "bytes4", - "name": "systemFunctionSelector", - "type": "bytes4" - } - ], - "name": "registerRootFunctionSelector", - "outputs": [ - { - "internalType": "bytes4", - "name": "", - "type": "bytes4" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract System", - "name": "system", - "type": "address" - }, - { - "internalType": "bool", - "name": "publicAccess", - "type": "bool" - } - ], - "name": "registerSystem", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract ISystemHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerSystemHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "fieldNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [ - { - "internalType": "bytes32", - "name": "resourceSelector", - "type": "bytes32" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes16", - "name": "namespace", - "type": "bytes16" - }, - { - "internalType": "bytes16", - "name": "name", - "type": "bytes16" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerTableHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/Bytes.sol/Bytes.abi.json b/packages/world/abi/src/Bytes.sol/Bytes.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/src/Bytes.sol/Bytes.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStore.abi.json b/packages/world/abi/src/IStore.sol/IStore.abi.json deleted file mode 100644 index eef3bc4b5d..0000000000 --- a/packages/world/abi/src/IStore.sol/IStore.abi.json +++ /dev/null @@ -1,654 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_DataIndexOverflow", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidDataLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidFieldNamesLength", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "received", - "type": "uint256" - } - ], - "name": "StoreCore_InvalidKeyNamesLength", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotDynamicField", - "type": "error" - }, - { - "inputs": [], - "name": "StoreCore_NotImplemented", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableAlreadyExists", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "internalType": "string", - "name": "tableIdString", - "type": "string" - } - ], - "name": "StoreCore_TableNotFound", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "valueNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStoreData.abi.json b/packages/world/abi/src/IStore.sol/IStoreData.abi.json deleted file mode 100644 index f02203d5e9..0000000000 --- a/packages/world/abi/src/IStore.sol/IStoreData.abi.json +++ /dev/null @@ -1,444 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStoreEphemeral.abi.json b/packages/world/abi/src/IStore.sol/IStoreEphemeral.abi.json deleted file mode 100644 index c9cbd9770c..0000000000 --- a/packages/world/abi/src/IStore.sol/IStoreEphemeral.abi.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "emitEphemeralRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStoreHook.abi.json b/packages/world/abi/src/IStore.sol/IStoreHook.abi.json deleted file mode 100644 index 171784fcb2..0000000000 --- a/packages/world/abi/src/IStore.sol/IStoreHook.abi.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onAfterSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onBeforeSetField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onDeleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "onSetRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStoreRead.abi.json b/packages/world/abi/src/IStore.sol/IStoreRead.abi.json deleted file mode 100644 index 0f47144f3d..0000000000 --- a/packages/world/abi/src/IStore.sol/IStoreRead.abi.json +++ /dev/null @@ -1,181 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getField", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getFieldLength", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "getFieldSlice", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getKeySchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "getRecord", - "outputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - } - ], - "name": "getValueSchema", - "outputs": [ - { - "internalType": "Schema", - "name": "schema", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStoreRegistration.abi.json b/packages/world/abi/src/IStore.sol/IStoreRegistration.abi.json deleted file mode 100644 index f33165e276..0000000000 --- a/packages/world/abi/src/IStore.sol/IStoreRegistration.abi.json +++ /dev/null @@ -1,53 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "contract IStoreHook", - "name": "hook", - "type": "address" - } - ], - "name": "registerStoreHook", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "keySchema", - "type": "bytes32" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - }, - { - "internalType": "string[]", - "name": "keyNames", - "type": "string[]" - }, - { - "internalType": "string[]", - "name": "valueNames", - "type": "string[]" - } - ], - "name": "registerTable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/IStore.sol/IStoreWrite.abi.json b/packages/world/abi/src/IStore.sol/IStoreWrite.abi.json deleted file mode 100644 index e5a35719c0..0000000000 --- a/packages/world/abi/src/IStore.sol/IStoreWrite.abi.json +++ /dev/null @@ -1,265 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "deleteRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "byteLengthToPop", - "type": "uint256" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "popFromField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "dataToPush", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "pushToField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "setRecord", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "startByteIndex", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "dataToSet", - "type": "bytes" - }, - { - "internalType": "Schema", - "name": "valueSchema", - "type": "bytes32" - } - ], - "name": "updateInField", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/Memory.sol/Memory.abi.json b/packages/world/abi/src/Memory.sol/Memory.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/src/Memory.sol/Memory.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/src/PackedCounter.sol/PackedCounterLib.abi.json b/packages/world/abi/src/PackedCounter.sol/PackedCounterLib.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/src/PackedCounter.sol/PackedCounterLib.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/src/Schema.sol/SchemaLib.abi.json b/packages/world/abi/src/Schema.sol/SchemaLib.abi.json deleted file mode 100644 index 2b3a290331..0000000000 --- a/packages/world/abi/src/Schema.sol/SchemaLib.abi.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "uint256", - "name": "length", - "type": "uint256" - } - ], - "name": "SchemaLib_InvalidLength", - "type": "error" - }, - { - "inputs": [], - "name": "SchemaLib_StaticTypeAfterDynamicType", - "type": "error" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/Slice.sol/SliceInstance.abi.json b/packages/world/abi/src/Slice.sol/SliceInstance.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/src/Slice.sol/SliceInstance.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/src/Slice.sol/SliceLib.abi.json b/packages/world/abi/src/Slice.sol/SliceLib.abi.json deleted file mode 100644 index bae09de3e6..0000000000 --- a/packages/world/abi/src/Slice.sol/SliceLib.abi.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "start", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Slice_OutOfBounds", - "type": "error" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/StoreCore.sol/StoreCore.abi.json b/packages/world/abi/src/StoreCore.sol/StoreCore.abi.json deleted file mode 100644 index 2800cfc6ff..0000000000 --- a/packages/world/abi/src/StoreCore.sol/StoreCore.abi.json +++ /dev/null @@ -1,102 +0,0 @@ -[ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - } - ], - "name": "StoreDeleteRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "table", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreEphemeralRecord", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "schemaIndex", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetField", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "tableId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes32[]", - "name": "key", - "type": "bytes32[]" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "StoreSetRecord", - "type": "event" - } -] \ No newline at end of file diff --git a/packages/world/abi/src/StoreCore.sol/StoreCoreInternal.abi.json b/packages/world/abi/src/StoreCore.sol/StoreCoreInternal.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/src/StoreCore.sol/StoreCoreInternal.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/src/StoreSwitch.sol/StoreSwitch.abi.json b/packages/world/abi/src/StoreSwitch.sol/StoreSwitch.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/src/StoreSwitch.sol/StoreSwitch.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/abi/tightcoder/EncodeArray.sol/EncodeArray.abi.json b/packages/world/abi/tightcoder/EncodeArray.sol/EncodeArray.abi.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/packages/world/abi/tightcoder/EncodeArray.sol/EncodeArray.abi.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/packages/world/mud.config.ts b/packages/world/mud.config.ts index 0402df962f..61b0dfde08 100644 --- a/packages/world/mud.config.ts +++ b/packages/world/mud.config.ts @@ -89,8 +89,7 @@ export default mudConfig({ functionSelector: "bytes4", }, schema: { - namespace: "bytes16", - name: "bytes16", + resourceSelector: "bytes32", systemFunctionSelector: "bytes4", }, dataStruct: false, diff --git a/packages/world/src/AccessControl.sol b/packages/world/src/AccessControl.sol index 7701fc3392..d296d93bbb 100644 --- a/packages/world/src/AccessControl.sol +++ b/packages/world/src/AccessControl.sol @@ -13,39 +13,31 @@ library AccessControl { /** * Returns true if the caller has access to the namespace or name, false otherwise. */ - function hasAccess(bytes16 namespace, bytes16 name, address caller) internal view returns (bool) { + function hasAccess(bytes32 resourceSelector, address caller) internal view returns (bool) { return address(this) == caller || // First check if the World is calling itself - ResourceAccess.get(ResourceSelector.from(namespace, 0), caller) || // Then check access based on the namespace - ResourceAccess.get(ResourceSelector.from(namespace, name), caller); // If caller has no namespace access, check access on the name + ResourceAccess.get(resourceSelector.getNamespace(), caller) || // Then check access based on the namespace + ResourceAccess.get(resourceSelector, caller); // If caller has no namespace access, check access on the name } /** * Check for access at the given namespace or name. - * Returns the resourceSelector if the caller has access. * Reverts with AccessDenied if the caller has no access. */ - function requireAccess( - bytes16 namespace, - bytes16 name, - address caller - ) internal view returns (bytes32 resourceSelector) { - resourceSelector = ResourceSelector.from(namespace, name); - + function requireAccess(bytes32 resourceSelector, address caller) internal view { // Check if the given caller has access to the given namespace or name - if (!hasAccess(namespace, name, caller)) { + if (!hasAccess(resourceSelector, caller)) { revert IWorldErrors.AccessDenied(resourceSelector.toString(), caller); } } - function requireOwnerOrSelf( - bytes16 namespace, - bytes16 name, - address caller - ) internal view returns (bytes32 resourceSelector) { - resourceSelector = ResourceSelector.from(namespace, name); - - if (address(this) != caller && NamespaceOwner.get(namespace) != caller) { + /** + * Check for ownership of the namespace of the given resource selector + * or identity of the caller to the own address. + * Reverts with AccessDenied the check fails. + */ + function requireOwnerOrSelf(bytes32 resourceSelector, address caller) internal view { + if (address(this) != caller && NamespaceOwner.get(resourceSelector.getNamespace()) != caller) { revert IWorldErrors.AccessDenied(resourceSelector.toString(), caller); } } diff --git a/packages/world/src/World.sol b/packages/world/src/World.sol index 9ef8361508..fdfae2f5c3 100644 --- a/packages/world/src/World.sol +++ b/packages/world/src/World.sol @@ -45,7 +45,7 @@ contract World is StoreRead, IStoreData, IWorldKernel { * The module is delegatecalled and installed in the root namespace. */ function installRootModule(IModule module, bytes memory args) public { - AccessControl.requireOwnerOrSelf(ROOT_NAMESPACE, ROOT_NAME, msg.sender); + AccessControl.requireOwnerOrSelf(ROOT_NAMESPACE, msg.sender); Call.withSender({ msgSender: msg.sender, @@ -66,87 +66,77 @@ contract World is StoreRead, IStoreData, IWorldKernel { ************************************************************************/ /** - * Write a record in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. + * Write a record in the table at the given tableId. + * Requires the caller to have access to the table's namespace or name (encoded in the tableId). */ - function setRecord( - bytes16 namespace, - bytes16 name, - bytes32[] calldata key, - bytes calldata data, - Schema valueSchema - ) public virtual { + function setRecord(bytes32 tableId, bytes32[] calldata key, bytes calldata data, Schema valueSchema) public virtual { // Require access to the namespace or name - bytes32 resourceSelector = AccessControl.requireAccess(namespace, name, msg.sender); + AccessControl.requireAccess(tableId, msg.sender); // Set the record - StoreCore.setRecord(resourceSelector, key, data, valueSchema); + StoreCore.setRecord(tableId, key, data, valueSchema); } /** - * Write a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. + * Write a field in the table at the given tableId. + * Requires the caller to have access to the table's namespace or name (encoded in the tableId). */ function setField( - bytes16 namespace, - bytes16 name, + bytes32 tableId, bytes32[] calldata key, uint8 schemaIndex, bytes calldata data, Schema valueSchema - ) public virtual { + ) public virtual override { // Require access to namespace or name - bytes32 resourceSelector = AccessControl.requireAccess(namespace, name, msg.sender); + AccessControl.requireAccess(tableId, msg.sender); // Set the field - StoreCore.setField(resourceSelector, key, schemaIndex, data, valueSchema); + StoreCore.setField(tableId, key, schemaIndex, data, valueSchema); } /** - * Push data to the end of a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. + * Push data to the end of a field in the table at the given tableId. + * Requires the caller to have access to the table's namespace or name (encoded in the tableId). */ function pushToField( - bytes16 namespace, - bytes16 name, + bytes32 tableId, bytes32[] calldata key, uint8 schemaIndex, bytes calldata dataToPush, Schema valueSchema - ) public virtual { + ) public override { // Require access to namespace or name - bytes32 resourceSelector = AccessControl.requireAccess(namespace, name, msg.sender); + AccessControl.requireAccess(tableId, msg.sender); // Push to the field - StoreCore.pushToField(resourceSelector, key, schemaIndex, dataToPush, valueSchema); + StoreCore.pushToField(tableId, key, schemaIndex, dataToPush, valueSchema); } /** - * Pop data from the end of a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. + * Pop data from the end of a field in the table at the given tableId. + * Requires the caller to have access to the table's namespace or name (encoded in the tableId). */ function popFromField( - bytes16 namespace, - bytes16 name, + bytes32 tableId, bytes32[] calldata key, uint8 schemaIndex, uint256 byteLengthToPop, Schema valueSchema - ) public virtual { + ) public override { // Require access to namespace or name - bytes32 resourceSelector = AccessControl.requireAccess(namespace, name, msg.sender); + AccessControl.requireAccess(tableId, msg.sender); // Push to the field - StoreCore.popFromField(resourceSelector, key, schemaIndex, byteLengthToPop, valueSchema); + StoreCore.popFromField(tableId, key, schemaIndex, byteLengthToPop, valueSchema); } /** - * Update data at `startByteIndex` of a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. + * Update data at `startByteIndex` of a field in the table at the given tableId. + * Requires the caller to have access to the table's namespace or name (encoded in the tableId). */ function updateInField( - bytes16 namespace, - bytes16 name, + bytes32 tableId, bytes32[] calldata key, uint8 schemaIndex, uint256 startByteIndex, @@ -154,107 +144,22 @@ contract World is StoreRead, IStoreData, IWorldKernel { Schema valueSchema ) public virtual { // Require access to namespace or name - bytes32 resourceSelector = AccessControl.requireAccess(namespace, name, msg.sender); + AccessControl.requireAccess(tableId, msg.sender); // Update data in the field - StoreCore.updateInField(resourceSelector, key, schemaIndex, startByteIndex, dataToSet, valueSchema); + StoreCore.updateInField(tableId, key, schemaIndex, startByteIndex, dataToSet, valueSchema); } /** - * Delete a record in the table at the given namespace and name. + * Delete a record in the table at the given tableId. * Requires the caller to have access to the namespace or name. */ - function deleteRecord(bytes16 namespace, bytes16 name, bytes32[] calldata key, Schema valueSchema) public virtual { + function deleteRecord(bytes32 tableId, bytes32[] calldata key, Schema valueSchema) public virtual override { // Require access to namespace or name - bytes32 resourceSelector = AccessControl.requireAccess(namespace, name, msg.sender); + AccessControl.requireAccess(tableId, msg.sender); // Delete the record - StoreCore.deleteRecord(resourceSelector, key, valueSchema); - } - - /************************************************************************ - * - * STORE OVERRIDE METHODS - * - ************************************************************************/ - - /** - * Write a record in the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function setRecord(bytes32 tableId, bytes32[] calldata key, bytes calldata data, Schema valueSchema) public virtual { - setRecord(tableId.getNamespace(), tableId.getName(), key, data, valueSchema); - } - - /** - * Write a field in the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function setField( - bytes32 tableId, - bytes32[] calldata key, - uint8 schemaIndex, - bytes calldata data, - Schema valueSchema - ) public virtual override { - setField(tableId.getNamespace(), tableId.getName(), key, schemaIndex, data, valueSchema); - } - - /** - * Push data to the end of a field in the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function pushToField( - bytes32 tableId, - bytes32[] calldata key, - uint8 schemaIndex, - bytes calldata dataToPush, - Schema valueSchema - ) public override { - pushToField(tableId.getNamespace(), tableId.getName(), key, schemaIndex, dataToPush, valueSchema); - } - - /** - * Pop data from the end of a field in the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function popFromField( - bytes32 tableId, - bytes32[] calldata key, - uint8 schemaIndex, - uint256 byteLengthToPop, - Schema valueSchema - ) public override { - popFromField(tableId.getNamespace(), tableId.getName(), key, schemaIndex, byteLengthToPop, valueSchema); - } - - /** - * Update data at `startByteIndex` of a field in the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function updateInField( - bytes32 tableId, - bytes32[] calldata key, - uint8 schemaIndex, - uint256 startByteIndex, - bytes calldata dataToSet, - Schema valueSchema - ) public virtual { - updateInField(tableId.getNamespace(), tableId.getName(), key, schemaIndex, startByteIndex, dataToSet, valueSchema); - } - - /** - * Delete a record in the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function deleteRecord(bytes32 tableId, bytes32[] calldata key, Schema valueSchema) public virtual override { - deleteRecord(tableId.getNamespace(), tableId.getName(), key, valueSchema); + StoreCore.deleteRecord(tableId, key, valueSchema); } /************************************************************************ @@ -264,15 +169,14 @@ contract World is StoreRead, IStoreData, IWorldKernel { ************************************************************************/ /** - * Call the system at the given namespace and name. - * If the system is not public, the caller must have access to the namespace or name. + * Call the system at the given resourceSelector. + * If the system is not public, the caller must have access to the namespace or name (encoded in the resourceSelector). */ function call( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, bytes memory funcSelectorAndArgs ) external payable virtual returns (bytes memory) { - return _call(namespace, name, funcSelectorAndArgs, msg.value); + return _call(resourceSelector, funcSelectorAndArgs, msg.value); } /** @@ -280,20 +184,18 @@ contract World is StoreRead, IStoreData, IWorldKernel { * If the system is not public, the caller must have access to the namespace or name. */ function _call( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, bytes memory funcSelectorAndArgs, uint256 value ) internal virtual returns (bytes memory data) { // Load the system data - bytes32 resourceSelector = ResourceSelector.from(namespace, name); (address systemAddress, bool publicAccess) = Systems.get(resourceSelector); // Check if the system exists if (systemAddress == address(0)) revert ResourceNotFound(resourceSelector.toString()); // Allow access if the system is public or the caller has access to the namespace or name - if (!publicAccess) AccessControl.requireAccess(namespace, name, msg.sender); + if (!publicAccess) AccessControl.requireAccess(resourceSelector, msg.sender); // Get system hooks address[] memory hooks = SystemHooks.get(resourceSelector); @@ -309,7 +211,7 @@ contract World is StoreRead, IStoreData, IWorldKernel { msgSender: msg.sender, target: systemAddress, funcSelectorAndArgs: funcSelectorAndArgs, - delegate: namespace == ROOT_NAMESPACE, // Use delegatecall for root systems (= registered in the root namespace) + delegate: resourceSelector.getNamespace() == ROOT_NAMESPACE, // Use delegatecall for root systems (= registered in the root namespace) value: value }); @@ -335,15 +237,15 @@ contract World is StoreRead, IStoreData, IWorldKernel { * Fallback function to call registered function selectors */ fallback() external payable { - (bytes16 namespace, bytes16 name, bytes4 systemFunctionSelector) = FunctionSelectors.get(msg.sig); + (bytes32 resourceSelector, bytes4 systemFunctionSelector) = FunctionSelectors.get(msg.sig); - if (namespace == 0 && name == 0) revert FunctionSelectorNotFound(msg.sig); + if (resourceSelector == 0) revert FunctionSelectorNotFound(msg.sig); // Replace function selector in the calldata with the system function selector bytes memory callData = Bytes.setBytes4(msg.data, 0, systemFunctionSelector); - // Call the function and forward the call value - bytes memory returnData = _call(namespace, name, callData, msg.value); + // Call the function and forward the calldata and returndata + bytes memory returnData = _call(resourceSelector, callData, msg.value); assembly { return(add(returnData, 0x20), mload(returnData)) } diff --git a/packages/world/src/interfaces/IBaseWorld.sol b/packages/world/src/interfaces/IBaseWorld.sol index 1588fe2265..3682f23ac3 100644 --- a/packages/world/src/interfaces/IBaseWorld.sol +++ b/packages/world/src/interfaces/IBaseWorld.sol @@ -10,7 +10,7 @@ import { IWorldEphemeral } from "../interfaces/IWorldEphemeral.sol"; import { ICoreSystem } from "./ICoreSystem.sol"; import { IAccessManagementSystem } from "./IAccessManagementSystem.sol"; import { IModuleInstallationSystem } from "./IModuleInstallationSystem.sol"; -import { IWorldRegistrationSystem } from "./IWorldRegistrationSystem.sol"; +import { IRegistrationSystem } from "./IRegistrationSystem.sol"; /** * The IBaseWorld interface includes all systems dynamically added to the World @@ -23,7 +23,7 @@ interface IBaseWorld is ICoreSystem, IAccessManagementSystem, IModuleInstallationSystem, - IWorldRegistrationSystem + IRegistrationSystem { } diff --git a/packages/world/src/interfaces/IWorldRegistrationSystem.sol b/packages/world/src/interfaces/IRegistrationSystem.sol similarity index 57% rename from packages/world/src/interfaces/IWorldRegistrationSystem.sol rename to packages/world/src/interfaces/IRegistrationSystem.sol index 63b7273234..541e905e7a 100644 --- a/packages/world/src/interfaces/IWorldRegistrationSystem.sol +++ b/packages/world/src/interfaces/IRegistrationSystem.sol @@ -8,41 +8,33 @@ import { IStoreHook } from "@latticexyz/store/src/IStore.sol"; import { ISystemHook } from "./ISystemHook.sol"; import { System } from "./../System.sol"; -interface IWorldRegistrationSystem { +interface IRegistrationSystem { function registerNamespace(bytes16 namespace) external; function registerTable( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, Schema keySchema, Schema valueSchema, string[] calldata keyNames, string[] calldata fieldNames - ) external returns (bytes32 resourceSelector); + ) external; - function registerHook(bytes16 namespace, bytes16 name, address hook) external; + function registerHook(bytes32 resourceSelector, address hook) external; - function registerTableHook(bytes16 namespace, bytes16 name, IStoreHook hook) external; + function registerStoreHook(bytes32 tableId, IStoreHook hook) external; - function registerSystemHook(bytes16 namespace, bytes16 name, ISystemHook hook) external; + function registerSystemHook(bytes32 resourceSelector, ISystemHook hook) external; - function registerSystem( - bytes16 namespace, - bytes16 name, - System system, - bool publicAccess - ) external returns (bytes32 resourceSelector); + function registerSystem(bytes32 resourceSelector, System system, bool publicAccess) external; function registerFunctionSelector( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, string memory systemFunctionName, string memory systemFunctionArguments ) external returns (bytes4 worldFunctionSelector); function registerRootFunctionSelector( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, bytes4 worldFunctionSelector, bytes4 systemFunctionSelector ) external returns (bytes4); diff --git a/packages/world/src/interfaces/IStoreRegistrationSystem.sol b/packages/world/src/interfaces/IStoreRegistrationSystem.sol deleted file mode 100644 index 2f6bf63a2c..0000000000 --- a/packages/world/src/interfaces/IStoreRegistrationSystem.sol +++ /dev/null @@ -1,14 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; - -/* Autogenerated file. Do not edit manually. */ - -import { Schema, IStoreHook } from "../modules/core/implementations/StoreRegistrationSystem.sol"; - -interface IStoreRegistrationSystem { - function registerSchema(bytes32 tableId, Schema valueSchema, Schema keySchema) external; - - function setMetadata(bytes32 tableId, string calldata tableName, string[] calldata fieldNames) external; - - function registerStoreHook(bytes32 tableId, IStoreHook hook) external; -} diff --git a/packages/world/src/interfaces/IWorldKernel.sol b/packages/world/src/interfaces/IWorldKernel.sol index 7890c7bfd1..49763c2170 100644 --- a/packages/world/src/interfaces/IWorldKernel.sol +++ b/packages/world/src/interfaces/IWorldKernel.sol @@ -5,84 +5,6 @@ import { Schema } from "@latticexyz/store/src/Schema.sol"; import { IWorldErrors } from "./IWorldErrors.sol"; import { IModule } from "./IModule.sol"; -/** - * The IWorldData interface includes methods for reading and writing table values. - * These methods are frequently invoked during runtime, so it is essential to prioritize - * optimizing their gas cost, and they are part of the World contract's internal bytecode. - */ -interface IWorldData { - /** - * Write a record in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. - */ - function setRecord( - bytes16 namespace, - bytes16 name, - bytes32[] calldata key, - bytes calldata data, - Schema valueSchema - ) external; - - /** - * Write a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. - */ - function setField( - bytes16 namespace, - bytes16 name, - bytes32[] calldata key, - uint8 schemaIndex, - bytes calldata data, - Schema valueSchema - ) external; - - /** - * Push data to the end of a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. - */ - function pushToField( - bytes16 namespace, - bytes16 name, - bytes32[] calldata key, - uint8 schemaIndex, - bytes calldata dataToPush, - Schema valueSchema - ) external; - - /** - * Pop data from the end of a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. - */ - function popFromField( - bytes16 namespace, - bytes16 name, - bytes32[] calldata key, - uint8 schemaIndex, - uint256 byteLengthToPop, - Schema valueSchema - ) external; - - /** - * Update data at `startByteIndex` of a field in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. - */ - function updateInField( - bytes16 namespace, - bytes16 name, - bytes32[] calldata key, - uint8 schemaIndex, - uint256 startByteIndex, - bytes calldata dataToSet, - Schema valueSchema - ) external; - - /** - * Delete a record in the table at the given namespace and name. - * Requires the caller to have access to the namespace or name. - */ - function deleteRecord(bytes16 namespace, bytes16 name, bytes32[] calldata key, Schema valueSchema) external; -} - interface IWorldModuleInstallation { /** * Install the given root module in the World. @@ -94,14 +16,10 @@ interface IWorldModuleInstallation { interface IWorldCall { /** - * Call the system at the given namespace and name. + * Call the system at the given resource selector (namespace + name) * If the system is not public, the caller must have access to the namespace or name. */ - function call( - bytes16 namespace, - bytes16 name, - bytes memory funcSelectorAndArgs - ) external payable returns (bytes memory); + function call(bytes32 resourceSelector, bytes memory funcSelectorAndArgs) external payable returns (bytes memory); } /** @@ -111,6 +29,6 @@ interface IWorldCall { * Consumers should use the `IBaseWorld` interface instead, which includes dynamically * registered functions selectors from the `CoreModule`. */ -interface IWorldKernel is IWorldData, IWorldModuleInstallation, IWorldCall, IWorldErrors { +interface IWorldKernel is IWorldModuleInstallation, IWorldCall, IWorldErrors { event HelloWorld(); } diff --git a/packages/world/src/modules/core/CoreModule.sol b/packages/world/src/modules/core/CoreModule.sol index c6fe5b0875..f87d77ebbe 100644 --- a/packages/world/src/modules/core/CoreModule.sol +++ b/packages/world/src/modules/core/CoreModule.sol @@ -11,6 +11,7 @@ import { IModule } from "../../interfaces/IModule.sol"; import { IStoreEphemeral } from "@latticexyz/store/src/IStore.sol"; import { IWorldEphemeral } from "../../interfaces/IWorldEphemeral.sol"; +import { ResourceSelector } from "../../ResourceSelector.sol"; import { NamespaceOwner } from "../../tables/NamespaceOwner.sol"; import { ResourceAccess } from "../../tables/ResourceAccess.sol"; @@ -25,8 +26,7 @@ import { ResourceType } from "./tables/ResourceType.sol"; import { SystemHooks } from "./tables/SystemHooks.sol"; import { SystemRegistry } from "./tables/SystemRegistry.sol"; -import { WorldRegistrationSystem } from "./implementations/WorldRegistrationSystem.sol"; -import { StoreRegistrationSystem } from "./implementations/StoreRegistrationSystem.sol"; +import { RegistrationSystem } from "./implementations/RegistrationSystem.sol"; import { ModuleInstallationSystem } from "./implementations/ModuleInstallationSystem.sol"; import { AccessManagementSystem } from "./implementations/AccessManagementSystem.sol"; import { EphemeralRecordSystem } from "./implementations/EphemeralRecordSystem.sol"; @@ -80,7 +80,7 @@ contract CoreModule is IModule, WorldContext { delegate: true, value: 0, funcSelectorAndArgs: abi.encodeWithSelector( - WorldRegistrationSystem.registerSystem.selector, + RegistrationSystem.registerSystem.selector, ROOT_NAMESPACE, CORE_SYSTEM_NAME, coreSystem, @@ -93,19 +93,16 @@ contract CoreModule is IModule, WorldContext { * Register function selectors for all CoreSystem functions in the World */ function _registerFunctionSelectors() internal { - bytes4[15] memory functionSelectors = [ - // --- WorldRegistrationSystem --- - WorldRegistrationSystem.registerNamespace.selector, - WorldRegistrationSystem.registerTable.selector, - WorldRegistrationSystem.registerHook.selector, - WorldRegistrationSystem.registerTableHook.selector, - WorldRegistrationSystem.registerSystemHook.selector, - WorldRegistrationSystem.registerSystem.selector, - WorldRegistrationSystem.registerFunctionSelector.selector, - WorldRegistrationSystem.registerRootFunctionSelector.selector, - // --- StoreRegistrationSystem --- - StoreRegistrationSystem.registerTable.selector, - StoreRegistrationSystem.registerStoreHook.selector, + bytes4[13] memory functionSelectors = [ + // --- RegistrationSystem --- + RegistrationSystem.registerNamespace.selector, + RegistrationSystem.registerTable.selector, + RegistrationSystem.registerHook.selector, + RegistrationSystem.registerStoreHook.selector, + RegistrationSystem.registerSystemHook.selector, + RegistrationSystem.registerSystem.selector, + RegistrationSystem.registerFunctionSelector.selector, + RegistrationSystem.registerRootFunctionSelector.selector, // --- ModuleInstallationSystem --- ModuleInstallationSystem.installModule.selector, // --- AccessManagementSystem --- @@ -125,9 +122,8 @@ contract CoreModule is IModule, WorldContext { delegate: true, value: 0, funcSelectorAndArgs: abi.encodeWithSelector( - WorldRegistrationSystem.registerRootFunctionSelector.selector, - ROOT_NAMESPACE, - CORE_SYSTEM_NAME, + RegistrationSystem.registerRootFunctionSelector.selector, + ResourceSelector.from(ROOT_NAMESPACE, CORE_SYSTEM_NAME), functionSelectors[i], functionSelectors[i] ) diff --git a/packages/world/src/modules/core/CoreSystem.sol b/packages/world/src/modules/core/CoreSystem.sol index 8a9a7df7a5..af48796c0b 100644 --- a/packages/world/src/modules/core/CoreSystem.sol +++ b/packages/world/src/modules/core/CoreSystem.sol @@ -3,8 +3,7 @@ pragma solidity >=0.8.0; import { IWorldErrors } from "../../interfaces/IWorldErrors.sol"; -import { WorldRegistrationSystem } from "./implementations/WorldRegistrationSystem.sol"; -import { StoreRegistrationSystem } from "./implementations/StoreRegistrationSystem.sol"; +import { RegistrationSystem } from "./implementations/RegistrationSystem.sol"; import { ModuleInstallationSystem } from "./implementations/ModuleInstallationSystem.sol"; import { AccessManagementSystem } from "./implementations/AccessManagementSystem.sol"; import { EphemeralRecordSystem } from "./implementations/EphemeralRecordSystem.sol"; @@ -15,8 +14,7 @@ import { EphemeralRecordSystem } from "./implementations/EphemeralRecordSystem.s */ contract CoreSystem is IWorldErrors, - WorldRegistrationSystem, - StoreRegistrationSystem, + RegistrationSystem, ModuleInstallationSystem, AccessManagementSystem, EphemeralRecordSystem diff --git a/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol b/packages/world/src/modules/core/implementations/RegistrationSystem.sol similarity index 72% rename from packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol rename to packages/world/src/modules/core/implementations/RegistrationSystem.sol index b87f34b2ae..bb70ae1ade 100644 --- a/packages/world/src/modules/core/implementations/WorldRegistrationSystem.sol +++ b/packages/world/src/modules/core/implementations/RegistrationSystem.sol @@ -24,7 +24,7 @@ import { FunctionSelectors } from "../tables/FunctionSelectors.sol"; /** * Functions related to registering resources in the World. */ -contract WorldRegistrationSystem is System, IWorldErrors { +contract RegistrationSystem is System, IWorldErrors { using ResourceSelector for bytes32; /** @@ -50,22 +50,20 @@ contract WorldRegistrationSystem is System, IWorldErrors { * Register a table with given schema in the given namespace */ function registerTable( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, Schema keySchema, Schema valueSchema, string[] calldata keyNames, string[] calldata fieldNames - ) public virtual returns (bytes32 resourceSelector) { - resourceSelector = ResourceSelector.from(namespace, name); - + ) public virtual { // Require the name to not be the namespace's root name - if (name == ROOT_NAME) revert InvalidSelector(resourceSelector.toString()); + if (resourceSelector.getName() == ROOT_NAME) revert InvalidSelector(resourceSelector.toString()); // If the namespace doesn't exist yet, register it // otherwise require caller to own the namespace + bytes16 namespace = resourceSelector.getNamespace(); if (ResourceType.get(namespace) == Resource.NONE) registerNamespace(namespace); - else AccessControl.requireOwnerOrSelf(namespace, ROOT_NAME, _msgSender()); + else AccessControl.requireOwnerOrSelf(namespace, _msgSender()); // Require no resource to exist at this selector yet if (ResourceType.get(resourceSelector) != Resource.NONE) { @@ -84,38 +82,38 @@ contract WorldRegistrationSystem is System, IWorldErrors { * Hooks on table names must implement the IStoreHook interface, * and hooks on system names must implement the ISystemHook interface. */ - function registerHook(bytes16 namespace, bytes16 name, address hook) public virtual { - Resource resourceType = ResourceType.get(ResourceSelector.from(namespace, name)); + function registerHook(bytes32 resourceSelector, address hook) public virtual { + Resource resourceType = ResourceType.get(resourceSelector); if (resourceType == Resource.TABLE) { - return registerTableHook(namespace, name, IStoreHook(hook)); + return registerStoreHook(resourceSelector, IStoreHook(hook)); } if (resourceType == Resource.SYSTEM) { - return registerSystemHook(namespace, name, ISystemHook(hook)); + return registerSystemHook(resourceSelector, ISystemHook(hook)); } - revert InvalidSelector(ResourceSelector.from(namespace, name).toString()); + revert InvalidSelector(resourceSelector.toString()); } /** * Register a hook for the table at the given namepace and name. * Requires the caller to own the namespace. */ - function registerTableHook(bytes16 namespace, bytes16 name, IStoreHook hook) public virtual { + function registerStoreHook(bytes32 tableId, IStoreHook hook) public virtual { // Require caller to own the namespace - bytes32 resourceSelector = AccessControl.requireOwnerOrSelf(namespace, name, _msgSender()); + AccessControl.requireOwnerOrSelf(tableId, _msgSender()); // Register the hook - StoreCore.registerStoreHook(resourceSelector, hook); + StoreCore.registerStoreHook(tableId, hook); } /** * Register a hook for the system at the given namespace and name */ - function registerSystemHook(bytes16 namespace, bytes16 name, ISystemHook hook) public virtual { + function registerSystemHook(bytes32 resourceSelector, ISystemHook hook) public virtual { // Require caller to own the namespace - bytes32 resourceSelector = AccessControl.requireOwnerOrSelf(namespace, name, _msgSender()); + AccessControl.requireOwnerOrSelf(resourceSelector, _msgSender()); // Register the hook SystemHooks.push(resourceSelector, address(hook)); @@ -127,24 +125,18 @@ contract WorldRegistrationSystem is System, IWorldErrors { * The system is granted access to its namespace, so it can write to any table in the same namespace. * If publicAccess is true, no access control check is performed for calling the system. */ - function registerSystem( - bytes16 namespace, - bytes16 name, - System system, - bool publicAccess - ) public virtual returns (bytes32 resourceSelector) { - resourceSelector = ResourceSelector.from(namespace, name); - + function registerSystem(bytes32 resourceSelector, System system, bool publicAccess) public virtual { // Require the name to not be the namespace's root name - if (name == ROOT_NAME) revert InvalidSelector(resourceSelector.toString()); + if (resourceSelector.getName() == ROOT_NAME) revert InvalidSelector(resourceSelector.toString()); // Require the system to not exist yet if (SystemRegistry.get(address(system)) != 0) revert SystemExists(address(system)); // If the namespace doesn't exist yet, register it // otherwise require caller to own the namespace + bytes16 namespace = resourceSelector.getNamespace(); if (ResourceType.get(namespace) == Resource.NONE) registerNamespace(namespace); - else AccessControl.requireOwnerOrSelf(namespace, ROOT_NAME, _msgSender()); + else AccessControl.requireOwnerOrSelf(namespace, _msgSender()); // Require no resource to exist at this selector yet if (ResourceType.get(resourceSelector) != Resource.NONE) { @@ -171,33 +163,31 @@ contract WorldRegistrationSystem is System, IWorldErrors { * (see https://github.com/latticexyz/mud/issues/444) */ function registerFunctionSelector( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, string memory systemFunctionName, string memory systemFunctionArguments ) public returns (bytes4 worldFunctionSelector) { // Require the caller to own the namespace - AccessControl.requireOwnerOrSelf(namespace, name, _msgSender()); + AccessControl.requireOwnerOrSelf(resourceSelector, _msgSender()); // Compute global function selector - string memory namespaceString = ResourceSelector.toTrimmedString(namespace); - string memory nameString = ResourceSelector.toTrimmedString(name); + string memory namespaceString = ResourceSelector.toTrimmedString(resourceSelector.getNamespace()); + string memory nameString = ResourceSelector.toTrimmedString(resourceSelector.getName()); worldFunctionSelector = bytes4( keccak256(abi.encodePacked(namespaceString, "_", nameString, "_", systemFunctionName, systemFunctionArguments)) ); // Require the function selector to be globally unique - bytes16 existingNamespace = FunctionSelectors.getNamespace(worldFunctionSelector); - bytes16 existingName = FunctionSelectors.getName(worldFunctionSelector); + bytes32 existingResourceSelector = FunctionSelectors.getResourceSelector(worldFunctionSelector); - if (existingNamespace != 0 || existingName != 0) revert FunctionSelectorExists(worldFunctionSelector); + if (existingResourceSelector != 0) revert FunctionSelectorExists(worldFunctionSelector); // Register the function selector bytes memory systemFunctionSignature = abi.encodePacked(systemFunctionName, systemFunctionArguments); bytes4 systemFunctionSelector = systemFunctionSignature.length == 0 ? bytes4(0) // Save gas by storing 0x0 for empty function signatures (= fallback function) : bytes4(keccak256(systemFunctionSignature)); - FunctionSelectors.set(worldFunctionSelector, namespace, name, systemFunctionSelector); + FunctionSelectors.set(worldFunctionSelector, resourceSelector, systemFunctionSelector); } /** @@ -208,22 +198,20 @@ contract WorldRegistrationSystem is System, IWorldErrors { * (see https://github.com/latticexyz/mud/issues/444) */ function registerRootFunctionSelector( - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, bytes4 worldFunctionSelector, bytes4 systemFunctionSelector ) public returns (bytes4) { // Require the caller to own the root namespace - AccessControl.requireOwnerOrSelf(ROOT_NAMESPACE, ROOT_NAME, _msgSender()); + AccessControl.requireOwnerOrSelf(ROOT_NAMESPACE, _msgSender()); // Require the function selector to be globally unique - bytes16 existingNamespace = FunctionSelectors.getNamespace(worldFunctionSelector); - bytes16 existingName = FunctionSelectors.getName(worldFunctionSelector); + bytes32 existingResourceSelector = FunctionSelectors.getResourceSelector(worldFunctionSelector); - if (!(existingNamespace == 0 && existingName == 0)) revert FunctionSelectorExists(worldFunctionSelector); + if (existingResourceSelector != 0) revert FunctionSelectorExists(worldFunctionSelector); // Register the function selector - FunctionSelectors.set(worldFunctionSelector, namespace, name, systemFunctionSelector); + FunctionSelectors.set(worldFunctionSelector, resourceSelector, systemFunctionSelector); return worldFunctionSelector; } diff --git a/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol b/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol deleted file mode 100644 index b60114fc42..0000000000 --- a/packages/world/src/modules/core/implementations/StoreRegistrationSystem.sol +++ /dev/null @@ -1,81 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity >=0.8.0; - -import { IStoreRegistration, IStoreHook } from "@latticexyz/store/src/IStore.sol"; -import { Schema } from "@latticexyz/store/src/Schema.sol"; - -import { System } from "../../../System.sol"; -import { ROOT_NAMESPACE, ROOT_NAME } from "../../../constants.sol"; -import { ResourceSelector } from "../../../ResourceSelector.sol"; -import { Call } from "../../../Call.sol"; - -import { Systems } from "../tables/Systems.sol"; -import { CORE_SYSTEM_NAME } from "../constants.sol"; - -import { WorldRegistrationSystem } from "./WorldRegistrationSystem.sol"; - -/** - * World framework implementation of IStoreRegistration. - * - * See {IStoreRegistration} - */ -contract StoreRegistrationSystem is IStoreRegistration, System { - using ResourceSelector for bytes32; - - /** - * Register the given key schema, value schema, key names and value names for the given table id. - * This overload exists to conform with the IStore interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function registerTable( - bytes32 tableId, - Schema keySchema, - Schema valueSchema, - string[] calldata keyNames, - string[] calldata fieldNames - ) public virtual { - (address systemAddress, ) = Systems.get(ResourceSelector.from(ROOT_NAMESPACE, CORE_SYSTEM_NAME)); - - // We can't call IBaseWorld(this).registerSchema directly because it would be handled like - // an external call, so msg.sender would be the address of the World contract - Call.withSender({ - msgSender: _msgSender(), - target: systemAddress, - funcSelectorAndArgs: abi.encodeWithSelector( - WorldRegistrationSystem.registerTable.selector, - tableId.getNamespace(), - tableId.getName(), - keySchema, - valueSchema, - keyNames, - fieldNames - ), - delegate: true, - value: 0 - }); - } - - /** - * Register a hook for the table at the given tableId. - * This overload exists to conform with the `IStore` interface. - * Access is checked based on the namespace or name (encoded in the tableId). - */ - function registerStoreHook(bytes32 tableId, IStoreHook hook) public virtual { - (address systemAddress, ) = Systems.get(ResourceSelector.from(ROOT_NAMESPACE, CORE_SYSTEM_NAME)); - - // We can't call IBaseWorld(this).registerStoreHook directly because it would be handled like - // an external call, so msg.sender would be the address of the World contract - Call.withSender({ - msgSender: _msgSender(), - target: systemAddress, - funcSelectorAndArgs: abi.encodeWithSelector( - WorldRegistrationSystem.registerTableHook.selector, - tableId.getNamespace(), - tableId.getName(), - hook - ), - delegate: true, - value: 0 - }); - } -} diff --git a/packages/world/src/modules/core/tables/FunctionSelectors.sol b/packages/world/src/modules/core/tables/FunctionSelectors.sol index 4e2a5bc746..3fb1ade9be 100644 --- a/packages/world/src/modules/core/tables/FunctionSelectors.sol +++ b/packages/world/src/modules/core/tables/FunctionSelectors.sol @@ -31,10 +31,9 @@ library FunctionSelectors { /** Get the table's value schema */ function getValueSchema() internal pure returns (Schema) { - SchemaType[] memory _schema = new SchemaType[](3); - _schema[0] = SchemaType.BYTES16; - _schema[1] = SchemaType.BYTES16; - _schema[2] = SchemaType.BYTES4; + SchemaType[] memory _schema = new SchemaType[](2); + _schema[0] = SchemaType.BYTES32; + _schema[1] = SchemaType.BYTES4; return SchemaLib.encode(_schema); } @@ -47,10 +46,9 @@ library FunctionSelectors { /** Get the table's field names */ function getFieldNames() internal pure returns (string[] memory fieldNames) { - fieldNames = new string[](3); - fieldNames[0] = "namespace"; - fieldNames[1] = "name"; - fieldNames[2] = "systemFunctionSelector"; + fieldNames = new string[](2); + fieldNames[0] = "resourceSelector"; + fieldNames[1] = "systemFunctionSelector"; } /** Register the table's key schema, value schema, key names and value names */ @@ -63,72 +61,41 @@ library FunctionSelectors { _store.registerTable(_tableId, getKeySchema(), getValueSchema(), getKeyNames(), getFieldNames()); } - /** Get namespace */ - function getNamespace(bytes4 functionSelector) internal view returns (bytes16 namespace) { + /** Get resourceSelector */ + function getResourceSelector(bytes4 functionSelector) internal view returns (bytes32 resourceSelector) { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 0, getValueSchema()); - return (Bytes.slice16(_blob, 0)); + return (Bytes.slice32(_blob, 0)); } - /** Get namespace (using the specified store) */ - function getNamespace(IStore _store, bytes4 functionSelector) internal view returns (bytes16 namespace) { + /** Get resourceSelector (using the specified store) */ + function getResourceSelector( + IStore _store, + bytes4 functionSelector + ) internal view returns (bytes32 resourceSelector) { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); bytes memory _blob = _store.getField(_tableId, _keyTuple, 0, getValueSchema()); - return (Bytes.slice16(_blob, 0)); - } - - /** Set namespace */ - function setNamespace(bytes4 functionSelector, bytes16 namespace) internal { - bytes32[] memory _keyTuple = new bytes32[](1); - _keyTuple[0] = bytes32(functionSelector); - - StoreSwitch.setField(_tableId, _keyTuple, 0, abi.encodePacked((namespace)), getValueSchema()); + return (Bytes.slice32(_blob, 0)); } - /** Set namespace (using the specified store) */ - function setNamespace(IStore _store, bytes4 functionSelector, bytes16 namespace) internal { + /** Set resourceSelector */ + function setResourceSelector(bytes4 functionSelector, bytes32 resourceSelector) internal { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); - _store.setField(_tableId, _keyTuple, 0, abi.encodePacked((namespace)), getValueSchema()); + StoreSwitch.setField(_tableId, _keyTuple, 0, abi.encodePacked((resourceSelector)), getValueSchema()); } - /** Get name */ - function getName(bytes4 functionSelector) internal view returns (bytes16 name) { + /** Set resourceSelector (using the specified store) */ + function setResourceSelector(IStore _store, bytes4 functionSelector, bytes32 resourceSelector) internal { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); - bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 1, getValueSchema()); - return (Bytes.slice16(_blob, 0)); - } - - /** Get name (using the specified store) */ - function getName(IStore _store, bytes4 functionSelector) internal view returns (bytes16 name) { - bytes32[] memory _keyTuple = new bytes32[](1); - _keyTuple[0] = bytes32(functionSelector); - - bytes memory _blob = _store.getField(_tableId, _keyTuple, 1, getValueSchema()); - return (Bytes.slice16(_blob, 0)); - } - - /** Set name */ - function setName(bytes4 functionSelector, bytes16 name) internal { - bytes32[] memory _keyTuple = new bytes32[](1); - _keyTuple[0] = bytes32(functionSelector); - - StoreSwitch.setField(_tableId, _keyTuple, 1, abi.encodePacked((name)), getValueSchema()); - } - - /** Set name (using the specified store) */ - function setName(IStore _store, bytes4 functionSelector, bytes16 name) internal { - bytes32[] memory _keyTuple = new bytes32[](1); - _keyTuple[0] = bytes32(functionSelector); - - _store.setField(_tableId, _keyTuple, 1, abi.encodePacked((name)), getValueSchema()); + _store.setField(_tableId, _keyTuple, 0, abi.encodePacked((resourceSelector)), getValueSchema()); } /** Get systemFunctionSelector */ @@ -136,7 +103,7 @@ library FunctionSelectors { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); - bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 2, getValueSchema()); + bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 1, getValueSchema()); return (Bytes.slice4(_blob, 0)); } @@ -148,7 +115,7 @@ library FunctionSelectors { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); - bytes memory _blob = _store.getField(_tableId, _keyTuple, 2, getValueSchema()); + bytes memory _blob = _store.getField(_tableId, _keyTuple, 1, getValueSchema()); return (Bytes.slice4(_blob, 0)); } @@ -157,7 +124,7 @@ library FunctionSelectors { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); - StoreSwitch.setField(_tableId, _keyTuple, 2, abi.encodePacked((systemFunctionSelector)), getValueSchema()); + StoreSwitch.setField(_tableId, _keyTuple, 1, abi.encodePacked((systemFunctionSelector)), getValueSchema()); } /** Set systemFunctionSelector (using the specified store) */ @@ -165,13 +132,13 @@ library FunctionSelectors { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); - _store.setField(_tableId, _keyTuple, 2, abi.encodePacked((systemFunctionSelector)), getValueSchema()); + _store.setField(_tableId, _keyTuple, 1, abi.encodePacked((systemFunctionSelector)), getValueSchema()); } /** Get the full data */ function get( bytes4 functionSelector - ) internal view returns (bytes16 namespace, bytes16 name, bytes4 systemFunctionSelector) { + ) internal view returns (bytes32 resourceSelector, bytes4 systemFunctionSelector) { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); @@ -183,7 +150,7 @@ library FunctionSelectors { function get( IStore _store, bytes4 functionSelector - ) internal view returns (bytes16 namespace, bytes16 name, bytes4 systemFunctionSelector) { + ) internal view returns (bytes32 resourceSelector, bytes4 systemFunctionSelector) { bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); @@ -192,8 +159,8 @@ library FunctionSelectors { } /** Set the full data using individual values */ - function set(bytes4 functionSelector, bytes16 namespace, bytes16 name, bytes4 systemFunctionSelector) internal { - bytes memory _data = encode(namespace, name, systemFunctionSelector); + function set(bytes4 functionSelector, bytes32 resourceSelector, bytes4 systemFunctionSelector) internal { + bytes memory _data = encode(resourceSelector, systemFunctionSelector); bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); @@ -205,11 +172,10 @@ library FunctionSelectors { function set( IStore _store, bytes4 functionSelector, - bytes16 namespace, - bytes16 name, + bytes32 resourceSelector, bytes4 systemFunctionSelector ) internal { - bytes memory _data = encode(namespace, name, systemFunctionSelector); + bytes memory _data = encode(resourceSelector, systemFunctionSelector); bytes32[] memory _keyTuple = new bytes32[](1); _keyTuple[0] = bytes32(functionSelector); @@ -218,19 +184,15 @@ library FunctionSelectors { } /** Decode the tightly packed blob using this table's schema */ - function decode( - bytes memory _blob - ) internal pure returns (bytes16 namespace, bytes16 name, bytes4 systemFunctionSelector) { - namespace = (Bytes.slice16(_blob, 0)); - - name = (Bytes.slice16(_blob, 16)); + function decode(bytes memory _blob) internal pure returns (bytes32 resourceSelector, bytes4 systemFunctionSelector) { + resourceSelector = (Bytes.slice32(_blob, 0)); systemFunctionSelector = (Bytes.slice4(_blob, 32)); } /** Tightly pack full data using this table's schema */ - function encode(bytes16 namespace, bytes16 name, bytes4 systemFunctionSelector) internal pure returns (bytes memory) { - return abi.encodePacked(namespace, name, systemFunctionSelector); + function encode(bytes32 resourceSelector, bytes4 systemFunctionSelector) internal pure returns (bytes memory) { + return abi.encodePacked(resourceSelector, systemFunctionSelector); } /** Encode keys as a bytes32 array using this table's schema */