diff --git a/packages/cli/src/utils/deploy.ts b/packages/cli/src/utils/deploy.ts index 8adea56f6f..f5bde2b149 100644 --- a/packages/cli/src/utils/deploy.ts +++ b/packages/cli/src/utils/deploy.ts @@ -17,6 +17,7 @@ import IBaseWorldData from "@latticexyz/world/abi/IBaseWorld.sol/IBaseWorld.json import CoreModuleData from "@latticexyz/world/abi/CoreModule.sol/CoreModule.json" assert { type: "json" }; import KeysWithValueModuleData from "@latticexyz/world/abi/KeysWithValueModule.sol/KeysWithValueModule.json" assert { type: "json" }; import KeysInTableModuleData from "@latticexyz/world/abi/KeysInTableModule.sol/KeysInTableModule.json" assert { type: "json" }; +import HasKeysModuleData from "@latticexyz/world/abi/HasKeysModule.sol/HasKeysModule.json" assert { type: "json" }; import UniqueEntityModuleData from "@latticexyz/world/abi/UniqueEntityModule.sol/UniqueEntityModule.json" assert { type: "json" }; import { tableIdToHex } from "@latticexyz/common"; import { abiTypesToSchema, schemaToHex } from "@latticexyz/protocol-parser"; @@ -124,6 +125,12 @@ export async function deploy( disableTxWait, "KeysInTableModule" ), + HasKeysModule: deployContract( + HasKeysModuleData.abi, + HasKeysModuleData.bytecode, + disableTxWait, + "HasKeysModule" + ), UniqueEntityModule: deployContract( UniqueEntityModuleData.abi, UniqueEntityModuleData.bytecode, diff --git a/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json b/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json index 05fb673bf7..e9c1bdf054 100644 --- a/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json +++ b/packages/world/abi/AccessManagementSystem.sol/AccessManagementSystem.abi.json @@ -1,118 +1,118 @@ [ { - "type": "function", - "name": "grantAccess", - "inputs": [ - { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "grantee", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "revokeAccess", - "inputs": [ - { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "grantee", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", - "name": "AccessDenied", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "address", "name": "caller", - "type": "address", - "internalType": "address" + "type": "address" } - ] + ], + "name": "AccessDenied", + "type": "error" }, { - "type": "error", - "name": "PackedCounter_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "PackedCounter_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" + } + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "grantee", + "type": "address" } - ] + ], + "name": "grantAccess", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "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/CoreModule.sol/CoreModule.abi.json b/packages/world/abi/CoreModule.sol/CoreModule.abi.json index cd6665d4c7..43437a8fc5 100644 --- a/packages/world/abi/CoreModule.sol/CoreModule.abi.json +++ b/packages/world/abi/CoreModule.sol/CoreModule.abi.json @@ -1,151 +1,151 @@ [ { - "type": "function", - "name": "getName", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "install", "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", "name": "PackedCounter_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] + "type": "error" }, { - "type": "error", - "name": "RequiredModuleNotFound", "inputs": [ { + "internalType": "string", "name": "resourceSelector", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "RequiredModuleNotFound", + "type": "error" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidFieldNamesLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidKeyNamesLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_TableAlreadyExists", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "string", "name": "tableIdString", - "type": "string", - "internalType": "string" + "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 index 1d177c8fda..287a111f84 100644 --- a/packages/world/abi/CoreSystem.sol/CoreSystem.abi.json +++ b/packages/world/abi/CoreSystem.sol/CoreSystem.abi.json @@ -1,492 +1,492 @@ [ { - "type": "function", - "name": "emitEphemeralRecord", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "string", + "name": "resource", + "type": "string" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "address", + "name": "caller", + "type": "address" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "AccessDenied", + "type": "error" }, { - "type": "function", - "name": "grantAccess", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "grantee", - "type": "address", - "internalType": "address" + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "FunctionSelectorExists", + "type": "error" }, { - "type": "function", - "name": "installModule", "inputs": [ { - "name": "module", - "type": "address", - "internalType": "contract IModule" - }, - { - "name": "args", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "FunctionSelectorNotFound", + "type": "error" }, { - "type": "function", - "name": "registerFunctionSelector", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "systemFunctionName", - "type": "string", - "internalType": "string" - }, - { - "name": "systemFunctionArguments", - "type": "string", - "internalType": "string" - }, - { - "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "internalType": "string", + "name": "resource", + "type": "string" } ], - "outputs": [ + "name": "InvalidSelector", + "type": "error" + }, + { + "inputs": [ { - "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "string", + "name": "module", + "type": "string" } ], - "stateMutability": "nonpayable" + "name": "ModuleAlreadyInstalled", + "type": "error" }, { - "type": "function", - "name": "registerNamespace", "inputs": [ { - "name": "namespace", - "type": "bytes16", - "internalType": "bytes16" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "PackedCounter_InvalidLength", + "type": "error" }, { - "type": "function", - "name": "registerRootFunctionSelector", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" - }, - { - "name": "systemFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" - }, - { - "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "internalType": "string", + "name": "resource", + "type": "string" } ], - "outputs": [ + "name": "ResourceExists", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "string", + "name": "resource", + "type": "string" } ], - "stateMutability": "nonpayable" + "name": "ResourceNotFound", + "type": "error" }, { - "type": "function", - "name": "registerStoreHook", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "hook", - "type": "address", - "internalType": "contract IStoreHook" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "SchemaLib_InvalidLength", + "type": "error" + }, + { + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" }, { - "type": "function", - "name": "registerSystem", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "system", - "type": "address", - "internalType": "contract System" + "internalType": "uint256", + "name": "start", + "type": "uint256" }, { - "name": "publicAccess", - "type": "bool", - "internalType": "bool" + "internalType": "uint256", + "name": "end", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "function", - "name": "registerSystemHook", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "hook", - "type": "address", - "internalType": "contract ISystemHook" + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreCore_InvalidDataLength", + "type": "error" }, { - "type": "function", - "name": "registerTable", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "keySchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" - }, + "internalType": "uint256", + "name": "received", + "type": "uint256" + } + ], + "name": "StoreCore_InvalidFieldNamesLength", + "type": "error" + }, + { + "inputs": [ { - "name": "keyNames", - "type": "string[]", - "internalType": "string[]" + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "fieldNames", - "type": "string[]", - "internalType": "string[]" + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreCore_InvalidKeyNamesLength", + "type": "error" + }, + { + "inputs": [], + "name": "StoreCore_NotDynamicField", + "type": "error" }, { - "type": "function", - "name": "revokeAccess", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" }, { - "name": "grantee", - "type": "address", - "internalType": "address" + "internalType": "string", + "name": "tableIdString", + "type": "string" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreCore_TableAlreadyExists", + "type": "error" }, { - "type": "event", - "name": "StoreEphemeralRecord", "inputs": [ { - "name": "table", - "type": "bytes32", + "internalType": "address", + "name": "system", + "type": "address" + } + ], + "name": "SystemExists", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "key", - "type": "bytes32[]", "indexed": false, - "internalType": "bytes32[]" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "data", - "type": "bytes", "indexed": false, - "internalType": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "anonymous": false + "name": "StoreEphemeralRecord", + "type": "event" }, { - "type": "error", - "name": "AccessDenied", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "caller", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FunctionSelectorExists", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" - } - ] - }, - { - "type": "error", - "name": "FunctionSelectorNotFound", - "inputs": [ + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } - ] + ], + "name": "emitEphemeralRecord", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "InvalidSelector", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "grantee", + "type": "address" } - ] + ], + "name": "grantAccess", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "ModuleAlreadyInstalled", "inputs": [ { + "internalType": "contract IModule", "name": "module", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "PackedCounter_InvalidLength", - "inputs": [ + "type": "address" + }, { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "args", + "type": "bytes" } - ] + ], + "name": "installModule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "ResourceExists", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "systemFunctionName", + "type": "string" + }, + { + "internalType": "string", + "name": "systemFunctionArguments", + "type": "string" + }, + { + "internalType": "bool", + "name": "staticCallOnly", + "type": "bool" } - ] - }, - { - "type": "error", - "name": "ResourceNotFound", - "inputs": [ + ], + "name": "registerFunctionSelector", + "outputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes4", + "name": "worldFunctionSelector", + "type": "bytes4" } - ] + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes16", + "name": "namespace", + "type": "bytes16" } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + ], + "name": "registerNamespace", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes4", + "name": "worldFunctionSelector", + "type": "bytes4" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes4", + "name": "systemFunctionSelector", + "type": "bytes4" + }, + { + "internalType": "bool", + "name": "staticCallOnly", + "type": "bool" } - ] + ], + "name": "registerRootFunctionSelector", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "contract IStoreHook", + "name": "hook", + "type": "address" } - ] + ], + "name": "registerStoreHook", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", "inputs": [ { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "contract System", + "name": "system", + "type": "address" + }, + { + "internalType": "bool", + "name": "publicAccess", + "type": "bool" } - ] + ], + "name": "registerSystem", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", "inputs": [ { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "contract ISystemHook", + "name": "hook", + "type": "address" } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] + ], + "name": "registerSystemHook", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_TableAlreadyExists", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "tableIdString", - "type": "string", - "internalType": "string" + "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" }, { - "type": "error", - "name": "SystemExists", "inputs": [ { - "name": "system", - "type": "address", - "internalType": "address" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "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/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json b/packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json index ae0fc3f3a8..3b31063c2b 100644 --- a/packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json +++ b/packages/world/abi/EphemeralRecordSystem.sol/EphemeralRecordSystem.abi.json @@ -1,124 +1,124 @@ [ { - "type": "function", - "name": "emitEphemeralRecord", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "string", + "name": "resource", + "type": "string" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "address", + "name": "caller", + "type": "address" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "AccessDenied", + "type": "error" }, { - "type": "event", - "name": "StoreEphemeralRecord", "inputs": [ { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "anonymous": false + "name": "SchemaLib_InvalidLength", + "type": "error" + }, + { + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" }, { - "type": "error", - "name": "AccessDenied", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "caller", - "type": "address", - "internalType": "address" + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "uint256", + "name": "expected", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "received", + "type": "uint256" } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", + "anonymous": false, "inputs": [ { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "indexed": false, + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "indexed": false, + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } - ] + ], + "name": "StoreEphemeralRecord", + "type": "event" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "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/HasKeys.sol/HasKeys.abi.json b/packages/world/abi/HasKeys.sol/HasKeys.abi.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/packages/world/abi/HasKeys.sol/HasKeys.abi.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/packages/world/abi/HasKeysHook.sol/HasKeysHook.abi.json b/packages/world/abi/HasKeysHook.sol/HasKeysHook.abi.json new file mode 100644 index 0000000000..91740249c2 --- /dev/null +++ b/packages/world/abi/HasKeysHook.sol/HasKeysHook.abi.json @@ -0,0 +1,183 @@ +[ + { + "inputs": [ + { + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "PackedCounter_InvalidLength", + "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": "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/HasKeysModule.sol/HasKeysModule.abi.json b/packages/world/abi/HasKeysModule.sol/HasKeysModule.abi.json new file mode 100644 index 0000000000..64373ae108 --- /dev/null +++ b/packages/world/abi/HasKeysModule.sol/HasKeysModule.abi.json @@ -0,0 +1,55 @@ +[ + { + "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/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json b/packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json index 5c198a05b9..6f82058a6b 100644 --- a/packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json +++ b/packages/world/abi/IAccessManagementSystem.sol/IAccessManagementSystem.abi.json @@ -1,38 +1,38 @@ [ { - "type": "function", - "name": "grantAccess", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "address", "name": "grantee", - "type": "address", - "internalType": "address" + "type": "address" } ], + "name": "grantAccess", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "revokeAccess", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "address", "name": "grantee", - "type": "address", - "internalType": "address" + "type": "address" } ], + "name": "revokeAccess", "outputs": [], - "stateMutability": "nonpayable" + "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 index 4174cdf763..585a1fe663 100644 --- a/packages/world/abi/IBaseWorld.sol/IBaseWorld.abi.json +++ b/packages/world/abi/IBaseWorld.sol/IBaseWorld.abi.json @@ -1,976 +1,976 @@ [ { - "type": "function", - "name": "call", "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": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes", "name": "funcSelectorAndArgs", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "bool", "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "call", "outputs": [ { + "internalType": "bytes", "name": "", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "payable" + "stateMutability": "payable", + "type": "function" }, { - "type": "function", - "name": "deleteRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "deleteRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "emitEphemeralRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "emitEphemeralRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "getField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getField", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldLength", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getFieldLength", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldSlice", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], + "name": "getFieldSlice", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getKeySchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getKeySchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getRecord", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getValueSchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getValueSchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "grantAccess", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "address", "name": "grantee", - "type": "address", - "internalType": "address" + "type": "address" } ], + "name": "grantAccess", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "installModule", "inputs": [ { + "internalType": "contract IModule", "name": "module", - "type": "address", - "internalType": "contract IModule" + "type": "address" }, { + "internalType": "bytes", "name": "args", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "installModule", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "installRootModule", "inputs": [ { + "internalType": "contract IModule", "name": "module", - "type": "address", - "internalType": "contract IModule" + "type": "address" }, { + "internalType": "bytes", "name": "args", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "installRootModule", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "popFromField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "uint256", "name": "byteLengthToPop", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "popFromField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "pushToField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "dataToPush", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "pushToField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerFunctionSelector", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "string", "name": "systemFunctionName", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "string", "name": "systemFunctionArguments", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "bool", "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "registerFunctionSelector", "outputs": [ { + "internalType": "bytes4", "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } ], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerNamespace", "inputs": [ { + "internalType": "bytes16", "name": "namespace", - "type": "bytes16", - "internalType": "bytes16" + "type": "bytes16" } ], + "name": "registerNamespace", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerRootFunctionSelector", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes4", "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" }, { + "internalType": "bytes4", "name": "systemFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" }, { + "internalType": "bool", "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "registerRootFunctionSelector", "outputs": [ { + "internalType": "bytes4", "name": "", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } ], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerStoreHook", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract IStoreHook", "name": "hook", - "type": "address", - "internalType": "contract IStoreHook" + "type": "address" } ], + "name": "registerStoreHook", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerSystem", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract System", "name": "system", - "type": "address", - "internalType": "contract System" + "type": "address" }, { + "internalType": "bool", "name": "publicAccess", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "registerSystem", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerSystemHook", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract ISystemHook", "name": "hook", - "type": "address", - "internalType": "contract ISystemHook" + "type": "address" } ], + "name": "registerSystemHook", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerTable", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "Schema", "name": "keySchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "string[]", "name": "keyNames", - "type": "string[]", - "internalType": "string[]" + "type": "string[]" }, { + "internalType": "string[]", "name": "fieldNames", - "type": "string[]", - "internalType": "string[]" + "type": "string[]" } ], + "name": "registerTable", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "revokeAccess", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "address", "name": "grantee", - "type": "address", - "internalType": "address" + "type": "address" } ], + "name": "revokeAccess", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "updateInField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "uint256", "name": "startByteIndex", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "bytes", "name": "dataToSet", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "updateInField", "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "HelloWorld", - "inputs": [], - "anonymous": false - }, - { - "type": "event", - "name": "StoreDeleteRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreEphemeralRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetField", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "schemaIndex", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "AccessDenied", - "inputs": [ - { - "name": "resource", - "type": "string", - "internalType": "string" - }, - { - "name": "caller", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FunctionSelectorExists", - "inputs": [ - { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" - } - ] - }, - { - "type": "error", - "name": "FunctionSelectorNotFound", - "inputs": [ - { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" - } - ] - }, - { - "type": "error", - "name": "InvalidSelector", - "inputs": [ - { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "ModuleAlreadyInstalled", - "inputs": [ - { - "name": "module", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "ResourceExists", - "inputs": [ - { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "ResourceNotFound", - "inputs": [ - { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "StoreCore_DataIndexOverflow", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidDataLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] - }, - { - "type": "error", - "name": "StoreCore_NotImplemented", - "inputs": [] - }, - { - "type": "error", - "name": "StoreCore_TableAlreadyExists", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "StoreCore_TableNotFound", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "SystemExists", - "inputs": [ - { - "name": "system", - "type": "address", - "internalType": "address" - } - ] + "stateMutability": "nonpayable", + "type": "function" } ] \ 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 index 0d6078b5f3..0296b60f47 100644 --- a/packages/world/abi/IModule.sol/IModule.abi.json +++ b/packages/world/abi/IModule.sol/IModule.abi.json @@ -1,39 +1,39 @@ [ { - "type": "function", - "name": "getName", + "inputs": [ + { + "internalType": "string", + "name": "resourceSelector", + "type": "string" + } + ], + "name": "RequiredModuleNotFound", + "type": "error" + }, + { "inputs": [], + "name": "getName", "outputs": [ { + "internalType": "bytes16", "name": "name", - "type": "bytes16", - "internalType": "bytes16" + "type": "bytes16" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "install", "inputs": [ { + "internalType": "bytes", "name": "args", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "install", "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", - "name": "RequiredModuleNotFound", - "inputs": [ - { - "name": "resourceSelector", - "type": "string", - "internalType": "string" - } - ] + "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 index 5329aabbb0..36a2527e83 100644 --- a/packages/world/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json +++ b/packages/world/abi/IModuleInstallationSystem.sol/IModuleInstallationSystem.abi.json @@ -1,20 +1,20 @@ [ { - "type": "function", - "name": "installModule", "inputs": [ { + "internalType": "contract IModule", "name": "module", - "type": "address", - "internalType": "contract IModule" + "type": "address" }, { + "internalType": "bytes", "name": "args", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "installModule", "outputs": [], - "stateMutability": "nonpayable" + "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 index fe3c6aad94..d21e6f935f 100644 --- a/packages/world/abi/IStore.sol/IStore.abi.json +++ b/packages/world/abi/IStore.sol/IStore.abi.json @@ -1,654 +1,654 @@ [ { - "type": "function", - "name": "deleteRecord", "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" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "deleteRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "emitEphemeralRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "emitEphemeralRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "getField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getField", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldLength", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getFieldLength", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldSlice", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], + "name": "getFieldSlice", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getKeySchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getKeySchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getRecord", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getValueSchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getValueSchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "popFromField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "uint256", "name": "byteLengthToPop", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "popFromField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "pushToField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "dataToPush", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "pushToField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerStoreHook", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract IStoreHook", "name": "hook", - "type": "address", - "internalType": "contract IStoreHook" + "type": "address" } ], + "name": "registerStoreHook", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerTable", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "Schema", "name": "keySchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "string[]", "name": "keyNames", - "type": "string[]", - "internalType": "string[]" + "type": "string[]" }, { + "internalType": "string[]", "name": "fieldNames", - "type": "string[]", - "internalType": "string[]" + "type": "string[]" } ], + "name": "registerTable", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "updateInField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "uint256", "name": "startByteIndex", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "bytes", "name": "dataToSet", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "updateInField", "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "StoreDeleteRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreEphemeralRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetField", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "schemaIndex", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "StoreCore_DataIndexOverflow", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidDataLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] - }, - { - "type": "error", - "name": "StoreCore_NotImplemented", - "inputs": [] - }, - { - "type": "error", - "name": "StoreCore_TableAlreadyExists", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "StoreCore_TableNotFound", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] + "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 index 7f4b1dc94e..f02203d5e9 100644 --- a/packages/world/abi/IStore.sol/IStoreData.abi.json +++ b/packages/world/abi/IStore.sol/IStoreData.abi.json @@ -1,444 +1,444 @@ [ { - "type": "function", - "name": "deleteRecord", + "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", - "internalType": "bytes32" + "type": "bytes32" }, { + "indexed": false, + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "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", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "deleteRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "getField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getField", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldLength", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getFieldLength", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldSlice", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], + "name": "getFieldSlice", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getKeySchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getKeySchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getRecord", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getValueSchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getValueSchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "popFromField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "uint256", "name": "byteLengthToPop", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "popFromField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "pushToField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "dataToPush", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "pushToField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "updateInField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "uint256", "name": "startByteIndex", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "bytes", "name": "dataToSet", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "updateInField", "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "StoreDeleteRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetField", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "schemaIndex", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false + "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 index 4405c480d9..c9cbd9770c 100644 --- a/packages/world/abi/IStore.sol/IStoreEphemeral.abi.json +++ b/packages/world/abi/IStore.sol/IStoreEphemeral.abi.json @@ -1,55 +1,55 @@ [ { - "type": "function", - "name": "emitEphemeralRecord", + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "indexed": false, + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "indexed": false, + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreEphemeralRecord", + "type": "event" }, { - "type": "event", - "name": "StoreEphemeralRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" + "type": "bytes" + }, + { + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } ], - "anonymous": false + "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 index 7ea633f414..171784fcb2 100644 --- a/packages/world/abi/IStore.sol/IStoreHook.abi.json +++ b/packages/world/abi/IStore.sol/IStoreHook.abi.json @@ -1,119 +1,119 @@ [ { - "type": "function", - "name": "onAfterSetField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onAfterSetField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onBeforeSetField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onBeforeSetField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onDeleteRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onDeleteRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onSetRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onSetRecord", "outputs": [], - "stateMutability": "nonpayable" + "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 index b7b4012580..0f47144f3d 100644 --- a/packages/world/abi/IStore.sol/IStoreRead.abi.json +++ b/packages/world/abi/IStore.sol/IStoreRead.abi.json @@ -1,181 +1,181 @@ [ { - "type": "function", - "name": "getField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getField", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldLength", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getFieldLength", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldSlice", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], + "name": "getFieldSlice", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getKeySchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getKeySchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getRecord", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getValueSchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getValueSchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "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 index 14a649d0d8..0a30f85789 100644 --- a/packages/world/abi/IStore.sol/IStoreRegistration.abi.json +++ b/packages/world/abi/IStore.sol/IStoreRegistration.abi.json @@ -1,53 +1,53 @@ [ { - "type": "function", - "name": "registerStoreHook", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract IStoreHook", "name": "hook", - "type": "address", - "internalType": "contract IStoreHook" + "type": "address" } ], + "name": "registerStoreHook", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerTable", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "Schema", "name": "keySchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "string[]", "name": "keyNames", - "type": "string[]", - "internalType": "string[]" + "type": "string[]" }, { + "internalType": "string[]", "name": "fieldNames", - "type": "string[]", - "internalType": "string[]" + "type": "string[]" } ], + "name": "registerTable", "outputs": [], - "stateMutability": "nonpayable" + "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 index 37228a1914..e5a35719c0 100644 --- a/packages/world/abi/IStore.sol/IStoreWrite.abi.json +++ b/packages/world/abi/IStore.sol/IStoreWrite.abi.json @@ -1,265 +1,265 @@ [ { - "type": "function", - "name": "deleteRecord", + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "indexed": false, + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32[]" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreDeleteRecord", + "type": "event" }, { - "type": "function", - "name": "popFromField", + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "indexed": false, + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "indexed": false, + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { - "name": "byteLengthToPop", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreSetField", + "type": "event" }, { - "type": "function", - "name": "pushToField", + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "indexed": false, + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { - "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "StoreSetRecord", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "dataToPush", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "deleteRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "byteLengthToPop", + "type": "uint256" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "popFromField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "dataToPush", + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "pushToField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "updateInField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "startByteIndex", - "type": "uint256", - "internalType": "uint256" + "type": "uint8" }, { - "name": "dataToSet", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "setField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "StoreDeleteRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" + "type": "bytes32[]" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } ], - "anonymous": false + "name": "setRecord", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "event", - "name": "StoreSetField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "indexed": false, - "internalType": "uint8" + "type": "uint8" }, { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "StoreSetRecord", - "inputs": [ - { - "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" + "internalType": "uint256", + "name": "startByteIndex", + "type": "uint256" }, { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" + "internalType": "bytes", + "name": "dataToSet", + "type": "bytes" }, { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } ], - "anonymous": false + "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 index 63abf4a3b9..cf6d375396 100644 --- a/packages/world/abi/IStoreErrors.sol/IStoreErrors.abi.json +++ b/packages/world/abi/IStoreErrors.sol/IStoreErrors.abi.json @@ -1,108 +1,108 @@ [ { - "type": "error", - "name": "StoreCore_DataIndexOverflow", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_DataIndexOverflow", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidFieldNamesLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidKeyNamesLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "StoreCore_NotDynamicField", - "inputs": [] + "type": "error" }, { - "type": "error", + "inputs": [], "name": "StoreCore_NotImplemented", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "StoreCore_TableAlreadyExists", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "string", "name": "tableIdString", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "StoreCore_TableAlreadyExists", + "type": "error" }, { - "type": "error", - "name": "StoreCore_TableNotFound", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "string", "name": "tableIdString", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "StoreCore_TableNotFound", + "type": "error" } ] \ 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 index 658df2ceac..cbab824056 100644 --- a/packages/world/abi/ISystemHook.sol/ISystemHook.abi.json +++ b/packages/world/abi/ISystemHook.sol/ISystemHook.abi.json @@ -1,48 +1,48 @@ [ { - "type": "function", - "name": "onAfterCallSystem", "inputs": [ { + "internalType": "address", "name": "msgSender", - "type": "address", - "internalType": "address" + "type": "address" }, { + "internalType": "address", "name": "systemAddress", - "type": "address", - "internalType": "address" + "type": "address" }, { + "internalType": "bytes", "name": "funcSelectorAndArgs", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "onAfterCallSystem", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onBeforeCallSystem", "inputs": [ { + "internalType": "address", "name": "msgSender", - "type": "address", - "internalType": "address" + "type": "address" }, { + "internalType": "address", "name": "systemAddress", - "type": "address", - "internalType": "address" + "type": "address" }, { + "internalType": "bytes", "name": "funcSelectorAndArgs", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "onBeforeCallSystem", "outputs": [], - "stateMutability": "nonpayable" + "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 index f914e985f3..bfe8c4d27d 100644 --- a/packages/world/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json +++ b/packages/world/abi/IUniqueEntitySystem.sol/IUniqueEntitySystem.abi.json @@ -1,15 +1,15 @@ [ { - "type": "function", - "name": "uniqueEntity_system_getUniqueEntity", "inputs": [], + "name": "uniqueEntity_system_getUniqueEntity", "outputs": [ { + "internalType": "bytes32", "name": "uniqueEntity", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], - "stateMutability": "nonpayable" + "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 index a51a2ac423..be9080afeb 100644 --- a/packages/world/abi/IWorldErrors.sol/IWorldErrors.abi.json +++ b/packages/world/abi/IWorldErrors.sol/IWorldErrors.abi.json @@ -1,95 +1,95 @@ [ { - "type": "error", - "name": "AccessDenied", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "address", "name": "caller", - "type": "address", - "internalType": "address" + "type": "address" } - ] + ], + "name": "AccessDenied", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorExists", "inputs": [ { + "internalType": "bytes4", "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } - ] + ], + "name": "FunctionSelectorExists", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorNotFound", "inputs": [ { + "internalType": "bytes4", "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } - ] + ], + "name": "FunctionSelectorNotFound", + "type": "error" }, { - "type": "error", - "name": "InvalidSelector", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "InvalidSelector", + "type": "error" }, { - "type": "error", - "name": "ModuleAlreadyInstalled", "inputs": [ { + "internalType": "string", "name": "module", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ModuleAlreadyInstalled", + "type": "error" }, { - "type": "error", - "name": "ResourceExists", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ResourceExists", + "type": "error" }, { - "type": "error", - "name": "ResourceNotFound", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ResourceNotFound", + "type": "error" }, { - "type": "error", - "name": "SystemExists", "inputs": [ { + "internalType": "address", "name": "system", - "type": "address", - "internalType": "address" + "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 index 6726f3e63a..2350de1d53 100644 --- a/packages/world/abi/IWorldKernel.sol/IWorldCall.abi.json +++ b/packages/world/abi/IWorldKernel.sol/IWorldCall.abi.json @@ -1,31 +1,31 @@ [ { - "type": "function", - "name": "call", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes", "name": "funcSelectorAndArgs", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "bool", "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "call", "outputs": [ { + "internalType": "bytes", "name": "", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "payable" + "stateMutability": "payable", + "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 index 51cd2bac86..87ed23efd5 100644 --- a/packages/world/abi/IWorldKernel.sol/IWorldKernel.abi.json +++ b/packages/world/abi/IWorldKernel.sol/IWorldKernel.abi.json @@ -1,148 +1,148 @@ [ { - "type": "function", - "name": "call", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "funcSelectorAndArgs", - "type": "bytes", - "internalType": "bytes" + "internalType": "string", + "name": "resource", + "type": "string" }, { - "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "internalType": "address", + "name": "caller", + "type": "address" } ], - "outputs": [ + "name": "AccessDenied", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" } ], - "stateMutability": "payable" + "name": "FunctionSelectorExists", + "type": "error" }, { - "type": "function", - "name": "installRootModule", "inputs": [ { - "name": "module", - "type": "address", - "internalType": "contract IModule" - }, - { - "name": "args", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" } ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "HelloWorld", - "inputs": [], - "anonymous": false + "name": "FunctionSelectorNotFound", + "type": "error" }, { - "type": "error", - "name": "AccessDenied", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" - }, - { - "name": "caller", - "type": "address", - "internalType": "address" + "type": "string" } - ] + ], + "name": "InvalidSelector", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorExists", "inputs": [ { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "string", + "name": "module", + "type": "string" } - ] + ], + "name": "ModuleAlreadyInstalled", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorNotFound", "inputs": [ { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "string", + "name": "resource", + "type": "string" } - ] + ], + "name": "ResourceExists", + "type": "error" }, { - "type": "error", - "name": "InvalidSelector", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ResourceNotFound", + "type": "error" }, { - "type": "error", - "name": "ModuleAlreadyInstalled", "inputs": [ { - "name": "module", - "type": "string", - "internalType": "string" + "internalType": "address", + "name": "system", + "type": "address" } - ] + ], + "name": "SystemExists", + "type": "error" }, { - "type": "error", - "name": "ResourceExists", - "inputs": [ - { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] + "anonymous": false, + "inputs": [], + "name": "HelloWorld", + "type": "event" }, { - "type": "error", - "name": "ResourceNotFound", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "funcSelectorAndArgs", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "staticCallOnly", + "type": "bool" + } + ], + "name": "call", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" } - ] + ], + "stateMutability": "payable", + "type": "function" }, { - "type": "error", - "name": "SystemExists", "inputs": [ { - "name": "system", - "type": "address", - "internalType": "address" + "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/IWorldKernel.sol/IWorldModuleInstallation.abi.json b/packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json index be483df2e8..c277d6c367 100644 --- a/packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json +++ b/packages/world/abi/IWorldKernel.sol/IWorldModuleInstallation.abi.json @@ -1,20 +1,20 @@ [ { - "type": "function", - "name": "installRootModule", "inputs": [ { + "internalType": "contract IModule", "name": "module", - "type": "address", - "internalType": "contract IModule" + "type": "address" }, { + "internalType": "bytes", "name": "args", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], + "name": "installRootModule", "outputs": [], - "stateMutability": "nonpayable" + "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 index 06e387e40a..1ba6588bab 100644 --- a/packages/world/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json +++ b/packages/world/abi/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.abi.json @@ -1,124 +1,124 @@ [ { - "type": "function", - "name": "registerFunctionSelector", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "string", "name": "systemFunctionName", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "string", "name": "systemFunctionArguments", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "bool", "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "registerFunctionSelector", "outputs": [ { + "internalType": "bytes4", "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } ], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerNamespace", "inputs": [ { + "internalType": "bytes16", "name": "namespace", - "type": "bytes16", - "internalType": "bytes16" + "type": "bytes16" } ], + "name": "registerNamespace", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerRootFunctionSelector", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes4", "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" }, { + "internalType": "bytes4", "name": "systemFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" }, { + "internalType": "bool", "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "registerRootFunctionSelector", "outputs": [ { + "internalType": "bytes4", "name": "", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } ], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerSystem", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract System", "name": "system", - "type": "address", - "internalType": "contract System" + "type": "address" }, { + "internalType": "bool", "name": "publicAccess", - "type": "bool", - "internalType": "bool" + "type": "bool" } ], + "name": "registerSystem", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "registerSystemHook", "inputs": [ { + "internalType": "bytes32", "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "contract ISystemHook", "name": "hook", - "type": "address", - "internalType": "contract ISystemHook" + "type": "address" } ], + "name": "registerSystemHook", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" } ] \ 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 index 6bdd9b2b86..3b28134403 100644 --- a/packages/world/abi/KeysInTableHook.sol/KeysInTableHook.abi.json +++ b/packages/world/abi/KeysInTableHook.sol/KeysInTableHook.abi.json @@ -1,204 +1,204 @@ [ { - "type": "function", - "name": "onAfterSetField", "inputs": [ { - "name": "table", - "type": "bytes32", - "internalType": "bytes32" - }, + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "PackedCounter_InvalidLength", + "type": "error" + }, + { + "inputs": [ { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "SchemaLib_InvalidLength", + "type": "error" + }, + { + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "uint8", - "internalType": "uint8" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "start", + "type": "uint256" }, { - "name": "", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "end", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "function", - "name": "onBeforeSetField", "inputs": [ { - "name": "table", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "internalType": "uint256", + "name": "length", + "type": "uint256" }, { - "name": "", - "type": "uint8", - "internalType": "uint8" - }, + "internalType": "uint256", + "name": "received", + "type": "uint256" + } + ], + "name": "StoreCore_DataIndexOverflow", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreCore_InvalidDataLength", + "type": "error" + }, + { + "inputs": [], + "name": "StoreCore_NotDynamicField", + "type": "error" }, { - "type": "function", - "name": "onDeleteRecord", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "", - "type": "bytes32", - "internalType": "Schema" + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + }, + { + "internalType": "Schema", + "name": "", + "type": "bytes32" } ], + "name": "onAfterSetField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onSetRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "", - "type": "bytes", - "internalType": "bytes" + "type": "uint8" }, { + "internalType": "bytes", "name": "", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes" + }, + { + "internalType": "Schema", + "name": "", + "type": "bytes32" } ], + "name": "onBeforeSetField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "PackedCounter_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] - }, - { - "type": "error", - "name": "Slice_OutOfBounds", - "inputs": [ - { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" }, { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" + "internalType": "Schema", + "name": "", + "type": "bytes32" } - ] + ], + "name": "onDeleteRecord", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_DataIndexOverflow", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidDataLength", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "", + "type": "bytes" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "Schema", + "name": "", + "type": "bytes32" } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] + ], + "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 index 087149b865..64373ae108 100644 --- a/packages/world/abi/KeysInTableModule.sol/KeysInTableModule.abi.json +++ b/packages/world/abi/KeysInTableModule.sol/KeysInTableModule.abi.json @@ -1,55 +1,55 @@ [ { - "type": "function", - "name": "getName", - "inputs": [], - "outputs": [ + "inputs": [ { - "name": "", - "type": "bytes16", - "internalType": "bytes16" + "internalType": "string", + "name": "resourceSelector", + "type": "string" } ], - "stateMutability": "pure" + "name": "RequiredModuleNotFound", + "type": "error" }, { - "type": "function", - "name": "install", "inputs": [ { - "name": "args", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "RequiredModuleNotFound", - "inputs": [ + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" + }, + { + "inputs": [], + "name": "getName", + "outputs": [ { - "name": "resourceSelector", - "type": "string", - "internalType": "string" + "internalType": "bytes16", + "name": "", + "type": "bytes16" } - ] + ], + "stateMutability": "pure", + "type": "function" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "args", + "type": "bytes" } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + ], + "name": "install", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] \ 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 index fc9b426388..cba5bb5b68 100644 --- a/packages/world/abi/KeysWithValueHook.sol/KeysWithValueHook.abi.json +++ b/packages/world/abi/KeysWithValueHook.sol/KeysWithValueHook.abi.json @@ -1,188 +1,188 @@ [ { - "type": "function", - "name": "onAfterSetField", "inputs": [ { - "name": "sourceTableId", - "type": "bytes32", - "internalType": "bytes32" - }, + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "PackedCounter_InvalidLength", + "type": "error" + }, + { + "inputs": [ { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "SchemaLib_InvalidLength", + "type": "error" + }, + { + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "", - "type": "uint8", - "internalType": "uint8" + "internalType": "uint256", + "name": "start", + "type": "uint256" }, { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "end", + "type": "uint256" + } + ], + "name": "Slice_OutOfBounds", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreCore_InvalidDataLength", + "type": "error" + }, + { + "inputs": [], + "name": "StoreCore_NotDynamicField", + "type": "error" }, { - "type": "function", - "name": "onBeforeSetField", "inputs": [ { + "internalType": "bytes32", "name": "sourceTableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "bytes", "name": "", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onAfterSetField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onDeleteRecord", "inputs": [ { + "internalType": "bytes32", "name": "sourceTableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" + }, + { + "internalType": "uint8", + "name": "", + "type": "uint8" }, { + "internalType": "bytes", + "name": "", + "type": "bytes" + }, + { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onBeforeSetField", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "onSetRecord", "inputs": [ { + "internalType": "bytes32", "name": "sourceTableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "onDeleteRecord", "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", - "name": "PackedCounter_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes32", + "name": "sourceTableId", + "type": "bytes32" }, { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidDataLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] + ], + "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 index 2d548078d6..aeaee69069 100644 --- a/packages/world/abi/KeysWithValueModule.sol/KeysWithValueModule.abi.json +++ b/packages/world/abi/KeysWithValueModule.sol/KeysWithValueModule.abi.json @@ -1,92 +1,92 @@ [ { - "type": "function", - "name": "getName", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes16", - "internalType": "bytes16" - } - ], - "stateMutability": "pure" - }, - { - "type": "function", - "name": "install", "inputs": [ { - "name": "args", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", "name": "PackedCounter_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] + "type": "error" }, { - "type": "error", - "name": "RequiredModuleNotFound", "inputs": [ { + "internalType": "string", "name": "resourceSelector", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "RequiredModuleNotFound", + "type": "error" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "StoreCore_NotDynamicField", - "inputs": [] + "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/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json b/packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json index 5317826d46..3ba41db3c5 100644 --- a/packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json +++ b/packages/world/abi/ModuleInstallationSystem.sol/ModuleInstallationSystem.abi.json @@ -1,73 +1,73 @@ [ { - "type": "function", - "name": "installModule", "inputs": [ { - "name": "module", - "type": "address", - "internalType": "contract IModule" - }, - { - "name": "args", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", "name": "SchemaLib_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "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/PackedCounter.sol/PackedCounterInstance.abi.json b/packages/world/abi/PackedCounter.sol/PackedCounterInstance.abi.json index e68d690a3c..377085b5aa 100644 --- a/packages/world/abi/PackedCounter.sol/PackedCounterInstance.abi.json +++ b/packages/world/abi/PackedCounter.sol/PackedCounterInstance.abi.json @@ -1,13 +1,13 @@ [ { - "type": "error", - "name": "PackedCounter_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "PackedCounter_InvalidLength", + "type": "error" } ] \ 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 index f49281534b..2b3a290331 100644 --- a/packages/world/abi/Schema.sol/SchemaLib.abi.json +++ b/packages/world/abi/Schema.sol/SchemaLib.abi.json @@ -1,18 +1,18 @@ [ { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" } ] \ 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 index b45d4926b0..bae09de3e6 100644 --- a/packages/world/abi/Slice.sol/SliceLib.abi.json +++ b/packages/world/abi/Slice.sol/SliceLib.abi.json @@ -1,23 +1,23 @@ [ { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" } ] \ 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 index 3285e09141..72f144fcd2 100644 --- a/packages/world/abi/StoreCore.sol/StoreCore.abi.json +++ b/packages/world/abi/StoreCore.sol/StoreCore.abi.json @@ -1,102 +1,102 @@ [ { - "type": "event", - "name": "StoreDeleteRecord", + "anonymous": false, "inputs": [ { - "name": "table", - "type": "bytes32", "indexed": false, - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "key", - "type": "bytes32[]", "indexed": false, - "internalType": "bytes32[]" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" } ], - "anonymous": false + "name": "StoreDeleteRecord", + "type": "event" }, { - "type": "event", - "name": "StoreEphemeralRecord", + "anonymous": false, "inputs": [ { - "name": "table", - "type": "bytes32", "indexed": false, - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "key", - "type": "bytes32[]", "indexed": false, - "internalType": "bytes32[]" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "data", - "type": "bytes", "indexed": false, - "internalType": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "anonymous": false + "name": "StoreEphemeralRecord", + "type": "event" }, { - "type": "event", - "name": "StoreSetField", + "anonymous": false, "inputs": [ { - "name": "table", - "type": "bytes32", "indexed": false, - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "key", - "type": "bytes32[]", "indexed": false, - "internalType": "bytes32[]" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "schemaIndex", - "type": "uint8", "indexed": false, - "internalType": "uint8" + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" }, { - "name": "data", - "type": "bytes", "indexed": false, - "internalType": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "anonymous": false + "name": "StoreSetField", + "type": "event" }, { - "type": "event", - "name": "StoreSetRecord", + "anonymous": false, "inputs": [ { - "name": "table", - "type": "bytes32", "indexed": false, - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { - "name": "key", - "type": "bytes32[]", "indexed": false, - "internalType": "bytes32[]" + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "data", - "type": "bytes", "indexed": false, - "internalType": "bytes" + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "anonymous": false + "name": "StoreSetRecord", + "type": "event" } ] \ 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 index 7bb180c339..93a0e17cf5 100644 --- a/packages/world/abi/StoreRead.sol/StoreRead.abi.json +++ b/packages/world/abi/StoreRead.sol/StoreRead.abi.json @@ -1,308 +1,308 @@ [ { - "type": "constructor", "inputs": [], - "stateMutability": "nonpayable" + "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" }, { - "type": "function", - "name": "getField", "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" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getField", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldLength", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getFieldLength", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getFieldSlice", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } ], + "name": "getFieldSlice", "outputs": [ { + "internalType": "bytes", "name": "", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getKeySchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getKeySchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "getRecord", "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "getValueSchema", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" } ], + "name": "getValueSchema", "outputs": [ { + "internalType": "Schema", "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "stateMutability": "view" - }, - { - "type": "error", - "name": "SchemaLib_InvalidLength", - "inputs": [ - { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] - }, - { - "type": "error", - "name": "Slice_OutOfBounds", - "inputs": [ - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - }, - { - "name": "start", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "end", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidDataLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", - "inputs": [ - { - "name": "expected", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] - }, - { - "type": "error", - "name": "StoreCore_TableAlreadyExists", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "StoreCore_TableNotFound", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] + "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 index 223c6bb841..1132390e96 100644 --- a/packages/world/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json +++ b/packages/world/abi/StoreRegistrationSystem.sol/StoreRegistrationSystem.abi.json @@ -1,263 +1,263 @@ [ { - "type": "function", - "name": "registerStoreHook", - "inputs": [ - { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "hook", - "type": "address", - "internalType": "contract IStoreHook" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "registerTable", - "inputs": [ - { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "keySchema", - "type": "bytes32", - "internalType": "Schema" - }, - { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" - }, - { - "name": "keyNames", - "type": "string[]", - "internalType": "string[]" - }, - { - "name": "fieldNames", - "type": "string[]", - "internalType": "string[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "error", - "name": "AccessDenied", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" }, { + "internalType": "address", "name": "caller", - "type": "address", - "internalType": "address" + "type": "address" } - ] + ], + "name": "AccessDenied", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorExists", "inputs": [ { + "internalType": "bytes4", "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } - ] + ], + "name": "FunctionSelectorExists", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorNotFound", "inputs": [ { + "internalType": "bytes4", "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "type": "bytes4" } - ] + ], + "name": "FunctionSelectorNotFound", + "type": "error" }, { - "type": "error", - "name": "InvalidSelector", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "InvalidSelector", + "type": "error" }, { - "type": "error", - "name": "ModuleAlreadyInstalled", "inputs": [ { + "internalType": "string", "name": "module", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ModuleAlreadyInstalled", + "type": "error" }, { - "type": "error", - "name": "PackedCounter_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "PackedCounter_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "ResourceExists", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ResourceExists", + "type": "error" }, { - "type": "error", - "name": "ResourceNotFound", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "ResourceNotFound", + "type": "error" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidFieldNamesLength", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidKeyNamesLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "StoreCore_NotDynamicField", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "StoreCore_TableAlreadyExists", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "string", "name": "tableIdString", - "type": "string", - "internalType": "string" + "type": "string" } - ] + ], + "name": "StoreCore_TableAlreadyExists", + "type": "error" }, { - "type": "error", - "name": "SystemExists", "inputs": [ { + "internalType": "address", "name": "system", - "type": "address", - "internalType": "address" + "type": "address" } - ] + ], + "name": "SystemExists", + "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": "resourceSelector", + "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/UniqueEntityModule.sol/UniqueEntityModule.abi.json b/packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json index 577354cb49..646de1964b 100644 --- a/packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json +++ b/packages/world/abi/UniqueEntityModule.sol/UniqueEntityModule.abi.json @@ -1,55 +1,55 @@ [ { - "type": "function", - "name": "getName", - "inputs": [], - "outputs": [ + "inputs": [ { - "name": "", - "type": "bytes16", - "internalType": "bytes16" + "internalType": "string", + "name": "resourceSelector", + "type": "string" } ], - "stateMutability": "pure" + "name": "RequiredModuleNotFound", + "type": "error" }, { - "type": "function", - "name": "install", "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "RequiredModuleNotFound", - "inputs": [ + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" + }, + { + "inputs": [], + "name": "getName", + "outputs": [ { - "name": "resourceSelector", - "type": "string", - "internalType": "string" + "internalType": "bytes16", + "name": "", + "type": "bytes16" } - ] + ], + "stateMutability": "pure", + "type": "function" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "", + "type": "bytes" } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + ], + "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 index 924c8b05db..ea11319630 100644 --- a/packages/world/abi/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json +++ b/packages/world/abi/UniqueEntitySystem.sol/UniqueEntitySystem.abi.json @@ -1,79 +1,79 @@ [ { - "type": "function", - "name": "getUniqueEntity", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "error", - "name": "PackedCounter_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "PackedCounter_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { + "internalType": "uint256", "name": "length", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", + "inputs": [], "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + "type": "error" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" }, { + "internalType": "uint256", "name": "start", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "end", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { + "internalType": "uint256", "name": "expected", - "type": "uint256", - "internalType": "uint256" + "type": "uint256" }, { + "internalType": "uint256", "name": "received", - "type": "uint256", - "internalType": "uint256" + "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/World.sol/World.abi.json b/packages/world/abi/World.sol/World.abi.json index f4a9e01dfb..116fa9d7d2 100644 --- a/packages/world/abi/World.sol/World.abi.json +++ b/packages/world/abi/World.sol/World.abi.json @@ -1,752 +1,752 @@ [ { - "type": "constructor", "inputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "constructor" }, { - "type": "fallback", - "stateMutability": "payable" + "inputs": [ + { + "internalType": "string", + "name": "resource", + "type": "string" + }, + { + "internalType": "address", + "name": "caller", + "type": "address" + } + ], + "name": "AccessDenied", + "type": "error" }, { - "type": "receive", - "stateMutability": "payable" + "inputs": [ + { + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "FunctionSelectorExists", + "type": "error" }, { - "type": "function", - "name": "call", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "funcSelectorAndArgs", - "type": "bytes", - "internalType": "bytes" - }, + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" + } + ], + "name": "FunctionSelectorNotFound", + "type": "error" + }, + { + "inputs": [ { - "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "internalType": "string", + "name": "resource", + "type": "string" } ], - "outputs": [ + "name": "InvalidSelector", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "string", + "name": "module", + "type": "string" } ], - "stateMutability": "payable" + "name": "ModuleAlreadyInstalled", + "type": "error" }, { - "type": "function", - "name": "deleteRecord", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "PackedCounter_InvalidLength", + "type": "error" + }, + { + "inputs": [ { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, + "internalType": "string", + "name": "resource", + "type": "string" + } + ], + "name": "ResourceExists", + "type": "error" + }, + { + "inputs": [ { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "string", + "name": "resource", + "type": "string" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "ResourceNotFound", + "type": "error" }, { - "type": "function", - "name": "getField", "inputs": [ { - "name": "table", - "type": "bytes32", - "internalType": "bytes32" - }, + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "SchemaLib_InvalidLength", + "type": "error" + }, + { + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" + }, + { + "inputs": [ { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "internalType": "uint256", + "name": "start", + "type": "uint256" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "end", + "type": "uint256" } ], - "outputs": [ + "name": "Slice_OutOfBounds", + "type": "error" + }, + { + "inputs": [ { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "length", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "stateMutability": "view" + "name": "StoreCore_DataIndexOverflow", + "type": "error" }, { - "type": "function", - "name": "getFieldLength", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, + "internalType": "uint256", + "name": "received", + "type": "uint256" + } + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" + }, + { + "inputs": [ { - "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "internalType": "uint256", + "name": "expected", + "type": "uint256" }, { - "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "outputs": [ + "name": "StoreCore_InvalidFieldNamesLength", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "uint256", - "internalType": "uint256" + "internalType": "uint256", + "name": "expected", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "received", + "type": "uint256" } ], - "stateMutability": "view" + "name": "StoreCore_InvalidKeyNamesLength", + "type": "error" + }, + { + "inputs": [], + "name": "StoreCore_NotDynamicField", + "type": "error" }, { - "type": "function", - "name": "getFieldSlice", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "bytes32" }, { - "name": "schema", - "type": "bytes32", - "internalType": "Schema" - }, + "internalType": "string", + "name": "tableIdString", + "type": "string" + } + ], + "name": "StoreCore_TableAlreadyExists", + "type": "error" + }, + { + "inputs": [ { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" + "internalType": "string", + "name": "tableIdString", + "type": "string" } ], - "outputs": [ + "name": "StoreCore_TableNotFound", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "bytes", - "internalType": "bytes" + "internalType": "address", + "name": "system", + "type": "address" } ], - "stateMutability": "view" + "name": "SystemExists", + "type": "error" }, { - "type": "function", - "name": "getKeySchema", + "anonymous": false, + "inputs": [], + "name": "HelloWorld", + "type": "event" + }, + { + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ + "type": "bytes32" + }, { - "name": "schema", - "type": "bytes32", - "internalType": "Schema" + "indexed": false, + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" } ], - "stateMutability": "view" + "name": "StoreDeleteRecord", + "type": "event" }, { - "type": "function", - "name": "getRecord", + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "indexed": false, + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" - } - ], - "outputs": [ + "indexed": false, + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" + }, { + "indexed": false, + "internalType": "bytes", "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "bytes" } ], - "stateMutability": "view" + "name": "StoreSetField", + "type": "event" }, { - "type": "function", - "name": "getValueSchema", + "anonymous": false, "inputs": [ { + "indexed": false, + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "schema", - "type": "bytes32", - "internalType": "Schema" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "installRootModule", - "inputs": [ + "type": "bytes32" + }, { - "name": "module", - "type": "address", - "internalType": "contract IModule" + "indexed": false, + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" }, { - "name": "args", - "type": "bytes", - "internalType": "bytes" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "StoreSetRecord", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" }, { - "type": "function", - "name": "popFromField", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "internalType": "bytes", + "name": "funcSelectorAndArgs", + "type": "bytes" }, { - "name": "byteLengthToPop", - "type": "uint256", - "internalType": "uint256" - }, + "internalType": "bool", + "name": "staticCallOnly", + "type": "bool" + } + ], + "name": "call", + "outputs": [ { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "bytes", + "name": "", + "type": "bytes" } ], - "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "payable", + "type": "function" }, { - "type": "function", - "name": "pushToField", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "dataToPush", - "type": "bytes", - "internalType": "bytes" + "type": "bytes32[]" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], + "name": "deleteRecord", "outputs": [], - "stateMutability": "nonpayable" + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "function", - "name": "setField", "inputs": [ { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "bytes32", + "name": "table", + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "type": "uint8" }, { + "internalType": "Schema", "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "type": "bytes32" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "getField", + "outputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "setRecord", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "Schema", + "name": "schema", + "type": "bytes32" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "getFieldLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "function", - "name": "updateInField", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "internalType": "bytes32[]" + "type": "bytes32[]" }, { + "internalType": "uint8", "name": "schemaIndex", - "type": "uint8", - "internalType": "uint8" + "type": "uint8" }, { - "name": "startByteIndex", - "type": "uint256", - "internalType": "uint256" + "internalType": "Schema", + "name": "schema", + "type": "bytes32" }, { - "name": "dataToSet", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint256", + "name": "start", + "type": "uint256" }, { - "name": "valueSchema", - "type": "bytes32", - "internalType": "Schema" + "internalType": "uint256", + "name": "end", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "HelloWorld", - "inputs": [], - "anonymous": false + "name": "getFieldSlice", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "StoreDeleteRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, + "type": "bytes32" + } + ], + "name": "getKeySchema", + "outputs": [ { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" + "internalType": "Schema", + "name": "schema", + "type": "bytes32" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "StoreSetField", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" + "type": "bytes32" }, { + "internalType": "bytes32[]", "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" + "type": "bytes32[]" }, { - "name": "schemaIndex", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - }, + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" + } + ], + "name": "getRecord", + "outputs": [ { + "internalType": "bytes", "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" + "type": "bytes" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "event", - "name": "StoreSetRecord", "inputs": [ { + "internalType": "bytes32", "name": "table", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "key", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, + "type": "bytes32" + } + ], + "name": "getValueSchema", + "outputs": [ { - "name": "data", - "type": "bytes", - "indexed": false, - "internalType": "bytes" + "internalType": "Schema", + "name": "schema", + "type": "bytes32" } ], - "anonymous": false + "stateMutability": "view", + "type": "function" }, { - "type": "error", - "name": "AccessDenied", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "contract IModule", + "name": "module", + "type": "address" }, { - "name": "caller", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "FunctionSelectorExists", - "inputs": [ - { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "bytes", + "name": "args", + "type": "bytes" } - ] + ], + "name": "installRootModule", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "FunctionSelectorNotFound", "inputs": [ { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" - } - ] - }, - { - "type": "error", - "name": "InvalidSelector", - "inputs": [ + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" + }, { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "ModuleAlreadyInstalled", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "module", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "PackedCounter_InvalidLength", - "inputs": [ + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" + }, { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "ResourceExists", - "inputs": [ + "internalType": "uint256", + "name": "byteLengthToPop", + "type": "uint256" + }, { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } - ] + ], + "name": "popFromField", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "ResourceNotFound", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_InvalidLength", - "inputs": [ + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" + }, { - "name": "length", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] - }, - { - "type": "error", - "name": "Slice_OutOfBounds", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" }, { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "dataToPush", + "type": "bytes" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } - ] + ], + "name": "pushToField", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_DataIndexOverflow", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidDataLength", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } - ] + ], + "name": "setField", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_InvalidFieldNamesLength", "inputs": [ { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "tableId", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" - } - ] - }, - { - "type": "error", - "name": "StoreCore_InvalidKeyNamesLength", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes", + "name": "data", + "type": "bytes" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "Schema", + "name": "valueSchema", + "type": "bytes32" } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] + ], + "name": "setRecord", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_TableAlreadyExists", "inputs": [ { + "internalType": "bytes32", "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "type": "bytes32" }, { - "name": "tableIdString", - "type": "string", - "internalType": "string" - } - ] - }, - { - "type": "error", - "name": "StoreCore_TableNotFound", - "inputs": [ + "internalType": "bytes32[]", + "name": "key", + "type": "bytes32[]" + }, { - "name": "tableId", - "type": "bytes32", - "internalType": "bytes32" + "internalType": "uint8", + "name": "schemaIndex", + "type": "uint8" }, { - "name": "tableIdString", - "type": "string", - "internalType": "string" + "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" }, { - "type": "error", - "name": "SystemExists", - "inputs": [ - { - "name": "system", - "type": "address", - "internalType": "address" - } - ] + "stateMutability": "payable", + "type": "receive" } ] \ 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 index df7a0ba579..264da591f8 100644 --- a/packages/world/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json +++ b/packages/world/abi/WorldRegistrationSystem.sol/WorldRegistrationSystem.abi.json @@ -1,286 +1,286 @@ [ { - "type": "function", - "name": "registerFunctionSelector", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "systemFunctionName", - "type": "string", - "internalType": "string" - }, - { - "name": "systemFunctionArguments", - "type": "string", - "internalType": "string" + "internalType": "string", + "name": "resource", + "type": "string" }, { - "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "address", + "name": "caller", + "type": "address" } ], - "stateMutability": "nonpayable" + "name": "AccessDenied", + "type": "error" }, { - "type": "function", - "name": "registerNamespace", "inputs": [ { - "name": "namespace", - "type": "bytes16", - "internalType": "bytes16" + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "FunctionSelectorExists", + "type": "error" }, { - "type": "function", - "name": "registerRootFunctionSelector", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "worldFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" - }, - { - "name": "systemFunctionSelector", - "type": "bytes4", - "internalType": "bytes4" - }, - { - "name": "staticCallOnly", - "type": "bool", - "internalType": "bool" + "internalType": "bytes4", + "name": "functionSelector", + "type": "bytes4" } ], - "outputs": [ + "name": "FunctionSelectorNotFound", + "type": "error" + }, + { + "inputs": [ { - "name": "", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "string", + "name": "resource", + "type": "string" } ], - "stateMutability": "nonpayable" + "name": "InvalidSelector", + "type": "error" }, { - "type": "function", - "name": "registerSystem", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "system", - "type": "address", - "internalType": "contract System" - }, - { - "name": "publicAccess", - "type": "bool", - "internalType": "bool" + "internalType": "string", + "name": "module", + "type": "string" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "ModuleAlreadyInstalled", + "type": "error" }, { - "type": "function", - "name": "registerSystemHook", "inputs": [ { - "name": "resourceSelector", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "hook", - "type": "address", - "internalType": "contract ISystemHook" + "internalType": "uint256", + "name": "length", + "type": "uint256" } ], - "outputs": [], - "stateMutability": "nonpayable" + "name": "PackedCounter_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "AccessDenied", "inputs": [ { + "internalType": "string", "name": "resource", - "type": "string", - "internalType": "string" - }, - { - "name": "caller", - "type": "address", - "internalType": "address" + "type": "string" } - ] + ], + "name": "ResourceExists", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorExists", "inputs": [ { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "string", + "name": "resource", + "type": "string" } - ] + ], + "name": "ResourceNotFound", + "type": "error" }, { - "type": "error", - "name": "FunctionSelectorNotFound", "inputs": [ { - "name": "functionSelector", - "type": "bytes4", - "internalType": "bytes4" + "internalType": "uint256", + "name": "length", + "type": "uint256" } - ] + ], + "name": "SchemaLib_InvalidLength", + "type": "error" }, { - "type": "error", - "name": "InvalidSelector", - "inputs": [ - { - "name": "resource", - "type": "string", - "internalType": "string" - } - ] + "inputs": [], + "name": "SchemaLib_StaticTypeAfterDynamicType", + "type": "error" }, { - "type": "error", - "name": "ModuleAlreadyInstalled", "inputs": [ { - "name": "module", - "type": "string", - "internalType": "string" + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "start", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" } - ] + ], + "name": "Slice_OutOfBounds", + "type": "error" }, { - "type": "error", - "name": "PackedCounter_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "uint256", + "name": "expected", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "received", + "type": "uint256" } - ] + ], + "name": "StoreCore_InvalidDataLength", + "type": "error" + }, + { + "inputs": [], + "name": "StoreCore_NotDynamicField", + "type": "error" }, { - "type": "error", - "name": "ResourceExists", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "address", + "name": "system", + "type": "address" } - ] + ], + "name": "SystemExists", + "type": "error" }, { - "type": "error", - "name": "ResourceNotFound", "inputs": [ { - "name": "resource", - "type": "string", - "internalType": "string" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "internalType": "string", + "name": "systemFunctionName", + "type": "string" + }, + { + "internalType": "string", + "name": "systemFunctionArguments", + "type": "string" + }, + { + "internalType": "bool", + "name": "staticCallOnly", + "type": "bool" + } + ], + "name": "registerFunctionSelector", + "outputs": [ + { + "internalType": "bytes4", + "name": "worldFunctionSelector", + "type": "bytes4" } - ] + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "SchemaLib_InvalidLength", "inputs": [ { - "name": "length", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes16", + "name": "namespace", + "type": "bytes16" } - ] - }, - { - "type": "error", - "name": "SchemaLib_StaticTypeAfterDynamicType", - "inputs": [] + ], + "name": "registerNamespace", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "Slice_OutOfBounds", "inputs": [ { - "name": "data", - "type": "bytes", - "internalType": "bytes" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "start", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes4", + "name": "worldFunctionSelector", + "type": "bytes4" }, { - "name": "end", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes4", + "name": "systemFunctionSelector", + "type": "bytes4" + }, + { + "internalType": "bool", + "name": "staticCallOnly", + "type": "bool" } - ] + ], + "name": "registerRootFunctionSelector", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "StoreCore_InvalidDataLength", "inputs": [ { - "name": "expected", - "type": "uint256", - "internalType": "uint256" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" }, { - "name": "received", - "type": "uint256", - "internalType": "uint256" + "internalType": "contract System", + "name": "system", + "type": "address" + }, + { + "internalType": "bool", + "name": "publicAccess", + "type": "bool" } - ] - }, - { - "type": "error", - "name": "StoreCore_NotDynamicField", - "inputs": [] + ], + "name": "registerSystem", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "type": "error", - "name": "SystemExists", "inputs": [ { - "name": "system", - "type": "address", - "internalType": "address" + "internalType": "bytes32", + "name": "resourceSelector", + "type": "bytes32" + }, + { + "internalType": "contract ISystemHook", + "name": "hook", + "type": "address" } - ] + ], + "name": "registerSystemHook", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] \ No newline at end of file diff --git a/packages/world/mud.config.ts b/packages/world/mud.config.ts index 182692d421..365683621a 100644 --- a/packages/world/mud.config.ts +++ b/packages/world/mud.config.ts @@ -135,6 +135,15 @@ export default mudConfig({ schema: { has: "bool", index: "uint40" }, dataStruct: false, }, + HasKeys: { + directory: "modules/haskeys/tables", + keySchema: { + sourceTable: "bytes32", + keysHash: "bytes32", + }, + schema: { has: "bool" }, + dataStruct: false, + }, UniqueEntity: { directory: "modules/uniqueentity/tables", keySchema: {}, diff --git a/packages/world/src/Tables.sol b/packages/world/src/Tables.sol index b99f98c234..5670a4c127 100644 --- a/packages/world/src/Tables.sol +++ b/packages/world/src/Tables.sol @@ -15,6 +15,7 @@ import { FunctionSelectors, FunctionSelectorsTableId } from "./modules/core/tabl import { KeysWithValue, KeysWithValueData } from "./modules/keyswithvalue/tables/KeysWithValue.sol"; import { KeysInTable, KeysInTableData, KeysInTableTableId } from "./modules/keysintable/tables/KeysInTable.sol"; import { UsedKeysIndex, UsedKeysIndexTableId } from "./modules/keysintable/tables/UsedKeysIndex.sol"; +import { HasKeys, HasKeysTableId } from "./modules/haskeys/tables/HasKeys.sol"; import { UniqueEntity } from "./modules/uniqueentity/tables/UniqueEntity.sol"; import { Bool } from "./../test/tables/Bool.sol"; import { AddressArray } from "./../test/tables/AddressArray.sol"; diff --git a/packages/world/src/modules/haskeys/HasKeysHook.sol b/packages/world/src/modules/haskeys/HasKeysHook.sol new file mode 100644 index 0000000000..c6b15abf6e --- /dev/null +++ b/packages/world/src/modules/haskeys/HasKeysHook.sol @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.0; + +import { IStoreHook } from "@latticexyz/store/src/IStore.sol"; +import { Schema } from "@latticexyz/store/src/Schema.sol"; + +import { HasKeys } from "./tables/HasKeys.sol"; + +/** + * Note: if a table with composite keys is used, only the first key is indexed + */ +contract HasKeysHook is IStoreHook { + function handleSet(bytes32 tableId, bytes32[] memory key) internal { + bytes32 keysHash = keccak256(abi.encode(key)); + + // If the key has not yet been set in the table... + if (!HasKeys.get(tableId, keysHash)) { + HasKeys.set(tableId, keysHash, true); + } + } + + function onSetRecord(bytes32 table, bytes32[] memory key, bytes memory, Schema) public { + handleSet(table, key); + } + + function onBeforeSetField(bytes32 table, bytes32[] memory key, uint8, bytes memory, Schema) public {} + + function onAfterSetField(bytes32 table, bytes32[] memory key, uint8, bytes memory, Schema) public { + handleSet(table, key); + } + + function onDeleteRecord(bytes32 tableId, bytes32[] memory key, Schema) public { + bytes32 keysHash = keccak256(abi.encode(key)); + + if (HasKeys.get(tableId, keysHash)) { + HasKeys.deleteRecord(tableId, keysHash); + } + } +} diff --git a/packages/world/src/modules/haskeys/HasKeysModule.sol b/packages/world/src/modules/haskeys/HasKeysModule.sol new file mode 100644 index 0000000000..3803b3b302 --- /dev/null +++ b/packages/world/src/modules/haskeys/HasKeysModule.sol @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.0; + +import { ResourceType } from "../core/tables/ResourceType.sol"; +import { Resource } from "../../Types.sol"; + +import { IBaseWorld } from "../../interfaces/IBaseWorld.sol"; +import { IModule } from "../../interfaces/IModule.sol"; + +import { WorldContext } from "../../WorldContext.sol"; +import { ResourceSelector } from "../../ResourceSelector.sol"; + +import { HasKeysHook } from "./HasKeysHook.sol"; +import { HasKeys, HasKeysTableId } from "./tables/HasKeys.sol"; + +contract HasKeysModule is IModule, WorldContext { + using ResourceSelector for bytes32; + + // The HasKeysHook is deployed once and infers the target table id + // from the source table id (passed as argument to the hook methods) + HasKeysHook immutable hook = new HasKeysHook(); + + function getName() public pure returns (bytes16) { + return bytes16("hasKeys"); + } + + function install(bytes memory args) public override { + // Extract source table id from args + bytes32 sourceTableId = abi.decode(args, (bytes32)); + + IBaseWorld world = IBaseWorld(_world()); + + if (ResourceType.get(HasKeysTableId) == Resource.NONE) { + // Register the tables + HasKeys.register(world); + + // Grant the hook access to the tables + world.grantAccess(HasKeysTableId, address(hook)); + } + + // Register a hook that is called when a value is set in the source table + world.registerStoreHook(sourceTableId, hook); + } +} diff --git a/packages/world/src/modules/haskeys/constants.sol b/packages/world/src/modules/haskeys/constants.sol new file mode 100644 index 0000000000..f5bcde54fc --- /dev/null +++ b/packages/world/src/modules/haskeys/constants.sol @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.0; + +// Limiting the module namespace to 8 bytes so the last 8 bytes +// can be used for an identifier of the source table namespace to avoid +// collisions between tables with the same name in different namespaces +bytes8 constant MODULE_NAMESPACE = "haskeys"; diff --git a/packages/world/src/modules/haskeys/hasKey.sol b/packages/world/src/modules/haskeys/hasKey.sol new file mode 100644 index 0000000000..152fef8128 --- /dev/null +++ b/packages/world/src/modules/haskeys/hasKey.sol @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.0; + +import { IStore } from "@latticexyz/store/src/IStore.sol"; + +import { HasKeys } from "./tables/HasKeys.sol"; + +/** + * Get whether the key is in the given table. + * + * Note: this util can only be called within the context of a Store (e.g. from a System or Module). + * For usage outside of a Store, use the overload that takes an explicit store argument. + */ +function hasKey(bytes32 tableId, bytes32[] memory key) view returns (bool) { + bytes32 keysHash = keccak256(abi.encode(key)); + + return HasKeys.get(tableId, keysHash); +} + +/** + * Get whether the key is in the given table for the given store. + */ +function hasKey(IStore store, bytes32 tableId, bytes32[] memory key) view returns (bool) { + bytes32 keysHash = keccak256(abi.encode(key)); + + return HasKeys.get(store, tableId, keysHash); +} diff --git a/packages/world/src/modules/haskeys/tables/HasKeys.sol b/packages/world/src/modules/haskeys/tables/HasKeys.sol new file mode 100644 index 0000000000..030dc40bc2 --- /dev/null +++ b/packages/world/src/modules/haskeys/tables/HasKeys.sol @@ -0,0 +1,139 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.0; + +/* Autogenerated file. Do not edit manually. */ + +// Import schema type +import { SchemaType } from "@latticexyz/schema-type/src/solidity/SchemaType.sol"; + +// Import store internals +import { IStore } from "@latticexyz/store/src/IStore.sol"; +import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; +import { StoreCore } from "@latticexyz/store/src/StoreCore.sol"; +import { Bytes } from "@latticexyz/store/src/Bytes.sol"; +import { Memory } from "@latticexyz/store/src/Memory.sol"; +import { SliceLib } from "@latticexyz/store/src/Slice.sol"; +import { EncodeArray } from "@latticexyz/store/src/tightcoder/EncodeArray.sol"; +import { Schema, SchemaLib } from "@latticexyz/store/src/Schema.sol"; +import { PackedCounter, PackedCounterLib } from "@latticexyz/store/src/PackedCounter.sol"; + +bytes32 constant _tableId = bytes32(abi.encodePacked(bytes16(""), bytes16("HasKeys"))); +bytes32 constant HasKeysTableId = _tableId; + +library HasKeys { + /** Get the table's key schema */ + function getKeySchema() internal pure returns (Schema) { + SchemaType[] memory _schema = new SchemaType[](2); + _schema[0] = SchemaType.BYTES32; + _schema[1] = SchemaType.BYTES32; + + return SchemaLib.encode(_schema); + } + + /** Get the table's value schema */ + function getValueSchema() internal pure returns (Schema) { + SchemaType[] memory _schema = new SchemaType[](1); + _schema[0] = SchemaType.BOOL; + + return SchemaLib.encode(_schema); + } + + /** Get the table's key names */ + function getKeyNames() internal pure returns (string[] memory keyNames) { + keyNames = new string[](2); + keyNames[0] = "sourceTable"; + keyNames[1] = "keysHash"; + } + + /** Get the table's field names */ + function getFieldNames() internal pure returns (string[] memory fieldNames) { + fieldNames = new string[](1); + fieldNames[0] = "has"; + } + + /** Register the table's key schema, value schema, key names and value names */ + function register() internal { + StoreSwitch.registerTable(_tableId, getKeySchema(), getValueSchema(), getKeyNames(), getFieldNames()); + } + + /** Register the table's key schema, value schema, key names and value names (using the specified store) */ + function register(IStore _store) internal { + _store.registerTable(_tableId, getKeySchema(), getValueSchema(), getKeyNames(), getFieldNames()); + } + + /** Get has */ + function get(bytes32 sourceTable, bytes32 keysHash) internal view returns (bool has) { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + bytes memory _blob = StoreSwitch.getField(_tableId, _keyTuple, 0, getValueSchema()); + return (_toBool(uint8(Bytes.slice1(_blob, 0)))); + } + + /** Get has (using the specified store) */ + function get(IStore _store, bytes32 sourceTable, bytes32 keysHash) internal view returns (bool has) { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + bytes memory _blob = _store.getField(_tableId, _keyTuple, 0, getValueSchema()); + return (_toBool(uint8(Bytes.slice1(_blob, 0)))); + } + + /** Set has */ + function set(bytes32 sourceTable, bytes32 keysHash, bool has) internal { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + StoreSwitch.setField(_tableId, _keyTuple, 0, abi.encodePacked((has)), getValueSchema()); + } + + /** Set has (using the specified store) */ + function set(IStore _store, bytes32 sourceTable, bytes32 keysHash, bool has) internal { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + _store.setField(_tableId, _keyTuple, 0, abi.encodePacked((has)), getValueSchema()); + } + + /** Tightly pack full data using this table's schema */ + function encode(bool has) internal pure returns (bytes memory) { + return abi.encodePacked(has); + } + + /** Encode keys as a bytes32 array using this table's schema */ + function encodeKeyTuple(bytes32 sourceTable, bytes32 keysHash) internal pure returns (bytes32[] memory) { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + return _keyTuple; + } + + /* Delete all data for given keys */ + function deleteRecord(bytes32 sourceTable, bytes32 keysHash) internal { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + StoreSwitch.deleteRecord(_tableId, _keyTuple, getValueSchema()); + } + + /* Delete all data for given keys (using the specified store) */ + function deleteRecord(IStore _store, bytes32 sourceTable, bytes32 keysHash) internal { + bytes32[] memory _keyTuple = new bytes32[](2); + _keyTuple[0] = sourceTable; + _keyTuple[1] = keysHash; + + _store.deleteRecord(_tableId, _keyTuple, getValueSchema()); + } +} + +function _toBool(uint8 value) pure returns (bool result) { + assembly { + result := value + } +}