A Rust library for writing smart contracts on the CasperLabs Platform.
Example
The following example contains session code which persists an integer value under an unforgeable reference. It then stores the unforgeable reference under a name in context-local storage.
use ;
use Key;
use UnwrapOrRevert;
use URef;
const KEY: &str = "special_value";
// All session code must have a `call` entrypoint.
pub extern "C"
Writing Smart Contracts
Support for writing smart contracts are contained in the contract_api
module and its submodules.