UNPKG

@catalabs/catalyst-sdk

Version:
122 lines 7.24 kB
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 declare namespace CatalystDescriberRegistry { type AddressAndVersionStruct = { addr: AddressLike; version: string; }; type AddressAndVersionStructOutput = [ addr: string, version: string ] & { addr: string; version: string; }; } export interface DescriberRegisitryInterface extends Interface { getFunction(nameOrSignature: 'describer_versions' | 'getVaultDescribers' | 'get_vault_describers' | 'initBlock' | 'modifyDescriber' | 'owner' | 'removeDescriber' | 'renounceOwnership' | 'transferOwnership'): FunctionFragment; getEvent(nameOrSignatureOrTopic: 'ModifyDescriber'): EventFragment; encodeFunctionData(functionFragment: 'describer_versions', values: [BigNumberish]): string; encodeFunctionData(functionFragment: 'getVaultDescribers', values?: undefined): string; encodeFunctionData(functionFragment: 'get_vault_describers', values?: undefined): string; encodeFunctionData(functionFragment: 'initBlock', values?: undefined): string; encodeFunctionData(functionFragment: 'modifyDescriber', values: [AddressLike, string]): string; encodeFunctionData(functionFragment: 'owner', values?: undefined): string; encodeFunctionData(functionFragment: 'removeDescriber', values: [AddressLike, string]): string; encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; encodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string; decodeFunctionResult(functionFragment: 'describer_versions', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'getVaultDescribers', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'get_vault_describers', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'initBlock', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'modifyDescriber', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'removeDescriber', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; } export declare namespace ModifyDescriberEvent { type InputTuple = [catalystDescriber: AddressLike, version: string]; type OutputTuple = [catalystDescriber: string, version: string]; interface OutputObject { catalystDescriber: string; version: string; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export interface DescriberRegisitry extends BaseContract { connect(runner?: ContractRunner | null): DescriberRegisitry; waitForDeployment(): Promise<this>; interface: DescriberRegisitryInterface; queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>; describer_versions: TypedContractMethod<[ arg0: BigNumberish ], [ string ], 'view'>; getVaultDescribers: TypedContractMethod<[ ], [ CatalystDescriberRegistry.AddressAndVersionStructOutput[] ], 'view'>; get_vault_describers: TypedContractMethod<[], [string[]], 'view'>; initBlock: TypedContractMethod<[], [bigint], 'view'>; modifyDescriber: TypedContractMethod<[ describer_address: AddressLike, version: string ], [ void ], 'nonpayable'>; owner: TypedContractMethod<[], [string], 'view'>; removeDescriber: TypedContractMethod<[ describer_to_remove: AddressLike, version: string ], [ void ], 'nonpayable'>; renounceOwnership: TypedContractMethod<[], [void], 'nonpayable'>; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], 'nonpayable'>; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: 'describer_versions'): TypedContractMethod<[arg0: BigNumberish], [string], 'view'>; getFunction(nameOrSignature: 'getVaultDescribers'): TypedContractMethod<[ ], [ CatalystDescriberRegistry.AddressAndVersionStructOutput[] ], 'view'>; getFunction(nameOrSignature: 'get_vault_describers'): TypedContractMethod<[], [string[]], 'view'>; getFunction(nameOrSignature: 'initBlock'): TypedContractMethod<[], [bigint], 'view'>; getFunction(nameOrSignature: 'modifyDescriber'): TypedContractMethod<[ describer_address: AddressLike, version: string ], [ void ], 'nonpayable'>; getFunction(nameOrSignature: 'owner'): TypedContractMethod<[], [string], 'view'>; getFunction(nameOrSignature: 'removeDescriber'): TypedContractMethod<[ describer_to_remove: AddressLike, version: string ], [ void ], 'nonpayable'>; getFunction(nameOrSignature: 'renounceOwnership'): TypedContractMethod<[], [void], 'nonpayable'>; getFunction(nameOrSignature: 'transferOwnership'): TypedContractMethod<[newOwner: AddressLike], [void], 'nonpayable'>; getEvent(key: 'ModifyDescriber'): TypedContractEvent<ModifyDescriberEvent.InputTuple, ModifyDescriberEvent.OutputTuple, ModifyDescriberEvent.OutputObject>; filters: { 'ModifyDescriber(address,string)': TypedContractEvent<ModifyDescriberEvent.InputTuple, ModifyDescriberEvent.OutputTuple, ModifyDescriberEvent.OutputObject>; ModifyDescriber: TypedContractEvent<ModifyDescriberEvent.InputTuple, ModifyDescriberEvent.OutputTuple, ModifyDescriberEvent.OutputObject>; }; } //# sourceMappingURL=DescriberRegisitry.d.ts.map