funded
OpShin Education - Free Educational Videos about Python Smart Contracts
Current Project Status
in_progress
Total
amount
Received
₳11,550
Total
amount
Requested
₳19,250
Total
Percentage
Received
60.00%
₳11,550 Received out of ₳19,250
Solution

A Plutus-Pioneer-Program style educational program spanning 10 weeks at 2 hours video material covering the OpShin programming language and getting started.

Problem

Writing Smart Contracts on Cardano in Plutus/Haskell is difficult. Alternatives like OpShin (Python) need well made educational content to onboard and enable new developers to start building.

Feasibility
Value for money
Impact / Alignment

Team

1 member

This proposal was approved and funded by the Cardano Community via Project F10: OSDE: Open Source Dev Ecosystem Catalyst funding round.

[IMPACT] Please describe your proposed solution.

This proposal suggests to create educational videos about the programming language OpShin which lead absolute beginners from the basics of Python to deploying their very own dApp on Cardano. But what is OpShin?

This is OpShin: a toolchain that lets developers construct Cardano smart contracts in Python. Why Python?

The problems of Haskell

Haskell is hard

As an exotic language, Haskell has very few people able to work on it, ranking only the 25th most used language on GitHub, with only 0.39% of the userbase actively using it. Very few people are proficient in Haskell, and even fewer can help you out with the peculiarities of PlutusTx: with how to implement smart contracts on Cardano.

Instead of building in the language you already know and use in everyday work and life, you have to learn a completely new language – and peer support for it is limited.

On-chain code doesn’t integrate smoothly with off-chain code

Whilst the on-chain part of a dApp handles the transactions on the blockchain, the off-chain part often handles the rest of the dApp. Developers are forced to use two completely separate tools, often in separate languages. This costs Focus - and introduces unnecessary friction at integration and potential security issues.

Instead of working on how to best solve a problem to serve your users’ needs, you’re pulling your hair trying to make the two halves of your dApp work together.

Smart Contract size is limited, and PlutusTx is hefty

Smart Contracts have tight constraints on size and execution steps. PlutusTx and other tools often translate type constraints to expensive and unnecessary on-chain transactions, limiting developers in the complexity of what they can build.

Instead of building the best solution possible, you’re hamstringing yourself just to make sure the most critical parts of your smart contract can be executed on the blockchain.

How OpShin frees you

The OpShin Toolchain comprises several projects that aim to facilitate the development of Smart Contracts and dApps on Cardano. They are largely based on Python, or integrate well with it for maximal accessibility.

Python has a wide and growing community

At the time of writing, Python is the second-most used language on GitHub, with 14.75% of the active userbase working with Python, and enjoys a 22.5% year-over-year increase in users; this is driven in part by its utility in data science and machine learning.

Image file

Everyone who knows Python can leverage the toolstack available for Python development to build on Cardano; and that is a lot of people, with a lot of tools.

OpShin natively integrates with Python Cardano tooling

Developers can build both off-chain and on-chain tooling in just Python, and are able to directly import definitions and functions that are defined in the on-chain contract, into their off-chain tooling. This reduces the friction that is naturally-induced by Cardano’s design when building combined tools.

Everyone who knows Python can develop fluently and without interruption, without the cost of constantly having to change gears and mindsets just to build dApps.

OpShin is light, fast, and maintains security

OpShin enforces strict typing on the high-level programming: it implements a type system on top of Python type hints. However, all traces of typing are erased during compilation, for a maximum efficiency program. OpShin beats many programming languages when taken to the test for real use-cases.

Everyone who knows Python can build a dApp that runs faster, costs their users less, and executes more.

How does OpShin perform?

Image file

How much does OpShin save?

Image file

Testimonials

“ImperatorLang makes smart contract development the easy part of dApp development. I have spent far longer on off-chain code than on implementing smart contracts.” - @while0x1, SPO

“My experience was very positive. As a python library, eopsin does well at performing as expected. It’s clear when things don’t work and the language is intuitive.” - Julius Frost, Full-time Python dev

[IMPACT] How does your proposed solution address the challenge and what benefits will this bring to the Cardano ecosystem?

The OpShin toolchain is and will always be fully open-source. This is a necessary property of a Smart Contract language that requires widespread trust and inspectability.

The impact on Cardano is already huge - within 5 months of the initial release, 3 dApps have been released built on OpShin. We are expecting that this will grow even more with additional funds to foster the development of documentation, developer experience improvements and educational content.

We want to make sure that community members and new developers can easily start building on Cardano. For this purpose a custom made introduction to Python programming and writing of smart contracts on Cardano will be created.

[IMPACT] How do you intend to measure the success of your project?

We will measure success by determining the number of launched Smart Contracts and dApps based on OpShin and in general on Cardano.

[IMPACT] Please describe your plans to share the outputs and results of your project?

The created lessons will be uploaded weekly to the OpShin youtube channel. They will be linked directly from the opshin-pioneer-program github repository and replace existing, Plutus focused material.

[CAPABILITY/ FEASIBILITY] What is your capability to deliver your project with high levels of trust and accountability?

The main proposer, Niels, has already bootstrapped the main part of the project. In its current form the tool is able to be used and already being used. The proposer is completely doxed and well-known in the Community. He has 5 years of experience in teaching at university and is renowed for his easy to follow and well comprehensible content.

[CAPABILITY/ FEASIBILITY] What are the main goals for the project and how will you validate if your approach is feasible?

The main goal is to provide simple-to-assess content for new and aspiring developers on Cardano. The Plutus Pioneer Program is a good estimate of the feasibility of such a project, and since it was already done even for something as complicated as Haskell, we consider the project feasible.

