Files
43caf09a97 feat: Scroll rollup: L1 fee parameters in API, queueIndex for L2 transactions, and L1 <->L2 messages (#10484)
* Add chain type for scroll and l1_fee tx field

* l1_fee_scalar and l1_fee_overhead fields in api json output for tx

* l2_fee field in api json output for tx

* l1_gas_used field in api json output for tx

* l1_fee_commit_scalar, l1_fee_blob_scalar, l1_base_fee, l1_blob_base_fee fields in api json output for tx

* Partially add specs and docs

* Add code specs and docs for Indexer.Fetcher.Scroll.L1FeeParam

* Add code specs and docs

* Small fix

* Add CI matrix chain type

* Fix spelling

* Rename envs

* Update common-blockscout.env

* Small fixes

* Improve scroll_view.ex

* Update scroll_view.ex

* Add support of queueIndex field for L1MessageTx in Scroll

* Fix for mix credo

* Add scroll_bridge db table

* Add Scroll bridge messages indexing

* Add Indexer.Transform.Scroll.Bridge

* Refactoring

* Add API for Scroll

* Ignore credo warning about nesting level

* Add specs and docs

* Refactoring

* Partially cover review comments

* Add some specs and docs

* Add GA workflows for scroll

* Small refactoring

* Add to_import for Explorer.Chain.Scroll.Bridge

* Small refactoring

* Add specs and docs

* Add comments

* Add Explorer.Chain.RollupReorgMonitorQueue module

* Add sobelow_skip

* Add INDEXER_SCROLL_ETH_GET_LOGS_RANGE_SIZE env variable

* Update common-blockscout.env

* Small refactoring

* Add links about Curie upgrade

* Small improvement

* Small refactoring

* Separate db query

* Move chain type specific import runners from BlockReferencing to ChainTypeSpecific stage

* Add draft indexer for Scroll batches

* Add API for Scroll batches

* Extend API for Scroll batches

* Refactoring

* Update common-blockscout.env

* Add specs and docs

* Remove misprint

* Fixes

* Small improvement

* Refactoring

* Refactoring

* Refactoring

* Refactoring for credo

* Partially cover review comments

* Add l2_block_status to transaction view for Scroll

* RollupL1ReorgMonitor refactoring

* Extend docs

* Small refactoring of last_l2_block_number function

* Extend docs

* Extend docs

* Fix typo

* mix format

* Extend docs

* Extend docs

* Separate eth_getLogs block range size config

* Small refactoring

* Add comment

* Add comments

* Optimization

* Small optimization

* Use Ecto.Multi

* Extend docs

* Change API response for Scroll batches

* Change API response format for Scroll bridge messages

* Small refactoring

* Update apps/indexer/lib/indexer/transform/scroll/l1_fee_params.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/l1_fee_param.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/l1_fee_param.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/l1_fee_param.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex

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

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

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

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

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

* Update apps/explorer/lib/explorer/chain/scroll/bridge.ex

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

* Update apps/explorer/lib/explorer/chain/scroll/batch.ex

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

* Update apps/explorer/lib/explorer/chain/scroll/batch_bundle.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex

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

* Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex

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

* Small refactoring

* Extend docs

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

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

* Update apps/indexer/lib/indexer/helper.ex

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

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

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

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

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

* Improve specs

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

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

* fix

* mix format

* Add DA container info for Scroll batches

* Fallback INDEXER_SCROLL_L2_MESSENGER_START_BLOCK to FIRST_BLOCK

* mix format

* Remove redundant lines

* Use multi update_all

* rename "tx" shorthands

---------

Co-authored-by: POA <[email protected]>
Co-authored-by: Viktor Baranov <[email protected]>
Co-authored-by: Alexander Kolotov <[email protected]>
2024-10-22 18:33:44 +03:00
..