Skip to content

Commit

Permalink
PRO-1322-Klaytn Support (#223)
Browse files Browse the repository at this point in the history
* added klaytn mainnet and testnet

* added klaytn mainnet on qa env

* Updated readme
  • Loading branch information
vignesha22 authored May 11, 2023
1 parent 581796f commit c7a8ab6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ main().catch(console.error);

notification of transactions is not available for fuse

## Transaction History on Klaytn

History of transactions would be incomplete only on Klaytn Network due to lack of resources for fetching the required data


## License

Expand Down
14 changes: 7 additions & 7 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
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@apollo/client": "3.4.0",
"@etherspot/contracts": "1.9.7",
"@etherspot/contracts": "1.9.8",
"@lifi/sdk": "1.6.4",
"@nerdwallet/apollo-cache-policies": "1.2.1",
"class-transformer": "0.4.0",
Expand Down
4 changes: 3 additions & 1 deletion src/sdk/env/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const SUPPORTED_ENVS: { [key: string]: Env } = {
NetworkNames.Celo,
NetworkNames.Fuse,
NetworkNames.ArbitrumNova,
// NetworkNames.Klaytn,
// NetworkNames.Neon,
],
},
Expand All @@ -54,6 +55,7 @@ export const SUPPORTED_ENVS: { [key: string]: Env } = {
NetworkNames.NeonDevnet,
NetworkNames.OptimismGoerli,
NetworkNames.BaseGoerli,
NetworkNames.KlaytnBaobab,
NetworkNames.Etherspot,
],
},
Expand All @@ -77,7 +79,7 @@ export const SUPPORTED_ENVS: { [key: string]: Env } = {
useSsl: true,
},
networkOptions: {
supportedNetworkNames: [NetworkNames.Matic, NetworkNames.Bsc, NetworkNames.Optimism, NetworkNames.Arbitrum],
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 @@ -28,6 +28,8 @@ export enum NetworkNames {
NeonDevnet = 'neonDevnet',
OptimismGoerli = 'optimismGoerli',
BaseGoerli = 'baseGoerli',
KlaytnBaobab = 'klaytnBaobab',
Klaytn = 'klaytn',
LocalA = 'localA',
LocalB = 'localB',
LocalH = 'localH',
Expand Down Expand Up @@ -64,6 +66,8 @@ export const NETWORK_NAME_TO_CHAIN_ID: {
[NetworkNames.NeonDevnet]: 245022926,
[NetworkNames.OptimismGoerli]: 420,
[NetworkNames.BaseGoerli]: 84531,
[NetworkNames.Klaytn]: 8217,
[NetworkNames.KlaytnBaobab]: 1001,
[NetworkNames.Etherspot]: 4386,
[NetworkNames.LocalA]: 9999,
[NetworkNames.LocalB]: 6666,
Expand Down

0 comments on commit c7a8ab6

Please sign in to comment.