Skip to content

Commit

Permalink
relayer abigen
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jun 21, 2024
1 parent d19e3b5 commit cce7c3a
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 507 deletions.
24 changes: 0 additions & 24 deletions packages/relayer/SignalService.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getSyncedChainHeight",
"inputs": [
{
"name": "_chainId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "_kind",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint64",
"internalType": "uint64"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "impl",
Expand Down
248 changes: 58 additions & 190 deletions packages/relayer/TaikoL1.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"internalType": "uint64"
},
{
"name": "maxBlocksToVerifyPerProposal",
"name": "maxBlocksToVerify",
"type": "uint64",
"internalType": "uint64"
},
Expand All @@ -125,7 +125,7 @@
"internalType": "uint96"
},
{
"name": "blockSyncThreshold",
"name": "stateRootSyncInternal",
"type": "uint8",
"internalType": "uint8"
},
Expand All @@ -137,6 +137,52 @@
]
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "getLastSyncedBlock",
"inputs": [],
"outputs": [
{
"name": "blockId_",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "blockHash_",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "stateRoot_",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getLastVerifiedBlock",
"inputs": [],
"outputs": [
{
"name": "blockId_",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "blockHash_",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "stateRoot_",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
Expand Down Expand Up @@ -657,19 +703,6 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "resetGenesisHash",
"inputs": [
{
"name": "_genesisBlockHash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "resolve",
Expand Down Expand Up @@ -723,91 +756,6 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "slotA",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct TaikoData.SlotA",
"components": [
{
"name": "genesisHeight",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "genesisTimestamp",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "lastSyncedBlockId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "lastSynecdAt",
"type": "uint64",
"internalType": "uint64"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "slotB",
"inputs": [],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct TaikoData.SlotB",
"components": [
{
"name": "numBlocks",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "lastVerifiedBlockId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "provingPaused",
"type": "bool",
"internalType": "bool"
},
{
"name": "__reservedB1",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "__reservedB2",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "__reservedB3",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "lastUnpausedAt",
"type": "uint64",
"internalType": "uint64"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "state",
Expand Down Expand Up @@ -1452,56 +1400,6 @@
],
"anonymous": false
},
{
"type": "event",
"name": "StateVariablesUpdated",
"inputs": [
{
"name": "slotB",
"type": "tuple",
"indexed": false,
"internalType": "struct TaikoData.SlotB",
"components": [
{
"name": "numBlocks",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "lastVerifiedBlockId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "provingPaused",
"type": "bool",
"internalType": "bool"
},
{
"name": "__reservedB1",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "__reservedB2",
"type": "uint16",
"internalType": "uint16"
},
{
"name": "__reservedB3",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "lastUnpausedAt",
"type": "uint64",
"internalType": "uint64"
}
]
}
],
"anonymous": false
},
{
"type": "event",
"name": "TransitionContested",
Expand Down Expand Up @@ -1799,6 +1697,16 @@
"name": "L1_ALREADY_PROVED",
"inputs": []
},
{
"type": "error",
"name": "L1_BATCH_TRANSFER_FAILED",
"inputs": []
},
{
"type": "error",
"name": "L1_BATCH_TRANSFER_FAILED",
"inputs": []
},
{
"type": "error",
"name": "L1_BLOB_NOT_AVAILABLE",
Expand Down Expand Up @@ -1864,11 +1772,6 @@
"name": "L1_INVALID_CONFIG",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_CONFIG",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_GENESIS_HASH",
Expand All @@ -1879,16 +1782,6 @@
"name": "L1_INVALID_GENESIS_HASH",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_HOOK",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_HOOK",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_PARAM",
Expand All @@ -1904,16 +1797,6 @@
"name": "L1_INVALID_PAUSE_STATUS",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_PROVER",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_PROVER",
"inputs": []
},
{
"type": "error",
"name": "L1_INVALID_SIG",
Expand Down Expand Up @@ -1949,11 +1832,6 @@
"name": "L1_LIVENESS_BOND_NOT_RECEIVED",
"inputs": []
},
{
"type": "error",
"name": "L1_LIVENESS_BOND_NOT_RECEIVED",
"inputs": []
},
{
"type": "error",
"name": "L1_NOT_ASSIGNED_PROVER",
Expand All @@ -1964,11 +1842,6 @@
"name": "L1_NOT_ASSIGNED_PROVER",
"inputs": []
},
{
"type": "error",
"name": "L1_NOT_SAME_ADDRESS",
"inputs": []
},
{
"type": "error",
"name": "L1_NO_HOOKS",
Expand All @@ -1989,11 +1862,6 @@
"name": "L1_TOO_LATE",
"inputs": []
},
{
"type": "error",
"name": "L1_TOO_LATE",
"inputs": []
},
{
"type": "error",
"name": "L1_TOO_MANY_BLOCKS",
Expand Down
Loading

0 comments on commit cce7c3a

Please sign in to comment.