base

package
v0.0.0-...-f44fc72 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package base implements the E2E tests for the basic SDK functionality.

Index

Constants

View Source
const EventWaitTimeout = 20 * time.Second

EventWaitTimeout specifies how long to wait for an event.

Variables

DefaultKVTxGenerators is the default set of transaction generators for the simple keyvalue runtime.

Runtime is the basic network + client test case with runtime support.

Functions

func BlockQueryTest

func BlockQueryTest(ctx context.Context, env *scenario.Env) error

BlockQueryTest tests block queries.

func ConfidentialTest

func ConfidentialTest(ctx context.Context, env *scenario.Env) error

ConfidentialTest tests functions that require a key manager.

func GenKVGet1

GenKVGet1 generates a Get query for the keyvalue runtime. The account's public key is used as the key.

func GenKVGet2

GenKVGet2 generates a Get query for the keyvalue runtime. The key is random.

func GenKVInsert1

GenKVInsert1 generates an Insert transaction for the keyvalue runtime. The account's public key is used as the key and the value is random.

func GenKVInsert2

GenKVInsert2 generates an Insert transaction for the keyvalue runtime. The key and value are random.

func GenKVRemove1

GenKVRemove1 generates a Remove transaction for the keyvalue runtime. The account's public key is used as the key.

func GenKVRemove2

GenKVRemove2 generates a Remove transaction for the keyvalue runtime. The key is random.

func GetChainContext

func GetChainContext(ctx context.Context, rtc client.RuntimeClient) (signature.Context, error)

GetChainContext returns the chain context.

func IntrospectionTest

func IntrospectionTest(ctx context.Context, env *scenario.Env) error

func KVBalanceTest

func KVBalanceTest(ctx context.Context, env *scenario.Env) error

KVBalanceTest checks test accounts' default balances.

func KVDaveTest

func KVDaveTest(ctx context.Context, env *scenario.Env) error

KVDaveTest does a tx signing test using the secp256k1 signer.

func KVEventTest

func KVEventTest(ctx context.Context, env *scenario.Env) error

KVEventTest tests key insert/remove events.

func KVMultisigTest

func KVMultisigTest(ctx context.Context, env *scenario.Env) error

func KVRewardsTest

func KVRewardsTest(ctx context.Context, env *scenario.Env) error

func KVTransferFailTest

func KVTransferFailTest(ctx context.Context, env *scenario.Env) error

KVTransferFailTest does a failing transfer test.

func KVTransferTest

func KVTransferTest(ctx context.Context, env *scenario.Env) error

KVTransferTest does a transfer test and verifies balances.

func KVTxGenTest

func KVTxGenTest(ctx context.Context, env *scenario.Env) error

KVTxGenTest generates random transactions.

func ParametersTest

func ParametersTest(ctx context.Context, env *scenario.Env) error

ParametersTest tests parameters methods.

func SimpleKVTest

func SimpleKVTest(ctx context.Context, env *scenario.Env) error

SimpleKVTest does a simple key insert/fetch/remove test.

func TransactionCheckTest

func TransactionCheckTest(ctx context.Context, env *scenario.Env) error

TransactionCheckTest checks that nonce/fee are correctly taken into account during tx checks.

func TransactionsQueryTest

func TransactionsQueryTest(ctx context.Context, env *scenario.Env) error

TransactionsQueryTest tests SubmitTx*Meta and GetTransactionsWithResults functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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