Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly show balances #6

Closed
acravenho opened this issue Mar 6, 2018 · 0 comments
Closed

Correctly show balances #6

acravenho opened this issue Mar 6, 2018 · 0 comments

Comments

@acravenho
Copy link
Contributor

acravenho commented Mar 6, 2018

Balances are not currently being calculated correctly.

Internal transactions are not being counted in balance. Totaling all internal transactions will provide the correct balance.

@acravenho acravenho added bug 🐛 Something isn't working to do and removed to do labels Mar 6, 2018
@acravenho acravenho added this to the Vienna milestone May 4, 2018
@acravenho acravenho moved this from To do to In progress in Architecture, Workers, Database May 11, 2018
@acravenho acravenho moved this from In progress to Done in Architecture, Workers, Database May 16, 2018
@jimmay5469 jimmay5469 added Vienna and removed Vienna labels May 17, 2018
@jimmay5469 jimmay5469 added Vienna and removed Vienna labels May 25, 2018
dennis00010011b added a commit to dennis00010011b/blockscout that referenced this issue Dec 11, 2018
jcortejoso pushed a commit to jcortejoso/blockscout that referenced this issue Sep 27, 2019
fallengravity added a commit to xero-official/blockscout that referenced this issue Nov 8, 2019
fallengravity added a commit to athofficial/blockscout that referenced this issue Nov 14, 2019
jcortejoso pushed a commit to jcortejoso/blockscout that referenced this issue Jan 16, 2020
ArseniiPetrovich pushed a commit to ArseniiPetrovich/blockscout that referenced this issue Nov 3, 2020
* add default query to graphiql-playground

* pass default query to GraphiQL interface

* add missing alias

* fix credo

* do not try to convert nils in logs

* mix format

* do not create contracts on failed parent transactions

* exclude test from parity

* remove output field from internal transaction

* add indexes for block_reward query

* check if to_address_hash is contract address to fetch internal transactions

* pass json_rpc_arguments to Chain.contract_address?

* fetch address balances in code fetcher

* fix dialyzer

* feat: show an approximation of transaction time

* fix: add coin_balance_status to address_validations

* fix: resolve lodash security alert

* fix: configure BLOCKSCOUT_VERSION in a standard way
ArseniiPetrovich pushed a commit to ArseniiPetrovich/blockscout that referenced this issue Nov 3, 2020
* Deps update: initial commit

* Update Phoenix 1.4 -> 1.5, Elixir 1.10.2 -> 1.10.3

* Pending txs per address API endpoint

* Fix coin balance history page if no balance changes

* Add CHANGELOG entry

* Release 3.1.3

* Display and store revert reason on demand

* Update test

* Add tests

* Add unit tests

* Fix contract compilation tests for old versions of compiler: change compiler version since nightly versions of some older versions were removed

* Add CHANGELOG entry

* Disable Pending transactions supervisor

* trace_block for BESU

* Proxy contracts: decoding using implementation ABI

* Check if implementation is verified

* Decode log in proxy contracts

* Add tests

* Fix several tests

* Blockcout 3.2.0

* Read proxy

* Proxy reader: handle function with params

* Write contracts: a new tab with the list of write methods

* Check if Metamask is authorized, increase container width to comply with increased max possible number of tabs

* A modal window with pending tx hash

* Write contract feature: support payble methods

* Change button name from query to write

* Write proxy contract feature

* Fix for definnition of contract type: proxy/regular

* Write proxy: remove redundant variable declaration: contract_type

* Fix for acocunts page with token-bridge supply and inexistent bridge contracts

* Add Changelog entry

* Fix for verification of contracts from genesis block

* Add CHANGELOG entry

* Import accounts from Geth geenesis

* Update CHANGELOG entry

* Add tests

* Exclude constructors from Write contract page

* Fix error on token\'s read contract tab

* Add tests

* Display implementation address at read/write proxy tabs

* EIP-1967 support

* Blockscout 3.3.0

* eip1967 update: handle different size response from eth_getStorageAt for implementation address

* Fix permanent fetching tokens and unavailable navbar menu when read/write proxy tab is active

* Return correct status to verify api if conntract verified, remove Kovan from the list of default chains

* Besu: Add revertReason key

* Apps menu item

* Add env vars to Docker setup

* Transaction page: decoding logs from called contracts

* Add HCANGELOG entry

* Address logs decoding fix

* Improve decode log/method view

* Add CHANGELOG entry

* Refine decoding view of contract method, log on transaction page, refactoring

* Handle empty block author reward

* Fix non-interactive navbar at not found page

* Add CHANGELOG entry

* Raw trace copy button

* Add CHANGELOG entry

* Update npm deps

* Update node version in Circle CI config

* Show compilation error at conntract verification

* Connect to Metamask button

* Add top marging for implementation address container

* Fix verification with experimental features enabled

* Add CHANGELOG entry

* Improve get mined blocks query performance: remove grouping by number, timestamp

* Add CHANGELOG entry

* GraphQL Absinthe related packages update up to stable versions

* Add CHANGELOG entry

* Process GraphQL internal server error for address -> transactions query without first/last params

* Update Elixir version: 1.10.2 -> 1.10.3

* Add CHANGELOG entry

* Update deps

* Fix read contract bytes array type

* Fix view for read contract

* GraphQL: fix innternal server error at request of internal transactions at address

