marketplace

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgBuy             = "op_weight_msg_buy_direct"
	OpWeightMsgSell            = "op_weight_msg_sell"
	OpWeightMsgUpdateSellOrder = "op_weight_msg_update_sell_order"
	OpWeightMsgCancelSellOrder = "op_weight_msg_cancel_sell_order"
)

Simulation operation weights constants

View Source
const (
	WeightBuyDirect       = 100
	WeightSell            = 100
	WeightUpdateSellOrder = 100
	WeightCancelSellOrder = 100
)

basket operations weights

Variables

View Source
var (
	TypeMsgBuyDirect       = marketplace.MsgBuyDirect{}.Route()
	TypeMsgSell            = marketplace.MsgSell{}.Route()
	TypeMsgUpdateSellOrder = marketplace.MsgUpdateSellOrders{}.Route()
	TypeMsgCancelSellOrder = marketplace.MsgCancelSellOrder{}.Route()
)

ecocredit message types

Functions

func SimulateMsgBuyDirect

func SimulateMsgBuyDirect(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient, mktQryClient marketplace.QueryClient) simtypes.Operation

SimulateMsgBuyDirect generates a Marketplace/MsgBuyDirect with random values.

func SimulateMsgCancelSellOrder

func SimulateMsgCancelSellOrder(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient, mktQryClient marketplace.QueryClient) simtypes.Operation

SimulateMsgCancelSellOrder generates a Marketplace/MsgCancelSellOrder with random values.

func SimulateMsgSell

func SimulateMsgSell(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient) simtypes.Operation

SimulateMsgSell generates a Marketplace/MsgSell with random values.

func SimulateMsgUpdateSellOrder

func SimulateMsgUpdateSellOrder(ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	coreQryClient core.QueryClient, mktQryClient marketplace.QueryClient) simtypes.Operation

SimulateMsgUpdateSellOrder generates a Marketplace/MsgUpdateSellOrder with random values.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams, cdc codec.JSONCodec,
	ak ecocredit.AccountKeeper, bk ecocredit.BankKeeper,
	qryClient core.QueryClient, mktQryClient marketplace.QueryClient) simulation.WeightedOperations

Types

This section is empty.

Jump to

Keyboard shortcuts

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