blobfactory

package
v0.12.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComplexBlobTxWithOtherMsgs

func ComplexBlobTxWithOtherMsgs(t *testing.T, kr keyring.Keyring, enc sdk.TxEncoder, chainid, account string, msgs ...sdk.Msg) coretypes.Tx

func GenerateManyRawSendTxs

func GenerateManyRawSendTxs(txConfig client.TxConfig, count int) []coretypes.Tx

func ManyBlobs

func ManyBlobs(t *testing.T, namespaces [][]byte, sizes []int) []*tmproto.Blob

func ManyMultiBlobTx

func ManyMultiBlobTx(
	t *testing.T,
	enc sdk.TxEncoder,
	kr keyring.Keyring,
	chainid string,
	accounts []string,
	blobs [][]*tmproto.Blob,
) [][]byte

func ManyMultiBlobTxSameSigner

func ManyMultiBlobTxSameSigner(
	t *testing.T,
	enc sdk.TxEncoder,
	signer *blobtypes.KeyringSigner,
	blobSizes [][]int,
) []coretypes.Tx

ManyMultiBlobTxSameSigner generates and returns many blob transactions with the possibility to add more than one blob.

func ManyRandBlobs

func ManyRandBlobs(t *testing.T, sizes ...int) []*tmproto.Blob

func ManyRandBlobsIdenticallySized

func ManyRandBlobsIdenticallySized(t *testing.T, count, size int) []*tmproto.Blob

func MultiBlobTx

func MultiBlobTx(
	t *testing.T,
	enc sdk.TxEncoder,
	signer *blobtypes.KeyringSigner,
	blobs ...*tmproto.Blob,
) coretypes.Tx

func NestedBlobs

func NestedBlobs(t *testing.T, nids [][]byte, sizes [][]int) [][]*tmproto.Blob

func RandBlobTxs

func RandBlobTxs(enc sdk.TxEncoder, count, size int) []coretypes.Tx

func RandBlobTxsRandomlySized

func RandBlobTxsRandomlySized(enc sdk.TxEncoder, count, maxSize, maxBlobs int) []coretypes.Tx

func RandBlobTxsWithAccounts

func RandBlobTxsWithAccounts(
	enc sdk.TxEncoder,
	kr keyring.Keyring,
	conn *grpc.ClientConn,
	size int,
	blobCount int,
	randSize bool,
	chainid string,
	accounts []string,
) []coretypes.Tx

RandBlobTxsWithAccounts will create random blob transactions using the provided configuration. If no grpc connection is provided, then it will not update the account info. One blob transaction is generated per account provided.

func RandBlobTxsWithNamespaces

func RandBlobTxsWithNamespaces(enc sdk.TxEncoder, nIds [][]byte, sizes []int) []coretypes.Tx

func RandBlobTxsWithNamespacesAndSigner

func RandBlobTxsWithNamespacesAndSigner(
	enc sdk.TxEncoder,
	signer *blobtypes.KeyringSigner,
	nIds [][]byte,
	sizes []int,
) []coretypes.Tx

func RandBlobsWithNamespace

func RandBlobsWithNamespace(namespaces [][]byte, sizes []int) []*tmproto.Blob

func RandMsgPayForBlob

func RandMsgPayForBlob(size int) (*blobtypes.MsgPayForBlob, *tmproto.Blob)

func RandMsgPayForBlobWithNamespaceAndSigner

func RandMsgPayForBlobWithNamespaceAndSigner(signer string, nid []byte, size int) (*blobtypes.MsgPayForBlob, *tmproto.Blob)

func RandMsgPayForBlobWithSigner

func RandMsgPayForBlobWithSigner(singer string, size, blobCount int) (*blobtypes.MsgPayForBlob, []*tmproto.Blob)

func Repeat

func Repeat[T any](s T, count int) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL