From 64d1387835ac4fd8991e8fcaf2a7f231323f44db Mon Sep 17 00:00:00 2001 From: gregs Date: Fri, 13 Sep 2024 10:59:05 -0300 Subject: [PATCH] fix degen <-> wdegen (#6087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add degen native asset * remove NATIVE_ASSETS_MAP_PER_CHAIN * remove Address castings * bump iOS and Android version to v1.9.38 (#6081) * Fix e2e flakiness / errors (#6084) * fix * test * revert * @walmat related fixes * @walmat related fixes * okay disabling the test again, the experimental flag didnt fix it * okay disabling the test again, the experimental flag didnt fix it * fix disabled NFTs in testing and rely on remote config for prod * . * add 60 min timeout (#6090) * fix tophat triggers (#6089) * Fix url creation for stale balance param (#6091) * fix wrong id (#6078) * change to id * also fix clicks * Add rc-push script (#6088) * add rc-push script * source .env * Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#6072) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fixes opacity on mwp sign txn sheet (#6083) * change opacity on mwp route source too * switch to includes * update env (#6077) * fix missing dapp metadata for eth actions (#6086) * fix missing dapp metadata for eth actions * use isHandshakeAction helper function * Update src/components/MobileWalletProtocolListener.tsx Co-authored-by: Bruno Barbieri <1247834+brunobar79@users.noreply.github.com> --------- Co-authored-by: Bruno Barbieri <1247834+brunobar79@users.noreply.github.com> * Revert "Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows …" (#6095) This reverts commit 431459aeefb78b91343a69a19aace53b853dee4b. * Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#6072) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Revert "Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows …" (#6095) This reverts commit 431459aeefb78b91343a69a19aace53b853dee4b. * Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#6072) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Revert "Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows …" (#6095) This reverts commit 431459aeefb78b91343a69a19aace53b853dee4b. * fix: send (#6093) * fix * lint * userAssetsStore refactor (#6015) * done * change userAssetsStoreCache type * mid refactor * refactor * dont cast to Address * more * more * rm address param * fix caching * select address * comments * hardhat * lint * Fix wrong messages during MWP Flow (#6094) * add logging for pkey errors * fix keychain error handling * checksum address before keychain lookup * remove invalid chainId param from tx * Update src/keychain/index.ts * Update src/keychain/index.ts Co-authored-by: Jin * Explicitly return UserCanceled error for code strings 10 and 13 * Remove returning -3 explicit error code * Use enum values instead of primitives for error codes for readability --------- Co-authored-by: Jin --------- Signed-off-by: dependabot[bot] Co-authored-by: Ibrahim Taveras Co-authored-by: brdy <41711440+BrodyHughes@users.noreply.github.com> Co-authored-by: Bruno Barbieri <1247834+brunobar79@users.noreply.github.com> Co-authored-by: Jin Co-authored-by: Matthew Wall Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Esteban Miño Co-authored-by: Ben Goldberg --- src/references/index.ts | 78 ++++++++++++----------------------------- 1 file changed, 23 insertions(+), 55 deletions(-) diff --git a/src/references/index.ts b/src/references/index.ts index bda02498417..cb4dc3e38f5 100644 --- a/src/references/index.ts +++ b/src/references/index.ts @@ -137,62 +137,30 @@ export const AddCashCurrencyInfo: { }; export const NATIVE_ASSETS_PER_CHAIN: Record = { - [ChainId.mainnet]: ETH_ADDRESS as Address, - [ChainId.hardhat]: AddressZero as Address, - [ChainId.sepolia]: AddressZero as Address, - [ChainId.holesky]: AddressZero as Address, - [ChainId.arbitrum]: AddressZero as Address, - [ChainId.arbitrumSepolia]: AddressZero as Address, - [ChainId.bsc]: AddressZero as Address, - [ChainId.bscTestnet]: AddressZero as Address, - [ChainId.optimism]: AddressZero as Address, - [ChainId.hardhatOptimism]: AddressZero as Address, - [ChainId.optimismSepolia]: AddressZero as Address, - [ChainId.rari]: AddressZero as Address, - [ChainId.base]: AddressZero as Address, - [ChainId.baseSepolia]: AddressZero as Address, - [ChainId.zora]: AddressZero as Address, - [ChainId.zoraSepolia]: AddressZero as Address, - [ChainId.polygon]: MATIC_POLYGON_ADDRESS as Address, - [ChainId.polygonMumbai]: AddressZero as Address, - [ChainId.avalanche]: AVAX_AVALANCHE_ADDRESS as Address, - [ChainId.avalancheFuji]: AddressZero as Address, - [ChainId.blast]: AddressZero as Address, - [ChainId.blastSepolia]: AddressZero as Address, - [ChainId.polygonAmoy]: AddressZero as Address, -}; - -export const NATIVE_ASSETS_MAP_PER_CHAIN: Record = { - [ChainId.arbitrum]: ETH_ADDRESS, - [ChainId.arbitrumNova]: ETH_ADDRESS, - [ChainId.arbitrumSepolia]: ETH_ADDRESS, - [ChainId.avalanche]: AVAX_AVALANCHE_ADDRESS, - [ChainId.avalancheFuji]: AVAX_AVALANCHE_ADDRESS, - [ChainId.base]: ETH_ADDRESS, - [ChainId.baseSepolia]: ETH_ADDRESS, - [ChainId.blast]: ETH_ADDRESS, - [ChainId.blastSepolia]: ETH_ADDRESS, - [ChainId.bsc]: BNB_MAINNET_ADDRESS, - [ChainId.bscTestnet]: BNB_MAINNET_ADDRESS, - [ChainId.celo]: ETH_ADDRESS, - [ChainId.gnosis]: ETH_ADDRESS, - [ChainId.hardhat]: ETH_ADDRESS, - [ChainId.hardhatOptimism]: ETH_ADDRESS, - [ChainId.holesky]: ETH_ADDRESS, - [ChainId.linea]: ETH_ADDRESS, [ChainId.mainnet]: ETH_ADDRESS, - [ChainId.manta]: ETH_ADDRESS, - [ChainId.optimism]: ETH_ADDRESS, - [ChainId.optimismSepolia]: ETH_ADDRESS, - [ChainId.polygon]: MATIC_MAINNET_ADDRESS, - [ChainId.polygonAmoy]: MATIC_MAINNET_ADDRESS, - [ChainId.polygonMumbai]: MATIC_MAINNET_ADDRESS, - [ChainId.polygonZkEvm]: MATIC_MAINNET_ADDRESS, - [ChainId.rari]: ETH_ADDRESS, - [ChainId.scroll]: ETH_ADDRESS, - [ChainId.sepolia]: ETH_ADDRESS, - [ChainId.zora]: ETH_ADDRESS, - [ChainId.zoraSepolia]: ETH_ADDRESS, + [ChainId.hardhat]: AddressZero, + [ChainId.sepolia]: AddressZero, + [ChainId.holesky]: AddressZero, + [ChainId.arbitrum]: AddressZero, + [ChainId.arbitrumSepolia]: AddressZero, + [ChainId.bsc]: AddressZero, + [ChainId.bscTestnet]: AddressZero, + [ChainId.optimism]: AddressZero, + [ChainId.hardhatOptimism]: AddressZero, + [ChainId.optimismSepolia]: AddressZero, + [ChainId.rari]: AddressZero, + [ChainId.base]: AddressZero, + [ChainId.baseSepolia]: AddressZero, + [ChainId.zora]: AddressZero, + [ChainId.zoraSepolia]: AddressZero, + [ChainId.polygon]: MATIC_POLYGON_ADDRESS, + [ChainId.polygonMumbai]: AddressZero, + [ChainId.avalanche]: AVAX_AVALANCHE_ADDRESS, + [ChainId.avalancheFuji]: AddressZero, + [ChainId.blast]: AddressZero, + [ChainId.blastSepolia]: AddressZero, + [ChainId.polygonAmoy]: AddressZero, + [ChainId.degen]: AddressZero, }; export type ReferrerType = 'native-app' | 'app-claim';