UNPKG

baluni-contracts

Version:
449 lines (416 loc) 12.3 kB
/* 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 declare namespace BaluniV1Rebalancer { export type RebalanceVarsStruct = { length: BigNumberish; totalValue: BigNumberish; valuations: BigNumberish[]; finalUsdBalance: BigNumberish; overweightVaultsLength: BigNumberish; underweightVaultsLength: BigNumberish; totalActiveWeight: BigNumberish; amountOut: BigNumberish; overweightVaults: BigNumberish[]; overweightAmounts: BigNumberish[]; underweightVaults: BigNumberish[]; underweightAmounts: BigNumberish[]; balances: BigNumberish[]; }; export type RebalanceVarsStructOutput = [ length: bigint, totalValue: bigint, valuations: bigint[], finalUsdBalance: bigint, overweightVaultsLength: bigint, underweightVaultsLength: bigint, totalActiveWeight: bigint, amountOut: bigint, overweightVaults: bigint[], overweightAmounts: bigint[], underweightVaults: bigint[], underweightAmounts: bigint[], balances: bigint[] ] & { length: bigint; totalValue: bigint; valuations: bigint[]; finalUsdBalance: bigint; overweightVaultsLength: bigint; underweightVaultsLength: bigint; totalActiveWeight: bigint; amountOut: bigint; overweightVaults: bigint[]; overweightAmounts: bigint[]; underweightVaults: bigint[]; underweightAmounts: bigint[]; balances: bigint[]; }; } export interface BaluniV1RebalancerInterface extends Interface { getFunction( nameOrSignature: | "UPGRADE_INTERFACE_VERSION" | "checkRebalance" | "initialize" | "owner" | "proxiableUUID" | "rebalance" | "registry" | "reinitialize" | "renounceOwnership" | "transferOwnership" | "upgradeToAndCall" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "Initialized" | "OwnershipTransferred" | "Upgraded" ): EventFragment; encodeFunctionData( functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined ): string; encodeFunctionData( functionFragment: "checkRebalance", values: [ BigNumberish[], AddressLike[], BigNumberish[], BigNumberish, AddressLike, AddressLike ] ): string; encodeFunctionData( functionFragment: "initialize", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "proxiableUUID", values?: undefined ): string; encodeFunctionData( functionFragment: "rebalance", values: [ BigNumberish[], AddressLike[], BigNumberish[], BigNumberish, AddressLike, AddressLike, AddressLike ] ): string; encodeFunctionData(functionFragment: "registry", values?: undefined): string; encodeFunctionData( functionFragment: "reinitialize", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike] ): string; decodeFunctionResult( functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "checkRebalance", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "proxiableUUID", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "rebalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result; decodeFunctionResult( functionFragment: "reinitialize", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", data: BytesLike ): Result; } export namespace InitializedEvent { export type InputTuple = [version: BigNumberish]; export type OutputTuple = [version: bigint]; export interface OutputObject { version: bigint; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace OwnershipTransferredEvent { export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [previousOwner: string, newOwner: string]; export interface OutputObject { previousOwner: string; newOwner: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export namespace UpgradedEvent { export type InputTuple = [implementation: AddressLike]; export type OutputTuple = [implementation: string]; export interface OutputObject { implementation: string; } export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; export type Filter = TypedDeferredTopicFilter<Event>; export type Log = TypedEventLog<Event>; export type LogDescription = TypedLogDescription<Event>; } export interface BaluniV1Rebalancer extends BaseContract { connect(runner?: ContractRunner | null): BaluniV1Rebalancer; waitForDeployment(): Promise<this>; interface: BaluniV1RebalancerInterface; 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>; UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">; checkRebalance: TypedContractMethod< [ balances: BigNumberish[], assets: AddressLike[], weights: BigNumberish[], limit: BigNumberish, sender: AddressLike, baseAsset: AddressLike ], [BaluniV1Rebalancer.RebalanceVarsStructOutput], "view" >; initialize: TypedContractMethod< [_registry: AddressLike], [void], "nonpayable" >; owner: TypedContractMethod<[], [string], "view">; proxiableUUID: TypedContractMethod<[], [string], "view">; rebalance: TypedContractMethod< [ balances: BigNumberish[], assets: AddressLike[], weights: BigNumberish[], limit: BigNumberish, sender: AddressLike, receiver: AddressLike, baseAsset: AddressLike ], [void], "nonpayable" >; registry: TypedContractMethod<[], [string], "view">; reinitialize: TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; upgradeToAndCall: TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "UPGRADE_INTERFACE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "checkRebalance" ): TypedContractMethod< [ balances: BigNumberish[], assets: AddressLike[], weights: BigNumberish[], limit: BigNumberish, sender: AddressLike, baseAsset: AddressLike ], [BaluniV1Rebalancer.RebalanceVarsStructOutput], "view" >; getFunction( nameOrSignature: "initialize" ): TypedContractMethod<[_registry: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "proxiableUUID" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "rebalance" ): TypedContractMethod< [ balances: BigNumberish[], assets: AddressLike[], weights: BigNumberish[], limit: BigNumberish, sender: AddressLike, receiver: AddressLike, baseAsset: AddressLike ], [void], "nonpayable" >; getFunction( nameOrSignature: "registry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "reinitialize" ): TypedContractMethod< [_registry: AddressLike, version: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "upgradeToAndCall" ): TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getEvent( key: "Initialized" ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "Upgraded" ): TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; filters: { "Initialized(uint64)": TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; Initialized: TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "Upgraded(address)": TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; Upgraded: TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; }; }