Skip to content

Commit cfc5650

Browse files
authored
Merge pull request #5715 from BitGo/COIN-3282
feat(sdk-coin-stx): added mainnet and testnet token details
2 parents d89deb9 + 110bbcf commit cfc5650

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

modules/statics/src/base.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,6 +2490,13 @@ export enum UnderlyingAsset {
24902490

24912491
// Apt testnet tokens
24922492
'tapt:usdt' = 'tapt:usdt',
2493+
2494+
// Sip10 tokens
2495+
'stx:sbtc' = 'stx:sbtc',
2496+
2497+
// Sip10 testnet tokens
2498+
'tstx:tsip6dp' = 'tstx:tsip6dp',
2499+
'tstx:tsip8dp' = 'tstx:tsip8dp',
24932500
}
24942501

24952502
/**

modules/statics/src/coinFeatures.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ export const STX_FEATURES = [
199199
CoinFeature.SUPPORTS_TOKENS,
200200
CoinFeature.ALPHANUMERIC_MEMO_ID,
201201
];
202+
export const STX_TOKEN_FEATURES = [
203+
...AccountCoin.DEFAULT_FEATURES,
204+
CoinFeature.MULTISIG_COLD,
205+
CoinFeature.ALPHANUMERIC_MEMO_ID,
206+
];
202207
export const NEAR_FEATURES = [
203208
...AccountCoin.DEFAULT_FEATURES,
204209
CoinFeature.TSS,

modules/statics/src/coins.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import { utxoCoins } from './utxo';
5050
import { lightningCoins } from './lightning';
5151
import { ofcErc20Coins, tOfcErc20Coins } from './coins/ofcErc20Coins';
5252
import { ofcCoins } from './coins/ofcCoins';
53+
import { sip10Tokens } from './coins/sip10Tokens';
5354
import {
5455
ETH_FEATURES,
5556
ETH_FEATURES_WITH_STAKING_AND_MMI,
@@ -114,6 +115,7 @@ export const coins = CoinMap.fromCoins([
114115
...bscTokens,
115116
...polygonTokens,
116117
...solTokens,
118+
...sip10Tokens,
117119
avaxp(
118120
'5436386e-9e4d-4d82-92df-59d9720d1738',
119121
'avaxp',
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { sip10Token, tsip10Token } from '../account';
2+
import { UnderlyingAsset } from '../base';
3+
import { STX_TOKEN_FEATURES } from '../coinFeatures';
4+
5+
export const sip10Tokens = [
6+
sip10Token(
7+
'6157083d-e0b5-4a77-9ace-20c4b96af9ed',
8+
'stx:sbtc',
9+
'sBTC',
10+
8,
11+
'SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token::sbtc-token',
12+
UnderlyingAsset['stx:sbtc'],
13+
STX_TOKEN_FEATURES
14+
),
15+
// testnet tokens
16+
tsip10Token(
17+
'ffa80cb4-dd2f-4729-9635-11071b9d8496',
18+
'tstx:tsip6dp',
19+
'Test SIP10 Token 6 Decimals',
20+
6,
21+
'STAG18E45W613FZ3H4ZMF6QHH426EXM5QTSAVWYH.tsip6dp-token::tsip6dp-token',
22+
UnderlyingAsset['tstx:tsip6dp'],
23+
STX_TOKEN_FEATURES
24+
),
25+
tsip10Token(
26+
'2b60173c-9615-47d6-ab83-ed9889c23dc1',
27+
'tstx:tsip8dp',
28+
'Test SIP10 Token 8 Decimals',
29+
8,
30+
'STAG18E45W613FZ3H4ZMF6QHH426EXM5QTSAVWYH.tsip8dp-token-updated::tsip8dp-token-updated',
31+
UnderlyingAsset['tstx:tsip8dp'],
32+
STX_TOKEN_FEATURES
33+
),
34+
];

0 commit comments

Comments
 (0)