issue

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Route        = "tokensIssue"
	IssueMsgType = "issueMsg"
	MintMsgType  = "mintMsg"
)

TODO: "route expressions can only contain alphanumeric characters", we need to change the cosmos sdk to support slash const Route = "tokens/issue"

View Source
const (
	IssueMiniMsgType = "miniIssueMsg" //For max total supply in range 2
)

TODO: "route expressions can only contain alphanumeric characters", we need to change the cosmos sdk to support slash const Route = "tokens/issue"

View Source
const (
	IssueTinyMsgType = "tinyIssueMsg"
)

TODO: "route expressions can only contain alphanumeric characters", we need to change the cosmos sdk to support slash const Route = "tokens/issue"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(tokenMapper store.Mapper, keeper bank.Keeper) sdk.Handler

NewHandler creates a new token issue message handler

Types

type IssueMiniMsg

type IssueMiniMsg struct {
	From        sdk.AccAddress `json:"from"`
	Name        string         `json:"name"`
	Symbol      string         `json:"symbol"`
	TotalSupply int64          `json:"total_supply"`
	Mintable    bool           `json:"mintable"`
	TokenURI    string         `json:"token_uri"`
}

func NewIssueMiniMsg

func NewIssueMiniMsg(from sdk.AccAddress, name, symbol string, supply int64, mintable bool, tokenURI string) IssueMiniMsg

func (IssueMiniMsg) GetInvolvedAddresses

func (msg IssueMiniMsg) GetInvolvedAddresses() []sdk.AccAddress

func (IssueMiniMsg) GetSignBytes

func (msg IssueMiniMsg) GetSignBytes() []byte

func (IssueMiniMsg) GetSigners

func (msg IssueMiniMsg) GetSigners() []sdk.AccAddress

func (IssueMiniMsg) Route

func (msg IssueMiniMsg) Route() string

Implements IssueMiniMsg.

func (IssueMiniMsg) String

func (msg IssueMiniMsg) String() string

func (IssueMiniMsg) Type

func (msg IssueMiniMsg) Type() string

func (IssueMiniMsg) ValidateBasic

func (msg IssueMiniMsg) ValidateBasic() sdk.Error

ValidateBasic does a simple validation check that doesn't require access to any other information.

type IssueMsg

type IssueMsg struct {
	From        sdk.AccAddress `json:"from"`
	Name        string         `json:"name"`
	Symbol      string         `json:"symbol"`
	TotalSupply int64          `json:"total_supply"`
	Mintable    bool           `json:"mintable"`
}

func NewIssueMsg

func NewIssueMsg(from sdk.AccAddress, name, symbol string, supply int64, mintable bool) IssueMsg

func (IssueMsg) GetInvolvedAddresses

func (msg IssueMsg) GetInvolvedAddresses() []sdk.AccAddress

func (IssueMsg) GetSignBytes

func (msg IssueMsg) GetSignBytes() []byte

func (IssueMsg) GetSigners

func (msg IssueMsg) GetSigners() []sdk.AccAddress

func (IssueMsg) Route

func (msg IssueMsg) Route() string

Implements IssueMsg.

func (IssueMsg) String

func (msg IssueMsg) String() string

func (IssueMsg) Type

func (msg IssueMsg) Type() string

func (IssueMsg) ValidateBasic

func (msg IssueMsg) ValidateBasic() sdk.Error

ValidateBasic does a simple validation check that doesn't require access to any other information.

type IssueTinyMsg

type IssueTinyMsg struct {
	From        sdk.AccAddress `json:"from"`
	Name        string         `json:"name"`
	Symbol      string         `json:"symbol"`
	TotalSupply int64          `json:"total_supply"`
	Mintable    bool           `json:"mintable"`
	TokenURI    string         `json:"token_uri"`
}

func NewIssueTinyMsg

func NewIssueTinyMsg(from sdk.AccAddress, name, symbol string, supply int64, mintable bool, tokenURI string) IssueTinyMsg

func (IssueTinyMsg) GetInvolvedAddresses

func (msg IssueTinyMsg) GetInvolvedAddresses() []sdk.AccAddress

func (IssueTinyMsg) GetSignBytes

func (msg IssueTinyMsg) GetSignBytes() []byte

func (IssueTinyMsg) GetSigners

func (msg IssueTinyMsg) GetSigners() []sdk.AccAddress

func (IssueTinyMsg) Route

func (msg IssueTinyMsg) Route() string

Implements IssueTinyMsg.

func (IssueTinyMsg) String

func (msg IssueTinyMsg) String() string

func (IssueTinyMsg) Type

func (msg IssueTinyMsg) Type() string

func (IssueTinyMsg) ValidateBasic

func (msg IssueTinyMsg) ValidateBasic() sdk.Error

ValidateBasic does a simple validation check that doesn't require access to any other information.

type MintMsg

type MintMsg struct {
	From   sdk.AccAddress `json:"from"`
	Symbol string         `json:"symbol"`
	Amount int64          `json:"amount"`
}

func NewMintMsg

func NewMintMsg(from sdk.AccAddress, symbol string, amount int64) MintMsg

func (MintMsg) GetInvolvedAddresses

func (msg MintMsg) GetInvolvedAddresses() []sdk.AccAddress

func (MintMsg) GetSignBytes

func (msg MintMsg) GetSignBytes() []byte

func (MintMsg) GetSigners

func (msg MintMsg) GetSigners() []sdk.AccAddress

func (MintMsg) Route

func (msg MintMsg) Route() string

Implements MintMsg.

func (MintMsg) String

func (msg MintMsg) String() string

func (MintMsg) Type

func (msg MintMsg) Type() string

func (MintMsg) ValidateBasic

func (msg MintMsg) ValidateBasic() sdk.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL