Skip to content

Commit

Permalink
refactor: misc contract audit fixes (#409)
Browse files Browse the repository at this point in the history
* refactor: misc contract fixes

* abi + binding
  • Loading branch information
shaspitz authored Sep 24, 2024
1 parent a1d9f63 commit 0f32940
Show file tree
Hide file tree
Showing 24 changed files with 2,629 additions and 198 deletions.
56 changes: 54 additions & 2 deletions contracts-abi/abi/BidderRegistry.abi
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@
},
{
"type": "function",
"name": "preConfirmationsContract",
"name": "preconfManager",
"inputs": [],
"outputs": [
{
Expand Down Expand Up @@ -502,6 +502,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setBlockTrackerContract",
"inputs": [
{
"name": "newBlockTrackerContract",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setNewFeePayoutPeriodBlocks",
Expand Down Expand Up @@ -543,7 +556,7 @@
},
{
"type": "function",
"name": "setPreconfirmationsContract",
"name": "setPreconfManager",
"inputs": [
{
"name": "contractAddress",
Expand Down Expand Up @@ -728,6 +741,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "BlockTrackerUpdated",
"inputs": [
{
"name": "newBlockTracker",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FeePayoutPeriodBlocksUpdated",
Expand All @@ -741,6 +767,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "FeePercentUpdated",
"inputs": [
{
"name": "newFeePercent",
"type": "uint16",
"indexed": true,
"internalType": "uint16"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FeeTransfer",
Expand Down Expand Up @@ -892,6 +931,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "PreconfManagerUpdated",
"inputs": [
{
"name": "newPreconfManager",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ProtocolFeeRecipientUpdated",
Expand Down
54 changes: 53 additions & 1 deletion contracts-abi/abi/Oracle.abi
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"name": "initialize",
"inputs": [
{
"name": "preConfContract_",
"name": "preconfManager_",
"type": "address",
"internalType": "address"
},
Expand Down Expand Up @@ -191,6 +191,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setBlockTracker",
"inputs": [
{
"name": "newBlockTracker",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setOracleAccount",
Expand All @@ -204,6 +217,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setPreconfManager",
"inputs": [
{
"name": "newPreconfManager",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
Expand Down Expand Up @@ -242,6 +268,19 @@
"outputs": [],
"stateMutability": "payable"
},
{
"type": "event",
"name": "BlockTrackerSet",
"inputs": [
{
"name": "newBlockTracker",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CommitmentProcessed",
Expand Down Expand Up @@ -344,6 +383,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "PreconfManagerSet",
"inputs": [
{
"name": "newPreconfManager",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Unpaused",
Expand Down
104 changes: 104 additions & 0 deletions contracts-abi/abi/PreconfManager.abi
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,32 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateBlockTracker",
"inputs": [
{
"name": "newBlockTracker",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateBlocksPerWindow",
"inputs": [
{
"name": "newBlocksPerWindow",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateCommitmentDispatchWindow",
Expand Down Expand Up @@ -1186,6 +1212,58 @@
],
"stateMutability": "pure"
},
{
"type": "event",
"name": "BidderRegistryUpdated",
"inputs": [
{
"name": "newBidderRegistry",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "BlockTrackerUpdated",
"inputs": [
{
"name": "newBlockTracker",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "BlocksPerWindowUpdated",
"inputs": [
{
"name": "newBlocksPerWindow",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CommitmentDispatchWindowUpdated",
"inputs": [
{
"name": "newDispatchWindow",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Initialized",
Expand Down Expand Up @@ -1296,6 +1374,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "OracleContractUpdated",
"inputs": [
{
"name": "newOracleContract",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferStarted",
Expand Down Expand Up @@ -1347,6 +1438,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "ProviderRegistryUpdated",
"inputs": [
{
"name": "newProviderRegistry",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SignatureVerified",
Expand Down
Loading

0 comments on commit 0f32940

Please sign in to comment.