Skip to main content

Crate soroban_sdk_tools

Crate soroban_sdk_tools 

Source
Expand description

§soroban-sdk-tools

Enhanced tools for Soroban smart contract development including:

  • Advanced storage management with automatic key optimization
  • Composable error handling with the #scerr macro
  • Improved authorization testing utilities

Re-exports§

pub use error::ContractError;
pub use error::ContractErrorSpec;
pub use error::ErrorSpecEntry;
pub use error::SequentialError;
pub use error::SpecNode;
pub use key::StorageKey;
pub use storage::InstanceItem;
pub use storage::InstanceMap;
pub use storage::PersistentItem;
pub use storage::PersistentMap;
pub use storage::TemporaryItem;
pub use storage::TemporaryMap;
pub use auth::setup_mock_auth;
pub use auth::setup_real_auth;
pub use auth::Keypair;
pub use auth::Secp256k1Keypair;
pub use auth::Secp256r1Keypair;
pub use auth::Signer;
pub use soroban_sdk;

Modules§

auth
Authorization testing utilities
error
Error handling utilities for Soroban contracts.
key
Storage key generation and optimization utilities
storage
Storage abstractions for Soroban contracts

Macros§

contractimport
Import a contract from WASM with enhanced error handling and auth testing support.

Attribute Macros§

contractstorage
Define storage structures with automatic key management
scerr
Define a contract error enum with automatic sequential code assignment.