/* 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 PropertyStruct = { key: string; value: BytesLike }; export type PropertyStructOutput = [key: string, value: string] & { key: string; value: string; }; export type PropertyPermissionStruct = { code: BigNumberish; value: boolean }; export type PropertyPermissionStructOutput = [code: bigint, value: boolean] & { code: bigint; value: boolean; }; export type TokenPropertyPermissionStruct = { key: string; permissions: PropertyPermissionStruct[]; }; export type TokenPropertyPermissionStructOutput = [ key: string, permissions: PropertyPermissionStructOutput[] ] & { key: string; permissions: PropertyPermissionStructOutput[] }; export type CrossAddressStruct = { eth: AddressLike; sub: BigNumberish }; export type CrossAddressStructOutput = [eth: string, sub: bigint] & { eth: string; sub: bigint; }; export type CollectionNestingAndPermissionStruct = { token_owner: boolean; collection_admin: boolean; restricted: AddressLike[]; }; export type CollectionNestingAndPermissionStructOutput = [ token_owner: boolean, collection_admin: boolean, restricted: string[] ] & { token_owner: boolean; collection_admin: boolean; restricted: string[] }; export type CollectionLimitValueStruct = { field: BigNumberish; value: BigNumberish; }; export type CollectionLimitValueStructOutput = [ field: bigint, value: bigint ] & { field: bigint; value: bigint }; export type CreateCollectionDataStruct = { name: string; description: string; token_prefix: string; mode: BigNumberish; decimals: BigNumberish; properties: PropertyStruct[]; token_property_permissions: TokenPropertyPermissionStruct[]; admin_list: CrossAddressStruct[]; nesting_settings: CollectionNestingAndPermissionStruct; limits: CollectionLimitValueStruct[]; pending_sponsor: CrossAddressStruct; flags: BigNumberish; }; export type CreateCollectionDataStructOutput = [ name: string, description: string, token_prefix: string, mode: bigint, decimals: bigint, properties: PropertyStructOutput[], token_property_permissions: TokenPropertyPermissionStructOutput[], admin_list: CrossAddressStructOutput[], nesting_settings: CollectionNestingAndPermissionStructOutput, limits: CollectionLimitValueStructOutput[], pending_sponsor: CrossAddressStructOutput, flags: bigint ] & { name: string; description: string; token_prefix: string; mode: bigint; decimals: bigint; properties: PropertyStructOutput[]; token_property_permissions: TokenPropertyPermissionStructOutput[]; admin_list: CrossAddressStructOutput[]; nesting_settings: CollectionNestingAndPermissionStructOutput; limits: CollectionLimitValueStructOutput[]; pending_sponsor: CrossAddressStructOutput; flags: bigint; }; export interface CollectionHelpersInterface extends Interface { getFunction( nameOrSignature: | "collectionAddress" | "collectionCreationFee" | "collectionId" | "createCollection" | "createFTCollection" | "createNFTCollection" | "createRFTCollection" | "destroyCollection" | "isCollectionExist" | "makeCollectionERC721MetadataCompatible" | "supportsInterface" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "CollectionChanged" | "CollectionCreated" | "CollectionDestroyed" ): EventFragment; encodeFunctionData( functionFragment: "collectionAddress", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "collectionCreationFee", values?: undefined ): string; encodeFunctionData( functionFragment: "collectionId", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "createCollection", values: [CreateCollectionDataStruct] ): string; encodeFunctionData( functionFragment: "createFTCollection", values: [string, BigNumberish, string, string] ): string; encodeFunctionData( functionFragment: "createNFTCollection", values: [string, string, string] ): string; encodeFunctionData( functionFragment: "createRFTCollection", values: [string, string, string] ): string; encodeFunctionData( functionFragment: "destroyCollection", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "isCollectionExist", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "makeCollectionERC721MetadataCompatible", values: [AddressLike, string] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; decodeFunctionResult( functionFragment: "collectionAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "collectionCreationFee", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "collectionId", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "createCollection", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "createFTCollection", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "createNFTCollection", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "createRFTCollection", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "destroyCollection", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isCollectionExist", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "makeCollectionERC721MetadataCompatible", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; } export namespace CollectionChangedEvent { export type InputTuple = [collectionId: AddressLike]; export type OutputTuple = [collectionId: string]; export interface OutputObject { collectionId: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace CollectionCreatedEvent { export type InputTuple = [owner: AddressLike, collectionId: AddressLike]; export type OutputTuple = [owner: string, collectionId: string]; export interface OutputObject { owner: string; collectionId: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace CollectionDestroyedEvent { export type InputTuple = [collectionId: AddressLike]; export type OutputTuple = [collectionId: string]; export interface OutputObject { collectionId: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface CollectionHelpers extends BaseContract { connect(runner?: ContractRunner | null): CollectionHelpers; waitForDeployment(): Promise; interface: CollectionHelpersInterface; 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; collectionAddress: TypedContractMethod< [collectionId: BigNumberish], [string], "view" >; collectionCreationFee: TypedContractMethod<[], [bigint], "view">; collectionId: TypedContractMethod< [collectionAddress: AddressLike], [bigint], "view" >; createCollection: TypedContractMethod< [data: CreateCollectionDataStruct], [string], "payable" >; createFTCollection: TypedContractMethod< [ name: string, decimals: BigNumberish, description: string, tokenPrefix: string ], [string], "payable" >; createNFTCollection: TypedContractMethod< [name: string, description: string, tokenPrefix: string], [string], "payable" >; createRFTCollection: TypedContractMethod< [name: string, description: string, tokenPrefix: string], [string], "payable" >; destroyCollection: TypedContractMethod< [collectionAddress: AddressLike], [void], "nonpayable" >; isCollectionExist: TypedContractMethod< [collectionAddress: AddressLike], [boolean], "view" >; makeCollectionERC721MetadataCompatible: TypedContractMethod< [collection: AddressLike, baseUri: string], [void], "nonpayable" >; supportsInterface: TypedContractMethod< [interfaceID: BytesLike], [boolean], "view" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "collectionAddress" ): TypedContractMethod<[collectionId: BigNumberish], [string], "view">; getFunction( nameOrSignature: "collectionCreationFee" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "collectionId" ): TypedContractMethod<[collectionAddress: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "createCollection" ): TypedContractMethod< [data: CreateCollectionDataStruct], [string], "payable" >; getFunction( nameOrSignature: "createFTCollection" ): TypedContractMethod< [ name: string, decimals: BigNumberish, description: string, tokenPrefix: string ], [string], "payable" >; getFunction( nameOrSignature: "createNFTCollection" ): TypedContractMethod< [name: string, description: string, tokenPrefix: string], [string], "payable" >; getFunction( nameOrSignature: "createRFTCollection" ): TypedContractMethod< [name: string, description: string, tokenPrefix: string], [string], "payable" >; getFunction( nameOrSignature: "destroyCollection" ): TypedContractMethod< [collectionAddress: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "isCollectionExist" ): TypedContractMethod<[collectionAddress: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "makeCollectionERC721MetadataCompatible" ): TypedContractMethod< [collection: AddressLike, baseUri: string], [void], "nonpayable" >; getFunction( nameOrSignature: "supportsInterface" ): TypedContractMethod<[interfaceID: BytesLike], [boolean], "view">; getEvent( key: "CollectionChanged" ): TypedContractEvent< CollectionChangedEvent.InputTuple, CollectionChangedEvent.OutputTuple, CollectionChangedEvent.OutputObject >; getEvent( key: "CollectionCreated" ): TypedContractEvent< CollectionCreatedEvent.InputTuple, CollectionCreatedEvent.OutputTuple, CollectionCreatedEvent.OutputObject >; getEvent( key: "CollectionDestroyed" ): TypedContractEvent< CollectionDestroyedEvent.InputTuple, CollectionDestroyedEvent.OutputTuple, CollectionDestroyedEvent.OutputObject >; filters: { "CollectionChanged(address)": TypedContractEvent< CollectionChangedEvent.InputTuple, CollectionChangedEvent.OutputTuple, CollectionChangedEvent.OutputObject >; CollectionChanged: TypedContractEvent< CollectionChangedEvent.InputTuple, CollectionChangedEvent.OutputTuple, CollectionChangedEvent.OutputObject >; "CollectionCreated(address,address)": TypedContractEvent< CollectionCreatedEvent.InputTuple, CollectionCreatedEvent.OutputTuple, CollectionCreatedEvent.OutputObject >; CollectionCreated: TypedContractEvent< CollectionCreatedEvent.InputTuple, CollectionCreatedEvent.OutputTuple, CollectionCreatedEvent.OutputObject >; "CollectionDestroyed(address)": TypedContractEvent< CollectionDestroyedEvent.InputTuple, CollectionDestroyedEvent.OutputTuple, CollectionDestroyedEvent.OutputObject >; CollectionDestroyed: TypedContractEvent< CollectionDestroyedEvent.InputTuple, CollectionDestroyedEvent.OutputTuple, CollectionDestroyedEvent.OutputObject >; }; }