Documentation
¶
Index ¶
- func CreateBlockWithTxs(tx types.ResponseDeliverTx, txData []byte, count int) (types.BlockData, time.Time)
- func CreateTestBlock(tx types.ResponseDeliverTx, withTxs bool) (types.BlockData, time.Time)
- func EmptyBlock() (types.BlockData, time.Time)
- func MustHexDecode(s string) []byte
- func Ptr[T any](t T) *T
- func RandomAddress() string
- func RandomHash(length int) []byte
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 RandomHash ¶
RandomHash - returns random hash with fixed size
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.