bancorlite

package
v0.0.16-bugfix Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: BSD-2-Clause Imports: 16 Imported by: 0

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
)
View Source
var (
	EventTypeBancorlite = "bancorlite"

	AttributeKeyCreateFor = "create-for"
	AttributeKeyTradeFor  = "trade-for"

	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"

	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