UNPKG

@xlink-network/xlink-sdk

Version:
414 lines (413 loc) 8.14 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/evmUtils/contractAbi/nativeBridgeEndpoint.ts var nativeBridgeEndpoint_exports = {}; __export(nativeBridgeEndpoint_exports, { NativeBridgeEndpointAbi: () => NativeBridgeEndpointAbi }); module.exports = __toCommonJS(nativeBridgeEndpoint_exports); var NativeBridgeEndpointAbi = [ { inputs: [ { internalType: "address", name: "_owner", type: "address" }, { internalType: "address", name: "_registry", type: "address" }, { internalType: "string", name: "name", type: "string" }, { internalType: "string", name: "version", type: "string" } ], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "InvalidShortString", type: "error" }, { inputs: [ { internalType: "string", name: "str", type: "string" } ], name: "StringTooLong", type: "error" }, { anonymous: false, inputs: [], name: "EIP712DomainChanged", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "previousOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" } ], name: "OwnershipTransferred", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address" } ], name: "Paused", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "sender", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" } ], name: "ReceivedNativeToken", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "recipient", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "bytes32", name: "salt", type: "bytes32" }, { indexed: false, internalType: "bytes32", name: "orderHash", type: "bytes32" } ], name: "TransferNativeToken", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address" } ], name: "Unpaused", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: false, internalType: "string", name: "settle", type: "string" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" } ], name: "WithdrawEvent", type: "event" }, { stateMutability: "payable", type: "fallback" }, { inputs: [ { internalType: "address payable", name: "recipient", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "bytes32", name: "salt", type: "bytes32" }, { components: [ { internalType: "bytes32", name: "orderHash", type: "bytes32" }, { internalType: "address", name: "signer", type: "address" }, { internalType: "bytes", name: "signature", type: "bytes" } ], internalType: "struct NativeBridgeEndpoint.SignaturePackage[]", name: "proofs", type: "tuple[]" } ], name: "deposit", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "domainSeparatorV4", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "eip712Domain", outputs: [ { internalType: "bytes1", name: "fields", type: "bytes1" }, { internalType: "string", name: "name", type: "string" }, { internalType: "string", name: "version", type: "string" }, { internalType: "uint256", name: "chainId", type: "uint256" }, { internalType: "address", name: "verifyingContract", type: "address" }, { internalType: "bytes32", name: "salt", type: "bytes32" }, { internalType: "uint256[]", name: "extensions", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "bytes32", name: "structHash", type: "bytes32" } ], name: "hashTypedDataV4", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [ { internalType: "bool", name: "", type: "bool" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "registry", outputs: [ { internalType: "contract NativeBridgeRegistry", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "newOwner", type: "address" } ], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "string", name: "settleData", type: "string" } ], name: "withdraw", outputs: [], stateMutability: "payable", type: "function" }, { stateMutability: "payable", type: "receive" } ]; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { NativeBridgeEndpointAbi }); //# sourceMappingURL=nativeBridgeEndpoint.js.map