testutil

package
v0.0.0-...-41d3419 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBankGenesisState

func CreateBankGenesisState(
	t testing.TB,
	cfg network.Config,
) []byte

func CreateBankGenesisStateForLiquidationTest

func CreateBankGenesisStateForLiquidationTest(
	t testing.TB,
	cfg network.Config,
) []byte

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
JackTT - Gopher 🇻🇳