From 240c3c4378038485e6e6e2a1fcc079300c0d788e Mon Sep 17 00:00:00 2001 From: POA <33550681+poa@users.noreply.github.com> Date: Fri, 22 Jan 2021 15:32:07 +0300 Subject: [PATCH 1/5] Add Staking DApp autoswitching to eth_blockNumber --- .../_stakes_modal_delegators_list.html.eex | 10 +- .../lib/explorer/staking/contract_reader.ex | 2 + .../lib/explorer/staking/contract_state.ex | 244 +++++++++++------- .../explorer/staking/contract_state_test.exs | 28 +- .../lib/indexer/block/realtime/fetcher.ex | 6 +- 5 files changed, 175 insertions(+), 115 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex index 67f81ff442..76ae952269 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex @@ -2,7 +2,7 @@