TOC
This commit is contained in:
parent
ce4d1cf978
commit
8100912dfc
@ -1,12 +1,23 @@
|
|||||||
<!-- IMPORTANT: REMEMBER TO UPDATE THE TABLE OF CONTENTS AFTER YOUR EDIT -->
|
<!-- IMPORTANT: REMEMBER TO UPDATE THE TABLE OF CONTENTS AFTER YOUR EDIT -->
|
||||||
|
|
||||||
|
# The Sophia Language
|
||||||
|
An Æternity BlockChain Language
|
||||||
|
|
||||||
|
The Sophia is a language in the ML family. It is strongly typed and has
|
||||||
|
restricted mutable state.
|
||||||
|
|
||||||
|
Sophia is customized for smart contracts, which can be published
|
||||||
|
to a blockchain (the Æternity BlockChain). Thus some features of conventional
|
||||||
|
languages, such as floating point arithmetic, are not present in Sophia, and
|
||||||
|
some blockchain specific primitives, constructions and types have been added.
|
||||||
|
|
||||||
**Table of Contents**
|
**Table of Contents**
|
||||||
|
|
||||||
- [-](#-)
|
- [Language Features](#language-features)
|
||||||
- [Language Features](#language-features)
|
|
||||||
- [Contracts](#contracts)
|
- [Contracts](#contracts)
|
||||||
- [Calling other contracts](#calling-other-contracts)
|
- [Calling other contracts](#calling-other-contracts)
|
||||||
- [Protected contract calls](#protected-contract-calls)
|
- [Protected contract calls](#protected-contract-calls)
|
||||||
|
- [Contract factories and child contracts](#contract-factories-and-child-contracts)
|
||||||
- [Mutable state](#mutable-state)
|
- [Mutable state](#mutable-state)
|
||||||
- [Stateful functions](#stateful-functions)
|
- [Stateful functions](#stateful-functions)
|
||||||
- [Payable](#payable)
|
- [Payable](#payable)
|
||||||
@ -37,7 +48,7 @@
|
|||||||
- [Example](#example)
|
- [Example](#example)
|
||||||
- [Sanity checks](#sanity-checks)
|
- [Sanity checks](#sanity-checks)
|
||||||
- [AENS interface](#aens-interface)
|
- [AENS interface](#aens-interface)
|
||||||
- [Example](#example-1)
|
- [Example](#example)
|
||||||
- [Events](#events)
|
- [Events](#events)
|
||||||
- [Argument order](#argument-order)
|
- [Argument order](#argument-order)
|
||||||
- [Compiler pragmas](#compiler-pragmas)
|
- [Compiler pragmas](#compiler-pragmas)
|
||||||
@ -50,7 +61,7 @@
|
|||||||
- [Layout blocks](#layout-blocks)
|
- [Layout blocks](#layout-blocks)
|
||||||
- [Notation](#notation)
|
- [Notation](#notation)
|
||||||
- [Declarations](#declarations)
|
- [Declarations](#declarations)
|
||||||
- [Types](#types-1)
|
- [Types](#types)
|
||||||
- [Statements](#statements)
|
- [Statements](#statements)
|
||||||
- [Expressions](#expressions)
|
- [Expressions](#expressions)
|
||||||
- [Operators types](#operators-types)
|
- [Operators types](#operators-types)
|
||||||
@ -58,17 +69,6 @@
|
|||||||
- [Examples](#examples)
|
- [Examples](#examples)
|
||||||
- [Delegation signature](#delegation-signature)
|
- [Delegation signature](#delegation-signature)
|
||||||
|
|
||||||
|
|
||||||
## The Sophia Language
|
|
||||||
An Æternity BlockChain Language
|
|
||||||
|
|
||||||
The Sophia is a language in the ML family. It is strongly typed and has
|
|
||||||
restricted mutable state.
|
|
||||||
|
|
||||||
Sophia is customized for smart contracts, which can be published
|
|
||||||
to a blockchain (the Æternity BlockChain). Thus some features of conventional
|
|
||||||
languages, such as floating point arithmetic, are not present in Sophia, and
|
|
||||||
some blockchain specific primitives, constructions and types have been added.
|
|
||||||
## Language Features
|
## Language Features
|
||||||
### Contracts
|
### Contracts
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ However, note that errors that would normally consume all the gas in the
|
|||||||
transaction still only uses up the gas spent running the contract.
|
transaction still only uses up the gas spent running the contract.
|
||||||
|
|
||||||
|
|
||||||
### Contract factories and child contracts
|
#### Contract factories and child contracts
|
||||||
|
|
||||||
Since the version 5.0.0 Sophia supports deploying contracts by other
|
Since the version 5.0.0 Sophia supports deploying contracts by other
|
||||||
contracts. This can be done in two ways:
|
contracts. This can be done in two ways:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user