asset

package
v0.0.16-bugfix-2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultParamspace    = types.DefaultParamspace
	ModuleName           = types.ModuleName
	StoreKey             = types.StoreKey
	QuerierRoute         = types.QuerierRoute
	RouterKey            = types.RouterKey
	QueryToken           = types.QueryToken
	QueryTokenList       = types.QueryTokenList
	QueryWhitelist       = types.QueryWhitelist
	QueryForbiddenAddr   = types.QueryForbiddenAddr
	QueryReservedSymbols = types.QueryReservedSymbols
	MaxTokenAmount       = types.MaxTokenAmount
	RareSymbolLength     = types.RareSymbolLength

	IssueTokenFee     = types.IssueTokenFee
	IssueRareTokenFee = types.IssueRareTokenFee
)

Variables

View Source
var (
	NewQuerier                 = keepers.NewQuerier
	NewBaseKeeper              = keepers.NewBaseKeeper
	NewBaseTokenKeeper         = keepers.NewBaseTokenKeeper
	RegisterCodec              = types.RegisterCodec
	DefaultGenesisState        = types.DefaultGenesisState
	NewGenesisState            = types.NewGenesisState
	NewQueryAssetParams        = types.NewQueryAssetParams
	NewToken                   = types.NewToken
	NewMsgIssueToken           = types.NewMsgIssueToken
	NewMsgTransferOwnership    = types.NewMsgTransferOwnership
	NewMsgMintToken            = types.NewMsgMintToken
	NewMsgBurnToken            = types.NewMsgBurnToken
	NewMsgForbidToken          = types.NewMsgForbidToken
	NewMsgUnForbidToken        = types.NewMsgUnForbidToken
	NewMsgAddTokenWhitelist    = types.NewMsgAddTokenWhitelist
	NewMsgRemoveTokenWhitelist = types.NewMsgRemoveTokenWhitelist
	NewMsgForbidAddr           = types.NewMsgForbidAddr
	NewMsgUnForbidAddr         = types.NewMsgUnForbidAddr
	NewMsgModifyTokenInfo      = types.NewMsgModifyTokenInfo
	TestIdentityString         = types.TestIdentityString
	ValidateTokenSymbol        = types.ValidateTokenSymbol

	DefaultParams = types.DefaultParams

	ModuleCdc = types.ModuleCdc
)

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)

InitGenesis - Init store state from genesis data

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

NewHandler returns a handler for "asset" type messages.

func ValidateGenesis added in v0.0.4

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of asset genesis data returning an error for any failed validation criteria.

Types

type AppModule added in v0.0.4

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

___________________________ app module object

func NewAppModule added in v0.0.4

func NewAppModule(assetKeeper Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock added in v0.0.4

func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

module begin-block

func (AppModule) EndBlock added in v0.0.4

module end-block

func (AppModule) ExportGenesis added in v0.0.4

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

module export genesis

func (AppModule) InitGenesis added in v0.0.4

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

module init-genesis

func (AppModule) Name added in v0.0.4

func (AppModule) Name() string

module name

func (AppModule) NewHandler added in v0.0.4

func (am AppModule) NewHandler() sdk.Handler

module handler

func (AppModule) NewQuerierHandler added in v0.0.4

func (am AppModule) NewQuerierHandler() sdk.Querier

module querier

func (AppModule) QuerierRoute added in v0.0.4

func (AppModule) QuerierRoute() string

module querier route name

func (AppModule) RegisterInvariants added in v0.0.4

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

register invariants

func (AppModule) Route added in v0.0.4

func (AppModule) Route() string

module message route name

type AppModuleBasic added in v0.0.4

type AppModuleBasic struct{}

app module basics object

func (AppModuleBasic) DefaultGenesis added in v0.0.4

func (AppModuleBasic) DefaultGenesis() json.RawMessage

default genesis state

func (AppModuleBasic) GetQueryCmd added in v0.0.4

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

get the root query command of this module

func (AppModuleBasic) GetTxCmd added in v0.0.4

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

get the root tx command of this module

func (AppModuleBasic) Name added in v0.0.4

func (AppModuleBasic) Name() string

module name

func (AppModuleBasic) RegisterCodec added in v0.0.4

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

register module codec

func (AppModuleBasic) RegisterRESTRoutes added in v0.0.4

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

register rest routes

func (AppModuleBasic) ValidateGenesis added in v0.0.4

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

module validate genesis

type BaseToken

type BaseToken = types.BaseToken

type BaseTokenKeeper

type BaseTokenKeeper = keepers.BaseTokenKeeper

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState

ExportGenesis returns a GenesisState for a given context and keeper

type Keeper

type Keeper = keepers.BaseKeeper

type MsgAddTokenWhitelist

type MsgAddTokenWhitelist = types.MsgAddTokenWhitelist

type MsgBurnToken

type MsgBurnToken = types.MsgBurnToken

type MsgForbidAddr

type MsgForbidAddr = types.MsgForbidAddr

type MsgForbidToken

type MsgForbidToken = types.MsgForbidToken

type MsgIssueToken

type MsgIssueToken = types.MsgIssueToken

type MsgMintToken

type MsgMintToken = types.MsgMintToken

type MsgModifyTokenInfo added in v0.0.15

type MsgModifyTokenInfo = types.MsgModifyTokenInfo

type MsgRemoveTokenWhitelist

type MsgRemoveTokenWhitelist = types.MsgRemoveTokenWhitelist

type MsgTransferOwnership

type MsgTransferOwnership = types.MsgTransferOwnership

type MsgUnForbidAddr

type MsgUnForbidAddr = types.MsgUnForbidAddr

type MsgUnForbidToken

type MsgUnForbidToken = types.MsgUnForbidToken

type Params

type Params = types.Params

type Token

type Token = types.Token

type TokenKeeper

type TokenKeeper = keepers.TokenKeeper

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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