Documentation ¶
Index ¶
- func ComplexBlobTxWithOtherMsgs(t *testing.T, kr keyring.Keyring, enc sdk.TxEncoder, chainid, account string, ...) coretypes.Tx
- func CreateRawTx(txConfig client.TxConfig, msg sdk.Msg, signer *blobtypes.KeyringSigner, ...) []byte
- func GenerateManyRawSendTxs(txConfig client.TxConfig, count int) []coretypes.Tx
- func GenerateRawSendTx(txConfig client.TxConfig, signer *blobtypes.KeyringSigner, amount int64) (rawTx []byte)
- func ManyBlobs(t *testing.T, namespaces [][]byte, sizes []int) []*tmproto.Blob
- func ManyMultiBlobTx(t *testing.T, enc sdk.TxEncoder, kr keyring.Keyring, chainid string, ...) [][]byte
- func ManyMultiBlobTxSameSigner(t *testing.T, enc sdk.TxEncoder, signer *blobtypes.KeyringSigner, ...) []coretypes.Tx
- func ManyRandBlobs(t *testing.T, sizes ...int) []*tmproto.Blob
- func ManyRandBlobsIdenticallySized(t *testing.T, count, size int) []*tmproto.Blob
- func MultiBlobTx(t *testing.T, enc sdk.TxEncoder, signer *blobtypes.KeyringSigner, ...) coretypes.Tx
- func NestedBlobs(t *testing.T, nids [][]byte, sizes [][]int) [][]*tmproto.Blob
- func RandBlobTxs(enc sdk.TxEncoder, count, size int) []coretypes.Tx
- func RandBlobTxsRandomlySized(enc sdk.TxEncoder, count, maxSize, maxBlobs int) []coretypes.Tx
- func RandBlobTxsWithAccounts(enc sdk.TxEncoder, kr keyring.Keyring, conn *grpc.ClientConn, size int, ...) []coretypes.Tx
- func RandBlobTxsWithNamespaces(enc sdk.TxEncoder, nIds [][]byte, sizes []int) []coretypes.Tx
- func RandBlobTxsWithNamespacesAndSigner(enc sdk.TxEncoder, signer *blobtypes.KeyringSigner, nIds [][]byte, sizes []int) []coretypes.Tx
- func RandBlobsWithNamespace(namespaces [][]byte, sizes []int) []*tmproto.Blob
- func RandMsgPayForBlobs(size int) (*blobtypes.MsgPayForBlobs, *tmproto.Blob)
- func RandMsgPayForBlobsWithNamespaceAndSigner(signer string, nid []byte, size int) (*blobtypes.MsgPayForBlobs, *tmproto.Blob)
- func RandMsgPayForBlobsWithSigner(singer string, size, blobCount int) (*blobtypes.MsgPayForBlobs, []*tmproto.Blob)
- func Repeat[T any](s T, count int) []T
- type AccountInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRawTx ¶
func CreateRawTx(txConfig client.TxConfig, msg sdk.Msg, signer *blobtypes.KeyringSigner, opts ...blobtypes.TxBuilderOption) []byte
func GenerateManyRawSendTxs ¶
func GenerateRawSendTx ¶
func GenerateRawSendTx(txConfig client.TxConfig, signer *blobtypes.KeyringSigner, amount int64) (rawTx []byte)
GenerateRawSendTx creates send transactions meant to help test encoding/prepare/process proposal, they are not meant to actually be executed by the state machine. If we want that, we have to update nonce, and send funds to someone other than the same account signing the transaction.
func ManyMultiBlobTx ¶
func ManyMultiBlobTxSameSigner ¶
func ManyMultiBlobTxSameSigner( t *testing.T, enc sdk.TxEncoder, signer *blobtypes.KeyringSigner, blobSizes [][]int, sequence, accountNum uint64, ) []coretypes.Tx
ManyMultiBlobTxSameSigner generates and returns many blob transactions with the possibility to add more than one blob. The sequence and account number are manually set, and the sequence is manually incremented when doing so.
func MultiBlobTx ¶
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 RandBlobsWithNamespace ¶
func RandMsgPayForBlobs ¶
func RandMsgPayForBlobs(size int) (*blobtypes.MsgPayForBlobs, *tmproto.Blob)
Types ¶
type AccountInfo ¶
type AccountInfo struct {
AccountNum, Sequence uint64
}
func ExtractAccountInfo ¶
func ExtractAccountInfo(accs []authtypes.AccountI) []AccountInfo