diff --git a/.prettierignore b/.prettierignore index cf6f30f0c1..6ec0121e9d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,6 +1,4 @@ dist -**/types/ethers-contracts **/.next templates/phaser/packages/art -**/contractComponents.ts CODEOWNERS diff --git a/docs/pages/quick-start.mdx b/docs/pages/quick-start.mdx index d9c6434ce3..e03fe5a60b 100644 --- a/docs/pages/quick-start.mdx +++ b/docs/pages/quick-start.mdx @@ -125,7 +125,6 @@ Each system can contain any number of methods, though this system only has the s The client package will vary depending on which template used (vanilla, react, phaser, or threejs), but much of it will remain the same between them. Vite is used for bundling and serving the client app. As mentioned earlier there is boilerplate code included in each to bootstrap MUD. There are a few files you should understand and be aware of as you build your project: -- `contractComponents.ts` has RECS component definitions created for you; this file will automatically regenerate as you add tables and re-run `pnpm dev`. - You can adjust `createClientComponents.ts` to either override contract components or add client-only components. - If you are using chains other than foundry/anvil and lattice testnet, you can add them in `getNetworkConfig.ts` - `createSystemCalls` represents how the client talks to the system contracts via our `worldSend` helper diff --git a/docs/pages/tutorials/minimal/deploy.mdx b/docs/pages/tutorials/minimal/deploy.mdx index d83f2fc3f4..d8b920c462 100644 --- a/docs/pages/tutorials/minimal/deploy.mdx +++ b/docs/pages/tutorials/minimal/deploy.mdx @@ -137,7 +137,7 @@ import { createFaucetService } from "@latticexyz/services/faucet"; import { encodeEntity, syncToRecs } from "@latticexyz/store-sync/recs"; import { getNetworkConfig } from "./getNetworkConfig"; import { world } from "./world"; -import { IWorld__factory } from "contracts/types/ethers-contracts/factories/IWorld__factory"; +import IWorldAbi from "contracts/abi/IWorld.sol/IWorld.abi.json" import { createBurnerAccount, createContract, transportObserver, ContractWrite } from "@latticexyz/common"; import { Subject, share } from "rxjs"; import mudConfig from "contracts/mud.config"; @@ -164,8 +164,8 @@ export async function setupNetwork() { }); const walletClient = createWalletClient({ - chain: , - transport: custom(window.ethereum) + chain: , + transport: custom(window.ethereum) }) const accounts = await walletClient.requestAddresses() walletClient.account = {address: accounts[0]} @@ -173,7 +173,7 @@ export async function setupNetwork() { const write$ = new Subject(); const worldContract = createContract({ address: networkConfig.worldAddress as Hex, - abi: IWorld__factory.abi, + abi: IWorldAbi, publicClient, walletClient, onWrite: (write) => write$.next(write), @@ -242,8 +242,8 @@ Import [the Viem definitions necessary to use a wallet managed address](https:// ```ts const walletClient = createWalletClient({ - chain: , - transport: custom(window.ethereum) + chain: , + transport: custom(window.ethereum) }) ``` @@ -265,13 +265,9 @@ Therefore, we need to do it manually because MUD code expects the address to be ```ts return { - . - . - . + ... playerEntity: encodeEntity({ address: "address" }, { address: walletClient.account.address }), - . - . - . + ... }; ``` diff --git a/e2e/packages/contracts/types/ethers-contracts/IWorld.ts b/e2e/packages/contracts/types/ethers-contracts/IWorld.ts deleted file mode 100644 index 59de0823a0..0000000000 --- a/e2e/packages/contracts/types/ethers-contracts/IWorld.ts +++ /dev/null @@ -1,1734 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "./common"; - -export interface IWorldInterface extends utils.Interface { - functions: { - "call(bytes32,bytes)": FunctionFragment; - "callFrom(address,bytes32,bytes)": FunctionFragment; - "deleteRecord(bytes32,bytes32[],bytes32)": FunctionFragment; - "emitEphemeralRecord(bytes32,bytes32[],bytes,bytes32)": FunctionFragment; - "getField(bytes32,bytes32[],uint8,bytes32)": FunctionFragment; - "getFieldLayout(bytes32)": FunctionFragment; - "getFieldLength(bytes32,bytes32[],uint8,bytes32)": FunctionFragment; - "getFieldSlice(bytes32,bytes32[],uint8,bytes32,uint256,uint256)": FunctionFragment; - "getKeySchema(bytes32)": FunctionFragment; - "getRecord(bytes32,bytes32[],bytes32)": FunctionFragment; - "getValueSchema(bytes32)": FunctionFragment; - "grantAccess(bytes32,address)": FunctionFragment; - "installModule(address,bytes)": FunctionFragment; - "installRootModule(address,bytes)": FunctionFragment; - "pop()": FunctionFragment; - "popFromField(bytes32,bytes32[],uint8,uint256,bytes32)": FunctionFragment; - "push(uint32)": FunctionFragment; - "pushRange(uint32,uint32)": FunctionFragment; - "pushToField(bytes32,bytes32[],uint8,bytes,bytes32)": FunctionFragment; - "registerDelegation(address,bytes32,bytes)": FunctionFragment; - "registerFunctionSelector(bytes32,string,string)": FunctionFragment; - "registerNamespace(bytes16)": FunctionFragment; - "registerRootFunctionSelector(bytes32,bytes4,bytes4)": FunctionFragment; - "registerStoreHook(bytes32,address)": FunctionFragment; - "registerSystem(bytes32,address,bool)": FunctionFragment; - "registerSystemHook(bytes32,address)": FunctionFragment; - "registerTable(bytes32,bytes32,bytes32,bytes32,string[],string[])": FunctionFragment; - "revokeAccess(bytes32,address)": FunctionFragment; - "set(uint32[])": FunctionFragment; - "setField(bytes32,bytes32[],uint8,bytes,bytes32)": FunctionFragment; - "setRecord(bytes32,bytes32[],bytes,bytes32)": FunctionFragment; - "stub(uint256)": FunctionFragment; - "transferOwnership(bytes16,address)": FunctionFragment; - "updateInField(bytes32,bytes32[],uint8,uint256,bytes,bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "call" - | "callFrom" - | "deleteRecord" - | "emitEphemeralRecord" - | "getField" - | "getFieldLayout" - | "getFieldLength" - | "getFieldSlice" - | "getKeySchema" - | "getRecord" - | "getValueSchema" - | "grantAccess" - | "installModule" - | "installRootModule" - | "pop" - | "popFromField" - | "push" - | "pushRange" - | "pushToField" - | "registerDelegation" - | "registerFunctionSelector" - | "registerNamespace" - | "registerRootFunctionSelector" - | "registerStoreHook" - | "registerSystem" - | "registerSystemHook" - | "registerTable" - | "revokeAccess" - | "set" - | "setField" - | "setRecord" - | "stub" - | "transferOwnership" - | "updateInField" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "call", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "callFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "deleteRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "emitEphemeralRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getFieldLayout", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getFieldLength", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getFieldSlice", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getKeySchema", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getValueSchema", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantAccess", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "installModule", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "installRootModule", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "pop", values?: undefined): string; - encodeFunctionData( - functionFragment: "popFromField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "push", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "pushRange", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "pushToField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerDelegation", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerFunctionSelector", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerNamespace", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "registerRootFunctionSelector", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerStoreHook", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "registerSystem", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerSystemHook", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "registerTable", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[] - ] - ): string; - encodeFunctionData( - functionFragment: "revokeAccess", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "set", - values: [PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "setField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "setRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "stub", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateInField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "call", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "callFrom", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "deleteRecord", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "emitEphemeralRecord", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getField", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getFieldLayout", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFieldLength", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFieldSlice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getKeySchema", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getRecord", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getValueSchema", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "grantAccess", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "installModule", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "installRootModule", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "pop", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "popFromField", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "push", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pushRange", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pushToField", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerDelegation", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerFunctionSelector", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerNamespace", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerRootFunctionSelector", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerStoreHook", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerSystem", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerSystemHook", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerTable", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "revokeAccess", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "set", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setField", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setRecord", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "stub", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateInField", - data: BytesLike - ): Result; - - events: { - "HelloWorld()": EventFragment; - "StoreDeleteRecord(bytes32,bytes32[])": EventFragment; - "StoreEphemeralRecord(bytes32,bytes32[],bytes)": EventFragment; - "StoreSetField(bytes32,bytes32[],uint8,bytes)": EventFragment; - "StoreSetRecord(bytes32,bytes32[],bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "HelloWorld"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreDeleteRecord"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreEphemeralRecord"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreSetField"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreSetRecord"): EventFragment; -} - -export interface HelloWorldEventObject {} -export type HelloWorldEvent = TypedEvent<[], HelloWorldEventObject>; - -export type HelloWorldEventFilter = TypedEventFilter; - -export interface StoreDeleteRecordEventObject { - table: string; - key: string[]; -} -export type StoreDeleteRecordEvent = TypedEvent< - [string, string[]], - StoreDeleteRecordEventObject ->; - -export type StoreDeleteRecordEventFilter = - TypedEventFilter; - -export interface StoreEphemeralRecordEventObject { - table: string; - key: string[]; - data: string; -} -export type StoreEphemeralRecordEvent = TypedEvent< - [string, string[], string], - StoreEphemeralRecordEventObject ->; - -export type StoreEphemeralRecordEventFilter = - TypedEventFilter; - -export interface StoreSetFieldEventObject { - table: string; - key: string[]; - schemaIndex: number; - data: string; -} -export type StoreSetFieldEvent = TypedEvent< - [string, string[], number, string], - StoreSetFieldEventObject ->; - -export type StoreSetFieldEventFilter = TypedEventFilter; - -export interface StoreSetRecordEventObject { - table: string; - key: string[]; - data: string; -} -export type StoreSetRecordEvent = TypedEvent< - [string, string[], string], - StoreSetRecordEventObject ->; - -export type StoreSetRecordEventFilter = TypedEventFilter; - -export interface IWorld extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IWorldInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { data: string }>; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { fieldLayout: string }>; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { data: string }>; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { schema: string }>; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { data: string }>; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { schema: string }>; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pop( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - push( - num: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushRange( - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - set( - list: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - stub( - arg: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pop( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - push( - num: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushRange( - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - set( - list: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - stub( - arg: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pop(overrides?: CallOverrides): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - push( - num: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pushRange( - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - set( - list: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - stub( - arg: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "HelloWorld()"(): HelloWorldEventFilter; - HelloWorld(): HelloWorldEventFilter; - - "StoreDeleteRecord(bytes32,bytes32[])"( - table?: null, - key?: null - ): StoreDeleteRecordEventFilter; - StoreDeleteRecord(table?: null, key?: null): StoreDeleteRecordEventFilter; - - "StoreEphemeralRecord(bytes32,bytes32[],bytes)"( - table?: null, - key?: null, - data?: null - ): StoreEphemeralRecordEventFilter; - StoreEphemeralRecord( - table?: null, - key?: null, - data?: null - ): StoreEphemeralRecordEventFilter; - - "StoreSetField(bytes32,bytes32[],uint8,bytes)"( - table?: null, - key?: null, - schemaIndex?: null, - data?: null - ): StoreSetFieldEventFilter; - StoreSetField( - table?: null, - key?: null, - schemaIndex?: null, - data?: null - ): StoreSetFieldEventFilter; - - "StoreSetRecord(bytes32,bytes32[],bytes)"( - table?: null, - key?: null, - data?: null - ): StoreSetRecordEventFilter; - StoreSetRecord( - table?: null, - key?: null, - data?: null - ): StoreSetRecordEventFilter; - }; - - estimateGas: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pop( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - push( - num: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushRange( - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - set( - list: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - stub( - arg: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pop( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - push( - num: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushRange( - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - set( - list: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - stub( - arg: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/e2e/packages/contracts/types/ethers-contracts/factories/IWorld__factory.ts b/e2e/packages/contracts/types/ethers-contracts/factories/IWorld__factory.ts deleted file mode 100644 index 82783c0ee0..0000000000 --- a/e2e/packages/contracts/types/ethers-contracts/factories/IWorld__factory.ts +++ /dev/null @@ -1,1218 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { IWorld, IWorldInterface } from "../IWorld"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "resource", - type: "string", - }, - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "AccessDenied", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "delegator", - type: "address", - }, - { - internalType: "address", - name: "delegatee", - type: "address", - }, - ], - name: "DelegationNotFound", - 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_InvalidKeyNamesLength", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "expected", - type: "uint256", - }, - { - internalType: "uint256", - name: "received", - type: "uint256", - }, - ], - name: "StoreCore_InvalidValueNamesLength", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "expected", - type: "uint256", - }, - { - internalType: "uint256", - name: "received", - type: "uint256", - }, - ], - name: "StoreCore_InvalidValueSchemaLength", - 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", - }, - { - inputs: [], - name: "TestError1", - type: "error", - }, - { - inputs: [ - { - components: [ - { - internalType: "int32", - name: "x", - type: "int32", - }, - { - internalType: "int32", - name: "y", - type: "int32", - }, - ], - internalType: "struct Position", - name: "position", - type: "tuple", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "string", - name: "name", - type: "string", - }, - { - internalType: "bool", - name: "flag", - type: "bool", - }, - ], - name: "TestError2", - 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: "bytes", - name: "funcSelectorAndArgs", - type: "bytes", - }, - ], - name: "call", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "delegator", - type: "address", - }, - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "bytes", - name: "funcSelectorAndArgs", - type: "bytes", - }, - ], - name: "callFrom", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "deleteRecord", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "emitEphemeralRecord", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "getField", - outputs: [ - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - ], - name: "getFieldLayout", - outputs: [ - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "getFieldLength", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - { - internalType: "uint256", - name: "start", - type: "uint256", - }, - { - internalType: "uint256", - name: "end", - type: "uint256", - }, - ], - name: "getFieldSlice", - outputs: [ - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - ], - name: "getKeySchema", - outputs: [ - { - internalType: "Schema", - name: "schema", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "getRecord", - outputs: [ - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - ], - name: "getValueSchema", - outputs: [ - { - internalType: "Schema", - name: "schema", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "address", - name: "grantee", - type: "address", - }, - ], - name: "grantAccess", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IModule", - name: "module", - type: "address", - }, - { - internalType: "bytes", - name: "args", - type: "bytes", - }, - ], - name: "installModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IModule", - name: "module", - type: "address", - }, - { - internalType: "bytes", - name: "args", - type: "bytes", - }, - ], - name: "installRootModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pop", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "uint256", - name: "byteLengthToPop", - type: "uint256", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "popFromField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint32", - name: "num", - type: "uint32", - }, - ], - name: "push", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint32", - name: "start", - type: "uint32", - }, - { - internalType: "uint32", - name: "end", - type: "uint32", - }, - ], - name: "pushRange", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "bytes", - name: "dataToPush", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "pushToField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "delegatee", - type: "address", - }, - { - internalType: "bytes32", - name: "delegationControlId", - type: "bytes32", - }, - { - internalType: "bytes", - name: "initFuncSelectorAndArgs", - type: "bytes", - }, - ], - name: "registerDelegation", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "string", - name: "systemFunctionName", - type: "string", - }, - { - internalType: "string", - name: "systemFunctionArguments", - type: "string", - }, - ], - name: "registerFunctionSelector", - outputs: [ - { - internalType: "bytes4", - name: "worldFunctionSelector", - type: "bytes4", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes16", - name: "namespace", - type: "bytes16", - }, - ], - name: "registerNamespace", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "bytes4", - name: "worldFunctionSelector", - type: "bytes4", - }, - { - internalType: "bytes4", - name: "systemFunctionSelector", - type: "bytes4", - }, - ], - name: "registerRootFunctionSelector", - outputs: [ - { - internalType: "bytes4", - name: "", - type: "bytes4", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "contract IStoreHook", - name: "hook", - type: "address", - }, - ], - name: "registerStoreHook", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "contract WorldContextConsumer", - name: "system", - type: "address", - }, - { - internalType: "bool", - name: "publicAccess", - type: "bool", - }, - ], - name: "registerSystem", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "contract ISystemHook", - name: "hook", - type: "address", - }, - ], - name: "registerSystemHook", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - { - internalType: "Schema", - name: "keySchema", - type: "bytes32", - }, - { - internalType: "Schema", - name: "valueSchema", - type: "bytes32", - }, - { - internalType: "string[]", - name: "keyNames", - type: "string[]", - }, - { - internalType: "string[]", - name: "fieldNames", - type: "string[]", - }, - ], - name: "registerTable", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "address", - name: "grantee", - type: "address", - }, - ], - name: "revokeAccess", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint32[]", - name: "list", - type: "uint32[]", - }, - ], - name: "set", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "setField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "setRecord", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "arg", - type: "uint256", - }, - ], - name: "stub", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes16", - name: "namespace", - type: "bytes16", - }, - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "uint256", - name: "startByteIndex", - type: "uint256", - }, - { - internalType: "bytes", - name: "dataToSet", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "updateInField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IWorld__factory { - static readonly abi = _abi; - static createInterface(): IWorldInterface { - return new utils.Interface(_abi) as IWorldInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IWorld { - return new Contract(address, _abi, signerOrProvider) as IWorld; - } -} diff --git a/examples/minimal/packages/contracts/types/ethers-contracts/IWorld.ts b/examples/minimal/packages/contracts/types/ethers-contracts/IWorld.ts deleted file mode 100644 index 46b302ac0d..0000000000 --- a/examples/minimal/packages/contracts/types/ethers-contracts/IWorld.ts +++ /dev/null @@ -1,1846 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "./common"; - -export type BytesStructStruct = { value: PromiseOrValue }; - -export type BytesStructStructOutput = [string] & { value: string }; - -export type StringStructStruct = { value: PromiseOrValue }; - -export type StringStructStructOutput = [string] & { value: string }; - -export interface IWorldInterface extends utils.Interface { - functions: { - "call(bytes32,bytes)": FunctionFragment; - "callFrom(address,bytes32,bytes)": FunctionFragment; - "deleteRecord(bytes32,bytes32[],bytes32)": FunctionFragment; - "dynamicArrayBytesStruct((bytes)[])": FunctionFragment; - "dynamicArrayStringStruct((string)[])": FunctionFragment; - "emitEphemeralRecord(bytes32,bytes32[],bytes,bytes32)": FunctionFragment; - "getField(bytes32,bytes32[],uint8,bytes32)": FunctionFragment; - "getFieldLayout(bytes32)": FunctionFragment; - "getFieldLength(bytes32,bytes32[],uint8,bytes32)": FunctionFragment; - "getFieldSlice(bytes32,bytes32[],uint8,bytes32,uint256,uint256)": FunctionFragment; - "getKeySchema(bytes32)": FunctionFragment; - "getRecord(bytes32,bytes32[],bytes32)": FunctionFragment; - "getValueSchema(bytes32)": FunctionFragment; - "grantAccess(bytes32,address)": FunctionFragment; - "increment()": FunctionFragment; - "installModule(address,bytes)": FunctionFragment; - "installRootModule(address,bytes)": FunctionFragment; - "pickUp(uint32,uint32)": FunctionFragment; - "popFromField(bytes32,bytes32[],uint8,uint256,bytes32)": FunctionFragment; - "pushToField(bytes32,bytes32[],uint8,bytes,bytes32)": FunctionFragment; - "registerDelegation(address,bytes32,bytes)": FunctionFragment; - "registerFunctionSelector(bytes32,string,string)": FunctionFragment; - "registerNamespace(bytes16)": FunctionFragment; - "registerRootFunctionSelector(bytes32,bytes4,bytes4)": FunctionFragment; - "registerStoreHook(bytes32,address)": FunctionFragment; - "registerSystem(bytes32,address,bool)": FunctionFragment; - "registerSystemHook(bytes32,address)": FunctionFragment; - "registerTable(bytes32,bytes32,bytes32,bytes32,string[],string[])": FunctionFragment; - "revokeAccess(bytes32,address)": FunctionFragment; - "sendMessage(string)": FunctionFragment; - "setField(bytes32,bytes32[],uint8,bytes,bytes32)": FunctionFragment; - "setRecord(bytes32,bytes32[],bytes,bytes32)": FunctionFragment; - "staticArrayBytesStruct(tuple[1])": FunctionFragment; - "staticArrayStringStruct(tuple[1])": FunctionFragment; - "transferOwnership(bytes16,address)": FunctionFragment; - "updateInField(bytes32,bytes32[],uint8,uint256,bytes,bytes32)": FunctionFragment; - "willRevert()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "call" - | "callFrom" - | "deleteRecord" - | "dynamicArrayBytesStruct" - | "dynamicArrayStringStruct" - | "emitEphemeralRecord" - | "getField" - | "getFieldLayout" - | "getFieldLength" - | "getFieldSlice" - | "getKeySchema" - | "getRecord" - | "getValueSchema" - | "grantAccess" - | "increment" - | "installModule" - | "installRootModule" - | "pickUp" - | "popFromField" - | "pushToField" - | "registerDelegation" - | "registerFunctionSelector" - | "registerNamespace" - | "registerRootFunctionSelector" - | "registerStoreHook" - | "registerSystem" - | "registerSystemHook" - | "registerTable" - | "revokeAccess" - | "sendMessage" - | "setField" - | "setRecord" - | "staticArrayBytesStruct" - | "staticArrayStringStruct" - | "transferOwnership" - | "updateInField" - | "willRevert" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "call", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "callFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "deleteRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "dynamicArrayBytesStruct", - values: [BytesStructStruct[]] - ): string; - encodeFunctionData( - functionFragment: "dynamicArrayStringStruct", - values: [StringStructStruct[]] - ): string; - encodeFunctionData( - functionFragment: "emitEphemeralRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getFieldLayout", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getFieldLength", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getFieldSlice", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getKeySchema", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getValueSchema", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantAccess", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "increment", values?: undefined): string; - encodeFunctionData( - functionFragment: "installModule", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "installRootModule", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "pickUp", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "popFromField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "pushToField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerDelegation", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerFunctionSelector", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerNamespace", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "registerRootFunctionSelector", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerStoreHook", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "registerSystem", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "registerSystemHook", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "registerTable", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[] - ] - ): string; - encodeFunctionData( - functionFragment: "revokeAccess", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "sendMessage", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "setRecord", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "staticArrayBytesStruct", - values: [[BytesStructStruct]] - ): string; - encodeFunctionData( - functionFragment: "staticArrayStringStruct", - values: [[StringStructStruct]] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateInField", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "willRevert", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "call", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "callFrom", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "deleteRecord", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "dynamicArrayBytesStruct", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "dynamicArrayStringStruct", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "emitEphemeralRecord", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getField", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getFieldLayout", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFieldLength", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getFieldSlice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getKeySchema", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getRecord", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getValueSchema", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "grantAccess", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "increment", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "installModule", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "installRootModule", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "pickUp", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "popFromField", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "pushToField", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerDelegation", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerFunctionSelector", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerNamespace", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerRootFunctionSelector", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerStoreHook", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerSystem", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerSystemHook", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "registerTable", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "revokeAccess", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendMessage", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "setField", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setRecord", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "staticArrayBytesStruct", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "staticArrayStringStruct", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateInField", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "willRevert", data: BytesLike): Result; - - events: { - "HelloWorld()": EventFragment; - "StoreDeleteRecord(bytes32,bytes32[])": EventFragment; - "StoreEphemeralRecord(bytes32,bytes32[],bytes)": EventFragment; - "StoreSetField(bytes32,bytes32[],uint8,bytes)": EventFragment; - "StoreSetRecord(bytes32,bytes32[],bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "HelloWorld"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreDeleteRecord"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreEphemeralRecord"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreSetField"): EventFragment; - getEvent(nameOrSignatureOrTopic: "StoreSetRecord"): EventFragment; -} - -export interface HelloWorldEventObject {} -export type HelloWorldEvent = TypedEvent<[], HelloWorldEventObject>; - -export type HelloWorldEventFilter = TypedEventFilter; - -export interface StoreDeleteRecordEventObject { - table: string; - key: string[]; -} -export type StoreDeleteRecordEvent = TypedEvent< - [string, string[]], - StoreDeleteRecordEventObject ->; - -export type StoreDeleteRecordEventFilter = - TypedEventFilter; - -export interface StoreEphemeralRecordEventObject { - table: string; - key: string[]; - data: string; -} -export type StoreEphemeralRecordEvent = TypedEvent< - [string, string[], string], - StoreEphemeralRecordEventObject ->; - -export type StoreEphemeralRecordEventFilter = - TypedEventFilter; - -export interface StoreSetFieldEventObject { - table: string; - key: string[]; - schemaIndex: number; - data: string; -} -export type StoreSetFieldEvent = TypedEvent< - [string, string[], number, string], - StoreSetFieldEventObject ->; - -export type StoreSetFieldEventFilter = TypedEventFilter; - -export interface StoreSetRecordEventObject { - table: string; - key: string[]; - data: string; -} -export type StoreSetRecordEvent = TypedEvent< - [string, string[], string], - StoreSetRecordEventObject ->; - -export type StoreSetRecordEventFilter = TypedEventFilter; - -export interface IWorld extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IWorldInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayBytesStruct( - arg0: BytesStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayStringStruct( - arg0: StringStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { data: string }>; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { fieldLayout: string }>; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { data: string }>; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { schema: string }>; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { data: string }>; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { schema: string }>; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increment( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pickUp( - item: PromiseOrValue, - itemVariant: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - sendMessage( - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayBytesStruct( - arg0: [BytesStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayStringStruct( - arg0: [StringStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - willRevert( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayBytesStruct( - arg0: BytesStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayStringStruct( - arg0: StringStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increment( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pickUp( - item: PromiseOrValue, - itemVariant: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - sendMessage( - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayBytesStruct( - arg0: [BytesStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayStringStruct( - arg0: [StringStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - willRevert( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - dynamicArrayBytesStruct( - arg0: BytesStructStruct[], - overrides?: CallOverrides - ): Promise; - - dynamicArrayStringStruct( - arg0: StringStructStruct[], - overrides?: CallOverrides - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - increment(overrides?: CallOverrides): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pickUp( - item: PromiseOrValue, - itemVariant: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - sendMessage( - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - staticArrayBytesStruct( - arg0: [BytesStructStruct], - overrides?: CallOverrides - ): Promise; - - staticArrayStringStruct( - arg0: [StringStructStruct], - overrides?: CallOverrides - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - willRevert(overrides?: CallOverrides): Promise; - }; - - filters: { - "HelloWorld()"(): HelloWorldEventFilter; - HelloWorld(): HelloWorldEventFilter; - - "StoreDeleteRecord(bytes32,bytes32[])"( - table?: null, - key?: null - ): StoreDeleteRecordEventFilter; - StoreDeleteRecord(table?: null, key?: null): StoreDeleteRecordEventFilter; - - "StoreEphemeralRecord(bytes32,bytes32[],bytes)"( - table?: null, - key?: null, - data?: null - ): StoreEphemeralRecordEventFilter; - StoreEphemeralRecord( - table?: null, - key?: null, - data?: null - ): StoreEphemeralRecordEventFilter; - - "StoreSetField(bytes32,bytes32[],uint8,bytes)"( - table?: null, - key?: null, - schemaIndex?: null, - data?: null - ): StoreSetFieldEventFilter; - StoreSetField( - table?: null, - key?: null, - schemaIndex?: null, - data?: null - ): StoreSetFieldEventFilter; - - "StoreSetRecord(bytes32,bytes32[],bytes)"( - table?: null, - key?: null, - data?: null - ): StoreSetRecordEventFilter; - StoreSetRecord( - table?: null, - key?: null, - data?: null - ): StoreSetRecordEventFilter; - }; - - estimateGas: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayBytesStruct( - arg0: BytesStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayStringStruct( - arg0: StringStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increment( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pickUp( - item: PromiseOrValue, - itemVariant: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - sendMessage( - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayBytesStruct( - arg0: [BytesStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayStringStruct( - arg0: [StringStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - willRevert( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - call( - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callFrom( - delegator: PromiseOrValue, - resourceSelector: PromiseOrValue, - funcSelectorAndArgs: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - deleteRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayBytesStruct( - arg0: BytesStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - dynamicArrayStringStruct( - arg0: StringStructStruct[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - emitEphemeralRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLayout( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldLength( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getFieldSlice( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - fieldLayout: PromiseOrValue, - start: PromiseOrValue, - end: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getKeySchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - fieldLayout: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getValueSchema( - table: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increment( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - installRootModule( - module: PromiseOrValue, - args: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pickUp( - item: PromiseOrValue, - itemVariant: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - popFromField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - byteLengthToPop: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pushToField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - dataToPush: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerDelegation( - delegatee: PromiseOrValue, - delegationControlId: PromiseOrValue, - initFuncSelectorAndArgs: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerFunctionSelector( - resourceSelector: PromiseOrValue, - systemFunctionName: PromiseOrValue, - systemFunctionArguments: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerNamespace( - namespace: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerRootFunctionSelector( - resourceSelector: PromiseOrValue, - worldFunctionSelector: PromiseOrValue, - systemFunctionSelector: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerStoreHook( - table: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystem( - resourceSelector: PromiseOrValue, - system: PromiseOrValue, - publicAccess: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerSystemHook( - resourceSelector: PromiseOrValue, - hook: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - registerTable( - table: PromiseOrValue, - fieldLayout: PromiseOrValue, - keySchema: PromiseOrValue, - valueSchema: PromiseOrValue, - keyNames: PromiseOrValue[], - fieldNames: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeAccess( - resourceSelector: PromiseOrValue, - grantee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - sendMessage( - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setRecord( - table: PromiseOrValue, - key: PromiseOrValue[], - data: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayBytesStruct( - arg0: [BytesStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - staticArrayStringStruct( - arg0: [StringStructStruct], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - namespace: PromiseOrValue, - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateInField( - table: PromiseOrValue, - key: PromiseOrValue[], - schemaIndex: PromiseOrValue, - startByteIndex: PromiseOrValue, - dataToSet: PromiseOrValue, - fieldLayout: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - willRevert( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/examples/minimal/packages/contracts/types/ethers-contracts/factories/IWorld__factory.ts b/examples/minimal/packages/contracts/types/ethers-contracts/factories/IWorld__factory.ts deleted file mode 100644 index daaf23a05a..0000000000 --- a/examples/minimal/packages/contracts/types/ethers-contracts/factories/IWorld__factory.ts +++ /dev/null @@ -1,1241 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { IWorld, IWorldInterface } from "../IWorld"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "resource", - type: "string", - }, - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "AccessDenied", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "delegator", - type: "address", - }, - { - internalType: "address", - name: "delegatee", - type: "address", - }, - ], - name: "DelegationNotFound", - 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: [], - name: "MyCustomError", - 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_InvalidKeyNamesLength", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "expected", - type: "uint256", - }, - { - internalType: "uint256", - name: "received", - type: "uint256", - }, - ], - name: "StoreCore_InvalidValueNamesLength", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "expected", - type: "uint256", - }, - { - internalType: "uint256", - name: "received", - type: "uint256", - }, - ], - name: "StoreCore_InvalidValueSchemaLength", - 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: "bytes", - name: "funcSelectorAndArgs", - type: "bytes", - }, - ], - name: "call", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "delegator", - type: "address", - }, - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "bytes", - name: "funcSelectorAndArgs", - type: "bytes", - }, - ], - name: "callFrom", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "deleteRecord", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "value", - type: "bytes", - }, - ], - internalType: "struct BytesStruct[]", - name: "", - type: "tuple[]", - }, - ], - name: "dynamicArrayBytesStruct", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "string", - name: "value", - type: "string", - }, - ], - internalType: "struct StringStruct[]", - name: "", - type: "tuple[]", - }, - ], - name: "dynamicArrayStringStruct", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "emitEphemeralRecord", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "getField", - outputs: [ - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - ], - name: "getFieldLayout", - outputs: [ - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "getFieldLength", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - { - internalType: "uint256", - name: "start", - type: "uint256", - }, - { - internalType: "uint256", - name: "end", - type: "uint256", - }, - ], - name: "getFieldSlice", - outputs: [ - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - ], - name: "getKeySchema", - outputs: [ - { - internalType: "Schema", - name: "schema", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "getRecord", - outputs: [ - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - ], - name: "getValueSchema", - outputs: [ - { - internalType: "Schema", - name: "schema", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "address", - name: "grantee", - type: "address", - }, - ], - name: "grantAccess", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "increment", - outputs: [ - { - internalType: "uint32", - name: "", - type: "uint32", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IModule", - name: "module", - type: "address", - }, - { - internalType: "bytes", - name: "args", - type: "bytes", - }, - ], - name: "installModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IModule", - name: "module", - type: "address", - }, - { - internalType: "bytes", - name: "args", - type: "bytes", - }, - ], - name: "installRootModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint32", - name: "item", - type: "uint32", - }, - { - internalType: "uint32", - name: "itemVariant", - type: "uint32", - }, - ], - name: "pickUp", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "uint256", - name: "byteLengthToPop", - type: "uint256", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "popFromField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "bytes", - name: "dataToPush", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "pushToField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "delegatee", - type: "address", - }, - { - internalType: "bytes32", - name: "delegationControlId", - type: "bytes32", - }, - { - internalType: "bytes", - name: "initFuncSelectorAndArgs", - type: "bytes", - }, - ], - name: "registerDelegation", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "string", - name: "systemFunctionName", - type: "string", - }, - { - internalType: "string", - name: "systemFunctionArguments", - type: "string", - }, - ], - name: "registerFunctionSelector", - outputs: [ - { - internalType: "bytes4", - name: "worldFunctionSelector", - type: "bytes4", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes16", - name: "namespace", - type: "bytes16", - }, - ], - name: "registerNamespace", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "bytes4", - name: "worldFunctionSelector", - type: "bytes4", - }, - { - internalType: "bytes4", - name: "systemFunctionSelector", - type: "bytes4", - }, - ], - name: "registerRootFunctionSelector", - outputs: [ - { - internalType: "bytes4", - name: "", - type: "bytes4", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "contract IStoreHook", - name: "hook", - type: "address", - }, - ], - name: "registerStoreHook", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "contract WorldContextConsumer", - name: "system", - type: "address", - }, - { - internalType: "bool", - name: "publicAccess", - type: "bool", - }, - ], - name: "registerSystem", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "contract ISystemHook", - name: "hook", - type: "address", - }, - ], - name: "registerSystemHook", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - { - internalType: "Schema", - name: "keySchema", - type: "bytes32", - }, - { - internalType: "Schema", - name: "valueSchema", - type: "bytes32", - }, - { - internalType: "string[]", - name: "keyNames", - type: "string[]", - }, - { - internalType: "string[]", - name: "fieldNames", - type: "string[]", - }, - ], - name: "registerTable", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "resourceSelector", - type: "bytes32", - }, - { - internalType: "address", - name: "grantee", - type: "address", - }, - ], - name: "revokeAccess", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "message", - type: "string", - }, - ], - name: "sendMessage", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "setField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "setRecord", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "value", - type: "bytes", - }, - ], - internalType: "struct BytesStruct[1]", - name: "", - type: "tuple[1]", - }, - ], - name: "staticArrayBytesStruct", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "string", - name: "value", - type: "string", - }, - ], - internalType: "struct StringStruct[1]", - name: "", - type: "tuple[1]", - }, - ], - name: "staticArrayStringStruct", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes16", - name: "namespace", - type: "bytes16", - }, - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "table", - type: "bytes32", - }, - { - internalType: "bytes32[]", - name: "key", - type: "bytes32[]", - }, - { - internalType: "uint8", - name: "schemaIndex", - type: "uint8", - }, - { - internalType: "uint256", - name: "startByteIndex", - type: "uint256", - }, - { - internalType: "bytes", - name: "dataToSet", - type: "bytes", - }, - { - internalType: "FieldLayout", - name: "fieldLayout", - type: "bytes32", - }, - ], - name: "updateInField", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "willRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IWorld__factory { - static readonly abi = _abi; - static createInterface(): IWorldInterface { - return new utils.Interface(_abi) as IWorldInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IWorld { - return new Contract(address, _abi, signerOrProvider) as IWorld; - } -} diff --git a/packages/gas-report/.gitignore b/packages/gas-report/.gitignore index 574cef0484..bf0021740b 100644 --- a/packages/gas-report/.gitignore +++ b/packages/gas-report/.gitignore @@ -8,4 +8,3 @@ artifacts yarn-error.log API dist -types/ethers-contracts diff --git a/packages/gas-report/.npmignore b/packages/gas-report/.npmignore index 523900e14e..5fb5c6be63 100644 --- a/packages/gas-report/.npmignore +++ b/packages/gas-report/.npmignore @@ -3,7 +3,6 @@ !abi/** !src/** !ts/** -!types/** !package.json !README.md !dist/** diff --git a/packages/noise/.gitignore b/packages/noise/.gitignore index 96b82c2ae2..c58060e790 100644 --- a/packages/noise/.gitignore +++ b/packages/noise/.gitignore @@ -2,8 +2,6 @@ node_modules .env coverage coverage.json -typechain -typechain-types #Hardhat files cache @@ -14,8 +12,6 @@ node_modules .env coverage coverage.json -typechain -typechain-types #Hardhat files cache diff --git a/packages/schema-type/.gitignore b/packages/schema-type/.gitignore index ce39ef13b1..c87210dba7 100644 --- a/packages/schema-type/.gitignore +++ b/packages/schema-type/.gitignore @@ -2,7 +2,6 @@ cache abi out dist -types/ethers-contracts docs _docs DOCS.md diff --git a/packages/store/.gitignore b/packages/store/.gitignore index 9275a56b74..dff3cffa0f 100644 --- a/packages/store/.gitignore +++ b/packages/store/.gitignore @@ -7,7 +7,6 @@ artifacts yarn-error.log API dist -types/ethers-contracts # only check in ABIs abi/**/*.json diff --git a/packages/world/.gitignore b/packages/world/.gitignore index 9275a56b74..dff3cffa0f 100644 --- a/packages/world/.gitignore +++ b/packages/world/.gitignore @@ -7,7 +7,6 @@ artifacts yarn-error.log API dist -types/ethers-contracts # only check in ABIs abi/**/*.json diff --git a/templates/phaser/packages/contracts/.gitignore b/templates/phaser/packages/contracts/.gitignore index c8899d2c17..6fed1b991b 100644 --- a/templates/phaser/packages/contracts/.gitignore +++ b/templates/phaser/packages/contracts/.gitignore @@ -4,7 +4,6 @@ node_modules/ bindings/ artifacts/ abi/ -types/ broadcast/ # Ignore MUD deploy artifacts diff --git a/templates/react/packages/contracts/.gitignore b/templates/react/packages/contracts/.gitignore index c8899d2c17..6fed1b991b 100644 --- a/templates/react/packages/contracts/.gitignore +++ b/templates/react/packages/contracts/.gitignore @@ -4,7 +4,6 @@ node_modules/ bindings/ artifacts/ abi/ -types/ broadcast/ # Ignore MUD deploy artifacts diff --git a/templates/threejs/packages/contracts/.gitignore b/templates/threejs/packages/contracts/.gitignore index c8899d2c17..6fed1b991b 100644 --- a/templates/threejs/packages/contracts/.gitignore +++ b/templates/threejs/packages/contracts/.gitignore @@ -4,7 +4,6 @@ node_modules/ bindings/ artifacts/ abi/ -types/ broadcast/ # Ignore MUD deploy artifacts diff --git a/templates/vanilla/packages/contracts/.gitignore b/templates/vanilla/packages/contracts/.gitignore index c8899d2c17..6fed1b991b 100644 --- a/templates/vanilla/packages/contracts/.gitignore +++ b/templates/vanilla/packages/contracts/.gitignore @@ -4,7 +4,6 @@ node_modules/ bindings/ artifacts/ abi/ -types/ broadcast/ # Ignore MUD deploy artifacts diff --git a/turbo.json b/turbo.json index e9e39944e1..56fc8441e1 100644 --- a/turbo.json +++ b/turbo.json @@ -6,7 +6,6 @@ "outputs": [ "dist/**", "abi/**", - "types/**", "build/**", "bin/**", "protoc/**",