Documentation ¶
Index ¶
- Constants
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(keeper Keeper) sdk.Handler
- func NewQuerier(keeper Keeper) sdk.Querier
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (a AppModule) BeginBlock(sdk.Context, abci.RequestBeginBlock)
- func (a AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (a AppModule) NewHandler() sdk.Handler
- func (a AppModule) NewQuerierHandler() sdk.Querier
- func (a AppModule) QuerierRoute() string
- func (a AppModule) RegisterInvariants(sdk.InvariantRegistry)
- func (a AppModule) Route() string
- type AppModuleBasic
- func (a AppModuleBasic) DefaultGenesis() json.RawMessage
- func (a AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (a AppModuleBasic) Name() string
- func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (a AppModuleBasic) RegisterRESTRoutes(context.CLIContext, *mux.Router)
- func (a AppModuleBasic) ValidateGenesis(b json.RawMessage) error
- type GenesisState
- type IteratorCB
- type Keeper
- func (k Keeper) Balance(ctx sdk.Context, id store.EntityID, owner sdk.AccAddress) sdk.Uint
- func (k Keeper) Burn(ctx sdk.Context, id store.EntityID, burner sdk.AccAddress, quantity sdk.Uint) sdk.Error
- func (k Keeper) Create(ctx sdk.Context, name string, symbol string, owner sdk.AccAddress, ...) (types.Asset, sdk.Error)
- func (k Keeper) Get(ctx sdk.Context, id store.EntityID) (types.Asset, sdk.Error)
- func (k Keeper) Has(ctx sdk.Context, id store.EntityID) bool
- func (k Keeper) Inject(ctx sdk.Context, asset types.Asset)
- func (k Keeper) Iterator(ctx sdk.Context, cb IteratorCB)
- func (k Keeper) Mint(ctx sdk.Context, id store.EntityID, quantity sdk.Uint) sdk.Error
- func (k Keeper) Set(ctx sdk.Context, asset types.Asset) sdk.Error
- func (k Keeper) Transfer(ctx sdk.Context, id store.EntityID, from sdk.AccAddress, to sdk.AccAddress, ...) sdk.Error
- func (k Keeper) TransferFromOwner(ctx sdk.Context, id store.EntityID, to sdk.AccAddress, quantity sdk.Uint) sdk.Error
Constants ¶
View Source
const (
QueryList = "list"
)
Variables ¶
This section is empty.
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
func NewHandler ¶
func NewQuerier ¶
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func (AppModule) BeginBlock ¶
func (a AppModule) BeginBlock(sdk.Context, abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (a AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶
func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶
func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (a AppModule) RegisterInvariants(sdk.InvariantRegistry)
type AppModuleBasic ¶
type AppModuleBasic struct{}
func (AppModuleBasic) DefaultGenesis ¶
func (a AppModuleBasic) DefaultGenesis() json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (a AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
func (AppModuleBasic) Name ¶
func (a AppModuleBasic) Name() string
func (AppModuleBasic) RegisterCodec ¶
func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (a AppModuleBasic) RegisterRESTRoutes(context.CLIContext, *mux.Router)
func (AppModuleBasic) ValidateGenesis ¶
func (a AppModuleBasic) ValidateGenesis(b json.RawMessage) error
type GenesisState ¶
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
func NewGenesisState ¶
func NewGenesisState(assets []types.Asset) GenesisState
type IteratorCB ¶
Click to show internal directories.
Click to hide internal directories.