Skip to content

Latest commit

 

History

History
81 lines (47 loc) · 2.05 KB

cli_operation.rst

File metadata and controls

81 lines (47 loc) · 2.05 KB

Using the Aergo CLI

CLI for the proposer/validator

Start the cli:

$ python3 -m aergo_cli.main

The first step is to create a config file or load an existing one

image

Then the main menu appears with cli functionalty:

image

These are the settings available from the cli

image

Creating a config file from scratch

image

Registering a new bridge

image

Updating bridge settings

image

If the new anchoring periode reached validator consensus, it can then be automatically updated in the bridge contract by the proposer.

proposer: mainnet: "Anchoring periode update requested: 7"
proposer: mainnet: "⌛ tAnchorUpdate success"

CLI for asset transfers

Registering a new asset in config file

image

Transfering a registered asset

image

image

Check pending transfers

It is possible to check withdrawable balances of pending transfer between chains.

image

If a transfer was made with the cli, the transfer parameters are recorded but it is also possible to check the withdrawable balance of a custom transfer between any chain. 'Withdrawable' is the balance that can be immediatly withdrawn on the other side of the bridge. 'Pending' is the balance that was deposited in the bridge contract but the anchor has not happened on the other side of the bridge so it is not yet withdrawable.

Pending transfers are recorded as an array of [departure chain, destination chain, asset name, receiver, block height of lock/burn]. All pending transfer are store in cli/pending_transfers.json and deleted once finalized.