The C plus plus contract SDK for smart contract
-
Clone Source Code
git clone https://github.com/xuperchain/contract-sdk-cpp.git
-
Build Contract SDK
make build
-
Run unitest
make test
You can use examples to getting start with XuperChain, explore XuperChain features or in your DAPP
-
Build Examples
make build-example
-
Run example test
make test-example
-
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 |
We weleome contribution in any form(feature, issue, documention etc.), See for more information of contributing to XuperChain