* Add CHANGELOG entry

* Remove line for debugging

* Fix tests

* Process TypeError: Cannot read property el of undefined

* Update CHANGELOG entry

* Github Actions CI config

* Add umbrella apps tests

* Update

* Disable flaky tests

* coveralls

* Decrease minimum coverage value

* Update CI status badge

* Update coveralls push

* Disable flaky test

* Fetch current token balances fix

* Temporarily remove coveralls step in CI

* coveralls

* pubsub for new token transfers

* Temp last

* Fix revert reason detection

* Remove flaky tests

* Finalize pubsub for token transfers

* Blockscout v3.3.1

* Fix navbar menu at block not found page

* Search in one click

* Adding Top tokens page

* Add Paging_params for Token

* Finally fix pagination at top tokens page

* Remove unused var

* Enable navbar at top tokens page

* Return page_size 50

* Fix notifier query for live update of token transfers

* Bridged tokens

* Remove caching of mix.exs from GA

* Fix tests

* Finalize bridged tokens

* Fix query for bridged token feature

* set default value for get_base_token_explorer_link function

* Make wobserver optional

* Mix format

* Fix foreign chaind detection

* Finalize bridged tokens

* Improve search: allow search with space

* Unlimited number of tokens in search results

* Searching results: improve ordering: token holders desc, name asc

* Fix for the contract verifiaction for solc 0.5 family with experimental features enabled

* Add CHANGELOG entry

* Fix dialyzer test

* Fix coin supply api

* Easy verification from verified twins

* Fix tests

* Fix one more test

* Fix contract funnction method detection

* Add CHANGELOG entry

* Fix tests

* Hide address tabs if no items

* Rwmove internal transactions tab hiding

* Fix gettext

* Style fixes: xDai links, search hover color, "token is bridged" text, handle token name at token page if name/symbol is empty

* Fix gettext

* Contract reader fix

* ETHEREUM_JSONRPC_JSON_RPC_TRANSPORT -> ETHEREUM_JSONRPC_TRANSPORT

* xDai: do not apply link style for buttons

* Gas price at the main page

* Tertiary color for gas price icon

* Update Docker config

* 3.3.2 release

* Fix for invisible validator address at block page

* Modified Blockscout repo

* Color & logo update

* moved image to right location

