UNPKG

@etherspot/contracts

Version:

Etherspot Solidity contracts

115 lines (111 loc) 2.44 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer, utils } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IHopBridge, IHopBridgeInterface } from "../IHopBridge"; const _abi = [ { inputs: [ { internalType: "uint256", name: "chainId", type: "uint256", }, { internalType: "address", name: "recipient", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "amountOutMin", type: "uint256", }, { internalType: "uint256", name: "deadline", type: "uint256", }, { internalType: "address", name: "relayer", type: "address", }, { internalType: "uint256", name: "relayerFee", type: "uint256", }, ], name: "sendToL2", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256", name: "chainId", type: "uint256", }, { internalType: "address", name: "recipient", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "bonderFee", type: "uint256", }, { internalType: "uint256", name: "amountOutMin", type: "uint256", }, { internalType: "uint256", name: "deadline", type: "uint256", }, { internalType: "uint256", name: "destinationAmountOutMin", type: "uint256", }, { internalType: "uint256", name: "destinationDeadline", type: "uint256", }, ], name: "swapAndSend", outputs: [], stateMutability: "payable", type: "function", }, ]; export class IHopBridge__factory { static readonly abi = _abi; static createInterface(): IHopBridgeInterface { return new utils.Interface(_abi) as IHopBridgeInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): IHopBridge { return new Contract(address, _abi, signerOrProvider) as IHopBridge; } }