Skip to content

Commit

Permalink
fix(relayer): new abi gen bindings (#13342)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey authored Mar 17, 2023
1 parent b115f95 commit 8655ff1
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 348 deletions.
6 changes: 1 addition & 5 deletions packages/protocol/contracts/bridge/libs/LibBridgeStatus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ library LibBridgeStatus {
) internal {
if (getMessageStatus(msgHash) != status) {
_setMessageStatus(msgHash, status);
emit LibBridgeStatus.MessageStatusChanged(
msgHash,
status,
msg.sender
);
emit MessageStatusChanged(msgHash, status, msg.sender);
}
}

Expand Down
227 changes: 4 additions & 223 deletions packages/relayer/TaikoL1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
{
"inputs": [],
"name": "L1_ALREADY_CLAIMED",
"name": "L1_0_FEE_BASE",
"type": "error"
},
{
Expand Down Expand Up @@ -79,11 +79,6 @@
"name": "L1_ANCHOR_TYPE",
"type": "error"
},
{
"inputs": [],
"name": "L1_BLOCK_NOT_CLAIMED",
"type": "error"
},
{
"inputs": [],
"name": "L1_BLOCK_NUMBER",
Expand All @@ -99,26 +94,6 @@
"name": "L1_CANNOT_BE_FIRST_PROVER",
"type": "error"
},
{
"inputs": [],
"name": "L1_CLAIM_AUCTION_DELAY_PASSED",
"type": "error"
},
{
"inputs": [],
"name": "L1_CLAIM_AUCTION_DELAY_PASSED",
"type": "error"
},
{
"inputs": [],
"name": "L1_CLAIM_AUCTION_WINDOW_PASSED",
"type": "error"
},
{
"inputs": [],
"name": "L1_CLAIM_AUCTION_WINDOW_PASSED",
"type": "error"
},
{
"inputs": [],
"name": "L1_COMMITTED",
Expand Down Expand Up @@ -159,24 +134,19 @@
"name": "L1_ID",
"type": "error"
},
{
"inputs": [],
"name": "L1_ID",
"type": "error"
},
{
"inputs": [],
"name": "L1_INPUT_SIZE",
"type": "error"
},
{
"inputs": [],
"name": "L1_INVALID_CLAIM_DEPOSIT",
"name": "L1_INVALID_CONFIG",
"type": "error"
},
{
"inputs": [],
"name": "L1_INVALID_CLAIM_DEPOSIT",
"name": "L1_INVALID_CONFIG",
"type": "error"
},
{
Expand Down Expand Up @@ -219,11 +189,6 @@
"name": "L1_SOLO_PROPOSER",
"type": "error"
},
{
"inputs": [],
"name": "L1_TOO_EARLY",
"type": "error"
},
{
"inputs": [],
"name": "L1_TOO_MANY_BLOCKS",
Expand All @@ -249,37 +214,6 @@
"name": "RESOLVER_INVALID_ADDR",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "claimer",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "refundedAt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "refund",
"type": "uint256"
}
],
"name": "BidRefunded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -431,37 +365,6 @@
"name": "BlockVerified",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "claimer",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "claimedAt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "deposit",
"type": "uint256"
}
],
"name": "ClaimBlockBid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -526,55 +429,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "claimBlock",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "claimForProposedBlock",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "claimedAt",
"type": "uint256"
},
{
"internalType": "address",
"name": "claimer",
"type": "address"
},
{
"internalType": "uint256",
"name": "deposit",
"type": "uint256"
}
],
"internalType": "struct TaikoData.Claim",
"name": "claim",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -736,31 +590,6 @@
"internalType": "bool",
"name": "enableAnchorValidation",
"type": "bool"
},
{
"internalType": "uint64",
"name": "baseClaimHoldTimeInSeconds",
"type": "uint64"
},
{
"internalType": "uint256",
"name": "baseClaimDepositInWei",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minimumClaimBidIncreaseInWei",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "claimAuctionWindowInSeconds",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "claimAuctionDelayInSeconds",
"type": "uint64"
}
],
"internalType": "struct TaikoData.Config",
Expand Down Expand Up @@ -836,23 +665,13 @@
"internalType": "uint64",
"name": "proposedAt",
"type": "uint64"
},
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "getProofReward",
"outputs": [
{
"internalType": "uint256",
"name": "eth",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "token",
"name": "reward",
"type": "uint256"
}
],
Expand Down Expand Up @@ -1021,44 +840,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "isClaimForProposedBlockStillValid",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockId",
"type": "uint256"
}
],
"name": "isClaimedBlockProvable",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down
65 changes: 53 additions & 12 deletions packages/relayer/contracts/bridge/Bridge.go

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions packages/relayer/contracts/iheadersync/IHeaderSync.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/relayer/contracts/taikol1/TaikoL1.go

Large diffs are not rendered by default.

Loading

0 comments on commit 8655ff1

Please sign in to comment.