Documentation
¶
Index ¶
- func AllPubKeys(ctx context.Context, chain *cosmos.CosmosChain) (*treetypes.QueryAllPubKeysResponse, error)
- func GetChannelFromState(ctx context.Context, chain *cosmos.CosmosChain, outpostAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
- func GetContractInfo(ctx context.Context, chain *cosmos.CosmosChain, contractAddress string) (*wasmtypes.QueryContractInfoResponse, error)
- func GetContractState(ctx context.Context, chain *cosmos.CosmosChain, contractAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
- func GetFactoryMap(ctx context.Context, chain *cosmos.CosmosChain, factoryContractAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
- func GetMigrationData(ctx context.Context, chain *cosmos.CosmosChain, outpostAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
- func GetNote(ctx context.Context, chain *cosmos.CosmosChain, ...) (*wasmtypes.QuerySmartContractStateResponse, error)
- func GetOutpostAddressFromFactoryMap(ctx context.Context, chain *cosmos.CosmosChain, factoryContractAddress string, ...) (*wasmtypes.QuerySmartContractStateResponse, error)
- func GetOutpostOwner(ctx context.Context, chain *cosmos.CosmosChain, factoryContractAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
- func PubKey(ctx context.Context, chain *cosmos.CosmosChain, address string) (*treetypes.QueryPubKeyResponse, error)
- type Channel
- type ChannelEndpoint
- type ChannelStatusResponse
- type TestSuite
- func (s *TestSuite) CreateChannelWithOverride(ctx context.Context, srcPort, dstPort string, order ibc.Order, version string)
- func (s *TestSuite) FundAddressChainA(ctx context.Context, address string)
- func (s *TestSuite) FundAddressChainB(ctx context.Context, address string)
- func (s *TestSuite) SetupSuite(ctx context.Context, chainSpecs []*interchaintest.ChainSpec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllPubKeys ¶
func AllPubKeys(ctx context.Context, chain *cosmos.CosmosChain) (*treetypes.QueryAllPubKeysResponse, error)
func GetChannelFromState ¶
func GetChannelFromState(ctx context.Context, chain *cosmos.CosmosChain, outpostAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
func GetContractInfo ¶
func GetContractInfo(ctx context.Context, chain *cosmos.CosmosChain, contractAddress string) (*wasmtypes.QueryContractInfoResponse, error)
func GetContractState ¶
func GetContractState(ctx context.Context, chain *cosmos.CosmosChain, contractAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
Query for internal contract state
func GetFactoryMap ¶
func GetFactoryMap(ctx context.Context, chain *cosmos.CosmosChain, factoryContractAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
Get the entire factory map
func GetMigrationData ¶
func GetMigrationData(ctx context.Context, chain *cosmos.CosmosChain, outpostAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
func GetNote ¶
func GetNote(ctx context.Context, chain *cosmos.CosmosChain, userAddress, outpostUserAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
func GetOutpostAddressFromFactoryMap ¶
func GetOutpostAddressFromFactoryMap(ctx context.Context, chain *cosmos.CosmosChain, factoryContractAddress string, userAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
TODO: If we have these functions, consider deleting e2e/interchaintest/types/outpostfactory/query.go?
func GetOutpostOwner ¶
func GetOutpostOwner(ctx context.Context, chain *cosmos.CosmosChain, factoryContractAddress string) (*wasmtypes.QuerySmartContractStateResponse, error)
func PubKey ¶
func PubKey(ctx context.Context, chain *cosmos.CosmosChain, address string) (*treetypes.QueryPubKeyResponse, error)
Types ¶
type Channel ¶
type Channel struct { Endpoint ChannelEndpoint `json:"endpoint"` CounterpartyEndpoint ChannelEndpoint `json:"counterparty_endpoint"` Order string `json:"order"` Version string `json:"version"` ConnectionID string `json:"connection_id"` }
Struct for channel details
type ChannelEndpoint ¶
Struct for channel endpoint
type ChannelStatusResponse ¶
type ChannelStatusResponse struct { Channel Channel `json:"channel"` ChannelStatus string `json:"channel_status"` }
Struct for the full response
type TestSuite ¶
type TestSuite struct { suite.Suite ChainA *cosmos.CosmosChain ChainB *cosmos.CosmosChain ChainAFaucet ibc.Wallet UserA ibc.Wallet UserA2 ibc.Wallet UserA3 ibc.Wallet UserB ibc.Wallet ChainAConnID string ChainBConnID string Relayer ibc.Relayer ExecRep *testreporter.RelayerExecReporter PathName string // contains filtered or unexported fields }
func (*TestSuite) CreateChannelWithOverride ¶
func (s *TestSuite) CreateChannelWithOverride(ctx context.Context, srcPort, dstPort string, order ibc.Order, version string)
createChannelWithOverride creates a channel between the two chains with the given port and channel identifiers with the override flag so that the channel is created even if it already exists.
func (*TestSuite) FundAddressChainA ¶
FundAddressChainA sends funds to the given address on chain A. The amount sent is 1,000,000,000 of the chain's denom.
func (*TestSuite) FundAddressChainB ¶
FundAddressChainB sends funds to the given address on chain B. The amount sent is 1,000,000,000 of the chain's denom.
func (*TestSuite) SetupSuite ¶
func (s *TestSuite) SetupSuite(ctx context.Context, chainSpecs []*interchaintest.ChainSpec)
SetupSuite sets up the chains, relayer, user accounts, clients, and connections