C++ Contract Samples
A list of examples of C++ contracts is given below:
1. Hello, world!: Introduces general concepts of the contract development.
This example is a part of C++ Tutorial which is a step by step guidance on how to create your first contract.
2. Authorization: Demonstrate a message signature check.
This example is a part of C++ Tutorial. The example extends Hello, world! example by introducing signature cheching to prevent spam attack on a contract and make it run out of money.
3. Giver: The contract sends the requested amount of money.
This example is a part of C++ Tutorial. It shows how to call a public method with parameters from another contract.
4. Wallet: Simple contract to hold and spend EVER.
5. PiggyBank: Contract for savings.
The example consist of three contracts which exchange messages between each other. It shows simplest form of an internal call of a public method. It also show how a mechanism of internal authorization might work.