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

Sync with origin #51

Merged
merged 126 commits into from
Jan 24, 2025
Merged

Sync with origin #51

merged 126 commits into from
Jan 24, 2025

Conversation

Qwerty5Uiop and others added 30 commits December 5, 2024 16:25
* fix: Upgrade fallback urls propagation

* Refactor parse_urls_list/2
* Added endpoints /api/v2/arbitrum/messages/from-rollup/:msg_id{/proof}

* Fetching additional data

* Fix node parsing

* Getting size parameter for constructOutboxProof

* Retrieving calldata for executeTransaction method

* Tuning endpoint

* Added endpoint to fetch withdrawals by tx hash

* Moving code [wip]

* Fetching withdrawal status, code refactoring

* Fix issues

* Decoding data for token withdrawals [wip]

* Moving modules (Explorer.Arbitrum.ClaimRollupMessage, Explorer.Arbitrum.Withdraw)

* Reusing Indexer.Fetcher.Arbitrum.Messaging.l2_to_l1_event_parse/1

* Return message_id for withdrawals in Arbitrum message related info (/tx endpoint)

* Returning token amount in withdrawals

* Fix typing

* Format code

* Fixed dialyzer issues, removed debug logs

* Spelling&formatting issues

* Fix credo issues

* Minor cosmetic fixes

* Added indexer dependency to explorer

* Fix issues

* Specify l2_to_l1_event_parse return type

* Specify l2_to_l1_event_parse argument type

* Changing naming convention in accordance with blockscout#10913

* Fix merge errors

* Added api? option

* Fix l2_to_l1_message_with_id method

* Introducing EthereumJSONRPC.Arbitrum module

* Moving routines from Indexer.Fetcher.Arbitrum.Utils.Rpc to EthereumJSONRPC.Arbitrum

* Moving `transaction_to_logs_by_topic0` from `Explorer.Chain` to `Explorer.Chain.Arbitrum.Reader`

* Added comments to the private routines

* Renaming function get_latest_confirmed_l2_to_l1_message_id -> get_latest_confirmed_node_index

* Fix `Indexer.Fetcher.Arbitrum.Utils.Rpc.get_node` description

* Minor refactoring and renaming

* Moving RPC-specific routines to the `EthereumJSONRPC.Arbitrum` module

* Prioritizing database routines

* Minor refactoring, fix issues

* Fixing dialyzer issues, commenting and reordering routinnes

* Added comment (BlockScoutWeb.API.V2.ArbitrumView.render("message.json"))

* Minor refactoring

* Update apps/explorer/lib/explorer/chain/arbitrum/reader.ex

Co-authored-by: Alexander Kolotov <[email protected]>

* Refactoring l2->l1 events parsing

* Removing unneeded conversion

* Added simple way to obtain size for proof

* Update apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/arbitrum.ex

Co-authored-by: Alexander Kolotov <[email protected]>

* Fix review issues

* Fix comments

* Added description of the code flow

* Update apps/explorer/lib/explorer/arbitrum/claim_rollup_message.ex

Co-authored-by: Alexander Kolotov <[email protected]>

* Renaming log_to_withdraw/1 to log_to_withdrawal/1

* Introducing `get_size_for_proof` routine

* Fix spelling

* Double checking withdrawal status received from the database

* Fixed code format issue

* Apply suggestions from code review

Comments issues

Co-authored-by: Alexander Kolotov <[email protected]>

* Minor refactoring

* The one more fix

* Apply suggestions from code review

Co-authored-by: Victor Baranov <[email protected]>

* Renaming /api/v2/arbitrum/messages/claim/ endpoint parameter (position -> message_id)

* Removing unneeded Logger requirement

* Removed unneeded spec

* Introducing log_with_transactions_query function in `Explorer.Chain`

* Minor changes in `Explorer.Arbitrum.ClaimRollupMessage`

---------

Co-authored-by: Alexander Kolotov <[email protected]>
Co-authored-by: Victor Baranov <[email protected]>
* feat: CDN

* Add uniqueness cache

* Add ipfs user agent header; Enable health endpoints

* Reduce logs amount

* Handle possible TokenInstanceMetadataRefetch changes in metadata: store in uniqueness cache result, not primary key for token instance

* Refactoring: nft_media_handler_dispatcher_interface -> nft_media_handler; nft_media_handler_dispatcher -> indexer

* Fix credo

* Handle possible dets errors; Optimize thumbnails storage + rename media_urls field

* Process review comments + hardcode ./tmp dir

* Process review comments

* Process review comments #1

* Process review comments #2

* Process review comments #3

* Fix tests

* Fix credo
* feat: import consensus data related to block

* feat: add workflow to publish docker image

* fix: cast `zilliqa_view` field of a block

* refactor: define spec only once

* fix: remove not null constraint for `zilliqa_view`

* feat: add `zilliqa.is_scilla` flag to transactions APIv2 response

* feat: treat scilla contracts as verified

* fix: rebase artifacts

* fix: add `compiler_version` to optional attrs for `zilliqa` chain type

* fix: docs

* refactor: keep all chain type related processing under `add_chain_type_fields/2` function

