Skip to content

Commit 7846c48

Browse files
feat: add ton mainnet token
TICKET: COIN-5625
1 parent 9d1b0a1 commit 7846c48

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

modules/sdk-coin-ton/test/unit/jettonToken.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { JettonToken } from '../../src';
77
describe('Jetton Tokens', function () {
88
let bitgo: TestBitGoAPI;
99
let testnetJettonToken;
10+
let mainnetJettonToken;
1011
const testnetTokenName = 'tton:ukwny-us';
12+
const mainnetTokenName = 'ton:usdt';
1113

1214
before(function () {
1315
bitgo = TestBitGo.decorate(BitGoAPI, { env: 'test' });
@@ -16,6 +18,7 @@ describe('Jetton Tokens', function () {
1618
});
1719
bitgo.initializeTestVars();
1820
testnetJettonToken = bitgo.coin(testnetTokenName);
21+
mainnetJettonToken = bitgo.coin(mainnetTokenName);
1922
});
2023

2124
it('should return constants for Testnet Ton token', function () {
@@ -30,4 +33,17 @@ describe('Jetton Tokens', function () {
3033
testnetJettonToken.contractAddress.should.equal('kQD8EQMavE1w6gvgMXUhN8hi7pSk4bKYM-W2dgkNqV54Y16Y');
3134
testnetJettonToken.decimalPlaces.should.equal(9);
3235
});
36+
37+
it('should return constants for Mainnet Ton token', function () {
38+
mainnetJettonToken.getChain().should.equal(mainnetTokenName);
39+
mainnetJettonToken.getBaseChain().should.equal('ton');
40+
mainnetJettonToken.getFullName().should.equal('Ton Token');
41+
mainnetJettonToken.getBaseFactor().should.equal(1e6);
42+
mainnetJettonToken.type.should.equal(mainnetTokenName);
43+
mainnetJettonToken.name.should.equal('Ton USDT');
44+
mainnetJettonToken.coin.should.equal('ton');
45+
mainnetJettonToken.network.should.equal('Mainnet');
46+
mainnetJettonToken.contractAddress.should.equal('EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs');
47+
mainnetJettonToken.decimalPlaces.should.equal(6);
48+
});
3349
});

modules/statics/src/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,6 +3123,9 @@ export enum UnderlyingAsset {
31233123
// COSMOS testnet tokens
31243124
'thash:ylds' = 'thash:ylds',
31253125

3126+
// TON mainnet tokens
3127+
'ton:usdt' = 'ton:usdt',
3128+
31263129
// TON testnet tokens
31273130
'tton:ukwny-us' = 'tton:ukwny-us',
31283131

modules/statics/src/coins/jettonTokens.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
import { tjettonToken } from '../account';
1+
import { jettonToken, tjettonToken } from '../account';
22
import { UnderlyingAsset } from '../base';
33
import { TON_TOKEN_FEATURES } from '../coinFeatures';
44

55
export const jettonTokens = [
6+
// mainnet tokens
7+
jettonToken(
8+
'b72a1bf8-35f2-4a6e-b017-4d0121dba68a',
9+
'ton:usdt',
10+
'Ton USDT',
11+
6,
12+
'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs',
13+
UnderlyingAsset['ton:usdt'],
14+
TON_TOKEN_FEATURES
15+
),
16+
617
// testnet tokens
718
tjettonToken(
819
'a442d4fc-bc65-4ef5-92eb-fbefdd1f991f',

0 commit comments

Comments
 (0)