setup

package
v6.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ATOM          = "ATOM"
	ATOMBaseDenom = "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2"
	ATOMExponent  = 6
	PhotonDenom   = "photon"
)
View Source
const (
	PriceFeederContainerRepo  = "ghcr.io/ojo-network/price-feeder-umee-47"
	PriceFeederServerPort     = "7171/tcp"
	PriceFeederMaxStartupTime = 20 // seconds
)
View Source
const GaiaChainID = "test-gaia-chain"

Variables

This section is empty.

Functions

This section is empty.

Types

type E2ETestSuite

type E2ETestSuite struct {
	suite.Suite

	Chain *chain

	DkrPool        *dockertest.Pool
	DkrNet         *dockertest.Network
	GaiaResource   *dockertest.Resource
	HermesResource *dockertest.Resource

	ValResources []*dockertest.Resource

	MinNetwork bool // MinNetwork defines which runs only validator wihtout price-feeder, gaia and ibc-relayer
	// contains filtered or unexported fields
}

func (*E2ETestSuite) AccountAddr added in v6.1.0

func (s *E2ETestSuite) AccountAddr(index int) sdk.AccAddress

AccountAddr returns the address associated with the a (non-validator) test account at the given index, panicking if the account does not exist.

func (*E2ETestSuite) AccountClient added in v6.1.0

func (s *E2ETestSuite) AccountClient(index int) client.Client

AccountClient returns the client associated with the a (non-validator) test account at the given index, panicking if the account does not exist.

func (*E2ETestSuite) BroadcastTxWithRetry

func (s *E2ETestSuite) BroadcastTxWithRetry(msg sdk.Msg, cli client.Client) error

func (*E2ETestSuite) Delegate added in v6.1.0

func (s *E2ETestSuite) Delegate(testAccount, valIndex int, amount uint64) error

Delegates an amount of uumee from the test account at a given index to a specified validator.

func (*E2ETestSuite) GaiaREST

func (s *E2ETestSuite) GaiaREST() string

func (*E2ETestSuite) QueryExchangeRate

func (s *E2ETestSuite) QueryExchangeRate(endpoint, denom string) (sdk.DecCoins, error)

func (*E2ETestSuite) QueryHistAvgPrice

func (s *E2ETestSuite) QueryHistAvgPrice(endpoint, denom string) (sdk.Dec, error)

func (*E2ETestSuite) QueryIBCChannels added in v6.2.0

func (s *E2ETestSuite) QueryIBCChannels(endpoint string) (bool, error)

func (*E2ETestSuite) QueryLeverageAccountBalances added in v6.4.0

func (s *E2ETestSuite) QueryLeverageAccountBalances(endpoint, addr string) (leveragetypes.QueryAccountBalancesResponse,
	error)

func (*E2ETestSuite) QueryOutflows

func (s *E2ETestSuite) QueryOutflows(endpoint, denom string) (sdk.Dec, error)

func (*E2ETestSuite) QueryREST

func (s *E2ETestSuite) QueryREST(endpoint string, valPtr interface{}) error

QueryREST make http query to grpc-web endpoint and tries to decode valPtr using proto-JSON decoder if valPtr implements proto.Message. Otherwise standard JSON decoder is used. valPtr must be a pointer.

func (*E2ETestSuite) QueryRegisteredTokens added in v6.1.0

func (s *E2ETestSuite) QueryRegisteredTokens(endpoint string) ([]leveragetypes.Token, error)

func (*E2ETestSuite) QueryTotalSupply

func (s *E2ETestSuite) QueryTotalSupply(endpoint string) (sdk.Coins, error)

func (*E2ETestSuite) QueryUmeeAllBalances

func (s *E2ETestSuite) QueryUmeeAllBalances(endpoint, addr string) (sdk.Coins, error)

func (*E2ETestSuite) QueryUmeeBalance

func (s *E2ETestSuite) QueryUmeeBalance(
	umeeValIdx int,
	umeeTokenDenom string,
) (umeeBalance sdk.Coin, umeeAddr string)

func (*E2ETestSuite) QueryUmeeDenomBalance

func (s *E2ETestSuite) QueryUmeeDenomBalance(endpoint, addr, denom string) (sdk.Coin, error)

func (*E2ETestSuite) QueryUmeeTx

func (s *E2ETestSuite) QueryUmeeTx(endpoint, txHash string) error

func (*E2ETestSuite) SendIBC

func (s *E2ETestSuite) SendIBC(srcChainID, dstChainID, recipient string, token sdk.Coin,
	desc, memo, expectedErr string)

func (*E2ETestSuite) SetupSuite

func (s *E2ETestSuite) SetupSuite()

func (*E2ETestSuite) TearDownSuite

func (s *E2ETestSuite) TearDownSuite()

func (*E2ETestSuite) UmeeREST

func (s *E2ETestSuite) UmeeREST() string

Jump to

Keyboard shortcuts

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