interchaintest

package module
v0.0.0-...-c31adb0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 12 Imported by: 0

README

Neutaro interchaintest

These tests were seeded primarily by copying and modifying the excellent test suite they have at Juno: https://github.com/CosmosContracts/juno/tree/main/interchaintest (version used: https://github.com/CosmosContracts/juno/tree/e98863bf7112f4b117a2114e22f7482367362764/interchaintest) That includes (for now) the contracts in the contracts folder as well.

The tests can be run like any go test, with a few requirements:

  • Docker
  • neutaro:local built (docker build -t neutaro:local . at root of the repo)

The upgrade test currently also requires a docker image of the old version of Neutaro. You can find and build it here: https://github.com/gjermundgaraba/Neutaro/tree/old-build (The image should be named neutaro:v1.0.0)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VotingPeriod     = "15s"
	MaxDepositPeriod = "10s"
	Denom            = "uneutaro"

	IBCRelayerImage   = "ghcr.io/cosmos/relayer"
	IBCRelayerVersion = "main"

	// Just using local here (build with docker build -t neutaro:local .)
	NeutaroImage = ibc.DockerImage{
		Repository: "neutaro",
		Version:    "local",
		UidGid:     "1025:1025",
	}
)

Functions

func BuildInitialChain

func BuildInitialChain(t *testing.T, chains []ibc.Chain) (*interchaintest.Interchain, context.Context, *client.Client, string)

func CreateChain

func CreateChain(t *testing.T, numVals, numFull int, img ibc.DockerImage) []ibc.Chain

CreateChain generates a new chain with a custom image (useful for upgrades)

func CreateChainWithCustomConfig

func CreateChainWithCustomConfig(t *testing.T, numVals, numFull int, config ibc.ChainConfig) []ibc.Chain

func CreateThisBranchChain

func CreateThisBranchChain(t *testing.T, numVals, numFull int) []ibc.Chain

CreateThisBranchChain generates this branch's chain (ex: from the commit)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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