The token module emits the following typed events:
Emitted after a successfull MsgCreateToken
type TokenCreatedEvent struct {
Token *Token
}
The field's descriptions is as follows:
token
- the full Token
Emitted after a successfull MsgMintToken
, RetireToken
, CancelToken
, PauseToken
, StopToken
type TokenUpdatedEvent struct {
Token *Token
}
The field's descriptions is as follows:
token
- the full Token
Emitted for every batch in MintBatch
after a successfull MsgMintToken
type TokenMintedEvent struct {
ContractAddress string
Minter string
Owner string
Amount github_com_cosmos_cosmos_sdk_types.Uint
TokenProperties *TokenProperties
}
The field's descriptions is as follows:
minter
- a string containing the address of the mintercontractAddress
- a string containing the contract address, same as theContractAddress
of the Tokenowner
- a string containing the address of the owner to mint the tokens foramount
- a integer indicating how many tokens has been minted for the specific id inTokenProperties
tokenProperties
- the TokenProperties that was just created for the minted tokens
Emitted after a successfull TransferToken
type TokenTransferredEvent struct {
Owner string
Recipient string
Tokens []*TokenBatch
}
The field's descriptions is as follows:
owner
- a string containing the address of the owner the tokens was transferred fromrecipient
- a string containing the address of the new owner the tokens was transferred totokens
- a list of TokenBatch. All the tokens that was trasnferred
Emitted after a successfull MsgCancelToken
type TokenCancelledEvent struct {
Owner string
Tokens []*TokenBatch
}
The field's descriptions is as follows:
owner
- a string containing the address of the owner who cancelled the tokenstokens
- a list of TokenBatch. All the tokens that was cancelled
Emitted after a successfull MsgRetireToken
type TokenRetiredEvent struct {
Owner string
Tokens []*TokenBatch
}
The field's descriptions is as follows:
owner
- a string containing the address of the owner who retired the tokenstokens
- a list of TokenBatch. All the tokens that was retired
Emitted after a successfull MsgPauseToken
type TokenPausedEvent struct {
Minter string
ContractAddress string
Paused bool
}
The field's descriptions is as follows:
minter
- a string containing the address of the mintercontractAddress
- a string containing the contract addresspaused
- a boolean indicating whether token minting has been temporarily stopped or not, also the fieldPaused
on Token
Emitted after a successfull MsgStopToken
type TokenStoppedEvent struct {
Minter string
ContractAddress string
Stopped bool
}
The field's descriptions is as follows:
minter
- a string containing the address of the mintercontractAddress
- a string containing the contract addressstopped
- a boolean indicating whether token minting has been permanently stopped, also the fieldStopped
on Token