Documentation
¶
Index ¶
- func CreateBlockWithTxs(tx types.ResponseDeliverTx, txData []byte, count int) (types.BlockData, time.Time)
- func CreateTestBlock(tx types.ResponseDeliverTx, count int) (types.BlockData, time.Time)
- func EmptyBlock() (types.BlockData, time.Time)
- func MustHexDecode(s string) []byte
- func Ptr[T any](t T) *T
- func RandomDecimal() decimal.Decimal
- func RandomText(n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlockWithTxs ¶
func CreateTestBlock ¶
func MustHexDecode ¶
MustHexDecode - returns decoded hex string, if it can't decode throws panic
data := MustHexDecode("deadbeaf")
func Ptr ¶
func Ptr[T any](t T) *T
Ptr - returns pointer of value for testing purpose
one := Ptr(1) // one is pointer to int
func RandomDecimal ¶ added in v1.10.17
RandomDecimal - returns random decimal value
data := RandomDecimal()
func RandomText ¶ added in v1.10.17
RandomText - generates random string with fixed size
data := RandomText(10)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.