Skip to content

Commit ba61ef0

Browse files
authored
Merge pull request #197 from tqtezos/diogo/chore-release
[Chore] 1.7.3 release
2 parents c8da01d + 0862ffe commit ba61ef0

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ SPDX-License-Identifier: MIT
99
<!-- Don't forget to update the gas/transaction costs tables in the
1010
README when a new version is released. -->
1111

12+
## 1.7.3
13+
1214
* [#196](https://github.com/tqtezos/stablecoin/pull/196)
1315
* Update the structure of the `set_expiry` parameter to be compatible with
1416
[the 2020-10-30 version](https://gitlab.com/tezos/tzip/-/blob/eb1da57684599a266334a73babd7ba82dbbbce66/proposals/tzip-17/tzip-17.md)

README.md

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,38 +50,46 @@ Please refer to the [`haskell/`](/haskell/) directory for details.
5050
## Gas / Transaction costs
5151

5252
The tables below show the gas and transaction costs of both versions (FA1.2 and FA2) of
53-
the stablecoin contract [v1.7.2](https://github.com/tqtezos/stablecoin/releases/tag/v1.7.2) in hangzhounet.
53+
the stablecoin contract [v1.7.3](https://github.com/tqtezos/stablecoin/releases/tag/v1.7.3) in jakartanet.
5454

55-
### hangzhounet
55+
### jakartanet
5656

57-
* [FA1.2 operations](https://hangzhou.tzstats.com/KT1PoKKx4LZUE23EAoX416dzN8TWZXu8fF8k)
58-
* [FA2 operations](https://hangzhou.tzstats.com/KT197sCXNP8q1tFmqzQxyJHaXrTQBaa9Qcbo)
57+
* [FA1.2 operations](https://better-call.dev/jakartanet/KT1ASuzkJzZ2pCqYVKeV48p5yxunynrjmdGE/operations)
58+
* [FA2 operations](https://better-call.dev/jakartanet/KT19mksNfM9XjWqapR2iMywM1ic5kbVQwpjB/operations)
5959

6060
| | FA1.2 Gas cost | FA2 Gas cost | FA1.2 Tx cost | FA2 Tx cost |
6161
| ----------- | -------------- | ------------ | ------------- | ----------- |
62-
| origination | 7477 | 8410 | 2.89527 | 2.874531|
63-
| transfer | 9573 | 10737 | 0.001294| 0.001427|
62+
| origination | 5743 | 5809 | 2.381299| 2.414438|
63+
| transfer | 6659 | 7003 | 0.001001| 0.001053|
6464

6565
### Measuring
6666

6767
To measure and collect these numbers:
68-
1. Configure your `tezos-client` to use a current testnet node
69-
1. Make sure `tezos-client` has a `nettest` alias with enough ꜩ
68+
1. Pick a testnet:
7069
```
71-
tezos-client get balance for nettest
70+
export STABLECOIN_TESTNET=https://jakarta.testnet.tezos.serokell.team/
7271
```
73-
1. Run `cd haskell && stack test stablecoin:test:stablecoin-nettest`
74-
75-
This deploys the FA2 and FA1.2 contracts along with the corresponding
76-
metadata contracts. So metadata is deployed to separate contracts and linked
77-
from the main contracts via the TZIP-016 metadata URI. After this some tests
78-
on the deployed contracts. (The origination costs in the table above does
79-
not include origination costs of these metadata contracts).
72+
1. Use a [testnet faucet](https://teztnets.xyz/) to create a test account with enough funds.
73+
1. Activate the account:
74+
```
75+
tezos-client -E $STABLECOIN_TESTNET activate account stablecoin-moneybag with <activation_file.json>
76+
```
77+
1. Run:
78+
```bash
79+
cd haskell
80+
stack test --fast --test-arguments \
81+
"-p \"Lorentz.Contracts.Nettest.FA1_2Comparison\" \
82+
--cleveland-mode only-network \
83+
--cleveland-moneybag-alias stablecoin-moneybag \
84+
-E $STABLECOIN_TESTNET"
85+
```
86+
This deploys the FA2 and FA1.2 contracts (the TZIP-16 metadata will be stored in separate contracts),
87+
and calls the `transfer` entrypoint of each contract.
8088
8189
1. The logs should show these two messages, with two addresses:
8290
```
83-
Originated smart contract Stablecoin FA1.2 with address <...>
84-
Originated smart contract Stablecoin FA2 with address <...>
91+
Originated smart contract 'Stablecoin FA1.2' with address <...>
92+
Originated smart contract 'Stablecoin FA2' with address <...>
8593
```
8694
1. Search for these addresses in <https://better-call.dev/>, select the "Contracts" tab, you should get 1 search result.
8795
Select it to see the origination and transfer costs.

haskell/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<<: !include "./hpack/module.yaml"
55

66
name: stablecoin
7-
version: 1.7.2
7+
version: 1.7.3
88

99
extra-source-files:
1010
- README.md

0 commit comments

Comments
 (0)