testutil

package
v0.0.0-...-a9c8dba Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBankGenesisState

func CreateBankGenesisState(
	t *testing.T,
	cfg network.Config,
	initialSubaccountModuleBalance int64,
) []byte

CreateBankGenesisState returns the marshaled genesis state for the bank module. It will set the balance of the subaccount module in the genesis. If the provided subaccount module balance is negative, this function will panic.

func MsgCancelOrderExec

func MsgCancelOrderExec(
	clientCtx client.Context,
	owner sdk.AccAddress,
	number uint32,
	clientId uint64,
	clobPairId uint32,
	goodTilBlock uint32,
) (testutil.BufferWriter, error)

MsgCancelOrderExec broadcasts a cancel order message.

func MsgPlaceOrderExec

func MsgPlaceOrderExec(
	clientCtx client.Context,
	owner sdk.AccAddress,
	number uint32,
	clientId uint64,
	clobPairId uint32,
	side types.Order_Side,
	quantums satypes.BaseQuantums,
	subticks uint64,
	goodTilBlock uint32,
) (testutil.BufferWriter, error)

MsgPlaceOrderExec broadcasts a place order message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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