206 Commits

Author SHA1 Message Date
1cdcb9150b Revamp (#235)
All checks were successful
Gajumaru Bytecode Tests / tests (push) Successful in -3m34s
Add Gitea tests
Rename
Remove oracle references
Package for zx

Reviewed-on: #235
Reviewed-by: dimitar.p.ivanov <dimitarivanov@qpq.swiss>
Co-authored-by: Craig Everett <zxq9@zxq9.com>
Co-committed-by: Craig Everett <zxq9@zxq9.com>
2025-01-22 21:12:54 +09:00
Hans Svensson
5e38d6e829 A few mandatory changes to FATE ops to drop Oracles 2024-03-07 12:18:24 +01:00
Hans Svensson
37808419a8 Bump version to 3.4.0 2023-06-22 10:12:46 +02:00
Hans Svensson
f4c3782888 Patch check_numbering to allow for DBG_ at end 2023-06-22 10:08:41 +02:00
Hans Svensson
1688f85f2b Add NETWORK_ID and push DBG_* to higher opcodes 2023-06-22 08:35:32 +02:00
Gaith Hallak
b38349274f
Bump version to 3.3.0 (#115) 2023-05-28 13:40:20 +03:00
Hans Svensson
b8d593e351
Add instructions for arbitrary sized byte arrays (#114)
* Encode/decode bytes()/{bytes, any} as bytes(-1)

* Add 5 new bytes instructions

* reorder instructions and clarify some operations
2023-05-27 17:13:20 +03:00
Gaith Hallak
0f7529b26a
Introduce debugging instructions (#113)
* Add DBGLOC fate op

* Add DBGDEF and DBGUNDEF

* Change the type of arg for dbgdef and dbgundef

* Change DBGUNDEF to end_bb = true

* No safe sanity check for dbgundef

* Rename DBGDEF and DBGUNDEF to DBG_DEF and DBG_UNDEF

* Revert "No safe sanity check for dbgundef"

This reverts commit ee4949777fd988b76b9f854a2523a64a6dcdf591.

* Rename DBGLOC to DBG_LOC

* Remove column from DBG_LOC

* Add DBG_CALL and DBG_RETURN

* Update the docs for debug opcodes

* Add a DBG_CALL_R for remote calls

* Remove is_tail_call from DBG_CALL_R

* Revert "Remove is_tail_call from DBG_CALL_R"

This reverts commit a620c9c34b1c0ace77253ec0eabe6ac0b8e77ad2.

* Revert "Add a DBG_CALL_R for remote calls"

This reverts commit a336314cfc3930b348fb73352de8c108eba72973.

* Revert "Add DBG_CALL and DBG_RETURN"

This reverts commit db9766ac746b7f2d34a6f09a2f528be07b4226ea.

* Add DBG_CONTRACT op

* Upgrade aeserialization dep

* Use aeserialization v1.0.0

* Use aeserialization tag v1.0.0

* Remove debug instructions from AEVM
2023-05-25 18:09:42 +03:00
Gaith Hallak
2a0a397afa
Bump version to 3.2.0 (#112)
* Bump version to 3.2.0

* Bump version in rebar.config
2022-10-07 13:25:57 +03:00
Radosław Rowicki
093bcd6204
Merge pull request #111 from aeternity/enable-fate-code-mods
Export FATE code setters
2022-10-03 14:33:59 +02:00
radrow
6601ad2d38 Enable FATE code modifications 2022-09-16 10:54:48 +02:00
Radosław Rowicki
8269dbd71e
Update rebar3 and aeserialization (#109)
* Update rebar3 and aeserialization

* Version
2022-07-27 17:22:42 +04:00
Hans Svensson
84f20ab683 Fix document generation script 2021-12-10 11:53:54 +01:00
Hans Svensson
822a269f75 Add OPCODES for bitwise operations, addr_to_byte and poseidon hash 2021-11-18 16:31:07 +01:00
Sean Hinde
52e9d30f76 Fix OTP-24 warnings and add OTP-24 compatible rebar3 2021-11-08 17:35:17 +01:00
radrow
326fca709f Add opcodes gen 2021-06-08 13:33:33 +02:00
radrow
e860e217a0 Better clone&create docs 2021-06-08 13:09:39 +02:00
radrow
bc48b5d62f Styling in doc gen 2021-06-08 11:43:36 +02:00
radrow
7b9c1b856b Upgrade doc generation 2021-06-08 11:26:18 +02:00
Hans Svensson
7d4f3fed10 BYTECODE_HASH should be cheaper 2021-04-30 12:05:17 +02:00
Hans Svensson
1bb24a485b Revert CALL_R/GR/PGR gas changes 2021-04-30 09:14:03 +02:00
Hans Svensson
e4d46bd17a Adjust FATE OPs gas price for Iris 2021-04-29 15:16:48 +02:00
Hans Svensson
0318c60caf Add mechanism for pricing FATE ops differently in IRIS 2021-04-28 13:18:56 +02:00
radrow
69110b2ee8 Rename TX_FEE to just FEE 2021-04-26 15:19:59 +02:00
radrow
b0263319e3 Add TX_FEE 2021-04-26 14:23:20 +02:00
Artur Puzio
fe11ee31ab
Restore old binary and string comparison
Binary and string comparison is under consensus

This partially reverts commit d16f9a9579d0b901d8deb17dec87f6aa36d09744.
2021-04-14 13:07:24 +02:00
Artur Puzio
d16f9a9579
Compare binaries and strings in standard manner
By first different byte, if one is prefix of another than prefix is
smaller
2021-04-07 11:31:02 +02:00
Artur Puzio
f53f61e554
Comparison cleanup
- more verbose comparison function
- adjusted bytes and bytecode comparison for consistency
- fixed oracle query type
2021-04-07 11:30:53 +02:00
radrow
1498e1cdc2 Remove CREATE_G 2021-03-24 14:41:44 +01:00
radrow
41b80b5d44 Gas versions 2021-03-24 14:22:09 +01:00
radrow
8d447e803b CREATE and CLONE now push to the stack 2021-03-23 20:37:36 +01:00
radrow
83616392e1 Add CREATE, CLONE and BYTECODE_HASH opcodes. Add bytecode typerep and datatype.
Format fixes. Changed type of BLOCKHASH to variant.

Fixed number of parameters to include target

Changed op args

Protected create

Make new type store a SERIALIZED CODE (instead of RAW BYTECODE)

Fix test

Format

Make create not protected

format

Fix serialization of fate_code type

Align

Add rebar3

Use shipped rebar3

Fix serialization, test

Fix tests

Rename fate_code to contract_bytearray

Update README
2021-03-23 12:27:35 +01:00
Artur Puzio
b30f8a2bfd
Avoid unnecessery calls to eblake2
We frequently need identifier of init function. Store it precalculated
in headers.
2021-03-23 09:27:25 +01:00
Ulf Norell
e5bdf583f9 Add protected remote call instruction 2020-03-02 08:40:04 +01:00
Ulf Norell
719bf26a38 Set store map size theshold to 0 ifdef TEST 2020-03-02 08:37:30 +01:00
Hans Svensson
36559842ae Char.to_upper/lower isn't feasible do String.to_upper/lower 2020-02-26 14:06:50 +01:00
Hans Svensson
167bfcc0e6 Add String.to/from_list Char.to/from_int and Char.to_upper/lower as operations 2020-02-24 10:09:23 +01:00
Hans Svensson
2f11143e5a Align operators (missing spaces) 2020-02-24 10:08:48 +01:00
Hans Svensson
370c7387a9 Add AUTH_TX to FATE operations 2020-02-11 09:34:48 +01:00
Hans Svensson
4565188c6a Add AENS_LOOKUP and ORACLE_EXPIRY as FATE operations 2020-02-03 13:19:08 +01:00
Hans Svensson
e4b09d7c5c Add FATE-ops for BLS12-381 2019-11-27 09:06:20 +01:00
skkw
211ee74df2 fixed documenting of AENS_UPDATE type 2019-11-18 16:00:36 +01:00
skkw
38f4f0ecd7
Merge pull request #81 from aeternity/PT-158904718-aens-update-sophia
add support for AENS.update call
2019-11-12 14:17:11 +01:00
Hans Svensson
3e7a8e4a69 TYPE_BYTES was missing in IS_TYPE_TAG 2019-10-25 11:30:47 +02:00
Ulf Norell
48cfbd03b0 Recalibrate the store map threshold
Now that we charge gas for store writes the math is changed.
2019-10-01 10:52:54 +02:00
Ulf Norell
04878c5ed9 Add function to compute the byte size of a heap_value
Used to compute store gas cost in AEVM
2019-10-01 10:52:09 +02:00
Ulf Norell
176df87bb0 Add ADDRESS_TO_CONTRACT 2019-09-30 13:14:11 +02:00
Ulf Norell
872766260b Bump gas cost for non-trivial instructions 2019-09-30 11:39:38 +02:00
skkw
f184abeb87 add support for AENS.update call 2019-09-10 15:46:04 +02:00
Ulf Norell
17c9656f5c Add FATE instructions for Bytes.concat and Bytes.split 2019-09-09 14:45:23 +02:00