| Crates.io | soroban-sdk-tools |
| lib.rs | soroban-sdk-tools |
| version | 0.1.0 |
| created_at | 2025-12-01 18:06:43.871837+00 |
| updated_at | 2025-12-01 18:06:43.871837+00 |
| description | Enhanced tools for Soroban smart contract development |
| homepage | |
| repository | https://github.com/blaineheffron/soroban-sdk-tools |
| max_upload_size | |
| id | 1960237 |
| size | 127,386 |
Enhanced tools for Soroban smart contract development, providing:
#[scerr] macro for clean error definitionsAdd to your Cargo.toml:
[dependencies]
soroban-sdk-tools = "0.1"
use soroban_sdk_tools::{contractstorage, PersistentMap, InstanceItem};
#[contractstorage]
pub struct TokenStorage {
#[short_key("bal")]
balances: PersistentMap<Address, i128>,
admin: InstanceItem<Address>,
}
use soroban_sdk_tools::scerr;
#[scerr]
pub enum Error {
Unauthorized,
InsufficientBalance,
}
#[test]
fn test_transfer() {
let client = TokenClient::new(&env, &contract_id);
// Simplified authorization mocking
client.with_auth(&user).transfer(&from, &to, &100);
}
See the technical architecture for detailed information.
Apache-2.0