testsuite

package
v0.0.0-...-133f676 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

type ChannelEndpoint struct {
	PortID    string `json:"port_id"`
	ChannelID string `json:"channel_id"`
}

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

func (s *TestSuite) FundAddressChainA(ctx context.Context, address string)

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

func (s *TestSuite) FundAddressChainB(ctx context.Context, address string)

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

Jump to

Keyboard shortcuts

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