@gooddollar/goodprotocol
Version:
GoodDollar Protocol
162 lines (144 loc) • 4.19 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
BigNumber,
BigNumberish,
BytesLike,
CallOverrides,
ContractTransaction,
Overrides,
PopulatedTransaction,
Signer,
utils,
} from "ethers";
import type { FunctionFragment, Result } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type {
TypedEventFilter,
TypedEvent,
TypedListener,
OnEvent,
} from "../../../common";
export declare namespace IBancorExchangeProvider {
export type PoolExchangeStruct = {
reserveAsset: string;
tokenAddress: string;
tokenSupply: BigNumberish;
reserveBalance: BigNumberish;
reserveRatio: BigNumberish;
exitContribution: BigNumberish;
};
export type PoolExchangeStructOutput = [
string,
string,
BigNumber,
BigNumber,
number,
number
] & {
reserveAsset: string;
tokenAddress: string;
tokenSupply: BigNumber;
reserveBalance: BigNumber;
reserveRatio: number;
exitContribution: number;
};
}
export interface ProtocolUpgradeV4MentoInterface extends utils.Interface {
functions: {
"upgrade(address,(address,address,uint256,uint256,uint32,uint32),address,address,address,uint256)": FunctionFragment;
};
getFunction(nameOrSignatureOrTopic: "upgrade"): FunctionFragment;
encodeFunctionData(
functionFragment: "upgrade",
values: [
string,
IBancorExchangeProvider.PoolExchangeStruct,
string,
string,
string,
BigNumberish
]
): string;
decodeFunctionResult(functionFragment: "upgrade", data: BytesLike): Result;
events: {};
}
export interface ProtocolUpgradeV4Mento extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
interface: ProtocolUpgradeV4MentoInterface;
queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TEvent>>;
listeners<TEvent extends TypedEvent>(
eventFilter?: TypedEventFilter<TEvent>
): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(
eventFilter: TypedEventFilter<TEvent>
): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;
functions: {
upgrade(
_controller: string,
_exchange: IBancorExchangeProvider.PoolExchangeStruct,
_mentoExchange: string,
_mentoController: string,
_distHelper: string,
totalGlobalSupply: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;
};
upgrade(
_controller: string,
_exchange: IBancorExchangeProvider.PoolExchangeStruct,
_mentoExchange: string,
_mentoController: string,
_distHelper: string,
totalGlobalSupply: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<ContractTransaction>;
callStatic: {
upgrade(
_controller: string,
_exchange: IBancorExchangeProvider.PoolExchangeStruct,
_mentoExchange: string,
_mentoController: string,
_distHelper: string,
totalGlobalSupply: BigNumberish,
overrides?: CallOverrides
): Promise<void>;
};
filters: {};
estimateGas: {
upgrade(
_controller: string,
_exchange: IBancorExchangeProvider.PoolExchangeStruct,
_mentoExchange: string,
_mentoController: string,
_distHelper: string,
totalGlobalSupply: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<BigNumber>;
};
populateTransaction: {
upgrade(
_controller: string,
_exchange: IBancorExchangeProvider.PoolExchangeStruct,
_mentoExchange: string,
_mentoController: string,
_distHelper: string,
totalGlobalSupply: BigNumberish,
overrides?: Overrides & { from?: string }
): Promise<PopulatedTransaction>;
};
}