UNPKG

@augumented-finance/protocol-v1

Version:

Augmented Protocol smart contracts

137 lines (116 loc) 3.22 kB
/* 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 MockTransferHookInterface extends ethers.utils.Interface { functions: { "onTransfer(address,address,uint256)": FunctionFragment; }; encodeFunctionData( functionFragment: "onTransfer", values: [string, string, BigNumberish] ): string; decodeFunctionResult(functionFragment: "onTransfer", data: BytesLike): Result; events: { "MockHookEvent()": EventFragment; }; getEvent(nameOrSignatureOrTopic: "MockHookEvent"): EventFragment; } export class MockTransferHook 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: MockTransferHookInterface; functions: { onTransfer( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<ContractTransaction>; "onTransfer(address,address,uint256)"( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<ContractTransaction>; }; onTransfer( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<ContractTransaction>; "onTransfer(address,address,uint256)"( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<ContractTransaction>; callStatic: { onTransfer( from: string, to: string, amount: BigNumberish, overrides?: CallOverrides ): Promise<void>; "onTransfer(address,address,uint256)"( from: string, to: string, amount: BigNumberish, overrides?: CallOverrides ): Promise<void>; }; filters: { MockHookEvent(): EventFilter; }; estimateGas: { onTransfer( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<BigNumber>; "onTransfer(address,address,uint256)"( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<BigNumber>; }; populateTransaction: { onTransfer( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<PopulatedTransaction>; "onTransfer(address,address,uint256)"( from: string, to: string, amount: BigNumberish, overrides?: Overrides ): Promise<PopulatedTransaction>; }; }