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

W48 upstream merge #487

Closed
wants to merge 276 commits into from
Closed

W48 upstream merge #487

wants to merge 276 commits into from

Conversation

eruizgar91
Copy link

@eruizgar91 eruizgar91 commented Nov 30, 2021

W48 upstream changes:

  • #4931 - Web3 modal with Wallet Connect for Write contract page and Staking Dapp
  • #4888 - Fix fetch_top_tokens method: add nulls last for token holders desc order
  • #4945 - Fix Verify & Publish button link
  • #4807 - Added support for BeaconProxy pattern
  • #4777, #4791, #4799, #4847 - Added decoding revert reason
  • #4776 - Added view for unsuccessfully fetched values from read functions
  • #4761 - ERC-1155 support
  • #4739 - Improve logs and inputs decoding
  • #4747 - Advanced CSV export
  • #4745 - Vyper contracts verification
  • #4699, #4793, #4820, #4827 - Address page facelifting
  • #4667 - Transaction Page: Add expand/collapse button for long contract method data
  • #4641, #4733 - Improve Read Contract page logic
  • #4660 - Save Sourcify path instead of filename
  • #4656 - Open in Tenderly button
  • #4655, #4676 - EIP-3091 support
  • #4621 - Add beacon contract address slot for proxy
  • #4625 - Contract address page: Add implementation link to the overview of proxy contracts
  • #4624 - Support HTML tags in alert message
  • #4608, #4622 - Block Details page: Improved style of transactions button
  • #4596, #4681, #4693 - Display token icon for bridged with Mainnet tokens or identicons for other tokens
  • #4520 - Add support for EIP-1559
  • #4593 - Add status in Position pane for txs have no block
  • #4579 - Write contract page: Resize inputs; Improve multiplier selector

vbaranov and others added 30 commits September 2, 2021 16:43
…ion-names

Fix empty contract's function names
Block Details page: Improved style of transactions button
Add `token_tile_view_more.css` to the `main-page.css`
…ged-with-mainnet

Display token icon for tokens from TrustWallet assets repository
…lector

Hide error selector in the contract's functions list
…r-txs-btn

Change alpha of transactions button's background
…-alert

Support HTML tags in alert message
…ion-link

Contract address page:  Add implementation link to the overview of proxy contracts
…obile-view-fix

Token page: fixes in mobile view
…or-tx

Refine view of popup for reverted tx
Transaction page: Rename burned to burnt
`if !` change to `unless`
@eruizgar91 eruizgar91 requested a review from a team November 30, 2021 14:54
@github-actions
Copy link

github-actions bot commented Nov 30, 2021

Unit Test Results

       3 files  ±  0     228 suites  ±0   3m 25s ⏱️ -9s
2 081 tests +12  2 036 ✔️ +12  45 💤 ±0  0 ±0 

Results for commit bd6a537. ± Comparison against base commit a4b80bd.

♻️ This comment has been updated with latest results.

@carterqw2 carterqw2 changed the title Eruizgar91/w48 upstream merge W48 upstream merge Dec 2, 2021
Copy link

@carterqw2 carterqw2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a regression in how revert reasons are handled, they changed the way they decode them and since we're using geth, it is different from what the upstream team is using, so we need to carefully update that code.
Looks like now users can connect their wallet using wallet connect, let's make sure that people can do that with Valora as well.

@@ -11,7 +11,7 @@ defmodule BlockScoutWeb.CSPHeader do
def call(conn, _opts) do
Controller.put_secure_browser_headers(conn, %{
"content-security-policy" => "\
connect-src 'self' #{websocket_endpoints(conn)} https://request-global.czilladx.com/ https://raw.githubusercontent.com/trustwallet/assets/;\
connect-src 'self' #{websocket_endpoints(conn)} wss://*.bridge.walletconnect.org/ https://request-global.czilladx.com/ https://raw.githubusercontent.com/trustwallet/assets/ https://registry.walletconnect.org/data/wallets.json https://*.poa.network;\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove https://*.poa.network.

@@ -61,4 +61,13 @@
data_test: "address-tokens-panel-tokens-worth",
classes: ["fs-14"]
%>
<%= render BlockScoutWeb.AddressTokenView, "overview_item.html",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's CRC? We should disable everything related to Circle/CRC.

@@ -3298,16 +3341,3 @@ msgstr ""
#: lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex:18
msgid "validator"
msgstr ""

# From templates/transaction/_token_transfer.html.eex

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lost translations, we still need those.

@@ -3299,16 +3342,3 @@ msgstr ""
#: lib/block_scout_web/templates/stakes/_stakes_modal_delegators_list.html.eex:18
msgid "validator"
msgstr ""

# From templates/transaction/_token_transfer.html.eex

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need these two.

@@ -47,9 +47,11 @@ defmodule Explorer.Chain.TokenTransfer do
* `:transaction` - The `t:Explorer.Chain.Transaction.t/0` ledger
* `:transaction_hash` - Transaction foreign key
* `:log_index` - Index of the corresponding `t:Explorer.Chain.Log.t/0` in the transaction.
* `:amounts` - Tokens transferred amounts in case of batched transfer in ERC-1155
* `:token_ids` - IDs of the tokens (applicable to ERC-1155 tokens)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like :comment was missing.

@@ -5,6 +5,17 @@ RUN apk --no-cache --update add alpine-sdk gmp-dev automake libtool inotify-tool
ENV GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc
ENV GLIBC_VERSION=2.30-r0

RUN set -ex && \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird duplicate (see 2 lines above and 1 below), should be removed.

@@ -44,6 +55,8 @@ ADD apps/explorer/package*.json ./apps/explorer/

RUN npm install npm@latest

RUN npm install npm@latest

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

#
# Tokens.acquire_contract_address_tokens(repo, contract_address_hashes)
# end
defp acquire_contract_address_tokens(repo, consensus_block_numbers) do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was commented out because on Celo blocks there are no blocks without consensus. Other methods in this file need to be checked agains both our and upstream versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants