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:
📄 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
📄 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
📄 Workspaces
Organize contracts using Cargo workspaces