* refactor: use `language` field to mark scilla contracts

* feat: add flag to distinguish scilla addresses

* refactor: bound to new `language` field in `smart_contracts` table

* refactor: view

* chore: rollback controller and view

* fix: update cspell

* refactor: process review

* doc: add spec and doc for functions in `Indexer.Fetcher.ContractCode`

* feat: support `language` field in `filter_contracts/2`

* refactor: `current_filter/1`

* fix: smart contract controller test

* fix: solidity contracts filtering

* chore: process review

* fix: dialyzer

* refactor: use transaction type to filter scilla transactions

* fix: process ai-generated review
* Before pagination

* Add pagination

* remove comment

* Fix credo

* Temp fix

* Done with refactoring

* Fix tests

* Process review comments

* Prepare next_page_params for frontend

* workaround for tests

* Process review comments
blockscout#11400)

* fix: Refactor CDN upload functions, prevent saving partially uploaded thumbnails

* Process review comments

* Update changelog
…1399)

* Fix withdrawal status post fault proofs

* Add specs and docs

* Fix handle_proven_status function

* Improve migration

* Update apps/explorer/lib/explorer/chain/optimism/withdrawal.ex

Co-authored-by: Fedor Ivanov <[email protected]>

* Update apps/explorer/lib/explorer/chain/optimism/withdrawal.ex

Co-authored-by: Fedor Ivanov <[email protected]>

* Improve migration

* Add credo warning ignore

---------

Co-authored-by: POA <[email protected]>
Co-authored-by: Fedor Ivanov <[email protected]>
vbaranov and others added 27 commits January 8, 2025 14:58
…#11612)

* fix: Order address names to return the latest non-primary

* Update apps/block_scout_web/lib/block_scout_web/views/api/v2/helper.ex

Co-authored-by: Fedor Ivanov <[email protected]>

---------

Co-authored-by: Fedor Ivanov <[email protected]>
…cher.EmptyBlocksSanitizer module (blockscout#11555)

* perf: Implement batched requests and DB upsert operations Indexer.Fetcher.EmptyBlocksSanitizer module

* Reduce the default value for INDEXER_EMPTY_BLOCKS_SANITIZER_BATCH_SIZE 100 -> 10

* Update apps/indexer/lib/indexer/fetcher/empty_blocks_sanitizer.ex

Co-authored-by: Qwerty5Uiop <[email protected]>

* Use id_to_params in multiple places

* Add error handling in sanitize_empty_blocks/1 function

* Proper processing of truly empty blocks

---------

Co-authored-by: Qwerty5Uiop <[email protected]>
* Add partial Holocene support

* Keep the last block hash in the counters table

* Add reorgs handling to EIP1559ConfigUpdate fetcher

* Draft of EIP1559ConfigUpdate fetcher

* EIP1559ConfigUpdate fetcher refactoring

* Add specs and docs

* Small refactoring

* Improve docs

* Modify Explorer.Chain.Block.Schema to use dynamic EIP-1559 parameters

* Fix spelling

* Fix for chain type

* Add check for nil range

* Small refactoring

* mix credo

* mix format

* Refactoring

* Change timeout for delete_all

* mix format

* Add 2-second pause into OP fetcher init functions

---------

Co-authored-by: POA <[email protected]>
Bumps [sweet_xml](https://github.com/kbrw/sweet_xml) from 0.7.4 to 0.7.5.
- [Changelog](https://github.com/kbrw/sweet_xml/blob/master/CHANGELOG.md)
- [Commits](kbrw/sweet_xml@v0.7.4...v0.7.5)

---
updated-dependencies:
- dependency-name: sweet_xml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…blockscout#11504)

* feat: Return error on verification if address is not a smart contract

* Fix test

* Add spec & doc
Bumps [ex_secp256k1](https://github.com/ayrat555/ex_secp256k1) from 0.7.3 to 0.7.4.
- [Release notes](https://github.com/ayrat555/ex_secp256k1/releases)
- [Changelog](https://github.com/ayrat555/ex_secp256k1/blob/master/CHANGELOG.md)
- [Commits](ayrat555/ex_secp256k1@v0.7.3...v0.7.4)

---
updated-dependencies:
- dependency-name: ex_secp256k1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ex_abi](https://github.com/poanetwork/ex_abi) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/poanetwork/ex_abi/releases)
- [Changelog](https://github.com/poanetwork/ex_abi/blob/master/CHANGELOG.md)
- [Commits](poanetwork/ex_abi@0.8.1...0.8.2)

---
updated-dependencies:
- dependency-name: ex_abi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: Support filecoin addresses in search

* Add redirect and DB indexes

* Fix tests

* Process specs suggestions
* feat: Add timeout env for proxy metadata requests

* Add new env to docker-compose/envs/common-blockscout.env
blockscout#11654)

* feat: Ignore events older than 24 hours in Explorer.Account.Notifier.Notify

* Fix tests
@pustovalov pustovalov requested a review from spilin January 15, 2025 16:23
@spilin spilin merged commit 3fe5f3f into master Jan 24, 2025
14 of 15 checks passed
@spilin spilin deleted the sync-01-13-25 branch January 24, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.