UNPKG

zksync-ethers

Version:

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

208 lines (204 loc) 3.99 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { IL2SharedBridge, IL2SharedBridgeInterface, } from "../IL2SharedBridge"; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "l1Sender", type: "address", }, { indexed: true, internalType: "address", name: "l2Receiver", type: "address", }, { indexed: true, internalType: "address", name: "l2Token", type: "address", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "FinalizeDeposit", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "l2Sender", type: "address", }, { indexed: true, internalType: "address", name: "l1Receiver", type: "address", }, { indexed: true, internalType: "address", name: "l2Token", type: "address", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "WithdrawalInitiated", type: "event", }, { 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: [], name: "l1SharedBridge", 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 IL2SharedBridge__factory { static readonly abi = _abi; static createInterface(): IL2SharedBridgeInterface { return new Interface(_abi) as IL2SharedBridgeInterface; } static connect( address: string, runner?: ContractRunner | null ): IL2SharedBridge { return new Contract(address, _abi, runner) as unknown as IL2SharedBridge; } }