Skip to content

Commit

Permalink
Merge pull request #9 from etherspot/feature/add-supported-bundler-ne…
Browse files Browse the repository at this point in the history
…torks

Add all supported Skandha Hosted Bundler networks
  • Loading branch information
arddluma authored Jun 23, 2023
2 parents 87f907e + d537c21 commit 8252663
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [1.0.1] - 2023-06-22
### New
- Added all supported networks Goerli, BaseGoerli, Sepolia, Optimism, Polygon and Arbitrum 🚀

## [1.0.0] - 2023-06-01

### New
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.0.0",
"version": "1.0.1",
"description": "Etherspot Prime (Account Abstraction) SDK",
"keywords": [
"ether",
Expand Down
94 changes: 92 additions & 2 deletions src/sdk/network/constants.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,116 @@
import { NetworkConfig } from ".";

export enum NetworkNames {
Goerli = 'goerli',
Mumbai = 'mumbai',
BaseGoerli = 'baseGoerli',
Sepolia = 'sepolia',
Optimism = 'optimism',
Polygon = 'polygon',
Arbitrum = 'arbitrum',
}

export const SupportedNetworks = [80001]
export const SupportedNetworks = [5, 80001, 84531, 11155111, 10, 137, 42161 ]

export const NETWORK_NAME_TO_CHAIN_ID: {
[key: string]: number;
} = {
[NetworkNames.Goerli]: 5,
[NetworkNames.Mumbai]: 80001,
[NetworkNames.BaseGoerli]: 84531,
[NetworkNames.Sepolia]: 11155111,
[NetworkNames.Optimism]: 10,
[NetworkNames.Polygon]: 137,
[NetworkNames.Arbitrum]: 42161,
};

export const Networks: {
[key: string]: NetworkConfig
} = {
[5]: {
chainId: 5,
bundler: 'https://goerli-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
use: false,
url: '',
},
},
[80001]: {
chainId: 80001,
bundler: 'https://mumbai-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0xBabd8268f9579b05E6042661081eF6015E1d34dE',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
use: false,
url: '',
},
},
[84531]: {
chainId: 84531,
bundler: 'https://basegoerli-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
use: false,
url: '',
},
},
[11155111]: {
chainId: 11155111,
bundler: 'https://sepolia-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
use: false,
url: '',
},
},
[10]: {
chainId: 10,
bundler: 'https://optimism-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
use: false,
url: '',
},
},
[137]: {
chainId: 137,
bundler: 'https://polygon-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
use: false,
url: '',
},
},
[42161]: {
chainId: 42161,
bundler: 'https://arbitrum-bundler.etherspot.io',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x2f771DCa6Ffa3879e48355E8A4aF5b81d82A6164',
uniswapV3SwapRouter: '0xE592427A0AEce92De3Edee1F18E0157C05861564',
},
paymaster: {
Expand Down

0 comments on commit 8252663

Please sign in to comment.