Expand description
Aimed for the fuzz tests
Re-exports§
pub use anchor_lang;pub use solana_sdk;pub use arbitrary;
Modules§
- trident methods
- trident methods
- trident methods
- trident methods
- trident methods
- trident methods
- trident methods
Macros§
- trident macros Converts Anchor 0.29.0 and higher entrypoint into the runtime’s entrypoint style
- Fuzz a closure-like block of code by passing it an object of arbitrary type.
- Fuzz a closure-like block of code by passing it an object of arbitrary type.
- Converts a
solana-program-style entrypoint into the runtime’s entrypoint style, for use withProgramTest::add_program - Prints the details of a given account in a pretty-printed format.
Structs§
- Account information
- Describes a single account read or written by a program during instruction execution.
- An Account with data that is stored on chain This will be the in-memory representation of the ‘Account’ struct data. The existing ‘Account’ structure cannot easily change due to downstream projects.
- trident methods
- Manages and aggregates statistics for fuzzing instructions.
- A hash; the 32-byte output of a hashing algorithm.
- A hash map implemented with quadratic probing and SIMD lookup.
- A directive for a single invocation of a Solana program.
- A vanilla Ed25519 key pair
- The address of a Solana account.
- A mutable memory location with dynamically checked borrow rules
- An atomically-committed sequence of instructions.
Enums§
Constants§
- There are 10^9 lamports in one SOL
Traits§
- A data structure that can be deserialized and stored into account storage, i.e. an
AccountInfo’s mutable data slice. - Generate arbitrary structured values from raw, unstructured data.
- A trait providing methods to read and write (manipulate) accounts
- Calculates the data for an instruction invocation, where the data is
Sha256(<namespace>:<method_name>)[..8] || BorshSerialize(args).argsis a borsh serialized struct of named fields for each argument given to an instruction. - A trait providing methods to prepare data and accounts for the fuzzed instructions and allowing users to implement custom invariants checks and transactions error handling.
- Defines the Pubkey of an account.
- The
Signertrait declares operations that all digital signature providers must support. It is the primary interface by which signers are specified inTransactionsigning interfaces - The
TempClonetrait is used as a workaround for making non-cloneable foreign types cloneable. - Transformation to an
AccountInfostruct. - Transformation to
AccountMetastructs.
Functions§
- Fuzz a closure by passing it a
&[u8] - Fuzz a closure by passing it a
&[u8] - Creates
AccountInfos fromAccountsand correspondingAccountMetaslices.
Type Aliases§
- User implemented function to process an instruction
Derive Macros§
- trident derive