Plutus Development: Creating a Basic Smart Contract
In this video we will quickly talk about the theoretics of how cardano transactions works in the UTXO and EUTXO model and then jump straight into the code! We will start building some foundation knowledge of what it takes to make a smart contract by building a very, very, very (that I emphsis very?) simple stock price guessing game where user guess if the stock price will be higher or lower. We'll learn how to plan the development of a smart contract by defining the onchain code (datums and redeemers for the validator script) and the off chain code (end points to make transactions to the onchain code) Then we'll do a quick and pratical implementation on the plutus playground of the smart contract Resources: Plutus Playground: https://playground.plutus.iohkdev.io/ Script: https://github.com/chang47/Practical-Plutus/blob/main/simple-stock-value-guess.hs 00:00 - Intro 00:23 - UTXO Model 01:00 - EUTXO Model: Datum and Reedemer 02:52 - Intro Project: Stock Price Guessing Game 02:28 - On-chain and Off-chain code 03:45 - On-chain code spec 04:44 - Off-chain code spec 06:01 - Implementing the on-chain code 11:22 - Implementing the off-chain code 18:39 - Running the contract on the playground
Download
0 formatsNo download links available.