UNPKG

baluni-contracts

Version:
839 lines (776 loc) 23.9 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 interface BaluniV1YearnVaultInterface extends Interface { getFunction( nameOrSignature: | "UPGRADE_INTERFACE_VERSION" | "accumulatedAssetB" | "allTimeInterest" | "allowance" | "approve" | "balanceOf" | "baseAsset" | "buy" | "decimals" | "deposit" | "initialize" | "interestEarned" | "lastDeposit" | "name" | "owner" | "pause" | "paused" | "proxiableUUID" | "quoteAsset" | "registry" | "reinitialize" | "renounceOwnership" | "symbol" | "totalSupply" | "totalValuation" | "transfer" | "transferFrom" | "transferOwnership" | "unitPrice" | "unpause" | "upgradeToAndCall" | "withdraw" | "yearnVault" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "Approval" | "Buy" | "Initialized" | "OwnershipTransferred" | "Paused" | "Transfer" | "Unpaused" | "Upgraded" ): EventFragment; encodeFunctionData( functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined ): string; encodeFunctionData( functionFragment: "accumulatedAssetB", values?: undefined ): string; encodeFunctionData( functionFragment: "allTimeInterest", values?: undefined ): string; encodeFunctionData( functionFragment: "allowance", values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "approve", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOf", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "baseAsset", values?: undefined): string; encodeFunctionData(functionFragment: "buy", values?: undefined): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData( functionFragment: "deposit", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "initialize", values: [string, string, AddressLike, AddressLike, AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "interestEarned", values?: undefined ): string; encodeFunctionData( functionFragment: "lastDeposit", values?: undefined ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "pause", values?: undefined): string; encodeFunctionData(functionFragment: "paused", values?: undefined): string; encodeFunctionData( functionFragment: "proxiableUUID", values?: undefined ): string; encodeFunctionData( functionFragment: "quoteAsset", values?: undefined ): string; encodeFunctionData(functionFragment: "registry", values?: undefined): string; encodeFunctionData( functionFragment: "reinitialize", values: [ string, string, AddressLike, AddressLike, AddressLike, AddressLike, BigNumberish ] ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData( functionFragment: "totalSupply", values?: undefined ): string; encodeFunctionData( functionFragment: "totalValuation", values?: undefined ): string; encodeFunctionData( functionFragment: "transfer", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData(functionFragment: "unitPrice", values?: undefined): string; encodeFunctionData(functionFragment: "unpause", values?: undefined): string; encodeFunctionData( functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike] ): string; encodeFunctionData( functionFragment: "withdraw", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "yearnVault", values?: undefined ): string; decodeFunctionResult( functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "accumulatedAssetB", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "allTimeInterest", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "baseAsset", data: BytesLike): Result; decodeFunctionResult(functionFragment: "buy", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult( functionFragment: "interestEarned", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "lastDeposit", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; decodeFunctionResult( functionFragment: "proxiableUUID", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "quoteAsset", data: BytesLike): Result; decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result; decodeFunctionResult( functionFragment: "reinitialize", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalSupply", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "totalValuation", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "unitPrice", data: BytesLike): Result; decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; decodeFunctionResult( functionFragment: "upgradeToAndCall", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; decodeFunctionResult(functionFragment: "yearnVault", data: BytesLike): Result; } export namespace ApprovalEvent { export type InputTuple = [ owner: AddressLike, spender: AddressLike, value: BigNumberish ]; export type OutputTuple = [owner: string, spender: string, value: bigint]; export interface OutputObject { owner: string; spender: string; value: 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 BuyEvent { export type InputTuple = [ sender: AddressLike, amount: BigNumberish, interest: BigNumberish ]; export type OutputTuple = [sender: string, amount: bigint, interest: bigint]; export interface OutputObject { sender: string; amount: bigint; interest: 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 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 PausedEvent { export type InputTuple = [account: AddressLike]; export type OutputTuple = [account: string]; export interface OutputObject { account: 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 TransferEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, value: BigNumberish ]; export type OutputTuple = [from: string, to: string, value: bigint]; export interface OutputObject { from: string; to: string; value: 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 UnpausedEvent { export type InputTuple = [account: AddressLike]; export type OutputTuple = [account: string]; export interface OutputObject { account: 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 BaluniV1YearnVault extends BaseContract { connect(runner?: ContractRunner | null): BaluniV1YearnVault; waitForDeployment(): Promise<this>; interface: BaluniV1YearnVaultInterface; 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">; accumulatedAssetB: TypedContractMethod<[], [bigint], "view">; allTimeInterest: TypedContractMethod<[], [bigint], "view">; allowance: TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; approve: TypedContractMethod< [spender: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; baseAsset: TypedContractMethod<[], [string], "view">; buy: TypedContractMethod<[], [void], "nonpayable">; decimals: TypedContractMethod<[], [bigint], "view">; deposit: TypedContractMethod< [amount: BigNumberish, to: AddressLike], [void], "nonpayable" >; initialize: TypedContractMethod< [ _name: string, _symbol: string, _assetA: AddressLike, _yearnVaultAddress: AddressLike, _assetB: AddressLike, _registryAddress: AddressLike ], [void], "nonpayable" >; interestEarned: TypedContractMethod<[], [bigint], "view">; lastDeposit: TypedContractMethod<[], [bigint], "view">; name: TypedContractMethod<[], [string], "view">; owner: TypedContractMethod<[], [string], "view">; pause: TypedContractMethod<[], [void], "nonpayable">; paused: TypedContractMethod<[], [boolean], "view">; proxiableUUID: TypedContractMethod<[], [string], "view">; quoteAsset: TypedContractMethod<[], [string], "view">; registry: TypedContractMethod<[], [string], "view">; reinitialize: TypedContractMethod< [ _name: string, _symbol: string, _assetA: AddressLike, _yearnVaultAddress: AddressLike, _assetB: AddressLike, _registryAddress: AddressLike, _version: BigNumberish ], [void], "nonpayable" >; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; symbol: TypedContractMethod<[], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; totalValuation: TypedContractMethod<[], [bigint], "view">; transfer: TypedContractMethod< [to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; transferFrom: TypedContractMethod< [from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; unitPrice: TypedContractMethod<[], [bigint], "view">; unpause: TypedContractMethod<[], [void], "nonpayable">; upgradeToAndCall: TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; withdraw: TypedContractMethod< [shares: BigNumberish, to: AddressLike], [void], "nonpayable" >; yearnVault: TypedContractMethod<[], [string], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "UPGRADE_INTERFACE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "accumulatedAssetB" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "allTimeInterest" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "allowance" ): TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; getFunction( nameOrSignature: "approve" ): TypedContractMethod< [spender: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "balanceOf" ): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "baseAsset" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "buy" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "decimals" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "deposit" ): TypedContractMethod< [amount: BigNumberish, to: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "initialize" ): TypedContractMethod< [ _name: string, _symbol: string, _assetA: AddressLike, _yearnVaultAddress: AddressLike, _assetB: AddressLike, _registryAddress: AddressLike ], [void], "nonpayable" >; getFunction( nameOrSignature: "interestEarned" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "lastDeposit" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "name" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "pause" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "paused" ): TypedContractMethod<[], [boolean], "view">; getFunction( nameOrSignature: "proxiableUUID" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "quoteAsset" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "registry" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "reinitialize" ): TypedContractMethod< [ _name: string, _symbol: string, _assetA: AddressLike, _yearnVaultAddress: AddressLike, _assetB: AddressLike, _registryAddress: AddressLike, _version: BigNumberish ], [void], "nonpayable" >; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "symbol" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "totalSupply" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "totalValuation" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transfer" ): TypedContractMethod< [to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "transferFrom" ): TypedContractMethod< [from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "unitPrice" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "unpause" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "upgradeToAndCall" ): TypedContractMethod< [newImplementation: AddressLike, data: BytesLike], [void], "payable" >; getFunction( nameOrSignature: "withdraw" ): TypedContractMethod< [shares: BigNumberish, to: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "yearnVault" ): TypedContractMethod<[], [string], "view">; getEvent( key: "Approval" ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; getEvent( key: "Buy" ): TypedContractEvent< BuyEvent.InputTuple, BuyEvent.OutputTuple, BuyEvent.OutputObject >; getEvent( key: "Initialized" ): TypedContractEvent< InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "Paused" ): TypedContractEvent< PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject >; getEvent( key: "Transfer" ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; getEvent( key: "Unpaused" ): TypedContractEvent< UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject >; getEvent( key: "Upgraded" ): TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; filters: { "Approval(address,address,uint256)": TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; Approval: TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; "Buy(address,uint256,uint256)": TypedContractEvent< BuyEvent.InputTuple, BuyEvent.OutputTuple, BuyEvent.OutputObject >; Buy: TypedContractEvent< BuyEvent.InputTuple, BuyEvent.OutputTuple, BuyEvent.OutputObject >; "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 >; "Paused(address)": TypedContractEvent< PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject >; Paused: TypedContractEvent< PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject >; "Transfer(address,address,uint256)": TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; Transfer: TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; "Unpaused(address)": TypedContractEvent< UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject >; Unpaused: TypedContractEvent< UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject >; "Upgraded(address)": TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; Upgraded: TypedContractEvent< UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject >; }; }