Skip to content

Commit

Permalink
Merge pull request #324 from multiversx/remove-hyperblock-command
Browse files Browse the repository at this point in the history
Removed the hyperblock command group
  • Loading branch information
popenta authored Aug 31, 2023
2 parents 7cdfe3a + 0eff28a commit 625fe7f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 105 deletions.
34 changes: 1 addition & 33 deletions CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://docs.multiversx.com/sdk-and-tools/mxpy.
COMMAND GROUPS:
{contract,tx,validator,account,ledger,wallet,deps,config,hyperblock,localnet,data,staking-provider,dns}
{contract,tx,validator,account,ledger,wallet,deps,config,localnet,data,staking-provider,dns}
TOP-LEVEL OPTIONS:
-h, --help show this help message and exit
Expand All @@ -38,7 +38,6 @@ ledger Get Ledger App addresses and version
wallet Create wallet, derive secret key from mnemonic, bech32 address helpers etc.
deps Manage dependencies or multiversx-sdk modules
config Configure multiversx-sdk (default values etc.)
hyperblock Get Hyperblock from the Network
localnet Set up, start and control localnets
data Data manipulation omnitool
staking-provider Staking provider omnitool
Expand Down Expand Up @@ -623,37 +622,6 @@ options:
--proxy PROXY 🔗 the URL of the proxy
--omit-fields OMIT_FIELDS omit fields in the output payload (default: [])
```
## Group **Hyperblocks**


```
$ mxpy hyperblock --help
usage: mxpy hyperblock COMMAND [-h] ...
Get Hyperblock from the Network
COMMANDS:
{get}
OPTIONS:
-h, --help show this help message and exit
```
### Hyperblock.Get


```
$ mxpy hyperblock get --help
usage: mxpy hyperblock get [-h] ...
Get hyperblock
options:
-h, --help show this help message and exit
--proxy PROXY 🔗 the URL of the proxy
--key KEY the hash or the nonce of the hyperblock
```
## Group **Validator**

Expand Down
3 changes: 0 additions & 3 deletions CLI.md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ generate() {
command "Transactions.Send" "tx send"
command "Transactions.Get" "tx get"

group "Hyperblocks" "hyperblock"
command "Hyperblock.Get" "hyperblock get"

group "Validator" "validator"
command "Validator.Stake" "validator stake"
command "Validator.Unstake" "validator unstake"
Expand Down
2 changes: 0 additions & 2 deletions multiversx_sdk_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from rich.logging import RichHandler

import multiversx_sdk_cli.cli_accounts
import multiversx_sdk_cli.cli_block
import multiversx_sdk_cli.cli_config
import multiversx_sdk_cli.cli_contracts
import multiversx_sdk_cli.cli_data
Expand Down Expand Up @@ -88,7 +87,6 @@ def setup_parser(args: List[str]):
commands.append(multiversx_sdk_cli.cli_wallet.setup_parser(args, subparsers))
commands.append(multiversx_sdk_cli.cli_deps.setup_parser(subparsers))
commands.append(multiversx_sdk_cli.cli_config.setup_parser(subparsers))
commands.append(multiversx_sdk_cli.cli_block.setup_parser(subparsers))
commands.append(multiversx_sdk_cli.cli_localnet.setup_parser(args, subparsers))
commands.append(multiversx_sdk_cli.cli_data.setup_parser(subparsers))
commands.append(multiversx_sdk_cli.cli_delegation.setup_parser(args, subparsers))
Expand Down
33 changes: 0 additions & 33 deletions multiversx_sdk_cli/cli_block.py

This file was deleted.

34 changes: 0 additions & 34 deletions multiversx_sdk_cli/tests/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,40 +23,6 @@ def test_get_account():
assert False


def test_get_hyperblock_by_nonce():
result = main(
[
"hyperblock",
"get",
"--key",
"4312144",
"--proxy",
"https://devnet-api.multiversx.com",
]
)
if not result:
assert True
else:
assert False


def test_get_hyperblock_by_hash():
result = main(
[
"hyperblock",
"get",
"--key",
"756cb9c0a2d16b0fe9027a21c845a4f4eb1f1331630632669c88250128b40440",
"--proxy",
"https://devnet-api.multiversx.com",
]
)
if not result:
assert True
else:
assert False


def test_sync_nonce():
account = Account(address=Address.from_bech32("erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th"))
proxy = ProxyNetworkProvider("https://devnet-api.multiversx.com")
Expand Down

0 comments on commit 625fe7f

Please sign in to comment.