Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Enkrypt is a web3 wallet built from the ground up to support the multi-chain fut
- Shiden EVM
- Sepolia
- Syscoin NEVM
- Taraxa
- Telos EVM
- Unique
- Vara Network
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions packages/extension/src/providers/ethereum/networks/taraxa.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import icon from './icons/tara.png';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';
const taraxaOptions: EvmNetworkOptions = {
name: NetworkNames.Taraxa,
name_long: 'Taraxa',
homePage: 'https://taraxa.io',
blockExplorerTX: 'https://tara.to/tx/[[txHash]]',
blockExplorerAddr: 'https://tara.to/address/[[address]]',
chainID: '0x349',
isTestNetwork: false,
currencyName: 'TARA',
currencyNameLong: 'Taraxa',
node: 'https://rpc.mainnet.taraxa.io',
icon,
coingeckoID: 'taraxa',
coingeckoPlatform: CoingeckoPlatform.Taraxa,
assetsInfoHandler,
Comment on lines +18 to +20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify Coingecko platform ID

Ensure that "taraxa" is the correct platform ID used by Coingecko for the Taraxa network.


🌐 Web query:

What is the Coingecko platform ID for Taraxa network?

💡 Result:

The CoinGecko platform ID for the Taraxa network is taraxa3[4]. This identifier is used by CoinGecko to reference Taraxa in its API and cryptocurrency tracking services.

Citations:


Update Coingecko ID for Taraxa Network

Based on our verification, the CoinGecko platform ID for the Taraxa network should be updated from 'taraxa' to 'taraxa3'.

  • File: packages/extension/src/providers/ethereum/networks/taraxa.ts (Lines: 18-20)
  • Action: Update the property value as shown below.

Diff:

-  coingeckoID: 'taraxa',
+  coingeckoID: 'taraxa3',
   coingeckoPlatform: CoingeckoPlatform.Taraxa,
   assetsInfoHandler,
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
coingeckoID: 'taraxa',
coingeckoPlatform: CoingeckoPlatform.Taraxa,
assetsInfoHandler,
coingeckoID: 'taraxa3',
coingeckoPlatform: CoingeckoPlatform.Taraxa,
assetsInfoHandler,

activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const taraxa = new EvmNetwork(taraxaOptions);

export default taraxa;
2 changes: 2 additions & 0 deletions packages/types/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export enum NetworkNames {
Bitrock = "bitrock",
Fraxtal = "fraxtal",
Fire = "5ire",
Taraxa = "Taraxa",
}

export enum CoingeckoPlatform {
Expand Down Expand Up @@ -156,4 +157,5 @@ export enum CoingeckoPlatform {
Scroll = "scroll",
Bitrock = "bitrock",
Fraxtal = "fraxtal",
Taraxa = "taraxa",
}