* UI changes (blockscout#5)

* Update _neutral_variables.scss

* Update _neutral_variables.scss

* Update config.exs

* Update config.exs

* Update config.exs

* Update default.po

* Update _topnav.html.eex

* Update _nav_tabs.scss

* Update _footer.html.eex

* Update _footer.html.eex

* Update default.pot

* Update default.pot

* Update default.po

* favicon

* Create favicon.ico

* Merge branch 'poanetwork-master' (blockscout#6)

* add default query to graphiql-playground

* pass default query to GraphiQL interface

* add missing alias

* fix credo

* do not try to convert nils in logs

* mix format

* do not create contracts on failed parent transactions

* exclude test from parity

* remove output field from internal transaction

* add indexes for block_reward query

* check if to_address_hash is contract address to fetch internal transactions

* pass json_rpc_arguments to Chain.contract_address?

* fetch address balances in code fetcher

* fix dialyzer

* feat: show an approximation of transaction time

* fix: add coin_balance_status to address_validations

* fix: resolve lodash security alert

* fix: configure BLOCKSCOUT_VERSION in a standard way

* after running "mix gettext.extract --merge"

* after running "mix gettext.extract --merge" inside "./apps/block_scout_web"

* added fuse logo

* remove apps/*/priv/static from ignore

* another attempt

* Revert "added fuse logo"

This reverts commit 3c4bc86.

* fuse network (blockscout#1)

* v2.0.1-beta modified to fuse

* prepare for deployment

* make docker work

* docker run command

* replaced price graph with images

* removed "warnings-as-errors" on compile

* updated footer

* Fuse explorer UI update (blockscout#2)

* frontend work and updated translations

* added rxjs and web3 libs, added util functions, added fuse.io to connect-src

* added other metrics

* remove hardcoded urls

* added changes to docker

* fixed typos

* added svg icons, added circle-progress, added more css changes

* fix alignment

* changed cycleEnd polling interval and changed algo for calc cycle length

* added new_cycle_module, added new util functions, added new ENV param VALIDAORS_INFO_URL, added show more link

* added margin to current cycle blocks value

* added css fix for mobile card

* added new classes to html to make page responsive on tablets

* display Fuse instead of Ether

* initial commit

* added upgrade changes

* added ui changes

* added final changes

* added fixes

* fix makefile var name for params

* fix for word spacing in transactions

* added new logo

* added footer-logo fix and make container start as daemon

Co-authored-by: Victor Baranov <baranov.viktor.27@gmail.com>
Co-authored-by: Arsenii Petrovich <arsenii.petrovich@altoros.com>
Co-authored-by: Marksmargon <mark@colu.co>
Co-authored-by: Lior Rabin <lior@colu.com>
Co-authored-by: Lior Rabin <lior9586@gmail.com>
Co-authored-by: Lior Rabin <lior@fusenet.io>
Co-authored-by: Lior Rabin <lior@fuse.io>
brianunlam referenced this issue in brianunlam/blockscout Sep 1, 2022
ivanshukhov pushed a commit to planq-network/blockscout that referenced this issue Sep 2, 2022
MayankMittal1 pushed a commit to MayankMittal1/fuse-explorer that referenced this issue Dec 27, 2022
* Application alerts management: whole explorer, staking dapp

* Fix trace internal transactions for create contract without code

We faced method handler crashed error in Kotti
```
[%{code: -32000, data: %{block_number: 1743966, transaction_hash: "0x0e439d91608cfcd2ff89ca9345bb8a93a4f1522fe82a0666e21f02afa7011848", transaction_index: 0}, message: "method handler crashed"}]
```

I found similar issues but there is no solution yet
blockscout#3234
blockscout#2445

But I found that in our case in Kotti this transactions is contact creation tx. But tx doesn't has input (so no contract code). 

```
{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionByHash",
    "params": ["0x0e439d91608cfcd2ff89ca9345bb8a93a4f1522fe82a0666e21f02afa7011848"],
    "id": 83
}

{
    "jsonrpc": "2.0",
    "id": 83,
    "result": {
        "blockHash": "0x9e37819c590ace5a4451b4cb6374674bc1270f069d0fb95ad7898bef92844901",
        "blockNumber": "0x1a9c5e",
        "from": "0x0343bd58f238839da7b3b5179a44ab310ad5aa2b",
        "gas": "0x1368c",
        "gasPrice": "0x3b9aca00",
        "hash": "0x0e439d91608cfcd2ff89ca9345bb8a93a4f1522fe82a0666e21f02afa7011848",
        "input": "0x",
        "nonce": "0x3",
        "to": null,
        "transactionIndex": "0x0",
        "value": "0x0",
        "v": "0x30",
        "r": "0x36f1ddd3870a6fde0e94074d068e6208e2260a6fd692e7173a2e45ea024b9b7b",
        "s": "0x597439bd880257437f9656edc3a6120d16e3ccc8c6bd807bd2757bae50a5a6b6"
    }
}
```

I don't know how it could happen (maybe somebody could explain this). But I add handle to not take contact code if input was empty

* Update alpine-elixir-phoenix 1.11.3

* Pending transactions sanitizer

* Remove pending transactions from DB which are dropped from the node

* Use unique pool ID instead of staking address in Staking DApp

to follow the changes poanetwork/posdao-contracts@51ae492...7e38982

* Sort validator pools by APY descending in Staking DApp

* Fix ValidatorSetAuRa ABI JSON

* Use idByStakingAddress instead of miningByStakingAddress in stakes_channel.ex

* Update CHANGELOG.md

* mix credo

* fix .dialyzer-ignore

* Fix stake_snapshotting.ex

* Fix stake_snapshotting.ex

* Rename ethprice API endpoint

* Add CHANGELOG entry

* Fix losing digits at wei conversion

* Allow double quotes for (u)int arrays inputs during contract interaction

* Coinprice api endpoint: handle nil rates

* Add CHANGELOG entry

* Token on-demand balance handle nil

* Set defaut period for average block time counter refresh interval

* Handle bad gateway at pending transactions fetcher

* fix POSDAO snapshotting and remove temporary code

* Update CHANGELOG.md

* Optimize start_snapshotting? function

* Token balance on demand fetcher memory leak fix

* Contract reader/writer refactoring

* Write contract: allow quotes and spaces in tuple input

* Contract reader: multiple input params including an array type

* Fix sushiswap lp tokens custom metadata fetcher

* Update Mix packages

* Minimal proxy pattern support (EIP-1167)

* 3.6.0

* 10 sec limit for verified contract twin query

* Refactor and optimize Staking DApp

* Update CHANGELOG

* Skip null topics in eth_getLogs API endpoint

* Add CHANGELOG entry

* getblocknobytime block module API endpoint

* getblocknobytime query refactoring

* Remove coveralls

* Decoded input reader fix

* Add pool names display to Staking DApp

* Update CHANGELOG.md

* Update gettext files

* Add a feature for changing pool metadata

* Update CHANGELOG.md

* Fix mobile styles for tx tile

* Inventory pagination query performance improvement

* Fix number of confirmations

* Write contract: fix boolean input

* Read contract: allow pure methods

* Improve tokens list display elements

* Update fontawesome

* Update repo organization

* Tx page refactoring, copy/qr code buttons templates

* Update credo, dialyxir

* Cancel transaction

* Poison update

* fix typo in doc: they -> them

* fix more typos in the same file

* Token bridge supply small refactoring

* Extend Become a Candidate popup in Staking DApp

* Update CHANGELOG.md

* Support tx type in eth_getTransactionReceipt response

* Fix getTokenHolders API endpoint pagination

* Add CHANGELOG entry

* Method name in tx tile

* tx method name: remove splitting of method parts

* Verify via metadata json

* Eliminate excess request call to server on upload button click

* Finalize contracts verification via Sourcify

* Contract verification via Sourcify: change url for Sourcify endpoints

* Contracts verification via Sourcify: add CHANGELOG entry

* 3.7.0

* Manage token balance update threshold via env var

* EIP-1967 proxy pattern detection fix

* Fix padding in tx tile

* EIP-1967 hot-fix

* Refactoring: replace inline style display: none with d-none class

* Return chart on the main page

* Increase the number of digits on the left of trimmed address hash

* Replace some d-nono classes with style="disaply: none;"

* Replace some d-nono classes with style="disaply: none;"

* Update nimble_csv package

* Get NFT metadata from URIs with status_code 301

* Fix tokenlist API endpoint return only tokens with positive balance

* Order token transfers after INNER JOIN (fixes blockscout#3988)

* Fix tests for list_token_transfers function

* Add caluse for abi_decode_address_output/1 when is_nil(address)

* Do not display 4bytes signature in the tx tike for contract creation

* Display lp tokens USD value in dropdown

* UTF-8 input disply fix

* Fix gettext

* Update ex_keccak dep

* Update .tool-versions

* Coin balance history chart display fix

* Exclude encoding of smart_contract_additional_sources in address schema

* Fix docs generation

* Calc total fee per day

* Add CHANGELOG entry

* Total transactions fee API endpoint

* Account failed transactions in total fee calculator

* added hiding long output, env var MAX_SIZE_UNLESS_HIDE_ARRAY

* Update new.html.eex

Fetch `constructor` arguments? Instead of `contructor`

* Update CHANGELOG.md

* Transactions stats: get min/max blocks in one query

* Get token balance query improvement: instead of address_token_balances use address_current_token_balances table

* Add CHANGELOG entry

* Deduplicate block numbers in acquire_blocks function

* Speedup intial query for catchup fetcher

* Typo: constructor instead of contructor

* fixed bug with empty array in write page

* Reload transactions on the main page without reloading of the whole page

* Elixir 1.11.4, npm audit fix

* Migration to Chart.js 3.0

* Added sourcify verification

* added check in web if a contract already verified

* CHANGELOG.MD

* Tx tile mobile view fix

* Remove clear_build.sh script since it is dangerous

* added sourcify verification endpoint

* added error handling, filetypes check

* Compose ipfs url correctly

* Check token instance images MIME types

* Fix internal server error on contract verification options page

* Fix logo url redirection, set font-family defaults for chart.js

* Infinite timeout for fetch_min_missing_block_cache query

* Replace node_modules/ with ~ in app.scss

* Fix /decompiled-contracts bug

* [4274] Fix/improve search token-autocomplete

* Update Changelog

* Fix getsourcecode bug

* Add pending txs on address page

* rename method

* fix token search

* change path to identifier hash

* Wrap data-identifier-hash into double quotes in template

* Contract Byte Code -> Deployed Contract Byte Code

* Add contract creation code

* fix dialyzer, gettext

* gettext

* Fix gettext

* remove dropped/replaced txs from address transactions page

* fix txs page for validators

* fix raw trace bug

* Support effectiveGasPrice property in receipt (geth specific)

* add partially verified support

* Blockscout 3.7.1

* Do not redirect to 404 page with empty string in the search

* Place search outside of burger in mobile view

* Replace awesomplete with autocomplete.js

* Added check if sourcify integration is enabled

* Add live reload on the token holders page

* Fix gettext

* Fix elixir version in .tool-versions

* Fix html template for txs input

* Add :tuple clause for do_copy_text

* Add batched txs on the adress transactions page

* moved token-transfers-toggle.js

* fix false pending txs

* Add "Token ID" label on token-trasfers page

* Fix internal server error on validator's transactions page

* Order contracts in the search by inserted_at in descending order

* Fix empty search results

* Add creation time of contract in the results of the search

* Search results grouping

* Fix zero total supply bug

* Fix current token balance on-demand fetcher

* Fix bug zero total supply

* Update CHANGELOG.md

* Embed ad

* Update ad.js

* Rename banners_ad_vew.ex to banners_ad_view.ex

* Complete fix pending sanitizer

* 3.7.2

* Fix token holders list

* Fix error response in contract's output

* Main page performance cumulative update

* Unescape characters for string output type in the contract response

* URL encoding for NFT media files URLs

* Custom Ad

* Fix contract read page error

* in-house ad refactoring

* Fix Cannot read property toLowerCase of undefined

* Search autcomplete fix for address hash, block hash, tx hash

* Tx page facelifting

* Fix autocomplete links to txs, blocks, addresses

* Update ad.js

* Fix copy-paste typo in token_transfers_counter.ex

* Added names to smart-contract's outputs

* Tx page: handle empty to_address

* parse base fee from eth RPC

This will parse blocks from RPC which are expected ot have a base fee field post London hard fork (EIP1559). Without this blocks will not parse.

This does not add base fee field to database or surface it to the Transaction view as that is out of scope for this PR, doing so would require language additions of "Base Fee" as well as View/Database updates and some integration/functional tests. I left that for the blockscout team after initially trying (and failing) due to not understanding how to integrate a new field into the database. I am sure I can figure it out if needed as I can learn it but I am new to the codebase and the coded language here so I left it out.

* minimal base fee parsing inclusion only

* Fix 500 response on empty contract's code page

* Handle error in fetch_validators_list method

* Fix incorrect next page url

* Search results page

* Search results page

* Fix routes: add NETWORK_PATH variable to current_path

* Add DB migrations step into Docker start script

* Change order of transations in block's view

* Fix test

* Uncataloged token transfers query performance improvement

* Indexer update: refactor coin balance daily fetcher

* Add transaction's index

* Update txn page tooltips

* Add arbitrum support

* CHANGELOG

* Access token type from token object.

* Use token_symbol helper when no symbol exists for a given token in address_token_balance view. (#359)

* Mix format

* Eliminate multiple Updates of the same token in mint/burn token transfers

* Search for metadata.json file in sourcify response.

* Indexer performance update: deduplicate tokens in indexer token transfers transformer

* Add skip_metadata flag for token if indexer failed to get any of [name, symbol, decimals, totalSupply]

* con_cache update up to 1.0

* Optimise github actions (blockscout#363)

* Hash mix files with glob.

* NPM and dialyzer caching.

* Fix yaml.

* Incorrect hashFiles call.

* Fix blockscout npm path.

* Build dialyzer cache in build cache phase.

* Actually do dialyzer in it's own job to prevent blocking other jobs.

* Add meaningful names.

* Remove sweeping windows log.

* Remove test branch.

* Use env vars for otp and elixir release versions.

* Fix templating.

* Explicit mix compile before running tests.

* Add this branch for ci tests.

* Revert "Add this branch for ci tests."

This reverts commit d8d3507.

* Skip genesis block for requesting of trace_block API endpoint

* Rework Block Details page

* Allign eye icon

* Allign copy button to the end of line

* Allign token transfers in tx to table

* Fix width of table

* Remove comment with the submission date from contracts

* Blockscout 3.7.3

* Update CHANGELOG.md

* Modified Blockscout repo

* Color & logo update

* UI changes (blockscout#5)

* Update _neutral_variables.scss

* Update _neutral_variables.scss

* Update config.exs

* Update config.exs

* Update config.exs

* Update default.po

* Update _topnav.html.eex

* Update _nav_tabs.scss

* Update _footer.html.eex

* Update _footer.html.eex

* Update default.pot

* Update default.pot

* Update default.po

* favicon

* Create favicon.ico

* Merge branch 'poanetwork-master' (blockscout#6)

* add default query to graphiql-playground

* pass default query to GraphiQL interface

* add missing alias

* fix credo

* do not try to convert nils in logs

* mix format

* do not create contracts on failed parent transactions

* exclude test from parity

* remove output field from internal transaction

* add indexes for block_reward query

* check if to_address_hash is contract address to fetch internal transactions

* pass json_rpc_arguments to Chain.contract_address?

* fetch address balances in code fetcher

* fix dialyzer

* feat: show an approximation of transaction time

* fix: add coin_balance_status to address_validations

* fix: resolve lodash security alert

* fix: configure BLOCKSCOUT_VERSION in a standard way

* after running "mix gettext.extract --merge"

* after running "mix gettext.extract --merge" inside "./apps/block_scout_web"

* another attempt

* fuse network (blockscout#1)

* v2.0.1-beta modified to fuse

* prepare for deployment

* make docker work

* docker run command

* replaced price graph with images

* updated footer

* Fuse explorer UI update (blockscout#2)

* frontend work and updated translations

* added rxjs and web3 libs, added util functions, added fuse.io to connect-src

* added other metrics

* remove hardcoded urls

* added changes to docker

* fixed typos

* added svg icons, added circle-progress, added more css changes

* fix alignment

* changed cycleEnd polling interval and changed algo for calc cycle length

* added new_cycle_module, added new util functions, added new ENV param VALIDAORS_INFO_URL, added show more link

* added margin to current cycle blocks value

* added css fix for mobile card

* added new classes to html to make page responsive on tablets

* display Fuse instead of Ether

* Upgrade v3 (blockscout#6)

* Deps update: initial commit

* Update Phoenix 1.4 -> 1.5, Elixir 1.10.2 -> 1.10.3

* Pending txs per address API endpoint

* Fix coin balance history page if no balance changes

* Add CHANGELOG entry

* Release 3.1.3

* Display and store revert reason on demand

* Update test

* Add tests

* Add unit tests

* Fix contract compilation tests for old versions of compiler: change compiler version since nightly versions of some older versions were removed

* Add CHANGELOG entry

* Disable Pending transactions supervisor

* trace_block for BESU

* Proxy contracts: decoding using implementation ABI

* Check if implementation is verified

* Decode log in proxy contracts

* Add tests

* Fix several tests

* Blockcout 3.2.0

* Read proxy

* Proxy reader: handle function with params

* Write contracts: a new tab with the list of write methods

* Check if Metamask is authorized, increase container width to comply with increased max possible number of tabs

* A modal window with pending tx hash

* Write contract feature: support payble methods

* Change button name from query to write

* Write proxy contract feature

* Fix for definnition of contract type: proxy/regular

* Write proxy: remove redundant variable declaration: contract_type

* Fix for acocunts page with token-bridge supply and inexistent bridge contracts

* Add Changelog entry

* Fix for verification of contracts from genesis block

* Add CHANGELOG entry

* Import accounts from Geth geenesis

* Update CHANGELOG entry

* Add tests

* Exclude constructors from Write contract page

* Fix error on token\'s read contract tab

* Add tests

* Display implementation address at read/write proxy tabs

* EIP-1967 support

* Blockscout 3.3.0

* eip1967 update: handle different size response from eth_getStorageAt for implementation address

* Fix permanent fetching tokens and unavailable navbar menu when read/write proxy tab is active

* Return correct status to verify api if conntract verified, remove Kovan from the list of default chains

* Besu: Add revertReason key

* Apps menu item

* Add env vars to Docker setup

* Transaction page: decoding logs from called contracts

* Add HCANGELOG entry

* Address logs decoding fix

* Improve decode log/method view

* Add CHANGELOG entry

* Refine decoding view of contract method, log on transaction page, refactoring

* Handle empty block author reward

* Fix non-interactive navbar at not found page

* Add CHANGELOG entry

* Raw trace copy button

* Add CHANGELOG entry

* Update npm deps

* Update node version in Circle CI config

* Show compilation error at conntract verification

* Connect to Metamask button

* Add top marging for implementation address container

* Fix verification with experimental features enabled

* Add CHANGELOG entry

* Improve get mined blocks query performance: remove grouping by number, timestamp

* Add CHANGELOG entry

* GraphQL Absinthe related packages update up to stable versions

* Add CHANGELOG entry

* Process GraphQL internal server error for address -> transactions query without first/last params

* Update Elixir version: 1.10.2 -> 1.10.3

* Add CHANGELOG entry

* Update deps

* Fix read contract bytes array type

* Fix view for read contract

* GraphQL: fix innternal server error at request of internal transactions at address

* Add CHANGELOG entry

* Remove line for debugging

* Fix tests

* Process TypeError: Cannot read property el of undefined

* Update CHANGELOG entry

* Github Actions CI config

* Add umbrella apps tests

* Update

* Disable flaky tests

* coveralls

* Decrease minimum coverage value

* Update CI status badge

* Update coveralls push

* Disable flaky test

* Fetch current token balances fix

* Temporarily remove coveralls step in CI

* coveralls

* pubsub for new token transfers

* Temp last

* Fix revert reason detection

* Remove flaky tests

* Finalize pubsub for token transfers

* Blockscout v3.3.1

* Fix navbar menu at block not found page

* Search in one click

* Adding Top tokens page

* Add Paging_params for Token

* Finally fix pagination at top tokens page

* Remove unused var

* Enable navbar at top tokens page

* Return page_size 50

* Fix notifier query for live update of token transfers

* Bridged tokens

* Remove caching of mix.exs from GA

* Fix tests

* Finalize bridged tokens

* Fix query for bridged token feature

* set default value for get_base_token_explorer_link function

* Make wobserver optional

* Mix format

* Fix foreign chaind detection

* Finalize bridged tokens

* Improve search: allow search with space

* Unlimited number of tokens in search results

* Searching results: improve ordering: token holders desc, name asc

* Fix for the contract verifiaction for solc 0.5 family with experimental features enabled

* Add CHANGELOG entry

* Fix dialyzer test

* Fix coin supply api

* Easy verification from verified twins

* Fix tests

* Fix one more test

* Fix contract funnction method detection

* Add CHANGELOG entry

* Fix tests

* Hide address tabs if no items

* Rwmove internal transactions tab hiding

* Fix gettext

* Style fixes: xDai links, search hover color, "token is bridged" text, handle token name at token page if name/symbol is empty

* Fix gettext

* Contract reader fix

* ETHEREUM_JSONRPC_JSON_RPC_TRANSPORT -> ETHEREUM_JSONRPC_TRANSPORT

* xDai: do not apply link style for buttons

* Gas price at the main page

* Tertiary color for gas price icon

* Update Docker config

* 3.3.2 release

* Fix for invisible validator address at block page

* Modified Blockscout repo

* Color & logo update

* moved image to right location

* UI changes (blockscout#5)

* Update _neutral_variables.scss

* Update _neutral_variables.scss

* Update config.exs

* Update config.exs

* Update config.exs

* Update default.po

* Update _topnav.html.eex

* Update _nav_tabs.scss

* Update _footer.html.eex

* Update _footer.html.eex

* Update default.pot

* Update default.pot

* Update default.po

* favicon

* Create favicon.ico

* Merge branch 'poanetwork-master' (blockscout#6)

* add default query to graphiql-playground

* pass default query to GraphiQL interface

* add missing alias

* fix credo

* do not try to convert nils in logs

* mix format

* do not create contracts on failed parent transactions

* exclude test from parity

* remove output field from internal transaction

* add indexes for block_reward query

* check if to_address_hash is contract address to fetch internal transactions

* pass json_rpc_arguments to Chain.contract_address?

* fetch address balances in code fetcher

* fix dialyzer

* feat: show an approximation of transaction time

* fix: add coin_balance_status to address_validations

* fix: resolve lodash security alert

* fix: configure BLOCKSCOUT_VERSION in a standard way

* after running "mix gettext.extract --merge"

* after running "mix gettext.extract --merge" inside "./apps/block_scout_web"

* added fuse logo

* remove apps/*/priv/static from ignore

* another attempt

* Revert "added fuse logo"

This reverts commit 3c4bc86.

* fuse network (blockscout#1)

* v2.0.1-beta modified to fuse

* prepare for deployment

* make docker work

* docker run command

* replaced price graph with images

* removed "warnings-as-errors" on compile

* updated footer

* Fuse explorer UI update (blockscout#2)

* frontend work and updated translations

* added rxjs and web3 libs, added util functions, added fuse.io to connect-src

* added other metrics

* remove hardcoded urls

* added changes to docker

* fixed typos

* added svg icons, added circle-progress, added more css changes

* fix alignment

* changed cycleEnd polling interval and changed algo for calc cycle length

* added new_cycle_module, added new util functions, added new ENV param VALIDAORS_INFO_URL, added show more link

* added margin to current cycle blocks value

* added css fix for mobile card

* added new classes to html to make page responsive on tablets

* display Fuse instead of Ether

* initial commit

* added upgrade changes

* added ui changes

* added final changes

* added fixes

* fix makefile var name for params

* fix for word spacing in transactions

* added new logo

* added footer-logo fix and make container start as daemon

Co-authored-by: Victor Baranov <baranov.viktor.27@gmail.com>
Co-authored-by: Arsenii Petrovich <arsenii.petrovich@altoros.com>
Co-authored-by: Marksmargon <mark@colu.co>
Co-authored-by: Lior Rabin <lior@colu.com>
Co-authored-by: Lior Rabin <lior9586@gmail.com>
Co-authored-by: Lior Rabin <lior@fusenet.io>
Co-authored-by: Lior Rabin <lior@fuse.io>

* fix Jason (blockscout#7)

Co-authored-by: Ubuntu <ubuntu@ip-172-31-27-161.eu-central-1.compute.internal>

* Upgrade latest (blockscout#9)

* Upgrade latest (blockscout#2)

* Add retrieving of validatorMinRewardPercent

* Fix delegators counter and other improvements

* Add runner-specific options

* Update BlockReward contract ERC balance

* Refresh BlockReward contract ERC balance without page reloading

* Remove an excess code from snapshotting

* Remove excess JSON RPCs from snapshotting

* Explicit block number in snapshotting

* Restore snapshots after restart

* Enhance ContractState.get_token function

* Add comments for stakes controller

* Improve autorefreshing of Validators tab

* Improve the displaying of Stakes Ratio

* Add pool list autorefresh informer

* Add check for staking token definition

* Add render_claim_reward channel message

* Simplify render_claim_reward handling; remove UI freeze

* Prevent running parallel Claim Reward tasks

* Don't allow parallel Claim Reward tasks for the same staker

* Find the pools an address have ever staked into

* Fix find_claim_reward_pools function

* Cleanups

* Cleanups

* Fetch Claim Reward pools

* Display drop-down list of Claim Reward pools with amounts

* Retrieve epoch numbers for Claim Reward dialog popup

* Add general elements to Claim Reward dialog popup

* Prepare Recalculate button for Claim Reward

* Implement Recalculate button for Claim Reward

* Handle disconnections on client side and remove excess requests

* Fix staking page refreshing

* Comment for timeout and shutdown for stakes_channel

* Add claimReward transaction signing

* Claim Reward dialog UI improvements

* Split eth_getLogs requests

* Replace eth_getLogs with public getter

* Rename bridge fee to bridge reward

* Fix tests: mix format and mix credo

* Fix tests: gettext, eslint

* Fix 3 failed tests in stakes_controller_test.exs

* Fix bug in dropdown with tokens appearance in address view page

* Fix the order of mock calls in contract_state_test.exs

* checkNetworkAndAccount function fix and small improvements

* Fix viewing_addresses_test.exs

* Update contract_state_test.exs

* mix format contract_state_test.exs

* Remove excess delegatorShare calls

* Update .dialyzer-ignore

* mix format and add jest mock for stakes.scss

* Fix viewing_chain_test.exs

* Add fallback for Explorer.Staking.ContractState.latest_block

* Improvements in Stake/Withdraw modals

* Remove docs/env-variables.md

* Reduce DB migrations

* Fix displaying fractional balances in header

* mix format

* Fix 'Stake' and 'Become a Candidate' popups

* Improve 'Withdraw' popup

* Improve popups and some tooltips

* Display 'Stake' instead of 'Become a Candidate' for a former pool

* Improve 'Become a Candidate' appearance, checkups, and connectivity control

* Fix unit test

* Small UI improvements and refactorings

* JS and CSS refactorings, fixes, and improvements

* Actualize with master branch

* Fixes after rebase

* Combine Stakes and Apps menu items

* loadItemsNext, loadItemsPrev refactoring

* Gettext files update

* Make Beta labels in menu

* Change CHANGELOG entry

* Fix TokenBridge market cap calculator

* Fix token transfer realtime fetcher

* Fix tokens dropdown appearance

* Add CHANGELOG entry

* Actualize tests

* Contract reader: Address output fix

* Actualize test

* Mix format

* Fix Staking dapp dark mode styles

* Stabilize tests initial commit

* Fix Verify contract button width

* Add delays in Db insertions in tests

* Improve verification

* Eliminate dark background except Dark forest theme

* Fix horisontal scroll in Tokens table

* Improve all lists header container

* Fix find block timestamp query

* Prevent terminating of tokens/contracts process

* Fix contract nested inputs

* Add links to contract libraries

* Make Tokens tab header compact

* Check ets table exists for know tokens

* Try/catch for exchange rates fetching

* Address total gas usage

* Gas usage at main page

* Fix gas price usage counter

* Fix DF, night mode styles

* Actualize docker vars list

* Fix total tx info icon placement in mobile view

* Handle exchange rates request throttled

* Handle exchange rates request throttled

* Gas usage per day

* Fix Token transfers CSV export

* Fix int txs error status

* Update tests

* Refactor CoinGecko interaction

* DISABLE_KNOWN_TOKENS env var

* N/A instead of 0 for market cap if it is not fetched

* NFT add mp4 support

* Add EthereumJSONRPC.HTTP.HTTPoison.json_rpc function clause when URL is null

* Fix difficulty display

* Inventory mp4 support

* Add last_block_number realtime chain event

* Circles customization

* Gettext fix

* Dark mode fixes

* Spread Circles theme on all created contracts

* Update .dialyzer-ignore

* Fix token view mobile style (Circles UBI)

* OTHER_EXPLORERS env var

* Gnosis safe proxy contract definition

* Functions to support GnosisSafe link

* Fix contract reader: tuple type

* Fix long NFT id

* Fix address tokens search

* Standardize token name definition

* Fix unnecessary tx error status

* Token transfers counter cache

* Temp disable test for token-counter

* Fixed postgres docker image

* Update CHANGELOG.md

* Dark mode fixes

* Constructor arguments autodetection in verify endpoint

* Change default ttl_check_interval for counters on the main page

* Infinity timeout for counters

* Rewrite missing blocks range query

* Add tests

* Inifinite timemout for token counters

* Correct avg time calculation

* Fix tests

* Enhance blocks handling in Staking DApp

* Update CHANGELOG.md

* Fixes for credo and gettext

* Fix .dialyzer-ignore

* Small refactoring

* Replace window.web3 with window.ethereum

* Blockscout 3.4.0

* Update Staking DApp scripts

due to MetaMask breaking changes: https://docs.metamask.io/guide/provider-migration.html

* Update CHANGELOG

* Fix endless block invalidation problem

* Small refactoring

* Price for bridged tokens

* Fix display of token transfers list (fix unique identifier of a tile)

* Small refactoring

* Update order logic for tokens with price

* Client-side fixes: fix Firefox styles, Node@14, var -> let, const

* Do not check supported networks on application load

* Address tokens USD value sum

* Add CHANGELOG entry

* Fix contract verification from genesis block

* Fix call to fallback function and call of GnosisProxy contract methods

* Refactor cache for tokens exchange rates

* Fix doubled token transfer at block page if block has reorg

* Fix working with big numbers in Staking DApp

* Update Wallaby, fix test

* Support of Autonity network

* Migrate to Erlang OTP 23

* Elixir 11.2

* Update Docker setup to be compatible with Erlang/OTP 23

* Update GA CI

* Migrate to Webpack@5

* initial commit

* Contracts interaction: fix tuple output display, fix method call with array input

* Remove highlightjs-solidity package since it doesnt comply along with webpack@5

* use new web3 package

Co-authored-by: Vadim <varasev@gmail.com>
Co-authored-by: Victor Baranov <baranov.viktor.27@gmail.com>
Co-authored-by: varasev <33550681+varasev@users.noreply.github.com>
Co-authored-by: longbigbronzeelephantfish1 <61479379+longbigbronzeelephantfish1@users.noreply.github.com>
Co-authored-by: PoaMan <33550681+poaman@users.noreply.github.com>

* modified dockerfile

Co-authored-by: Vadim <varasev@gmail.com>
Co-authored-by: Victor Baranov <baranov.viktor.27@gmail.com>
Co-authored-by: varasev <33550681+varasev@users.noreply.github.com>
Co-authored-by: longbigbronzeelephantfish1 <61479379+longbigbronzeelephantfish1@users.noreply.github.com>
Co-authored-by: PoaMan <33550681+poaman@users.noreply.github.com>

* add explorer update

* add rebase fixes

* build production files

* add fuse-non-critical css

Co-authored-by: Viktor Baranov <baranov.viktor.27@gmail.com>
Co-authored-by: Andrey <andrey.pshenkin@gmail.com>
Co-authored-by: POA <33550681+poa@users.noreply.github.com>
Co-authored-by: Peter Grassberger <petertheone@gmail.com>
Co-authored-by: Patrik Sletmo <patrik@towo.io>
Co-authored-by: Keqi Huang <huangkeqi1995@gmail.com>
Co-authored-by: nikitosing <nikitosing4@mail.ru>
Co-authored-by: Valentin Syrovatskiy <vsyrovat@gmail.com>
Co-authored-by: jagdeep sidhu <jsidhu@blockchainfoundry.co>
Co-authored-by: Tim Tickel <timothy.tickel@reddit.com>
Co-authored-by: Donald Hutchison <donald.hutchison@clabs.co>
Co-authored-by: Arsenii Petrovich <arsenii.petrovich@altoros.com>
Co-authored-by: Marksmargon <mark@colu.co>
Co-authored-by: Lior Rabin <lior9586@gmail.com>
Co-authored-by: Lior Rabin <lior@colu.com>
Co-authored-by: Lior Rabin <lior@fusenet.io>
Co-authored-by: Lior Rabin <lior@fuse.io>
Co-authored-by: Arsenii Petrovich <arseniy.altoros@gmail.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-27-161.eu-central-1.compute.internal>
Co-authored-by: Vadim <varasev@gmail.com>
Co-authored-by: varasev <33550681+varasev@users.noreply.github.com>
Co-authored-by: longbigbronzeelephantfish1 <61479379+longbigbronzeelephantfish1@users.noreply.github.com>
Co-authored-by: PoaMan <33550681+poaman@users.noreply.github.com>
shellteo pushed a commit to shellteo/blockscout that referenced this issue Jul 26, 2023
shellteo pushed a commit to shellteo/blockscout that referenced this issue Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants