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,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ import logging
3
+
4
+ from nectargraphenebase.chains import known_chains
5
+ from nectargraphenebase.signedtransactions import Signed_Transaction as GrapheneSigned_Transaction
6
+
7
+ from .operations import Operation
8
+
9
+ log = logging.getLogger(__name__)
10
+
11
+
12
+ class Signed_Transaction(GrapheneSigned_Transaction):
13
+ """Create a signed transaction and offer method to create the
14
+ signature
15
+
16
+ :param num refNum: parameter ref_block_num (see :func:`nectarbase.transactions.getBlockParams`)
17
+ :param num refPrefix: parameter ref_block_prefix (see :func:`nectarbase.transactions.getBlockParams`)
18
+ :param str expiration: expiration date
19
+ :param array operations: array of operations
20
+ :param dict custom_chains: custom chain which should be added to the known chains
21
+ """
22
+
23
+ def __init__(self, *args, **kwargs):
24
+ self.known_chains = known_chains
25
+ custom_chain = kwargs.get("custom_chains", {})
26
+ if len(custom_chain) > 0:
27
+ for c in custom_chain:
28
+ if c not in self.known_chains:
29
+ self.known_chains[c] = custom_chain[c]
30
+ super(Signed_Transaction, self).__init__(*args, **kwargs)
31
+
32
+ def add_custom_chains(self, custom_chain):
33
+ if len(custom_chain) > 0:
34
+ for c in custom_chain:
35
+ if c not in self.known_chains:
36
+ self.known_chains[c] = custom_chain[c]
37
+
38
+ def sign(self, wifkeys, chain="STEEM"):
39
+ return super(Signed_Transaction, self).sign(wifkeys, chain)
40
+
41
+ def verify(self, pubkeys=[], chain="STEEM", recover_parameter=False):
42
+ return super(Signed_Transaction, self).verify(pubkeys, chain, recover_parameter)
43
+
44
+ def getOperationKlass(self):
45
+ return Operation
46
+
47
+ def getKnownChains(self):
48
+ return self.known_chains
@@ -0,0 +1,11 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ def getBlockParams(ws):
5
+ """Auxiliary method to obtain ``ref_block_num`` and
6
+ ``ref_block_prefix``. Requires a websocket connection to a
7
+ witness node!
8
+ """
9
+ raise DeprecationWarning(
10
+ "This method shouldn't be called anymore. It is part of transactionbuilder now"
11
+ )
nectarbase/version.py ADDED
@@ -0,0 +1,2 @@
1
+ """THIS FILE IS GENERATED FROM nectar PYPROJECT.TOML."""
2
+ version = '0.00.02'
@@ -0,0 +1,6 @@
1
+ """nectargrapheneapi."""
2
+
3
+ import sys
4
+
5
+ sys.modules[__name__] = __import__("nectarapi")
6
+ print("nectargrapheneapi is deprecated, use nectarapi instead!")
@@ -0,0 +1,27 @@
1
+ """nectargraphenebase."""
2
+
3
+ from .version import version as __version__
4
+
5
+ # from . import account as Account
6
+ # from .account import PrivateKey, PublicKey, Address, BrainKey
7
+ # from . import base58 as Base58
8
+ # from . import bip38 as Bip38
9
+ # from . import transactions as Transactions
10
+ # from . import dictionary as BrainKeyDictionary
11
+
12
+ __all__ = [
13
+ "account",
14
+ "aes",
15
+ "base58",
16
+ "bip32",
17
+ "bip38",
18
+ "types",
19
+ "ecdasig",
20
+ "chains",
21
+ "objects",
22
+ "operations",
23
+ "signedtransactions",
24
+ "unsignedtransactions",
25
+ "objecttypes",
26
+ "py23",
27
+ ]