Documentation ¶
Index ¶
- Constants
- Variables
- func CollectTokenModificationInfo(token types.Token, msg types.MsgModifyTokenInfo) (newURL, newDesc, newID, newName string, newSupply sdk.Int, ...)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(keeper Keeper) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type BaseToken
- type BaseTokenKeeper
- type GenesisState
- type Keeper
- type MsgAddTokenWhitelist
- type MsgBurnToken
- type MsgForbidAddr
- type MsgForbidToken
- type MsgIssueToken
- type MsgMintToken
- type MsgModifyTokenInfo
- type MsgRemoveTokenWhitelist
- type MsgTransferOwnership
- type MsgUnForbidAddr
- type MsgUnForbidToken
- type Params
- type Token
- type TokenKeeper
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 InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis - Init store state from genesis data
func NewHandler ¶
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 ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
module begin-block
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
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) NewQuerierHandler ¶
module querier
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
register invariants
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) 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 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 TokenKeeper ¶
type TokenKeeper = keepers.TokenKeeper
Click to show internal directories.
Click to hide internal directories.