Skip to content

Commit

Permalink
fix degen <-> wdegen (#6087)
Browse files Browse the repository at this point in the history
* 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](actions/download-artifact@v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
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 <[email protected]>

---------

Co-authored-by: Bruno Barbieri <[email protected]>

* Revert "Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows …" (#6095)

This reverts commit 431459a.

* 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](actions/download-artifact@v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
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 431459a.

* 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](actions/download-artifact@v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
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 431459a.

* 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 <[email protected]>

* 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 <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Ibrahim Taveras <[email protected]>
Co-authored-by: brdy <[email protected]>
Co-authored-by: Bruno Barbieri <[email protected]>
Co-authored-by: Jin <[email protected]>
Co-authored-by: Matthew Wall <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Esteban Miño <[email protected]>
Co-authored-by: Ben Goldberg <[email protected]>
  • Loading branch information
9 people authored Sep 13, 2024
1 parent 64db5b2 commit 64d1387
Showing 1 changed file with 23 additions and 55 deletions.
78 changes: 23 additions & 55 deletions src/references/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,62 +137,30 @@ export const AddCashCurrencyInfo: {
};

export const NATIVE_ASSETS_PER_CHAIN: Record<ChainId, AddressOrEth> = {
[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, AddressOrEth> = {
[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';
Expand Down

0 comments on commit 64d1387

Please sign in to comment.