Skip to content

Commit

Permalink
Merge pull request #8 from PufferFinance/calldata
Browse files Browse the repository at this point in the history
Add `generate-register-calldata` command
  • Loading branch information
kamiyaa authored Mar 20, 2024
2 parents af9f395 + e386e74 commit 5a2280d
Show file tree
Hide file tree
Showing 11 changed files with 2,310 additions and 510 deletions.
214 changes: 133 additions & 81 deletions coral-cli/abi/GuardianModule.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@
},
{
"type": "function",
"name": "changeThreshold",
"inputs": [
"name": "getEjectionThreshold",
"inputs": [],
"outputs": [
{
"name": "newThreshold",
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
"stateMutability": "view"
},
{
"type": "function",
Expand Down Expand Up @@ -276,31 +276,112 @@
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setEjectionThreshold",
"inputs": [
{
"name": "newThreshold",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setGuardianEnclaveMeasurements",
"inputs": [
{
"name": "newMrenclave",
"name": "newMrEnclave",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "newMrsigner",
"name": "newMrSigner",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setThreshold",
"inputs": [
{
"name": "newThreshold",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "splitGuardianFunds",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "validateBatchWithdrawals",
"inputs": [
{
"name": "validatorInfos",
"type": "tuple[]",
"internalType": "struct StoppedValidatorInfo[]",
"components": [
{
"name": "module",
"type": "address",
"internalType": "address"
},
{
"name": "startEpoch",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "endEpoch",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "wasSlashed",
"type": "bool",
"internalType": "bool"
},
{
"name": "moduleName",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "pufferModuleIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "withdrawalAmount",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "eoaSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"type": "function",
"name": "validateGuardiansEOASignatures",
Expand Down Expand Up @@ -349,83 +430,12 @@
],
"stateMutability": "view"
},
{
"type": "function",
"name": "validatePostFullWithdrawalsRoot",
"inputs": [
{
"name": "root",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "blockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "modules",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "amounts",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "guardianSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"type": "function",
"name": "validateProofOfReserve",
"inputs": [
{
"name": "lockedETH",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "blockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "numberOfActivePufferValidators",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalNumberOfValidators",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "guardianSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"type": "function",
"name": "validateProvisionNode",
"inputs": [
{
"name": "validatorIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "vtBurnOffset",
"name": "pufferModuleIndex",
"type": "uint256",
"internalType": "uint256"
},
Expand All @@ -450,7 +460,7 @@
"internalType": "bytes32"
},
{
"name": "guardianEnclaveSignatures",
"name": "enclaveSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
Expand All @@ -473,7 +483,30 @@
"internalType": "uint256"
},
{
"name": "guardianEOASignatures",
"name": "eoaSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "view"
},
{
"type": "function",
"name": "validateTotalNumberOfValidators",
"inputs": [
{
"name": "newNumberOfValidators",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "epochNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "eoaSignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
Expand All @@ -494,6 +527,25 @@
],
"anonymous": false
},
{
"type": "event",
"name": "EjectionThresholdChanged",
"inputs": [
{
"name": "oldThreshold",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newThreshold",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "GuardianAdded",
Expand Down
Loading

0 comments on commit 5a2280d

Please sign in to comment.