Erik Stenman
af4f2ad795
Clean up.
2019-03-05 14:24:46 +01:00
Erik Stenman
abae4a7602
Upgrade to latest aebytecode.
2019-03-05 14:24:22 +01:00
Erik Stenman
1cfd4c6f24
Add release target.
2019-03-05 14:24:22 +01:00
Ulf Norell
f07a49c91d
Skeleton for Fate backend
2019-03-05 14:23:19 +01:00
Erik Stenman
e33e4cf2cd
Use fortuna version of aebytecode in fortuna version of aesophia.
2019-03-05 14:22:59 +01:00
Hans Svensson
cdc7b901e6
Merge pull request #35 from aeternity/proper_version
...
Add a VERSION file at the top level and go from there
2019-03-04 14:20:59 +01:00
Hans Svensson
f266c5eed8
Add a VERSION file at the top level and go from there
2019-03-04 12:17:54 +01:00
Hans Svensson
4d9d3077ad
Merge pull request #34 from aeternity/fix_create_calldata_again_again
...
Fix calldata creation for contracts involving oracles
2019-03-01 15:03:51 +01:00
Ulf Norell
3efde2a2a1
handle hash literals when permissive_address_literals
2019-03-01 11:36:28 +01:00
Ulf Norell
edc37bcf1b
add case for signature literals to pretty printer
2019-03-01 11:08:28 +01:00
Ulf Norell
20f2a05638
fix problem with indent detection when inserting the __call function
2019-03-01 11:08:14 +01:00
Ulf Norell
c2a5ed28cf
please dialyzer
2019-03-01 11:07:46 +01:00
Ulf Norell
56f70fea6c
test oracle calldata fixes
2019-03-01 09:36:43 +01:00
Ulf Norell
9e908369ec
check create_calldata contract without the __call function first
2019-03-01 09:21:56 +01:00
Ulf Norell
9984679a24
better handling of permissive_literals
...
...that doesn't make the compiler crash
2019-03-01 09:02:55 +01:00
Robert Virding
8f27168908
Merge pull request #31 from aeternity/new-aci-generator
...
New aci generator
2019-02-28 18:41:59 +01:00
Robert Virding
8619f47ee6
Add very basic ACI testing
...
These should be extended and expanded.
2019-02-28 16:13:57 +01:00
Robert Virding
0d56130baa
Use correct parse error formats
2019-02-28 16:13:57 +01:00
Robert Virding
7448da16bb
Make dialyzer happy and keep it quiet
2019-02-28 16:13:57 +01:00
Robert Virding
6f582af83e
Add new encode function interface
2019-02-28 16:13:57 +01:00
Robert Virding
931f2d3dcb
Move module documentation to separate files
2019-02-28 16:13:57 +01:00
Robert Virding
5d116b2e5a
Make the decoder return a binary and untabify
2019-02-28 16:13:57 +01:00
Robert Virding
cea581988d
Don't decode init function as it should never be called
2019-02-28 16:13:57 +01:00
Robert Virding
2f36380a81
Add handling of private and stateful functions
2019-02-28 16:13:57 +01:00
Robert Virding
d330133b3f
First version, very much WIP
2019-02-28 16:13:57 +01:00
Hans Svensson
6fccc902d0
Merge pull request #33 from aeternity/fix_create_calldata_again
...
Correctly handle ArgTypes in create_calldata
2019-02-28 14:57:54 +01:00
Hans Svensson
eb77a73d15
Correctly handle ArgTypes in create_calldata
2019-02-28 14:44:16 +01:00
Hans Svensson
62aa06cc3a
Merge pull request #32 from aeternity/fix_create_calldata
...
Fix handling of init in create_calldata
2019-02-28 10:12:15 +01:00
Hans Svensson
6d6fff2612
Better error handling when init is present but wrong
2019-02-28 09:56:16 +01:00
Hans Svensson
95bf0d4b6c
Fix handling of init in create_calldata
2019-02-27 20:42:42 +01:00
Hans Svensson
e94c1f9d84
Merge pull request #30 from aeternity/to-sophia-value-revisited
...
To sophia value revisited
2019-02-27 11:36:03 +01:00
Hans Svensson
a263b09e57
Remove leftover io:format
2019-02-27 11:00:00 +01:00
Hans Svensson
5a3c8530b4
Dialyzer found an error
2019-02-26 21:03:52 +01:00
Ulf Norell
4c79f7b9f2
tests for calldata creation
2019-02-26 17:41:04 +01:00
Ulf Norell
e0fff00e64
get rid of byte code argument to create_calldata
...
This means that there is less type checking at calldata creation time.
Make sure that we check that the function hash exists before calling
a contract!
2019-02-26 17:31:53 +01:00
Hans Svensson
7c95aafbb8
Merge pull request #29 from aeternity/more_better_errors
...
Improve Events error message + more tests
2019-02-26 16:21:35 +01:00
Ulf Norell
5a4a84805f
change create_calldata function to also take fun name and arguments
2019-02-26 15:01:27 +01:00
Ulf Norell
cc3e322179
new version of to_sophia_value
...
takes function name and binary blob
2019-02-26 14:34:57 +01:00
Ulf Norell
f16d699f6d
Merge pull request #28 from aeternity/decode-vm-to-sophia
...
Add function to decode VM values to Sophia abstract syntax
2019-02-26 09:00:48 +01:00
Hans Svensson
7b474e439c
Improve Events error message + more tests
2019-02-25 21:53:52 +01:00
Ulf Norell
eb926b1352
fix type signature
2019-02-25 14:42:47 +01:00
Ulf Norell
dc4a2ca2f9
tests for aeso:compiler:to_sophia_value/2
2019-02-25 14:24:16 +01:00
Ulf Norell
f866e24624
pretty print nullary constructor applications without the parens
2019-02-25 14:23:44 +01:00
Ulf Norell
ccad660eac
add compiler function to translate a vm value to Sophia AST
2019-02-25 14:23:23 +01:00
Robert Virding
202a06a580
Merge pull request #25 from aeternity/PT-156466783-namespaces
...
PT-156466783 namespaces
2019-02-13 15:54:07 +01:00
Ulf Norell
b5b0d30fc4
Less hacky handling of Chain.event
2019-02-08 14:48:38 +01:00
Ulf Norell
236ef6eb89
Dialyzed!
2019-02-08 14:16:06 +01:00
Ulf Norell
aa6d56ce9b
Allow passing an explicit "file system" for included files to the compiler
2019-02-08 14:16:06 +01:00
Ulf Norell
0b86cdc318
Clean up test case
2019-02-08 14:16:06 +01:00
Ulf Norell
27cbedc7ab
Further generalise used names computation
2019-02-08 14:16:06 +01:00