Cardano Plutus Pioneer Program: Lecture 3 Overview | Script Context & Homework

This is an overview of lecture 3 in the Plutus Pioneer Program: https://www.youtube.com/watch?v=Lk1eIVm_ZTQ

Lecture 3 continues to focus on the validator scripts, but we’ll be diving deeper to focus on the 3rd parameter the validator script receives, the Script Context.

The Script Context is an object that provides all the information about the transaction for the validator. Some important metadata for this lecture includes the list of HashKeys of wallets in the transaction and the current slot we are on in the block chain.

In this video we will go through many of the concepts that were talked about, the 2 examples, and then we’ll talk about the homework.

Resources:
Plutus Pioneer Github Repo: https://github.com/input-output-hk/plutus-pioneer-program
Online playground if you don’t have access to one: https://playground.plutus-community.com
Homework solution repo: https://github.com/chang47/Plutus-Pioneer-Program-Solution

Commands used:
git clone https://github.com/input-output-hk/plutus-pioneer-program.git
git pull
nix-shell
cabal repl

00:00 – Intro
00:33 – Plutus updates that Lecture 3 made
01:53 – Learning about the Script Context
04:17 – Script Context example in Java
06:15 – Slot Range and Slots
07:45 – Interval
09:11 – Slot Range & Interval in Java
11:00 – Helper function to make intervals
13:10 – Helper function to compare intervals
14:48 – Testing haskell code on the CLI
16:53 – Example 1: Using Script Context
17:25 – Example 1: Playing with the example on the simulator
19:29 – Example 1: Going through the code
27:48 – Example 2: Using Parameterization
32:52 – Homework 1 Solution
40:48 – Homework 2 Solution

(Visited 154 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,757310 5,00%
aave
Aave (AAVE) 83,49 0,71%
the-graph
The Graph (GRT) 0,240107 3,15%
kusama
Kusama (KSM) 27,08 1,79%
waves
Waves (WAVES) 2,22 1,71%
dash
Dash (DASH) 27,89 0,56%
bitcoin
Bitcoin (BTC) 59.337,49 0,23%
ethereum
Ethereum (ETH) 2.905,00 0,21%
cardano
Cardano (ADA) 0,433315 0,80%
tether
Tether (USDT) 0,931309 0,11%
xrp
XRP (XRP) 0,482128 0,76%
solana
Solana (SOL) 132,81 1,85%
polkadot
Polkadot (DOT) 6,31 1,07%
usd-coin
USDC (USDC) 0,931754 0,08%
dogecoin
Dogecoin (DOGE) 0,137956 1,38%
uniswap
Uniswap (UNI) 7,07 4,15%
terra-luna
Terra Luna Classic (LUNC) 0,000101 2,51%
litecoin
Litecoin (LTC) 82,20 6,19%
chainlink
Chainlink (LINK) 13,55 0,33%
bitcoin-cash
Bitcoin Cash (BCH) 446,06 1,09%
algorand
Algorand (ALGO) 0,182913 3,08%
matic-network
Polygon (MATIC) 0,654854 1,00%
stellar
Stellar (XLM) 0,105087 0,59%
cosmos
Cosmos Hub (ATOM) 7,65 0,94%
filecoin
Filecoin (FIL) 5,56 0,19%
tron
TRON (TRX) 0,110892 2,49%
ethereum-classic
Ethereum Classic (ETC) 25,22 3,64%
dai
Dai (DAI) 0,931176 0,13%
tezos
Tezos (XTZ) 0,933964 0,37%
monero
Monero (XMR) 113,28 2,08%