fuzzing

package
v0.0.0-...-bf46863 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BaselinePrice = 1234.56

Variables

View Source
var (
	MicroTick  = sdk.MustNewDecFromStr("0.000001")
	MilliTick  = sdk.MustNewDecFromStr("0.001")
	WholeTick  = sdk.OneDec()
	PairCorpus = []types.Pair{
		{},
		{PriceDenom: "SEI"},
		{AssetDenom: "ATOM"},
		{
			PriceDenom: "SEI",
			AssetDenom: "ATOM",
		},
		{
			PriceDenom:       "SEI",
			AssetDenom:       "ATOM",
			PriceTicksize:    &MicroTick,
			QuantityTicksize: &MicroTick,
		},
		{
			PriceDenom:       "SEI",
			AssetDenom:       "ATOM",
			PriceTicksize:    &MilliTick,
			QuantityTicksize: &MilliTick,
		},
		{
			PriceDenom:       "SEI",
			AssetDenom:       "ATOM",
			PriceTicksize:    &WholeTick,
			QuantityTicksize: &WholeTick,
		},
		{
			PriceDenom: "USDC",
			AssetDenom: "ATOM",
		},
		{
			PriceDenom:       "USDC",
			AssetDenom:       "ATOM",
			PriceTicksize:    &MicroTick,
			QuantityTicksize: &MicroTick,
		},
		{
			PriceDenom:       "USDC",
			AssetDenom:       "ATOM",
			PriceTicksize:    &MilliTick,
			QuantityTicksize: &MilliTick,
		},
		{
			PriceDenom:       "USDC",
			AssetDenom:       "ATOM",
			PriceTicksize:    &WholeTick,
			QuantityTicksize: &WholeTick,
		},
	}
)
View Source
var AccountCorpus = append([]string{
	"invalid",
}, ValidAccountCorpus...)
View Source
var ContractCorpus = []string{
	"invalid",
	"fb14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sh9m79m",
	"fb1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqms7u8a",
}
View Source
var ValidAccountCorpus = []string{
	"fb1h9yjz89tl0dl6zu65dpxcqnxfhq60wxx8s5kag",
	"fb1c2q6xm0x684rshrnlg898zm3vpwz92pcfhgmws",
	"fb1ewxvf5a9wq9zk5nurtl6m9yfxpnhyp7s7uk5sl",
	"fb1lllgxa294pshcsrsrteh7sj6ey0zqgty30sl8a",
	"fb1vhn2p3xavts9swus27zz3n56tz98g3f6unavs2",
	"fb1jpkqjfydghgrc23chmnj52xln0muz09j5huhkt",
	"fb1k98zjg7scsmk6d4ye8hhrv3an6ppykvt660736",
	"fb1wxpqjzdmtjm6gwg6555n0a0aqglrvnp3pqh9hs",
	"fb1yuyyr3xg7jhk7pjkrp4j6h88t7gv35e29pfvmf",
	"fb1vjgdad5v2euf98nj3pwg5d8agflr384k0eks43",
}

Functions

func FuzzCoin

func FuzzCoin(denom string, isNil bool, i int64) sdk.Coin

func FuzzDec

func FuzzDec(i int64, isNil bool) sdk.Dec

func GetAccount

func GetAccount(i int) string

func GetAllocations

func GetAllocations(totalQuantity int64, accountIndices []byte, weights []byte) []*types.Allocation

func GetContract

func GetContract(i int) string

func GetOrderBookEntries

func GetOrderBookEntries(buy bool, priceDenom string, assetDenom string, entryWeights []byte, allAccountIndices []byte, allWeights []byte) []types.OrderBookEntry

func GetPair

func GetPair(i int) types.Pair

func GetPlacedOrders

func GetPlacedOrders(direction types.PositionDirection, orderType types.OrderType, pair types.Pair, prices []byte, quantities []byte) []*types.Order

func GetValidAccount

func GetValidAccount(i int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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