New Major Release for SmartPy, February 2021

SmartPy

New compilation interface and targets

Breaking change in the CLI

SmartPy.sh compile <script.py> <class-call> <output-directory>
SmartPy.sh compile <script.py> <output-directory>
sp.add_compilation_target(name, contract, storage=None)

One example

import smartpy as spclass MyContract(sp.contract):
...
# A contract with an empty (unit) storage
sp.add_compilation_target("min_comp", MyContract())
# A contract with a simple int storage
sp.add_compilation_target("min_comp_int", MyContract(x = 1))
~/smartpy-cli/SmartPy.sh compile script.py output_dir

Immediate benefits of the change

New outputs in scenarios: tests and compilation targets

New files

Experimental html output

New Origination Page in SmartPy.io

New elements for EDO

--

--

--

An intuitive and effective smart contracts language and development platform for Tezos. In Python.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

If you like blogging, you should try podcasting. Here’s how to get started.

My Data science SCA Mentorship Quest ;Month 2.

Significance of Cloud-based Communications Service in Telecom Industry

Scalability, Zero Downtimes and Transparent Cloud Pricing. Swiss Alpine Club Goes Digital

Microsoft, GitHub and OpenBOM vision

Federated GraphQL @ Walmart

Building an API with Firebase

Scala tricks I wish I knew earlier

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
SmartPy.io

SmartPy.io

An intuitive and effective smart contracts language and development platform for Tezos. In Python.

More from Medium

Why Should We Care About Blockchain?

A proposed list of remedies in Adamnite for common errors in smart contracts

DAOs: What you probably didn’t know about them.

" While we were absent minded, a virus has eaten deep into Crypto and will soon take all your money.