11import 'should' ;
22import { TestBitGo , TestBitGoAPI } from '@bitgo/sdk-test' ;
33import { BitGoAPI } from '@bitgo/sdk-api' ;
4- import { Apt , Tapt , TransferTransaction } from '../../src' ;
4+ import { Apt , AptToken , Tapt , TransferTransaction } from '../../src' ;
55import * as testData from '../resources/apt' ;
66import _ from 'lodash' ;
77import sinon from 'sinon' ;
@@ -18,7 +18,7 @@ import {
1818 Network ,
1919} from '@aptos-labs/ts-sdk' ;
2020import utils from '../../src/lib/utils' ;
21- import { coins , GasTankAccountCoin } from '@bitgo/statics' ;
21+ import { AptCoin , coins , GasTankAccountCoin } from '@bitgo/statics' ;
2222
2323describe ( 'APT:' , function ( ) {
2424 let bitgo : TestBitGoAPI ;
@@ -39,6 +39,7 @@ describe('APT:', function () {
3939 bitgo = TestBitGo . decorate ( BitGoAPI , { env : 'mock' } ) ;
4040 bitgo . safeRegister ( 'apt' , Apt . createInstance ) ;
4141 bitgo . safeRegister ( 'tapt' , Tapt . createInstance ) ;
42+ bitgo . safeRegister ( 'apt:usdt' , AptToken . createInstance ) ;
4243 bitgo . initializeTestVars ( ) ;
4344 basecoin = bitgo . coin ( 'tapt' ) ;
4445 newTxPrebuild = ( ) => {
@@ -52,6 +53,7 @@ describe('APT:', function () {
5253 it ( 'should return the right info' , function ( ) {
5354 const apt = bitgo . coin ( 'apt' ) ;
5455 const tapt = bitgo . coin ( 'tapt' ) ;
56+ const aptUsdt = bitgo . coin ( 'apt:usdt' ) ;
5557 const aptStatics = coins . get ( 'apt' ) as GasTankAccountCoin ;
5658 const taptStatics = coins . get ( 'tapt' ) as GasTankAccountCoin ;
5759
@@ -69,6 +71,13 @@ describe('APT:', function () {
6971 taptStatics . gasTankLowBalanceAlertFactor . should . equal ( 80 ) ;
7072 aptStatics . gasTankMinBalanceRecommendationFactor . should . equal ( 200 ) ;
7173 taptStatics . gasTankMinBalanceRecommendationFactor . should . equal ( 200 ) ;
74+
75+ aptUsdt . getFamily ( ) . should . equal ( 'apt' ) ;
76+ aptUsdt . getChain ( ) . should . equal ( 'apt' ) ;
77+ const aptUsdtStatics = aptUsdt . getConfig ( ) as AptCoin ;
78+ aptUsdtStatics . fullName . should . equal ( 'USD Tether' ) ;
79+ aptUsdtStatics . assetId . should . equal ( '0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b' ) ;
80+ aptUsdtStatics . decimalPlaces . should . equal ( 6 ) ;
7281 } ) ;
7382
7483 it ( 'is valid pub' , function ( ) {
0 commit comments