Skip to content

Commit 2583e1a

Browse files
PyMavryk docs refactored
1 parent ecdf0a6 commit 2583e1a

File tree

10 files changed

+10
-35
lines changed

10 files changed

+10
-35
lines changed

README.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# PyMavryk
22

3-
[![Twitter](https://badgen.net/badge/icon/TezosBakingBad?icon=twitter&label=)](https://twitter.com/TezosBakingBad)
4-
[![Monthly downloads](https://static.pepy.tech/badge/pytezos/month)](https://pepy.tech/project/pytezos)
3+
[![Twitter](https://badgen.net/badge/icon/MavrykDynamics?icon=twitter&label=)](https://twitter.com/MavrykDynamics)
4+
[![Monthly downloads](https://static.pepy.tech/badge/pymavryk/month)](https://pepy.tech/project/pymavryk)
55
[![GitHub stars](https://img.shields.io/github/stars/mavryk-network/pymavryk?color=2c2c2c&style=plain)](https://github.com/mavryk-network/pymavryk)
6-
[![Python Version](https://img.shields.io/pypi/pyversions/pytezos?color=2c2c2c)](https://www.python.org)
6+
[![Python Version](https://img.shields.io/pypi/pyversions/pymavryk?color=2c2c2c)](https://www.python.org)
77
<br>
88
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/mavryk-network/pymavryk/master?filepath=michelson_quickstart.ipynb)
99
[![License: MIT](https://img.shields.io/github/license/mavryk-network/pymavryk?color=2c2c2c)](https://github.com/mavryk-network/pymavryk/blob/next/LICENSE)
@@ -157,20 +157,6 @@ If you are working in Jupyter/Google Colab or any other interactive console, you
157157
>>> pymavryk
158158
```
159159

160-
### Publications
161-
162-
* Pymavryk 2.0 release with embedded docs and smart contract interaction engine
163-
https://medium.com/coinmonks/high-level-interface-for-michelson-contracts-and-not-only-7264db76d7ae
164-
165-
* Materials from TQuorum:Berlin workshop - building an app on top of PyMavryk and ConseilPy
166-
https://medium.com/coinmonks/atomic-tips-berlin-workshop-materials-c5c8ee3f46aa
167-
168-
* Materials from the EETH hackathon - setting up a local development infrastructure, deploying and interacting with a contract
169-
https://medium.com/tezoscommons/preparing-for-the-tezos-hackathon-with-baking-bad-45f2d5fca519
170-
171-
* Introducing integration testing engine
172-
https://medium.com/tezoscommons/testing-michelson-contracts-with-pytezos-513718499e93
173-
174160
### Contact
175161

176162
* Telegram chat: [@MavrykNetwork](https://t.me/MavrykNetwork)

docs/source/pymavryk_cli.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ PyMavryk CLI
44
Tutorials
55
+++++++++++
66

7-
Check out this guide by Vadim from Airalab: https://blog.aira.life/tezos-dont-forget-the-mother-console-fd2001261e50?gi=2fe6dfe4fd7f
7+
Check out this guide by Vadim from Airalab (made for PyTezos but compatible with PyMavryk): https://blog.aira.life/tezos-dont-forget-the-mother-console-fd2001261e50?gi=2fe6dfe4fd7f
88

99
Examples
1010
++++++++++
1111

12-
See how PyMavryk CLI is used in a Travis CI pipeline: https://github.com/atomex-me/atomex-fa12-ligo/blob/master/.travis.yml
12+
See how PyMavryk CLI is used in a Travis CI pipeline (made for PyTezos but compatible with PyMavryk): https://github.com/atomex-me/atomex-fa12-ligo/blob/master/.travis.yml
1313

1414
Reference
1515
+++++++++++

src/michelson_kernel/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ pip uninstall pymavryk
8080
```
8181

8282
### How it works
83-
* Technical details of the REPL implementation
84-
https://forum.tezosagora.org/t/michelson-repl-in-a-jupyter-notebook/1749
8583
* Interactive tutorial demonstrating REPL features
8684
https://mybinder.org/v2/gh/mavryk-network/pymavryk/binder?filepath=michelson_quickstart.ipynb
8785
* Same, but a rendered version

src/pymavryk/crypto/hash.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def block_payload_hash(predecessor: str, payload_round: int, operation_hashes: L
5858
:param payload_round: round number (int32)
5959
:param operation_hashes: flat list of non-consensus (validation pass > 0) operation hashes
6060
"""
61-
# https://gitlab.com/tezos/tezos/-/blob/master/src/proto_alpha/lib_delegate/block_forge.ml#L166
62-
# https://gitlab.com/tezos/tezos/-/blob/master/src/proto_012_Psithaca/lib_protocol/block_payload_repr.ml#L41
6361
payload = [
6462
base58_decode(predecessor.encode()),
6563
payload_round.to_bytes(4, 'big'),

src/pymavryk/crypto/key.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def from_public_point(
182182
) -> 'Key':
183183
"""Creates a key object from a public elliptic point.
184184
185-
:param public_point: elliptic point in the compressed format (see https://tezos.stackexchange.com/a/623/309)
185+
:param public_point: elliptic point in the compressed format
186186
:param curve: b'sp' for Secp256k1, b'p2' for P256/Secp256r1, b'ed' for Ed25519 (default), b'BL' for BLS12-381
187187
"""
188188
return cls(public_point, curve=curve)
@@ -319,7 +319,7 @@ def from_mnemonic(
319319

320320
@classmethod
321321
def from_faucet(cls, source: Union[str, dict]) -> 'Key':
322-
"""Import key from a faucet file: https://teztnets.xyz/
322+
"""Import key from a faucet file: https://testnets.mavryk.network/
323323
324324
:param source: path to the json file
325325
:rtype: Key

src/pymavryk/michelson/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class InterpreterResult:
3535

3636
class Interpreter:
3737
"""Michelson interpreter reimplemented in Python.
38-
Based on the following reference: https://tezos.gitlab.io/michelson-reference/
38+
Based on the following reference: https://mavryk-network.gitlab.io/michelson-reference/
3939
"""
4040

4141
def __init__(

src/pymavryk/michelson/types/chest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class ChestType(BytesType, prim='chest'):
55
...
6-
# TODO: https://gitlab.com/tezos/tezos/-/merge_requests/2940/diffs#2c09e5627158501e568f7f4a7c9245c90c357217
6+
# TODO:
77

88

99
class ChestKeyType(BytesType, prim='chest_key'):

src/pymavryk/operation/content.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ def endorsement_with_slot(self, endorsement: dict, slot: int):
7171
def seed_nonce_revelation(self, level: int, nonce: str):
7272
"""Reveal the nonce committed operation in the previous cycle.
7373
74-
More info https://tezos.stackexchange.com/questions/567/what-are-nonce-revelations
75-
7674
:param level: When nonce hash was committed
7775
:param nonce: Hex string
7876
:returns: dict or OperationGroup
@@ -134,8 +132,6 @@ def double_baking_evidence(self, bh1: str, bh2: str):
134132
def activate_account(self, activation_code='', pkh=''):
135133
"""Activate recommended allocations for contributions to the TF fundraiser.
136134
137-
More info https://activate.tezos.com/
138-
139135
:param activation_code: Secret code from pdf, leave empty for autocomplete
140136
:param pkh: Public key hash, leave empty for autocomplete
141137
:returns: dict or OperationGroup
@@ -210,7 +206,6 @@ def reveal(
210206
:param public_key: Public key to reveal, Base58 encoded
211207
:param source: Public key hash of the key revealed, leave None to use signatory address
212208
:param counter: Current account counter, leave None for autocomplete
213-
(More info https://tezos.stackexchange.com/questions/632/how-counter-grows)
214209
:param fee: Leave None for autocomplete
215210
:param gas_limit: Leave None for autocomplete
216211
:param storage_limit: Leave None for autocomplete
@@ -286,7 +281,6 @@ def origination(
286281
287282
:param script: {"code": $Micheline, "storage": $Micheline}
288283
:param balance: Amount transferred on the balance, WARNING: there is no default way to withdraw funds.
289-
More info: https://tezos.stackexchange.com/questions/1315/can-i-withdraw-funds-from-an-empty-smart-contract
290284
:param delegate: Set contract delegate, default None
291285
:param source: Address from which funds will be sent, leave None to use signatory address
292286
:param counter: Current account counter, leave None for autocomplete

src/pymavryk/sandbox/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"amount": "38323962971",
4646
"pkh": "mv1JVZzbrGpKfripWo2GiWZ7wkzoeKHna498",
4747
"password": "ZuPOpZgMNM",
48-
"email": "nbhcylbg.xllfjgrk@tezos.example.org",
48+
"email": "nbhcylbg.xllfjgrk@mavryk.example.org",
4949
}
5050

5151
sandbox_addresses = {

tests/unit_tests/test_michelson/test_repl/ill_typed/failwith_big_map.tz

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# This contract uses FAILWITH to expose a big map diff
2-
# See https://gitlab.com/tezos/tezos/-/issues/1708#note_667884499
32

43
parameter (big_map int int);
54

0 commit comments

Comments
 (0)