Skip to content

Commit

Permalink
add --module-name to keygen (#10)
Browse files Browse the repository at this point in the history
* add --module-name to coral-cli

* update docs

* make sure module_name is actually valid [u8; 32]
  • Loading branch information
kamiyaa authored Mar 25, 2024
1 parent d030ce3 commit df10589
Show file tree
Hide file tree
Showing 13 changed files with 2,198 additions and 1,900 deletions.
560 changes: 353 additions & 207 deletions coral-cli/abi/NoRestakingModule.json → coral-cli/abi/PufferModule.json

Large diffs are not rendered by default.

1,067 changes: 1,067 additions & 0 deletions coral-cli/abi/PufferModuleManager.json

Large diffs are not rendered by default.

314 changes: 314 additions & 0 deletions coral-cli/abi/PufferOracleV2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
[
{
"type": "constructor",
"inputs": [
{
"name": "guardianModule",
"type": "address",
"internalType": "contract IGuardianModule"
},
{
"name": "vault",
"type": "address",
"internalType": "address payable"
},
{
"name": "accessManager",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "GUARDIAN_MODULE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IGuardianModule"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PUFFER_VAULT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address payable"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "authority",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "exitValidators",
"inputs": [
{
"name": "numberOfExits",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getLockedEthAmount",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getTotalNumberOfValidators",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getValidatorTicketPrice",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isConsumingScheduledOp",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isOverBurstThreshold",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "provisionNode",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setAuthority",
"inputs": [
{
"name": "newAuthority",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setMintPrice",
"inputs": [
{
"name": "newPrice",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setTotalNumberOfValidators",
"inputs": [
{
"name": "newTotalNumberOfValidators",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "epochNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "guardianEOASignatures",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "AuthorityUpdated",
"inputs": [
{
"name": "authority",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NumberOfActiveValidators",
"inputs": [
{
"name": "numberOfActivePufferValidators",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TotalNumberOfValidatorsUpdated",
"inputs": [
{
"name": "oldNumberOfValidators",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newNumberOfValidators",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "epochNumber",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ValidatorTicketMintPriceUpdated",
"inputs": [
{
"name": "oldPrice",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newPrice",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AccessManagedInvalidAuthority",
"inputs": [
{
"name": "authority",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "AccessManagedRequiredDelay",
"inputs": [
{
"name": "caller",
"type": "address",
"internalType": "address"
},
{
"name": "delay",
"type": "uint32",
"internalType": "uint32"
}
]
},
{
"type": "error",
"name": "AccessManagedUnauthorized",
"inputs": [
{
"name": "caller",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "InvalidUpdate",
"inputs": []
},
{
"type": "error",
"name": "InvalidValidatorTicketPrice",
"inputs": []
}
]
28 changes: 10 additions & 18 deletions coral-cli/abi/PufferProtocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"internalType": "contract IGuardianModule"
},
{
"name": "moduleFactory",
"name": "moduleManager",
"type": "address",
"internalType": "address"
},
Expand Down Expand Up @@ -45,13 +45,13 @@
},
{
"type": "function",
"name": "PUFFER_MODULE_FACTORY",
"name": "PUFFER_MODULE_MANAGER",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IPufferModuleFactory"
"internalType": "contract IPufferModuleManager"
}
],
"stateMutability": "view"
Expand Down Expand Up @@ -197,16 +197,6 @@
"name": "moduleName",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "metadataURI",
"type": "string",
"internalType": "string"
},
{
"name": "delegationApprover",
"type": "address",
"internalType": "address"
}
],
"outputs": [
Expand Down Expand Up @@ -637,11 +627,6 @@
"name": "accessManager",
"type": "address",
"internalType": "address"
},
{
"name": "noRestakingModule",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
Expand Down Expand Up @@ -805,6 +790,13 @@
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "revertIfPaused",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setAuthority",
Expand Down
Loading

0 comments on commit df10589

Please sign in to comment.