Skip to content

Commit

Permalink
Merge pull request #56 from ElrondNetwork/version-1.0.21
Browse files Browse the repository at this point in the history
Prepare version 1.0.21
  • Loading branch information
camilbancioiu authored Nov 1, 2021
2 parents 52413dc + 8e93a35 commit eeb885b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
7 changes: 7 additions & 0 deletions erdpy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions erdpy/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions erdpy/CLI.md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ generate() {
command "Data.Store" "data store"
command "Data.Load" "data load"
}

generate
2 changes: 1 addition & 1 deletion erdpy/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.20"
__version__ = "1.0.21"
4 changes: 2 additions & 2 deletions erdpy/cli_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ 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()

sub = cli_shared.add_command_subparser(
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)
Expand Down
2 changes: 1 addition & 1 deletion erdpy/wallet/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions erdpy/wallet/generator.py
Original file line number Diff line number Diff line change
@@ -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")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eeb885b

Please sign in to comment.