@gala-chain/test ∙ API
API > nft
Variable: nft
nft:
object
Type declaration
tokenAllowance
tokenAllowance:
CreateInstanceFn\<TokenAllowance>
tokenAllowancePlain
tokenAllowancePlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string="Elixir"allowanceType
allowanceType:
number=1category
category:
string="Item"collection
collection:
string="TEST"created
created:
number=txUnixTimeexpires
expires:
number=0grantedBy
grantedBy:
string=users.testUser2IdgrantedTo
grantedTo:
string=users.testUser1Idinstance
instance:
BigNumberquantity
quantity:
BigNumberquantitySpent
quantitySpent:
BigNumbertype
type:
string="Potion"uses
uses:
BigNumberusesSpent
usesSpent:
BigNumber
tokenBalance
tokenBalance:
CreateInstanceFn\<TokenBalance>
tokenBalancePlain
tokenBalancePlain: () =>
object
Returns
additionalKey
additionalKey:
string="Elixir"category
category:
string="Item"collection
collection:
string="TEST"inUseHolds
inUseHolds:
never[] =[]instanceIds
instanceIds:
BigNumber[]lockedHolds
lockedHolds:
never[] =[]owner
owner:
string=users.testUser1Idquantity
quantity:
BigNumbertype
type:
string="Potion"
tokenBurn
tokenBurn:
CreateInstanceFn\<TokenBurn>
tokenBurnCounterPlain
tokenBurnCounterPlain: (
txUnixTime,timeKey,epoch,totalKnownBurnsCount) =>object
Parameters
▪ txUnixTime: number
▪ timeKey: string
▪ epoch: string
▪ totalKnownBurnsCount: BigNumber
Returns
additionalKey
additionalKey:
string="Elixir"burnedBy
burnedBy:
string=users.testUser1Idcategory
category:
string="Item"collection
collection:
string="TEST"created
created:
number=txUnixTimeepoch
epoch:
stringinstance
instance:
BigNumberquantity
quantity:
BigNumbertimeKey
timeKey:
stringtotalKnownBurnsCount
totalKnownBurnsCount:
BigNumbertype
type:
string="Potion"
tokenBurnPlain
tokenBurnPlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string="Elixir"burnedBy
burnedBy:
string=users.testUser1Idcategory
category:
string="Item"collection
collection:
string="TEST"created
created:
number=txUnixTimeinstance
instance:
BigNumberquantity
quantity:
BigNumbertype
type:
string="Potion"
tokenClass
tokenClass:
CreateInstanceFn\<TokenClass>
tokenClassKey
tokenClassKey:
CreateInstanceFn\<TokenClassKey>
tokenClassKeyPlain
tokenClassKeyPlain: () =>
object
Returns
additionalKey
additionalKey:
string="Elixir"category
category:
string="Item"collection
collection:
string="TEST"type
type:
string="Potion"
tokenClassPlain
tokenClassPlain: () =>
object
Returns
additionalKey
additionalKey:
string="Elixir"authorities
authorities:
string[]category
category:
string="Item"collection
collection:
string="TEST"decimals
decimals:
number=0description
description:
string="Generated via automated test suite."image
image:
string="https://app.gala.games/test-image-placeholder-url.png"isNonFungible
isNonFungible:
boolean=truemaxCapacity
maxCapacity:
BigNumbermaxSupply
maxSupply:
BigNumbername
name:
string="TestElixirNft"network
network:
string=GC_NETWORK_IDsymbol
symbol:
string="GALAXR"totalBurned
totalBurned:
BigNumbertotalMintAllowance
totalMintAllowance:
BigNumbertotalSupply
totalSupply:
BigNumbertype
type:
string="Potion"
tokenInstance1
tokenInstance1:
CreateInstanceFn\<TokenInstance>
tokenInstance1Key
tokenInstance1Key:
CreateInstanceFn\<TokenInstanceKey>
tokenInstance1KeyPlain
tokenInstance1KeyPlain: () =>
object
Returns
additionalKey
additionalKey:
string="Elixir"category
category:
string="Item"collection
collection:
string="TEST"instance
instance:
BigNumbertype
type:
string="Potion"
tokenInstance1Plain
tokenInstance1Plain: () =>
object
Returns
additionalKey
additionalKey:
string="Elixir"category
category:
string="Item"collection
collection:
string="TEST"instance
instance:
BigNumberisNonFungible
isNonFungible:
boolean=trueowner
owner:
string=users.testUser1Idtype
type:
string="Potion"
tokenMintAllowance
tokenMintAllowance:
CreateInstanceFn\<TokenAllowance>
tokenMintAllowancePlain
tokenMintAllowancePlain: (
txUnixTime) =>object
Parameters
▪ txUnixTime: number
Returns
additionalKey
additionalKey:
string="Elixir"allowanceType
allowanceType:
number=4category
category:
string="Item"collection
collection:
string="TEST"created
created:
number=txUnixTimeexpires
expires:
number=0grantedBy
grantedBy:
string=users.testAdminIdgrantedTo
grantedTo:
string=users.testAdminIdinstance
instance:
BigNumberquantity
quantity:
BigNumberquantitySpent
quantitySpent:
BigNumbertype
type:
string="Potion"uses
uses:
BigNumberusesSpent
usesSpent:
BigNumber