MaxMustermann2
1c90c914aa
docs: remove -1 as page option
2 years ago
MaxMustermann2
c89976f2c0
test(validator): update edit validator sign
...
for addition of bls key sig
2 years ago
MaxMustermann2
ca6a6ae1a8
chore(yapf): run yapf
2 years ago
MaxMustermann2
a3295b9650
chore: run `black` on all files
2 years ago
MaxMustermann2
2135d1050c
test: update tests to be independent of localnet
...
remove the requirement that tests must be run after `make test-rpc`. in
fact, these tests must be run independently of those.
test: document raw tx generation
2 years ago
MaxMustermann2
4f266619fa
Add signature options to validator signing
...
The JSON RPC API has changed and now demands a BLS signature
with the BLS key(s) to be added.
3 years ago
Max Mustermann
1574b55003
Update comment for skipped test
4 years ago
Max Mustermann
b0bb5de4d3
Prepare for PR
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
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
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
b1118b7030
[refactor] Move blockchain interaction methods out of rpc lib ( #4 )
5 years ago