Versions in this module Expand all Collapse all v6 v6.0.0 Dec 6, 2023 Changes in this version + const Ss58Format + var DEV_SEED = hex.DecodeString("fac7959dbfe72f052e5a0c3c8d6530f202b02fd8f9f5ca3580ec8deb7797479e") + var IndexedName = []string + var IndexedUri = []string + var RtyAtt = retry.Attempts(10) + var RtyDel = retry.Delay(time.Second * 2) + var RtyErr = retry.LastErrorOnly(true) + func BytesToHex(b []byte) string + func CreateSignSubmitExt(api *gsrpc.SubstrateAPI, meta *gstypes.Metadata, ...) (gstypes.Hash, error) + func DecodeAddressSS58(address string) ([]byte, error) + func DeriveEd25519FromName(name string) (*p2pCrypto.Ed25519PrivateKey, error) + func DeriveSecp256k1FromName(name string) (*secp256k1.PrivateKey, error) + func DeriveSr25519FromName(path []string) (*schnorrkel.MiniSecretKey, error) + func EnableIbc(api *gsrpc.SubstrateAPI, senderKeypair signature.KeyringPair) (gstypes.Hash, error) + func EncodeAddressSS58(key []byte) (string, error) + func GetBalance(api *gsrpc.SubstrateAPI, address string) (int64, error) + func IntInSlice(a int, list []int) bool + func MintFundsTx(api *gsrpc.SubstrateAPI, senderKeypair signature.KeyringPair, ...) (gstypes.Hash, error) + func NewMnemonic() (string, error) + func SendFundsTx(api *gsrpc.SubstrateAPI, senderKeypair signature.KeyringPair, ...) (gstypes.Hash, error) + func SendIbcFundsTx(api *gsrpc.SubstrateAPI, senderKeypair signature.KeyringPair, channelID string, ...) (gstypes.Hash, error) + type AccountInfo struct + Consumers gstypes.U32 + Data struct{ ... } + Nonce gstypes.U32 + Providers gstypes.U32 + Sufficients gstypes.U32 + type GetParachainIDResponse struct + ParachainID int + type ParachainConfig struct + Bin string + ChainID string + Flags []string + Image ibc.DockerImage + NumNodes int + RelayChainFlags []string + type ParachainNode struct + Bin string + Chain ibc.Chain + ChainID string + DockerClient *client.Client + Flags []string + Image ibc.DockerImage + Index int + NetworkID string + NodeKey p2pcrypto.PrivKey + RelayChainFlags []string + TestName string + VolumeName string + func (pn *ParachainNode) Bind() []string + func (pn *ParachainNode) CreateNodeContainer(ctx context.Context) error + func (pn *ParachainNode) Exec(ctx context.Context, cmd []string, env []string) dockerutil.ContainerExecResult + func (pn *ParachainNode) ExportGenesisState(ctx context.Context) (string, error) + func (pn *ParachainNode) ExportGenesisWasm(ctx context.Context) (string, error) + func (pn *ParachainNode) GenerateDefaultChainSpec(ctx context.Context) ([]byte, error) + func (pn *ParachainNode) GenerateParachainGenesisFile(ctx context.Context, additionalGenesisWallets ...ibc.WalletAmount) ([]byte, error) + func (pn *ParachainNode) GetBalance(ctx context.Context, address string, denom string) (math.Int, error) + func (pn *ParachainNode) GetIbcBalance(ctx context.Context, address string, denom uint64) (sdktypes.Coin, error) + func (pn *ParachainNode) HostName() string + func (pn *ParachainNode) MintFunds(keyName string, amount ibc.WalletAmount) error + func (pn *ParachainNode) MultiAddress() (string, error) + func (pn *ParachainNode) Name() string + func (pn *ParachainNode) NodeHome() string + func (pn *ParachainNode) ParachainChainSpecFileName() string + func (pn *ParachainNode) ParachainChainSpecFilePathFull() string + func (pn *ParachainNode) ParachainID(ctx context.Context) (int, error) + func (pn *ParachainNode) PeerID() (string, error) + func (pn *ParachainNode) RawRelayChainSpecFilePathFull() string + func (pn *ParachainNode) RawRelayChainSpecFilePathRelative() string + func (pn *ParachainNode) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error + func (pn *ParachainNode) SendIbcFunds(ctx context.Context, channelID string, keyName string, amount ibc.WalletAmount, ...) error + func (pn *ParachainNode) StartContainer(ctx context.Context) error + func (pn *ParachainNode) StopContainer(ctx context.Context) error + type ParachainNodes []*ParachainNode + type PolkadotAuthority struct + AuthorityDiscovery string + Babe string + Beefy string + Grandpa string + IMOnline string + ParaAssignment string + ParaValidator string + ParachainValidator string + type PolkadotChain struct + ParachainNodes []ParachainNodes + RelayChainNodes RelayChainNodes + func NewPolkadotChain(log *zap.Logger, testName string, chainConfig ibc.ChainConfig, ...) *PolkadotChain + func (c *PolkadotChain) Acknowledgements(ctx context.Context, height uint64) ([]ibc.PacketAcknowledgement, error) + func (c *PolkadotChain) BuildRelayerWallet(ctx context.Context, keyName string) (ibc.Wallet, error) + func (c *PolkadotChain) BuildWallet(ctx context.Context, keyName string, mnemonic string) (ibc.Wallet, error) + func (c *PolkadotChain) Config() ibc.ChainConfig + func (c *PolkadotChain) CreateKey(ctx context.Context, keyName string) error + func (c *PolkadotChain) Exec(ctx context.Context, cmd []string, env []string) ([]byte, []byte, error) + func (c *PolkadotChain) ExportState(ctx context.Context, height int64) (string, error) + func (c *PolkadotChain) FindTxs(ctx context.Context, height uint64) ([]blockdb.Tx, error) + func (c *PolkadotChain) GetAddress(ctx context.Context, keyName string) ([]byte, error) + func (c *PolkadotChain) GetBalance(ctx context.Context, address string, denom string) (math.Int, error) + func (c *PolkadotChain) GetGRPCAddress() string + func (c *PolkadotChain) GetGasFeesInNativeDenom(gasPaid int64) int64 + func (c *PolkadotChain) GetHostGRPCAddress() string + func (c *PolkadotChain) GetHostRPCAddress() string + func (c *PolkadotChain) GetIbcBalance(ctx context.Context, address string, denom uint64) (sdktypes.Coin, error) + func (c *PolkadotChain) GetKeyringPair(keyName string) (signature.KeyringPair, error) + func (c *PolkadotChain) GetPublicKey(keyName string) ([]byte, error) + func (c *PolkadotChain) GetRPCAddress() string + func (c *PolkadotChain) Height(ctx context.Context) (uint64, error) + func (c *PolkadotChain) HomeDir() string + func (c *PolkadotChain) Initialize(ctx context.Context, testName string, cli *client.Client, networkID string) error + func (c *PolkadotChain) MintFunds(keyName string, amount ibc.WalletAmount) error + func (c *PolkadotChain) NewParachainNode(ctx context.Context, i int, dockerClient *dockerclient.Client, ...) (*ParachainNode, error) + func (c *PolkadotChain) NewRelayChainNode(ctx context.Context, i int, chain *PolkadotChain, ...) (*RelayChainNode, error) + func (c *PolkadotChain) RecoverKey(ctx context.Context, keyName, mnemonic string) error + func (c *PolkadotChain) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error + func (c *PolkadotChain) SendIBCTransfer(ctx context.Context, channelID string, keyName string, amount ibc.WalletAmount, ...) (ibc.Tx, error) + func (c *PolkadotChain) Start(testName string, ctx context.Context, ...) error + func (c *PolkadotChain) Timeouts(ctx context.Context, height uint64) ([]ibc.PacketTimeout, error) + type PolkadotParachainSpec struct + GenesisHead string + Parachain bool + ValidationCode string + type PolkadotWallet struct + func NewWallet(keyname string, address []byte, mnemonic string, chainCfg ibc.ChainConfig) *PolkadotWallet + func (w *PolkadotWallet) Address() []byte + func (w *PolkadotWallet) FormattedAddress() string + func (w *PolkadotWallet) KeyName() string + func (w *PolkadotWallet) Mnemonic() string + type RelayChainNode struct + AccountKeyName string + Chain ibc.Chain + DockerClient *client.Client + EcdsaPrivateKey secp256k1.PrivateKey + Ed25519PrivateKey p2pCrypto.PrivKey + Image ibc.DockerImage + Index int + NetworkID string + NodeKey p2pCrypto.PrivKey + StashKeyName string + TestName string + VolumeName string + func (p *RelayChainNode) Bind() []string + func (p *RelayChainNode) ChainSpecFilePathContainer() string + func (p *RelayChainNode) CreateNodeContainer(ctx context.Context) error + func (p *RelayChainNode) EcdsaAddress() (string, error) + func (p *RelayChainNode) Exec(ctx context.Context, cmd []string, env []string) dockerutil.ContainerExecResult + func (p *RelayChainNode) GenerateChainSpec(ctx context.Context) error + func (p *RelayChainNode) GenerateChainSpecRaw(ctx context.Context) error + func (p *RelayChainNode) GetBalance(ctx context.Context, address string, denom string) (int64, error) + func (p *RelayChainNode) GrandpaAddress() (string, error) + func (p *RelayChainNode) HostName() string + func (p *RelayChainNode) MultiAddress() (string, error) + func (p *RelayChainNode) Name() string + func (p *RelayChainNode) NodeHome() string + func (p *RelayChainNode) PeerID() (string, error) + func (p *RelayChainNode) RawChainSpecFilePathFull() string + func (p *RelayChainNode) RawChainSpecFilePathRelative() string + func (p *RelayChainNode) SendFunds(ctx context.Context, keyName string, amount ibc.WalletAmount) error + func (p *RelayChainNode) StartContainer(ctx context.Context) error + func (p *RelayChainNode) StopContainer(ctx context.Context) error + type RelayChainNodes []*RelayChainNode Other modules containing this package github.com/strangelove-ventures/interchaintest/v7 github.com/strangelove-ventures/interchaintest/v8