UNPKG

@catalabs/catalyst-sdk

Version:
166 lines 9.13 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 interface VaultFactoryInterface extends Interface { getFunction(nameOrSignature: '_defaultGovernanceFee' | 'deployVault' | 'isCreatedByFactory' | 'owner' | 'renounceOwnership' | 'setDefaultGovernanceFee' | 'transferOwnership'): FunctionFragment; getEvent(nameOrSignatureOrTopic: 'OwnershipTransferred' | 'SetDefaultGovernanceFee' | 'VaultDeployed'): EventFragment; encodeFunctionData(functionFragment: '_defaultGovernanceFee', values?: undefined): string; encodeFunctionData(functionFragment: 'deployVault', values: [ AddressLike, AddressLike[], BigNumberish[], BigNumberish[], BigNumberish, BigNumberish, string, string, AddressLike ]): string; encodeFunctionData(functionFragment: 'isCreatedByFactory', values: [AddressLike, AddressLike]): string; encodeFunctionData(functionFragment: 'owner', values?: undefined): string; encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string; encodeFunctionData(functionFragment: 'setDefaultGovernanceFee', values: [BigNumberish]): string; encodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string; decodeFunctionResult(functionFragment: '_defaultGovernanceFee', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'deployVault', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'isCreatedByFactory', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'setDefaultGovernanceFee', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result; } export declare namespace OwnershipTransferredEvent { type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; type OutputTuple = [previousOwner: string, newOwner: string]; interface OutputObject { previousOwner: string; newOwner: string; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace SetDefaultGovernanceFeeEvent { type InputTuple = [fee: BigNumberish]; type OutputTuple = [fee: bigint]; interface OutputObject { fee: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace VaultDeployedEvent { type InputTuple = [ vaultTemplate: AddressLike, chainInterface: AddressLike, deployer: AddressLike, vaultAddress: AddressLike, assets: AddressLike[], k: BigNumberish ]; type OutputTuple = [ vaultTemplate: string, chainInterface: string, deployer: string, vaultAddress: string, assets: string[], k: bigint ]; interface OutputObject { vaultTemplate: string; chainInterface: string; deployer: string; vaultAddress: string; assets: string[]; k: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export interface VaultFactory extends BaseContract { connect(runner?: ContractRunner | null): VaultFactory; waitForDeployment(): Promise<this>; interface: VaultFactoryInterface; 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>; _defaultGovernanceFee: TypedContractMethod<[], [bigint], 'view'>; deployVault: TypedContractMethod<[ vaultTemplate: AddressLike, assets: AddressLike[], init_balances: BigNumberish[], weights: BigNumberish[], amp: BigNumberish, vaultFee: BigNumberish, name: string, symbol: string, chainInterface: AddressLike ], [ string ], 'nonpayable'>; isCreatedByFactory: TypedContractMethod<[ arg0: AddressLike, arg1: AddressLike ], [ boolean ], 'view'>; owner: TypedContractMethod<[], [string], 'view'>; renounceOwnership: TypedContractMethod<[], [void], 'nonpayable'>; setDefaultGovernanceFee: TypedContractMethod<[ fee: BigNumberish ], [ void ], 'nonpayable'>; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], 'nonpayable'>; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: '_defaultGovernanceFee'): TypedContractMethod<[], [bigint], 'view'>; getFunction(nameOrSignature: 'deployVault'): TypedContractMethod<[ vaultTemplate: AddressLike, assets: AddressLike[], init_balances: BigNumberish[], weights: BigNumberish[], amp: BigNumberish, vaultFee: BigNumberish, name: string, symbol: string, chainInterface: AddressLike ], [ string ], 'nonpayable'>; getFunction(nameOrSignature: 'isCreatedByFactory'): TypedContractMethod<[ arg0: AddressLike, arg1: AddressLike ], [ boolean ], 'view'>; getFunction(nameOrSignature: 'owner'): TypedContractMethod<[], [string], 'view'>; getFunction(nameOrSignature: 'renounceOwnership'): TypedContractMethod<[], [void], 'nonpayable'>; getFunction(nameOrSignature: 'setDefaultGovernanceFee'): TypedContractMethod<[fee: BigNumberish], [void], 'nonpayable'>; getFunction(nameOrSignature: 'transferOwnership'): TypedContractMethod<[newOwner: AddressLike], [void], 'nonpayable'>; getEvent(key: 'OwnershipTransferred'): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; getEvent(key: 'SetDefaultGovernanceFee'): TypedContractEvent<SetDefaultGovernanceFeeEvent.InputTuple, SetDefaultGovernanceFeeEvent.OutputTuple, SetDefaultGovernanceFeeEvent.OutputObject>; getEvent(key: 'VaultDeployed'): TypedContractEvent<VaultDeployedEvent.InputTuple, VaultDeployedEvent.OutputTuple, VaultDeployedEvent.OutputObject>; filters: { 'OwnershipTransferred(address,address)': TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; 'SetDefaultGovernanceFee(uint256)': TypedContractEvent<SetDefaultGovernanceFeeEvent.InputTuple, SetDefaultGovernanceFeeEvent.OutputTuple, SetDefaultGovernanceFeeEvent.OutputObject>; SetDefaultGovernanceFee: TypedContractEvent<SetDefaultGovernanceFeeEvent.InputTuple, SetDefaultGovernanceFeeEvent.OutputTuple, SetDefaultGovernanceFeeEvent.OutputObject>; 'VaultDeployed(address,address,address,address,address[],uint256)': TypedContractEvent<VaultDeployedEvent.InputTuple, VaultDeployedEvent.OutputTuple, VaultDeployedEvent.OutputObject>; VaultDeployed: TypedContractEvent<VaultDeployedEvent.InputTuple, VaultDeployedEvent.OutputTuple, VaultDeployedEvent.OutputObject>; }; } //# sourceMappingURL=VaultFactory.d.ts.map