aergo.herapy.obj package¶
Submodules¶
aergo.herapy.obj.abi module¶
aergo.herapy.obj.address module¶
-
class
aergo.herapy.obj.address.Address(pubkey: Union[str, bytes, ecdsa.ecdsa.Public_key], empty: bool = False, curve: ecdsa.curves.Curve = SECP256k1)[source]¶ Bases:
object-
curve¶
-
public_key¶
-
value¶
-
aergo.herapy.obj.aer module¶
aergo.herapy.obj.aergo_conf module¶
-
class
aergo.herapy.obj.aergo_conf.AergoConfig[source]¶ Bases:
object-
account¶
-
account_unlocktimeout¶
-
auth¶
-
auth_enablelocalconf¶
-
authdir¶
-
blockchain¶
-
blockchain_coinbaseaccount¶
-
blockchain_forceresetheight¶
-
blockchain_maxanchorcount¶
-
blockchain_maxblocksize¶
-
blockchain_statetrace¶
-
blockchain_verifiercount¶
-
blockchain_verifyonly¶
-
blockchain_zerofee¶
-
conf¶
-
consensus¶
-
consensus_blockinterval¶
-
consensus_enablebp¶
-
consensus_raft¶
-
datadir¶
-
dbtype¶
-
enableprofile¶
-
enabletestmode¶
-
mempool¶
-
mempool_dumpfilepath¶
-
mempool_enablefadeout¶
-
mempool_fadeoutperiod¶
-
mempool_showmetrics¶
-
mempool_verifiers¶
-
monitor¶
-
monitor_endpoint¶
-
monitor_protocol¶
-
p2p¶
-
p2p_logfullpeerid¶
-
p2p_netprotocoladdr¶
-
p2p_netprotocolport¶
-
p2p_npaddpeers¶
-
p2p_npaddpolarises¶
-
p2p_npbindaddr¶
-
p2p_npbindport¶
-
p2p_npcert¶
-
p2p_npdiscoverpeers¶
-
p2p_npexposeself¶
-
p2p_npkey¶
-
p2p_npmaxpeers¶
-
p2p_nppeerpool¶
-
p2p_nptls¶
-
p2p_npusepolaris¶
-
personal¶
-
polaris¶
-
polaris_allowprivate¶
-
polaris_genesisfile¶
-
profileport¶
-
rpc¶
-
rpc_netserviceaddr¶
-
rpc_netserviceport¶
-
rpc_netservicetrace¶
-
rpc_nsallowcors¶
-
rpc_nscacert¶
-
rpc_nscert¶
-
rpc_nskey¶
-
rpc_nstls¶
-
usetestnet¶
-
aergo.herapy.obj.block module¶
-
class
aergo.herapy.obj.block.Block(hash_value: Union[aergo.herapy.obj.block_hash.BlockHash, str, bytes, None] = None, height: Optional[int] = None, grpc_block=None, grpc_block_header=None, tx_cnt: int = 0, size: int = 0)[source]¶ Bases:
object-
block_no¶
-
blocks_root_hash¶
-
chain_id¶
-
chain_id_hash¶
-
chain_id_hash_b58¶
-
coinbase_account¶
-
confirms¶
-
datetimestamp¶
-
hash¶
-
height¶
-
num_of_tx¶
-
prev¶
-
public_key¶
-
receipts_root_hash¶
-
sign¶
-
size¶
-
timestamp¶
-
tx_list¶
-
txs_root_hash¶
-
aergo.herapy.obj.block_hash module¶
aergo.herapy.obj.block_meta_stream module¶
aergo.herapy.obj.block_stream module¶
aergo.herapy.obj.blockchain_info module¶
aergo.herapy.obj.blockchain_status module¶
aergo.herapy.obj.call_info module¶
aergo.herapy.obj.chain_id module¶
aergo.herapy.obj.change_conf_info module¶
aergo.herapy.obj.consensus_info module¶
aergo.herapy.obj.event module¶
aergo.herapy.obj.event_stream module¶
aergo.herapy.obj.name_info module¶
aergo.herapy.obj.node_info module¶
aergo.herapy.obj.peer module¶
aergo.herapy.obj.private_key module¶
-
class
aergo.herapy.obj.private_key.PrivateKey(pk: Union[str, bytes, None])[source]¶ Bases:
object-
address¶
-
asymmetric_decrypt_msg(address: Union[str, aergo.herapy.obj.address.Address], enc_msg: Union[str, bytes]) → bytes[source]¶
-
asymmetric_encrypt_msg(address: Union[str, aergo.herapy.obj.address.Address], msg: Union[str, bytes]) → str[source]¶
-
public_key¶
-
aergo.herapy.obj.sc_state module¶
-
class
aergo.herapy.obj.sc_state.SCState(account: aergo.herapy.account.Account, var_proofs: aergo.herapy.obj.var_proof.VarProofs)[source]¶ Bases:
objectSCState holds the inclusion/exclusion proofs of a contract state in the global trie and of a variable’s value in the contract trie. SCState is returned by aergo.query_sc_state() for easy merkle proof verification give a root.
-
account¶
-
var_proofs¶
-
-
class
aergo.herapy.obj.sc_state.SCStateVar(var_name: str, array_index: Optional[int] = None, map_key: Optional[str] = None, empty: bool = False)[source]¶ Bases:
objectSCStateVar represents each variable of a calling smart contract. If the variable is the ‘state.var’ type, you can skip ‘array_index’ and ‘map_key’. If the variable is the ‘state.array’ type, use ‘array_index’ with the index number. If the variable is the ‘state.map’ type, use ‘map_key’ with the key name of the map.
aergo.herapy.obj.stream module¶
aergo.herapy.obj.transaction module¶
Transaction class.
-
class
aergo.herapy.obj.transaction.Transaction(from_address: Union[bytes, aergo.herapy.obj.address.Address, None] = None, to_address: Union[bytes, aergo.herapy.obj.address.Address, None] = None, nonce: int = 0, amount: Union[bytes, str, int, float] = 0, payload: Optional[bytes] = None, gas_price: int = 0, gas_limit: int = 0, read_only: bool = False, tx_hash: Optional[bytes] = None, tx_sign: Union[bytes, str, None] = None, tx_type=<TxType.TRANSFER: 4>, chain_id: Optional[bytes] = None, block=None, index_in_block: int = -1, is_in_mempool: bool = False)[source]¶ Bases:
objectTransaction data structure.
-
amount¶
-
block¶
-
chain_id¶
-
from_address¶
-
gas_limit¶
-
gas_price¶
-
index_in_block¶
-
is_in_mempool¶
-
nonce¶
-
payload¶
-
payload_str¶
-
sign¶
-
sign_str¶
-
to_address¶
-
tx_hash¶
-
tx_type¶
-
aergo.herapy.obj.tx_hash module¶
aergo.herapy.obj.tx_result module¶
aergo.herapy.obj.var_proof module¶
-
class
aergo.herapy.obj.var_proof.VarProofs(var_proofs, storage_keys: List[bytes])[source]¶ Bases:
listVarProof holds the inclusion/exclusion proof of a variable state inside a contract state trie
-
storage_keys¶
-
var_proofs¶
-