Skip to content

Commit

Permalink
US-0: XBridge FE/BE update abis and addresses for new contracts (#454)
Browse files Browse the repository at this point in the history
* US-0: XBridge FE/BE update abis and addresses to support new contracts in staging

* Update mainnet too
  • Loading branch information
WuBruno authored Feb 20, 2024
1 parent b4ff2d5 commit 8d24bd3
Show file tree
Hide file tree
Showing 5 changed files with 494 additions and 140 deletions.
215 changes: 178 additions & 37 deletions products/bridge/bridge-validators/abi/ChainGateway.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[
{ "type": "constructor", "inputs": [], "stateMutability": "nonpayable" },
{
"type": "constructor",
"inputs": [
{
"name": "_validatorManager",
"type": "address",
"internalType": "address"
}
],
"type": "function",
"name": "UPGRADE_INTERFACE_VERSION",
"inputs": [],
"outputs": [{ "name": "", "type": "string", "internalType": "string" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "acceptOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "dispatch",
"inputs": [
{
"name": "sourceChainId",
"type": "uint256",
"internalType": "uint256"
},
{ "name": "sourceChainId", "type": "uint256", "internalType": "uint256" },
{ "name": "target", "type": "address", "internalType": "address" },
{ "name": "call", "type": "bytes", "internalType": "bytes" },
{ "name": "gasLimit", "type": "uint256", "internalType": "uint256" },
Expand All @@ -32,16 +32,32 @@
"type": "function",
"name": "dispatched",
"inputs": [
{ "name": "", "type": "uint256", "internalType": "uint256" },
{ "name": "", "type": "uint256", "internalType": "uint256" }
{ "name": "sourceChainId", "type": "uint256", "internalType": "uint256" },
{ "name": "nonce", "type": "uint256", "internalType": "uint256" }
],
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "_validatorManager",
"type": "address",
"internalType": "address"
},
{ "name": "_owner", "type": "address", "internalType": "address" }
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "nonce",
"inputs": [],
"inputs": [
{ "name": "chainId", "type": "uint256", "internalType": "uint256" }
],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view"
},
Expand All @@ -52,6 +68,20 @@
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "pendingOwner",
"inputs": [],
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "proxiableUUID",
"inputs": [],
"outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "register",
Expand All @@ -64,19 +94,17 @@
{
"type": "function",
"name": "registered",
"inputs": [{ "name": "", "type": "address", "internalType": "address" }],
"inputs": [
{ "name": "target", "type": "address", "internalType": "address" }
],
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
"stateMutability": "view"
},
{
"type": "function",
"name": "relay",
"inputs": [
{
"name": "targetChainId",
"type": "uint256",
"internalType": "uint256"
},
{ "name": "targetChainId", "type": "uint256", "internalType": "uint256" },
{ "name": "target", "type": "address", "internalType": "address" },
{ "name": "call", "type": "bytes", "internalType": "bytes" },
{ "name": "gasLimit", "type": "uint256", "internalType": "uint256" }
Expand All @@ -88,11 +116,7 @@
"type": "function",
"name": "relayWithMetadata",
"inputs": [
{
"name": "targetChainId",
"type": "uint256",
"internalType": "uint256"
},
{ "name": "targetChainId", "type": "uint256", "internalType": "uint256" },
{ "name": "target", "type": "address", "internalType": "address" },
{ "name": "callSelector", "type": "bytes4", "internalType": "bytes4" },
{ "name": "callData", "type": "bytes", "internalType": "bytes" },
Expand All @@ -108,6 +132,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setValidatorManager",
"inputs": [
{
"name": "_validatorManager",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
Expand All @@ -126,18 +163,52 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "upgradeToAndCall",
"inputs": [
{
"name": "newImplementation",
"type": "address",
"internalType": "address"
},
{ "name": "data", "type": "bytes", "internalType": "bytes" }
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "validatorManager",
"inputs": [],
"outputs": [
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
"stateMutability": "view"
},
{
"type": "event",
"name": "ContractRegistered",
"inputs": [
{
"name": "",
"name": "target",
"type": "address",
"internalType": "contract ValidatorManager"
"indexed": false,
"internalType": "address"
}
],
"stateMutability": "view"
"anonymous": false
},
{
"type": "event",
"name": "ContractUnregistered",
"inputs": [
{
"name": "target",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
Expand Down Expand Up @@ -176,6 +247,38 @@
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferStarted",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
Expand Down Expand Up @@ -232,20 +335,52 @@
],
"anonymous": false
},
{ "type": "error", "name": "AlreadyDispatched", "inputs": [] },
{ "type": "error", "name": "NonContractCaller", "inputs": [] },
{
"type": "error",
"name": "NotRegistered",
"type": "event",
"name": "Upgraded",
"inputs": [
{
"name": "targetAddress",
"name": "implementation",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AddressEmptyCode",
"inputs": [
{ "name": "target", "type": "address", "internalType": "address" }
]
},
{ "type": "error", "name": "AlreadyDispatched", "inputs": [] },
{
"type": "error",
"name": "ERC1967InvalidImplementation",
"inputs": [
{ "name": "implementation", "type": "address", "internalType": "address" }
]
},
{ "type": "error", "name": "ERC1967NonPayable", "inputs": [] },
{ "type": "error", "name": "FailedInnerCall", "inputs": [] },
{ "type": "error", "name": "InvalidInitialization", "inputs": [] },
{
"type": "error",
"name": "NonContractCaller",
"inputs": [
{ "name": "target", "type": "address", "internalType": "address" }
]
},
{ "type": "error", "name": "NotInitializing", "inputs": [] },
{
"type": "error",
"name": "NotRegistered",
"inputs": [
{ "name": "targetAddress", "type": "address", "internalType": "address" }
]
},
{ "type": "error", "name": "NotValidator", "inputs": [] },
{
"type": "error",
"name": "OwnableInvalidOwner",
Expand All @@ -259,5 +394,11 @@
"inputs": [
{ "name": "account", "type": "address", "internalType": "address" }
]
},
{ "type": "error", "name": "UUPSUnauthorizedCallContext", "inputs": [] },
{
"type": "error",
"name": "UUPSUnsupportedProxiableUUID",
"inputs": [{ "name": "slot", "type": "bytes32", "internalType": "bytes32" }]
}
]
Loading

0 comments on commit 8d24bd3

Please sign in to comment.