Possibly {@link ErrorWithCode} or None.
Asserts that the provided error is defined and matches the provided requirements.
If {@link opts.type} is provided the error needs to be of that type. If {@link opts.msgRx} is provided the error message needs match to it.
error to verify
a {@link RegExp} that the error message is expected to match
the type of the error to expect
Asserts that the provided ConfirmedTransactionDetails has an error that matches the provided requirements.
Provide either an Error
to {@link errOrRx} to verify the error type or a
{@link RegExp} to only verify the error message.
In order to verify both provide an Error
to {@link errOrRx} and the {@link
RegExp} via {@link msgRx}.
result of executing a transaction
the type of the error to expect or the {@link msgRx} to match
a {@link RegExp} that the error message is expected to match
Asserts that a transaction completed successfully and optionally checks for messages in the transaction logs.
The minimum methods that the first argument passed to assert functions like assertConfirmedTransaction needs to have.
Asserts details about a confirmed transaction
the confirmed transaction to verify
specify what details should be verified
Asserts that the provided error contains specific information as part of the error message or the attached error logs.
To check for they error type instead use assertErrorMatches instead.
error to verify
list of {@link RegExp} which will be matched on the error message or err.logs
.
Asserts details about a TransactionSummary.
transaction summary to verify
specify what details should be verified
The type that an account provider needs to implement so that amman can deserialize account data.
Interface to transaction handlers that can either be backed directly by a payer or can use a wallet.
Sends and confirms the given transaction after signing it.
to send
with which the transaction should be signed
either options used to send the transaction or the {@link label}
of the transaction in order to identify it in logs and the amman-explorer
Derived from a {@link ConfirmedTransaction} this summary eases assertions and logging.
Default options for sending and confirming a transaction
URL at which a locally running solana test validator listens on by default
Gets the path to a temporary directory in which to store the test validator ledger.
label used to name that directory
Generated using TypeDoc
Amman Config
validatorConfig Validator configuration
relayConfig Relay configuration
storageConfig Mock Storage configuration
streamTransactionLogs if
true
thesolana logs
command is spawned and its output piped through a prettifier, defaults to run except when in a CI environment