Skip to content

Commit

Permalink
feat: Add Abstract mainnet, Unichain mainnet, Sei testnet (#484)
Browse files Browse the repository at this point in the history
* feat: Add Abstract mainnet

* feat: Add Unichain mainnet, Sei testnet

* fix: bump version

* docs

* Revert "docs"

This reverts commit 2269406.
  • Loading branch information
stanleyjones authored Feb 12, 2025
1 parent 8a1d4d4 commit 8aae1d9
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@

### Minor Changes

## 3.5.3

### Major Changes

### Minor Changes

- Added `ABSTRACT` mainnet.
- Added `UNICHAIN` mainnet.
- Added `SEI` testnet.

## 3.5.2

### Minor Changes
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ The SDK currently supports the following chains (chains with '(d)' after are dep
- **Lens**: Sepolia
- **Geist**: Mainnet, Polter
- **Lumia**: Prism, Testnet
- **Unichain**: Sepolia
- **Unichain**: Mainnet, Sepolia
- **Sonic**: Mainnet, Blaze
- **XMTP**: Testnet
- **Abstract**: Testnet
- **Abstract**: Mainnet, Testnet
- **Degen**: Mainnet
- **Ink**: Mainnet, Sepolia
- **Sei**: Testnet

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alchemy-sdk",
"version": "3.5.2",
"version": "3.5.3",
"description": "Extended Ethers.js SDK for Alchemy APIs",
"author": "Alchemy",
"license": "MIT",
Expand Down
5 changes: 4 additions & 1 deletion src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,17 @@ export enum Network {
GEIST_POLTER = 'geist-polter',
LUMIA_PRISM = 'lumia-prism',
LUMIA_TESTNET = 'lumia-testnet',
UNICHAIN_MAINNET = 'unichain-mainnet',
UNICHAIN_SEPOLIA = 'unichain-sepolia',
SONIC_MAINNET = 'sonic-mainnet',
SONIC_BLAZE = 'sonic-blaze',
XMTP_TESTNET = 'xmtp-testnet',
ABSTRACT_MAINNET = 'abstract-mainnet',
ABSTRACT_TESTNET = 'abstract-testnet',
DEGEN_MAINNET = 'degen-mainnet',
INK_MAINNET = 'ink-mainnet',
INK_SEPOLIA = 'ink-sepolia'
INK_SEPOLIA = 'ink-sepolia',
SEI_TESTNET = 'sei-testnet'
}

/** Token Types for the `getTokenBalances()` endpoint. */
Expand Down
17 changes: 16 additions & 1 deletion src/util/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,17 @@ export const EthersNetwork = {
[Network.GEIST_POLTER]: 'geist-polter',
[Network.LUMIA_PRISM]: 'lumia-prism',
[Network.LUMIA_TESTNET]: 'lumia-testnet',
[Network.UNICHAIN_MAINNET]: 'unichain-mainnet',
[Network.UNICHAIN_SEPOLIA]: 'unichain-sepolia',
[Network.SONIC_MAINNET]: 'sonic-mainnet',
[Network.SONIC_BLAZE]: 'sonic-blaze',
[Network.XMTP_TESTNET]: 'xmtp-testnet',
[Network.ABSTRACT_MAINNET]: 'abstract-mainnet',
[Network.ABSTRACT_TESTNET]: 'abstract-testnet',
[Network.DEGEN_MAINNET]: 'degen-mainnet',
[Network.INK_MAINNET]: 'ink-mainnet',
[Network.INK_SEPOLIA]: 'ink-sepolia'
[Network.INK_SEPOLIA]: 'ink-sepolia',
[Network.SEI_TESTNET]: 'sei-testnet'
};

/**
Expand Down Expand Up @@ -398,6 +401,10 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
chainId: 0x7467cbf8,
name: 'lumia-testnet'
},
'unichain-mainnet': {
chainId: 130,
name: 'unichain-mainnet'
},
'unichain-sepolia': {
chainId: 0x515,
name: 'unichain-sepolia'
Expand All @@ -414,6 +421,10 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
chainId: 241320161,
name: 'xmtp-testnet'
},
'abstract-mainnet': {
chainId: 2741,
name: 'abstract-mainnet'
},
'abstract-testnet': {
chainId: 11124,
name: 'abstract-testnet'
Expand All @@ -429,6 +440,10 @@ export const CustomNetworks: { [key: string]: NetworkFromEthers } = {
'ink-sepolia': {
chainId: 0xba5ed,
name: 'ink-sepolia'
},
'sei-testnet': {
chainId: 1328,
name: 'sei-testnet'
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file is autogenerated by injectVersion.js. Any changes will be
// overwritten on commit!
export const VERSION = '3.5.2';
export const VERSION = '3.5.3';

0 comments on commit 8aae1d9

Please sign in to comment.