hive-nectar 0.2.9__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.
- hive_nectar-0.2.9.dist-info/METADATA +194 -0
- hive_nectar-0.2.9.dist-info/RECORD +87 -0
- hive_nectar-0.2.9.dist-info/WHEEL +4 -0
- hive_nectar-0.2.9.dist-info/entry_points.txt +2 -0
- hive_nectar-0.2.9.dist-info/licenses/LICENSE.txt +23 -0
- nectar/__init__.py +37 -0
- nectar/account.py +5076 -0
- nectar/amount.py +553 -0
- nectar/asciichart.py +303 -0
- nectar/asset.py +122 -0
- nectar/block.py +574 -0
- nectar/blockchain.py +1242 -0
- nectar/blockchaininstance.py +2590 -0
- nectar/blockchainobject.py +263 -0
- nectar/cli.py +5937 -0
- nectar/comment.py +1552 -0
- nectar/community.py +854 -0
- nectar/constants.py +95 -0
- nectar/discussions.py +1437 -0
- nectar/exceptions.py +152 -0
- nectar/haf.py +381 -0
- nectar/hive.py +630 -0
- nectar/imageuploader.py +114 -0
- nectar/instance.py +113 -0
- nectar/market.py +876 -0
- nectar/memo.py +542 -0
- nectar/message.py +379 -0
- nectar/nodelist.py +309 -0
- nectar/price.py +603 -0
- nectar/profile.py +74 -0
- nectar/py.typed +0 -0
- nectar/rc.py +333 -0
- nectar/snapshot.py +1024 -0
- nectar/storage.py +62 -0
- nectar/transactionbuilder.py +659 -0
- nectar/utils.py +630 -0
- nectar/version.py +3 -0
- nectar/vote.py +722 -0
- nectar/wallet.py +472 -0
- nectar/witness.py +728 -0
- nectarapi/__init__.py +12 -0
- nectarapi/exceptions.py +126 -0
- nectarapi/graphenerpc.py +596 -0
- nectarapi/node.py +194 -0
- nectarapi/noderpc.py +79 -0
- nectarapi/openapi.py +107 -0
- nectarapi/py.typed +0 -0
- nectarapi/rpcutils.py +98 -0
- nectarapi/version.py +3 -0
- nectarbase/__init__.py +15 -0
- nectarbase/ledgertransactions.py +106 -0
- nectarbase/memo.py +242 -0
- nectarbase/objects.py +521 -0
- nectarbase/objecttypes.py +21 -0
- nectarbase/operationids.py +102 -0
- nectarbase/operations.py +1357 -0
- nectarbase/py.typed +0 -0
- nectarbase/signedtransactions.py +89 -0
- nectarbase/transactions.py +11 -0
- nectarbase/version.py +3 -0
- nectargraphenebase/__init__.py +27 -0
- nectargraphenebase/account.py +1121 -0
- nectargraphenebase/aes.py +49 -0
- nectargraphenebase/base58.py +197 -0
- nectargraphenebase/bip32.py +575 -0
- nectargraphenebase/bip38.py +110 -0
- nectargraphenebase/chains.py +15 -0
- nectargraphenebase/dictionary.py +2 -0
- nectargraphenebase/ecdsasig.py +309 -0
- nectargraphenebase/objects.py +130 -0
- nectargraphenebase/objecttypes.py +8 -0
- nectargraphenebase/operationids.py +5 -0
- nectargraphenebase/operations.py +25 -0
- nectargraphenebase/prefix.py +13 -0
- nectargraphenebase/py.typed +0 -0
- nectargraphenebase/signedtransactions.py +221 -0
- nectargraphenebase/types.py +557 -0
- nectargraphenebase/unsignedtransactions.py +288 -0
- nectargraphenebase/version.py +3 -0
- nectarstorage/__init__.py +57 -0
- nectarstorage/base.py +317 -0
- nectarstorage/exceptions.py +15 -0
- nectarstorage/interfaces.py +244 -0
- nectarstorage/masterpassword.py +237 -0
- nectarstorage/py.typed +0 -0
- nectarstorage/ram.py +27 -0
- nectarstorage/sqlite.py +343 -0
nectar/constants.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Hive-only canonical constants
|
|
2
|
+
HIVE_100_PERCENT = 10000
|
|
3
|
+
HIVE_1_PERCENT = 100
|
|
4
|
+
HIVE_REVERSE_AUCTION_WINDOW_SECONDS_HF21 = 300
|
|
5
|
+
HIVE_REVERSE_AUCTION_WINDOW_SECONDS_HF20 = 900
|
|
6
|
+
HIVE_REVERSE_AUCTION_WINDOW_SECONDS_HF6 = 1800
|
|
7
|
+
HIVE_CONTENT_REWARD_PERCENT_HF16 = 7500
|
|
8
|
+
HIVE_CONTENT_REWARD_PERCENT_HF21 = 6500
|
|
9
|
+
HIVE_DOWNVOTE_POOL_PERCENT_HF21 = 2500
|
|
10
|
+
HIVE_VOTE_REGENERATION_SECONDS = 432000
|
|
11
|
+
HIVE_VOTING_MANA_REGENERATION_SECONDS = 432000
|
|
12
|
+
HIVE_VOTE_DUST_THRESHOLD = 50000000
|
|
13
|
+
HIVE_ROOT_POST_PARENT = ""
|
|
14
|
+
HIVE_RC_REGEN_TIME = 60 * 60 * 24 * 5
|
|
15
|
+
|
|
16
|
+
STATE_BYTES_SCALE = 10000
|
|
17
|
+
STATE_TRANSACTION_BYTE_SIZE = 174
|
|
18
|
+
STATE_TRANSFER_FROM_SAVINGS_BYTE_SIZE = 229
|
|
19
|
+
STATE_LIMIT_ORDER_BYTE_SIZE = 1940
|
|
20
|
+
EXEC_FOLLOW_CUSTOM_OP_SCALE = 20
|
|
21
|
+
RC_DEFAULT_EXEC_COST = 100000
|
|
22
|
+
STATE_COMMENT_VOTE_BYTE_SIZE = 525
|
|
23
|
+
|
|
24
|
+
CURVE_CONSTANT = 2000000000000
|
|
25
|
+
CURVE_CONSTANT_X4 = 4 * CURVE_CONSTANT
|
|
26
|
+
SQUARED_CURVE_CONSTANT = CURVE_CONSTANT * CURVE_CONSTANT
|
|
27
|
+
|
|
28
|
+
state_object_size_info = {
|
|
29
|
+
"authority_base_size": 4 * STATE_BYTES_SCALE,
|
|
30
|
+
"authority_account_member_size": 18 * STATE_BYTES_SCALE,
|
|
31
|
+
"authority_key_member_size": 35 * STATE_BYTES_SCALE,
|
|
32
|
+
"account_object_base_size": 480 * STATE_BYTES_SCALE,
|
|
33
|
+
"account_authority_object_base_size": 40 * STATE_BYTES_SCALE,
|
|
34
|
+
"account_recovery_request_object_base_size": 32 * STATE_BYTES_SCALE,
|
|
35
|
+
"comment_object_base_size": 201 * STATE_BYTES_SCALE,
|
|
36
|
+
"comment_object_permlink_char_size": 1 * STATE_BYTES_SCALE,
|
|
37
|
+
"comment_object_parent_permlink_char_size": 2 * STATE_BYTES_SCALE,
|
|
38
|
+
"comment_object_beneficiaries_member_size": 18 * STATE_BYTES_SCALE,
|
|
39
|
+
"comment_vote_object_base_size": 47 * STATE_COMMENT_VOTE_BYTE_SIZE,
|
|
40
|
+
"convert_request_object_base_size": 48 * STATE_BYTES_SCALE,
|
|
41
|
+
"decline_voting_rights_request_object_base_size": 28 * STATE_BYTES_SCALE,
|
|
42
|
+
"escrow_object_base_size": 119 * STATE_BYTES_SCALE,
|
|
43
|
+
"limit_order_object_base_size": 76 * STATE_LIMIT_ORDER_BYTE_SIZE,
|
|
44
|
+
"savings_withdraw_object_byte_size": 64 * STATE_TRANSFER_FROM_SAVINGS_BYTE_SIZE,
|
|
45
|
+
"transaction_object_base_size": 35 * STATE_TRANSACTION_BYTE_SIZE,
|
|
46
|
+
"transaction_object_byte_size": 1 * STATE_TRANSACTION_BYTE_SIZE,
|
|
47
|
+
"vesting_delegation_object_base_size": 60 * STATE_BYTES_SCALE,
|
|
48
|
+
"vesting_delegation_expiration_object_base_size": 44 * STATE_BYTES_SCALE,
|
|
49
|
+
"withdraw_vesting_route_object_base_size": 43 * STATE_BYTES_SCALE,
|
|
50
|
+
"witness_object_base_size": 266 * STATE_BYTES_SCALE,
|
|
51
|
+
"witness_object_url_char_size": 1 * STATE_BYTES_SCALE,
|
|
52
|
+
"witness_vote_object_base_size": 40 * STATE_BYTES_SCALE,
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
resource_execution_time = {
|
|
56
|
+
"account_create_operation_exec_time": 57700,
|
|
57
|
+
"account_create_with_delegation_operation_exec_time": 57700,
|
|
58
|
+
"account_update_operation_exec_time": 14000,
|
|
59
|
+
"account_witness_proxy_operation_exec_time": 117000,
|
|
60
|
+
"account_witness_vote_operation_exec_time": 23000,
|
|
61
|
+
"cancel_transfer_from_savings_operation_exec_time": 11500,
|
|
62
|
+
"change_recovery_account_operation_exec_time": 12000,
|
|
63
|
+
"claim_account_operation_exec_time": 10000,
|
|
64
|
+
"claim_reward_balance_operation_exec_time": 50300,
|
|
65
|
+
"comment_operation_exec_time": 114100,
|
|
66
|
+
"comment_options_operation_exec_time": 13200,
|
|
67
|
+
"convert_operation_exec_time": 15700,
|
|
68
|
+
"create_claimed_account_operation_exec_time": 57700,
|
|
69
|
+
"custom_operation_exec_time": 11400,
|
|
70
|
+
"custom_json_operation_exec_time": 11400,
|
|
71
|
+
"custom_binary_operation_exec_time": 11400,
|
|
72
|
+
"decline_voting_rights_operation_exec_time": 5300,
|
|
73
|
+
"delegate_vesting_shares_operation_exec_time": 19900,
|
|
74
|
+
"delete_comment_operation_exec_time": 51100,
|
|
75
|
+
"escrow_approve_operation_exec_time": 9900,
|
|
76
|
+
"escrow_dispute_operation_exec_time": 11500,
|
|
77
|
+
"escrow_release_operation_exec_time": 17200,
|
|
78
|
+
"escrow_transfer_operation_exec_time": 19100,
|
|
79
|
+
"feed_publish_operation_exec_time": 6200,
|
|
80
|
+
"limit_order_cancel_operation_exec_time": 9600,
|
|
81
|
+
"limit_order_create_operation_exec_time": 31700,
|
|
82
|
+
"limit_order_create2_operation_exec_time": 31700,
|
|
83
|
+
"request_account_recovery_operation_exec_time": 54400,
|
|
84
|
+
"set_withdraw_vesting_route_operation_exec_time": 17900,
|
|
85
|
+
"transfer_from_savings_operation_exec_time": 17500,
|
|
86
|
+
"transfer_operation_exec_time": 9600,
|
|
87
|
+
"transfer_to_savings_operation_exec_time": 6400,
|
|
88
|
+
"transfer_to_vesting_operation_exec_time": 44400,
|
|
89
|
+
"vote_operation_exec_time": 26500,
|
|
90
|
+
"withdraw_vesting_operation_exec_time": 10400,
|
|
91
|
+
"witness_set_properties_operation_exec_time": 9500,
|
|
92
|
+
"witness_update_operation_exec_time": 9500,
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
operation_exec_info = {}
|