|
4 | 4 |
|
5 | 5 | ErgoScript is a language to write contracts for [Ergo |
6 | 6 | blockchain](https://ergoplatform.org). ErgoScript contracts can be compiled to |
7 | | -[ErgoTrees](https://ergoplatform.org/docs/ErgoTree.pdf), typed abstract serialized and stored |
| 7 | +[ErgoTrees](https://ergoplatform.org/docs/ErgoTree.pdf), typed abstract syntax treeы which are serialized and stored |
8 | 8 | in UTXOs. |
9 | 9 |
|
10 | 10 | A good starting point to writing contracts is to use [ErgoScript by |
@@ -221,7 +221,7 @@ class Numeric { |
221 | 221 |
|
222 | 222 | The only exception for conversions is about BigInt to and from UnsignedBigInt. To convert from signed big int to unsigned, use |
223 | 223 | `.toUnsigned` method to convert signed big integer to unsigned, or `.toUnsignedMod(m)` to convert modulo `m` (and modulo |
224 | | - operation is cryptographic, ie always returns positive number modulo `m`). To convert from unsigned big int to signed, |
| 224 | + operation is cryptographic, i.e. always returns positive number modulo `m`). To convert from unsigned big int to signed, |
225 | 225 | use `.toSigned`. |
226 | 226 |
|
227 | 227 | All the predefined numeric types inherit Numeric class and its methods. |
@@ -1017,12 +1017,11 @@ satisfying some predicate (condition) |
1017 | 1017 | val ok = OUTPUTS.exists { (box: Box) => box.value > 1000 } |
1018 | 1018 | ``` |
1019 | 1019 |
|
1020 | | -### Predefined global functions |
| 1020 | +### Global functions |
1021 | 1021 |
|
1022 | 1022 | There are some functions which do not belong to other types, thus they put under `Global` type. Those functions are: |
1023 | 1023 |
|
1024 | 1024 |
|
1025 | | - |
1026 | 1025 | ``` |
1027 | 1026 | { |
1028 | 1027 | /** The generator g of the group is an element of the group such that, when written |
@@ -1084,7 +1083,7 @@ src == restored |
1084 | 1083 | ``` |
1085 | 1084 |
|
1086 | 1085 |
|
1087 | | -### Predefined global functions |
| 1086 | +### Predefined functions |
1088 | 1087 | <a name="PredefinedFunctions"></a> |
1089 | 1088 |
|
1090 | 1089 | ErgoScript standard library include predefined functions that can be called |
|
0 commit comments