A simple "counter" smart contract using Odra. This is a relatively simple contract, with the idea being that you can use this as your gateway into the world of Odra programming. We cover the approach to building this contract both in Casper 1.x and using Odra, in order to demonstrate the differences for developers coming from the Casper 1.x environment.
In this tutorial, you will learn how to create a donation contract using Odra. This smart contract can accept funds from anyone, and funds can be withdrawn by the original deployer. The donation contract will introduce two new concepts in Odra development, not covered in the previous tutorials, payable entrypoints and emitting events.
This tutorial will guide you through the creation of a voting smart contract using Odra. In this tutorial deployers can specify candidates and a final voting time in the constructor, the final voting time is denominated in block height, the deployer cannot modify the candidates or end time after deployment, and any account, besides the deployer, may make one vote for any candidate they please.
Escrow contracts are common and useful agreements for arbitrating arrangements between two or more parties. This tutorial will teach you how to create a basic escrow smart contract between two accounts with a dedicated arbiter.
This tutorial demonstrates how to combine Odra, the recommended framework for building smart contracts on the Casper Network, and Fondant, a new and exciting tool, simplifies running a local Casper network and testing contracts with its intuitive UI. We'll create a simple Odra contract, deploy it and test it on a local network using livenet. We'll also provide a script to fetch secret keys from Fondant for seamless interaction.
This tutorial creates a smart contract that behaves like a personal wallet with some additional features on top, demonstrating the concept of account abstraction. In this example, we implement the social recovery feature, where a user can set a list of trusted addresses (recovery_guardians) in case of a lost key to this wallet to recover the funds and transfer them to a new account.
Enhanced NFT contract with batch minting.