Skip to content

Commit

Permalink
Update xToken contract
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Dec 25, 2023
1 parent 8ce4cba commit 25c293f
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 92 deletions.
250 changes: 189 additions & 61 deletions src/abi/xtoken-backing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,14 @@ const abi = [
name: "RemoteIssuingFailure",
type: "event",
inputs: [
{
name: "refundId",
type: "bytes32",
indexed: false,
internalType: "bytes32",
},
{
name: "transferId",
type: "bytes32",
indexed: false,
internalType: "bytes32",
},
{
name: "mappingToken",
name: "xToken",
type: "address",
indexed: false,
internalType: "address",
Expand Down Expand Up @@ -97,6 +91,12 @@ const abi = [
indexed: false,
internalType: "bytes32",
},
{
name: "nonce",
type: "uint256",
indexed: false,
internalType: "uint256",
},
{
name: "remoteChainId",
type: "uint256",
Expand Down Expand Up @@ -249,6 +249,45 @@ const abi = [
],
stateMutability: "view",
},
{
name: "TRANSFER_DELIVERED",
type: "function",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
name: "TRANSFER_REFUNDED",
type: "function",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
name: "TRANSFER_UNFILLED",
type: "function",
inputs: [],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
name: "_slotReserved",
type: "function",
Expand Down Expand Up @@ -335,6 +374,11 @@ const abi = [
type: "address",
internalType: "address",
},
{
name: "_originalSender",
type: "address",
internalType: "address",
},
{
name: "_recipient",
type: "address",
Expand All @@ -345,6 +389,11 @@ const abi = [
type: "uint256",
internalType: "uint256",
},
{
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
Expand All @@ -360,10 +409,78 @@ const abi = [
type: "function",
inputs: [
{
name: "_transferId",
name: "_originalToken",
type: "address",
internalType: "address",
},
{
name: "_originalSender",
type: "address",
internalType: "address",
},
{
name: "_recipient",
type: "address",
internalType: "address",
},
{
name: "_amount",
type: "uint256",
internalType: "uint256",
},
{
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "",
type: "bytes",
internalType: "bytes",
},
],
stateMutability: "view",
},
{
name: "filledTransfers",
type: "function",
inputs: [
{
name: "",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [
{
name: "",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
},
{
name: "getTransferId",
type: "function",
inputs: [
{
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
{
name: "_sourceChainId",
type: "uint256",
internalType: "uint256",
},
{
name: "_targetChainId",
type: "uint256",
internalType: "uint256",
},
{
name: "_originalToken",
type: "address",
Expand All @@ -374,6 +491,11 @@ const abi = [
type: "address",
internalType: "address",
},
{
name: "_recipient",
type: "address",
internalType: "address",
},
{
name: "_amount",
type: "uint256",
Expand All @@ -383,11 +505,11 @@ const abi = [
outputs: [
{
name: "",
type: "bytes",
internalType: "bytes",
type: "bytes32",
internalType: "bytes32",
},
],
stateMutability: "view",
stateMutability: "pure",
},
{
name: "guard",
Expand All @@ -412,17 +534,17 @@ const abi = [
internalType: "uint256",
},
{
name: "_transferId",
type: "bytes32",
internalType: "bytes32",
name: "_originalToken",
type: "address",
internalType: "address",
},
{
name: "_originalToken",
name: "_originalSender",
type: "address",
internalType: "address",
},
{
name: "_originSender",
name: "_recipient",
type: "address",
internalType: "address",
},
Expand All @@ -431,6 +553,11 @@ const abi = [
type: "uint256",
internalType: "uint256",
},
{
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
Expand Down Expand Up @@ -477,6 +604,11 @@ const abi = [
type: "uint256",
internalType: "uint256",
},
{
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
{
name: "_extParams",
type: "bytes",
Expand All @@ -486,30 +618,6 @@ const abi = [
outputs: [],
stateMutability: "payable",
},
{
name: "lockedMessages",
type: "function",
inputs: [
{
name: "",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [
{
name: "hash",
type: "bytes32",
internalType: "bytes32",
},
{
name: "hasRefundForFailed",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
name: "messagers",
type: "function",
Expand Down Expand Up @@ -654,14 +762,33 @@ const abi = [
stateMutability: "nonpayable",
},
{
name: "requestRemoteIssuingForUnlockFailure",
name: "requestInfos",
type: "function",
inputs: [
{
name: "_transferId",
name: "",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [
{
name: "isRequested",
type: "bool",
internalType: "bool",
},
{
name: "hasRefundForFailed",
type: "bool",
internalType: "bool",
},
],
stateMutability: "view",
},
{
name: "requestRemoteIssuingForUnlockFailure",
type: "function",
inputs: [
{
name: "_remoteChainId",
type: "uint256",
Expand All @@ -677,11 +804,21 @@ const abi = [
type: "address",
internalType: "address",
},
{
name: "_recipient",
type: "address",
internalType: "address",
},
{
name: "_amount",
type: "uint256",
internalType: "uint256",
},
{
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
{
name: "_extParams",
type: "bytes",
Expand Down Expand Up @@ -840,6 +977,11 @@ const abi = [
type: "address",
internalType: "address",
},
{
name: "_originSender",
type: "address",
internalType: "address",
},
{
name: "_recipient",
type: "address",
Expand All @@ -850,28 +992,14 @@ const abi = [
type: "uint256",
internalType: "uint256",
},
],
outputs: [],
stateMutability: "nonpayable",
},
{
name: "unlockedTransferIds",
type: "function",
inputs: [
{
name: "",
type: "bytes32",
internalType: "bytes32",
},
],
outputs: [
{
name: "",
type: "bool",
internalType: "bool",
name: "_nonce",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "view",
outputs: [],
stateMutability: "nonpayable",
},
{
name: "unpause",
Expand Down
Loading

0 comments on commit 25c293f

Please sign in to comment.