diff --git a/scripts/InRangeEvents.ts b/scripts/InRangeEvents.ts index 9277090b..3652f548 100644 --- a/scripts/InRangeEvents.ts +++ b/scripts/InRangeEvents.ts @@ -8,7 +8,7 @@ const EXAMPLE_BLOCK = 1300500; // 17:23 19.04.2024 1300500 block const CONTRACT_ADDRESS = "0x0000000000000000000000000000000000000105"; const CONTRACT_NAME = "RewardPool"; const EVENT = "ValidatorRewardDistributed(address indexed validator, uint256 amount)"; -const VALIDATOR_ADDRESS = "PUT ADDRESS HERE"; +const VALIDATOR_ADDRESS = "PUT_ADDRESS_HERE"; const YOUR_START_BLOCK = EXAMPLE_BLOCK - 1000; const YOUR_END_BLOCK = EXAMPLE_BLOCK; diff --git a/scripts/SumBlockForOne.ts b/scripts/SumBlockForOne.ts index 17f789be..b3715faf 100644 --- a/scripts/SumBlockForOne.ts +++ b/scripts/SumBlockForOne.ts @@ -4,7 +4,7 @@ import { ethers } from "hardhat"; // Input parameters for the function: const blockNumber = 1301000; const maxBlockNumber = 1335500; -const validatorAddress = "PUT ADDRESS HERE"; +const validatorAddress = "PUT_ADDRESS_HERE"; const contractAddress = "0x0000000000000000000000000000000000000105"; const functionName = "distributeRewardsFor"; @@ -41,6 +41,15 @@ function getAddressBigNumber(data: any, address: any) { // Get the sum of signed blocks for user async function getSumBlocks() { + console.log( + ` + _________________________________ + +Summing the signed blocks +for ${validatorAddress} +from ${blockNumber} to ${maxBlockNumber} block + _________________________________` + ); let sum: number = 0; for (let i = blockNumber; i < maxBlockNumber; i += 500) { const blocks = await getTransactionsByBlock(i);