Skip to content

Commit df26ec5

Browse files
authored
feat: Add Klaytn testnet and mainnet config (etherspot#70)
1 parent cd2504f commit df26ec5

File tree

4 files changed

+38
-4
lines changed

4 files changed

+38
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## [1.3.12] - 2023-11-17
3+
### New
4+
- Added Klaytn mainnet and Testnet (Baobab)
5+
26
## [1.3.11] - 2023-11-08
37
### Breaking Changes
48
- Removed api_key from estimate function on the sdk and added the same on the queryString, please refer examples/13-paymaster.ts for more info

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@etherspot/prime-sdk",
3-
"version": "1.3.11",
3+
"version": "1.3.12",
44
"description": "Etherspot Prime (Account Abstraction) SDK",
55
"keywords": [
66
"ether",

src/sdk/network/constants.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ export enum NetworkNames {
3131
Flare = 'flare',
3232
ScrollSepolia = 'scrollSepolia',
3333
Scroll = 'scroll',
34+
Klaytn = 'klaytn',
35+
KlaytnTestnet = 'klaytnTestnet',
3436
}
3537

3638
export const SupportedNetworks =
37-
[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]
39+
[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]
3840

3941
export const NETWORK_NAME_TO_CHAIN_ID: {
4042
[key: string]: number;
@@ -69,6 +71,8 @@ export const NETWORK_NAME_TO_CHAIN_ID: {
6971
[NetworkNames.Flare]: 14,
7072
[NetworkNames.ScrollSepolia]: 534351,
7173
[NetworkNames.Scroll]: 534352,
74+
[NetworkNames.Klaytn]: 8217,
75+
[NetworkNames.KlaytnTestnet]: 1001,
7276
};
7377

7478
export const onRamperAllNetworks = ['OPTIMISM', 'POLYGON', 'ARBITRUM', 'FUSE', 'GNOSIS', 'ETHEREUM']
@@ -89,6 +93,19 @@ export const Networks: {
8993
},
9094
graphqlEndpoint: 'qa-etherspot.pillarproject.io',
9195
},
96+
[1001]: {
97+
chainId: 1001,
98+
bundler: 'https://klaytntestnet-bundler.etherspot.io',
99+
contracts: {
100+
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
101+
walletFactory: {
102+
etherspot: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
103+
zeroDev: '',
104+
simpleAccount: '',
105+
}
106+
},
107+
graphqlEndpoint: 'qa-etherspot.pillarproject.io',
108+
},
92109
[80001]: {
93110
chainId: 80001,
94111
bundler: 'https://mumbai-bundler.etherspot.io',
@@ -167,6 +184,19 @@ export const Networks: {
167184
},
168185
graphqlEndpoint: 'etherspot.pillarproject.io',
169186
},
187+
[8217]: {
188+
chainId: 8217,
189+
bundler: 'https://klaytn-bundler.etherspot.io',
190+
contracts: {
191+
entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
192+
walletFactory: {
193+
etherspot: '0x7f6d8F107fE8551160BD5351d5F1514A6aD5d40E',
194+
zeroDev: '',
195+
simpleAccount: '',
196+
}
197+
},
198+
graphqlEndpoint: 'etherspot.pillarproject.io',
199+
},
170200
[1]: {
171201
chainId: 1,
172202
bundler: 'https://ethereum-bundler.etherspot.io/',

0 commit comments

Comments
 (0)