← All repos

opshin

A simple pythonic programming language for Smart Contracts on Cardano

cardanocompilerhacktoberfestlanguageprogramming-languagepythonsmart-contractsvalidator
Browse cluster: Cosmos blockchain and smart contract languages
1,995commits
13contributors
2languages

Tech stack & purpose

OpShin is a compiler for writing smart contracts on the Cardano blockchain using a strict subset of Python. The project aims to ensure that compiled programs are both valid Python and produce identical results whether executed in Python or on-chain. Built in Python, OpShin features static type inference, multiple intermediate representations (Plutus and UPLC), and a standard library split between general utilities and Cardano ledger-specific code. The compiler uses a visitor pattern throughout its architecture, with compilation occurring in three main stages: normalization and optimization, type inference, and transpilation. The OpShin project is maintained by contributors acknowledged through GitHub and Patreon sponsorship, with supporters including organizations like Inversion Dev, MuesliSwap, Aada Finance, and Kreate Community.

Languages

Python
99.9%
Shell
0.1%

Contributors