@@ -7,7 +7,9 @@ import { JettonToken } from '../../src';
77describe ( '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} ) ;
0 commit comments