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 10 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) 2,42 0,75%
aave
Aave (AAVE) 189,63 4,69%
the-graph
The Graph (GRT) 0,456745 1,88%
kusama
Kusama (KSM) 214,95 2,54%
waves
Waves (WAVES) 11,53 0,97%
dash
Dash (DASH) 114,49 1,33%
bitcoin
Bitcoin (BTC) 36.741,19 0,53%
ethereum
Ethereum (ETH) 2.725,23 1,45%
cardano
Cardano (ADA) 1,23 4,54%
tether
Tether (USDT) 0,875082 0,12%
xrp
XRP (XRP) 0,646806 0,66%
solana
Solana (SOL) 118,64 1,26%
polkadot
Polkadot (DOT) 21,28 2,01%
usd-coin
USD Coin (USDC) 0,874382 0,03%
dogecoin
Dogecoin (DOGE) 0,142965 0,83%
uniswap
Uniswap (UNI) 13,58 11,31%
terra-luna
Terra (LUNA) 69,89 6,00%
litecoin
Litecoin (LTC) 119,19 3,76%
chainlink
Chainlink (LINK) 19,20 5,11%
bitcoin-cash
Bitcoin Cash (BCH) 325,36 1,60%
algorand
Algorand (ALGO) 1,11 4,00%
matic-network
Polygon (MATIC) 1,82 3,40%
stellar
Stellar (XLM) 0,219140 1,03%
cosmos
Cosmos (ATOM) 31,96 2,72%
filecoin
Filecoin (FIL) 24,46 0,55%
tron
TRON (TRX) 0,059754 0,02%
ethereum-classic
Ethereum Classic (ETC) 28,10 1,22%
dai
Dai (DAI) 0,875082 0,40%
tezos
Tezos (XTZ) 3,41 2,46%
monero
Monero (XMR) 182,51 3,01%