asset

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: BSD-2-Clause Imports: 16 Imported by: 4

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
	QueryParameters           = types.QueryParameters
	QueryReservedSymbols      = types.QueryReservedSymbols
	MaxTokenAmount            = types.MaxTokenAmount
	DefaultIssueTokenFee      = types.DefaultIssueLongTokenFee
	DefaultIssue2CharTokenFee = types.DefaultIssue2CharTokenFee
	DefaultIssue3CharTokenFee = types.DefaultIssue3CharTokenFee
	DefaultIssue4CharTokenFee = types.DefaultIssue4CharTokenFee
	DefaultIssue5CharTokenFee = types.DefaultIssue5CharTokenFee
	DefaultIssue6CharTokenFee = types.DefaultIssue6CharTokenFee
)

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 CollectTokenModificationInfo

func CollectTokenModificationInfo(token types.Token, msg types.MsgModifyTokenInfo) (
	newURL, newDesc, newID, newName string, newSupply sdk.Int,
	newMintable, newBurnable, newAddrForbiddable, newTokenForbiddable bool,
	sdkErr sdk.Error)

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

func ValidateGenesis(data GenesisState) error

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

Types

type AppModule

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

___________________________ app module object

func NewAppModule

func NewAppModule(assetKeeper Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

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

module begin-block

func (AppModule) EndBlock

module end-block

func (AppModule) ExportGenesis

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

module export genesis

func (AppModule) InitGenesis

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

module init-genesis

func (AppModule) Name

func (AppModule) Name() string

module name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

module querier

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

module querier route name

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

register invariants

func (AppModule) Route

func (AppModule) Route() string

module message route name

type AppModuleBasic

type AppModuleBasic struct{}

app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

default genesis state

func (AppModuleBasic) GetQueryCmd

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

get the root query command of this module

func (AppModuleBasic) GetTxCmd

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

get the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

module name

func (AppModuleBasic) RegisterCodec

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

register module codec

func (AppModuleBasic) RegisterRESTRoutes

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

register rest routes

func (AppModuleBasic) ValidateGenesis

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

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