@xlink-network/xlink-sdk
Version:
390 lines (389 loc) • 7.06 kB
JavaScript
// src/evmUtils/contractAbi/nativeBridgeEndpoint.ts
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"
}
];
export {
NativeBridgeEndpointAbi
};
//# sourceMappingURL=chunk-NPL4WHWU.mjs.map