Crate soly

Crate soly 

Source
Expand description

§soly

Crates.io Docs.rs CI Cov

§Installation

§Cargo

  • Install the rust toolchain in order to have cargo installed by following this guide.
  • run cargo install soly

§Development

§Prerequisites

  • Rust Nightly: Required for code formatting with advanced features
    rustup install nightly

§Getting Started

  1. Clone the repository

    git clone https://github.com/CarteraMesh/soly.git
    cd soly
  2. Build and test

    # Build the project
    cargo build
    
    # Run tests (requires valid Fireblocks credentials in .env)
    cargo test
    
    # Format code (requires nightly)
    cargo +nightly fmt --all

§Code Formatting

This project uses advanced Rust formatting features that require nightly:

# Format all code
cargo +nightly fmt --all

# Check formatting
cargo +nightly fmt --all -- --check

§License

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Re-exports§

pub use moka;

Structs§

BlockHashCacheProvider
BlockHashCacheProviderBuilder
Use builder syntax to set the inputs and finish with build().
Cache
A thread-safe, futures-aware concurrent in-memory cache.
CalcFeeResult
Result of priority fee calculation containing the computed fee and compute units.
CounterRpcProvider
A testing utility which implements a simple counter for tracking RPC method calls.
InstructionBuilder
Builder for creating Solana Instructions with Borsh-serialized data.
InstructionBuilderBuilder
Use builder syntax to set the inputs and finish with build().
LookupTableCacheProvider
Provider with lookup table caching.
LookupTableCacheProviderBuilder
Use builder syntax to set the inputs and finish with build().
SimpleCacheTransactionProvider
Combined cache provider with lookup table and blockhash caching.
SimpleCacheTransactionProviderBuilder
Use builder syntax to set the inputs and finish with build().
TraceTransactionProvider
A thread-safe tracing wrapper around Solana’s native RPC client
TransactionBuilder
Builder/Helper for creating and sending Solana VersionedTransactions, with AddressLookupTableAccount support
TransactionBuilderBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

Error
RpcMethod
Convenient definitions for the CounterRpcProvider

Traits§

InstructionBuilderExt
IntoInstruction
Converts types into Instruction.
TransactionRpcProvider
Trait abstracting RPC operations for Solana transactions.

Functions§

derive_pda
Derives a PDA and returns an AccountMeta.
fetch_lookup_tables
Fetches lookup tables from the Solana blockchain.

Type Aliases§

Result
SimpleCacheTransactionNativeProvider
TraceTransactionArcProvider