Documentation ¶
Index ¶
- func SetupTestingApp(t *testing.T) (ibctesting.TestingApp, map[string]json.RawMessage)
- func SignAndDeliver(txCfg client.TxConfig, app *baseapp.BaseApp, msgs []sdk.Msg, chainID string, ...) (*abci.ResponseFinalizeBlock, error)
- type ICS4WrapperMock
- func (m *ICS4WrapperMock) GetAppVersion(_ sdk.Context, _, _ string) (string, bool)
- func (m *ICS4WrapperMock) SendPacket(_ sdk.Context, _ *capabilitytypes.Capability, _ string, _ string, ...) (sequence uint64, err error)
- func (m *ICS4WrapperMock) WriteAcknowledgement(_ sdk.Context, _ *capabilitytypes.Capability, _ exported.PacketI, ...) error
- type TestChain
- func (chain *TestChain) GetProvenanceApp() *provenanceapp.App
- func (chain *TestChain) InstantiateContract(suite *suite.Suite, msg string, codeID uint64) sdk.AccAddress
- func (chain *TestChain) PinContract(suite *suite.Suite, codeID uint64)
- func (chain *TestChain) QueryContract(suite *suite.Suite, contract sdk.AccAddress, key []byte) string
- func (chain *TestChain) RegisterRateLimiterContract(suite *suite.Suite, addr []byte)
- func (chain *TestChain) SendMsgsNoCheck(suite *suite.Suite, msgs ...sdk.Msg) (*abci.ExecTxResult, error)
- func (chain *TestChain) StoreContractCounterDirect(suite *suite.Suite) uint64
- func (chain *TestChain) StoreContractEchoDirect(suite *suite.Suite) uint64
- func (chain *TestChain) StoreContractRateLimiterDirect(suite *suite.Suite) uint64
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 (*ICS4WrapperMock) SendPacket ¶
func (m *ICS4WrapperMock) SendPacket( _ sdk.Context, _ *capabilitytypes.Capability, _ string, _ string, _ ibcclienttypes.Height, _ uint64, _ []byte, ) (sequence uint64, err error)
func (*ICS4WrapperMock) WriteAcknowledgement ¶
func (m *ICS4WrapperMock) WriteAcknowledgement( _ sdk.Context, _ *capabilitytypes.Capability, _ exported.PacketI, _ exported.Acknowledgement, ) error
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 (*TestChain) PinContract ¶ added in v1.18.0
func (*TestChain) QueryContract ¶
func (*TestChain) RegisterRateLimiterContract ¶ added in v1.18.0
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 (*TestChain) StoreContractEchoDirect ¶
Click to show internal directories.
Click to hide internal directories.