truthlinked-sdk
Rust SDK for writing TruthLinked WASM smart contracts. It is no_std, comes with storage, codec, manifest, event, oracle, and test utilities, and pairs with truthlinked-sdk-macros for derive support.
Highlights
- Slot-based storage with
Slot,StorageMap,StorageVec,StorageBlob - ABI helpers, selectors, and calldata decoding
- Manifest builder and derive tooling for conflict-aware execution
- Structured events with indexed topics
- Deterministic HTTP oracle bindings
contract_entry!macro for exports; panic=abort compatible
Install
[]
= "0.1.1"
Target: wasm32-unknown-unknown (build with panic = "abort").
Quickstart
extern crate alloc;
use *;
;
contract_entry!;
Build:
Feature flags
testing: enables in-memory storage harness types for unit tests.
License
MIT