From 8e93a3528d652f3b0eb1b4316b091f25020a4e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camil=20B=C4=83ncioiu?= Date: Mon, 1 Nov 2021 12:52:30 +0200 Subject: [PATCH] Prepare version 1.0.21; minor fixes --- erdpy/CHANGELOG.md | 7 +++++++ erdpy/CLI.md | 9 +++++---- erdpy/CLI.md.sh | 2 ++ erdpy/_version.py | 2 +- erdpy/cli_wallet.py | 4 ++-- erdpy/wallet/core.py | 2 +- erdpy/wallet/generator.py | 4 ---- setup.py | 2 +- 8 files changed, 19 insertions(+), 13 deletions(-) diff --git a/erdpy/CHANGELOG.md b/erdpy/CHANGELOG.md index aba81a1e..7dcf2610 100644 --- a/erdpy/CHANGELOG.md +++ b/erdpy/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes will be documented in this file. Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. +## [1.0.21] - 01.11.2021 + - New command `erdpy wallet new`, which generates a new wallet mnemonic and optionally saves it to JSON or PEM + - Add support for Rust contract `meta` crates + - Update reference to the renamed VM repository (VM dependency is now named `vmtools`) + - Change `erdpy deps install all` to avoid installing / overwriting non-repository dependencies, e.g. Rust, LLVM, Go + - Update help strings and `CLI.md` + ## [1.0.20] - 26.10.2021 - Bugfix by [phanletrunghieu](https://github.com/phanletrunghieu): use $PATH in `erdpy-up` - Bugfix by [x2ocoder](https://github.com/x2ocoder): add missing `enable_epochs` configurations diff --git a/erdpy/CLI.md b/erdpy/CLI.md index 7f7537f5..b5a6f2fc 100644 --- a/erdpy/CLI.md +++ b/erdpy/CLI.md @@ -35,7 +35,7 @@ tx Create and broadcast Transactions validator Stake, UnStake, UnBond, Unjail and other actions useful for Validators account Get Account data (nonce, balance) from the Network ledger Get Ledger App addresses and version -wallet Derive secret key from mnemonic, bech32 address helpers etc. +wallet Create wallet, derive secret key from mnemonic, bech32 address helpers etc. network Get Network parameters, such as number of shards, chain identifier etc. cost Estimate cost of Transactions dispatcher Enqueue transactions, then bulk dispatch them @@ -744,7 +744,7 @@ optional arguments: $ erdpy wallet --help usage: erdpy wallet COMMAND [-h] ... -Derive secret key from mnemonic, bech32 address helpers etc. +Create wallet, derive secret key from mnemonic, bech32 address helpers etc. COMMANDS: {new,derive,bech32,pem-address,pem-address-hex} @@ -755,7 +755,7 @@ OPTIONS: ---------------- COMMANDS summary ---------------- -new Create a new wallet +new Create a new wallet and print its mnemonic; optionally save as password-protected JSON (recommended) or PEM (not recommended) derive Derive a PEM file from a mnemonic or generate a new PEM file (for tests only!) bech32 Helper for encoding and decoding bech32 addresses pem-address Get the public address out of a PEM file as bech32 @@ -769,7 +769,8 @@ pem-address-hex Get the public address out of a PEM file as hex $ erdpy wallet new --help usage: erdpy wallet new [-h] ... -Create a new wallet +Create a new wallet and print its mnemonic; optionally save as password-protected JSON (recommended) or PEM (not +recommended) optional arguments: -h, --help show this help message and exit diff --git a/erdpy/CLI.md.sh b/erdpy/CLI.md.sh index 1afbc44c..a5a767ff 100755 --- a/erdpy/CLI.md.sh +++ b/erdpy/CLI.md.sh @@ -118,3 +118,5 @@ generate() { command "Data.Store" "data store" command "Data.Load" "data load" } + +generate diff --git a/erdpy/_version.py b/erdpy/_version.py index 6e3c058c..c916e680 100644 --- a/erdpy/_version.py +++ b/erdpy/_version.py @@ -1 +1 @@ -__version__ = "1.0.20" +__version__ = "1.0.21" diff --git a/erdpy/cli_wallet.py b/erdpy/cli_wallet.py index 924b8516..7ef7f202 100644 --- a/erdpy/cli_wallet.py +++ b/erdpy/cli_wallet.py @@ -16,7 +16,7 @@ def setup_parser(args: List[str], subparsers: Any) -> Any: parser = cli_shared.add_group_subparser( subparsers, "wallet", - "Derive secret key from mnemonic, bech32 address helpers etc." + "Create wallet, derive secret key from mnemonic, bech32 address helpers etc." ) subparsers = parser.add_subparsers() @@ -24,7 +24,7 @@ def setup_parser(args: List[str], subparsers: Any) -> Any: subparsers, "wallet", "new", - "Create a new wallet" + "Create a new wallet and print its mnemonic; optionally save as password-protected JSON (recommended) or PEM (not recommended)" ) sub.add_argument("--json", help="whether to create a json key file", action="store_true", default=False) diff --git a/erdpy/wallet/core.py b/erdpy/wallet/core.py index dc0d9909..ce85e86d 100644 --- a/erdpy/wallet/core.py +++ b/erdpy/wallet/core.py @@ -3,7 +3,7 @@ import secrets import struct from importlib.resources import open_text -from typing import List, Optional +from typing import List import nacl.signing diff --git a/erdpy/wallet/generator.py b/erdpy/wallet/generator.py index 1ca78db3..80e1f58a 100644 --- a/erdpy/wallet/generator.py +++ b/erdpy/wallet/generator.py @@ -1,10 +1,6 @@ import logging import nacl.encoding import nacl.signing -import base64 -from os import path - -from erdpy import utils, guards logger = logging.getLogger("wallet.generator") diff --git a/setup.py b/setup.py index eb4a7185..fec684a8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ with open("README.md", "r") as fh: long_description = "https://github.com/ElrondNetwork/elrond-sdk-erdpy" -VERSION = "1.0.20" +VERSION = "1.0.21" try: with open('./erdpy/_version.py', 'wt') as versionfile: