Documentation ¶
Index ¶
- Constants
- func CheckSubArray(txList []types.Tx, subTxList []types.Tx) bool
- func DelimLen(size uint64) int
- func GenerateAccounts(count int) []string
- func GenerateBlobsWithNamespace(count int, blobSize int, ns appns.Namespace) []types.Blob
- func GenerateRandNamespacedRawData(count int) (result [][]byte)
- func GenerateRandomBlob(dataSize int) *blob.Blob
- func GenerateRandomBlobOfShareCount(count int) *blob.Blob
- func GenerateRandomTxs(count, size int) types.Txs
- func GenerateRandomlySizedBlobs(count, maxBlobSize int) []*blob.Blob
- func GenerateRandomlySizedTxs(count, maxSize int) types.Txs
- func GetAddress(keys keyring.Keyring, account string) sdk.AccAddress
- func GetAddresses(keys keyring.Keyring) []sdk.AccAddress
- func GetRandomSubSlice(size int) (start int, length int)
- func RandomAccountNames(count int) []string
- func RandomEVMAddress() gethcommon.Address
- func Repeat[T any](s T, count int) []T
- func TestKeyring(cdc codec.Codec, accounts ...string) keyring.Keyring
Constants ¶
View Source
const ( // nolint:lll TestAccName = "test-account" TestAccAddr = "celestia1g39egf59z8tud3lcyjg5a83m20df4kccx32qkp" TestAccMnemo = `` /* 162-byte string literal not displayed */ ChainID = "test-app" )
Variables ¶
This section is empty.
Functions ¶
func CheckSubArray ¶
CheckSubArray returns whether subTxList is a subarray of txList
func GenerateAccounts ¶
func GenerateBlobsWithNamespace ¶
GenerateBlobsWithNamespace generates blobs with namespace ns.
func GenerateRandNamespacedRawData ¶
GenerateRandNamespacedRawData returns random data of length count. Each chunk of random data is of size shareSize and is prefixed with a random blob namespace.
func GenerateRandomBlob ¶
func GenerateRandomBlobOfShareCount ¶
GenerateRandomBlobOfShareCount returns a blob that spans the given number of shares
func GenerateRandomTxs ¶
func GetAddress ¶
func GetAddress(keys keyring.Keyring, account string) sdk.AccAddress
func GetAddresses ¶ added in v1.14.0
func GetAddresses(keys keyring.Keyring) []sdk.AccAddress
func GetRandomSubSlice ¶
GetRandomSubSlice returns two integers representing a randomly sized range in the interval [0, size]
func RandomAccountNames ¶
func RandomEVMAddress ¶
func RandomEVMAddress() gethcommon.Address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.