Giter Site home page Giter Site logo

anfid / concordium-rust-smart-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from concordium/concordium-rust-smart-contracts

0.0 0.0 0.0 1.76 MB

Standard library for writing smart contracts for the Concordium blockchain.

License: Mozilla Public License 2.0

Rust 100.00%

concordium-rust-smart-contracts's Introduction

Standard library for writing smart contracts for the Concordium blockchain

Contributor Covenant

This repository consists of the core standard library for writing smart contracts for the Concordium blockchain in the Rust programming languages, as well as some sample smart contracts. The core libraries are concordium-std and its helper crate of procedural macros concordium-std-derive.

The procedural macros reduce the amount of boilerplate the user needs to write, while the concordium-std library exposes a high-level API that smart contract writers can use when writing contracts, alleviating them from the need to deal with low-level details of how the interaction with the chain works.

Examples

The examples directory contains some smart contracts that are used to test the standard library.

These contracts are not meant for production, they are used to illustrate how to use the standard library and the tooling Concordium provides. There is no claim that the logic of the contract is reasonable, or safe.

Do not use these contracts as-is for anything other then experimenting.

Submodules

The repository has concordium-contracts-common as a submodule, and testing and builds are set-up to use the submodule version. When changes are made in concordium-contracts-common they should be propagated to this repository.

Contributing

Contributor Covenant

This repository's CI automatically checks formatting and common problems in rust. Changes to any of the packages must be such that

  • cargo clippy --all produces no warnings
  • rustfmt makes no changes.

Everything in this repository should build with rust version 1.53 (it should work with 1.51 and up, but we do not test regularly) however the fmt tool must be from a nightly release since some of the configuration options are not stable. One way to run the fmt tool is

cargo +nightly-2021-06-09 fmt

(the exact version used by the CI can be found in .github/workflows/linter.yml file). You will need to have a recent enough nightly version installed, which can be done via

rustup toolchain install nightly-2021-06-09

or similar, using the rustup tool. See the documentation of the tool for more details.

In order to contribute you should make a pull request and ask two people familiar with the code to do a review.

concordium-rust-smart-contracts's People

Contributors

abizjak avatar amaurremi avatar limemloh avatar bargsteen avatar jakobbotsch avatar lottekh avatar soerenbf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.