Skip to content

Commit e3fca1e

Browse files
authoredMar 10, 2025··
Merge pull request #624 from enkryptcom/devop/fix-klay
fix: klayton and images
2 parents 9599c8b + 1ced5be commit e3fca1e

File tree

15 files changed

+339
-350
lines changed

15 files changed

+339
-350
lines changed
 

‎packages/extension/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@enkryptcom/extension",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"private": true,
55
"type": "module",
66
"scripts": {

‎packages/extension/src/providers/ethereum/libs/assets-handlers/assetinfo-mew.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ const supportedNetworks: Record<SupportedNetworkNames, SupportedNetwork> = {
9494
tbName: 'ftm',
9595
cgPlatform: CoingeckoPlatform.Fantom,
9696
},
97-
[NetworkNames.Klaytn]: {
97+
[NetworkNames.Kaia]: {
9898
tbName: 'klay',
99-
cgPlatform: CoingeckoPlatform.Klaytn,
99+
cgPlatform: CoingeckoPlatform.Kaia,
100100
},
101101
[NetworkNames.Aurora]: {
102102
tbName: 'aurora',

‎packages/extension/src/providers/ethereum/libs/assets-handlers/types/tokenbalance-mew.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type SupportedNetworkNames =
4343
| NetworkNames.Gnosis
4444
| NetworkNames.Avalanche
4545
| NetworkNames.Fantom
46-
| NetworkNames.Klaytn
46+
| NetworkNames.Kaia
4747
| NetworkNames.Aurora
4848
| NetworkNames.TomoChain
4949
| NetworkNames.Shibarium
Loading
Binary file not shown.

‎packages/extension/src/providers/ethereum/networks/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import ontEVMNode from './ontevm';
2424
import gnoNode from './gno';
2525
import avaxNode from './avax';
2626
import ftmNode from './ftm';
27-
import klayNode from './klay';
27+
import kaiaNode from './kaia';
2828
import auroraNode from './aurora';
2929
import puppyNode from './puppy';
3030
import sepoliaNode from './sepolia';
@@ -101,7 +101,7 @@ export default {
101101
gnosis: gnoNode,
102102
avax: avaxNode,
103103
fantom: ftmNode,
104-
klaytn: klayNode,
104+
kaia: kaiaNode,
105105
aurora: auroraNode,
106106
puppy: puppyNode,
107107
base: baseNode,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import icon from './icons/kaia.png';
2+
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
3+
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
4+
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';
5+
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';
6+
7+
const kaiaOptions: EvmNetworkOptions = {
8+
name: NetworkNames.Kaia,
9+
name_long: 'Kaia',
10+
homePage: 'https://www.kaia.io/',
11+
blockExplorerTX: 'https://kaiascan.io/tx/[[txHash]]',
12+
blockExplorerAddr: 'https://kaiascan.io/address/[[address]]',
13+
chainID: '0x2019',
14+
isTestNetwork: false,
15+
currencyName: 'KAIA',
16+
currencyNameLong: 'Kaia',
17+
node: 'https://kaia.blockpi.network/v1/rpc/public',
18+
icon,
19+
coingeckoID: 'kaia',
20+
coingeckoPlatform: CoingeckoPlatform.Kaia,
21+
assetsInfoHandler,
22+
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
23+
};
24+
25+
const kaia = new EvmNetwork(kaiaOptions);
26+
27+
export default kaia;

‎packages/extension/src/providers/ethereum/networks/klay.ts

-27
This file was deleted.

‎packages/extension/src/providers/ethereum/networks/scroll.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const scrollOptions: EvmNetworkOptions = {
1616
isTestNetwork: false,
1717
currencyName: 'ETH',
1818
currencyNameLong: 'Scroll ETH',
19-
node: 'https://scroll.api.onfinality.io/public',
19+
node: 'wss://scroll-rpc.publicnode.com',
2020
icon,
2121
NFTHandler: shNFTHandler,
2222
coingeckoID: 'ethereum',

‎packages/extension/src/providers/solana/libs/api.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class API implements ProviderAPIInterface {
104104
decimals: tokenResponse.result.token_info.decimals,
105105
icon:
106106
tokenResponse.result.content.files &&
107-
tokenResponse.result.content.files.length > 0
107+
tokenResponse.result.content.files.length > 0 &&
108+
tokenResponse.result.content.files[0].uri
108109
? `https://img.mewapi.io/?image=${tokenResponse.result.content.files[0].uri}`
109110
: undefined,
110111
};

‎packages/hw-wallets/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"@ledgerhq/live-common": "^34.20.0",
6161
"@polkadot/types": "^15.5.2",
6262
"@polkadot/util": "^13.3.1",
63-
"@trezor/connect": "^9.4.7",
64-
"@trezor/connect-webextension": "^9.4.7",
63+
"@trezor/connect": "^9.5.1",
64+
"@trezor/connect-webextension": "^9.5.1",
6565
"@zondax/ledger-substrate": "^1.0.1",
6666
"bitcoinjs-lib": "^6.1.7",
6767
"bs58": "^6.0.0",

‎packages/swap/src/common/supportedNetworks.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ const NetworkDetails: Record<SupportedNetworkName, NetworkInfo> = {
137137
signerType: [SignerType.secp256k1],
138138
type: NetworkType.EVM,
139139
},
140-
[SupportedNetworkName.Klaytn]: {
141-
id: SupportedNetworkName.Klaytn,
142-
cgId: "klay-token",
140+
[SupportedNetworkName.Kaia]: {
141+
id: SupportedNetworkName.Kaia,
142+
cgId: "kaia",
143143
decimals: 18,
144144
logoURI:
145145
"https://tokens.1inch.io/0xe4f05a66ec68b54a58b17c22107b02e0232cc817.png",
146-
name: "Klaytn",
147-
symbol: "KLAY",
146+
name: "Kaia",
147+
symbol: "KAIA",
148148
rank: 10,
149149
signerType: [SignerType.secp256k1],
150150
type: NetworkType.EVM,

‎packages/swap/src/types/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export enum SupportedNetworkName {
2525
Gnosis = NetworkNames.Gnosis,
2626
Avalanche = NetworkNames.Avalanche,
2727
Fantom = NetworkNames.Fantom,
28-
Klaytn = NetworkNames.Klaytn,
28+
Kaia = NetworkNames.Kaia,
2929
Aurora = NetworkNames.Aurora,
3030
Zksync = NetworkNames.ZkSync,
3131
Base = NetworkNames.Base,

‎packages/types/src/networks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export enum NetworkNames {
4747
Gnosis = "GNO",
4848
Avalanche = "AVAX",
4949
Fantom = "FTM",
50-
Klaytn = "KLAY",
50+
Kaia = "KAIA",
5151
Aurora = "AURORA",
5252
PuppyNet = "puppyNet",
5353
Shibarium = "SHIB",
@@ -130,7 +130,7 @@ export enum CoingeckoPlatform {
130130
Gnosis = "xdai",
131131
Avalanche = "avalanche",
132132
Fantom = "fantom",
133-
Klaytn = "klay-token",
133+
Kaia = "klay-token",
134134
Aurora = "aurora",
135135
Zksync = "zksync",
136136
Quartz = "quartz",

0 commit comments

Comments
 (0)
Please sign in to comment.