features

package
v8.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs[T int | int64](a T) T

func AddAdminIfNecessary

func AddAdminIfNecessary(ctx context.Context, thorchain *tc.Thorchain) error

func Arb

func Arb(
	t *testing.T,
	ctx context.Context,
	thorchain *tc.Thorchain,
	exoChains ...ibc.Chain,
) (users []ibc.Wallet, err error)

func DualLp

func DualLp(
	t *testing.T,
	ctx context.Context,
	thorchain *tc.Thorchain,
	exoChain ibc.Chain,
) (thorUser ibc.Wallet, exoUser ibc.Wallet, err error)

func DualSwap

func DualSwap(
	t *testing.T,
	ctx context.Context,
	thorchain *tc.Thorchain,
	srcChain ibc.Chain,
	destChain ibc.Chain,
) error

func GetAndFundTestUsers

func GetAndFundTestUsers(
	t *testing.T,
	ctx context.Context,
	keyNamePrefix string,
	chains ...ibc.Chain,
) ([]ibc.Wallet, error)

func Min

func Min[T int | uint | int64 | uint64](a, b T) T

func PollForBalanceChange

func PollForBalanceChange(ctx context.Context, chain ibc.Chain, deltaBlocks int64, balance ibc.WalletAmount) error

PollForBalanceChaqnge polls until the balance changes

func PollForEjectedSaver

func PollForEjectedSaver(ctx context.Context, thorchain *tc.Thorchain, deltaBlocks int64, asset common.Asset, exoUser ibc.Wallet) (tc.Saver, error)

PollForEjectedSaver polls until the saver no longer found

func PollForPool

func PollForPool(ctx context.Context, thorchain *tc.Thorchain, deltaBlocks int64, asset common.Asset) error

PollForPool polls until the pool is found and funded

func PollForPoolSuspended

func PollForPoolSuspended(ctx context.Context, thorchain *tc.Thorchain, deltaBlocks int64, exoAsset common.Asset) error

PollForPoolSuspended polls until the pool is gone or suspended

func PollForSaver

func PollForSaver(ctx context.Context, thorchain *tc.Thorchain, deltaBlocks int64, asset common.Asset, exoUser ibc.Wallet) (tc.Saver, error)

PollForSaver polls until the saver is found

func PollOutboundSigned

func PollOutboundSigned(ctx context.Context, thorchain *tc.Thorchain, deltaBlocks int64, txHash string) (any, error)

PollOutboundSigned polls until the swap is completed and outbound has been signed

func PollSwapCompleted

func PollSwapCompleted(ctx context.Context, thorchain *tc.Thorchain, deltaBlocks int64, txHash string) (any, error)

PollSwapCompleted polls until the swap is completed

func Ragnarok

func Ragnarok(
	t *testing.T,
	ctx context.Context,
	thorchain *tc.Thorchain,
	exoChain ibc.Chain,
	exoUsers ...ibc.Wallet,
) error

func Saver

func Saver(
	t *testing.T,
	ctx context.Context,
	thorchain *tc.Thorchain,
	exoChain ibc.Chain,
) (exoUser ibc.Wallet, err error)

func SaverEject

func SaverEject(
	t *testing.T,
	ctx context.Context,
	mimirLock *sync.Mutex,
	thorchain *tc.Thorchain,
	exoChain ibc.Chain,
	exoSavers ...ibc.Wallet,
) (exoUser ibc.Wallet, err error)

func SingleSwap

func SingleSwap(
	t *testing.T,
	ctx context.Context,
	thorchain *tc.Thorchain,
	srcChain ibc.Chain,
	destChain ibc.Chain,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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