Skip to content

Commit

Permalink
chore(relayer): Relayer bindings (#13703)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed May 3, 2023
1 parent 02552f2 commit 566f3e7
Show file tree
Hide file tree
Showing 7 changed files with 573 additions and 592 deletions.
211 changes: 98 additions & 113 deletions packages/relayer/TaikoL1.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
[
{
"inputs": [],
"name": "L1_1559_X_SCALE_TOO_LARGE",
"type": "error"
},
{
"inputs": [],
"name": "L1_1559_Y_SCALE_TOO_LARGE",
"type": "error"
},
{
"inputs": [],
"name": "L1_ALREADY_PROVEN",
Expand All @@ -34,11 +24,6 @@
"name": "L1_BLOCK_ID",
"type": "error"
},
{
"inputs": [],
"name": "L1_CONTRACT_NOT_ALLOWED",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -81,11 +66,6 @@
"name": "L1_FORK_CHOICE_NOT_FOUND",
"type": "error"
},
{
"inputs": [],
"name": "L1_INSUFFICIENT_ETHER",
"type": "error"
},
{
"inputs": [],
"name": "L1_INSUFFICIENT_TOKEN",
Expand Down Expand Up @@ -118,7 +98,7 @@
},
{
"inputs": [],
"name": "L1_INVALID_EVIDENCE",
"name": "L1_INVALID_ETH_DEPOSIT",
"type": "error"
},
{
Expand All @@ -128,7 +108,7 @@
},
{
"inputs": [],
"name": "L1_INVALID_L21559_PARAMS",
"name": "L1_INVALID_EVIDENCE",
"type": "error"
},
{
Expand Down Expand Up @@ -168,22 +148,22 @@
},
{
"inputs": [],
"name": "L1_NOT_SOLO_PROPOSER",
"name": "L1_ORACLE_DISABLED",
"type": "error"
},
{
"inputs": [],
"name": "L1_NOT_SOLO_PROPOSER",
"name": "L1_ORACLE_DISABLED",
"type": "error"
},
{
"inputs": [],
"name": "L1_ORACLE_DISABLED",
"name": "L1_SAME_PROOF",
"type": "error"
},
{
"inputs": [],
"name": "L1_ORACLE_DISABLED",
"name": "L1_SAME_PROOF",
"type": "error"
},
{
Expand Down Expand Up @@ -410,6 +390,31 @@
"name": "BlockVerified",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "srcHeight",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "signalRoot",
"type": "bytes32"
}
],
"name": "CrossChainSynced",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -467,31 +472,6 @@
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "srcHeight",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "signalRoot",
"type": "bytes32"
}
],
"name": "CrossChainSynced",
"type": "event"
},
{
"inputs": [],
"name": "addressManager",
Expand Down Expand Up @@ -540,11 +520,6 @@
"name": "_metaHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "_deposit",
"type": "uint256"
},
{
"internalType": "address",
"name": "_proposer",
Expand Down Expand Up @@ -590,7 +565,7 @@
},
{
"internalType": "uint256",
"name": "maxVerificationsPerTx",
"name": "ringBufferSize",
"type": "uint256"
},
{
Expand Down Expand Up @@ -628,6 +603,21 @@
"name": "proofCooldownPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "realProofSkipSize",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ethDepositGas",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ethDepositMaxFee",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "minEthDepositsPerBlock",
Expand Down Expand Up @@ -662,11 +652,6 @@
"internalType": "bool",
"name": "relaySignalRoot",
"type": "bool"
},
{
"internalType": "bool",
"name": "enableSoloProposer",
"type": "bool"
}
],
"internalType": "struct TaikoData.Config",
Expand All @@ -677,6 +662,44 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "getCrossChainBlockHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "getCrossChainSignalRoot",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -770,7 +793,7 @@
"components": [
{
"internalType": "uint64",
"name": "basefee",
"name": "blockFee",
"type": "uint64"
},
{
Expand Down Expand Up @@ -855,52 +878,14 @@
}
],
"name": "getVerifierName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "getCrossChainBlockHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "getCrossChainSignalRoot",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"stateMutability": "pure",
"type": "function"
},
{
Expand All @@ -917,7 +902,7 @@
},
{
"internalType": "uint64",
"name": "_initBasefee",
"name": "_initBlockFee",
"type": "uint64"
},
{
Expand Down Expand Up @@ -1080,9 +1065,14 @@
{
"inputs": [
{
"internalType": "string",
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "name",
"type": "string"
"type": "bytes32"
},
{
"internalType": "bool",
Expand All @@ -1104,14 +1094,9 @@
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "string",
"internalType": "bytes32",
"name": "name",
"type": "string"
"type": "bytes32"
},
{
"internalType": "bool",
Expand Down Expand Up @@ -1181,7 +1166,7 @@
},
{
"internalType": "uint64",
"name": "basefee",
"name": "blockFee",
"type": "uint64"
},
{
Expand Down
18 changes: 9 additions & 9 deletions packages/relayer/TokenVault.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,9 +578,14 @@
{
"inputs": [
{
"internalType": "string",
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "name",
"type": "string"
"type": "bytes32"
},
{
"internalType": "bool",
Expand All @@ -602,14 +607,9 @@
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "string",
"internalType": "bytes32",
"name": "name",
"type": "string"
"type": "bytes32"
},
{
"internalType": "bool",
Expand Down
Loading

0 comments on commit 566f3e7

Please sign in to comment.