/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../../../common"; export type TablelandPolicyStruct = { allowInsert: boolean; allowUpdate: boolean; allowDelete: boolean; whereClause: string; withCheck: string; updatableColumns: string[]; }; export type TablelandPolicyStructOutput = [ allowInsert: boolean, allowUpdate: boolean, allowDelete: boolean, whereClause: string, withCheck: string, updatableColumns: string[] ] & { allowInsert: boolean; allowUpdate: boolean; allowDelete: boolean; whereClause: string; withCheck: string; updatableColumns: string[]; }; export declare namespace ITablelandTables { export type StatementStruct = { tableId: BigNumberish; statement: string }; export type StatementStructOutput = [tableId: bigint, statement: string] & { tableId: bigint; statement: string; }; } export interface TablelandTablesImplInterface extends Interface { getFunction( nameOrSignature: | "approve" | "balanceOf" | "create(address,string[])" | "create(address,string)" | "getApproved" | "getController" | "isApprovedForAll" | "lockController" | "mutate(address,uint256,string)" | "mutate(address,(uint256,string)[])" | "name" | "ownerOf" | "pause" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "setBaseURI" | "setController" | "supportsInterface" | "symbol" | "tokenURI" | "totalSupply" | "transferFrom" | "unpause" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "Approval" | "ApprovalForAll" | "ConsecutiveTransfer" | "CreateTable" | "RunSQL" | "SetController" | "Transfer" | "TransferTable" ): EventFragment; encodeFunctionData( functionFragment: "approve", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOf", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "create(address,string[])", values: [AddressLike, string[]] ): string; encodeFunctionData( functionFragment: "create(address,string)", values: [AddressLike, string] ): string; encodeFunctionData( functionFragment: "getApproved", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getController", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "lockController", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "mutate(address,uint256,string)", values: [AddressLike, BigNumberish, string] ): string; encodeFunctionData( functionFragment: "mutate(address,(uint256,string)[])", values: [AddressLike, ITablelandTables.StatementStruct[]] ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData( functionFragment: "ownerOf", values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "pause", values?: undefined): string; encodeFunctionData( functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "setApprovalForAll", values: [AddressLike, boolean] ): string; encodeFunctionData(functionFragment: "setBaseURI", values: [string]): string; encodeFunctionData( functionFragment: "setController", values: [AddressLike, BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData( functionFragment: "tokenURI", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "totalSupply", values?: undefined ): string; encodeFunctionData( functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData(functionFragment: "unpause", values?: undefined): string; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "create(address,string[])", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "create(address,string)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getApproved", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getController", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isApprovedForAll", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "lockController", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "mutate(address,uint256,string)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "mutate(address,(uint256,string)[])", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; decodeFunctionResult( functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setApprovalForAll", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "setBaseURI", data: BytesLike): Result; decodeFunctionResult( functionFragment: "setController", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalSupply", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; } export namespace ApprovalEvent { export type InputTuple = [ owner: AddressLike, approved: AddressLike, tokenId: BigNumberish ]; export type OutputTuple = [owner: string, approved: string, tokenId: bigint]; export interface OutputObject { owner: string; approved: string; tokenId: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace ApprovalForAllEvent { export type InputTuple = [ owner: AddressLike, operator: AddressLike, approved: boolean ]; export type OutputTuple = [ owner: string, operator: string, approved: boolean ]; export interface OutputObject { owner: string; operator: string; approved: boolean; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace ConsecutiveTransferEvent { export type InputTuple = [ fromTokenId: BigNumberish, toTokenId: BigNumberish, from: AddressLike, to: AddressLike ]; export type OutputTuple = [ fromTokenId: bigint, toTokenId: bigint, from: string, to: string ]; export interface OutputObject { fromTokenId: bigint; toTokenId: bigint; from: string; to: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace CreateTableEvent { export type InputTuple = [ owner: AddressLike, tableId: BigNumberish, statement: string ]; export type OutputTuple = [owner: string, tableId: bigint, statement: string]; export interface OutputObject { owner: string; tableId: bigint; statement: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RunSQLEvent { export type InputTuple = [ caller: AddressLike, isOwner: boolean, tableId: BigNumberish, statement: string, policy: TablelandPolicyStruct ]; export type OutputTuple = [ caller: string, isOwner: boolean, tableId: bigint, statement: string, policy: TablelandPolicyStructOutput ]; export interface OutputObject { caller: string; isOwner: boolean; tableId: bigint; statement: string; policy: TablelandPolicyStructOutput; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SetControllerEvent { export type InputTuple = [tableId: BigNumberish, controller: AddressLike]; export type OutputTuple = [tableId: bigint, controller: string]; export interface OutputObject { tableId: bigint; controller: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace TransferEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, tokenId: BigNumberish ]; export type OutputTuple = [from: string, to: string, tokenId: bigint]; export interface OutputObject { from: string; to: string; tokenId: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace TransferTableEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, tableId: BigNumberish ]; export type OutputTuple = [from: string, to: string, tableId: bigint]; export interface OutputObject { from: string; to: string; tableId: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface TablelandTablesImpl extends BaseContract { connect(runner?: ContractRunner | null): TablelandTablesImpl; waitForDeployment(): Promise; interface: TablelandTablesImplInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; once( event: TCEvent, listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; listeners( event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent ): Promise; approve: TypedContractMethod< [to: AddressLike, tokenId: BigNumberish], [void], "payable" >; balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">; "create(address,string[])": TypedContractMethod< [owner: AddressLike, statements: string[]], [bigint[]], "payable" >; "create(address,string)": TypedContractMethod< [owner: AddressLike, statement: string], [bigint], "payable" >; getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getController: TypedContractMethod< [tableId: BigNumberish], [string], "nonpayable" >; isApprovedForAll: TypedContractMethod< [owner: AddressLike, operator: AddressLike], [boolean], "view" >; lockController: TypedContractMethod< [caller: AddressLike, tableId: BigNumberish], [void], "nonpayable" >; "mutate(address,uint256,string)": TypedContractMethod< [caller: AddressLike, tableId: BigNumberish, statement: string], [void], "payable" >; "mutate(address,(uint256,string)[])": TypedContractMethod< [caller: AddressLike, statements: ITablelandTables.StatementStruct[]], [void], "payable" >; name: TypedContractMethod<[], [string], "view">; ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; pause: TypedContractMethod<[], [void], "nonpayable">; "safeTransferFrom(address,address,uint256)": TypedContractMethod< [from: AddressLike, to: AddressLike, tokenId: BigNumberish], [void], "payable" >; "safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod< [ from: AddressLike, to: AddressLike, tokenId: BigNumberish, data: BytesLike ], [void], "payable" >; setApprovalForAll: TypedContractMethod< [operator: AddressLike, _approved: boolean], [void], "nonpayable" >; setBaseURI: TypedContractMethod<[baseURI: string], [void], "nonpayable">; setController: TypedContractMethod< [caller: AddressLike, tableId: BigNumberish, controller: AddressLike], [void], "nonpayable" >; supportsInterface: TypedContractMethod< [interfaceId: BytesLike], [boolean], "view" >; symbol: TypedContractMethod<[], [string], "view">; tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transferFrom: TypedContractMethod< [from: AddressLike, to: AddressLike, tokenId: BigNumberish], [void], "payable" >; unpause: TypedContractMethod<[], [void], "nonpayable">; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "approve" ): TypedContractMethod< [to: AddressLike, tokenId: BigNumberish], [void], "payable" >; getFunction( nameOrSignature: "balanceOf" ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "create(address,string[])" ): TypedContractMethod< [owner: AddressLike, statements: string[]], [bigint[]], "payable" >; getFunction( nameOrSignature: "create(address,string)" ): TypedContractMethod< [owner: AddressLike, statement: string], [bigint], "payable" >; getFunction( nameOrSignature: "getApproved" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( nameOrSignature: "getController" ): TypedContractMethod<[tableId: BigNumberish], [string], "nonpayable">; getFunction( nameOrSignature: "isApprovedForAll" ): TypedContractMethod< [owner: AddressLike, operator: AddressLike], [boolean], "view" >; getFunction( nameOrSignature: "lockController" ): TypedContractMethod< [caller: AddressLike, tableId: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "mutate(address,uint256,string)" ): TypedContractMethod< [caller: AddressLike, tableId: BigNumberish, statement: string], [void], "payable" >; getFunction( nameOrSignature: "mutate(address,(uint256,string)[])" ): TypedContractMethod< [caller: AddressLike, statements: ITablelandTables.StatementStruct[]], [void], "payable" >; getFunction( nameOrSignature: "name" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "ownerOf" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( nameOrSignature: "pause" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "safeTransferFrom(address,address,uint256)" ): TypedContractMethod< [from: AddressLike, to: AddressLike, tokenId: BigNumberish], [void], "payable" >; getFunction( nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)" ): TypedContractMethod< [ from: AddressLike, to: AddressLike, tokenId: BigNumberish, data: BytesLike ], [void], "payable" >; getFunction( nameOrSignature: "setApprovalForAll" ): TypedContractMethod< [operator: AddressLike, _approved: boolean], [void], "nonpayable" >; getFunction( nameOrSignature: "setBaseURI" ): TypedContractMethod<[baseURI: string], [void], "nonpayable">; getFunction( nameOrSignature: "setController" ): TypedContractMethod< [caller: AddressLike, tableId: BigNumberish, controller: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "supportsInterface" ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "symbol" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "tokenURI" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( nameOrSignature: "totalSupply" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transferFrom" ): TypedContractMethod< [from: AddressLike, to: AddressLike, tokenId: BigNumberish], [void], "payable" >; getFunction( nameOrSignature: "unpause" ): TypedContractMethod<[], [void], "nonpayable">; getEvent( key: "Approval" ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; getEvent( key: "ApprovalForAll" ): TypedContractEvent< ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject >; getEvent( key: "ConsecutiveTransfer" ): TypedContractEvent< ConsecutiveTransferEvent.InputTuple, ConsecutiveTransferEvent.OutputTuple, ConsecutiveTransferEvent.OutputObject >; getEvent( key: "CreateTable" ): TypedContractEvent< CreateTableEvent.InputTuple, CreateTableEvent.OutputTuple, CreateTableEvent.OutputObject >; getEvent( key: "RunSQL" ): TypedContractEvent< RunSQLEvent.InputTuple, RunSQLEvent.OutputTuple, RunSQLEvent.OutputObject >; getEvent( key: "SetController" ): TypedContractEvent< SetControllerEvent.InputTuple, SetControllerEvent.OutputTuple, SetControllerEvent.OutputObject >; getEvent( key: "Transfer" ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; getEvent( key: "TransferTable" ): TypedContractEvent< TransferTableEvent.InputTuple, TransferTableEvent.OutputTuple, TransferTableEvent.OutputObject >; filters: { "Approval(address,address,uint256)": TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; Approval: TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; "ApprovalForAll(address,address,bool)": TypedContractEvent< ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject >; ApprovalForAll: TypedContractEvent< ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject >; "ConsecutiveTransfer(uint256,uint256,address,address)": TypedContractEvent< ConsecutiveTransferEvent.InputTuple, ConsecutiveTransferEvent.OutputTuple, ConsecutiveTransferEvent.OutputObject >; ConsecutiveTransfer: TypedContractEvent< ConsecutiveTransferEvent.InputTuple, ConsecutiveTransferEvent.OutputTuple, ConsecutiveTransferEvent.OutputObject >; "CreateTable(address,uint256,string)": TypedContractEvent< CreateTableEvent.InputTuple, CreateTableEvent.OutputTuple, CreateTableEvent.OutputObject >; CreateTable: TypedContractEvent< CreateTableEvent.InputTuple, CreateTableEvent.OutputTuple, CreateTableEvent.OutputObject >; "RunSQL(address,bool,uint256,string,tuple)": TypedContractEvent< RunSQLEvent.InputTuple, RunSQLEvent.OutputTuple, RunSQLEvent.OutputObject >; RunSQL: TypedContractEvent< RunSQLEvent.InputTuple, RunSQLEvent.OutputTuple, RunSQLEvent.OutputObject >; "SetController(uint256,address)": TypedContractEvent< SetControllerEvent.InputTuple, SetControllerEvent.OutputTuple, SetControllerEvent.OutputObject >; SetController: TypedContractEvent< SetControllerEvent.InputTuple, SetControllerEvent.OutputTuple, SetControllerEvent.OutputObject >; "Transfer(address,address,uint256)": TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; Transfer: TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; "TransferTable(address,address,uint256)": TypedContractEvent< TransferTableEvent.InputTuple, TransferTableEvent.OutputTuple, TransferTableEvent.OutputObject >; TransferTable: TypedContractEvent< TransferTableEvent.InputTuple, TransferTableEvent.OutputTuple, TransferTableEvent.OutputObject >; }; }