Skip to content

Commit

Permalink
Release version 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoPascal31 committed Oct 21, 2023
1 parent 011b236 commit 4ecf4f8
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Contains functions to handle ZK proofs. Currently this module only support Groth
## Tests
Unit tests can be found in pact/test_repl.

All functions are tested, but currently the coverage is not 100%. Tested with **Pact 4.4.1**
All functions are tested, but currently the coverage is not 100%. Tested with **Pact 4.9.0**

The ```pact``` executable is needed to run the tests.

Expand Down Expand Up @@ -284,5 +284,5 @@ The documentation can be generated using sphinx:
```make doc```

## Todo
* Add some FV: it looks like that typechecks with lambda will be fixed in the next stable version of Pact.
* Add some FV.
* Benchmarks (gas) the functions
41 changes: 41 additions & 0 deletions docs/source/deployed.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,47 @@
Deployed contracts
==================

Version 0.8
~~~~~~~~~~~

Added functions:
* ``util-lists.is-empty``
* ``util-lists.is-not-empty``
* ``util-lists.is-singleton``
* ``util-lists.is-pair``
* ``util-lists.contains*``
* ``util-time.tomorrow``
* ``util-time.yesterday``
* ``util-time.from-now``

Bugs fixes:
* ``util-time.from-timestamp`` (Prevent possible overflow)

Improved functions: (behavior is not expected to change)
* ``util-lists.search`` (Gas improvement)
* ``util-strings.join`` (Readability)
* ``util-strings.split`` (Gas improvement)
* ``util-strings.strip`` (Gas improvement)
* ``util-strings.strip-left`` (Gas improvement)
* ``util-strings.strip-right`` (Gas improvement)
* ``util-strings.str-to-decimal`` (Gas improvement)

Deployed on:
* Testnet Chains 0-19
* Mainnet Chains 0-19

Modules hashes:

* **free.util-chain-data:** eiouBpR7CQMMCH2ORVdH_MhEljlFAh1lV3BNbSyl7TM
* **free.util-lists:** a-tRQsbhF2DR3UGcQr_8HEmtU17_EAc1NT0Yhw1qZa0
* **free.util-strings:** O05mysmD0vzJt9D5pp6wB21KMRedbic5mkAPptqE_s8
* **free.util-math:** Nd7y9268aT_DQA9aMK2cWlpxaULQS08EZourjp0wNq4
* **free.util-random:** 0C6T81mWS7QBA7nPBvaJLeO0ExPMwbVg20eKTNQ2DhU
* **free.util-time:** 4_wiwacn0SMB9zBvDSNt2bZuKHAcqWw-dygUHyWw6dA
* **free.util-fungible:** Eqks82QsVEZvwNXm_VD7U_FomdD4D41JFoqgsBEj2vM
* **free.util-zk:** 9huAxHg84MAZHs-T0h_WR1NpM38op_G8CXy2xRsdnAc


Version 0.7
~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-chain-data.pact
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-fungible.pact
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-lists.pact
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-math.pact
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
3 changes: 2 additions & 1 deletion pact/contracts/util-random.pact
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(bless "RBfxKPExaz5q6i64FLA_k7UVM9MaOO0UDJulfPFZBRA")
(bless "I-yq-JDWu9Lpag6SJgkWbDtsaZ21k4YqOyA09uzSnuY")
(bless "qSwrZYiS0ZR7fVcbIVrtC-f_ZB6n-Q-6JsTkn6zg2IQ")
(bless "gq7DxC0_CPW3_zU4FbHXS6TFDd_cz45VYDjLCEzWsOs")
(bless "NEG7aa1Edx6oU97d5wRh2Tl6Sw9Hiv4GOGBcZK2UWtU")
(bless "od06XLD2aQzeFoasShObwYCWVTqgx-09IEL0fbksoFM")
(bless "SVQVrKpSIj-1qBY3SxceeG_3GkODAIYdzszYa44yPe4")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-strings.pact
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-time.pact
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\ Documentation: https://pact-util-lib.readthedocs.io \
\ Github: https://github.com/CryptoPascal31/pact-util-lib "

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(defcap GOV()
(enforce-keyset "free.util-lib"))
Expand Down
2 changes: 1 addition & 1 deletion pact/contracts/util-zk.pact
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
; - https://github.com/kadena-io/pact/blob/master/tests/pact/pairing.repl
; - https://github.com/iden3/snarkjs/blob/master/templates/verifier_groth16.sol.ejs

(defconst VERSION:string "0.7")
(defconst VERSION:string "0.8")

(use util-strings [split-chunks])
(use util-lists [remove-first first])
Expand Down

0 comments on commit 4ecf4f8

Please sign in to comment.