Skip to content

Commit

Permalink
Merge pull request #624 from enkryptcom/devop/fix-klay
Browse files Browse the repository at this point in the history
fix: klayton and images
  • Loading branch information
kvhnuke authored Mar 10, 2025
2 parents 9599c8b + 1ced5be commit e3fca1e
Show file tree
Hide file tree
Showing 15 changed files with 339 additions and 350 deletions.
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enkryptcom/extension",
"version": "2.4.1",
"version": "2.4.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ const supportedNetworks: Record<SupportedNetworkNames, SupportedNetwork> = {
tbName: 'ftm',
cgPlatform: CoingeckoPlatform.Fantom,
},
[NetworkNames.Klaytn]: {
[NetworkNames.Kaia]: {
tbName: 'klay',
cgPlatform: CoingeckoPlatform.Klaytn,
cgPlatform: CoingeckoPlatform.Kaia,
},
[NetworkNames.Aurora]: {
tbName: 'aurora',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export type SupportedNetworkNames =
| NetworkNames.Gnosis
| NetworkNames.Avalanche
| NetworkNames.Fantom
| NetworkNames.Klaytn
| NetworkNames.Kaia
| NetworkNames.Aurora
| NetworkNames.TomoChain
| NetworkNames.Shibarium
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/extension/src/providers/ethereum/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import ontEVMNode from './ontevm';
import gnoNode from './gno';
import avaxNode from './avax';
import ftmNode from './ftm';
import klayNode from './klay';
import kaiaNode from './kaia';
import auroraNode from './aurora';
import puppyNode from './puppy';
import sepoliaNode from './sepolia';
Expand Down Expand Up @@ -101,7 +101,7 @@ export default {
gnosis: gnoNode,
avax: avaxNode,
fantom: ftmNode,
klaytn: klayNode,
kaia: kaiaNode,
aurora: auroraNode,
puppy: puppyNode,
base: baseNode,
Expand Down
27 changes: 27 additions & 0 deletions packages/extension/src/providers/ethereum/networks/kaia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import icon from './icons/kaia.png';
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';

const kaiaOptions: EvmNetworkOptions = {
name: NetworkNames.Kaia,
name_long: 'Kaia',
homePage: 'https://www.kaia.io/',
blockExplorerTX: 'https://kaiascan.io/tx/[[txHash]]',
blockExplorerAddr: 'https://kaiascan.io/address/[[address]]',
chainID: '0x2019',
isTestNetwork: false,
currencyName: 'KAIA',
currencyNameLong: 'Kaia',
node: 'https://kaia.blockpi.network/v1/rpc/public',
icon,
coingeckoID: 'kaia',
coingeckoPlatform: CoingeckoPlatform.Kaia,
assetsInfoHandler,
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const kaia = new EvmNetwork(kaiaOptions);

export default kaia;
27 changes: 0 additions & 27 deletions packages/extension/src/providers/ethereum/networks/klay.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const scrollOptions: EvmNetworkOptions = {
isTestNetwork: false,
currencyName: 'ETH',
currencyNameLong: 'Scroll ETH',
node: 'https://scroll.api.onfinality.io/public',
node: 'wss://scroll-rpc.publicnode.com',
icon,
NFTHandler: shNFTHandler,
coingeckoID: 'ethereum',
Expand Down
3 changes: 2 additions & 1 deletion packages/extension/src/providers/solana/libs/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class API implements ProviderAPIInterface {
decimals: tokenResponse.result.token_info.decimals,
icon:
tokenResponse.result.content.files &&
tokenResponse.result.content.files.length > 0
tokenResponse.result.content.files.length > 0 &&
tokenResponse.result.content.files[0].uri
? `https://img.mewapi.io/?image=${tokenResponse.result.content.files[0].uri}`
: undefined,
};
Expand Down
4 changes: 2 additions & 2 deletions packages/hw-wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"@ledgerhq/live-common": "^34.20.0",
"@polkadot/types": "^15.5.2",
"@polkadot/util": "^13.3.1",
"@trezor/connect": "^9.4.7",
"@trezor/connect-webextension": "^9.4.7",
"@trezor/connect": "^9.5.1",
"@trezor/connect-webextension": "^9.5.1",
"@zondax/ledger-substrate": "^1.0.1",
"bitcoinjs-lib": "^6.1.7",
"bs58": "^6.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/swap/src/common/supportedNetworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ const NetworkDetails: Record<SupportedNetworkName, NetworkInfo> = {
signerType: [SignerType.secp256k1],
type: NetworkType.EVM,
},
[SupportedNetworkName.Klaytn]: {
id: SupportedNetworkName.Klaytn,
cgId: "klay-token",
[SupportedNetworkName.Kaia]: {
id: SupportedNetworkName.Kaia,
cgId: "kaia",
decimals: 18,
logoURI:
"https://tokens.1inch.io/0xe4f05a66ec68b54a58b17c22107b02e0232cc817.png",
name: "Klaytn",
symbol: "KLAY",
name: "Kaia",
symbol: "KAIA",
rank: 10,
signerType: [SignerType.secp256k1],
type: NetworkType.EVM,
Expand Down
2 changes: 1 addition & 1 deletion packages/swap/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export enum SupportedNetworkName {
Gnosis = NetworkNames.Gnosis,
Avalanche = NetworkNames.Avalanche,
Fantom = NetworkNames.Fantom,
Klaytn = NetworkNames.Klaytn,
Kaia = NetworkNames.Kaia,
Aurora = NetworkNames.Aurora,
Zksync = NetworkNames.ZkSync,
Base = NetworkNames.Base,
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export enum NetworkNames {
Gnosis = "GNO",
Avalanche = "AVAX",
Fantom = "FTM",
Klaytn = "KLAY",
Kaia = "KAIA",
Aurora = "AURORA",
PuppyNet = "puppyNet",
Shibarium = "SHIB",
Expand Down Expand Up @@ -130,7 +130,7 @@ export enum CoingeckoPlatform {
Gnosis = "xdai",
Avalanche = "avalanche",
Fantom = "fantom",
Klaytn = "klay-token",
Kaia = "klay-token",
Aurora = "aurora",
Zksync = "zksync",
Quartz = "quartz",
Expand Down
Loading

0 comments on commit e3fca1e

Please sign in to comment.