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

Intergate new EVM chain template #1336

Open
0xmilktea opened this issue May 27, 2024 · 3 comments
Open

Intergate new EVM chain template #1336

0xmilktea opened this issue May 27, 2024 · 3 comments
Assignees

Comments

@0xmilktea
Copy link
Collaborator

0xmilktea commented May 27, 2024

Preparation:

  • what assets are on the chain?
  • XCall, AssetManager, bnUSD addresses? xChainId of the chain.
  • Update Manage wallets modal design for several EVM chains.

Todo:

  • Add xChainId and assets on xTokenMap
  • Update Manage wallets modal UI
  • Add the EVM Chain to Wallet UI
  • Add the EVM chain native token as collateral on the Home page
  • Fetch balances

Problems:

  • Switching chains
@0xmilktea 0xmilktea changed the title Intergate BSC chain Intergate new chain May 27, 2024
@0xmilktea 0xmilktea changed the title Intergate new chain Intergate new EVM chain May 27, 2024
@0xmilktea
Copy link
Collaborator Author

0xmilktea commented May 31, 2024

  • add xCall network Id in pages/trade/bridge/types.ts
  • add chain info in pages/trade/bridge/xChains.ts
  • add sources info in FROM_SOURCES and TO_SOURCES in xChains.ts
  • add chain into in config/wagmi.ts after import (wagmiConfig, coreConfig, CHAINS)
  • add EVMWallet UI in app/components/Header/index.tsx WalletUIs Map
  • add tokens in xTokenMap in pages/trade/birdge/_config/xTokens
  • add chain logo in public/icons/chains folder
  • add fetching balances logic in store/wallet/hooks.ts useWalletFetchBalances hook
  • add keyWords of walletConfig in app/components/WalletModal/index.tsx

@swiftcc624
Copy link
Collaborator

swiftcc624 commented Jun 1, 2024

  • apps/web/src/app/pages/trade/bridge/_xcall
    create PublicXService class of the new chain if it's not made yet.
    create WalletXService class of the new chain if it's not made yet.

  • apps/web/src/app/pages/trade/bridge/_zustand/useXServiceStore.tsx
    update useCreatePublicXService create PublicXService instance of the new chain
    update useCreateWalletXService create WalletXService instance of the new chain

@FezBox FezBox changed the title Intergate new EVM chain Intergate new EVM chain template Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants