Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: klayton and images #624

Merged
merged 5 commits into from
Mar 10, 2025
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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',
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ export type SupportedNetworkNames =
| NetworkNames.Gnosis
| NetworkNames.Avalanche
| NetworkNames.Fantom
| NetworkNames.Klaytn
| NetworkNames.Kaia
| NetworkNames.Aurora
| NetworkNames.TomoChain
| NetworkNames.Shibarium
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
@@ -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';
@@ -101,7 +101,7 @@ export default {
gnosis: gnoNode,
avax: avaxNode,
fantom: ftmNode,
klaytn: klayNode,
kaia: kaiaNode,
aurora: auroraNode,
puppy: puppyNode,
base: baseNode,
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
@@ -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',
3 changes: 2 additions & 1 deletion packages/extension/src/providers/solana/libs/api.ts
Original file line number Diff line number Diff line change
@@ -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,
};
4 changes: 2 additions & 2 deletions packages/hw-wallets/package.json
Original file line number Diff line number Diff line change
@@ -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",
10 changes: 5 additions & 5 deletions packages/swap/src/common/supportedNetworks.ts
Original file line number Diff line number Diff line change
@@ -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,
2 changes: 1 addition & 1 deletion packages/swap/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -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,
4 changes: 2 additions & 2 deletions packages/types/src/networks.ts
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ export enum NetworkNames {
Gnosis = "GNO",
Avalanche = "AVAX",
Fantom = "FTM",
Klaytn = "KLAY",
Kaia = "KAIA",
Aurora = "AURORA",
PuppyNet = "puppyNet",
Shibarium = "SHIB",
@@ -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",
598 changes: 293 additions & 305 deletions yarn.lock

Large diffs are not rendered by default.