Skip to content

Commit

Permalink
Add Mantle testnet config (#29)
Browse files Browse the repository at this point in the history
* Add Mantle testnet config

* Upgrade versio nto 1.2.3

* Update changelog

* Update package-lock.json

* Update CHANGELOG.md
  • Loading branch information
arddluma authored Sep 27, 2023
1 parent 467daed commit 0a59bd4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [1.2.9] - 2023-09-26
### New
- Added Mantle testnet
## [1.2.8] - 2023-09-21
### Fixes
- Fixed the issue with getExchangeOffers endpoint (Account must need to be deployed to access this endpoint)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@etherspot/prime-sdk",
"version": "1.2.8",
"version": "1.2.9",
"description": "Etherspot Prime (Account Abstraction) SDK",
"keywords": [
"ether",
Expand Down
13 changes: 12 additions & 1 deletion src/sdk/network/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export enum NetworkNames {
RSKTestnet = 'RSKTestnet',
VerseTestnet = 'verseTestnet',
Mantle = 'Mantle',
MantleTestnet = 'MantleTestnet',
Avalanche = 'avalanche',
Base = 'base',
Bsc = 'bsc',
Expand All @@ -29,7 +30,7 @@ export enum NetworkNames {
}

export const SupportedNetworks =
[1, 5, 10, 31, 56, 97, 100, 122, 123, 137, 420, 2357, 5000, 8453, 10200, 20197, 42161, 43113, 43114, 59140, 59144, 80001, 84531, 421613, 11155111]
[1, 5, 10, 31, 56, 97, 100, 122, 123, 137, 420, 2357, 5000, 5001, 8453, 10200, 20197, 42161, 43113, 43114, 59140, 59144, 80001, 84531, 421613, 11155111]

export const NETWORK_NAME_TO_CHAIN_ID: {
[key: string]: number;
Expand All @@ -52,6 +53,7 @@ export const NETWORK_NAME_TO_CHAIN_ID: {
[NetworkNames.RSKTestnet]: 31,
[NetworkNames.VerseTestnet]: 20197,
[NetworkNames.Mantle]: 5000,
[NetworkNames.MantleTestnet]: 5001,
[NetworkNames.Avalanche]: 43114,
[NetworkNames.Base]: 8453,
[NetworkNames.Bsc]: 56,
Expand Down Expand Up @@ -228,6 +230,15 @@ export const Networks: {
},
graphqlEndpoint: '',
},
[5001]: {
chainId: 5001,
bundler: 'https://mantletestnet-bundler.etherspot.io/',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
[43114]: {
chainId: 43114,
bundler: '',
Expand Down

0 comments on commit 0a59bd4

Please sign in to comment.