69 Commits

Author SHA1 Message Date
Jacek Sieka
0a7b4cecce
chore: v0.7.3 (#16) v0.7.3 2025-12-10 21:29:50 +01:00
markspanbroek
deccf3e1be
chore: update dependencies (#15)
* chore: update nimcrypto dependency

* chore: remove dependency 'upraises'
2025-12-10 21:08:17 +01:00
Arnaud
977d6f5fa3
chose: remove stew upper bound version 2025-05-28 12:48:31 +02:00
Arnaud
b9696af998
Remove nim-stew upper bound 2025-05-23 12:38:21 +02:00
Eric
524bda044b
chore: version 0.7.1 (#12) 0.7.1 2025-02-13 17:31:47 +11:00
Eric
c0c0832676
chore: bump stint (#11) 2025-02-13 15:37:59 +11:00
Arnaud
36dd1086ab
Update for Nim 2.0.x (#9)
* Update for Nim 2.0.x

* Update to Nim 2.0.14

* use version range for deps, bump nimcrypto

* remove 1.6 from ci test

* Update the lock file again

* fromBytes -> fromBytesBE

---------

Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
0.7.0
2025-02-13 15:24:34 +11:00
Mark Spanbroek
9ea526814d version 0.6.0
possibly breaking changes in nimcrypto,
which was updated from 0.5.4 to 0.6.0
0.6.0
2023-08-29 12:05:20 +02:00
Mark Spanbroek
5a215dc1c2 update nim version 1.6.x in CI 2023-08-29 12:05:20 +02:00
Mark Spanbroek
4da6e9cddd update nimcrypto and questionable 2023-08-29 12:05:20 +02:00
Mark Spanbroek
87894f69aa version 0.5.0 0.5.0 2023-06-29 11:12:33 +02:00
Mark Spanbroek
c076aca82c Fix test 2023-06-29 11:12:15 +02:00
Emil Ivanichkov
1e72c2f10e Add generic decode function 2023-06-29 11:11:02 +02:00
Mark Spanbroek
754a59e145 Drop support for Nim < 1.6
Because the stint library has done as well,
and because it's not versioned we can't
remain on an older version of stint.
2023-06-29 11:07:00 +02:00
Mark Spanbroek
c82a70b353 Fix warnings 2023-06-29 11:07:00 +02:00
Mark Spanbroek
a5f676eecc Fixes after breaking changes in stew and stint 2023-06-29 11:07:00 +02:00
Mark Spanbroek
61f8f59b39 version 0.4.6 0.4.6 2022-09-14 09:16:12 +02:00
Mark Spanbroek
f23f3e8aba Support Nim 1.2.x 2022-09-14 09:15:09 +02:00
Mark Spanbroek
1ac5eca540 Support distinct types 2022-09-14 09:15:09 +02:00
Ivan Yonchovski
1d025ef11e Add setup files 2022-07-13 09:14:54 +02:00
Mark Spanbroek
df55276f1d version 0.4.5 0.4.5 2022-06-15 09:53:07 +02:00
Mark Spanbroek
f4ea25cb57 Support enums in a function signature 2022-06-15 09:53:07 +02:00
Mark Spanbroek
b111c27b61 version 0.4.4 0.4.4 2022-04-13 06:48:23 +02:00
Mark Spanbroek
8a170e3261 Fix for nim 1.2.x 2022-04-13 06:48:23 +02:00
Mark Spanbroek
01c11eecb0 Custom encoding can use startTuple() and finishTuple() 2022-04-13 06:48:23 +02:00
markspanbroek
fd377e59da
Merge pull request #1 from status-im/fix-bytes-n
Fix selector for larger byte arrays
0.4.3
2022-04-07 15:35:24 +02:00
Mark Spanbroek
8e46b6b5f3 version 0.4.3 2022-04-07 14:40:23 +02:00
Mark Spanbroek
d179f9a11d Fix solidity type for byte arrays greater than 32 bytes 2022-04-07 14:39:46 +02:00
Mark Spanbroek
b386a18e3e Remove asdf .tool-versions 2022-04-07 14:38:09 +02:00
Mark Spanbroek
0d9a25ec0a version 0.4.2 0.4.2 2022-02-02 11:52:10 +01:00
Mark Spanbroek
0c3dca0aa1 Calculate Event topic 2022-02-02 11:51:30 +01:00
Mark Spanbroek
a2b8daa320 version 0.4.1 0.4.1 2022-01-19 09:48:13 +01:00
Mark Spanbroek
2a8133b349 Fixes for Nim 1.2.x 2022-01-19 09:48:13 +01:00
Mark Spanbroek
ad3d2f7a4b Support calculation of solidity function selectors 2022-01-19 09:18:46 +01:00
Mark Spanbroek
e3c9aa4368 Add support for Ethereum addresses 2022-01-19 09:16:22 +01:00
Mark Spanbroek
9aaafdb5b5 Add license 2022-01-10 11:17:48 +01:00
Mark Spanbroek
4eb7e750a8 version 0.4.0 0.4.0 2021-12-09 12:04:33 +01:00
Mark Spanbroek
971cdad25d Simplify encoding/decoding of signed integers
Fixes error in Nim 1.4.8
2021-12-09 11:48:14 +01:00
Mark Spanbroek
a0fad53523 Support decoding of signed integers 2021-12-09 10:38:34 +01:00
Mark Spanbroek
8131170475 Support encoding of signed integers 2021-12-08 17:27:54 +01:00
Mark Spanbroek
56005d623d version 0.3.0 0.3.0 2021-12-02 11:23:34 +01:00
Mark Spanbroek
d0b1c1d9b0 Reorder decoding funcs
Now all decode overloads are in one place
2021-12-02 11:21:06 +01:00
Mark Spanbroek
f8a226b8d6 Add test for embedding custom types in tuples 2021-12-02 11:15:02 +01:00
Mark Spanbroek
46b1933aff Decoder: tuples do not have an offset, their elements do
No longer read offset when starting dynamic tuple,
read it when reading a dynamic element in a tuple.

Remove Tuple.dynamic, because it's no longer needed.
2021-12-02 11:13:50 +01:00
Mark Spanbroek
f40101100e Support encoding and decoding of custom types 2021-12-01 17:44:46 +01:00
Mark Spanbroek
987d6f4028 Fail gracefully when decoding enum fails 2021-12-01 17:26:35 +01:00
Mark Spanbroek
f1d85a6d84 Fail gracefully when decoding range fails 2021-12-01 17:26:05 +01:00
Mark Spanbroek
51da2802aa Decoding fails gracefully in several error cases 2021-12-01 16:34:02 +01:00
Mark Spanbroek
a43c7b21a4 Add support for decode failures by returning Result type 2021-12-01 13:01:28 +01:00
Mark Spanbroek
319418cab7 Remove procs from public API
Since the introduction of the new API for encoding
and decoding of tuples, these procs are no longer
required to be on the external API.
2021-12-01 12:09:42 +01:00