Skip to content

Commit

Permalink
chore: rename klaytn to kaia [breaking change] (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsambugs authored Dec 2, 2024
1 parent 6455cdf commit 276e2d5
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
17 changes: 11 additions & 6 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,19 @@ export const Chains = {
],
explorer: 'https://explorer.ont.io/',
},
KLAYTN: {
KAIA: {
chainId: 8217,
name: 'Klaytn',
ids: ['klaytn'],
nativeCurrency: { symbol: 'KLAY', name: 'Klaytn' },
name: 'Kaia',
ids: ['klaytn', 'kaia'],
nativeCurrency: { symbol: 'KAIA', name: 'Kaia' },
wToken: '0xe4f05a66ec68b54a58b17c22107b02e0232cc817',
publicRPCs: ['https://public-en-cypress.klaytn.net', 'https://public-node-api.klaytnapi.com/v1/cypress', 'https://klaytn-pokt.nodies.app'],
explorer: 'https://scope.klaytn.com/',
publicRPCs: [
'https://public-en-cypress.klaytn.net',
'https://public-node-api.klaytnapi.com/v1/cypress',
'https://klaytn-pokt.nodies.app',
'https://public-en.node.kaia.io',
],
explorer: 'https://kaiascan.io/',
},
AURORA: {
chainId: 1313161554,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const COINGECKO_CHAIN_KEYS: Record<ChainId, { chainKey: string; nativeTokenKey:
[Chains.BIT_TORRENT.chainId]: { chainKey: 'bittorrent', nativeTokenKey: 'bittorrent' },
[Chains.BNB_CHAIN.chainId]: { chainKey: 'binance-smart-chain', nativeTokenKey: 'binancecoin' },
[Chains.HECO.chainId]: { chainKey: 'huobi-token', nativeTokenKey: 'huobi-token' },
[Chains.KLAYTN.chainId]: { chainKey: 'klay-token', nativeTokenKey: 'klay-token' },
[Chains.KAIA.chainId]: { chainKey: 'klay-token', nativeTokenKey: 'kaia' },
[Chains.FANTOM.chainId]: { chainKey: 'fantom', nativeTokenKey: 'fantom' },
[Chains.OPTIMISM.chainId]: { chainKey: 'optimistic-ethereum', nativeTokenKey: 'ethereum' },
[Chains.POLYGON.chainId]: { chainKey: 'polygon-pos', nativeTokenKey: 'matic-network' },
Expand Down
2 changes: 1 addition & 1 deletion src/services/providers/provider-sources/ankr-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
[Chains.MOONBEAM.chainId]: 'https://rpc.ankr.com/moonbeam',
[Chains.BIT_TORRENT.chainId]: 'https://rpc.ankr.com/bttc',
[Chains.BASE.chainId]: 'https://rpc.ankr.com/base',
[Chains.KLAYTN.chainId]: 'https://rpc.ankr.com/klaytn',
[Chains.KAIA.chainId]: 'https://rpc.ankr.com/klaytn',
[Chains.SCROLL.chainId]: 'https://rpc.ankr.com/scroll',
};

Expand Down
2 changes: 1 addition & 1 deletion src/services/providers/provider-sources/drpc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
[Chains.GNOSIS.chainId]: 'gnosis',
[Chains.AURORA.chainId]: 'aurora',
[Chains.POLYGON_ZKEVM.chainId]: 'polygon-zkevm',
[Chains.KLAYTN.chainId]: 'klaytn',
[Chains.KAIA.chainId]: 'klaytn',
[Chains.BOBA.chainId]: 'boba-eth',
[Chains.CELO.chainId]: 'celo',
[Chains.CRONOS.chainId]: 'cronos',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
[Chains.FANTOM.chainId]: 'https://fantom.api.onfinality.io/public',
[Chains.AVALANCHE.chainId]: 'https://avalanche.api.onfinality.io/public/ext/bc/C',
[Chains.GNOSIS.chainId]: 'https://gnosis.api.onfinality.io/public',
[Chains.KLAYTN.chainId]: 'https://klaytn.api.onfinality.io/public',
[Chains.KAIA.chainId]: 'https://klaytn.api.onfinality.io/public',
[Chains.CELO.chainId]: 'https://celo.api.onfinality.io/public',
[Chains.FUSE.chainId]: 'https://fuse.api.onfinality.io/public',
[Chains.KAVA.chainId]: 'https://kava.api.onfinality.io/public',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SUPPORTED_CHAINS: Record<ChainId, string> = {
[Chains.OPTIMISM.chainId]: 'op',
[Chains.FANTOM.chainId]: 'ftm',
[Chains.CELO.chainId]: 'celo',
[Chains.KLAYTN.chainId]: 'klay',
[Chains.KAIA.chainId]: 'klay',
[Chains.AURORA.chainId]: 'aurora',
[Chains.BASE.chainId]: 'base',
[Chains.GNOSIS.chainId]: 'gnosis',
Expand Down
2 changes: 1 addition & 1 deletion src/services/quotes/quote-sources/1inch-quote-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ONE_INCH_METADATA: QuoteSourceMetadata<OneInchSupport> = {
Chains.GNOSIS.chainId,
Chains.AVALANCHE.chainId,
Chains.FANTOM.chainId,
Chains.KLAYTN.chainId,
Chains.KAIA.chainId,
Chains.AURORA.chainId,
Chains.BASE.chainId,
],
Expand Down
2 changes: 1 addition & 1 deletion src/shared/defi-llama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const CHAIN_ID_TO_KEY: Record<ChainId, Lowercase<string>> = {
[Chains.MOONRIVER.chainId]: 'moonriver',
[Chains.OKC.chainId]: 'okexchain',
[Chains.ONTOLOGY.chainId]: 'ontology',
[Chains.KLAYTN.chainId]: 'klaytn',
[Chains.KAIA.chainId]: 'klaytn',
[Chains.AURORA.chainId]: 'aurora',
[Chains.HARMONY_SHARD_0.chainId]: 'harmony',
[Chains.MOONBEAM.chainId]: 'moonbeam',
Expand Down
2 changes: 1 addition & 1 deletion test/integration/utils/erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const TOKENS: Record<ChainId, Record<string, TokenData>> = {
whale: '0xc73eed4494382093c6a7c284426a9a00f6c79939',
},
},
[Chains.KLAYTN.chainId]: {
[Chains.KAIA.chainId]: {
STABLE_ERC20: {
address: '0x6270b58be569a7c0b8f47594f191631ae5b2c86c',
whale: '0x7d274dce8e2467fc4cdb6e8e1755db5686daebbb',
Expand Down

0 comments on commit 276e2d5

Please sign in to comment.