@catalabs/catalyst-sdk
Version:
Catalyst AMM SDK
330 lines • 20.6 kB
TypeScript
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 CatalystDescriber {
type AddressAndVersionStruct = {
addr: AddressLike;
version: string;
};
type AddressAndVersionStructOutput = [
addr: string,
version: string
] & {
addr: string;
version: string;
};
}
export interface DescriberInterface extends Interface {
getFunction(nameOrSignature: 'cci_versions' | 'factory_versions' | 'getNumVaultFactories' | 'getNumWhitelistedCcis' | 'getNumWhitelistedTemplates' | 'getWhitelistedCCI' | 'getWhitelistedFactories' | 'getWhitelistedTemplates' | 'get_factory_of_vault' | 'get_num_vault_factories' | 'get_num_whitelisted_ccis' | 'get_num_whitelisted_templates' | 'get_vault_factories' | 'get_vault_mathematical_lib' | 'get_vault_prices' | 'get_vault_tokens' | 'get_whitelisted_CCI' | 'get_whitelisted_templates' | 'initBlock' | 'latestRouter' | 'modifyWhitelistedCCI' | 'modifyWhitelistedFactory' | 'modifyWhitelistedTemplate' | 'owner' | 'removeWhitelistedCCI' | 'removeWhitelistedFactory' | 'removeWhitelistedTemplate' | 'renounceOwnership' | 'set_latest_router' | 'template_versions' | 'transferOwnership' | 'version_to_cci' | 'version_to_factory' | 'version_to_template'): FunctionFragment;
getEvent(nameOrSignatureOrTopic: 'ModifyTemplate' | 'ModifyWhitelistedCCI' | 'ModifyWhitelistedFactory'): EventFragment;
encodeFunctionData(functionFragment: 'cci_versions', values: [BigNumberish]): string;
encodeFunctionData(functionFragment: 'factory_versions', values: [BigNumberish]): string;
encodeFunctionData(functionFragment: 'getNumVaultFactories', values?: undefined): string;
encodeFunctionData(functionFragment: 'getNumWhitelistedCcis', values?: undefined): string;
encodeFunctionData(functionFragment: 'getNumWhitelistedTemplates', values?: undefined): string;
encodeFunctionData(functionFragment: 'getWhitelistedCCI', values?: undefined): string;
encodeFunctionData(functionFragment: 'getWhitelistedFactories', values?: undefined): string;
encodeFunctionData(functionFragment: 'getWhitelistedTemplates', values?: undefined): string;
encodeFunctionData(functionFragment: 'get_factory_of_vault', values: [AddressLike]): string;
encodeFunctionData(functionFragment: 'get_num_vault_factories', values?: undefined): string;
encodeFunctionData(functionFragment: 'get_num_whitelisted_ccis', values?: undefined): string;
encodeFunctionData(functionFragment: 'get_num_whitelisted_templates', values?: undefined): string;
encodeFunctionData(functionFragment: 'get_vault_factories', values?: undefined): string;
encodeFunctionData(functionFragment: 'get_vault_mathematical_lib', values: [AddressLike]): string;
encodeFunctionData(functionFragment: 'get_vault_prices', values: [AddressLike]): string;
encodeFunctionData(functionFragment: 'get_vault_tokens', values: [AddressLike]): string;
encodeFunctionData(functionFragment: 'get_whitelisted_CCI', values?: undefined): string;
encodeFunctionData(functionFragment: 'get_whitelisted_templates', values?: undefined): string;
encodeFunctionData(functionFragment: 'initBlock', values?: undefined): string;
encodeFunctionData(functionFragment: 'latestRouter', values?: undefined): string;
encodeFunctionData(functionFragment: 'modifyWhitelistedCCI', values: [AddressLike, string]): string;
encodeFunctionData(functionFragment: 'modifyWhitelistedFactory', values: [AddressLike, string]): string;
encodeFunctionData(functionFragment: 'modifyWhitelistedTemplate', values: [AddressLike, string]): string;
encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
encodeFunctionData(functionFragment: 'removeWhitelistedCCI', values: [AddressLike, string]): string;
encodeFunctionData(functionFragment: 'removeWhitelistedFactory', values: [AddressLike, string]): string;
encodeFunctionData(functionFragment: 'removeWhitelistedTemplate', values: [AddressLike, string]): string;
encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;
encodeFunctionData(functionFragment: 'set_latest_router', values: [AddressLike]): string;
encodeFunctionData(functionFragment: 'template_versions', values: [BigNumberish]): string;
encodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string;
encodeFunctionData(functionFragment: 'version_to_cci', values: [string]): string;
encodeFunctionData(functionFragment: 'version_to_factory', values: [string]): string;
encodeFunctionData(functionFragment: 'version_to_template', values: [string]): string;
decodeFunctionResult(functionFragment: 'cci_versions', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'factory_versions', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'getNumVaultFactories', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'getNumWhitelistedCcis', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'getNumWhitelistedTemplates', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'getWhitelistedCCI', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'getWhitelistedFactories', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'getWhitelistedTemplates', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_factory_of_vault', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_num_vault_factories', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_num_whitelisted_ccis', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_num_whitelisted_templates', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_vault_factories', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_vault_mathematical_lib', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_vault_prices', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_vault_tokens', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_whitelisted_CCI', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'get_whitelisted_templates', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'initBlock', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'latestRouter', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'modifyWhitelistedCCI', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'modifyWhitelistedFactory', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'modifyWhitelistedTemplate', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'removeWhitelistedCCI', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'removeWhitelistedFactory', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'removeWhitelistedTemplate', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'set_latest_router', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'template_versions', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'version_to_cci', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'version_to_factory', data: BytesLike): Result;
decodeFunctionResult(functionFragment: 'version_to_template', data: BytesLike): Result;
}
export declare namespace ModifyTemplateEvent {
type InputTuple = [template_address: AddressLike, version: string];
type OutputTuple = [template_address: string, version: string];
interface OutputObject {
template_address: string;
version: string;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ModifyWhitelistedCCIEvent {
type InputTuple = [cci_address: AddressLike, version: string];
type OutputTuple = [cci_address: string, version: string];
interface OutputObject {
cci_address: string;
version: string;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export declare namespace ModifyWhitelistedFactoryEvent {
type InputTuple = [factory_address: AddressLike, version: string];
type OutputTuple = [factory_address: string, version: string];
interface OutputObject {
factory_address: string;
version: string;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export interface Describer extends BaseContract {
connect(runner?: ContractRunner | null): Describer;
waitForDeployment(): Promise<this>;
interface: DescriberInterface;
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>;
cci_versions: TypedContractMethod<[arg0: BigNumberish], [string], 'view'>;
factory_versions: TypedContractMethod<[arg0: BigNumberish], [string], 'view'>;
getNumVaultFactories: TypedContractMethod<[], [bigint], 'view'>;
getNumWhitelistedCcis: TypedContractMethod<[], [bigint], 'view'>;
getNumWhitelistedTemplates: TypedContractMethod<[], [bigint], 'view'>;
getWhitelistedCCI: TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
getWhitelistedFactories: TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
getWhitelistedTemplates: TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
get_factory_of_vault: TypedContractMethod<[
vault: AddressLike
], [
string
], 'view'>;
get_num_vault_factories: TypedContractMethod<[], [bigint], 'view'>;
get_num_whitelisted_ccis: TypedContractMethod<[], [bigint], 'view'>;
get_num_whitelisted_templates: TypedContractMethod<[], [bigint], 'view'>;
get_vault_factories: TypedContractMethod<[], [string[]], 'view'>;
get_vault_mathematical_lib: TypedContractMethod<[
vault: AddressLike
], [
string
], 'view'>;
get_vault_prices: TypedContractMethod<[
vault: AddressLike
], [
bigint[]
], 'view'>;
get_vault_tokens: TypedContractMethod<[
vault: AddressLike
], [
string[]
], 'view'>;
get_whitelisted_CCI: TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
get_whitelisted_templates: TypedContractMethod<[], [string[]], 'view'>;
initBlock: TypedContractMethod<[], [bigint], 'view'>;
latestRouter: TypedContractMethod<[], [string], 'view'>;
modifyWhitelistedCCI: TypedContractMethod<[
cci_address: AddressLike,
version: string
], [
void
], 'nonpayable'>;
modifyWhitelistedFactory: TypedContractMethod<[
factory_address: AddressLike,
version: string
], [
void
], 'nonpayable'>;
modifyWhitelistedTemplate: TypedContractMethod<[
template_address: AddressLike,
version: string
], [
void
], 'nonpayable'>;
owner: TypedContractMethod<[], [string], 'view'>;
removeWhitelistedCCI: TypedContractMethod<[
cci_to_remove: AddressLike,
version: string
], [
void
], 'nonpayable'>;
removeWhitelistedFactory: TypedContractMethod<[
factory_to_remove: AddressLike,
version: string
], [
void
], 'nonpayable'>;
removeWhitelistedTemplate: TypedContractMethod<[
template_to_remove: AddressLike,
version: string
], [
void
], 'nonpayable'>;
renounceOwnership: TypedContractMethod<[], [void], 'nonpayable'>;
set_latest_router: TypedContractMethod<[
newRouter: AddressLike
], [
void
], 'nonpayable'>;
template_versions: TypedContractMethod<[
arg0: BigNumberish
], [
string
], 'view'>;
transferOwnership: TypedContractMethod<[
newOwner: AddressLike
], [
void
], 'nonpayable'>;
version_to_cci: TypedContractMethod<[arg0: string], [string], 'view'>;
version_to_factory: TypedContractMethod<[arg0: string], [string], 'view'>;
version_to_template: TypedContractMethod<[arg0: string], [string], 'view'>;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: 'cci_versions'): TypedContractMethod<[arg0: BigNumberish], [string], 'view'>;
getFunction(nameOrSignature: 'factory_versions'): TypedContractMethod<[arg0: BigNumberish], [string], 'view'>;
getFunction(nameOrSignature: 'getNumVaultFactories'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'getNumWhitelistedCcis'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'getNumWhitelistedTemplates'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'getWhitelistedCCI'): TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
getFunction(nameOrSignature: 'getWhitelistedFactories'): TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
getFunction(nameOrSignature: 'getWhitelistedTemplates'): TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
getFunction(nameOrSignature: 'get_factory_of_vault'): TypedContractMethod<[vault: AddressLike], [string], 'view'>;
getFunction(nameOrSignature: 'get_num_vault_factories'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'get_num_whitelisted_ccis'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'get_num_whitelisted_templates'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'get_vault_factories'): TypedContractMethod<[], [string[]], 'view'>;
getFunction(nameOrSignature: 'get_vault_mathematical_lib'): TypedContractMethod<[vault: AddressLike], [string], 'view'>;
getFunction(nameOrSignature: 'get_vault_prices'): TypedContractMethod<[vault: AddressLike], [bigint[]], 'view'>;
getFunction(nameOrSignature: 'get_vault_tokens'): TypedContractMethod<[vault: AddressLike], [string[]], 'view'>;
getFunction(nameOrSignature: 'get_whitelisted_CCI'): TypedContractMethod<[
], [
CatalystDescriber.AddressAndVersionStructOutput[]
], 'view'>;
getFunction(nameOrSignature: 'get_whitelisted_templates'): TypedContractMethod<[], [string[]], 'view'>;
getFunction(nameOrSignature: 'initBlock'): TypedContractMethod<[], [bigint], 'view'>;
getFunction(nameOrSignature: 'latestRouter'): TypedContractMethod<[], [string], 'view'>;
getFunction(nameOrSignature: 'modifyWhitelistedCCI'): TypedContractMethod<[
cci_address: AddressLike,
version: string
], [
void
], 'nonpayable'>;
getFunction(nameOrSignature: 'modifyWhitelistedFactory'): TypedContractMethod<[
factory_address: AddressLike,
version: string
], [
void
], 'nonpayable'>;
getFunction(nameOrSignature: 'modifyWhitelistedTemplate'): TypedContractMethod<[
template_address: AddressLike,
version: string
], [
void
], 'nonpayable'>;
getFunction(nameOrSignature: 'owner'): TypedContractMethod<[], [string], 'view'>;
getFunction(nameOrSignature: 'removeWhitelistedCCI'): TypedContractMethod<[
cci_to_remove: AddressLike,
version: string
], [
void
], 'nonpayable'>;
getFunction(nameOrSignature: 'removeWhitelistedFactory'): TypedContractMethod<[
factory_to_remove: AddressLike,
version: string
], [
void
], 'nonpayable'>;
getFunction(nameOrSignature: 'removeWhitelistedTemplate'): TypedContractMethod<[
template_to_remove: AddressLike,
version: string
], [
void
], 'nonpayable'>;
getFunction(nameOrSignature: 'renounceOwnership'): TypedContractMethod<[], [void], 'nonpayable'>;
getFunction(nameOrSignature: 'set_latest_router'): TypedContractMethod<[newRouter: AddressLike], [void], 'nonpayable'>;
getFunction(nameOrSignature: 'template_versions'): TypedContractMethod<[arg0: BigNumberish], [string], 'view'>;
getFunction(nameOrSignature: 'transferOwnership'): TypedContractMethod<[newOwner: AddressLike], [void], 'nonpayable'>;
getFunction(nameOrSignature: 'version_to_cci'): TypedContractMethod<[arg0: string], [string], 'view'>;
getFunction(nameOrSignature: 'version_to_factory'): TypedContractMethod<[arg0: string], [string], 'view'>;
getFunction(nameOrSignature: 'version_to_template'): TypedContractMethod<[arg0: string], [string], 'view'>;
getEvent(key: 'ModifyTemplate'): TypedContractEvent<ModifyTemplateEvent.InputTuple, ModifyTemplateEvent.OutputTuple, ModifyTemplateEvent.OutputObject>;
getEvent(key: 'ModifyWhitelistedCCI'): TypedContractEvent<ModifyWhitelistedCCIEvent.InputTuple, ModifyWhitelistedCCIEvent.OutputTuple, ModifyWhitelistedCCIEvent.OutputObject>;
getEvent(key: 'ModifyWhitelistedFactory'): TypedContractEvent<ModifyWhitelistedFactoryEvent.InputTuple, ModifyWhitelistedFactoryEvent.OutputTuple, ModifyWhitelistedFactoryEvent.OutputObject>;
filters: {
'ModifyTemplate(address,string)': TypedContractEvent<ModifyTemplateEvent.InputTuple, ModifyTemplateEvent.OutputTuple, ModifyTemplateEvent.OutputObject>;
ModifyTemplate: TypedContractEvent<ModifyTemplateEvent.InputTuple, ModifyTemplateEvent.OutputTuple, ModifyTemplateEvent.OutputObject>;
'ModifyWhitelistedCCI(address,string)': TypedContractEvent<ModifyWhitelistedCCIEvent.InputTuple, ModifyWhitelistedCCIEvent.OutputTuple, ModifyWhitelistedCCIEvent.OutputObject>;
ModifyWhitelistedCCI: TypedContractEvent<ModifyWhitelistedCCIEvent.InputTuple, ModifyWhitelistedCCIEvent.OutputTuple, ModifyWhitelistedCCIEvent.OutputObject>;
'ModifyWhitelistedFactory(address,string)': TypedContractEvent<ModifyWhitelistedFactoryEvent.InputTuple, ModifyWhitelistedFactoryEvent.OutputTuple, ModifyWhitelistedFactoryEvent.OutputObject>;
ModifyWhitelistedFactory: TypedContractEvent<ModifyWhitelistedFactoryEvent.InputTuple, ModifyWhitelistedFactoryEvent.OutputTuple, ModifyWhitelistedFactoryEvent.OutputObject>;
};
}
//# sourceMappingURL=Describer.d.ts.map