File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11import { BaseCoin , BitGoBase } from '@bitgo/sdk-core' ;
2- import { BaseCoin as StaticsBaseCoin } from '@bitgo/statics' ;
2+ import { BaseCoin as StaticsBaseCoin , BaseUnit } from '@bitgo/statics' ;
33import { Asi } from './asi' ;
44
55export class Tasi extends Asi {
@@ -14,6 +14,10 @@ export class Tasi extends Asi {
1414 this . _staticsCoin = staticsCoin ;
1515 }
1616
17+ getDenomination ( ) : string {
18+ return BaseUnit . TASI ;
19+ }
20+
1721 static createInstance ( bitgo : BitGoBase , staticsCoin ?: Readonly < StaticsBaseCoin > ) : BaseCoin {
1822 return new Tasi ( bitgo , staticsCoin ) ;
1923 }
Original file line number Diff line number Diff line change 11import { AddressFormat , BaseCoin , BitGoBase } from '@bitgo/sdk-core' ;
2- import { BaseCoin as StaticsBaseCoin , NetworkType } from '@bitgo/statics' ;
2+ import { BaseCoin as StaticsBaseCoin , BaseUnit , NetworkType } from '@bitgo/statics' ;
33import { Cronos } from './cronos' ;
44import { Utils } from './lib/utils' ;
55import { KeyPair } from './lib/keyPair' ;
@@ -22,6 +22,10 @@ export class Tcronos extends Cronos {
2222 return new Tcronos ( bitgo , staticsCoin ) ;
2323 }
2424
25+ getDenomination ( ) : string {
26+ return BaseUnit . TCRONOS ;
27+ }
28+
2529 /** @inheritDoc **/
2630 getAddressFromPublicKey ( publicKey : string ) : string {
2731 return new KeyPair ( { pub : publicKey } ) . getAddress ( AddressFormat . testnet ) ;
Original file line number Diff line number Diff line change @@ -2826,6 +2826,8 @@ export enum BaseUnit {
28262826 INITIA = 'uinit' ,
28272827 ASI = 'afet' ,
28282828 VET = 'wei' ,
2829+ TCRONOS = 'basetcro' ,
2830+ TASI = 'atestfet' ,
28292831}
28302832
28312833export interface BaseCoinConstructorOptions {
You can’t perform that action at this time.
0 commit comments