MaxMustermann2
6d6c417fe5
fix(util): do not validate integer chainId
...
anybody can create a network with a new chainId. stop validating the
integers, but do validate the strings.
as a side effect, this means we accept Harmony's ethereum compatible
chain ids.
2 years ago
MaxMustermann2
2f0d840f6e
fix(signing): require `chainId` for staking signs
2 years ago
MaxMustermann2
7959415bb4
Merge tempoxylophone/pyhmy:master
2 years ago
mikefreemanwd
25a058d5dd
[feature]: Added utility function to convert from hex to one (other way from one to hex). Added vim .swp files to gitignore.
2 years ago
mikefreemanwd
ce1ae2bc4b
[bugfix]: Add bech32 submodule declaration.
2 years ago
mikefreemanwd
6bc1bbbb34
[bugfix]: Fix test command in Makefile.
2 years ago
MaxMustermann2
cdbdae85d1
Upgrade eth_account version
3 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
c81f9eff41
transaction.py: use correct endpoint
...
Fix for `send_and_confirm_raw_transaction` in getting tx_hash
3 years ago
Max
9f5e912b22
transaction.py: use correct endpoint
...
Fix for ` send_and_confirm_raw_transaction`
3 years ago
Max
8b62d70d4a
Create __init__.py
3 years ago
Ganesha Upadhyaya
668d7ef756
Merge pull request #22 from tshirtman/setup_cfg
...
move package config to setup.cfg
3 years ago
gabriel pettier
81be225cf6
move package config to setup.cfg
...
also set eth-account requirement version to 0.5.4
3 years ago
Ganesha Upadhyaya
099274bec1
Merge pull request #20 from MaxMustermann2/master
...
Resolve Bounty 7 (improve Harmony Python SDK)
3 years ago
Max Mustermann
719e314ba9
add syntax highlighting
4 years ago
Max Mustermann
c731326072
confirm transaction => block hash is non zero
4 years ago
Max Mustermann
751a95375a
Update README
4 years ago
Max Mustermann
1574b55003
Update comment for skipped test
4 years ago
Max Mustermann
686f3bc933
Update README.md to add dependencies installation instructions
4 years ago
Max Mustermann
15c289ffe4
add dependency
4 years ago
Max Mustermann
d19de0d9f0
Remove random file
4 years ago
Max Mustermann
b0bb5de4d3
Prepare for PR
4 years ago
Max Mustermann
c9cf502d21
Update README
4 years ago
Max Mustermann
bbc8ae5ca1
Update README
4 years ago
Max Mustermann
7a536e5724
Update README
4 years ago
Max Mustermann
9b5c08ce77
Update README
4 years ago
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
5 years ago
Daniel Van Der Maden
005121e74b
[validator] Fix export & unreferenced attributes
...
* bump version
5 years ago
Daniel Van Der Maden
d615c6658a
[validator] Fix no valid address on instantiation of Validator
...
* bump version
5 years ago
Daniel Van Der Maden
e7664217dc
bump version
5 years ago
Janet Liang
c97a5dc3a1
[validator] Fix sanity checks when input is None ( #9 )
5 years ago
Daniel Van Der Maden
6d89baa746
bump version
5 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
5 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