Documentation ¶
Overview ¶
Aliases to use them outside pocket without import of specific package.
Register codecs for currencies module.
Message handler for currencies module.
Implements keeper for currencies module.
Implements multisignature message handler for currency module.
Implements querier for currency module.
Index ¶
- Constants
- Variables
- func NewAppMsModule(ccKeeper Keeper) core.AppMsModule
- func NewHandler(keeper Keeper) sdk.Handler
- func NewMsHandler(keeper Keeper) core.MsHandler
- func NewQuerier(ccKeeper Keeper) sdk.Querier
- func RegisterCodec(cdc *codec.Codec)
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (app AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (app AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (app AppModule) NewHandler() sdk.Handler
- func (app AppModule) NewMsHandler() core.MsHandler
- func (app AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (module 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 (module AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
- func (AppModuleBasic) ValidateGenesis(json.RawMessage) error
- type Keeper
- func (keeper Keeper) DestroyCurrency(ctx sdk.Context, chainID, symbol, recipient string, amount sdk.Int, ...) sdk.Error
- func (keeper Keeper) GetCurrency(ctx sdk.Context, symbol string) types.Currencydeprecated
- func (keeper Keeper) GetDestroy(ctx sdk.Context, id sdk.Int) types.Destroy
- func (keeper Keeper) GetIssue(ctx sdk.Context, issueID string) types.Issue
- func (keeper Keeper) HasDestroy(ctx sdk.Context, id sdk.Int) bool
- func (keeper Keeper) IssueCurrency(ctx sdk.Context, symbol string, amount sdk.Int, decimals int8, ...) sdk.Error
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.ModuleName DefaultCodespace = types.DefaultCodespace QuerierRoute = types.ModuleName )
const ( QueryGetDestroys = "destroys" QueryGetDestroy = "destroy" QueryGetIssue = "issue" QueryGetCurrency = "currency" )
Variables ¶
var ModuleCdc *codec.Codec
Functions ¶
func NewHandler ¶
Handler for currencies messages, provess issue/destroy messages.
func NewMsHandler ¶
Handler for currencies messages, proves issue/destroy messages.
func RegisterCodec ¶
Register amino types for Currencies module.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
PoA module.
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
Process begin block (abci).
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
Process end block (abci).
func (AppModule) ExportGenesis ¶
func (app AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
Export genesis.
func (AppModule) InitGenesis ¶
func (app AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
Initialize genesis.
func (AppModule) NewMsHandler ¶
Create new multisignature handler.
func (AppModule) NewQuerierHandler ¶
Get new querier for PoA module.
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
Register module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
func (AppModuleBasic) DefaultGenesis ¶
func (module AppModuleBasic) DefaultGenesis() json.RawMessage
Generate default genesis.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
Get query commands for CLI.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
Get transaction commands for CLI.
func (AppModuleBasic) RegisterCodec ¶
func (module AppModuleBasic) RegisterCodec(cdc *codec.Codec)
Registering codecs.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)
Register REST routes.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(json.RawMessage) error
Validate exists genesis.
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Currency keeper struct.
func (Keeper) DestroyCurrency ¶
func (keeper Keeper) DestroyCurrency(ctx sdk.Context, chainID, symbol, recipient string, amount sdk.Int, spender sdk.AccAddress) sdk.Error
Destroy currency.
func (Keeper) GetDestroy ¶
Get destroy by id.
func (Keeper) HasDestroy ¶
Has destroy.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Implements getters for query and transaction CLI commands.
|
Implements getters for query and transaction CLI commands. |
cli
Multisignature currency module commands for CLI.
|
Multisignature currency module commands for CLI. |
rest
Implements REST API calls for currency module.
|
Implements REST API calls for currency module. |
Destroy currency message implementation.
|
Destroy currency message implementation. |
Currency type implementation.
|
Currency type implementation. |