Skip to content

Commit ac85b13

Browse files
authored
feat: introduce support for plasma (#88)
1 parent e84596f commit ac85b13

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@
104104
<br>Berachain
105105
</div>
106106
</td>
107+
<td style="width:100px; text-align:center;">
108+
<div align="center">
109+
<img alt="Plasma" src="https://cdn.prod.website-files.com/68762d4ac364502c1ae1924b/68b159e46687e6c50b2fe2af_XPL.svg" width="24"/>
110+
<br>Plasma
111+
</div>
112+
</td>
107113
<td style="width:100px; text-align:center;">
108114
<div align="center">
109115
<img alt="coming soon" src="https://i.imgur.com/CexTjqF.png" width="22"/>
@@ -116,13 +122,14 @@
116122
<br>🔜
117123
</div>
118124
</td>
125+
</tr>
126+
<tr>
119127
<td style="width:100px; text-align:center;">
120128
<div align="center">
121129
<img alt="coming soon" src="https://i.imgur.com/OPA8A9u.png" width="22"/>
122130
<br>🔜
123131
</div>
124132
</td>
125-
126133
</tr>
127134
</table>
128135

src/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
linea,
77
scroll,
88
mantle,
9+
plasma,
910
mainnet,
1011
polygon,
1112
arbitrum,
@@ -75,6 +76,7 @@ export const NATIVE_SYMBOL_BY_CHAIN_ID: { [key in SupportedChainId]: string } =
7576
[linea.id]: linea.nativeCurrency.symbol,
7677
[scroll.id]: scroll.nativeCurrency.symbol,
7778
[mantle.id]: mantle.nativeCurrency.symbol,
79+
[plasma.id]: plasma.nativeCurrency.symbol,
7880
[mainnet.id]: mainnet.nativeCurrency.symbol,
7981
[polygon.id]: polygon.nativeCurrency.symbol,
8082
[unichain.id]: unichain.nativeCurrency.symbol,

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
linea,
77
scroll,
88
mantle,
9+
plasma,
910
mainnet,
1011
polygon,
1112
arbitrum,
@@ -34,6 +35,7 @@ export type SupportedChainId =
3435
| typeof linea.id
3536
| typeof scroll.id
3637
| typeof mantle.id
38+
| typeof plasma.id
3739
| typeof mainnet.id
3840
| typeof polygon.id
3941
| typeof arbitrum.id

src/utils/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
linea,
88
scroll,
99
mantle,
10+
plasma,
1011
mainnet,
1112
polygon,
1213
arbitrum,
@@ -36,6 +37,7 @@ export function isChainIdSupported(
3637
linea.id,
3738
scroll.id,
3839
mantle.id,
40+
plasma.id,
3941
polygon.id,
4042
mainnet.id,
4143
arbitrum.id,

0 commit comments

Comments
 (0)