Expand description
§soly
§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
-
Clone the repository
git clone https://github.com/CarteraMesh/soly.git cd soly -
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
- MIT license LICENSE-MIT
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§
- Block
Hash Cache Provider - Block
Hash Cache Provider Builder - Use builder syntax to set the inputs and finish with
build(). - Cache
- A thread-safe, futures-aware concurrent in-memory cache.
- Calc
FeeResult - Result of priority fee calculation containing the computed fee and compute units.
- Counter
RpcProvider - A testing utility which implements a simple counter for tracking RPC method calls.
- Instruction
Builder - Builder for creating Solana
Instructions with Borsh-serialized data. - Instruction
Builder Builder - Use builder syntax to set the inputs and finish with
build(). - Lookup
Table Cache Provider - Provider with lookup table caching.
- Lookup
Table Cache Provider Builder - Use builder syntax to set the inputs and finish with
build(). - Simple
Cache Transaction Provider - Combined cache provider with lookup table and blockhash caching.
- Simple
Cache Transaction Provider Builder - Use builder syntax to set the inputs and finish with
build(). - Trace
Transaction Provider - A thread-safe tracing wrapper around Solana’s native RPC client
- Transaction
Builder - Builder/Helper for creating and sending Solana
VersionedTransactions, withAddressLookupTableAccountsupport - Transaction
Builder Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Error
- RpcMethod
- Convenient definitions for the
CounterRpcProvider
Traits§
- Instruction
Builder Ext - Into
Instruction - Converts types into
Instruction. - Transaction
RpcProvider - 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.