Package: aergo-herapy
herapyHeraPy is a Python package for AERGO that provides the features below.FeaturesCommunication with AERGO nodeGetting AERGO blockchain informationCreating/Exporting/Importing an accountMaking and sending a transactionDeploying/Calling/Querying a smart contractQuerying and prooving contract/account statesInstallInstall the latest version inthe Python Package Indexpip install aergo-herapyor, install locallygit clone git@github.com:aergoio/herapy.git
cd herapy
make installRun examplesAfter installing aergo-herapy, you can run examplesmake exThe examples in the ‘examples’ directory connect the public Aergo testnet.BuildDownloading HeraPyDownload HeraPy from this repositorygit clone git@github.com:aergoio/herapy.gitInstalling Dependenciespip install -r requirements.txtBut, we recommend to use a virtual environment below.Virtual Environment (Pipenv)Using Pipenv, all dependencies will be installed automatically.pipenv shellIf you cleaned up and setup again,pipenv installIf you want to test or contribute, then do not forget ‘–dev’ optionpipenv install --dev
make testUpdating ProtocolIf need to upgrade a protocol,make protocAfter this command, all protocol related source files will be generated if it’s different.Updating Aergo ConfigurationsIf need to upgrade Aergo Configurations,make aergo-typesAfter this command, ‘aergo/herapy/obj/aergo_conf.py’ will be generated if it’s different.If occur the error message belowERROR: Cannot find 'AERGO_TYPES_SRC', find the source code ‘aergo/config/types.go’ and make this file path as an environment variable of ‘AERGO_TYPES_SRC’export AERGO_TYPES_SRC=`find ~ -path '*/aergo/config/types.go' 2>/dev/null`
make aergo-typesReleases and ContributingHeraPy follows a major release cycle of AERGO.
A minor release such as fixing bugs and errors are occasionally patched.
Please let us know if you encounter a bug byfilling an issue.If you are planning to contribute a new feature, class, or function,
pleaseopen an issueand discuss with us.We appreciate all contributions.Documentationhttps://aergo-herapy.readthedocs.ioLicenseHeraPy is MIT license as found in the LICENSE file.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History2.0.1 (2020-02-05)Add new Aergo Keystore support.Add ‘add_raft_member’, ‘del_raft_member’2.0.0 (2019-12-03)Add ‘transfer’ API for simple token transferingAdd ‘gas limit’, ‘fee delegation’ and ‘gas used’ for ‘TxResult’ object‘Account’ object encoding to/decoding from json dataBug fixException for encoding ‘TxResult’ to the json type, because of ‘tx_id’1.3.3 (2019-11-05)support TLS connectionBug fixcoinbase address encoding issue fromhttps://github.com/aergoio/herapy/issues/701.2.7 (2019-10-21)support Enterprise features (raft)issue fromhttps://github.com/aergoio/herapy/issues/75support ABIissue fromhttps://github.com/aergoio/herapy/issues/741.2.6 (2019-09-04)Bug fixissue fromhttps://github.com/aergoio/herapy/issues/681.2.5 (2019-08-26)support an empty string and governance string address forAddresssupportget_name_infoBug fixmiss value fromget_conf_change_progress1.2.3 (2019-08-22)support redploy tx typesupport ‘GetConfChangeProgress’ protocol to find a state of ‘changeCluster’ system contractsupport ‘name’ (string) addresssupport enterprise consensus infoBug fixmiss match a tx type in tx0.12.2 (2019-03-21)encrypt/decrypt logic moves to ‘util’ for a general usageBug fixwhen tx result handling, get error message from a changed varialbe0.12.0 (2019-03-08)Apply v0.12.0 protocolBug fixget a genesis block with a block height 00.11.0 (2019-02-20)Change the result type from the ‘get_tx_result’ function (‘SmartContractStatus’ –> ‘TxResultStatus’)Separate two function ‘send_tx’ and ‘batch_tx’ from the single ‘send_tx’ function for a single and multiple txsOpen the ‘generate_tx’ function for helping a new transaction manuallySupport multiple proof queries with the array of Storage KeysSimplify verifying proof as the ‘verify_proof’ function from ‘verify_inclusion’ and ‘verify_exclusion’0.9.0 (2018-12-31)Fit for the public Aergo testnet.First public release on PyPI.0.1.0 (2018-11-07)First release on PyPI.