exchange

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoreKey          = types.StoreKey
	RouterKey         = types.RouterKey
	QuerierRoute      = types.QuerierRoute
	DefaultParamspace = types.DefaultParamspace
	DefaultCodespace  = types.DefaultCodespace
)
View Source
const (
	QueryOrder              = "order"
	QueryFrozenFund         = "frozen"
	QueryAllOrdersByAddress = "orders"
)

query endpoints supported by the governance Querier

Variables

View Source
var (
	NewKeeper = keeper.NewKeeper

	RegisterCodec = msgs.RegisterCodec
	NewMsgMake    = msgs.NewMsgMake
	NewMsgCancel  = msgs.NewMsgCancel
	NewMsgTake    = msgs.NewMsgTake

	NewQueryOrderParams      = queriers.NewQueryOrderParams
	NewQueryOrdersParams     = queriers.NewQueryOrdersParams
	NewQueryFrozenFundParams = queriers.NewQueryFrozenFundParams
	NewModuleClient          = client.NewModuleClient
)
View Source
var (
	Addrs = createTestAddrs(10)
	PKs   = createTestPubKeys(10)
)

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState)

func NewHandler

func NewHandler(keeper keeper.Keeper) sdk.Handler

func NewPubKey added in v0.5.0

func NewPubKey(pk string) (res crypto.PubKey)

func NewQuerier

func NewQuerier(keeper keeper.Keeper, cdc *codec.Codec) sdk.Querier

func TestAddr added in v0.5.0

func TestAddr(addr string, bech string) sdk.AccAddress

for incode address generation

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

Types

type GenesisState

type GenesisState struct {
	StartingOrderId uint64       `json:"starting_id"`
	Orders          types.Orders `json:"orders"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper keeper.Keeper) GenesisState

func NewGenesisState

func NewGenesisState(startingOrderId uint64) GenesisState

func (GenesisState) Equal

func (data GenesisState) Equal(data2 GenesisState) bool

Checks whether 2 GenesisState structs are equivalent.

func (GenesisState) IsEmpty

func (data GenesisState) IsEmpty() bool

Returns if a GenesisState is empty or has data in it

type Keeper

type Keeper = keeper.Keeper

type Order

type Order = types.Order

type Orders

type Orders = types.Orders

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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