@gala-chain/api ∙ API
API > TokenMintConfiguration
Class: TokenMintConfiguration
Contents
- Description
- Extends
- Constructors
- new TokenMintConfiguration()
- Properties
- additionalFee
- additionalKey
- category
- collection
- postMintBurn
- postMintLock
- preMintBurn
- type
- COMPOSITEKEY_NS
- ID_SPLIT_CHAR
- ID_SUB_SPLIT_CHAR
- INDEX_KEY
- MIN_UNICODE_RUNE_VALUE
- Methods
- copy()
- getCompositeKey()
- serialize()
- toPlainObject()
- validate()
- validateOrReject()
- validatePostProcessingTotals()
- decodeFromBase58()
- deserialize()
- encodeToBase58()
- getCompositeKeyFromParts()
- getEncodableStringKeyFromParts()
- getPartsFromEncodableStringKey()
- getStringKeyFromParts()
Description
Configure mint configurations for specific token classes. The chain key properties are expected to match a token class.
On mint actions, the @GalaTransaction decorator's
before and/or after
property can potentially be configured with custom functions
that will look for these configuration options.
If present, they can execute myriad additional actions atomically with the mint, such as post-mint fees, nft crafting (e.g. burn three common parts to assemble one rare) etc.
Extends
Constructors
new TokenMintConfiguration()
new TokenMintConfiguration():
TokenMintConfiguration
Inherited from
Properties
additionalFee
additionalFee?:
MintFeeConfiguration
Description
(optional) configure how GalaChain Fees (paid in $GALA) are handled when minting the configured TokenClass.
Source
chain-api/src/types/TokenMintConfiguration.ts:245
additionalKey
additionalKey:
string
Source
chain-api/src/types/TokenMintConfiguration.ts:188
category
category:
string
Source
chain-api/src/types/TokenMintConfiguration.ts:180
collection
collection:
string
Source
chain-api/src/types/TokenMintConfiguration.ts:176
postMintBurn
postMintBurn?:
BurnToMintConfiguration
Description
(optional) specify a BurnToMintConfiguration to configure a specific
token class to potentially burn some amount of
minted quantity post-mint.
Source
chain-api/src/types/TokenMintConfiguration.ts:215
postMintLock
postMintLock?:
PostMintLockConfiguration
Description
(optional) set a quantity to configure a specific token class to lock some amount of minted quantity post-mint.
Remarks
Use in conjucntion with FeeCodeDefintion chain objects
and Fee Exit Gates to set specific amounts and/or percentages
to be burned.
Source
chain-api/src/types/TokenMintConfiguration.ts:234
preMintBurn
preMintBurn?:
BurnToMintConfiguration
Description
(optional) specify a BurnToMintConfiguration to configure a specific
token class to potentially burn some amount of
the quantity to-be-minted prior to executing
the mint.
Source
chain-api/src/types/TokenMintConfiguration.ts:202
type
type:
string
Source
chain-api/src/types/TokenMintConfiguration.ts:184
COMPOSITEKEY_NS
staticCOMPOSITEKEY_NS:string="\x00"
Inherited from
Source
chain-api/src/types/ChainObject.ts:46
ID_SPLIT_CHAR
staticID_SPLIT_CHAR:string="$"
Inherited from
Source
chain-api/src/types/ChainObject.ts:49
ID_SUB_SPLIT_CHAR
staticID_SUB_SPLIT_CHAR:string="|"
Inherited from
Source
chain-api/src/types/ChainObject.ts:51
INDEX_KEY
staticINDEX_KEY:string="GCTMC"
Source
chain-api/src/types/TokenMintConfiguration.ts:172
MIN_UNICODE_RUNE_VALUE
staticMIN_UNICODE_RUNE_VALUE:string="\u0000"
Inherited from
ChainObject.MIN_UNICODE_RUNE_VALUE
Source
chain-api/src/types/ChainObject.ts:44
Methods
copy()
copy():
TokenMintConfiguration
Inherited from
Source
chain-api/src/types/ChainObject.ts:73
getCompositeKey()
getCompositeKey():
string
Inherited from
Source
chain-api/src/types/ChainObject.ts:85
serialize()
serialize():
string
Inherited from
Source
chain-api/src/types/ChainObject.ts:53
toPlainObject()
toPlainObject():
Record\<string,unknown>
Inherited from
Source
chain-api/src/types/ChainObject.ts:69
validate()
validate():
Promise\<ValidationError[]>
Inherited from
Source
chain-api/src/types/ChainObject.ts:57
validateOrReject()
validateOrReject():
Promise\<void>
Inherited from
Source
chain-api/src/types/ChainObject.ts:61
validatePostProcessingTotals()
validatePostProcessingTotals():
void
Source
chain-api/src/types/TokenMintConfiguration.ts:248
decodeFromBase58()
staticdecodeFromBase58(base58String):string
Parameters
▪ base58String: string
Inherited from
Source
chain-api/src/types/ChainObject.ts:158
deserialize()
staticdeserialize\<T>(constructor,object):T
Type parameters
▪ T
Parameters
▪ constructor: ClassConstructor\<Inferred\<T, ChainObject>>
▪ object: string | Record\<string, unknown> | Record\<string, unknown>[]
Inherited from
Source
chain-api/src/types/ChainObject.ts:78
encodeToBase58()
staticencodeToBase58(stringKey):string
Parameters
▪ stringKey: string
Inherited from
Source
chain-api/src/types/ChainObject.ts:153
getCompositeKeyFromParts()
staticgetCompositeKeyFromParts(indexKey,parts):string
Parameters
▪ indexKey: string
▪ parts: unknown[]
Inherited from
ChainObject.getCompositeKeyFromParts
Source
chain-api/src/types/ChainObject.ts:110
getEncodableStringKeyFromParts()
staticgetEncodableStringKeyFromParts(parts):string
Parameters
▪ parts: string[]
Inherited from
ChainObject.getEncodableStringKeyFromParts
Source
chain-api/src/types/ChainObject.ts:134
getPartsFromEncodableStringKey()
staticgetPartsFromEncodableStringKey(stringKey,expectedParts):string[]
Parameters
▪ stringKey: string
▪ expectedParts: number
Inherited from
ChainObject.getPartsFromEncodableStringKey
Source
chain-api/src/types/ChainObject.ts:144
getStringKeyFromParts()
staticgetStringKeyFromParts(parts):string
Parameters
▪ parts: string[]
Inherited from
ChainObject.getStringKeyFromParts