Contract Conventions
These guides describe the "typical" way something might be accomplished in a Rust contract. These guides aren't meant to be quite as prescriptive as some others; instead, they serve to highlight some of the norms we've seen when crop up in contract development.
Guides in this category:
ποΈ Using __check_auth in interesting ways
Two guides that walk through using __check_auth
ποΈ Making cross-contract calls
Call a smart contract from within another smart contract
ποΈ Deploy a contract from installed Wasm bytecode using a deployer contract
Deploy a contract from installed Wasm bytecode using a deployer contract
ποΈ Deploy a SAC for a Stellar asset using code
Deploy a SAC for a Stellar asset using Javascript SDK
ποΈ Organize contract errors with an error enum type
Manage and communicate contract errors using an enum struct stored as Status values
ποΈ Extend a deployed contract's TTL with code
How to extend the TTL of a deployed contract's Wasm code
ποΈ Upgrading Wasm bytecode for a deployed contract
Upgrade Wasm bytecode for a deployed contract
ποΈ Write metadata for your contract
Use the contractmeta! macro in Rust SDK to write metadata in Wasm contracts