package
0.4.3
Repository: https://github.com/athanorlabs/atomic-swap.git
Documentation: pkg.go.dev

# Functions

GetMakerTestKey returns the first ganache test key allocated to a package.
GetTakerTestKey returns the second ganache test key allocated to a package.
GetTestKeyByIndex returns the ganache test key allocated to a package by index.
MineTransaction is a test helper that blocks until the transaction is included in a block and returns the receipt.
NewEthClient returns a connection to the local ganache instance for unit tests along with its chain ID.
NewEthMainnetClient returns a connection to a mainnet endpoint, set by an ETH_MAINNET_ENDPOINT environment variable, for testing.
NewEthSepoliaClient returns a connection to a Sepolia endpoint, set by an ETH_SEPOLIA_ENDPOINT environment variable, for testing.
TxOpts returns a fresh TransactOpts for use in tests.
TxOptsWithValue returns a fresh TransactOpts with a set value for use in tests.