diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b01afd..4d58e1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 72e14b9..bd4f629 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@etherspot/prime-sdk", - "version": "1.3.2", + "version": "1.3.3", "description": "Etherspot Prime (Account Abstraction) SDK", "keywords": [ "ether", diff --git a/src/sdk/network/constants.ts b/src/sdk/network/constants.ts index 7f9ecd4..068fee0 100644 --- a/src/sdk/network/constants.ts +++ b/src/sdk/network/constants.ts @@ -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; @@ -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'] @@ -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 {