UNPKG

@astonic-io/astonic-bindings-ts

Version:

Astonic type generation and npm package deployment repo

132 lines (131 loc) 4.71 kB
import { Signer } from "ethers"; import type { Provider } from "@ethersproject/providers"; import type { IExchangeProvider0828, IExchangeProvider0828Interface } from "../../IExchangeProvider.sol/IExchangeProvider0828"; export declare class IExchangeProvider0828__factory { static readonly abi: readonly [{ readonly type: "function"; readonly name: "getAmountIn"; readonly inputs: readonly [{ readonly name: "exchangeId"; readonly type: "bytes32"; readonly internalType: "bytes32"; }, { readonly name: "tokenIn"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "tokenOut"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "amountOut"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly outputs: readonly [{ readonly name: "amountIn"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly stateMutability: "view"; }, { readonly type: "function"; readonly name: "getAmountOut"; readonly inputs: readonly [{ readonly name: "exchangeId"; readonly type: "bytes32"; readonly internalType: "bytes32"; }, { readonly name: "tokenIn"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "tokenOut"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "amountIn"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly outputs: readonly [{ readonly name: "amountOut"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly stateMutability: "view"; }, { readonly type: "function"; readonly name: "getExchanges"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "exchanges"; readonly type: "tuple[]"; readonly internalType: "struct IExchangeProvider.Exchange[]"; readonly components: readonly [{ readonly name: "exchangeId"; readonly type: "bytes32"; readonly internalType: "bytes32"; }, { readonly name: "assets"; readonly type: "address[]"; readonly internalType: "address[]"; }]; }]; readonly stateMutability: "view"; }, { readonly type: "function"; readonly name: "swapIn"; readonly inputs: readonly [{ readonly name: "exchangeId"; readonly type: "bytes32"; readonly internalType: "bytes32"; }, { readonly name: "tokenIn"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "tokenOut"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "amountIn"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly outputs: readonly [{ readonly name: "amountOut"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly stateMutability: "nonpayable"; }, { readonly type: "function"; readonly name: "swapOut"; readonly inputs: readonly [{ readonly name: "exchangeId"; readonly type: "bytes32"; readonly internalType: "bytes32"; }, { readonly name: "tokenIn"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "tokenOut"; readonly type: "address"; readonly internalType: "address"; }, { readonly name: "amountOut"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly outputs: readonly [{ readonly name: "amountIn"; readonly type: "uint256"; readonly internalType: "uint256"; }]; readonly stateMutability: "nonpayable"; }]; static createInterface(): IExchangeProvider0828Interface; static connect(address: string, signerOrProvider: Signer | Provider): IExchangeProvider0828; }