Documentation ¶
Index ¶
- Constants
- func CheckSubArray(txList []types.Tx, subTxList []types.Tx) bool
- func DelimLen(size uint64) int
- func FundKeyringAccounts(accounts ...string) (keyring.Keyring, []banktypes.Balance, []authtypes.GenesisAccount)
- func GenerateAccounts(count int) []string
- func GenerateBlobsWithNamespace(count int, blobSize int, ns appns.Namespace) []types.Blob
- func GenerateKeyring(accounts ...string) keyring.Keyring
- func GenerateRandNamespacedRawData(count int) (result [][]byte)
- func GenerateRandomBlob(dataSize int) types.Blob
- func GenerateRandomBlobOfShareCount(count int) types.Blob
- func GenerateRandomTxs(count, size int) types.Txs
- func GenerateRandomlySizedBlobs(count, maxBlobSize int) []types.Blob
- func GenerateRandomlySizedTxs(count, maxSize int) types.Txs
- func GetAddress(keys keyring.Keyring, account string) sdk.AccAddress
- func GetRandomSubSlice(size int) (start int, length int)
- func QueryWithoutProof(clientCtx client.Context, hashHexStr string) (*rpctypes.ResultTx, error)
- func RandomAccountNames(count int) []string
- func RandomAddress() sdk.Address
- func RandomEVMAddress() gethcommon.Address
- func Repeat[T any](s T, count int) []T
- func SortBlobs(blobs []types.Blob) []types.Blob
Constants ¶
View Source
const ( // nolint:lll TestAccName = "test-account" TestAccMnemo = `` /* 162-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func CheckSubArray ¶
CheckSubArray returns whether subTxList is a subarray of txList
func FundKeyringAccounts ¶
func GenerateAccounts ¶
func GenerateBlobsWithNamespace ¶
GenerateBlobsWithNamespace generates blobs with namespace ns.
func GenerateKeyring ¶
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 GetRandomSubSlice ¶
GetRandomSubSlice returns two integers representing a randomly sized range in the interval [0, size]
func QueryWithoutProof ¶
func RandomAccountNames ¶
func RandomAddress ¶
func RandomEVMAddress ¶
func RandomEVMAddress() gethcommon.Address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.