Skip to content

Commit

Permalink
PRO-1816 - Updated Wallet Factory Address (#26)
Browse files Browse the repository at this point in the history
* updated wallet factory contract
* newly added network deployments
  • Loading branch information
vignesha22 authored Aug 31, 2023
1 parent dece48a commit 517712d
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 98 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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.0",
"version": "1.2.1",
"description": "Etherspot Prime (Account Abstraction) SDK",
"keywords": [
"ether",
Expand Down
188 changes: 97 additions & 91 deletions src/sdk/network/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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']
Expand All @@ -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: '',
},
Expand All @@ -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: '',
},
Expand All @@ -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: '',
},
Expand All @@ -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: '',
},
Expand All @@ -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',
},
Expand All @@ -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',
},
Expand All @@ -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',
},
Expand All @@ -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',
},
Expand All @@ -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: '',
},
Expand All @@ -173,11 +152,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
Expand All @@ -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: '',
},
Expand All @@ -199,11 +170,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
Expand All @@ -212,11 +179,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: 'etherspot.pillarproject.io',
},
Expand All @@ -225,11 +188,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
Expand All @@ -238,11 +197,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
Expand All @@ -251,11 +206,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
Expand All @@ -264,11 +215,7 @@ export const Networks: {
bundler: '',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: '0x27f11918740060bd9Be146086F6836e18eedBB8C',
},
paymaster: {
use: false,
url: '',
walletFactory: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
},
graphqlEndpoint: '',
},
Expand All @@ -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(
Expand Down
4 changes: 0 additions & 4 deletions src/sdk/network/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,5 @@ export interface NetworkConfig {
entryPoint: string;
walletFactory: string;
};
paymaster: {
use: boolean;
url: string;
};
graphqlEndpoint?: string;
};

0 comments on commit 517712d

Please sign in to comment.