Skip to content
Merged
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
3 changes: 3 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export enum CoinFamily {
STX = 'stx',
SUSD = 'susd',
TIA = 'tia', // Celestia
TON = 'ton',
TRX = 'trx',
XLM = 'xlm',
XRP = 'xrp',
Expand Down Expand Up @@ -278,6 +279,7 @@ export enum UnderlyingAsset {
STX = 'stx',
TESTCORE = 'testcore', // Coreum testnet uses different name for native coin
TIA = 'tia', // Celestia
TON = 'ton',
TRX = 'trx',
USD = 'usd',
XLM = 'xlm',
Expand Down Expand Up @@ -1355,6 +1357,7 @@ export enum BaseUnit {
XTZ = 'micro xtz',
STX = 'micro-STX',
SUI = 'MIST',
TON = 'nanos',
NEAR = 'yocto',
OFC = 'ofcCoin',
OSMO = 'uosmo',
Expand Down
23 changes: 23 additions & 0 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ const GENERIC_TOKEN_FEATURES = [
CoinFeature.TRANSACTION_DATA,
CoinFeature.GENERIC_TOKEN,
];
const TON_FEATURES = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.TSS, CoinFeature.TSS_COLD, CoinFeature.STAKING];

export const coins = CoinMap.fromCoins([
utxo(
Expand Down Expand Up @@ -1040,6 +1041,28 @@ export const coins = CoinMap.fromCoins([
BaseUnit.ETH,
POLYGON_FEATURES
),
account(
'b5ba2fc6-706b-433f-9bcf-4ea4aaa09281',
'ton',
'Ton',
Networks.main.ton,
9,
UnderlyingAsset.TON,
BaseUnit.TON,
TON_FEATURES,
KeyCurve.Ed25519
),
account(
'8244f85f-943c-4520-8e68-9e7f4361a13f',
'tton',
'Testnet Ton',
Networks.test.ton,
9,
UnderlyingAsset.TON,
BaseUnit.TON,
TON_FEATURES,
KeyCurve.Ed25519
),
erc20CompatibleAccountCoin(
'bfae821b-cf3a-4190-b1a8-a54af51d730e',
'celo',
Expand Down
14 changes: 14 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,18 @@ class KavaTestnet extends Testnet implements AccountNetwork {
explorerUrl = 'https://testnet.mintscan.io/kava-testnet/txs/';
}

class Ton extends Mainnet implements AccountNetwork {
name = 'Ton';
family = CoinFamily.TON;
explorerUrl = 'https://https://tonscan.org/';
}

class TonTestnet extends Testnet implements AccountNetwork {
name = 'Testnet Ton';
family = CoinFamily.TON;
explorerUrl = 'https://https://testnet.tonscan.org/';
}

class Core extends Mainnet implements AccountNetwork {
name = 'Coreum';
family = CoinFamily.CORE;
Expand Down Expand Up @@ -860,6 +872,7 @@ export const Networks = {
stx: Object.freeze(new Stx()),
susd: Object.freeze(new SUSD()),
tia: Object.freeze(new Tia()),
ton: Object.freeze(new Ton()),
trx: Object.freeze(new Trx()),
xrp: Object.freeze(new Xrp()),
xtz: Object.freeze(new Xtz()),
Expand Down Expand Up @@ -908,6 +921,7 @@ export const Networks = {
susd: Object.freeze(new SUSDTestnet()),
core: Object.freeze(new CoreTestnet()),
tia: Object.freeze(new TiaTestnet()),
ton: Object.freeze(new TonTestnet()),
trx: Object.freeze(new TrxTestnet()),
xrp: Object.freeze(new XrpTestnet()),
xtz: Object.freeze(new XtzTestnet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export const expectedColdFeatures = {
'tsui',
'ttia',
'tzeta',
'ton',
'tton',
],
neither: [
'ethw',
Expand Down