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 share.Namespace) []*share.Blob
- func GenerateRandNamespacedRawData(count int) (result [][]byte)
- func GenerateRandomBlob(dataSize int) *share.Blob
- func GenerateRandomBlobOfShareCount(count int) *share.Blob
- func GenerateRandomTxs(count, size int) types.Txs
- func GenerateRandomlySizedBlobs(count, maxBlobSize int) []*share.Blob
- func GenerateRandomlySizedTxs(count, maxSize int) types.Txs
- func GetAccountNames(keys keyring.Keyring) []string
- 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 RandomBlobNamespace() share.Namespace
- func RandomBlobNamespaceIDWithPRG(prg *tmrand.Rand) []byte
- func RandomBlobNamespaceWithPRG(prg *tmrand.Rand) share.Namespace
- func RandomBlobNamespaces(rand *tmrand.Rand, count int) (namespaces []share.Namespace)
- func RandomEVMAddress() gethcommon.Address
- func Repeat[T any](s T, count int) []T
- func TestKeyring(cdc codec.Codec, accounts ...string) keyring.Keyring
Constants ¶
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 share.
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 GetAccountNames ¶
func GetAddress ¶
func GetAddress(keys keyring.Keyring, account string) sdk.AccAddress
func GetAddresses ¶
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 RandomBlobNamespace ¶
func RandomBlobNamespaceIDWithPRG ¶
RandomBlobNamespaceIDWithPRG returns a random blob namespace ID using the supplied Pseudo-Random number Generator (PRG).
func RandomBlobNamespaceWithPRG ¶
RandomBlobNamespaceWithPRG generates and returns a random blob namespace using the supplied Pseudo-Random number Generator (PRG).
func RandomBlobNamespaces ¶
func RandomEVMAddress ¶
func RandomEVMAddress() gethcommon.Address
Types ¶
This section is empty.