baluni-contracts
Version:
Smart Contracts for Baluni
232 lines (206 loc) • 6.88 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumberish,
BytesLike,
FunctionFragment,
Result,
Interface,
AddressLike,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
TypedContractMethod,
} from "../../common";
export interface IBaluniV1YearnVaultInterface extends Interface {
getFunction(
nameOrSignature:
| "baseAsset"
| "buy"
| "deposit"
| "interestEarned"
| "lastDeposit"
| "pause"
| "quoteAsset"
| "registry"
| "totalValuation"
| "unitPrice"
| "unpause"
| "withdraw"
| "yearnVault"
): FunctionFragment;
encodeFunctionData(functionFragment: "baseAsset", values?: undefined): string;
encodeFunctionData(functionFragment: "buy", values?: undefined): string;
encodeFunctionData(
functionFragment: "deposit",
values: [BigNumberish, AddressLike]
): string;
encodeFunctionData(
functionFragment: "interestEarned",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "lastDeposit",
values?: undefined
): string;
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
encodeFunctionData(
functionFragment: "quoteAsset",
values?: undefined
): string;
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
encodeFunctionData(
functionFragment: "totalValuation",
values?: undefined
): string;
encodeFunctionData(functionFragment: "unitPrice", values?: undefined): string;
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
encodeFunctionData(
functionFragment: "withdraw",
values: [BigNumberish, AddressLike]
): string;
encodeFunctionData(
functionFragment: "yearnVault",
values?: undefined
): string;
decodeFunctionResult(functionFragment: "baseAsset", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "buy", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "interestEarned",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "lastDeposit",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "quoteAsset", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "totalValuation",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "unitPrice", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "yearnVault", data: BytesLike): Result;
}
export interface IBaluniV1YearnVault extends BaseContract {
connect(runner?: ContractRunner | null): IBaluniV1YearnVault;
waitForDeployment(): Promise<this>;
interface: IBaluniV1YearnVaultInterface;
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>;
baseAsset: TypedContractMethod<[], [string], "view">;
buy: TypedContractMethod<[], [void], "nonpayable">;
deposit: TypedContractMethod<
[amount: BigNumberish, to: AddressLike],
[void],
"nonpayable"
>;
interestEarned: TypedContractMethod<[], [bigint], "view">;
lastDeposit: TypedContractMethod<[], [bigint], "view">;
pause: TypedContractMethod<[], [void], "nonpayable">;
quoteAsset: TypedContractMethod<[], [string], "view">;
registry: TypedContractMethod<[], [string], "view">;
totalValuation: TypedContractMethod<[], [bigint], "view">;
unitPrice: TypedContractMethod<[], [bigint], "view">;
unpause: TypedContractMethod<[], [void], "nonpayable">;
withdraw: TypedContractMethod<
[shares: BigNumberish, to: AddressLike],
[void],
"nonpayable"
>;
yearnVault: TypedContractMethod<[], [string], "view">;
getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;
getFunction(
nameOrSignature: "baseAsset"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "buy"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "deposit"
): TypedContractMethod<
[amount: BigNumberish, to: AddressLike],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "interestEarned"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "lastDeposit"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "pause"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "quoteAsset"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "registry"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "totalValuation"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "unitPrice"
): TypedContractMethod<[], [bigint], "view">;
getFunction(
nameOrSignature: "unpause"
): TypedContractMethod<[], [void], "nonpayable">;
getFunction(
nameOrSignature: "withdraw"
): TypedContractMethod<
[shares: BigNumberish, to: AddressLike],
[void],
"nonpayable"
>;
getFunction(
nameOrSignature: "yearnVault"
): TypedContractMethod<[], [string], "view">;
filters: {};
}