Skip to content

Commit f6ad6aa

Browse files
feat: add Superposition chain (#2400)
* feat: add Superposition chain * Update seven-lights-relate.md --------- Co-authored-by: Daniel Sinclair <[email protected]>
1 parent d7e071e commit f6ad6aa

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.changeset/seven-lights-relate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rainbow-me/rainbowkit": major
3+
---
4+
5+
Added support for Superposition chain

packages/example/src/wagmi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ import {
9696
scroll,
9797
scrollSepolia,
9898
sepolia,
99+
superposition,
99100
unichain,
100101
unichainSepolia,
101102
zksync,
@@ -148,6 +149,7 @@ export const config = getDefaultConfig({
148149
gravity,
149150
ink,
150151
sanko,
152+
superposition,
151153
unichain,
152154
zora,
153155
linea,
Lines changed: 1 addition & 0 deletions
Loading

packages/rainbowkit/src/components/RainbowKitProvider/provideRainbowKitChains.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ type ChainName =
6464
| 'scroll'
6565
| 'scrollSepolia'
6666
| 'sepolia'
67+
| 'superposition'
6768
| 'unichain'
6869
| 'unichainSepolia'
6970
| 'xdc'
@@ -211,6 +212,11 @@ const sankoIcon: IconMetadata = {
211212
iconUrl: async () => (await import('./chainIcons/sanko.png')).default,
212213
};
213214

215+
const superpositionIcon: IconMetadata = {
216+
iconBackground: '#000000',
217+
iconUrl: async () => (await import('./chainIcons/superposition.svg')).default,
218+
};
219+
214220
const scrollIcon: IconMetadata = {
215221
iconBackground: '#FFEEDA',
216222
iconUrl: async () => (await import('./chainIcons/scroll.svg')).default,
@@ -306,6 +312,11 @@ const chainMetadataByName: Record<ChainName, ChainMetadata | null> = {
306312
scroll: { chainId: 534352, ...scrollIcon },
307313
scrollSepolia: { chainId: 534351, ...scrollIcon },
308314
sepolia: { chainId: 11_155_111, ...ethereumIcon },
315+
superposition: {
316+
chainId: 55244,
317+
name: 'Superposition',
318+
...superpositionIcon,
319+
},
309320
unichain: { chainId: 130, ...unichainIcon },
310321
unichainSepolia: { chainId: 1301, ...unichainIcon },
311322
xdc: { chainId: 50, name: 'XDC', ...xdcIcon },

0 commit comments

Comments
 (0)