diff --git a/web/src/contracts.js b/web/src/contracts.js index 220d977..d5f49b7 100644 --- a/web/src/contracts.js +++ b/web/src/contracts.js @@ -43,6 +43,7 @@ const contracts = { }, RocketMinipoolManager: { address: [ + "0xF82991Bd8976c243eB3b7CDDc52AB0Fc8dc1246C", "0x09fbCE43e4021a3F69C4599FF00362b83edA501E", "0x6d010C43d4e96D74C422f2e27370AF48711B49bF", "0x84d11b65e026f7aa08f5497dd3593fb083410b71", diff --git a/web/src/generated/contracts/RocketMinipoolDelegate.json b/web/src/generated/contracts/RocketMinipoolDelegate.json index 98f0864..a32af99 100644 --- a/web/src/generated/contracts/RocketMinipoolDelegate.json +++ b/web/src/generated/contracts/RocketMinipoolDelegate.json @@ -1,6 +1,31 @@ { "contractName": "RocketMinipoolDelegate", "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "previousBondAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newBondAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "BondReduced", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -131,6 +156,19 @@ "name": "MinipoolPrestaked", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "MinipoolPromoted", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -144,6 +182,31 @@ "name": "MinipoolScrubbed", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "bondAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "currentBalance", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "MinipoolVacancyPrepared", + "type": "event" + }, { "anonymous": false, "inputs": [ @@ -184,12 +247,44 @@ }, { "inputs": [], - "name": "version", + "name": "beginUserDistribute", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_balance", + "type": "uint256" + } + ], + "name": "calculateNodeShare", "outputs": [ { - "internalType": "uint8", + "internalType": "uint256", "name": "", - "type": "uint8" + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_balance", + "type": "uint256" + } + ], + "name": "calculateUserShare", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" } ], "stateMutability": "view", @@ -197,12 +292,12 @@ }, { "inputs": [], - "name": "getStatus", + "name": "canPromote", "outputs": [ { - "internalType": "enum MinipoolStatus", + "internalType": "bool", "name": "", - "type": "uint8" + "type": "bool" } ], "stateMutability": "view", @@ -210,7 +305,7 @@ }, { "inputs": [], - "name": "getFinalised", + "name": "canStake", "outputs": [ { "internalType": "bool", @@ -223,12 +318,53 @@ }, { "inputs": [], - "name": "getStatusBlock", + "name": "close", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "deposit", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "dissolve", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_rewardsOnly", + "type": "bool" + } + ], + "name": "distributeBalance", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "finalise", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getDepositType", "outputs": [ { - "internalType": "uint256", + "internalType": "enum MinipoolDeposit", "name": "", - "type": "uint256" + "type": "uint8" } ], "stateMutability": "view", @@ -236,26 +372,33 @@ }, { "inputs": [], - "name": "getStatusTime", + "name": "getFinalised", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "getNodeAddress", + "outputs": [ { "internalType": "address", - "name": "_member", + "name": "", "type": "address" } ], - "name": "getScrubVoted", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getNodeDepositAssigned", "outputs": [ { "internalType": "bool", @@ -268,12 +411,12 @@ }, { "inputs": [], - "name": "getDepositType", + "name": "getNodeDepositBalance", "outputs": [ { - "internalType": "enum MinipoolDeposit", + "internalType": "uint256", "name": "", - "type": "uint8" + "type": "uint256" } ], "stateMutability": "view", @@ -281,12 +424,12 @@ }, { "inputs": [], - "name": "getNodeAddress", + "name": "getNodeFee", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "stateMutability": "view", @@ -294,7 +437,7 @@ }, { "inputs": [], - "name": "getNodeFee", + "name": "getNodeRefundBalance", "outputs": [ { "internalType": "uint256", @@ -307,7 +450,7 @@ }, { "inputs": [], - "name": "getNodeDepositBalance", + "name": "getNodeTopUpValue", "outputs": [ { "internalType": "uint256", @@ -320,7 +463,7 @@ }, { "inputs": [], - "name": "getNodeRefundBalance", + "name": "getPreLaunchValue", "outputs": [ { "internalType": "uint256", @@ -333,7 +476,26 @@ }, { "inputs": [], - "name": "getNodeDepositAssigned", + "name": "getPreMigrationBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_member", + "type": "address" + } + ], + "name": "getScrubVoted", "outputs": [ { "internalType": "bool", @@ -346,7 +508,46 @@ }, { "inputs": [], - "name": "getUserDepositBalance", + "name": "getStatus", + "outputs": [ + { + "internalType": "enum MinipoolStatus", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getStatusBlock", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getStatusTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTotalScrubVotes", "outputs": [ { "internalType": "uint256", @@ -385,7 +586,7 @@ }, { "inputs": [], - "name": "getTotalScrubVotes", + "name": "getUserDepositBalance", "outputs": [ { "internalType": "uint256", @@ -396,17 +597,38 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "getUserDistributed", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getVacant", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { "internalType": "address", "name": "_nodeAddress", "type": "address" - }, - { - "internalType": "enum MinipoolDeposit", - "name": "_depositType", - "type": "uint8" } ], "name": "initialise", @@ -416,6 +638,11 @@ }, { "inputs": [ + { + "internalType": "uint256", + "name": "_bondValue", + "type": "uint256" + }, { "internalType": "bytes", "name": "_validatorPubkey", @@ -432,50 +659,55 @@ "type": "bytes32" } ], - "name": "nodeDeposit", + "name": "preDeposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "userDeposit", + "inputs": [ + { + "internalType": "uint256", + "name": "_bondAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_currentBalance", + "type": "uint256" + } + ], + "name": "prepareVacancy", "outputs": [], - "stateMutability": "payable", + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "refund", + "name": "promote", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "slash", + "name": "reduceBondAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "finalise", + "name": "refund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "canStake", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", + "name": "slash", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { @@ -498,77 +730,37 @@ }, { "inputs": [], - "name": "setWithdrawable", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "distributeBalanceAndFinalise", + "name": "userDeposit", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { "inputs": [], - "name": "distributeBalance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_balance", - "type": "uint256" - } - ], - "name": "calculateNodeShare", + "name": "userDistributeAllowed", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_balance", - "type": "uint256" - } - ], - "name": "calculateUserShare", + "inputs": [], + "name": "version", "outputs": [ { - "internalType": "uint256", + "internalType": "uint8", "name": "", - "type": "uint256" + "type": "uint8" } ], "stateMutability": "view", "type": "function" }, - { - "inputs": [], - "name": "dissolve", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "close", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [], "name": "voteScrub",