/icpp-demos

Example C++ Smart Contracts for the Internet Computer

Primary LanguageC++

icpp-demos

Example C++ Smart Contracts for icpp-pro.

The Smart Contracts

Each sub folder of canisters contains a standalone icpp-pro project.

canister content
api_reference The api-reference docs example code.
counter An Orthogonal Persistence demo for uint64_t
counter4me An Orthogonal Persistence demo for std::unordered_map<std::string, uint64_t>
counters An Orthogonal Persistence demo for std::vector
files A demo of the virtual file system: open/close/read/write, ascii & binary, upload/download
memory Orthogonal Persistence of C++ Data Structures on the Internet Computer: A Study

Setup

  • Follow the icpp-pro installation instructions
  • Then check the README for each canister
    • Basically just run the demo.ps1 on Windows PowerShell, and the demo.sh on Linux/Mac

Support

For support, kindly create a GitHub Issue as outlined in the Support documentation page.

Documentation

The docs can be found here