UNPKG

zksync-ethers

Version:

A Web3 library for interacting with the ZkSync Layer 2 scaling solution.

127 lines (123 loc) 2.51 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { IL2Bridge, IL2BridgeInterface } from "../IL2Bridge"; const _abi = [ { inputs: [ { internalType: "address", name: "_l1Sender", type: "address", }, { internalType: "address", name: "_l2Receiver", type: "address", }, { internalType: "address", name: "_l1Token", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "finalizeDeposit", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "l1Bridge", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_l2Token", type: "address", }, ], name: "l1TokenAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_l1Token", type: "address", }, ], name: "l2TokenAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_l1Receiver", type: "address", }, { internalType: "address", name: "_l2Token", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "withdraw", outputs: [], stateMutability: "nonpayable", type: "function", }, ] as const; export class IL2Bridge__factory { static readonly abi = _abi; static createInterface(): IL2BridgeInterface { return new Interface(_abi) as IL2BridgeInterface; } static connect(address: string, runner?: ContractRunner | null): IL2Bridge { return new Contract(address, _abi, runner) as unknown as IL2Bridge; } }