fuzzing

package
v0.0.29-fix Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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",
	"sei14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sh9m79m",
	"sei1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrqms7u8a",
}
View Source
var ValidAccountCorpus = []string{
	"sei1h9yjz89tl0dl6zu65dpxcqnxfhq60wxx8s5kag",
	"sei1c2q6xm0x684rshrnlg898zm3vpwz92pcfhgmws",
	"sei1ewxvf5a9wq9zk5nurtl6m9yfxpnhyp7s7uk5sl",
	"sei1lllgxa294pshcsrsrteh7sj6ey0zqgty30sl8a",
	"sei1vhn2p3xavts9swus27zz3n56tz98g3f6unavs2",
	"sei1jpkqjfydghgrc23chmnj52xln0muz09j5huhkt",
	"sei1k98zjg7scsmk6d4ye8hhrv3an6ppykvt660736",
	"sei1wxpqjzdmtjm6gwg6555n0a0aqglrvnp3pqh9hs",
	"sei1yuyyr3xg7jhk7pjkrp4j6h88t7gv35e29pfvmf",
	"sei1vjgdad5v2euf98nj3pwg5d8agflr384k0eks43",
}

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