Ganesha Upadhyaya
7690a1ed62
Merge pull request #15 from Robovalidator/fix_test
...
Fix existing transaction tests
4 years ago
hsiung
24ba28d50f
Fix existing unit tests by generating a new raw transaction and specifying the shard 1 endpoint where needed
...
Test Plan:
Ran unit tests and saw that they passed:
~/code/pyhmy$ py.test tests/sdk-pyhmy/test_transaction.py --disable-warnings
===================================================================================================== test session starts ======================================================================================================
platform linux -- Python 3.8.6, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/hsiung/code/pyhmy, configfile: pytest.ini
collected 13 items
tests/sdk-pyhmy/test_transaction.py::test_get_pending_transactions PASSED [ 7%]
tests/sdk-pyhmy/test_transaction.py::test_get_transaction_by_hash PASSED [ 15%]
tests/sdk-pyhmy/test_transaction.py::test_get_transaction_receipt PASSED [ 23%]
tests/sdk-pyhmy/test_transaction.py::test_get_transaction_error_sink PASSED [ 30%]
tests/sdk-pyhmy/test_transaction.py::test_send_raw_transaction PASSED [ 38%]
tests/sdk-pyhmy/test_transaction.py::test_get_pending_cx_receipts PASSED [ 46%]
tests/sdk-pyhmy/test_transaction.py::test_get_cx_receipt_by_hash PASSED [ 53%]
tests/sdk-pyhmy/test_transaction.py::test_resend_cx_receipt PASSED [ 61%]
tests/sdk-pyhmy/test_transaction.py::test_get_staking_transaction_by_hash PASSED [ 69%]
tests/sdk-pyhmy/test_transaction.py::test_get_transaction_by_block_hash_and_index PASSED [ 76%]
tests/sdk-pyhmy/test_transaction.py::test_get_transaction_by_block_number_and_index PASSED [ 84%]
tests/sdk-pyhmy/test_transaction.py::test_get_staking_transaction_error_sink PASSED [ 92%]
tests/sdk-pyhmy/test_transaction.py::test_send_raw_staking_transaction PASSED [100%]
=============================================================================================== 13 passed, 16 warnings in 50.20s ===============================================================================================
4 years ago
Ganesha Upadhyaya
03f12126b5
Update README.md
4 years ago
Daniel Van Der Maden
4bf2b1503b
[version] Bump version
4 years ago
Daniel Van Der Maden
f92259b68b
[cli] Update lib linking for darwin only case
4 years ago
Janet Liang
e10ea06c82
[account] Add warning when using is_valid_address ( #13 )
...
* [validator] Fix typo
* [account] Add thread warning to is_valid_address
4 years ago
Janet Liang
73fb44f1e2
[bech32] Replace bech32 package with correct implementation ( #12 )
...
* [bech32] Replace pip install bech32 implementation with correct bech32 implementation
* Imported version commented out the 90 length check that is required
* [test] Add test for is_valid_address
4 years ago
Janet Liang
351e07377b
[account] Implement bech32 checksum check for one addresses ( #11 )
4 years ago
Daniel Van Der Maden
0d72c67f48
[validator] Make amount == min self del if loaded from chain
...
* bump version
4 years ago
Daniel Van Der Maden
005121e74b
[validator] Fix export & unreferenced attributes
...
* bump version
4 years ago
Daniel Van Der Maden
d615c6658a
[validator] Fix no valid address on instantiation of Validator
...
* bump version
4 years ago
Daniel Van Der Maden
e7664217dc
bump version
4 years ago
Janet Liang
c97a5dc3a1
[validator] Fix sanity checks when input is None ( #9 )
4 years ago
Daniel Van Der Maden
6d89baa746
bump version
4 years ago
Janet Liang
5bb67df3e7
Validator class ( #8 )
...
* [account] Add basic check for valid ONE address
* [rpc] Add ability to access error message from RPCError
* [validator] Inital commit of Validator class
* [validator] Add pretty print option to JSON export
[validator] Fix TypeError when setting string values
* [validator] Update error message
* [validator] Address PR comments
[exceptions] Address PR comments
4 years ago
Janet Liang
ea6926ab4d
[blockchain] Add methods for getValidatorKeys & getBlockSignerKeys ( #7 )
...
* [blockchain] Add methods for getValidatorKeys & getBlockSignerKeys
* [blockchain] Update documentation for new methods
* [test] Fix blockchain test ordering
5 years ago
Janet Liang
6881847544
[exceptions] Add base exceptions package ( #6 )
...
* [exceptions] Remove unused import
* [exceptions] Add base exceptions package & move InvalidRPCReplyError to base exceptions package
5 years ago
Janet Liang
fdfe7f255f
[request] Update documentation
5 years ago
Janet Liang
27cdf2cb7e
[exceptions] Remove JSONDecodeError wrapper, include in RPCError ( #5 )
5 years ago
Janet Liang
b1118b7030
[refactor] Move blockchain interaction methods out of rpc lib ( #4 )
5 years ago
Janet Liang
c137b125d9
Merge pull request #3 from harmony-one/validator_by_block_rpcs
...
[SDK] Update with more methods & RPCs
5 years ago
Janet Liang
525b513652
[docs] Indicate which methods return None when hash isn't found
5 years ago
Janet Liang
f46fe4a450
[tests] Update tests to assert return type
5 years ago
Janet Liang
d5fbdd9575
[blockchain] Add method for hmy_getCurrentBadBlocks
...
[test] Add test for new method
5 years ago
Janet Liang
021fe948e7
[blockchain] Add methods for commonly requested data
...
[blockchain] Raise InvalidRPCReplyErrors when modifying return value
[test] Add tests for new blockchain methods
5 years ago
Janet Liang
4ea694a127
[account] Add RPC to get account nonce (true nonce & pending pool nonce)
...
[account] Add method to get account total balance
[account] Update get_balance_for_all_shards to match return structure as go-sdk
[exceptions] New InvalidRPCReplyError to indicate Harmony API changed from what pyhmy expects
[test] Add respective tests for new RPCs & methods
5 years ago
Janet Liang
481c5e77de
[staking] Add ByBlockNumber validator & delegation information RPCs
...
[test] Add respective tests for new RPCs
[test] Update test setup to return block number of staking transaction
5 years ago
Janet Liang
34d7ade672
[Make] Add make dev to install pytest & dependencies for dev
5 years ago
Janet Liang
f6b29a445d
[setup] Require incremental lib for install
5 years ago
Janet Liang
b29199192e
Merge pull request #2 from harmony-one/fix-setup
...
[setup] Fix build for subpackage
5 years ago
Daniel Van Der Maden
6d077de7a4
[setup] Fix build for subpackage
5 years ago
Janet Liang
3cf778876e
Basic Python SDK ( #1 )
...
* [project] Update README with correct Python version requirement
* [request] Add rpc request lib
[exceptions] Add exceptions wrapper lib
[common] Define defaults for endpoint & timeout
* [blockchain] Added blockchain related RPCs
[staking] Added staking related RPCs
* [blockchain] Added more RPCs, organized file based on RPC type (network or block)
* [account] Add account related RPCs (balance, transaction history)
* [transaction] Added regular & staking transaction RPCs
* [rpc] Move RPCs to separate lib
[common] Remove common & add defaults to request
* [rpc] Add __init__ file for future use
* [util] Update utils to use rpc lib
* [rpc] Add return type annotations
* [make] Fix import errors
* [test] Add tests for rpc_request using local blockchain
[make] Update make tests to print reason to skip test
* [test] Add proper testing infra for RPC calls
* [numbers] Add utils for converting between atto and one
* [test] Use cross shard as the inital funding transaction & enable cross shard RPC tests
* [test] Refactor test setup to not wait if setup on chain is already done
* [pyhmy] Remove dev version & update major version
* [init] Update imports
* [account] Add get_balance_on_all_shards
* [rpc] Fix documentation errors
* [util] Fix is_active_shard error
* [rpc] Address PR comments
5 years ago
Daniel Van Der Maden
b50b8214ae
[version] bump
5 years ago
Daniel Van Der Maden
3c6dc8ddf3
[cli] Fix duplicate arg parsing in _make_call_command
5 years ago
Daniel Van Der Maden
ae8b698996
[logging] expose file path
5 years ago
Daniel Van Der Maden
1b692a56b4
[logging] Add log rotating to ControlledLogger
5 years ago
Daniel Van Der Maden
b27315b0f7
[version] Update version to release
5 years ago
Daniel Van Der Maden
2a3fdfcb75
[cli] Fix string command parse for calls
5 years ago
Daniel Van Der Maden
6a260cf187
[cli] Add support for quoted strings in cli calls
5 years ago
Jong Hyuck Won
790d6fc695
Update README.md
5 years ago
Jong Hyuck Won
e5fb6549ed
Update README.md
5 years ago
Daniel Van Der Maden
793e006826
[cli] Clean cli calls to account for empty strings
5 years ago
Daniel Van Der Maden
b8ceb839b3
[util] Add util to check if shard is active
5 years ago
Daniel Van Der Maden
a50c04e525
[cli] Fix fallback libs set after download
5 years ago
Daniel Van Der Maden
8d7710fbba
[cli] Disable caching for future improvements
5 years ago
Daniel Van Der Maden
3fbdb9ce30
[cli] Restore keystore caching
5 years ago
Daniel Van Der Maden
7407b26a82
[cli] Fix syncing
5 years ago
Daniel Van Der Maden
99d30bea0f
[cli] Refactor stored address logic
5 years ago
Daniel Van Der Maden
3ee4aa15f8
[cli] Lock keystore accesses
5 years ago
Daniel Van Der Maden
00ad71714d
[cli] Disable keystore caching while cli is under dev
5 years ago