Documentation ¶
Index ¶
- Variables
- func NewICAPath(chainA, chainB *ibctesting.TestChain, icaowner string) *ibctesting.Path
- func NewTransferPath(chainA, chainB *ibctesting.TestChain) *ibctesting.Path
- func RegisterInterchainAccount(endpoint *ibctesting.Endpoint, owner string) error
- func SetupTestingApp() (ibctesting.TestingApp, map[string]json.RawMessage)
- func SetupTransferPath(path *ibctesting.Path) error
- type IBCConnectionTestSuite
- func (suite *IBCConnectionTestSuite) ConfigureTransferChannel()
- func (suite *IBCConnectionTestSuite) GetNolusZoneApp(chain *ibctesting.TestChain) *app.App
- func (suite *IBCConnectionTestSuite) InstantiateTestContract(ctx sdk.Context, funder sdk.AccAddress, codeID uint64) sdk.AccAddress
- func (suite *IBCConnectionTestSuite) SetupICAPath(path *ibctesting.Path, owner string) error
- func (suite *IBCConnectionTestSuite) SetupTest()
- func (suite *IBCConnectionTestSuite) StoreTestCode(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 = "nolus1ghd753shjuwexxywmgs4xz7x2q732vcnkm6h2pyv9s6ah3hylvrq8welhp" TestInterchainID = "owner_id" Connection = "connection-1" // TestVersion defines a reusable interchainaccounts version string for testing purposes. TestVersion = string(icatypes.ModuleCdc.MustMarshalJSON(&icatypes.Metadata{ Version: icatypes.Version, ControllerConnectionId: Connection, HostConnectionId: Connection, Encoding: icatypes.EncodingProtobuf, TxType: icatypes.TxTypeSDKMultiMsg, })) )
Functions ¶
func NewICAPath ¶
func NewICAPath(chainA, chainB *ibctesting.TestChain, icaowner string) *ibctesting.Path
func NewTransferPath ¶
func NewTransferPath(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 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 TransferPath *ibctesting.Path }
func (*IBCConnectionTestSuite) ConfigureTransferChannel ¶
func (suite *IBCConnectionTestSuite) ConfigureTransferChannel()
func (*IBCConnectionTestSuite) GetNolusZoneApp ¶
func (suite *IBCConnectionTestSuite) GetNolusZoneApp(chain *ibctesting.TestChain) *app.App
func (*IBCConnectionTestSuite) InstantiateTestContract ¶
func (suite *IBCConnectionTestSuite) InstantiateTestContract(ctx sdk.Context, funder sdk.AccAddress, codeID uint64) sdk.AccAddress
func (*IBCConnectionTestSuite) SetupICAPath ¶
func (suite *IBCConnectionTestSuite) SetupICAPath(path *ibctesting.Path, owner string) error
SetupICAPath invokes the InterchainAccounts entrypoint and subsequent channel handshake handlers.
func (*IBCConnectionTestSuite) SetupTest ¶
func (suite *IBCConnectionTestSuite) SetupTest()
func (*IBCConnectionTestSuite) StoreTestCode ¶
func (suite *IBCConnectionTestSuite) StoreTestCode(ctx sdk.Context, addr sdk.AccAddress, path string) uint64
Directories ¶
Path | Synopsis |
---|---|
common
|
|
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. |
contractmanager
|
|
feerefunder
|
|
interchaintxs
|
|
contractmanager/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
cron/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
feeburner/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
feerefunder/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
interchaintxs/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
tax/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
transfer/types
Package mock_types is a generated GoMock package.
|
Package mock_types is a generated GoMock package. |
Package nullify provides methods to init nil values structs for test assertion.
|
Package nullify provides methods to init nil values structs for test assertion. |
transfer
|
|
Click to show internal directories.
Click to hide internal directories.