UNPKG

@0xfacet/sdk

Version:

A toolkit for Facet blockchain integration.

176 lines (175 loc) 5.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.etherBridgeAbi = void 0; exports.etherBridgeAbi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "FeatureDisabled", type: "error" }, { inputs: [], name: "InvalidAmount", type: "error" }, { inputs: [], name: "InvalidInitialization", type: "error" }, { inputs: [], name: "NotFactory", type: "error" }, { inputs: [], name: "NotInitializing", type: "error" }, { inputs: [], name: "ZeroAdminAddress", type: "error" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "version", type: "uint64", }, ], name: "Initialized", type: "event", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "bytes32", name: "withdrawalId", type: "bytes32" }, ], name: "adminMarkComplete", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, ], name: "adminWithdraw", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "address", name: "dumbContractToCall", type: "address" }, { internalType: "bytes", name: "functionCalldata", type: "bytes" }, { internalType: "uint64", name: "gasLimit", type: "uint64" }, ], name: "bridgeAndCall", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "deposit", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "donateETH", outputs: [], stateMutability: "payable", 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: [], name: "getAdmin", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "getDumbContract", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "getHardCodedDumbContractAddress", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "pure", type: "function", }, { inputs: [], name: "getSigner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function", }, { inputs: [], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "withdrawalId", type: "bytes32" }, ], name: "processedWithdraws", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "address", name: "admin", type: "address" }], name: "setAdmin", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "dumbContract", type: "address" }, ], name: "setDumbContract", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "signer", type: "address" }], name: "setSigner", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "recipient", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "bytes32", name: "withdrawalId", type: "bytes32" }, { internalType: "bytes32", name: "blockHash", type: "bytes32" }, { internalType: "uint256", name: "blockNumber", type: "uint256" }, { internalType: "bytes", name: "signature", type: "bytes" }, ], internalType: "struct FacetEtherBridgeV6.WithdrawRequest", name: "req", type: "tuple", }, ], name: "withdraw", outputs: [], stateMutability: "nonpayable", type: "function", }, { stateMutability: "payable", type: "receive" }, ];