@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
188 lines (158 loc) • 4.61 kB
TypeScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
ethers,
EventFilter,
Signer,
BigNumber,
BigNumberish,
PopulatedTransaction,
} from "ethers";
import {
Contract,
ContractTransaction,
Overrides,
CallOverrides,
} from "@ethersproject/contracts";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
interface IUnderlyingStrategyInterface extends ethers.utils.Interface {
functions: {
"delegatedWithdrawUnderlying(address,uint256,address)": FunctionFragment;
"getUnderlying(address)": FunctionFragment;
};
encodeFunctionData(
functionFragment: "delegatedWithdrawUnderlying",
values: [string, BigNumberish, string]
): string;
encodeFunctionData(
functionFragment: "getUnderlying",
values: [string]
): string;
decodeFunctionResult(
functionFragment: "delegatedWithdrawUnderlying",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "getUnderlying",
data: BytesLike
): Result;
events: {};
}
export class IUnderlyingStrategy extends Contract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
on(event: EventFilter | string, listener: Listener): this;
once(event: EventFilter | string, listener: Listener): this;
addListener(eventName: EventFilter | string, listener: Listener): this;
removeAllListeners(eventName: EventFilter | string): this;
removeListener(eventName: any, listener: Listener): this;
interface: IUnderlyingStrategyInterface;
functions: {
delegatedWithdrawUnderlying(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<ContractTransaction>;
"delegatedWithdrawUnderlying(address,uint256,address)"(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<ContractTransaction>;
getUnderlying(
asset: string,
overrides?: CallOverrides
): Promise<{
0: string;
}>;
"getUnderlying(address)"(
asset: string,
overrides?: CallOverrides
): Promise<{
0: string;
}>;
};
delegatedWithdrawUnderlying(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<ContractTransaction>;
"delegatedWithdrawUnderlying(address,uint256,address)"(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<ContractTransaction>;
getUnderlying(asset: string, overrides?: CallOverrides): Promise<string>;
"getUnderlying(address)"(
asset: string,
overrides?: CallOverrides
): Promise<string>;
callStatic: {
delegatedWithdrawUnderlying(
asset: string,
amount: BigNumberish,
to: string,
overrides?: CallOverrides
): Promise<BigNumber>;
"delegatedWithdrawUnderlying(address,uint256,address)"(
asset: string,
amount: BigNumberish,
to: string,
overrides?: CallOverrides
): Promise<BigNumber>;
getUnderlying(asset: string, overrides?: CallOverrides): Promise<string>;
"getUnderlying(address)"(
asset: string,
overrides?: CallOverrides
): Promise<string>;
};
filters: {};
estimateGas: {
delegatedWithdrawUnderlying(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<BigNumber>;
"delegatedWithdrawUnderlying(address,uint256,address)"(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<BigNumber>;
getUnderlying(asset: string, overrides?: CallOverrides): Promise<BigNumber>;
"getUnderlying(address)"(
asset: string,
overrides?: CallOverrides
): Promise<BigNumber>;
};
populateTransaction: {
delegatedWithdrawUnderlying(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<PopulatedTransaction>;
"delegatedWithdrawUnderlying(address,uint256,address)"(
asset: string,
amount: BigNumberish,
to: string,
overrides?: Overrides
): Promise<PopulatedTransaction>;
getUnderlying(
asset: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
"getUnderlying(address)"(
asset: string,
overrides?: CallOverrides
): Promise<PopulatedTransaction>;
};
}