hive-nectar 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hive-nectar might be problematic. Click here for more details.
- hive_nectar-0.0.2.dist-info/METADATA +182 -0
- hive_nectar-0.0.2.dist-info/RECORD +86 -0
- hive_nectar-0.0.2.dist-info/WHEEL +4 -0
- hive_nectar-0.0.2.dist-info/entry_points.txt +2 -0
- hive_nectar-0.0.2.dist-info/licenses/LICENSE.txt +23 -0
- nectar/__init__.py +32 -0
- nectar/account.py +4371 -0
- nectar/amount.py +475 -0
- nectar/asciichart.py +270 -0
- nectar/asset.py +82 -0
- nectar/block.py +446 -0
- nectar/blockchain.py +1178 -0
- nectar/blockchaininstance.py +2284 -0
- nectar/blockchainobject.py +221 -0
- nectar/blurt.py +563 -0
- nectar/cli.py +6285 -0
- nectar/comment.py +1217 -0
- nectar/community.py +513 -0
- nectar/constants.py +111 -0
- nectar/conveyor.py +309 -0
- nectar/discussions.py +1709 -0
- nectar/exceptions.py +149 -0
- nectar/hive.py +546 -0
- nectar/hivesigner.py +420 -0
- nectar/imageuploader.py +72 -0
- nectar/instance.py +129 -0
- nectar/market.py +1013 -0
- nectar/memo.py +449 -0
- nectar/message.py +357 -0
- nectar/nodelist.py +444 -0
- nectar/price.py +557 -0
- nectar/profile.py +65 -0
- nectar/rc.py +308 -0
- nectar/snapshot.py +726 -0
- nectar/steem.py +582 -0
- nectar/storage.py +53 -0
- nectar/transactionbuilder.py +622 -0
- nectar/utils.py +545 -0
- nectar/version.py +2 -0
- nectar/vote.py +557 -0
- nectar/wallet.py +472 -0
- nectar/witness.py +617 -0
- nectarapi/__init__.py +11 -0
- nectarapi/exceptions.py +123 -0
- nectarapi/graphenerpc.py +589 -0
- nectarapi/node.py +178 -0
- nectarapi/noderpc.py +229 -0
- nectarapi/rpcutils.py +97 -0
- nectarapi/version.py +2 -0
- nectarbase/__init__.py +14 -0
- nectarbase/ledgertransactions.py +75 -0
- nectarbase/memo.py +243 -0
- nectarbase/objects.py +429 -0
- nectarbase/objecttypes.py +22 -0
- nectarbase/operationids.py +102 -0
- nectarbase/operations.py +1297 -0
- nectarbase/signedtransactions.py +48 -0
- nectarbase/transactions.py +11 -0
- nectarbase/version.py +2 -0
- nectargrapheneapi/__init__.py +6 -0
- nectargraphenebase/__init__.py +27 -0
- nectargraphenebase/account.py +846 -0
- nectargraphenebase/aes.py +52 -0
- nectargraphenebase/base58.py +192 -0
- nectargraphenebase/bip32.py +494 -0
- nectargraphenebase/bip38.py +134 -0
- nectargraphenebase/chains.py +149 -0
- nectargraphenebase/dictionary.py +3 -0
- nectargraphenebase/ecdsasig.py +326 -0
- nectargraphenebase/objects.py +123 -0
- nectargraphenebase/objecttypes.py +6 -0
- nectargraphenebase/operationids.py +3 -0
- nectargraphenebase/operations.py +23 -0
- nectargraphenebase/prefix.py +11 -0
- nectargraphenebase/py23.py +38 -0
- nectargraphenebase/signedtransactions.py +201 -0
- nectargraphenebase/types.py +419 -0
- nectargraphenebase/unsignedtransactions.py +283 -0
- nectargraphenebase/version.py +2 -0
- nectarstorage/__init__.py +38 -0
- nectarstorage/base.py +306 -0
- nectarstorage/exceptions.py +16 -0
- nectarstorage/interfaces.py +237 -0
- nectarstorage/masterpassword.py +239 -0
- nectarstorage/ram.py +30 -0
- nectarstorage/sqlite.py +334 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#: Operation ids
|
|
3
|
+
|
|
4
|
+
# https://gitlab.syncad.com/hive/hive/-/blob/master/libraries/protocol/include/hive/protocol/operations.hpp
|
|
5
|
+
ops = [
|
|
6
|
+
"vote", # 0
|
|
7
|
+
"comment", # 1
|
|
8
|
+
"transfer", # 2
|
|
9
|
+
"transfer_to_vesting", # 3
|
|
10
|
+
"withdraw_vesting", # 4
|
|
11
|
+
"limit_order_create", # 5
|
|
12
|
+
"limit_order_cancel", # 6
|
|
13
|
+
"feed_publish", # 7
|
|
14
|
+
"convert", # 8
|
|
15
|
+
"account_create", # 9
|
|
16
|
+
"account_update", # 10
|
|
17
|
+
"witness_update", # 11
|
|
18
|
+
"account_witness_vote", # 12
|
|
19
|
+
"account_witness_proxy", # 13
|
|
20
|
+
"pow", # 14
|
|
21
|
+
"custom", # 15
|
|
22
|
+
"report_over_production", # 16
|
|
23
|
+
"delete_comment", # 17
|
|
24
|
+
"custom_json", # 18
|
|
25
|
+
"comment_options", # 19
|
|
26
|
+
"set_withdraw_vesting_route", # 20
|
|
27
|
+
"limit_order_create2", # 21
|
|
28
|
+
"claim_account", # 22
|
|
29
|
+
"create_claimed_account", # 23
|
|
30
|
+
"request_account_recovery", # 24
|
|
31
|
+
"recover_account", # 25
|
|
32
|
+
"change_recovery_account", # 26
|
|
33
|
+
"escrow_transfer", # 27
|
|
34
|
+
"escrow_dispute", # 28
|
|
35
|
+
"escrow_release", # 29
|
|
36
|
+
"pow2", # 30
|
|
37
|
+
"escrow_approve", # 31
|
|
38
|
+
"transfer_to_savings", # 32
|
|
39
|
+
"transfer_from_savings", # 33
|
|
40
|
+
"cancel_transfer_from_savings", # 34
|
|
41
|
+
"custom_binary", # 35
|
|
42
|
+
"decline_voting_rights", # 36
|
|
43
|
+
"reset_account", # 37
|
|
44
|
+
"set_reset_account", # 38
|
|
45
|
+
"claim_reward_balance", # 39
|
|
46
|
+
"delegate_vesting_shares", # 40
|
|
47
|
+
"account_create_with_delegation", # 41
|
|
48
|
+
"witness_set_properties", # 42
|
|
49
|
+
"account_update2", # 43
|
|
50
|
+
"create_proposal", # 44
|
|
51
|
+
"update_proposal_votes", # 45
|
|
52
|
+
"remove_proposal", # 46
|
|
53
|
+
"update_proposal", # 47
|
|
54
|
+
"collateralized_convert", # 48
|
|
55
|
+
"recurrent_transfer", # 49
|
|
56
|
+
# virtual operations below this point
|
|
57
|
+
"fill_convert_request", # last_regular + 1
|
|
58
|
+
"author_reward", # last_regular + 2
|
|
59
|
+
"curation_reward", # last_regular + 3
|
|
60
|
+
"comment_reward", # last_regular + 4
|
|
61
|
+
"liquidity_reward", # last_regular + 5
|
|
62
|
+
"interest", # last_regular + 6
|
|
63
|
+
"fill_vesting_withdraw", # last_regular + 7
|
|
64
|
+
"fill_order", # last_regular + 8
|
|
65
|
+
"shutdown_witness", # last_regular + 9
|
|
66
|
+
"fill_transfer_from_savings", # last_regular + 10
|
|
67
|
+
"hardfork", # last_regular + 11
|
|
68
|
+
"comment_payout_update", # last_regular + 12
|
|
69
|
+
"return_vesting_delegation", # last_regular + 13
|
|
70
|
+
"comment_benefactor_reward", # last_regular + 14
|
|
71
|
+
"producer_reward", # last_regular + 15
|
|
72
|
+
"clear_null_account_balance", # last_regular + 16
|
|
73
|
+
"proposal_pay", # last_regular + 17
|
|
74
|
+
"sps_fund", # last_regular + 18
|
|
75
|
+
"hardfork_hive", # last_regular + 19
|
|
76
|
+
"hardfork_hive_restore", # last_regular + 20
|
|
77
|
+
"delayed_voting", # last_regular + 21
|
|
78
|
+
"consolidate_treasury_balance", # last_regular + 22
|
|
79
|
+
"effective_comment_vote", # last_regular + 23
|
|
80
|
+
"ineffective_delete_comment", # last_regular + 24
|
|
81
|
+
"sps_convert", # last_regular + 25
|
|
82
|
+
"expired_account_notification", # last_regular + 26
|
|
83
|
+
"changed_recovery_account", # last_regular + 27
|
|
84
|
+
"transfer_to_vesting_completed", # last_regular + 28
|
|
85
|
+
"pow_reward", # last_regular + 29
|
|
86
|
+
"vesting_shares_split", # last_regular + 30
|
|
87
|
+
"account_created", # last_regular + 31
|
|
88
|
+
"fill_collateralized_convert_request", # last_regular + 32
|
|
89
|
+
"system_warning", # last_regular + 33,
|
|
90
|
+
"fill_recurrent_transfer", # last_regular + 34
|
|
91
|
+
"failed_recurrent_transfer", # last_regular + 35
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
operations = {o: ops.index(o) for o in ops}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def getOperationNameForId(i):
|
|
98
|
+
"""Convert an operation id into the corresponding string"""
|
|
99
|
+
for key in operations:
|
|
100
|
+
if int(operations[key]) is int(i):
|
|
101
|
+
return key
|
|
102
|
+
return "Unknown Operation ID %d" % i
|