@@ -149,6 +149,7 @@ export interface Nep141TokenConstructorOptions extends AccountConstructorOptions
149149
150150export interface VetTokenConstructorOptions extends AccountConstructorOptions {
151151 contractAddress : string ;
152+ gasTankToken ?: string ;
152153}
153154export interface CosmosTokenConstructorOptions extends AccountConstructorOptions {
154155 denom : string ;
@@ -623,11 +624,13 @@ export class Nep141Token extends AccountCoinToken {
623624
624625export class VetToken extends AccountCoinToken {
625626 public contractAddress : string ;
627+ public gasTankToken ?: string ;
626628 constructor ( options : VetTokenConstructorOptions ) {
627629 super ( {
628630 ...options ,
629631 } ) ;
630632 this . contractAddress = options . contractAddress ;
633+ this . gasTankToken = options . gasTankToken ;
631634 }
632635}
633636
@@ -3176,7 +3179,8 @@ export function vetToken(
31763179 prefix = '' ,
31773180 suffix : string = name . toUpperCase ( ) ,
31783181 network : AccountNetwork = Networks . main . vet ,
3179- primaryKeyCurve : KeyCurve = KeyCurve . Secp256k1
3182+ primaryKeyCurve : KeyCurve = KeyCurve . Secp256k1 ,
3183+ gasTankToken = 'VET:VTHO'
31803184) {
31813185 return Object . freeze (
31823186 new VetToken ( {
@@ -3193,6 +3197,7 @@ export function vetToken(
31933197 isToken : true ,
31943198 primaryKeyCurve,
31953199 baseUnit : BaseUnit . VET ,
3200+ gasTankToken,
31963201 } )
31973202 ) ;
31983203}
@@ -3221,9 +3226,23 @@ export function tvetToken(
32213226 features : CoinFeature [ ] = AccountCoin . DEFAULT_FEATURES ,
32223227 prefix = '' ,
32233228 suffix : string = name . toUpperCase ( ) ,
3224- network : AccountNetwork = Networks . test . vet
3229+ network : AccountNetwork = Networks . test . vet ,
3230+ gasTankToken = 'TVET:VTHO' // For test environment
32253231) {
3226- return vetToken ( id , name , fullName , decimalPlaces , contractAddress , asset , features , prefix , suffix , network ) ;
3232+ return vetToken (
3233+ id ,
3234+ name ,
3235+ fullName ,
3236+ decimalPlaces ,
3237+ contractAddress ,
3238+ asset ,
3239+ features ,
3240+ prefix ,
3241+ suffix ,
3242+ network ,
3243+ KeyCurve . Secp256k1 ,
3244+ gasTankToken
3245+ ) ;
32273246}
32283247
32293248/**
0 commit comments