#soroban #smart-contracts #loam #abstraction #traits #lazy-evaluation #soroban-sdk

no-std loam-soroban-sdk

A wrapper around the soroban-sdk, providing some soroban specific traits

14 releases

0.6.15 Sep 30, 2024
0.6.13 Jul 20, 2024
0.6.7 Mar 22, 2024
0.6.5 Sep 22, 2023

#3 in #loam

50 downloads per month
Used in 7 crates (via loam-sdk)

Apache-2.0

7KB
100 lines

loam-soroban-sdk

Wrapper around Soroban SDK which adds features needed by Loam SDK, such as:

  • lazy getting and setting
  • implementation of Loam'sIntoKey derive macro that relies on Soroban SDK's specifics
  • abstraction of Soroban SDK's env to enable Loam SDK-authored contracts to avoid referencing it at all and use Rust's standard mutable/immutable method definition syntax (my_method(&self, ...) vs my_method(&mut self, ...)).

Dependencies

~15–25MB
~405K SLoC