/contract-sdk-cpp

The Cpp SDK for XuperChain smart contract

Primary LanguageC++Apache License 2.0Apache-2.0

contract-sdk-cpp

The C plus plus contract SDK for XuperChain smart contract

Dependencies

Docker

Xdev

Build and run unit tests

  1. Clone Source Code

        git clone https://github.com/xuperchain/contract-sdk-cpp.git
  2. Build Contract SDK

        make build
  3. Run unitest

        make test

Examples

You can use examples to getting start with XuperChain, explore XuperChain features or in your DAPP

  1. Build Examples

    make build-example 
  2. Run example test

    make test-example
  3. Use in your DAPP

Example Description Documentation
Award Manage An digital award management contract example which can be used in Business operation activities DOC
Charity Demo A smart contract which stores charity donate and cost on blockchain DOC
Counter An as simple as possible example of smart contract which implements a decentralized Counter DOC
Game Assets An assets management contract example set at game asset, you can extend it to any NFT situation DOC
Hash Deposit A file deposit contract example,in which file hash is stored on blockchain DOC
Luck Draw A decentralized luck draw game DOC
Score Record An example of content deposit contract which store student grades on blockchain
Short Content An example of content deposit, which implement store and query by content field
Source Trace An example contract of source trace

Contributions

We weleome contribution in any form(feature, issue, documention etc.), See Contribution Guide for more information of contributing to XuperChain