Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx 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 (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (amb AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (amb AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (amb AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(data json.RawMessage) error
- type BancorInfo
- type GenesisState
- type Keeper
- type MsgBancorCancel
- type MsgBancorInfoForKafka
- type MsgBancorInit
- type MsgBancorTrade
- type MsgBancorTradeInfoForKafka
Constants ¶
View Source
const ( StoreKey = types.StoreKey ModuleName = types.ModuleName )
Variables ¶
View Source
var ( NewBaseKeeper = keepers.NewKeeper NewBancorInfoKeeper = keepers.NewBancorInfoKeeper DefaultParams = types.DefaultParams ModuleCdc = types.ModuleCdc )
View Source
var ( AttributeValueCategory = ModuleName EventTypeKeyBancorInit = "bancor_init" EventTypeKeyBancorTrade = "bancor_trade" EventTypeKeyBancorCancel = "bancor_cancel" AttributeSymbol = "symbol" AttributeOwner = "bancor_owner" AttributeMaxSupply = "bancor_max_supply" AttributeNewStockInPool = "bancor_new_stock_in_pool" AttributeNewMoneyInPool = "bancor_new_money_in_pool" AttributeNewPrice = "bancor_new_price" AttributeCoinsFromPool = "bancor_coins_from_pool" AttributeCoinsToPool = "bancor_coins_to_pool" AttributeTradeSide = "bancor_trade_side" AttributeRebateReferee = "rebate_referee" AttributeRebateAmount = "rebate_amount" KafkaBancorTrade = "bancor_trade" KafkaBancorCreate = "bancor_create" KafkaBancorCancel = "bancor_cancel" KafkaBancorInfo = "bancor_info" )
Market module event types
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis - Init store state from genesis data
func NewHandler ¶
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 (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ 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, data json.RawMessage) []abci.ValidatorUpdate
func (AppModule) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
registers
type AppModuleBasic ¶
type AppModuleBasic struct { }
app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
genesis
func (AppModuleBasic) GetQueryCmd ¶
func (amb AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
func (AppModuleBasic) GetTxCmd ¶
func (amb AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
func (AppModuleBasic) RegisterRESTRoutes ¶
func (amb AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
client functionality
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(data json.RawMessage) error
type BancorInfo ¶
type BancorInfo = keepers.BancorInfo
type GenesisState ¶
type GenesisState struct { Params types.Params `json:"params"` BancorInfoMap map[string]keepers.BancorInfo `json:"bancor_info_map"` }
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState - Return a default genesis state
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis returns a GenesisState for a given context and keeper
func NewGenesisState ¶
func NewGenesisState(params types.Params, bancorInfoMap map[string]keepers.BancorInfo) GenesisState
NewGenesisState - Create a new genesis state
func (GenesisState) Validate ¶
func (data GenesisState) Validate() error
type MsgBancorCancel ¶
type MsgBancorCancel = types.MsgBancorCancel
type MsgBancorInfoForKafka ¶
type MsgBancorInfoForKafka = types.MsgBancorInfoForKafka
type MsgBancorInit ¶
type MsgBancorInit = types.MsgBancorInit
type MsgBancorTrade ¶
type MsgBancorTrade = types.MsgBancorTrade
type MsgBancorTradeInfoForKafka ¶
type MsgBancorTradeInfoForKafka = types.MsgBancorTradeInfoForKafka
Click to show internal directories.
Click to hide internal directories.