Documentation
¶
Index ¶
- Variables
- func NewICAPath(chainA, chainB *ibctesting.TestChain) *ibctesting.Path
- func RegisterInterchainAccount(endpoint *ibctesting.Endpoint, owner string) error
- func SetupICAPath(path *ibctesting.Path, owner string) error
- func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)
- type IBCConnectionTestSuite
- func (suite *IBCConnectionTestSuite) GetNeutronZoneApp(chain *ibctesting.TestChain) *app.App
- func (suite *IBCConnectionTestSuite) InstantiateReflectContract(ctx sdk.Context, funder sdk.AccAddress, codeID uint64) sdk.AccAddress
- func (suite *IBCConnectionTestSuite) SetupTest()
- func (suite *IBCConnectionTestSuite) StoreReflectCode(ctx sdk.Context, addr sdk.AccAddress, path string) uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestOwnerAddress defines a reusable bech32 address for testing purposes TestOwnerAddress = "neutron17dtl0mjt3t77kpuhg2edqzjpszulwhgzcdvagh" TestInterchainID = "owner_id" // TestVersion defines a reusable interchainaccounts version string for testing purposes TestVersion = string(icatypes.ModuleCdc.MustMarshalJSON(&icatypes.Metadata{ Version: icatypes.Version, ControllerConnectionId: ibctesting.FirstConnectionID, HostConnectionId: ibctesting.FirstConnectionID, Encoding: icatypes.EncodingProtobuf, TxType: icatypes.TxTypeSDKMultiMsg, })) )
Functions ¶
func NewICAPath ¶
func NewICAPath(chainA, chainB *ibctesting.TestChain) *ibctesting.Path
func RegisterInterchainAccount ¶
func RegisterInterchainAccount(endpoint *ibctesting.Endpoint, owner string) error
RegisterInterchainAccount is a helper function for starting the channel handshake
func SetupICAPath ¶
func SetupICAPath(path *ibctesting.Path, owner string) error
SetupICAPath invokes the InterchainAccounts entrypoint and subsequent channel handshake handlers
func SetupTestingApp ¶
func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)
SetupTestingApp initializes the IBC-go testing application
Types ¶
type IBCConnectionTestSuite ¶
type IBCConnectionTestSuite struct { suite.Suite Coordinator *ibctesting.Coordinator // testing chains used for convenience and readability ChainA *ibctesting.TestChain ChainB *ibctesting.TestChain Path *ibctesting.Path }
func (*IBCConnectionTestSuite) GetNeutronZoneApp ¶
func (suite *IBCConnectionTestSuite) GetNeutronZoneApp(chain *ibctesting.TestChain) *app.App
func (*IBCConnectionTestSuite) InstantiateReflectContract ¶
func (suite *IBCConnectionTestSuite) InstantiateReflectContract(ctx sdk.Context, funder sdk.AccAddress, codeID uint64) sdk.AccAddress
func (*IBCConnectionTestSuite) SetupTest ¶
func (suite *IBCConnectionTestSuite) SetupTest()
func (*IBCConnectionTestSuite) StoreReflectCode ¶
func (suite *IBCConnectionTestSuite) StoreReflectCode(ctx sdk.Context, addr sdk.AccAddress, path string) uint64
Directories
¶
Path | Synopsis |
---|---|
contractmanager
|
|
nullify
Package nullify provides methods to init nil values structs for test assertion.
|
Package nullify provides methods to init nil values structs for test assertion. |
interchainqueries
|
|
nullify
Package nullify provides methods to init nil values structs for test assertion.
|
Package nullify provides methods to init nil values structs for test assertion. |
interchaintxs
|
|
nullify
Package nullify provides methods to init nil values structs for test assertion.
|
Package nullify provides methods to init nil values structs for test assertion. |
Click to show internal directories.
Click to hide internal directories.