Skip to content

Commit

Permalink
Added OKTC in SDK (#228)
Browse files Browse the repository at this point in the history
* Set OKTC in SDK

* Enabled klaytn in sdk

* Removed OKTC mainnet from unwanted place
  • Loading branch information
kaushalrajbacancy authored May 24, 2023
1 parent b375d0d commit b54a054
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
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",
"version": "1.43.3",
"version": "1.43.4",
"description": "Etherspot SDK",
"keywords": [
"ether",
Expand Down
12 changes: 10 additions & 2 deletions src/sdk/env/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export const SUPPORTED_ENVS: { [key: string]: Env } = {
NetworkNames.Celo,
NetworkNames.Fuse,
NetworkNames.ArbitrumNova,
// NetworkNames.Klaytn,
NetworkNames.Klaytn,
// NetworkNames.Neon,
NetworkNames.OKTC,
],
},
},
Expand All @@ -56,6 +57,7 @@ export const SUPPORTED_ENVS: { [key: string]: Env } = {
NetworkNames.OptimismGoerli,
NetworkNames.BaseGoerli,
NetworkNames.KlaytnBaobab,
NetworkNames.OktcTest,
NetworkNames.Etherspot,
],
},
Expand All @@ -79,7 +81,13 @@ export const SUPPORTED_ENVS: { [key: string]: Env } = {
useSsl: true,
},
networkOptions: {
supportedNetworkNames: [NetworkNames.Matic, NetworkNames.Bsc, NetworkNames.Optimism, NetworkNames.Arbitrum, NetworkNames.Klaytn],
supportedNetworkNames: [
NetworkNames.Matic,
NetworkNames.Bsc,
NetworkNames.Optimism,
NetworkNames.Arbitrum,
NetworkNames.Klaytn,
],
},
},
};
4 changes: 4 additions & 0 deletions src/sdk/network/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export enum NetworkNames {
BaseGoerli = 'baseGoerli',
KlaytnBaobab = 'klaytnBaobab',
Klaytn = 'klaytn',
OKTC = 'oktc',
OktcTest = 'oktcTest',
LocalA = 'localA',
LocalB = 'localB',
LocalH = 'localH',
Expand Down Expand Up @@ -69,6 +71,8 @@ export const NETWORK_NAME_TO_CHAIN_ID: {
[NetworkNames.Klaytn]: 8217,
[NetworkNames.KlaytnBaobab]: 1001,
[NetworkNames.Etherspot]: 4386,
[NetworkNames.OKTC]: 66,
[NetworkNames.OktcTest]: 65,
[NetworkNames.LocalA]: 9999,
[NetworkNames.LocalB]: 6666,
[NetworkNames.LocalH]: 3333,
Expand Down

0 comments on commit b54a054

Please sign in to comment.