Documentation ¶
Index ¶
- Constants
- Variables
- func FuzzCoin(denom string, isNil bool, i int64) sdk.Coin
- func FuzzDec(i int64, isNil bool) sdk.Dec
- func GetAccount(i int) string
- func GetAllocations(totalQuantity int64, accountIndices []byte, weights []byte) []*types.Allocation
- func GetContract(i int) string
- func GetOrderBookEntries(buy bool, priceDenom string, assetDenom string, entryWeights []byte, ...) []types.OrderBookEntry
- func GetPair(i int) types.Pair
- func GetPlacedOrders(direction types.PositionDirection, orderType types.OrderType, pair types.Pair, ...) []*types.Order
- func GetValidAccount(i int) string
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 GetAccount ¶
func GetAllocations ¶
func GetAllocations(totalQuantity int64, accountIndices []byte, weights []byte) []*types.Allocation
func GetContract ¶
func GetOrderBookEntries ¶
func GetPlacedOrders ¶
func GetValidAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.