Measures Concepts
GitHub icon

Sophia

Sophia - Contract language

< >

Sophia is a contract language created in 2018 by Robert Virding.

Source code:
git clone https://github.com/aeternity/aesophia
#1392on PLDB 6Years Old

Stand alone compiler for the Sophia smart contract language


Sophia Keywords
contract library entrypoint function stateful state hash signature tuple list address string bool int record datatype type option oracle oracle_query Call Bits Bytes Oracle String Crypto Address Auth Chain None Some bits bytes event let map private public true false var if else throw

Language features

Feature Supported Token Example
Conditionals ✓
Access Modifiers ✓
Functions ✓
Exceptions ✓
Booleans ✓ true false
Comments ✓
// A comment
MultiLine Comments ✓ /* */
/* A comment
*/
Line Comments ✓ //
// A comment
Strings ✓

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout