Skip to content

Commit 83638a8

Browse files
committed
wip
1 parent 3bdadfc commit 83638a8

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/main/api/url.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ const EXTERNALS_WHITELIST = [
5858
'mainnet.radixdlt.com',
5959
'dashboard.radixdlt.com',
6060
'explorer.solana.com',
61-
'adastat.net'
61+
'adastat.net',
62+
'tronscan.org'
6263
]
6364

6465
export const openExternal = (target: string) => {

src/renderer/services/chain/decimal.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { PoolDetail } from '@xchainjs/xchain-midgard'
1111
import { XRD_DECIMAL } from '@xchainjs/xchain-radix'
1212
import { SOL_DECIMALS } from '@xchainjs/xchain-solana'
1313
import { isTCYAsset } from '@xchainjs/xchain-thorchain'
14+
import { TRX_DECIMAL } from '@xchainjs/xchain-tron'
1415
import { AnyAsset, assetToString } from '@xchainjs/xchain-util'
1516
import { ZEC_DECIMAL } from '@xchainjs/xchain-zcash'
1617
import * as Rx from 'rxjs'
@@ -40,6 +41,7 @@ const CHAIN_DECIMAL_MAP = new Map([
4041
['BTC', BTC_DECIMAL],
4142
['BCH', BCH_DECIMAL],
4243
['SOL', SOL_DECIMALS],
44+
['TRON', TRX_DECIMAL],
4345
['ZEC', ZEC_DECIMAL],
4446
['ADA', ADA_DECIMALS]
4547
])

src/shared/utils/derivationPath.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { RadixChain } from '@xchainjs/xchain-radix'
1717
import { XRPChain } from '@xchainjs/xchain-ripple'
1818
import { SOLChain } from '@xchainjs/xchain-solana'
1919
import { THORChain } from '@xchainjs/xchain-thorchain'
20+
import { TRONChain } from '@xchainjs/xchain-tron'
2021
import { Chain } from '@xchainjs/xchain-util'
2122
import { ZECChain } from '@xchainjs/xchain-zcash'
2223

@@ -150,6 +151,11 @@ export const getChainDerivationPath = (
150151
path: `m/44'/133'/${account}'/0/${index}`,
151152
description: `Zcash (m/44'/133'/${account}'/0/${index})`
152153
}
154+
case TRONChain:
155+
return {
156+
path: `m/44'/195'/${account}'/0/${index}`,
157+
description: `TRON (m/44'/195'/${account}'/0/${index})`
158+
}
153159

154160
default:
155161
return {

0 commit comments

Comments
 (0)