MaxMustermann2
90308f4d78
chore: bump version 0.1.0 -> 0.1.1
2 years ago
MaxMustermann2
883c78e341
fix(signing): drop shard ids from serializer
...
Similar to how the Go node and the Go SDK do it, drop the `ShardID` and
`ToShardID` from the serialization if the `chainId` is reported to be
larger than the mainnet Ethereum compatible chainId.
2 years ago
MaxMustermann2
2ebf783a4d
bump version 0.0.0 -> 0.1.0
2 years ago
MaxMustermann2
0dc407f9eb
chore: move to new build system
2 years ago
MaxMustermann2
28fcf53f18
bump version
2 years ago
MaxMustermann2
1c90c914aa
docs: remove -1 as page option
2 years ago
MaxMustermann2
ca6a6ae1a8
chore(yapf): run yapf
2 years ago
MaxMustermann2
98514c7a2c
chore(lint): resolve `pylint` complaints
2 years ago
MaxMustermann2
a3295b9650
chore: run `black` on all files
2 years ago
MaxMustermann2
eb322498c4
fix(transaction): make error message singular
2 years ago
MaxMustermann2
c9125ba2de
fix(staking): remove -1 as default parameter
...
In Harmony release v4.3.8, this parameter was deprecated and it is no
longer possible to retrieve all pages.
2 years ago
MaxMustermann2
6e83b2c8fd
fix(contract): remove invalid reference to method
2 years ago
MaxMustermann2
3e4533d486
fix(util): pass int `chainId` through
2 years ago
MaxMustermann2
cfd550b553
feat(transaction): add send + confirm staking tx
2 years ago
MaxMustermann2
218fee615b
fix(account): add default param, get_nonce
...
- add a default `block_num` parameter 'latest' to get_account_nonce
- add get_nonce as an alias of get_account_nonce
2 years ago
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
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
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
Max Mustermann
c731326072
confirm transaction => block hash is non zero
4 years ago
Max Mustermann
b0bb5de4d3
Prepare for PR
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
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
Daniel Van Der Maden
6d077de7a4
[setup] Fix build for subpackage
5 years ago