Skip to content

Commit a22ca43

Browse files
authored
feat: Add more networks (#503)
* feat: Add more networks * fix: Update Optimism name * fix: Network typos * chore: Update lockfile * fix: Specify engine * fix: Change CI config, not engines
1 parent 1a188b5 commit a22ca43

File tree

8 files changed

+383
-25
lines changed

8 files changed

+383
-25
lines changed

.circleci/config.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ jobs:
99
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
1010
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
1111
docker:
12-
- image: cimg/node:16.13.2
12+
- image: cimg/node:lts
1313
# Add steps to the job
1414
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
1515
steps:
1616
- checkout
1717
- restore_cache:
1818
name: Restore Yarn package cache
1919
keys:
20-
- yarn-packages-{{ checksum "yarn.lock" }}
20+
- yarn-packages-{{ checksum "yarn.lock" }}
2121
- run:
2222
name: Install dependencies
23-
command: "yarn --frozen-lockfile"
23+
command: 'yarn --frozen-lockfile'
2424
- save_cache:
2525
name: Save Yarn package cache
2626
key: yarn-packages-{{ checksum "yarn.lock" }}
2727
paths:
28-
- ~/.cache/yarn
28+
- ~/.cache/yarn
2929
- run:
3030
name: Run tests
31-
command: "yarn test"
31+
command: 'yarn test'
3232

3333
# Invoke jobs via workflows
3434
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66

77
### Minor Changes
88

9+
## 3.5.8
10+
11+
### Minor Changes
12+
13+
- Added Berachain Bepolia, Celo Baklava, Ethereum Hoodi, Gensyn Testnet,
14+
Lens Mainnet, Settlus Mainnet, Superseed Mainnet and Sepolia, Tea Sepolia
15+
- Deprecated Berachain Bartio
16+
- Replace `optimism` with `opt-mainnet`
17+
918
## 3.5.7
1019

1120
### Minor Changes

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The SDK leverages Alchemy's hardened node infrastructure, guaranteeing best-in-c
1212
1313
The SDK currently supports the following chains (chains with '(d)' after are deprecated):
1414

15-
- **Ethereum**: Mainnet, Goerli (d), Sepolia, Holesky
15+
- **Ethereum**: Mainnet, Goerli (d), Sepolia, Holesky, Hoodi
1616
- **Polygon**: Mainnet, Mumbai (d), Amoy
1717
- **Optimism**: Mainnet, Goerli (d), Sepolia
1818
- **Arbitrum**: Mainnet, Goerli (d), Sepolia
@@ -31,10 +31,10 @@ The SDK currently supports the following chains (chains with '(d)' after are dep
3131
- **Gnosis**: Mainnet, Chiado
3232
- **BNB**: Mainnet, Testnet
3333
- **Avalanche**: Mainnet, Fuji
34-
- **Celo**: Mainnet, Alfajores
34+
- **Celo**: Mainnet, Alfajores, Baklava
3535
- **Metis**: Mainnet
3636
- **OpBNB**: Mainnet, Testnet
37-
- **Berachain**: Mainnet, Bartio
37+
- **Berachain**: Mainnet, Bartio, Bepolia
3838
- **Soneium**: Mainnet, Minato
3939
- **Worldchain**: Mainnet, Sepolia
4040
- **Rootstock**: Mainnet, Testnet
@@ -44,7 +44,7 @@ The SDK currently supports the following chains (chains with '(d)' after are dep
4444
- **Polynomial**: Mainnet, Sepolia
4545
- **Crossfi**: Mainnet, Testnet
4646
- **Apechain**: Mainnet, Curtis
47-
- **Lens**: Sepolia
47+
- **Lens**: Mainnet, Sepolia
4848
- **Geist**: Mainnet, Polter
4949
- **Lumia**: Prism, Testnet
5050
- **Unichain**: Mainnet, Sepolia
@@ -56,8 +56,10 @@ The SDK currently supports the following chains (chains with '(d)' after are dep
5656
- **Sei**: Mainnet, Testnet
5757
- **Ronin**: Mainnet, Saigon
5858
- **Monad**: Testnet
59-
- **Settlus**: Testnet (Sepolia)
60-
59+
- **Settlus**: Mainnet, Testnet (Sepolia)
60+
- **Gensyn**: Testnet
61+
- **Superseed**: Mainnet, Sepolia
62+
- **Tea**: Sepolia
6163

6264
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).
6365

package.json

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

src/types/types.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export enum Network {
105105
ETH_GOERLI = 'eth-goerli',
106106
ETH_SEPOLIA = 'eth-sepolia',
107107
ETH_HOLESKY = 'eth-holesky',
108+
ETH_HOODI = 'eth-hoodi',
108109
OPT_MAINNET = 'opt-mainnet',
109110
/** @deprecated */
110111
OPT_GOERLI = 'opt-goerli',
@@ -151,11 +152,14 @@ export enum Network {
151152
AVAX_FUJI = 'avax-fuji',
152153
CELO_MAINNET = 'celo-mainnet',
153154
CELO_ALFAJORES = 'celo-alfajores',
155+
CELO_BAKLAVA = 'celo-baklava',
154156
METIS_MAINNET = 'metis-mainnet',
155157
OPBNB_MAINNET = 'opbnb-mainnet',
156158
OPBNB_TESTNET = 'opbnb-testnet',
159+
/** @deprecated */
157160
BERACHAIN_BARTIO = 'berachain-bartio',
158161
BERACHAIN_MAINNET = 'berachain-mainnet',
162+
BERACHAIN_BEPOLIA = 'berachain-bepolia',
159163
SONEIUM_MAINNET = 'soneium-mainnet',
160164
SONEIUM_MINATO = 'soneium-minato',
161165
WORLDCHAIN_MAINNET = 'worldchain-mainnet',
@@ -174,6 +178,7 @@ export enum Network {
174178
CROSSFI_TESTNET = 'crossfi-testnet',
175179
APECHAIN_MAINNET = 'apechain-mainnet',
176180
APECHAIN_CURTIS = 'apechain-curtis',
181+
LENS_MAINNET = 'lens-mainnet',
177182
LENS_SEPOLIA = 'lens-sepolia',
178183
GEIST_MAINNET = 'geist-mainnet',
179184
GEIST_POLTER = 'geist-polter',
@@ -195,8 +200,13 @@ export enum Network {
195200
RONIN_SAIGON = 'ronin-saigon',
196201
MONAD_TESTNET = 'monad-testnet',
197202
SETTLUS_SEPTESTNET = 'settlus-septestnet',
203+
SETTLUS_MAINNET = 'settlus-mainnet',
198204
SOLANA_MAINNET = 'solana-mainnet',
199-
SOLANA_DEVNET = 'solana-devnet'
205+
SOLANA_DEVNET = 'solana-devnet',
206+
GENSYN_TESTNET = 'gensyn-testnet',
207+
SUPERSEED_MAINNET = 'superseed-mainnet',
208+
SUPERSEED_SEPOLIA = 'superseed-sepolia',
209+
TEA_SEPOLIA = 'tea-sepolia'
200210
}
201211

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

src/util/const.ts

+51-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export const EthersNetwork = {
4949
[Network.ETH_GOERLI]: 'goerli',
5050
[Network.ETH_SEPOLIA]: 'sepolia',
5151
[Network.ETH_HOLESKY]: 'holesky',
52-
[Network.OPT_MAINNET]: 'optimism',
52+
[Network.ETH_HOODI]: 'hoodi',
53+
[Network.OPT_MAINNET]: 'opt-mainnet',
5354
[Network.OPT_GOERLI]: 'optimism-goerli',
5455
[Network.OPT_SEPOLIA]: 'optimism-sepolia',
5556
[Network.ARB_MAINNET]: 'arbitrum',
@@ -92,11 +93,13 @@ export const EthersNetwork = {
9293
[Network.AVAX_FUJI]: 'avax-fuji',
9394
[Network.CELO_MAINNET]: 'celo-mainnet',
9495
[Network.CELO_ALFAJORES]: 'celo-alfajores',
96+
[Network.CELO_BAKLAVA]: 'celo-baklava',
9597
[Network.METIS_MAINNET]: 'metis-mainnet',
9698
[Network.OPBNB_MAINNET]: 'opbnb-mainnet',
9799
[Network.OPBNB_TESTNET]: 'opbnb-testnet',
98100
[Network.BERACHAIN_BARTIO]: 'berachain-bartio',
99101
[Network.BERACHAIN_MAINNET]: 'berachain-mainnet',
102+
[Network.BERACHAIN_BEPOLIA]: 'berachain-bepolia',
100103
[Network.SONEIUM_MAINNET]: 'soneium-mainnet',
101104
[Network.SONEIUM_MINATO]: 'soneium-minato',
102105
[Network.WORLDCHAIN_MAINNET]: 'worldchain-mainnet',
@@ -115,6 +118,7 @@ export const EthersNetwork = {
115118
[Network.CROSSFI_TESTNET]: 'crossfi-testnet',
116119
[Network.APECHAIN_MAINNET]: 'apechain-mainnet',
117120
[Network.APECHAIN_CURTIS]: 'apechain-curtis',
121+
[Network.LENS_MAINNET]: 'lens-mainnet',
118122
[Network.LENS_SEPOLIA]: 'lens-sepolia',
119123
[Network.GEIST_MAINNET]: 'geist-mainnet',
120124
[Network.GEIST_POLTER]: 'geist-polter',
@@ -135,7 +139,12 @@ export const EthersNetwork = {
135139
[Network.RONIN_MAINNET]: 'ronin-mainnet',
136140
[Network.RONIN_SAIGON]: 'ronin-saigon',
137141
[Network.MONAD_TESTNET]: 'monad-testnet',
138-
[Network.SETTLUS_SEPTESTNET]: 'settlus-septestnet'
142+
[Network.SETTLUS_MAINNET]: 'settlus-mainnet',
143+
[Network.SETTLUS_SEPTESTNET]: 'settlus-septestnet',
144+
[Network.GENSYN_TESTNET]: 'gensyn-testnet',
145+
[Network.SUPERSEED_MAINNET]: 'superseed-mainnet',
146+
[Network.SUPERSEED_SEPOLIA]: 'superseed-sepolia',
147+
[Network.TEA_SEPOLIA]: 'tea-sepolia'
139148
};
140149

141150
/**
@@ -164,6 +173,14 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
164173
chainId: 17000,
165174
name: 'holesky'
166175
},
176+
hoodi: {
177+
chainId: 560048,
178+
name: 'hoodi'
179+
},
180+
'opt-mainnet': {
181+
chainId: 10,
182+
name: 'opt-mainnet'
183+
},
167184
'optimism-sepolia': {
168185
chainId: 11155420,
169186
name: 'optimism-sepolia'
@@ -296,6 +313,10 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
296313
chainId: 44787,
297314
name: 'celo-alfajores'
298315
},
316+
'celo-baklava': {
317+
chainId: 62320,
318+
name: 'celo-baklava'
319+
},
299320
'metis-mainnet': {
300321
chainId: 1088,
301322
name: 'metis-mainnet'
@@ -316,6 +337,10 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
316337
chainId: 80094,
317338
name: 'berachain-mainnet'
318339
},
340+
'berachain-bepolia': {
341+
chainId: 80069,
342+
name: 'berachain-bepolia'
343+
},
319344
'soneium-mainnet': {
320345
chainId: 1868,
321346
name: 'soneium-mainnet'
@@ -388,6 +413,10 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
388413
chainId: 33111,
389414
name: 'apechain-curtis'
390415
},
416+
'lens-mainnet': {
417+
chainId: 232,
418+
name: 'lens-mainnet'
419+
},
391420
'lens-sepolia': {
392421
chainId: 0x90f7,
393422
name: 'lens-sepolia'
@@ -468,9 +497,29 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
468497
chainId: 0x279f,
469498
name: 'monad-testnet'
470499
},
500+
'settlus-mainnet': {
501+
chainId: 5371,
502+
name: 'settlus-mainnet'
503+
},
471504
'settlus-septestnet': {
472505
chainId: 0x14fd,
473506
name: 'settlus-septestnet'
507+
},
508+
'gensyn-testnet': {
509+
chainId: 685685,
510+
name: 'gensyn-testnet'
511+
},
512+
'superseed-mainnet': {
513+
chainId: 5330,
514+
name: 'superseed-mainnet'
515+
},
516+
'superseed-sepolia': {
517+
chainId: 53302,
518+
name: 'superseed-sepolia'
519+
},
520+
'tea-sepolia': {
521+
chainId: 10218,
522+
name: 'tea-sepolia'
474523
}
475524
};
476525

src/version.ts

+1-1
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.5.7';
3+
export const VERSION = '3.5.8';

0 commit comments

Comments
 (0)