#smart-contracts #write #serialization #blockchain #concordium #host #entry-point

no-std concordium-contracts-common

Common functionality used by smart contracts and the host environment on the Concordium blockchain

17 releases (9 major breaking)

9.0.0 Jan 22, 2024
8.1.1 Nov 2, 2023
8.1.0 Oct 18, 2023
7.0.0 Jun 16, 2023
0.1.0 Nov 30, 2020

#599 in Magic Beans

Download history 495/week @ 2023-11-28 279/week @ 2023-12-05 380/week @ 2023-12-12 242/week @ 2023-12-19 20/week @ 2023-12-26 123/week @ 2024-01-02 261/week @ 2024-01-09 1028/week @ 2024-01-16 319/week @ 2024-01-23 297/week @ 2024-01-30 225/week @ 2024-02-06 242/week @ 2024-02-13 415/week @ 2024-02-20 817/week @ 2024-02-27 558/week @ 2024-03-05 449/week @ 2024-03-12

2,302 downloads per month
Used in 9 crates (5 directly)

MPL-2.0 license

375KB
8K SLoC

Concordium Contracts Common library

Contributor Covenant

This library provides the core API that can be used to write smart contracts for the Concordium blockchain in the Rust programming language. It aims to provide safe wrappers around the core primitives exposed by the chain and accessible to smart contracts.

The functionality in this library is re-exported via the concordium-std and the concordium-rust-sdk crate.

  • The concordium-std crate is intended as the entry-point for development of smart contracts in Rust. It adds a number of helper macros and traits on top of the basic functionality available here.

  • The concordium-rust-sdk crate is for off-chain development and interaction with smart contracts.

Features

  • std (enabled by default): Enables functionality that depends on the standard library.
  • derive-serde: Enable serialization and deserialization via serde. Enables std as well.
  • fuzz: Enable fuzzing via arbitrary. Enables derive-serde as well.
  • smart-contract: Enable functionality for smart contract development with concordium-std.

MSRV

The minimum supported rust version is specified in Cargo.toml manifest.

Dependencies

~1.3–2.7MB
~50K SLoC