Crate fadroma

Source
Expand description

§Note on network support

Fadroma currently only supports Secret Network flavoured CosmWasm. As such, you MUST enable the scrt feature flag. Otherwise, you will get compilation errors - this is by design.

Re-exports§

pub use secret_cosmwasm_std as cosmwasm_std;
pub use schemars;
pub use serde;
pub use fadroma_dsl as dsl;

Modules§

admin
Transaction authentication by pre-configured admin address. See the examples on how to implement it.
bin_serde
Time and space efficient binary serialization for types that are stored in a contract’s storage. Supports both structs and enums, with or without generics. This is Fadroma’s default mode for serializing data for storage.
core
crypto
SHA256 hashing and pseudo rng. Feature flag: crypto
ensemble
Test multiple contract interactions using unit tests. Feature flag: ensemble
killswitch
Emergency pause and termination of contracts. You MUST implement admin in your contract if you want to use this module. This is enforced when using Fadroma DSL. See the examples on how to implement it.
prelude
Start here. use fadroma::prelude::* to get the essentials for writing smart contracts with Fadroma.
scrt
Secret Network specific utilities and contracts that are commonly used when developing smart contracts for it. Feature flag: scrt
storage
Utilities for interacting with the native key-value storage.
tokens

Macros§

contract_harness
Generate a struct and implement ContractHarness for the given struct identifier, using the provided entry point functions.
entrypoint
Define the mod wasm entrypoint for production builds, using the provided entry point functions.
impl_canonize_default
Use on any type that does not contain a cosmwasm_std::Addr. The implementation simply returns Ok(self) without doing any transformation.
namespace
Construct a storage namespace. It creates a zero-sized struct with the given type name and implements Namespace on it with the provied byte slice literal.