Crate fabric_contract

Source
Expand description

This is the main crate for providing support for writing Smart Contracts to work with Hyperledger Fabric’s Wasm chaincode runtime.

The fabric_contract_macros crate contains the macros to assist with development of the Smart Contracts

basic_contract_rs shows a simple Asset contract.

Modules§

  • Module to provide APIs to get information about Fabric
  • Module to provide APIs to write contracts and interact with the ledger
  • Module to use to define the complex datatypes
  • Module to provide ‘runtime’ services.

Macros§

  • Macro to use in the lib.rs file of your contract’s crate

Attribute Macros§

  • Use this macro to mark the implementation of the your contract structure
  • Define the properties of the datatype
  • Use this to mark the functions that are considered to be transaction functions

Derive Macros§

  • Use this to mark the structs that serve as complex data types Need to provide example