Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper keeper.Keeper, data GenesisState)
- func NewHandler(keeper keeper.Keeper) sdk.Handler
- func NewPubKey(pk string) (res crypto.PubKey)
- func NewQuerier(keeper keeper.Keeper, cdc *codec.Codec) sdk.Querier
- func TestAddr(addr string, bech string) sdk.AccAddress
- func ValidateGenesis(data GenesisState) error
- type GenesisState
- type Keeper
- type Order
- type Orders
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 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
Click to show internal directories.
Click to hide internal directories.