diff --git a/CHANGELOG.md b/CHANGELOG.md index bd894ee1..2fb59e75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## [1.6.1] - 2024-03-14 +### New +- Added Base Sepolia Network + ## [1.6.0] - 2024-03-08 ### Bug Fixes - Passed the dummy signature based on the type of smart wallet account to the paymaster diff --git a/package-lock.json b/package-lock.json index 5e34d3af..d687a640 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@etherspot/prime-sdk", - "version": "1.6.0", + "version": "1.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@etherspot/prime-sdk", - "version": "1.6.0", + "version": "1.6.1", "license": "MIT", "dependencies": { "@apollo/client": "3.8.7", diff --git a/package.json b/package.json index 253600f3..279ee58b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@etherspot/prime-sdk", - "version": "1.6.0", + "version": "1.6.1", "description": "Etherspot Prime (Account Abstraction) SDK", "keywords": [ "ether", diff --git a/src/sdk/network/constants.ts b/src/sdk/network/constants.ts index 82de3bbe..5d733eb3 100644 --- a/src/sdk/network/constants.ts +++ b/src/sdk/network/constants.ts @@ -4,6 +4,7 @@ export enum NetworkNames { Goerli = 'goerli', Mumbai = 'mumbai', BaseGoerli = 'baseGoerli', + BaseSepolia = 'baseSepolia', Sepolia = 'sepolia', Optimism = 'optimism', Polygon = 'polygon', @@ -36,7 +37,7 @@ export enum NetworkNames { } export const SupportedNetworks = - [1, 5, 10, 14, 31, 56, 97, 100, 114, 122, 123, 137, 420, 1001, 2357, 5000, 5001, 8217, 8453, 10200, 20197, 42161, 43113, 43114, 59140, 59144, 80001, 84531, 421613, 534351, 534352, 11155111] + [1, 5, 10, 14, 31, 56, 97, 100, 114, 122, 123, 137, 420, 1001, 2357, 5000, 5001, 8217, 8453, 10200, 20197, 42161, 43113, 43114, 59140, 59144, 80001, 84531, 84532, 421613, 534351, 534352, 11155111] export const NETWORK_NAME_TO_CHAIN_ID: { [key: string]: number; @@ -44,6 +45,7 @@ export const NETWORK_NAME_TO_CHAIN_ID: { [NetworkNames.Goerli]: 5, [NetworkNames.Mumbai]: 80001, [NetworkNames.BaseGoerli]: 84531, + [NetworkNames.BaseSepolia]: 84532, [NetworkNames.Sepolia]: 11155111, [NetworkNames.Optimism]: 10, [NetworkNames.Polygon]: 137, @@ -132,6 +134,19 @@ export const Networks: { }, graphqlEndpoint: 'qa-etherspot.pillarproject.io', }, + [84532]: { + chainId: 84532, + bundler: 'https://basesepolia-bundler.etherspot.io/', + contracts: { + entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789', + walletFactory: { + etherspot: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E', + zeroDev: '0x5de4839a76cf55d0c90e2061ef4386d962E15ae3', + simpleAccount: '0x9406Cc6185a346906296840746125a0E44976454', + } + }, + graphqlEndpoint: '', + }, [11155111]: { chainId: 11155111, bundler: 'https://sepolia-bundler.etherspot.io', @@ -515,81 +530,137 @@ export const Safe: ISafeConstant = { "18": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "25": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "28": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "30": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "31": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "39": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "40": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "41": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "42": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "43": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "44": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "46": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "50": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "51": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "56": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "57": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "61": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "63": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "69": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "71": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "81": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "82": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "83": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "97": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "100": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "106": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "108": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "109": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "111": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "122": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "123": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "137": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "148": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "155": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "169": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "195": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "204": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "246": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "250": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "252": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "255": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "280": "0x0dFcccB95225ffB03c6FBB2559B530C2B7C8A912", "288": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "291": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "300": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "321": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "322": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "324": "0x0dFcccB95225ffB03c6FBB2559B530C2B7C8A912", "336": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "338": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "420": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "424": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "570": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "588": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "592": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "595": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "599": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "686": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "787": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "919": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1001": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1008": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "1030": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1088": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1101": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1111": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1112": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1115": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1116": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "1230": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "1231": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1284": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1285": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1287": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1294": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "1442": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "1559": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "1663": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1807": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "1890": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "1891": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1984": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "1998": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2001": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2002": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2008": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2019": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2020": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "2021": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2221": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "2222": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "2358": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "3737": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "3776": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "4002": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "4202": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "4337": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "4460": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "4689": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "4918": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "4919": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "5000": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "5001": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "5003": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "5700": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "6102": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "7001": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "7332": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "7341": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "7700": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "8192": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "8194": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "8217": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "8453": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "9000": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "9001": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "9728": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "10000": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "10001": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "10081": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "10200": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "10242": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "10243": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "11235": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "11437": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "11891": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "12357": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "13337": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "17000": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "17172": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "18231": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "23294": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "23295": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "34443": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "42161": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "42170": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "42220": "0x998739BFdAAdde7C933B942a68053933098f9EDa", @@ -601,26 +672,46 @@ export const Safe: ISafeConstant = { "47805": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "54211": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "56288": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "57000": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "58008": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "59140": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "59144": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "71401": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "71402": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "73799": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "80001": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "80085": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "81457": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "84531": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "84532": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "103454": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "167008": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "200101": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "200202": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "333999": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "421611": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "421613": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "421614": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "534351": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "534352": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "534353": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "622277": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "713715": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "7777777": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "11155111": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "11155420": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "168587773": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "222000222": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "245022926": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "245022934": "0x998739BFdAAdde7C933B942a68053933098f9EDa", + "333000333": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "999999999": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1313161554": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1313161555": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", "1666600000": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "1666700000": "0x998739BFdAAdde7C933B942a68053933098f9EDa", "11297108099": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", - "11297108109": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761", + "11297108109": "0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761" }, };