diff --git a/CHANGELOG.md b/CHANGELOG.md index c9ce7408..d16902c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index db9568f1..e016eb5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@etherspot/prime-sdk", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@etherspot/prime-sdk", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "dependencies": { "@thehubbleproject/bls": "0.5.1", diff --git a/package.json b/package.json index 3326f740..878ae6be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@etherspot/prime-sdk", - "version": "1.0.0", + "version": "1.0.1", "description": "Etherspot Prime (Account Abstraction) SDK", "keywords": [ "ether", diff --git a/src/sdk/network/constants.ts b/src/sdk/network/constants.ts index 5584eadd..9bf8687d 100644 --- a/src/sdk/network/constants.ts +++ b/src/sdk/network/constants.ts @@ -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: {