Skip to content

Commit

Permalink
feat: Flow chain support (#2251)
Browse files Browse the repository at this point in the history
* flow wallet

* flow provider

* format

* Revert "flow wallet"

This reverts commit 405f811.

* fix icon

* chore: changeset

---------

Co-authored-by: Daniel Sinclair <[email protected]>
  • Loading branch information
nialexsan and DanielSinclair authored Nov 28, 2024
1 parent 83fe6e5 commit 0c6af55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-wasps-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rainbow-me/rainbowkit": patch
---

Added icon for Flow chain
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ type ChainName =
| 'blastSepolia'
| 'bsc'
| 'bscTestnet'
| 'flow'
| 'flowTestnet'
| 'goerli'
| 'gnosis'
| 'hardhat'
Expand Down Expand Up @@ -106,6 +108,11 @@ const ethereumIcon: IconMetadata = {
iconUrl: async () => (await import('./chainIcons/ethereum.svg')).default,
};

const flowIcon: IconMetadata = {
iconBackground: 'transparent',
iconUrl: async () => (await import('./chainIcons/flow.svg')).default,
};

const gnosisIcon: IconMetadata = {
iconBackground: '#04795c',
iconUrl: async () => (await import('./chainIcons/gnosis.svg')).default,
Expand Down Expand Up @@ -188,6 +195,8 @@ const chainMetadataByName: Record<ChainName, ChainMetadata | null> = {
celoAlfajores: { chainId: 44787, name: 'Celo Alfajores', ...celoIcon },
cronos: { chainId: 25, ...cronosIcon },
cronosTestnet: { chainId: 338, ...cronosIcon },
flow: { chainId: 747, ...flowIcon },
flowTestnet: { chainId: 545, ...flowIcon },
goerli: { chainId: 5, ...ethereumIcon },
gnosis: { chainId: 100, name: 'Gnosis', ...gnosisIcon },
hardhat: { chainId: 31_337, ...hardhatIcon },
Expand Down

0 comments on commit 0c6af55

Please sign in to comment.