declare const abi: [ { "type": "constructor", "inputs": [], "stateMutability": "nonpayable" }, { "type": "fallback", "stateMutability": "payable" }, { "type": "receive", "stateMutability": "payable" }, { "type": "function", "name": "call", "inputs": [ { "name": "systemId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "callData", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "payable" }, { "type": "function", "name": "callFrom", "inputs": [ { "name": "delegator", "type": "address", "internalType": "address" }, { "name": "systemId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "callData", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "payable" }, { "type": "function", "name": "callStatic", "inputs": [ { "name": "systemId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "callData", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "creator", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "deleteRecord", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getDynamicField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "data", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getDynamicFieldLength", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getDynamicFieldSlice", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "start", "type": "uint256", "internalType": "uint256" }, { "name": "end", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "outputs": [ { "name": "data", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "data", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getFieldLayout", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" } ], "outputs": [ { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "stateMutability": "view" }, { "type": "function", "name": "getFieldLength", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getFieldLength", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getKeySchema", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" } ], "outputs": [ { "name": "keySchema", "type": "bytes32", "internalType": "Schema" } ], "stateMutability": "view" }, { "type": "function", "name": "getRecord", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "outputs": [ { "name": "staticData", "type": "bytes", "internalType": "bytes" }, { "name": "encodedLengths", "type": "bytes32", "internalType": "EncodedLengths" }, { "name": "dynamicData", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getRecord", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" } ], "outputs": [ { "name": "staticData", "type": "bytes", "internalType": "bytes" }, { "name": "encodedLengths", "type": "bytes32", "internalType": "EncodedLengths" }, { "name": "dynamicData", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "view" }, { "type": "function", "name": "getStaticField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "outputs": [ { "name": "data", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "getValueSchema", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" } ], "outputs": [ { "name": "valueSchema", "type": "bytes32", "internalType": "Schema" } ], "stateMutability": "view" }, { "type": "function", "name": "getWorldCallContext", "inputs": [ { "name": "callCount", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "ResourceId" }, { "name": "", "type": "bytes4", "internalType": "bytes4" }, { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getWorldCallContext", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "ResourceId" }, { "name": "", "type": "bytes4", "internalType": "bytes4" }, { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getWorldCallCount", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "initialize", "inputs": [ { "name": "initModule", "type": "address", "internalType": "contract IModule" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "installRootModule", "inputs": [ { "name": "module", "type": "address", "internalType": "contract IModule" }, { "name": "encodedArgs", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "popFromDynamicField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "byteLengthToPop", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "pushToDynamicField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "dataToPush", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setDynamicField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "data", "type": "bytes", "internalType": "bytes" }, { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRecord", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "staticData", "type": "bytes", "internalType": "bytes" }, { "name": "encodedLengths", "type": "bytes32", "internalType": "EncodedLengths" }, { "name": "dynamicData", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setStaticField", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "fieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "data", "type": "bytes", "internalType": "bytes" }, { "name": "fieldLayout", "type": "bytes32", "internalType": "FieldLayout" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "spliceDynamicData", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "internalType": "uint8" }, { "name": "startWithinField", "type": "uint40", "internalType": "uint40" }, { "name": "deleteCount", "type": "uint40", "internalType": "uint40" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "spliceStaticData", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "start", "type": "uint48", "internalType": "uint48" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "staticCallCheck", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "storeVersion", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "pure" }, { "type": "function", "name": "worldVersion", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "pure" }, { "type": "event", "name": "HelloStore", "inputs": [ { "name": "storeVersion", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "HelloWorld", "inputs": [ { "name": "worldVersion", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "Store_DeleteRecord", "inputs": [ { "name": "tableId", "type": "bytes32", "indexed": true, "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "indexed": false, "internalType": "bytes32[]" } ], "anonymous": false }, { "type": "event", "name": "Store_SetRecord", "inputs": [ { "name": "tableId", "type": "bytes32", "indexed": true, "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "indexed": false, "internalType": "bytes32[]" }, { "name": "staticData", "type": "bytes", "indexed": false, "internalType": "bytes" }, { "name": "encodedLengths", "type": "bytes32", "indexed": false, "internalType": "EncodedLengths" }, { "name": "dynamicData", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "Store_SpliceDynamicData", "inputs": [ { "name": "tableId", "type": "bytes32", "indexed": true, "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "indexed": false, "internalType": "bytes32[]" }, { "name": "dynamicFieldIndex", "type": "uint8", "indexed": false, "internalType": "uint8" }, { "name": "start", "type": "uint48", "indexed": false, "internalType": "uint48" }, { "name": "deleteCount", "type": "uint40", "indexed": false, "internalType": "uint40" }, { "name": "encodedLengths", "type": "bytes32", "indexed": false, "internalType": "EncodedLengths" }, { "name": "data", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "Store_SpliceStaticData", "inputs": [ { "name": "tableId", "type": "bytes32", "indexed": true, "internalType": "ResourceId" }, { "name": "keyTuple", "type": "bytes32[]", "indexed": false, "internalType": "bytes32[]" }, { "name": "start", "type": "uint48", "indexed": false, "internalType": "uint48" }, { "name": "data", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "error", "name": "EncodedLengths_InvalidLength", "inputs": [ { "name": "length", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "FieldLayout_Empty", "inputs": [] }, { "type": "error", "name": "FieldLayout_InvalidStaticDataLength", "inputs": [ { "name": "staticDataLength", "type": "uint256", "internalType": "uint256" }, { "name": "computedStaticDataLength", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "FieldLayout_StaticLengthDoesNotFitInAWord", "inputs": [ { "name": "index", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "FieldLayout_StaticLengthIsNotZero", "inputs": [ { "name": "index", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "FieldLayout_StaticLengthIsZero", "inputs": [ { "name": "index", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "FieldLayout_TooManyDynamicFields", "inputs": [ { "name": "numFields", "type": "uint256", "internalType": "uint256" }, { "name": "maxFields", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "FieldLayout_TooManyFields", "inputs": [ { "name": "numFields", "type": "uint256", "internalType": "uint256" }, { "name": "maxFields", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Module_AlreadyInstalled", "inputs": [] }, { "type": "error", "name": "Module_MissingDependency", "inputs": [ { "name": "dependency", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "Module_NonRootInstallNotSupported", "inputs": [] }, { "type": "error", "name": "Module_RootInstallNotSupported", "inputs": [] }, { "type": "error", "name": "Schema_InvalidLength", "inputs": [ { "name": "length", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Schema_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": "Store_IndexOutOfBounds", "inputs": [ { "name": "length", "type": "uint256", "internalType": "uint256" }, { "name": "accessedIndex", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidBounds", "inputs": [ { "name": "start", "type": "uint256", "internalType": "uint256" }, { "name": "end", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidFieldNamesLength", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidKeyNamesLength", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidResourceType", "inputs": [ { "name": "expected", "type": "bytes2", "internalType": "bytes2" }, { "name": "resourceId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "resourceIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "Store_InvalidSplice", "inputs": [ { "name": "startWithinField", "type": "uint40", "internalType": "uint40" }, { "name": "deleteCount", "type": "uint40", "internalType": "uint40" }, { "name": "fieldLength", "type": "uint40", "internalType": "uint40" } ] }, { "type": "error", "name": "Store_InvalidStaticDataLength", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidValueSchemaDynamicLength", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidValueSchemaLength", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_InvalidValueSchemaStaticLength", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "Store_TableAlreadyExists", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "tableIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "Store_TableNotFound", "inputs": [ { "name": "tableId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "tableIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "World_AccessDenied", "inputs": [ { "name": "resource", "type": "string", "internalType": "string" }, { "name": "caller", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "World_AlreadyInitialized", "inputs": [] }, { "type": "error", "name": "World_CallbackNotAllowed", "inputs": [ { "name": "functionSelector", "type": "bytes4", "internalType": "bytes4" } ] }, { "type": "error", "name": "World_DelegationNotFound", "inputs": [ { "name": "delegator", "type": "address", "internalType": "address" }, { "name": "delegatee", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "World_FunctionSelectorAlreadyExists", "inputs": [ { "name": "functionSelector", "type": "bytes4", "internalType": "bytes4" } ] }, { "type": "error", "name": "World_FunctionSelectorNotFound", "inputs": [ { "name": "functionSelector", "type": "bytes4", "internalType": "bytes4" } ] }, { "type": "error", "name": "World_InsufficientBalance", "inputs": [ { "name": "balance", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "World_InterfaceNotSupported", "inputs": [ { "name": "contractAddress", "type": "address", "internalType": "address" }, { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ] }, { "type": "error", "name": "World_InvalidNamespace", "inputs": [ { "name": "namespace", "type": "bytes14", "internalType": "bytes14" } ] }, { "type": "error", "name": "World_InvalidResourceId", "inputs": [ { "name": "resourceId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "resourceIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "World_InvalidResourceType", "inputs": [ { "name": "expected", "type": "bytes2", "internalType": "bytes2" }, { "name": "resourceId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "resourceIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "World_ResourceAlreadyExists", "inputs": [ { "name": "resourceId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "resourceIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "World_ResourceNotFound", "inputs": [ { "name": "resourceId", "type": "bytes32", "internalType": "ResourceId" }, { "name": "resourceIdString", "type": "string", "internalType": "string" } ] }, { "type": "error", "name": "World_SystemAlreadyExists", "inputs": [ { "name": "system", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "World_UnlimitedDelegationNotAllowed", "inputs": [] } ]; export default abi;