Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlocker(ctx sdk.Context, k keeper.Keeper)
- func ExportGenesis(ctx sdk.Context, k keeper.Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k keeper.Keeper, supplyKeeper types.SupplyKeeper, ...)
- func NewHandler(k keeper.Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (am 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
- func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
- func (AppModuleBasic) RandomizedParams(r *rand.Rand) []sim.ParamChange
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Asset
- type AssetSupplies
- type AssetSupply
- type Assets
- type GenesisState
- type Keeper
- type MsgBlockAddress
- type MsgIssueTokens
- type MsgRedeemTokens
- type MsgSetPauseStatus
- type MsgUnblockAddress
- type Params
- type QueryAssetParams
- type RateLimit
Constants ¶
const ( EventTypeIssue = types.EventTypeIssue EventTypeRedeem = types.EventTypeRedeem EventTypeBlock = types.EventTypeBlock EventTypeUnblock = types.EventTypeUnblock EventTypePause = types.EventTypePause EventTypeSeize = types.EventTypeSeize AttributeValueCategory = types.AttributeValueCategory AttributeKeyDenom = types.AttributeKeyDenom AttributeKeyIssueAmount = types.AttributeKeyIssueAmount AttributeKeyRedeemAmount = types.AttributeKeyRedeemAmount AttributeKeyBlock = types.AttributeKeyBlock AttributeKeyUnblock = types.AttributeKeyUnblock AttributeKeyAddress = types.AttributeKeyAddress AttributeKeyPauseStatus = types.AttributeKeyPauseStatus ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey DefaultParamspace = types.DefaultParamspace QuerierRoute = types.QuerierRoute QueryGetParams = types.QueryGetParams QueryGetAsset = types.QueryGetAsset )
Variables ¶
var ( // functions aliases NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterCodec = types.RegisterCodec NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState NewMsgIssueTokens = types.NewMsgIssueTokens NewMsgRedeemTokens = types.NewMsgRedeemTokens NewMsgBlockAddress = types.NewMsgBlockAddress NewMsgUnblockAddress = types.NewMsgUnblockAddress NewMsgSetPauseStatus = types.NewMsgSetPauseStatus NewParams = types.NewParams DefaultParams = types.DefaultParams ParamKeyTable = types.ParamKeyTable NewAsset = types.NewAsset NewRateLimit = types.NewRateLimit NewAssetSupply = types.NewAssetSupply // variable aliases ModuleCdc = types.ModuleCdc ErrAssetNotFound = types.ErrAssetNotFound ErrNotAuthorized = types.ErrNotAuthorized ErrAssetPaused = types.ErrAssetPaused ErrAccountBlocked = types.ErrAccountBlocked ErrAccountAlreadyBlocked = types.ErrAccountAlreadyBlocked ErrAccountAlreadyUnblocked = types.ErrAccountAlreadyUnblocked ErrIssueToModuleAccount = types.ErrIssueToModuleAccount ErrExceedsSupplyLimit = types.ErrExceedsSupplyLimit ErrAssetUnblockable = types.ErrAssetUnblockable AssetSupplyPrefix = types.AssetSupplyPrefix PreviousBlockTimeKey = types.PreviousBlockTimeKey KeyAssets = types.KeyAssets DefaultAssets = types.DefaultAssets ModuleAccountName = types.ModuleAccountName )
Functions ¶
func BeginBlocker ¶
BeginBlocker iterates over each asset and seizes coins from blocked addresses by returning them to the asset owner
func ExportGenesis ¶
ExportGenesis export genesis state for issuance module
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k keeper.Keeper, supplyKeeper types.SupplyKeeper, gs types.GenesisState)
InitGenesis initializes the store state from a genesis state.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule app module type
func NewAppModule ¶
func NewAppModule(keeper Keeper, accountKeeper types.AccountKeeper, supplyKeeper types.SupplyKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
BeginBlock module begin-block
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock module end-block
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis module export genesis
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis module init-genesis
func (AppModule) NewHandler ¶
NewHandler module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns no sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute module querier route name
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants register module invariants
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation
WeightedOperations returns the all the issuance module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis default genesis state
func (AppModuleBasic) GenerateGenesisState ¶
func (AppModuleBasic) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the issuance module
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns no root query command for the issuance module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the issuance module.
func (AppModuleBasic) ProposalContents ¶
func (AppModuleBasic) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModuleBasic) RandomizedParams ¶
func (AppModuleBasic) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams returns nil because issuance has no params.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec register module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers REST routes for the issuance module.
func (AppModuleBasic) RegisterStoreDecoder ¶
func (AppModuleBasic) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for issuance module's types
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis module validate genesis
type AssetSupplies ¶
type AssetSupplies = types.AssetSupplies
type AssetSupply ¶
type AssetSupply = types.AssetSupply
type GenesisState ¶
type GenesisState = types.GenesisState
type MsgBlockAddress ¶
type MsgBlockAddress = types.MsgBlockAddress
type MsgIssueTokens ¶
type MsgIssueTokens = types.MsgIssueTokens
type MsgRedeemTokens ¶
type MsgRedeemTokens = types.MsgRedeemTokens
type MsgSetPauseStatus ¶
type MsgSetPauseStatus = types.MsgSetPauseStatus
type MsgUnblockAddress ¶
type MsgUnblockAddress = types.MsgUnblockAddress
type QueryAssetParams ¶
type QueryAssetParams = types.QueryAssetParams