Skip to content

Commit

Permalink
Merge pull request #113 from ElrondNetwork/cleanup
Browse files Browse the repository at this point in the history
Bit of cleanup (remove deprecated files / functionality)
  • Loading branch information
andreibancioiu authored Mar 7, 2022
2 parents 7539d16 + 8114f87 commit 8085992
Show file tree
Hide file tree
Showing 23 changed files with 6 additions and 979 deletions.
107 changes: 1 addition & 106 deletions erdpy/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://docs.elrond.com/sdk-and-tools/erdpy/erdpy.
COMMAND GROUPS:
{contract,tx,validator,account,ledger,wallet,network,dispatcher,blockatlas,deps,config,hyperblock,testnet,data,staking-provider,dns}
{contract,tx,validator,account,ledger,wallet,network,blockatlas,deps,config,hyperblock,testnet,data,staking-provider,dns}
TOP-LEVEL OPTIONS:
-h, --help show this help message and exit
Expand All @@ -37,7 +37,6 @@ account Get Account data (nonce, balance) from the Networ
ledger Get Ledger App addresses and version
wallet Create wallet, derive secret key from mnemonic, bech32 address helpers etc.
network Get Network parameters, such as number of shards, chain identifier etc.
dispatcher Enqueue transactions, then bulk dispatch them
blockatlas Interact with an Block Atlas instance
deps Manage dependencies or elrond-sdk modules
config Configure elrond-sdk (default values etc.)
Expand Down Expand Up @@ -1119,110 +1118,6 @@ optional arguments:
-h, --help show this help message and exit
--proxy PROXY 🔗 the URL of the proxy (default: https://testnet-gateway.elrond.com)
```
## Group **Dispatcher**


```
$ erdpy dispatcher --help
usage: erdpy dispatcher COMMAND [-h] ...
Enqueue transactions, then bulk dispatch them
COMMANDS:
{enqueue,dispatch,dispatch-continuously,clean}
OPTIONS:
-h, --help show this help message and exit
----------------
COMMANDS summary
----------------
enqueue Enqueue a transaction
dispatch Dispatch queued transactions
dispatch-continuously Continuously dispatch queued transactions
clean Clear queue of transactions
```
### Dispatcher.Enqueue


```
$ erdpy dispatcher enqueue --help
usage: erdpy dispatcher enqueue [-h] ...
Enqueue a transaction
optional arguments:
-h, --help show this help message and exit
--receiver RECEIVER 🖄 the address of the receiver
--receiver-username RECEIVER_USERNAME 🖄 the username of the receiver
--gas-price GAS_PRICE ⛽ the gas price (default: 1000000000)
--gas-limit GAS_LIMIT ⛽ the gas limit
--value VALUE the value to transfer (default: 0)
--data DATA the payload, or 'memo' of the transaction (default: )
--chain CHAIN the chain identifier (default: T)
--version VERSION the transaction version (default: 1)
--options OPTIONS the transaction options (default: 0)
```
### Dispatcher.Dispatch


```
$ erdpy dispatcher dispatch --help
usage: erdpy dispatcher dispatch [-h] ...
Dispatch queued transactions
optional arguments:
-h, --help show this help message and exit
--proxy PROXY 🔗 the URL of the proxy (default: https://testnet-gateway.elrond.com)
--pem PEM 🔑 the PEM file, if keyfile not provided
--pem-index PEM_INDEX 🔑 the index in the PEM file (default: 0)
--keyfile KEYFILE 🔑 a JSON keyfile, if PEM not provided
--passfile PASSFILE 🔑 a file containing keyfile's password, if keyfile provided
--ledger 🔐 bool flag for signing transaction using ledger
--ledger-account-index LEDGER_ACCOUNT_INDEX 🔐 the index of the account when using Ledger
--ledger-address-index LEDGER_ADDRESS_INDEX 🔐 the index of the address when using Ledger
--sender-username SENDER_USERNAME 🖄 the username of the sender
```
### Dispatcher.DispatchContinuously


```
$ erdpy dispatcher dispatch-continuously --help
usage: erdpy dispatcher dispatch-continuously [-h] ...
Continuously dispatch queued transactions
optional arguments:
-h, --help show this help message and exit
--proxy PROXY 🔗 the URL of the proxy (default: https://testnet-gateway.elrond.com)
--pem PEM 🔑 the PEM file, if keyfile not provided
--pem-index PEM_INDEX 🔑 the index in the PEM file (default: 0)
--keyfile KEYFILE 🔑 a JSON keyfile, if PEM not provided
--passfile PASSFILE 🔑 a file containing keyfile's password, if keyfile provided
--ledger 🔐 bool flag for signing transaction using ledger
--ledger-account-index LEDGER_ACCOUNT_INDEX 🔐 the index of the account when using Ledger
--ledger-address-index LEDGER_ADDRESS_INDEX 🔐 the index of the address when using Ledger
--sender-username SENDER_USERNAME 🖄 the username of the sender
--interval INTERVAL the interval to retrieve transactions from the queue, in seconds
```
### Dispatcher.Clean


```
$ erdpy dispatcher clean --help
usage: erdpy dispatcher clean [-h] ...
Clear queue of transactions
optional arguments:
-h, --help show this help message and exit
```
## Group **BlockAtlas**

Expand Down
6 changes: 0 additions & 6 deletions erdpy/CLI.md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ generate() {
command "Network.BlockNonce" "network block-nonce"
command "Network.Chain" "network chain"

group "Dispatcher" "dispatcher"
command "Dispatcher.Enqueue" "dispatcher enqueue"
command "Dispatcher.Dispatch" "dispatcher dispatch"
command "Dispatcher.DispatchContinuously" "dispatcher dispatch-continuously"
command "Dispatcher.Clean" "dispatcher clean"

group "BlockAtlas" "blockatlas"
command "BlockAtlas.CurrentBlockNumber" "blockatlas current-block-number"
command "BlockAtlas.BlockByNumber" "blockatlas block-by-number"
Expand Down
2 changes: 0 additions & 2 deletions erdpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import erdpy.cli_contracts
import erdpy.cli_data
import erdpy.cli_deps
import erdpy.cli_dispatcher
import erdpy.cli_ledger
import erdpy.cli_network
import erdpy.cli_testnet
Expand Down Expand Up @@ -90,7 +89,6 @@ def setup_parser(args: List[str] = sys.argv[1:]):
commands.append(erdpy.cli_ledger.setup_parser(subparsers))
commands.append(erdpy.cli_wallet.setup_parser(args, subparsers))
commands.append(erdpy.cli_network.setup_parser(subparsers))
commands.append(erdpy.cli_dispatcher.setup_parser(args, subparsers))
commands.append(erdpy.cli_blockatlas.setup_parser(subparsers))
commands.append(erdpy.cli_deps.setup_parser(subparsers))
commands.append(erdpy.cli_config.setup_parser(subparsers))
Expand Down
53 changes: 0 additions & 53 deletions erdpy/cli_dispatcher.py

This file was deleted.

Empty file removed erdpy/dispatcher/__init__.py
Empty file.
Empty file removed erdpy/dispatcher/scenario.py
Empty file.
39 changes: 0 additions & 39 deletions erdpy/dispatcher/scenarios/example.py

This file was deleted.

53 changes: 0 additions & 53 deletions erdpy/dispatcher/scenarios/mint.py

This file was deleted.

50 changes: 0 additions & 50 deletions erdpy/dispatcher/scenarios/sweepable.py

This file was deleted.

36 changes: 0 additions & 36 deletions erdpy/dispatcher/transactions/README.md

This file was deleted.

Empty file.
Loading

0 comments on commit 8085992

Please sign in to comment.