From 517712dd8b7a10adfaf95c296f2cd775ed1a5693 Mon Sep 17 00:00:00 2001 From: vignesha22 <82584664+vignesha22@users.noreply.github.com> Date: Thu, 31 Aug 2023 14:41:14 +0530 Subject: [PATCH] PRO-1816 - Updated Wallet Factory Address (#26) * updated wallet factory contract * newly added network deployments --- CHANGELOG.md | 7 ++ package-lock.json | 4 +- package.json | 2 +- src/sdk/network/constants.ts | 188 ++++++++++++++++++---------------- src/sdk/network/interfaces.ts | 4 - 5 files changed, 107 insertions(+), 98 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 897cf8f2..dc492fbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ # Changelog +## [1.2.1] - 2023-08-31 +### Breaking Changes +- Changed the wallet factory address so the smart wallet address will generate a new address. Whoever wishes to access the old wallet should use version 1.2.0 to connect to the old smart wallet + +## [1.2.0] - 2023-08-31 +### New +- Added wallet connect 2.0 support ## [1.1.7] - 2023-08-24 ### New diff --git a/package-lock.json b/package-lock.json index 17d80a42..f171601c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@etherspot/prime-sdk", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@etherspot/prime-sdk", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "dependencies": { "@apollo/client": "3.4.0", diff --git a/package.json b/package.json index b232b9d6..8dabc4c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@etherspot/prime-sdk", - "version": "1.2.0", + "version": "1.2.1", "description": "Etherspot Prime (Account Abstraction) SDK", "keywords": [ "ether", diff --git a/src/sdk/network/constants.ts b/src/sdk/network/constants.ts index 50392fe7..26d02d16 100644 --- a/src/sdk/network/constants.ts +++ b/src/sdk/network/constants.ts @@ -19,9 +19,17 @@ export enum NetworkNames { RSKTestnet = 'RSKTestnet', VerseTestnet = 'verseTestnet', Mantle = 'Mantle', + Avalanche = 'avalanche', + Base = 'base', + Bsc = 'bsc', + BscTestnet = 'bscTestnet', + Fuji = 'fuji', + Linea = 'linea', + LineaTestnet = 'lineaTestnet', } -export const SupportedNetworks = [1, 5, 10, 31, 100, 122, 123, 137, 420, 2357, 5000, 10200, 20197, 42161, 80001, 84531, 421613, 11155111] +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] export const NETWORK_NAME_TO_CHAIN_ID: { [key: string]: number; @@ -44,6 +52,13 @@ export const NETWORK_NAME_TO_CHAIN_ID: { [NetworkNames.RSKTestnet]: 31, [NetworkNames.VerseTestnet]: 20197, [NetworkNames.Mantle]: 5000, + [NetworkNames.Avalanche]: 43114, + [NetworkNames.Base]: 8453, + [NetworkNames.Bsc]: 56, + [NetworkNames.BscTestnet]: 97, + [NetworkNames.Fuji]: 43113, + [NetworkNames.Linea]: 59144, + [NetworkNames.LineaTestnet]: 59140, }; export const onRamperAllNetworks = ['OPTIMISM', 'POLYGON', 'ARBITRUM', 'FUSE', 'GNOSIS', 'ETHEREUM'] @@ -56,11 +71,7 @@ export const Networks: { bundler: 'https://goerli-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -69,11 +80,7 @@ export const Networks: { bundler: 'https://mumbai-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -82,11 +89,7 @@ export const Networks: { bundler: 'https://basegoerli-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -95,11 +98,7 @@ export const Networks: { bundler: 'https://sepolia-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -108,11 +107,7 @@ export const Networks: { bundler: 'https://optimism-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: 'etherspot.pillarproject.io', }, @@ -121,11 +116,7 @@ export const Networks: { bundler: 'https://polygon-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: 'etherspot.pillarproject.io', }, @@ -134,11 +125,7 @@ export const Networks: { bundler: 'https://arbitrum-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: 'etherspot.pillarproject.io', }, @@ -147,11 +134,7 @@ export const Networks: { bundler: 'https://ethereum-bundler.etherspot.io/', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: 'etherspot.pillarproject.io', }, @@ -160,11 +143,7 @@ export const Networks: { bundler: 'https://arbitrumgoerli-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -173,11 +152,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -186,11 +161,7 @@ export const Networks: { bundler: 'https://fuse-bundler.etherspot.io', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -199,11 +170,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -212,11 +179,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: 'etherspot.pillarproject.io', }, @@ -225,11 +188,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -238,11 +197,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -251,11 +206,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -264,11 +215,7 @@ export const Networks: { bundler: '', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, @@ -277,14 +224,73 @@ export const Networks: { bundler: 'https://mantle-bundler.etherspot.io/', contracts: { entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', - walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C', - }, - paymaster: { - use: false, - url: '', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', }, graphqlEndpoint: '', }, + [43114]: { + chainId: 43114, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: 'etherspot.pillarproject.io' + }, + [8453]: { + chainId: 8453, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: '' + }, + [56]: { + chainId: 56, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: 'etherspot.pillarproject.io' + }, + [97]: { + chainId: 97, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: '' + }, + [43113]: { + chainId: 43113, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: '' + }, + [59144]: { + chainId: 59144, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: '' + }, + [59140]: { + chainId: 59140, + bundler: '', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E' + }, + graphqlEndpoint: '' + }, }; export const CHAIN_ID_TO_NETWORK_NAME: { [key: number]: NetworkNames } = Object.entries( diff --git a/src/sdk/network/interfaces.ts b/src/sdk/network/interfaces.ts index 6cf68444..3acf11c1 100644 --- a/src/sdk/network/interfaces.ts +++ b/src/sdk/network/interfaces.ts @@ -12,9 +12,5 @@ export interface NetworkConfig { entryPoint: string; walletFactory: string; }; - paymaster: { - use: boolean; - url: string; - }; graphqlEndpoint?: string; };