Skip to content

Commit 71ece0f

Browse files
authored
Merge pull request #7908 from BitGo/coin-7226
statics: onboard thash:tfigr token
2 parents 9ff2898 + 7fa32e9 commit 71ece0f

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

modules/sdk-coin-hash/test/unit/hashToken.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ describe('Hash Tokens', function () {
5757
mainnetHashToken.decimalPlaces.should.equal(6);
5858
});
5959

60-
it('should return denomination for YLDS token on hash using hash as coinFamily', function () {
61-
testnetUtils.getTokenDenomsUsingCoinFamily('hash').should.deepEqual(['uylds.fcc']);
60+
it('should return denomination for hash tokens using hash as coinFamily', function () {
61+
testnetUtils.getTokenDenomsUsingCoinFamily('hash').should.deepEqual(['uylds.fcc', 'nfigr.d']);
6262
});
6363

6464
describe('Address Validation', () => {

modules/statics/src/base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3467,6 +3467,7 @@ export enum UnderlyingAsset {
34673467

34683468
// COSMOS testnet tokens
34693469
'thash:ylds' = 'thash:ylds',
3470+
'thash:tfigr' = 'thash:tfigr',
34703471

34713472
// TON mainnet tokens
34723473
'ton:usdt' = 'ton:usdt',

modules/statics/src/coins/cosmosTokens.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { cosmosToken } from '../account';
22
import { UnderlyingAsset, BaseUnit } from '../base';
3-
import { COSMOS_TOKEN_FEATURES_WITH_STAKING } from '../coinFeatures';
3+
import { COSMOS_TOKEN_FEATURES, COSMOS_TOKEN_FEATURES_WITH_STAKING } from '../coinFeatures';
44
import { Networks } from '../networks';
55

66
export const cosmosTokens = [
@@ -26,4 +26,15 @@ export const cosmosTokens = [
2626
UnderlyingAsset['thash:ylds'],
2727
COSMOS_TOKEN_FEATURES_WITH_STAKING
2828
),
29+
cosmosToken(
30+
'7cc5ddcf-f919-480c-b413-77f667ebc65c',
31+
'thash:tfigr',
32+
'Testnet Figure',
33+
'nfigr.d',
34+
9,
35+
Networks.test.hash,
36+
BaseUnit.HASH,
37+
UnderlyingAsset['thash:tfigr'],
38+
COSMOS_TOKEN_FEATURES
39+
),
2940
];

0 commit comments

Comments
 (0)