Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeNewToken = "new_token" AttributeKeyName = "name" AttributeKeyIssuer = "issuer" AttributeKeyRecipient = "recipient" AttributeKeySymbol = "symbol" AttributeKeyAmount = "amount" AttributeKeyIssueFee = "issue_fee" AttributeValueCategory = ModuleName )
View Source
const ( // module name ModuleName = "hrc10" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey is the message route for gov RouterKey = ModuleName // QuerierRoute is the querier route for gov QuerierRoute = ModuleName // Parameter store default parameter store DefaultParamspace = ModuleName TypeMsgNewToken = "new-token" )
View Source
const (
QueryParameters = "parameters"
)
Variables ¶
View Source
var DefaultIssueTokenFee = sdk.NewIntWithDecimal(1, 18) //1hbc as open fee
View Source
var (
KeyIssueTokenFee = []byte("IssueTokenFee")
)
Parameter keys
View Source
var ModuleCdc = codec.New()
Functions ¶
func ErrSymbolReserved ¶
func ErrSymbolReserved(codespace sdk.CodespaceType, msg string) sdk.Error
Types ¶
type CodeType ¶
const ( DefaultCodespace sdk.CodespaceType = "hrc10" CodeSymbolReserved CodeType = 103 )
type MsgNewToken ¶
type MsgNewToken struct { From sdk.CUAddress `json:"from" yaml:"from"` To sdk.CUAddress `json:"to" yaml:"to"` Name string `json:"name" yaml:"name"` Decimals uint64 `json:"decimals" yaml:"decimals"` TotalSupply sdk.Int `json:"total_supply" yaml:"total_supply"` }
========MsgTokenNew
func NewMsgNewToken ¶
func NewMsgNewToken(from, to sdk.CUAddress, name string, decimals uint64, totalSupply sdk.Int) MsgNewToken
NewMsgNewToken is a constructor function for MsgTokenNew
func (MsgNewToken) GetSignBytes ¶
func (msg MsgNewToken) GetSignBytes() []byte
func (MsgNewToken) GetSigners ¶
func (msg MsgNewToken) GetSigners() []sdk.CUAddress
func (MsgNewToken) Route ¶
func (msg MsgNewToken) Route() string
func (MsgNewToken) Type ¶
func (msg MsgNewToken) Type() string
func (MsgNewToken) ValidateBasic ¶
func (msg MsgNewToken) ValidateBasic() sdk.Error
ValidateBasic runs stateless checks on the message
type Params ¶
Params defines the parameters for the auth module.
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of auth module's parameters. nolint
Source Files ¶
Click to show internal directories.
Click to hide internal directories.