Skip to content

Commit

Permalink
fix: more audit remediations (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz authored Nov 7, 2024
1 parent 5ed4429 commit f17e2e5
Show file tree
Hide file tree
Showing 34 changed files with 859 additions and 548 deletions.
31 changes: 31 additions & 0 deletions contracts-abi/abi/L1Gateway.abi
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setRelayer",
"inputs": [
{
"name": "_relayer",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferFinalizedIdx",
Expand Down Expand Up @@ -424,6 +437,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "RelayerSet",
"inputs": [
{
"name": "relayer",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TransferFinalized",
Expand Down Expand Up @@ -725,6 +751,11 @@
"name": "ReentrancyGuardReentrantCall",
"inputs": []
},
{
"type": "error",
"name": "RelayerCannotBeZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "SenderNotRelayer",
Expand Down
2 changes: 1 addition & 1 deletion contracts-abi/abi/MevCommitAVS.abi
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@
"name": "unfreeze",
"inputs": [
{
"name": "valPubKey",
"name": "valPubKeys",
"type": "bytes[]",
"internalType": "bytes[]"
}
Expand Down
100 changes: 45 additions & 55 deletions contracts-abi/abi/MevCommitMiddleware.abi
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,6 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "executeSlashes",
"inputs": [
{
"name": "blsPubkeys",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "slashIndexes",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [
{
"name": "slashedAmounts",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getLatestSlashAmount",
Expand Down Expand Up @@ -945,6 +921,30 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "wouldVaultBeValidWith",
"inputs": [
{
"name": "vault",
"type": "address",
"internalType": "address"
},
{
"name": "potentialSLashPeriodSeconds",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "Initialized",
Expand Down Expand Up @@ -1284,37 +1284,6 @@
],
"anonymous": false
},
{
"type": "event",
"name": "ValidatorSlashRequested",
"inputs": [
{
"name": "blsPubkey",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "operator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "vault",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "slashIndex",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ValidatorSlashed",
Expand Down Expand Up @@ -1475,6 +1444,27 @@
"name": "FailedInnerCall",
"inputs": []
},
{
"type": "error",
"name": "FailedToAddValidatorToValset",
"inputs": [
{
"name": "blsPubkey",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "vault",
"type": "address",
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "FullRestakeDelegatorNotSupported",
Expand Down
31 changes: 31 additions & 0 deletions contracts-abi/abi/SettlementGateway.abi
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,19 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setRelayer",
"inputs": [
{
"name": "_relayer",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferFinalizedIdx",
Expand Down Expand Up @@ -410,6 +423,19 @@
],
"anonymous": false
},
{
"type": "event",
"name": "RelayerSet",
"inputs": [
{
"name": "relayer",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TransferFinalized",
Expand Down Expand Up @@ -651,6 +677,11 @@
"name": "ReentrancyGuardReentrantCall",
"inputs": []
},
{
"type": "error",
"name": "RelayerCannotBeZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "SenderNotRelayer",
Expand Down
21 changes: 19 additions & 2 deletions contracts-abi/abi/ValidatorOptInRouter.abi
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,25 @@
"outputs": [
{
"name": "",
"type": "bool[]",
"internalType": "bool[]"
"type": "tuple[]",
"internalType": "struct IValidatorOptInRouter.OptInStatus[]",
"components": [
{
"name": "isVanillaOptedIn",
"type": "bool",
"internalType": "bool"
},
{
"name": "isAvsOptedIn",
"type": "bool",
"internalType": "bool"
},
{
"name": "isMiddlewareOptedIn",
"type": "bool",
"internalType": "bool"
}
]
}
],
"stateMutability": "view"
Expand Down
167 changes: 166 additions & 1 deletion contracts-abi/clients/L1Gateway/L1Gateway.go

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions contracts-abi/clients/MevCommitAVS/MevCommitAVS.go

Large diffs are not rendered by default.

209 changes: 32 additions & 177 deletions contracts-abi/clients/MevCommitMiddleware/MevCommitMiddleware.go

Large diffs are not rendered by default.

167 changes: 166 additions & 1 deletion contracts-abi/clients/SettlementGateway/SettlementGateway.go

Large diffs are not rendered by default.

Loading

0 comments on commit f17e2e5

Please sign in to comment.