Skip to content

Commit c7b682f

Browse files
feat: add Tron chain definitions for currency package (#1688)
## Description of the changes Added support for Tron blockchain and its Nile testnet: - Created new Tron chain configuration with USDT and USDC token definitions - Added Nile testnet configuration for Tron - Implemented TronChains class for handling Tron-specific chain operations - Updated type definitions to include Tron chains in the supported VM chains - Added Tron chains to the exports for use throughout the application --- Closes RequestNetwork/private-issues#223 Closes RequestNetwork/private-issues#224
1 parent db654fa commit c7b682f

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const chainId = 'nile';
2+
3+
// Nile is Tron's test network
4+
export const testnet = true;
5+
6+
// Test tokens on Nile testnet
7+
// Note: These are testnet token addresses, not mainnet
8+
export const currencies = {
9+
// Add testnet token addresses as needed
10+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
11
export const chainId = 'tron';
2+
3+
// Tron mainnet configuration
4+
export const testnet = false;
5+
6+
// Common TRC20 tokens on Tron
7+
export const currencies = {
8+
// USDT-TRC20 - the most widely used stablecoin on Tron
9+
TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t: {
10+
name: 'Tether USD',
11+
symbol: 'USDT',
12+
decimals: 6,
13+
},
14+
// USDC on Tron
15+
TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8: {
16+
name: 'USD Coin',
17+
symbol: 'USDC',
18+
decimals: 6,
19+
},
20+
};

0 commit comments

Comments
 (0)