Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(rocket-pool): Fix minipool balances (#2583)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin authored Apr 20, 2023
1 parent dc967a6 commit 53be6cb
Show file tree
Hide file tree
Showing 10 changed files with 4,561 additions and 18 deletions.
225 changes: 225 additions & 0 deletions src/apps/rocket-pool/contracts/abis/rocket-minipool-manager.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,234 @@
[
{
"inputs": [
{ "internalType": "contract RocketStorageInterface", "name": "_rocketStorageAddress", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "minipool", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "node", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "time", "type": "uint256" }
],
"name": "MinipoolCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "minipool", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "node", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "time", "type": "uint256" }
],
"name": "MinipoolDestroyed",
"type": "event"
},
{
"inputs": [
{ "internalType": "address", "name": "_nodeAddress", "type": "address" },
{ "internalType": "enum MinipoolDeposit", "name": "_depositType", "type": "uint8" },
{ "internalType": "uint256", "name": "_salt", "type": "uint256" }
],
"name": "createMinipool",
"outputs": [{ "internalType": "contract RocketMinipoolInterface", "name": "", "type": "address" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "decrementNodeStakingMinipoolCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{ "inputs": [], "name": "destroyMinipool", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
{
"inputs": [],
"name": "getActiveMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFinalisedMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "_index", "type": "uint256" }],
"name": "getMinipoolAt",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "bytes", "name": "_pubkey", "type": "bytes" }],
"name": "getMinipoolByPubkey",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMinipoolBytecode",
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "getMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "offset", "type": "uint256" },
{ "internalType": "uint256", "name": "limit", "type": "uint256" }
],
"name": "getMinipoolCountPerStatus",
"outputs": [
{ "internalType": "uint256", "name": "initialisedCount", "type": "uint256" },
{ "internalType": "uint256", "name": "prelaunchCount", "type": "uint256" },
{ "internalType": "uint256", "name": "stakingCount", "type": "uint256" },
{ "internalType": "uint256", "name": "withdrawableCount", "type": "uint256" },
{ "internalType": "uint256", "name": "dissolvedCount", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_minipoolAddress", "type": "address" }],
"name": "getMinipoolDestroyed",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_minipoolAddress", "type": "address" }],
"name": "getMinipoolExists",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_minipoolAddress", "type": "address" }],
"name": "getMinipoolPubkey",
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_minipoolAddress", "type": "address" }],
"name": "getMinipoolWithdrawalCredentials",
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "getNodeActiveMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "getNodeFinalisedMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "_nodeAddress", "type": "address" },
{ "internalType": "uint256", "name": "_index", "type": "uint256" }
],
"name": "getNodeMinipoolAt",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "getNodeMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "getNodeStakingMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "_nodeAddress", "type": "address" },
{ "internalType": "uint256", "name": "_index", "type": "uint256" }
],
"name": "getNodeValidatingMinipoolAt",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "getNodeValidatingMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "offset", "type": "uint256" },
{ "internalType": "uint256", "name": "limit", "type": "uint256" }
],
"name": "getPrelaunchMinipools",
"outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStakingMinipoolCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "incrementNodeFinalisedMinipoolCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "_nodeAddress", "type": "address" }],
"name": "incrementNodeStakingMinipoolCount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "bytes", "name": "_pubkey", "type": "bytes" }],
"name": "setMinipoolPubkey",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 53be6cb

Please sign in to comment.