Skip to content

Commit cd28818

Browse files
committed
chore: onboard vechain vtho tokens
this onboard testnet and mainnet tokens Ticket: COIN-4569
1 parent 966e788 commit cd28818

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

modules/statics/src/base.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,6 +2741,12 @@ export enum UnderlyingAsset {
27412741
// Nep141 testnet tokens
27422742
'tnear:tnep24dp' = 'tnear:tnep24dp',
27432743

2744+
// VET tokens
2745+
'vet:vtho' = 'vet:vtho',
2746+
2747+
// VET testnet tokens
2748+
'tvet:vtho' = 'tvet:vtho',
2749+
27442750
// fiats
27452751
AED = 'aed',
27462752
EUR = 'eur',

modules/statics/src/coinFeatures.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,3 +568,11 @@ export const VET_FEATURES = [
568568
CoinFeature.TSS_ENTERPRISE_PAYS_FEES,
569569
CoinFeature.MPCV2,
570570
];
571+
export const VET_TOKEN_FEATURES = [
572+
...ACCOUNT_COIN_DEFAULT_FEATURES,
573+
CoinFeature.TSS,
574+
CoinFeature.TSS_COLD,
575+
CoinFeature.ENTERPRISE_PAYS_FEES,
576+
CoinFeature.TSS_ENTERPRISE_PAYS_FEES,
577+
CoinFeature.MPCV2,
578+
];

modules/statics/src/coins.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
solToken,
2828
stellarToken,
2929
suiToken,
30+
vetToken,
3031
talgoToken,
3132
taptNFTCollection,
3233
taptToken,
@@ -66,6 +67,7 @@ import { ofcErc20Coins, tOfcErc20Coins } from './coins/ofcErc20Coins';
6667
import { ofcCoins } from './coins/ofcCoins';
6768
import { sip10Tokens } from './coins/sip10Tokens';
6869
import { nep141Tokens } from './coins/nep141Tokens';
70+
import { vetTokens } from './coins/vetTokens';
6971
import {
7072
ADA_FEATURES_WITH_FRANKFURT,
7173
ALGO_FEATURES,
@@ -135,6 +137,7 @@ export const coins = CoinMap.fromCoins([
135137
...solTokens,
136138
...sip10Tokens,
137139
...nep141Tokens,
140+
...vetTokens,
138141
avaxp(
139142
'5436386e-9e4d-4d82-92df-59d9720d1738',
140143
'avaxp',
@@ -3701,6 +3704,7 @@ export function createToken(token: AmsTokenConfig): Readonly<BaseCoin> | undefin
37013704
stx: sip10Token,
37023705
sui: suiToken,
37033706
trx: tronToken,
3707+
vet: vetToken,
37043708
xlm: stellarToken,
37053709
xrp: xrpToken,
37063710
ofc: ofcToken,
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { tvetToken, vetToken } from '../account';
2+
import { UnderlyingAsset } from '../base';
3+
import { VET_TOKEN_FEATURES } from '../coinFeatures';
4+
5+
export const vetTokens = [
6+
vetToken(
7+
'09717591-d7be-46d3-9fe0-b638e274028f',
8+
'vet:vtho',
9+
'VeThor',
10+
18,
11+
'0x0000000000000000000000000000456e65726779',
12+
UnderlyingAsset['vet:vtho'],
13+
VET_TOKEN_FEATURES
14+
),
15+
tvetToken(
16+
'27dd32d2-7311-4552-9beb-c57f76d09205',
17+
'tvet:vtho',
18+
'VeThor Testnet',
19+
18,
20+
'0x0000000000000000000000000000456e65726779',
21+
UnderlyingAsset['tvet:vtho'],
22+
VET_TOKEN_FEATURES
23+
),
24+
];

0 commit comments

Comments
 (0)