@gala-chain/test ∙ API
API > currency
Variable: currency
currency:
object
Type declaration
tokenAllowance
tokenAllowance:
CreateInstanceFn\<TokenAllowance>
tokenAllowancePlain
tokenAllowancePlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYallowanceType
allowanceType:
number=4category
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONcreated
created:
number=txUnixTimeexpires
expires:
number=0grantedBy
grantedBy:
string=users.testAdminIdgrantedTo
grantedTo:
string=users.testAdminIdinstance
instance:
BigNumberquantity
quantity:
BigNumberquantitySpent
quantitySpent:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPEuses
uses:
BigNumberusesSpent
usesSpent:
BigNumber
tokenBalance
tokenBalance:
CreateInstanceFn\<TokenBalance>
tokenBalancePlain
tokenBalancePlain: () =>
object
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYcategory
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONinUseHolds
inUseHolds:
never[] =[]instanceIds
instanceIds:
never[] =[]lockedHolds
lockedHolds:
never[] =[]owner
owner:
string=users.testUser1Idquantity
quantity:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenBurn
tokenBurn:
CreateInstanceFn\<TokenBurn>
tokenBurnAllowance
tokenBurnAllowance:
CreateInstanceFn\<TokenAllowance>
tokenBurnAllowancePlain
tokenBurnAllowancePlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYallowanceType
allowanceType:
number=6category
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONcreated
created:
number=txUnixTimeexpires
expires:
number=0grantedBy
grantedBy:
string=users.testUser1IdgrantedTo
grantedTo:
string=users.testUser2Idinstance
instance:
BigNumberquantity
quantity:
BigNumberquantitySpent
quantitySpent:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPEuses
uses:
BigNumberusesSpent
usesSpent:
BigNumber
tokenBurnAllowanceUser3
tokenBurnAllowanceUser3:
CreateInstanceFn\<TokenAllowance>
tokenBurnAllowanceUser3Plain
tokenBurnAllowanceUser3Plain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYallowanceType
allowanceType:
number=6category
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONcreated
created:
number=txUnixTimeexpires
expires:
number=0grantedBy
grantedBy:
string=users.testUser3IdgrantedTo
grantedTo:
string=users.testUser2Idinstance
instance:
BigNumberquantity
quantity:
BigNumberquantitySpent
quantitySpent:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPEuses
uses:
BigNumberusesSpent
usesSpent:
BigNumber
tokenBurnCounterPlain
tokenBurnCounterPlain: (
txUnixTime,timeKey,epoch,totalKnownBurnsCount) =>object
Parameters
▪ txUnixTime: number
▪ timeKey: string
▪ epoch: string
▪ totalKnownBurnsCount: BigNumber
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYburnedBy
burnedBy:
string=users.testUser1Idcategory
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONcreated
created:
number=txUnixTimeepoch
epoch:
stringinstance
instance:
BigNumberquantity
quantity:
BigNumbertimeKey
timeKey:
stringtotalKnownBurnsCount
totalKnownBurnsCount:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenBurnPlain
tokenBurnPlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYburnedBy
burnedBy:
string=users.testUser1Idcategory
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONcreated
created:
number=txUnixTimeinstance
instance:
BigNumberquantity
quantity:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenClass
tokenClass:
CreateInstanceFn\<TokenClass>
tokenClassKey
tokenClassKey:
CreateInstanceFn\<TokenClassKey>
tokenClassKeyPlain
tokenClassKeyPlain: () =>
object
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYcategory
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONtype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenClassPlain
tokenClassPlain: () =>
object=tokenClassPlain
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYauthorities
authorities:
string[]category
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONdecimals
decimals:
number=10description
description:
string="Generated via automated test suite."image
image:
string="https://app.gala.games/test-image-placeholder-url.png"isNonFungible
isNonFungible:
boolean=falsemaxCapacity
maxCapacity:
BigNumbermaxSupply
maxSupply:
BigNumbername
name:
string="AUTOMATEDTESTCOIN"network
network:
string=GC_NETWORK_IDsymbol
symbol:
string="AUTC"totalBurned
totalBurned:
BigNumbertotalMintAllowance
totalMintAllowance:
BigNumbertotalSupply
totalSupply:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenInstance
tokenInstance:
CreateInstanceFn\<TokenInstance>
tokenInstanceKey
tokenInstanceKey:
CreateInstanceFn\<TokenInstanceKey>
tokenInstanceKeyPlain
tokenInstanceKeyPlain: () =>
object
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYcategory
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONinstance
instance:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenInstancePlain
tokenInstancePlain: () =>
object
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYcategory
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONinstance
instance:
BigNumberisNonFungible
isNonFungible:
boolean=falsetype
type:
string=process.env.GALA_TOKEN_CLASS_TYPE
tokenMintAllowance
tokenMintAllowance:
CreateInstanceFn\<TokenAllowance>
tokenMintAllowancePlain
tokenMintAllowancePlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string=process.env.GALA_TOKEN_CLASS_ADDITIONAL_KEYallowanceType
allowanceType:
number=4category
category:
string=process.env.GALA_TOKEN_CLASS_CATEGORYcollection
collection:
string=process.env.GALA_TOKEN_CLASS_COLLECTIONcreated
created:
number=txUnixTimeexpires
expires:
number=0grantedBy
grantedBy:
string=users.testUser1IdgrantedTo
grantedTo:
string=users.testUser2Idinstance
instance:
BigNumberquantity
quantity:
BigNumberquantitySpent
quantitySpent:
BigNumbertype
type:
string=process.env.GALA_TOKEN_CLASS_TYPEuses
uses:
BigNumberusesSpent
usesSpent:
BigNumber