Skip to content

Commit

Permalink
PRO-1923 - Scroll Network Support (#44)
Browse files Browse the repository at this point in the history
* added scroll support

* updated package version
  • Loading branch information
vignesha22 authored Oct 19, 2023
1 parent 5579a10 commit 05a1b05
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## [1.3.3] - 2023-10-18
### New
- Added Scroll testnet and Mainnet network support

## [1.3.2] - 2023-10-18
### New
- Added Flare testnet and Mainnet network support
Expand Down
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.3.2",
"version": "1.3.3",
"description": "Etherspot Prime (Account Abstraction) SDK",
"keywords": [
"ether",
Expand Down
34 changes: 32 additions & 2 deletions src/sdk/network/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ export enum NetworkNames {
Linea = 'linea',
LineaTestnet = 'lineaTestnet',
FlareTestnet = 'flareTestnet',
Flare = 'flare'
Flare = 'flare',
ScrollSepolia = 'scrollSepolia',
Scroll = 'scroll',
}

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

export const NETWORK_NAME_TO_CHAIN_ID: {
[key: string]: number;
Expand Down Expand Up @@ -65,6 +67,8 @@ export const NETWORK_NAME_TO_CHAIN_ID: {
[NetworkNames.LineaTestnet]: 59140,
[NetworkNames.FlareTestnet]: 114,
[NetworkNames.Flare]: 14,
[NetworkNames.ScrollSepolia]: 534351,
[NetworkNames.Scroll]: 534352,
};

export const onRamperAllNetworks = ['OPTIMISM', 'POLYGON', 'ARBITRUM', 'FUSE', 'GNOSIS', 'ETHEREUM']
Expand Down Expand Up @@ -436,6 +440,32 @@ export const Networks: {
},
graphqlEndpoint: ''
},
[534351]: {
chainId: 534351,
bundler: 'https://scrollsepolia-bundler.etherspot.io/',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: {
etherspot: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
zeroDev: '',
simpleAccount: '0x9406Cc6185a346906296840746125a0E44976454',
}
},
graphqlEndpoint: ''
},
[534352]: {
chainId: 534352,
bundler: 'https://scroll-bundler.etherspot.io/',
contracts: {
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
walletFactory: {
etherspot: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
zeroDev: '',
simpleAccount: '0x9406Cc6185a346906296840746125a0E44976454',
}
},
graphqlEndpoint: ''
},
};

interface ISafeConstant {
Expand Down

0 comments on commit 05a1b05

Please sign in to comment.