ibc

package
v1.19.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTestingApp

func SetupTestingApp(t *testing.T) (ibctesting.TestingApp, map[string]json.RawMessage)

func SignAndDeliver

func SignAndDeliver(
	txCfg client.TxConfig, app *baseapp.BaseApp, msgs []sdk.Msg,
	chainID string, accNums, accSeqs []uint64, _ bool, 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

Types

type ICS4WrapperMock

type ICS4WrapperMock struct{}

func (*ICS4WrapperMock) GetAppVersion

func (m *ICS4WrapperMock) GetAppVersion(
	_ sdk.Context,
	_,
	_ string,
) (string, bool)

func (*ICS4WrapperMock) SendPacket

func (m *ICS4WrapperMock) SendPacket(
	_ sdk.Context,
	_ *capabilitytypes.Capability,
	_ string,
	_ string,
	_ ibcclienttypes.Height,
	_ uint64,
	_ []byte,
) (sequence uint64, err error)

func (*ICS4WrapperMock) WriteAcknowledgement

type TestChain

type TestChain struct {
	*ibctesting.TestChain
}

func (*TestChain) GetProvenanceApp

func (chain *TestChain) GetProvenanceApp() *provenanceapp.App

GetProvenanceApp returns the current chain's app as an ProvenanceApp

func (*TestChain) InstantiateContract

func (chain *TestChain) InstantiateContract(suite *suite.Suite, msg string, codeID uint64) sdk.AccAddress

func (*TestChain) PinContract added in v1.18.0

func (chain *TestChain) PinContract(suite *suite.Suite, codeID uint64)

func (*TestChain) QueryContract

func (chain *TestChain) QueryContract(suite *suite.Suite, contract sdk.AccAddress, key []byte) string

func (*TestChain) RegisterRateLimiterContract added in v1.18.0

func (chain *TestChain) RegisterRateLimiterContract(suite *suite.Suite, addr []byte)

func (*TestChain) SendMsgsNoCheck

func (chain *TestChain) SendMsgsNoCheck(suite *suite.Suite, 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) StoreContractCounterDirect

func (chain *TestChain) StoreContractCounterDirect(suite *suite.Suite) uint64

func (*TestChain) StoreContractEchoDirect

func (chain *TestChain) StoreContractEchoDirect(suite *suite.Suite) uint64

func (*TestChain) StoreContractRateLimiterDirect added in v1.18.0

func (chain *TestChain) StoreContractRateLimiterDirect(suite *suite.Suite) uint64

Jump to

Keyboard shortcuts

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