This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
forked from blockscout/blockscout
-
Notifications
You must be signed in to change notification settings - Fork 0
Pull Upstream #8
Open
boyuan-chen
wants to merge
5,591
commits into
omgnetwork:master
Choose a base branch
from
blockscout:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Siegi Skalla <s.skalla@cryptix.ag>
* chore: Reverse internal transactions fetching order * Add env var for internal transactions fetching order
* chore: Set user agent to metadata requests * Add backend version to User-agent
…hout metadata initially fetched (#10878) * feat: Open access to re-fetch metadata button for token instances without metadata initially fetched * Adjust existing test * Refactor tests * Add corresponding test to BlockScoutWeb.API.V2.TokenControllerTest module
* feat: return `authorizationList` for EIP-7702 transactions in `/transactions/:tx_hash` response (#10776) * feat: support EIP-7702 transactions * fix: handle invalid signatures * fix: save authority * Update apps/block_scout_web/lib/block_scout_web/views/api/v2/transaction_view.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * Update apps/explorer/lib/explorer/chain/signed_authorization.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * Update apps/indexer/lib/indexer/block/fetcher.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * fix: remove set_code_transaction from @allowed_type_labels * Update apps/explorer/lib/explorer/chain/import/runner/signed_authorizations.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * fix: move signed_authorization to a separate module * add todo --------- Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * feat: support EIP-7702 in `/address/:address` endpoint (#10799) * feat: support EIP-7702 transactions * fix: handle invalid signatures * fix: save authority * Update apps/block_scout_web/lib/block_scout_web/views/api/v2/transaction_view.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * Update apps/explorer/lib/explorer/chain/signed_authorization.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * Update apps/indexer/lib/indexer/block/fetcher.ex Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * fix: remove set_code_transaction from @allowed_type_labels * feat: add EIP-7702 support to /address/:address endpoint * fix: refactor fetch? * fix: move get_implementation_address_hash_string_eip7702 * fix: remove EIP-7702 flag from response, modify transactions filter to handle EOA with code correctly * fix: minor refactoring * fix: remove unused alias * fix: review comments * Update apps/explorer/priv/repo/migrations/20240904161254_create_signed_authorizations.exs Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> --------- Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> * fix: remove unused code * fix: refactor code * Update apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/signed_authorization.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * chore: documentation improvement * fix typo * fix: move spec and doc * fix: authorization_list spec * fix: wrap address and authority with checksum * fix: invalid typespec Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Apply suggestions from code review Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * fix typo * Update apps/explorer/lib/explorer/chain/smart_contract/proxy/eip_7702.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> --------- Co-authored-by: Kirill Fedoseev <kirill@blockscout.com> Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com>
…_addresses_map function result (#10943)
…contract from the API response (#10715)
* feat: Add missing filecoin robust addresses * Narrow down spec * Refactoring
* perf: refactor tx data decoding with fewer DB queries * fix: tests * chore: more refactor * chore: fix merge conflicts
…r" entities (#10913) * refactor: tx_hash -> transaction_hash, txn -> transaction, "block" in API v2 response to "block_number" * More functions/vars to rename * Update apps/block_scout_web/lib/block_scout_web/graphql/celo/schema/query_fields.ex Co-authored-by: Fedor Ivanov <ivnfedor@gmail.com> * Rename files * Return l1_tx_origin / l2_tx_gas_limit in optimism view for the compatibility with fe at the time of transaition to new props * Rename shorthand in template * Repair merge --------- Co-authored-by: Fedor Ivanov <ivnfedor@gmail.com>
Bumps [tesla](https://github.com/elixir-tesla/tesla) from 1.12.1 to 1.12.2. - [Release notes](https://github.com/elixir-tesla/tesla/releases) - [Commits](elixir-tesla/tesla@v1.12.1...v1.12.2) --- updated-dependencies: - dependency-name: tesla dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [secp256k1](https://github.com/cryptocoinjs/secp256k1-node) from 4.0.2 to 4.0.4. - [Release notes](https://github.com/cryptocoinjs/secp256k1-node/releases) - [Commits](cryptocoinjs/secp256k1-node@v4.0.2...v4.0.4) --- updated-dependencies: - dependency-name: secp256k1 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: Workaround for repeating logIndex * Fix tests * Done migration, but need to rewrite tuples usage * Migration rewritten * Fix tests * Fix test * Process review comments * Update cspell ignore * Refactoring
* feat: Account V2 Implement merging Add captcha to send_otp Refactor Handle old sessions Add address hash to session info Finish core functionality * Some fixes Fix captcha related tests Add recaptcha v3 support Add error for wrong otp Add uri encoding for user id Fix recaptcha error * Return session info in auth responses * hostname check for recaptcha; merge addresses Merge accounts with the same address as well Add hostname check for recaptcha Remove debug code * Fix address accounts merging * Handle email linking to siwe account * Allow hostname check disabling * Fix @vbaranov review * Fix RE_CAPTCHA_CHECK_HOSTNAME logic * Restrict users with email to link email * Fix @nikitosing review * Format
…10998) * fix: Fix renaming of public props * Fix sanitize_duplicated_log_index_logs_test.exs --------- Co-authored-by: Nikita Pozdniakov <nikitosing4@mail.ru>
…ansactions, 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 <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/l1_fee_param.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/l1_fee_param.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/l1_fee_param.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/reader.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/reader.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/batch.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/batch_bundle.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/bridge.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/fetcher/scroll/batch.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Small refactoring * Extend docs * Update apps/explorer/lib/explorer/chain/scroll/reader.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/indexer/lib/indexer/helper.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/reader.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Update apps/explorer/lib/explorer/chain/scroll/reader.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * Improve specs * Update apps/explorer/lib/explorer/chain/scroll/reader.ex Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com> * 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 <33550681+poa@users.noreply.github.com> Co-authored-by: Viktor Baranov <baranov.viktor.27@gmail.com> Co-authored-by: Alexander Kolotov <alexandr.kolotov@gmail.com>
* feat: List of internal transactions API v2 endpoint * Process Fedor review * Fix format * Process review comment
* perf: optimize advanced filters * Fix filters order * Fix order by * Fix block_number filtering * Fix filters order and union * Fix tests * Fix: remove excessive limit * Add internal transaction to_address_hash index * Optimize amount filter * Fix filtering after limit * Some fixes Fix address filtering; Fix token transfers; Fix methods search * Remove migration; Fix query inclusion * Optimize internal transactions query * Fix @vbaranov review * Fix renaming issues * Rename function arguments --------- Co-authored-by: Viktor Baranov <baranov.viktor.27@gmail.com>
Bumps [@fortawesome/fontawesome-free](https://github.com/FortAwesome/Font-Awesome) from 6.7.1 to 6.7.2. - [Release notes](https://github.com/FortAwesome/Font-Awesome/releases) - [Changelog](https://github.com/FortAwesome/Font-Awesome/blob/6.x/CHANGELOG.md) - [Commits](FortAwesome/Font-Awesome@6.7.1...6.7.2) --- updated-dependencies: - dependency-name: "@fortawesome/fontawesome-free" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sweetalert2](https://github.com/sweetalert2/sweetalert2) from 11.14.1 to 11.15.3. - [Release notes](https://github.com/sweetalert2/sweetalert2/releases) - [Changelog](https://github.com/sweetalert2/sweetalert2/blob/main/CHANGELOG.md) - [Commits](sweetalert2/sweetalert2@v11.14.1...v11.15.3) --- updated-dependencies: - dependency-name: sweetalert2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…11576) Bumps [mixpanel-browser](https://github.com/mixpanel/mixpanel-js) from 2.56.0 to 2.58.0. - [Release notes](https://github.com/mixpanel/mixpanel-js/releases) - [Changelog](https://github.com/mixpanel/mixpanel-js/blob/master/CHANGELOG.md) - [Commits](mixpanel/mixpanel-js@v2.56.0...v2.58.0) --- updated-dependencies: - dependency-name: mixpanel-browser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 11.10.0 to 11.11.1. - [Release notes](https://github.com/highlightjs/highlight.js/releases) - [Changelog](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md) - [Commits](highlightjs/highlight.js@11.10.0...11.11.1) --- updated-dependencies: - dependency-name: highlight.js dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [viewerjs](https://github.com/fengyuanchen/viewerjs) from 1.11.6 to 1.11.7. - [Release notes](https://github.com/fengyuanchen/viewerjs/releases) - [Changelog](https://github.com/fengyuanchen/viewerjs/blob/main/CHANGELOG.md) - [Commits](fengyuanchen/viewerjs@v1.11.6...v1.11.7) --- updated-dependencies: - dependency-name: viewerjs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [sass](https://github.com/sass/dart-sass) from 1.81.0 to 1.83.0. - [Release notes](https://github.com/sass/dart-sass/releases) - [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md) - [Commits](sass/dart-sass@1.81.0...1.83.0) --- updated-dependencies: - dependency-name: sass dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@amplitude/analytics-browser](https://github.com/amplitude/Amplitude-TypeScript) from 2.11.9 to 2.11.11. - [Release notes](https://github.com/amplitude/Amplitude-TypeScript/releases) - [Commits](https://github.com/amplitude/Amplitude-TypeScript/compare/@amplitude/analytics-browser@2.11.9...@amplitude/analytics-browser@2.11.11) --- updated-dependencies: - dependency-name: "@amplitude/analytics-browser" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…version_bump.sh (#11574)
Bumps [webpack](https://github.com/webpack/webpack) from 5.96.1 to 5.97.1. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.96.1...v5.97.1) --- updated-dependencies: - dependency-name: webpack dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ex_keccak](https://github.com/tzumby/ex_keccak) from 0.7.5 to 0.7.6. - [Release notes](https://github.com/tzumby/ex_keccak/releases) - [Changelog](https://github.com/ExWeb3/ex_keccak/blob/main/CHANGELOG.md) - [Commits](ExWeb3/ex_keccak@v0.7.5...v0.7.6) --- updated-dependencies: - dependency-name: ex_keccak dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: burnt fraction calculation * chore: add tests
* 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 <ivnfedor@gmail.com> --------- Co-authored-by: Fedor Ivanov <ivnfedor@gmail.com>
…cher.EmptyBlocksSanitizer module (#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 <105209995+Qwerty5Uiop@users.noreply.github.com> * 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 <105209995+Qwerty5Uiop@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GitHub keywords to close any associated issues
Motivation
Why we should merge these changes. If using GitHub keywords to close issues, this is optional as the motivation can be read on the issue page.
Changelog
Enhancements
Things you added that don't break anything. Regression tests for Bug Fixes count as Enhancements.
Bug Fixes
Things you changed that fix bugs. If a fixes a bug, but in so doing adds a new requirement, removes code, or requires a database reset and reindex, the breaking part of the change should be added to Incompatible Changes below also.
Incompatible Changes
Things you broke while doing Enhancements and Bug Fixes. Breaking changes include (1) adding new requirements and (2) removing code. Renaming counts as (2) because a rename is a removal followed by an add.
Upgrading
If you have any Incompatible Changes in the above Changelog, outline how users of prior versions can upgrade once this PR lands or when reviewers are testing locally. A common upgrading step is "Database reset and re-index required".
Checklist for your Pull Request (PR)
CHANGELOG.md
with this PRmaster
in the Version column. Changes will be reflected in this table: https://docs.blockscout.com/for-developers/information-and-settings/env-variables.