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.

Files changed (86) hide show
  1. hive_nectar-0.0.2.dist-info/METADATA +182 -0
  2. hive_nectar-0.0.2.dist-info/RECORD +86 -0
  3. hive_nectar-0.0.2.dist-info/WHEEL +4 -0
  4. hive_nectar-0.0.2.dist-info/entry_points.txt +2 -0
  5. hive_nectar-0.0.2.dist-info/licenses/LICENSE.txt +23 -0
  6. nectar/__init__.py +32 -0
  7. nectar/account.py +4371 -0
  8. nectar/amount.py +475 -0
  9. nectar/asciichart.py +270 -0
  10. nectar/asset.py +82 -0
  11. nectar/block.py +446 -0
  12. nectar/blockchain.py +1178 -0
  13. nectar/blockchaininstance.py +2284 -0
  14. nectar/blockchainobject.py +221 -0
  15. nectar/blurt.py +563 -0
  16. nectar/cli.py +6285 -0
  17. nectar/comment.py +1217 -0
  18. nectar/community.py +513 -0
  19. nectar/constants.py +111 -0
  20. nectar/conveyor.py +309 -0
  21. nectar/discussions.py +1709 -0
  22. nectar/exceptions.py +149 -0
  23. nectar/hive.py +546 -0
  24. nectar/hivesigner.py +420 -0
  25. nectar/imageuploader.py +72 -0
  26. nectar/instance.py +129 -0
  27. nectar/market.py +1013 -0
  28. nectar/memo.py +449 -0
  29. nectar/message.py +357 -0
  30. nectar/nodelist.py +444 -0
  31. nectar/price.py +557 -0
  32. nectar/profile.py +65 -0
  33. nectar/rc.py +308 -0
  34. nectar/snapshot.py +726 -0
  35. nectar/steem.py +582 -0
  36. nectar/storage.py +53 -0
  37. nectar/transactionbuilder.py +622 -0
  38. nectar/utils.py +545 -0
  39. nectar/version.py +2 -0
  40. nectar/vote.py +557 -0
  41. nectar/wallet.py +472 -0
  42. nectar/witness.py +617 -0
  43. nectarapi/__init__.py +11 -0
  44. nectarapi/exceptions.py +123 -0
  45. nectarapi/graphenerpc.py +589 -0
  46. nectarapi/node.py +178 -0
  47. nectarapi/noderpc.py +229 -0
  48. nectarapi/rpcutils.py +97 -0
  49. nectarapi/version.py +2 -0
  50. nectarbase/__init__.py +14 -0
  51. nectarbase/ledgertransactions.py +75 -0
  52. nectarbase/memo.py +243 -0
  53. nectarbase/objects.py +429 -0
  54. nectarbase/objecttypes.py +22 -0
  55. nectarbase/operationids.py +102 -0
  56. nectarbase/operations.py +1297 -0
  57. nectarbase/signedtransactions.py +48 -0
  58. nectarbase/transactions.py +11 -0
  59. nectarbase/version.py +2 -0
  60. nectargrapheneapi/__init__.py +6 -0
  61. nectargraphenebase/__init__.py +27 -0
  62. nectargraphenebase/account.py +846 -0
  63. nectargraphenebase/aes.py +52 -0
  64. nectargraphenebase/base58.py +192 -0
  65. nectargraphenebase/bip32.py +494 -0
  66. nectargraphenebase/bip38.py +134 -0
  67. nectargraphenebase/chains.py +149 -0
  68. nectargraphenebase/dictionary.py +3 -0
  69. nectargraphenebase/ecdsasig.py +326 -0
  70. nectargraphenebase/objects.py +123 -0
  71. nectargraphenebase/objecttypes.py +6 -0
  72. nectargraphenebase/operationids.py +3 -0
  73. nectargraphenebase/operations.py +23 -0
  74. nectargraphenebase/prefix.py +11 -0
  75. nectargraphenebase/py23.py +38 -0
  76. nectargraphenebase/signedtransactions.py +201 -0
  77. nectargraphenebase/types.py +419 -0
  78. nectargraphenebase/unsignedtransactions.py +283 -0
  79. nectargraphenebase/version.py +2 -0
  80. nectarstorage/__init__.py +38 -0
  81. nectarstorage/base.py +306 -0
  82. nectarstorage/exceptions.py +16 -0
  83. nectarstorage/interfaces.py +237 -0
  84. nectarstorage/masterpassword.py +239 -0
  85. nectarstorage/ram.py +30 -0
  86. 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