UNPKG

@gooddollar/goodprotocol

Version:
167 lines (146 loc) 4.2 kB
/* 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 interface ContributionCalcInterface extends utils.Interface { functions: { "calculateContribution(address,address,address,address,uint256)": FunctionFragment; "setContributionRatio(uint256,uint256)": FunctionFragment; }; getFunction( nameOrSignatureOrTopic: "calculateContribution" | "setContributionRatio" ): FunctionFragment; encodeFunctionData( functionFragment: "calculateContribution", values: [string, string, string, string, BigNumberish] ): string; encodeFunctionData( functionFragment: "setContributionRatio", values: [BigNumberish, BigNumberish] ): string; decodeFunctionResult( functionFragment: "calculateContribution", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setContributionRatio", data: BytesLike ): Result; events: {}; } export interface ContributionCalc extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: ContributionCalcInterface; 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: { calculateContribution( _marketMaker: string, _reserve: string, _contributer: string, _token: string, _gdAmount: BigNumberish, overrides?: CallOverrides ): Promise<[BigNumber]>; setContributionRatio( _nom: BigNumberish, _denom: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<ContractTransaction>; }; calculateContribution( _marketMaker: string, _reserve: string, _contributer: string, _token: string, _gdAmount: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; setContributionRatio( _nom: BigNumberish, _denom: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<ContractTransaction>; callStatic: { calculateContribution( _marketMaker: string, _reserve: string, _contributer: string, _token: string, _gdAmount: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; setContributionRatio( _nom: BigNumberish, _denom: BigNumberish, overrides?: CallOverrides ): Promise<void>; }; filters: {}; estimateGas: { calculateContribution( _marketMaker: string, _reserve: string, _contributer: string, _token: string, _gdAmount: BigNumberish, overrides?: CallOverrides ): Promise<BigNumber>; setContributionRatio( _nom: BigNumberish, _denom: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<BigNumber>; }; populateTransaction: { calculateContribution( _marketMaker: string, _reserve: string, _contributer: string, _token: string, _gdAmount: BigNumberish, overrides?: CallOverrides ): Promise<PopulatedTransaction>; setContributionRatio( _nom: BigNumberish, _denom: BigNumberish, overrides?: Overrides & { from?: string } ): Promise<PopulatedTransaction>; }; }