types

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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

func ParamKeyTable

func ParamKeyTable() params.KeyTable

ParamKeyTable for auth module

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Register concrete types on codec codec

Types

type CodeType

type CodeType = sdk.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

type Params struct {
	IssueTokenFee sdk.Int `json:"issue_token_fee"`
}

Params defines the parameters for the auth module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func (Params) Equal

func (p Params) Equal(p2 Params) bool

Equal returns a boolean determining if two Params types are identical.

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

func (Params) String

func (p Params) String() string

String implements the stringer interface.

func (Params) Validate

func (p Params) Validate() error

Jump to

Keyboard shortcuts

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