Eopsin Versions Save

A simple pythonic programming language for Smart Contracts on Cardano

0.21.1

1 month ago

What's Changed

🐛 Bug fixes

  • Fix optimization levels not being applied properly, resulting in exceedingly large contracts. 9da7eb0353b30a31816d97b9f66604787ad9a323

🏕 Features

Full Changelog: https://github.com/OpShin/opshin/compare/0.21.0...0.21.1

0.21.0

2 months ago

What's Changed

Most notably, OpShin does now support passing in optimization settings from -O0 (no optimizations, just debugging) to -O3 (aggressive optimization, does not preserve semantics wrt. traces, i.e. removes logging and error reporting in certain places).

🐛 Bug fixes

🏕 Features

Full Changelog: https://github.com/OpShin/opshin/compare/0.20.0...0.21.0

0.20.0

4 months ago

This is the first version compatible with pycardano 0.10.0

What's Changed

🏕 Features

👒 Dependencies

Full Changelog: https://github.com/OpShin/opshin/compare/0.19.1...0.20.0

0.19.1

4 months ago

What's Changed

🏕 Features

🐛 Bug fixes

There was a bug in the type system that would match union type in function parameters in the wrong direction. I.e. if a function expects Union[A, B], the type system would accept a parameter of type Union[A, B, C] but not of type Union[A]. This has now been fixed.

Moreover there was a bug regarding the creation of functions in branches and merging their type definitions which would allow incorrectly typed bound variables inside the functions. I.e. both functions foo in an if/else branch bind the variable x also defined in the same branch. However one x is defined as A and one as B. Hence one foo function would expect A and one would expect B, whereas the type after merging was Union[A, B] and would allow assigning an incorrect value to x.

Finally a bug regarding the re-assignment of polymorphic functions was fixed. If a function decided to re-assign polymorphic functions such as print, the invocation of this function would fail during runtime.

All of the above bugs can only lead to funds being locked in Smart Contracts (due to the contract failing) and not invalid release of funds.

👒 Dependencies

Full Changelog: https://github.com/OpShin/opshin/compare/0.19.0...0.19.1

0.19.0

5 months ago

Moving to this minor version is greatly recommended, since contract sizes and costs are likely to experience 70% decrease or more due to #297

What's Changed

🏕 Features

🐛 Bug Fixes

  • Disallow retyping of variables to incompatible types by @nielstron in https://github.com/OpShin/opshin/pull/298
    • This patches a slip-through in the typechecker where a function could capture variables of invalid type.

💔 Breaking Changes

Retyping of variables is now allowed anymore (categorically) since #298 . Assertions on a variable type will still factually change the type but can only narrow down the type (thus compatible with the previously declared type) and are hence still allowed.

👒 Dependencies

Full Changelog: https://github.com/OpShin/opshin/compare/0.18.1...0.19.0

0.18.1

7 months ago

What's Changed

🏕 Features

Full Changelog: https://github.com/OpShin/opshin/compare/0.18.0...0.18.1

0.18.0

7 months ago

What's Changed

🏕 Features

👒 Dependencies

Full Changelog: https://github.com/OpShin/opshin/compare/0.17.0...0.18.0

0.17.0

8 months ago

What's Changed

🐛 Bugfixes

🏕 Features

👒 Dependencies

Full Changelog: https://github.com/OpShin/opshin/compare/0.16.2...0.17.0

0.16.1

10 months ago

What's Changed

🐛 Fixes

Full Changelog: https://github.com/OpShin/opshin/compare/0.16.0...0.16.1

0.16.0

10 months ago

What's Changed

🐛 Fixes

🏕 Features

👒 Dependencies

Full Changelog: https://github.com/OpShin/opshin/compare/0.15.2...0.16.0