[CAPABILITY/ FEASIBILITY] Please provide a detailed breakdown of your project’s milestones and each of the main tasks or activities to reach the milestone plus the expected timeline for the delivery.

The project will cover 10 lectures in similar style and format as the Plutus Pioneer Program. The lectures are to be released weekly from the receival of the funds onwards. The Plutus Pioneer Program structure is provided as a point of reference below.

Lecture 1

  • Welcome and Introduction
  • Setting up Our Development Environment
  • Kuber Marketplace Demo
  • Hashing & Digital Signatures
  • The EUTxO-Model
  • Homework

Lecture 2

  • Low-Level, Untyped Validation Scripts
  • Using the Cardano CLI to Interact with Plutus
  • High-Level, Typed Validation Scripts
  • Summary
  • Homework

Lecture 3

  • Script Contexts
  • Handling Time
  • A Vesting Example
  • Parameterized Contracts
  • Offchain Code with Lucid
  • Reference Scripts
  • Homework
  • Summary

Lecture 4

  • On-chain VS Off-chain
  • Off-chain Code with Cardano CLI and GUI
  • Off-chain Code with Kuber
  • Off-chain Code with Lucid
  • Homework

Lecture 5

  • Introduction
  • Values
  • A Simple Minting Policy
  • A More Realistic Minting Policy
  • NFT’s
  • Homework

Lecture 6

  • The State Monad in practice
  • Introduction to the Plutus Simple Model library
  • Unit Testing a Smart Contract
  • Property Testing a Smart Contract
  • Testing Smart Contracts with Lucid
  • Double Spending and Homework

Lecture 7

  • Introduction
  • Marlowe Playground Demo
  • Homework
  • Marlowe Starter Kit: Docker
  • Marlowe Starter Kit: Preliminaries
  • Marlowe Starter Kit: ZCB using the Marlowe Runtime command-line client
  • Marlowe Starter Kit: ZCB using the Marlowe Runtime REST API
  • Marlowe Starter Kit: ZCB using the Marlowe Runtime CLI
  • Marlowe Starter Kit: Escrow using the Marlowe Runtime’s REST API
  • Marlowe Starter Kit: Swap contract using the Marlowe Runtime’s REST API

Lecture 8

  • Introduction
  • The Private Testnet
  • Plutus & Staking
  • Trying it on the Testnet
  • Homework

Lecture 9

  • Creating our own Stablecoin Dapp
  • Using our Stablecoin UI
  • Stablecoin’s Oracle
  • Deploying Stablecoin’s Reference scripts
  • Minting Stablecoins
  • Burning Stablecoins and Liquidating positions
  • Testing our Stablecoin’s scripts
  • Homework

Lecture 10

  • Introduction

  • Developing a Dapp with MeshJS and PluTs (Typescript)

  • Developing smart contracts with PluTs (Typescript)

  • Developing smart contracts with OpShin and PyCardano (Python)

  • Developing smart contracts with Plutarch (Haskell)

  • Developing smart contracts with Aiken

    [CAPABILITY/ FEASIBILITY] Please describe the deliverables, outputs and intended outcomes of each milestone.

The deliverables of the lectures are each

  • 2-3h worth of video content per week

  • several coding assignments and solutions presented in the video lectures

    [RESOURCES & VALUE FOR MONEY] Please provide a detailed budget breakdown of the proposed work and resources.

The project will require 10 weeks of effort, each with 2-3h of content. The estimated amount of work to prepare each weeks content will likely amount to 10h per week.

Hence the total cost will be 10 x 10h x 192.5 ADA/h (~ $USD 64/h) = 19250 $ADA

[RESOURCES & VALUE FOR MONEY] Who is in the project team and what are their roles?

Niels Mündler aka nielstron is well-known in the Cardano Community. He has co-founded the MuesliSwap DEX and gave birth to the programming language OpShin. His background is computer science at ETH Zurich, Switzerland.

In the OpShin team, he is taking over the role of Founder, CTO and CEO, running the whole thing as a one-man show.

He is supported by Julius Frost, Boston U graduate and working in the ML field, who created the opshin pioneer program and is a highly experienced Python developer. He is a frequent contributer and maintainer and helps assessing the quality of submitted issues and PRs.

[RESOURCES & VALUE FOR MONEY] How does the cost of the project represent value for money for the Cardano ecosystem?

High quality content for learning the extremely simple to use language Python is lacking in the ecosystem. It requires an expert in the field to properly explain the details and shed light on the different aspects of writing Smart Contracts. Niels and Julius are such highly experienced experts in the field of Cardano and able to create the required content using their academic background.

Community Reviews (1)

Comments

Monthly Reports

close

Playlist

  • EP2: epoch_length

    Authored by: Darlington Kofa

    3m 24s
    Darlington Kofa
  • EP1: 'd' parameter

    Authored by: Darlington Kofa

    4m 3s
    Darlington Kofa
  • EP3: key_deposit

    Authored by: Darlington Kofa

    3m 48s
    Darlington Kofa
  • EP4: epoch_no

    Authored by: Darlington Kofa

    2m 16s
    Darlington Kofa
  • EP5: max_block_size

    Authored by: Darlington Kofa

    3m 14s
    Darlington Kofa
  • EP6: pool_deposit

    Authored by: Darlington Kofa

    3m 19s
    Darlington Kofa
  • EP7: max_tx_size

    Authored by: Darlington Kofa

    4m 59s
    Darlington Kofa
0:00
/
~0:00