Ulf Norell
e198dd8311
Merge pull request #113 from aeternity/test-fixes
...
Update test case
2019-08-05 09:31:31 +02:00
Ulf Norell
46a996ead8
Update test case
2019-08-05 09:20:09 +02:00
Hans Svensson
2bf6ab7655
Merge pull request #110 from radrow/patch-1
...
Covered qid case in ast_typerep
2019-08-05 09:15:12 +02:00
Ulf Norell
5ff7aa5821
Merge pull request #109 from radrow/tuple-type
...
Change tuple typing syntax
2019-08-05 09:13:30 +02:00
Radosław Rowicki
045df292be
Fixed pretty printing and pattern split ( #111 )
2019-07-29 14:27:01 +03:00
Radosław Rowicki
c97eb99921
Fixed double parens in ACI pp
...
Co-Authored-By: Ulf Norell <ulf.norell@gmail.com>
2019-07-29 11:01:38 +02:00
Radosław Rowicki
4c78ab3aee
Covered qid case in ast_typerep
...
Because `qid` was not accepted the following code
```
contract Test =
datatype myOption('a) = MyNone | MySome('a)
entrypoint optionFn(v: myOption(string)): myOption(string) = v
```
Used to lead to `function_clause` error.
Bug copyright (c) @nduchak
2019-07-26 15:31:06 +02:00
radrow
5ff983b0b3
Updated tests
2019-07-22 13:56:45 +02:00
Hans Svensson
4bf382a997
Merge pull request #107 from radrow/master
...
Changed 'require' function return type to Unit
2019-07-20 21:05:40 +02:00
radrow
4c72045a86
Changed tuple type parsing rule
2019-07-20 19:00:53 +02:00
radrow
7daf218b2a
Changed 'require' function return type to Unit
2019-07-19 18:10:54 +02:00
radrow
973850e6a6
Fix pat split
2019-07-11 18:28:50 +02:00
Tobias Lindahl
19948c6aad
Merge pull request #104 from aeternity/PT-166868668-decode-fate-revert
...
Properly decode revert strings for fate as well
2019-07-09 16:52:35 +02:00
Tobias Lindahl
c4660fe0cf
Properly decode revert strings for fate as well
2019-07-09 16:24:56 +02:00
Tobias Lindahl
e326908623
Merge pull request #103 from aeternity/PT-166868668-fate-abort
...
Use EXIT for internal errors to burn all gas
2019-07-09 15:47:46 +02:00
Tobias Lindahl
9be528a579
Use EXIT for internal errors to burn all gas
2019-07-09 14:36:09 +02:00
Tobias Lindahl
f67d7354a2
Merge pull request #102 from aeternity/PT-166927306-names-as-strings
...
Use a name string rather than a name hash in transfer and revoke
2019-07-01 10:55:38 +02:00
Tobias Lindahl
6f873e45b8
Use a name string rather than a name hash in transfer and revoke
2019-07-01 07:42:08 +02:00
Hans Svensson
8c3b675b0d
Merge pull request #101 from aeternity/release-3.2
...
Prepare version 3.2.0
v3.2.0
2019-06-28 12:24:44 +02:00
Hans Svensson
41011d15cc
Prepare 3.2.0
2019-06-28 11:51:51 +02:00
Ulf Norell
9e0f84ec67
Update changelog
2019-06-28 11:51:51 +02:00
Ulf Norell
8b4f471d42
Merge pull request #100 from aeternity/private-function-revamp
...
Private function revamp
2019-06-28 10:55:10 +02:00
Ulf Norell
dc5fd74934
Fix include path not being added if giving explicit options
2019-06-28 10:28:16 +02:00
Ulf Norell
6a59e455ce
Update tests for entrypoints
2019-06-28 09:42:28 +02:00
Ulf Norell
85408a12a2
Update ACI to new entrypoint declarations
...
also make ACI understand namespaces
2019-06-28 09:36:07 +02:00
Ulf Norell
79137e058e
Revamp private/public functions
...
Problem: having public as the default makes it very easy to accidentally
export local function by forgetting the `private` modifier.
Solution: functions are private by default and must be declared as `entrypoint`s
to be exported. So `entrypoint foo() = ...` instead of `function foo() = ...`.
We still accept the `private` modifier although it is redundant.
2019-06-28 09:36:07 +02:00
Hans Svensson
dd5fc17554
Merge pull request #99 from aeternity/PT-166897066-run_http_contracts_on_fate
...
Pt 166897066 run http contracts on fate
2019-06-28 07:49:04 +02:00
Hans Svensson
a617a6469d
Change Chain.block_hash to return option(hash)
2019-06-27 14:19:39 +02:00
Hans Svensson
502a4e6464
Fix to_sophia_value for FATE backend
2019-06-27 10:42:31 +02:00
Hans Svensson
c647a2cd34
Merge pull request #98 from aeternity/namespace-fix
...
Namespace fix
2019-06-27 09:34:48 +02:00
Ulf Norell
292d1aa65b
Fix namespace bug
...
Don't unfold record types until all contracts/namespaces have been checked
2019-06-27 09:15:27 +02:00
Ulf Norell
259bae1720
Test case for another name space bug
2019-06-27 09:15:27 +02:00
Hans Svensson
a47fa59f5b
Merge pull request #97 from aeternity/PT-166899532-static_hashing_for_events
...
Pre-compute and switch to Blake2b for event name hash
2019-06-26 14:22:43 +02:00
Hans Svensson
2bf5e59e2b
Pre-compute and switch to Blake2b for event name hash
2019-06-26 13:34:57 +02:00
Tobias Lindahl
02ba4b265b
Merge pull request #96 from aeternity/PT-166233700-fate-nameservice
...
Implement aens instructions for fate
2019-06-26 13:33:47 +02:00
Tobias Lindahl
c26ace6c2c
Implement aens instructions for fate
2019-06-26 13:24:48 +02:00
Hans Svensson
cfb1605a76
Merge pull request #95 from aeternity/PT-166233670-fate-events
...
PT-166233670 FATE events
2019-06-26 08:48:44 +02:00
Ulf Norell
20085301ef
aebytecode commit
2019-06-25 19:58:14 +02:00
Ulf Norell
3c8d9561a0
More thorough test for different event types
2019-06-25 19:58:14 +02:00
Ulf Norell
523d6b03a9
Allow bytes(N) as indices if N =< 32 and payload if N > 32
2019-06-25 19:58:14 +02:00
Ulf Norell
961f557215
Events now compile to FATE
2019-06-25 19:58:14 +02:00
Ulf Norell
0cf6a52b26
Compile events to FATE
2019-06-25 19:58:14 +02:00
Ulf Norell
a3efaf71a7
Compile oracle check functions in FATE backend
2019-06-25 16:27:48 +02:00
Ulf Norell
c7a8a4af22
Merge pull request #94 from aeternity/bytes-to-x
...
Add Bytes.to_int and Bytes.to_str
2019-06-24 14:56:20 +02:00
Ulf Norell
0ef7c59771
Fix issues discovered by dialyzer
2019-06-24 14:29:20 +02:00
Ulf Norell
894ae19435
aebytecode commit
2019-06-24 14:25:08 +02:00
Ulf Norell
cee8a4ecf3
Compile bytes_to_X in AEVM backend
2019-06-24 14:09:20 +02:00
Ulf Norell
bde5a3c071
Compile bytes_to_X in FATE backend
2019-06-24 11:44:23 +02:00
Ulf Norell
6612c29758
Type check Bytes.to_X builtins
2019-06-24 11:44:07 +02:00
Ulf Norell
2e0c44862c
Merge pull request #93 from aeternity/PT-166788837-bytes
...
PT-166788837 bytes
2019-06-24 07:18:33 +02:00