bancorlite

package
v0.2.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2020 License: BSD-2-Clause Imports: 17 Imported by: 3

Documentation

Index

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

func NewHandler(k Keeper) sdk.Handler

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

___________________________ app module object

func NewAppModule

func NewAppModule(blKeeper keepers.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) EndBlock

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 (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

registers

func (AppModule) Route

func (am AppModule) Route() string

routes

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 Keeper

type Keeper = keepers.Keeper

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

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL