bitsongibctesting

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SimAppChainID = "simulation-app"

Variables

View Source
var TestingDirectories []string

Functions

func SetupTestingApp

func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)

func SignAndDeliver

func SignAndDeliver(
	tb testing.TB,
	txCfg client.TxConfig,
	app *baseapp.BaseApp,
	msgs []sdk.Msg,
	chainID string,
	accNums, accSeqs []uint64,
	blockTime time.Time,
	nextValHash []byte,
	priv ...cryptotypes.PrivKey,
) (*abci.ResponseFinalizeBlock, error)

SignAndDeliver signs and delivers a transaction without asserting the results. This overrides the function from ibctesting

func SignAndDeliverWithAuthenticator

func SignAndDeliverWithAuthenticator(
	ctx sdk.Context,
	txCfg client.TxConfig,
	app *baseapp.BaseApp,
	header cmtproto.Header,
	msgs []sdk.Msg,
	chainID string,
	accNums,
	accSeqs []uint64,
	blockTime time.Time,
	nextValHash []byte,
	signers, signatures []cryptotypes.PrivKey,
	selectedAuthenticators []uint64,
) (*abci.ResponseFinalizeBlock, error)

SignAndDeliver signs and delivers a transaction without asserting the results. This overrides the function from ibctesting

func SignAndDeliverWithAuthenticatorAndCompoundSigs

func SignAndDeliverWithAuthenticatorAndCompoundSigs(
	ctx sdk.Context,
	txCfg client.TxConfig,
	app *baseapp.BaseApp,
	header cmtproto.Header,
	msgs []sdk.Msg,
	chainID string,
	accNums, accSeqs []uint64,
	blockTime time.Time,
	nextValHash []byte,
	signers []cryptotypes.PrivKey,
	signatures [][]cryptotypes.PrivKey,
	selectedAuthenticators []uint64,
) (*abci.ResponseFinalizeBlock, error)

func SignAuthenticatorMsg

func SignAuthenticatorMsg(
	ctx sdk.Context,
	gen client.TxConfig,
	msgs []sdk.Msg,
	feeAmt sdk.Coins,
	gas uint64,
	chainID string,
	accNums, accSeqs []uint64,
	signers, signatures []cryptotypes.PrivKey,
	selectedAuthenticators []uint64,
) (sdk.Tx, error)

GenTx generates a signed mock transaction.

func SignAuthenticatorMsgWithCompoundSigs

func SignAuthenticatorMsgWithCompoundSigs(
	ctx sdk.Context,
	gen client.TxConfig,
	msgs []sdk.Msg,
	feeAmt sdk.Coins,
	gas uint64,
	chainID string,
	accNums, accSeqs []uint64,
	signers []cryptotypes.PrivKey,
	signatures [][]cryptotypes.PrivKey,
	selectedAuthenticators []uint64,
) (sdk.Tx, error)

SignAuthenticatorMsgWithCompoundSigs generates a transaction signed with compound signatures.

Types

type TestChain

type TestChain struct {
	*ibctesting.TestChain
}

func (*TestChain) GetBitsongApp

func (chain *TestChain) GetBitsongApp() *app.BitsongApp

GetBitsongApp returns the current chain's app as an BitsongApp

func (*TestChain) SendMsgsFromPrivKeys

func (chain *TestChain) SendMsgsFromPrivKeys(privKeys []cryptotypes.PrivKey, msgs ...sdk.Msg) (*abci.ExecTxResult, error)

SendMsgsNoCheck is an alternative to ibctesting.TestChain.SendMsgs so that it doesn't check for errors. That should be handled by the caller

func (*TestChain) SendMsgsFromPrivKeysWithAuthenticator

func (chain *TestChain) SendMsgsFromPrivKeysWithAuthenticator(
	signers, signatures []cryptotypes.PrivKey,
	selectedAuthenticators []uint64,
	msgs ...sdk.Msg,
) (*abci.ExecTxResult, error)

SendMsgsNoCheck is an alternative to ibctesting.TestChain.SendMsgs so that it doesn't check for errors. That should be handled by the caller

func (*TestChain) SendMsgsFromPrivKeysWithAuthenticatorAndCompoundSigs

func (chain *TestChain) SendMsgsFromPrivKeysWithAuthenticatorAndCompoundSigs(
	signers []cryptotypes.PrivKey,
	signatures [][]cryptotypes.PrivKey,
	selectedAuthenticators []uint64,
	msgs ...sdk.Msg,
) (*abci.ExecTxResult, error)

func (*TestChain) SendMsgsNoCheck

func (chain *TestChain) SendMsgsNoCheck(msgs ...sdk.Msg) (*abci.ExecTxResult, error)

SendMsgsNoCheck is an alternative to ibctesting.TestChain.SendMsgs so that it doesn't check for errors. That should be handled by the caller

Jump to

Keyboard shortcuts

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