Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate
- func NewHandler(k Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(s sdk.Context, block abci.RequestBeginBlock)
- func (am AppModule) EndBlock(s sdk.Context, block abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, message json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(registry sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (b AppModuleBasic) DefaultGenesis() json.RawMessage
- func (b AppModuleBasic) GetQueryCmd(codec *codec.Codec) *cobra.Command
- func (b AppModuleBasic) GetTxCmd(codec *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (b AppModuleBasic) RegisterCodec(codec *codec.Codec)
- func (b AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, router *mux.Router)
- func (b AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type GenesisState
- type Keeper
- type MsgExchange
Constants ¶
View Source
const ( ModuleName = types.ModuleName DefaultParamspace = types.DefaultParamspace StoreKey = types.StoreKey RouterKey = types.RouterKey )
Variables ¶
View Source
var ( ModuleCdc = types.ModuleCdc NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterCodec = types.RegisterCodec )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the oracle module.
func NewHandler ¶
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule represents the AppModule for this module.
func NewAppModule ¶
NewAppModule creates a new AppModule object.
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(s sdk.Context, block abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(s sdk.Context, block abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, message json.RawMessage) []abci.ValidatorUpdate
func (AppModule) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(registry sdk.InvariantRegistry)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is Band Oracle's module basic object.
func (AppModuleBasic) DefaultGenesis ¶
func (b AppModuleBasic) DefaultGenesis() json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (b AppModuleBasic) GetQueryCmd(codec *codec.Codec) *cobra.Command
func (AppModuleBasic) GetTxCmd ¶
func (b AppModuleBasic) GetTxCmd(codec *codec.Codec) *cobra.Command
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns this module's name - "coinswap" (SDK AppModuleBasic interface).
func (AppModuleBasic) RegisterCodec ¶
func (b AppModuleBasic) RegisterCodec(codec *codec.Codec)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (b AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, router *mux.Router)
func (AppModuleBasic) ValidateGenesis ¶
func (b AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
type GenesisState ¶
type GenesisState struct { InitialRate sdk.Dec `json:"initial_rate" yaml:"initial_rate"` Params types.Params `json:"params" yaml:"params"` }
GenesisState is the coinswap state that must be provided at genesis.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns the default oracle genesis state.
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc *codec.Codec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns x/coinswap GenesisState given raw application genesis state.
type MsgExchange ¶
type MsgExchange = types.MsgExchange
Click to show internal directories.
Click to hide internal directories.