Skip to content

Commit 0e603c7

Browse files
authored
Merge pull request #627 from enkryptcom/develop
Release: 2.4.2
2 parents 6b0fb06 + e3fca1e commit 0e603c7

15 files changed

Lines changed: 339 additions & 350 deletions

File tree

packages/extension/package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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
65.5 KB
Loading
Binary file not shown.

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

Lines changed: 2 additions & 2 deletions
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,
Lines changed: 27 additions & 0 deletions
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

Lines changed: 0 additions & 27 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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
};

0 commit comments

Comments
 (0)