Skip to content

Commit a9147f9

Browse files
committed
feat: Add Hyperliquid, Plasma
1 parent cc1011b commit a9147f9

File tree

6 files changed

+33
-6
lines changed

6 files changed

+33
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
### Minor Changes
88

9+
## 3.6.5
10+
11+
### Minor Changes
12+
13+
- Added `HYPERLIQUID` testnet.
14+
- Added `PLASMA` mainnet.
15+
- Added `PLASMA` testnet.
16+
917
## 3.6.4
1018

1119
### Minor Changes

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ The SDK currently supports the following chains (chains with '(d)' after are dep
6666
- **Botanix**: Mainnet, Testnet
6767
- **Humanity**: Mainnet
6868
- **Rise**: Testnet
69-
- **Hyperliquid**: Mainnet
69+
- **Hyperliquid**: Mainnet, Testnet
70+
- **Plasma**: Mainnet, Testnet
7071

7172
You can find per-method documentation of the Alchemy SDK endpoints at the [Alchemy Docs linked in the sidebar](https://docs.alchemy.com/reference/alchemy-sdk-quickstart).
7273

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alchemy-sdk",
3-
"version": "3.6.4",
3+
"version": "3.6.5",
44
"description": "Extended Ethers.js SDK for Alchemy APIs",
55
"author": "Alchemy",
66
"license": "MIT",

src/types/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ export enum Network {
220220
BOTANIX_TESTNET = 'botanix-testnet',
221221
HUMANITY_MAINNET = 'humanity-mainnet',
222222
RISE_TESTNET = 'rise-testnet',
223-
HYPERLIQUID_MAINNET = 'hyperliquid-mainnet'
223+
HYPERLIQUID_MAINNET = 'hyperliquid-mainnet',
224+
HYPERLIQUID_TESTNET = 'hyperliquid-testnet',
225+
PLASMA_MAINNET = 'plasma-mainnet',
226+
PLASMA_TESTNET = 'plasma-testnet'
224227
}
225228

226229
/** Token Types for the `getTokenBalances()` endpoint. */

src/util/const.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ export const EthersNetwork = {
159159
[Network.BOTANIX_TESTNET]: 'botanix-testnet',
160160
[Network.HUMANITY_MAINNET]: 'humanity-mainnet',
161161
[Network.RISE_TESTNET]: 'rise-testnet',
162-
[Network.HYPERLIQUID_MAINNET]: 'hyperliquid-mainnet'
162+
[Network.HYPERLIQUID_MAINNET]: 'hyperliquid-mainnet',
163+
[Network.HYPERLIQUID_TESTNET]: 'hyperliquid-testnet',
164+
[Network.PLASMA_MAINNET]: 'plasma-mainnet',
165+
[Network.PLASMA_TESTNET]: 'plasma-testnet'
163166
};
164167

165168
/**
@@ -573,8 +576,20 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
573576
name: 'rise-testnet'
574577
},
575578
'hyperliquid-mainnet': {
576-
chainId: 999,
579+
chainId: 0x3e7,
577580
name: 'hyperliquid-mainnet'
581+
},
582+
'hyperliquid-testnet': {
583+
chainId: 0x3e6,
584+
name: 'hyperliquid-testnet'
585+
},
586+
'plasma-mainnet': {
587+
chainId: 0x2611,
588+
name: 'plasma-mainnet'
589+
},
590+
'plasma-testnet': {
591+
chainId: 0x2612,
592+
name: 'plasma-testnet'
578593
}
579594
};
580595

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file is autogenerated by injectVersion.js. Any changes will be
22
// overwritten on commit!
3-
export const VERSION = '3.6.4';
3+
export const VERSION = '3.6.5';

0 commit comments

Comments
 (0)