Documentation
¶
Index ¶
- Constants
- func FindGitRoot() (string, error)
- func FundWithFaucet(logger logger.Logger, client *aptos.NodeClient, address aptos.AccountAddress, ...) error
- func HasCounterResource(client *aptos.NodeClient, counterAddress aptos.AccountAddress) bool
- func LoadAccountFromEnv(t *testing.T, logger logger.Logger) (ed25519.PrivateKey, ed25519.PublicKey, aptos.AccountAddress)
- func ReadCounterValue(t *testing.T, client *aptos.NodeClient, counterAddress aptos.AccountAddress) uint64
- func StartAptosNode() error
- type CompilationResult
- type TestKeystore
Constants ¶
View Source
const ( TestnetUrl = "https://api.testnet.aptoslabs.com/v1" DevnetUrl = "https://api.devnet.aptoslabs.com/v1" )
Variables ¶
This section is empty.
Functions ¶
func FindGitRoot ¶
Finds the closest git repo root, assuming that a directory with a .git directory is a git repo.
func FundWithFaucet ¶
func FundWithFaucet(logger logger.Logger, client *aptos.NodeClient, address aptos.AccountAddress, faucetUrl string) error
func HasCounterResource ¶
func HasCounterResource(client *aptos.NodeClient, counterAddress aptos.AccountAddress) bool
func LoadAccountFromEnv ¶
func LoadAccountFromEnv(t *testing.T, logger logger.Logger) (ed25519.PrivateKey, ed25519.PublicKey, aptos.AccountAddress)
Loads an account, assuming no key rotation has taken place.
func ReadCounterValue ¶
func ReadCounterValue(t *testing.T, client *aptos.NodeClient, counterAddress aptos.AccountAddress) uint64
func StartAptosNode ¶
func StartAptosNode() error
Types ¶
type CompilationResult ¶
func CompileMovePackage ¶
func CompileMovePackage( t *testing.T, contractsDir string, namedAddresses map[string]aptos.AccountAddress, moduleOrder []string, ) CompilationResult
func CompileTestModule ¶
func CompileTestModule(t *testing.T, moduleAddress aptos.AccountAddress) CompilationResult
type TestKeystore ¶
type TestKeystore struct {
Keys map[string]ed25519.PrivateKey
// contains filtered or unexported fields
}
func NewTestKeystore ¶
func NewTestKeystore(t *testing.T) *TestKeystore
func (*TestKeystore) Accounts ¶
func (tk *TestKeystore) Accounts(ctx context.Context) ([]string, error)
func (*TestKeystore) AddKey ¶
func (tk *TestKeystore) AddKey(privateKey ed25519.PrivateKey)
Click to show internal directories.
Click to hide internal directories.