1 unstable release
new 0.0.1-alpha | May 21, 2025 |
---|
#7 in #stellar
125 downloads per month
3KB
stellar-registry
is a collection of tools to help integrate with
existing smart contracts on Stellar.
stellar-registry
This crate contains a utility macro for importing Soroban smart contracts. The main functionality is provided through the import_contract!
macro which generates the necessary client code for interacting with Soroban contracts.
import_contract_client!
automatically generates a contract client for a given contract. It expects the contract name to match either a published contract or a contract in your current workspace. The macro will locate the contract's WASM file and generate the appropriate Rust bindings for interacting with it.
For example:
import_contract_client!(my_contract);
This will generate a module containing the client code needed to interact with my_contract
.
Dependencies
~1–1.8MB
~37K SLoC