Commit Graph

27 Commits

Author SHA1 Message Date
Zahary Karadjov 4fe1a81ce7
Add helpers for using Web3 types on the Confutils command-line 2020-07-21 22:17:19 +03:00
Zahary Karadjov 04be808890
Allow the Web3 types to be saved in Json files; Clean up code duplication with stew/byteutils 2020-07-10 01:07:58 +03:00
Jacek Sieka dd132ba024
rng fix 2020-07-07 13:46:02 +02:00
Zahary Karadjov 227927ddc8
Move the hex parsing routines to ethtypes to make them more accessible 2020-07-02 13:03:38 +03:00
Zahary Karadjov 91eb7c4a47
Remove a pointless file (a legacy from the time when web3 was extracted from nim-json-rpc) 2020-06-30 15:59:29 +03:00
Zahary Karadjov 71524f0f59
Fix nimble test 2020-06-30 15:59:21 +03:00
Zahary Karadjov a75519fe12
Field order that matches the results of Infura
This will be an useful optimisation if we switch to nim-json-seriazation
2020-06-27 14:51:38 +03:00
Zahary Karadjov 4590f21d5d
Added `web3.subscribeForBlockHeaders`; Stricter error handling 2020-06-26 18:30:55 +03:00
Zahary Karadjov 694ff2ad74
More hot fixes for Infura compatiblity 2020-06-24 15:13:36 +03:00
Jacek Sieka 806547ddd1
secp: requiresInit 2020-06-22 17:09:35 +02:00
Zahary Karadjov 05f2a17ba4
Make some string-conversions more friendly for Infura use (0x-prefixes are required there) 2020-06-22 15:27:47 +03:00
Zahary Karadjov ee69dbd48a
A helper for checking if a contract has been deployed at a particular block 2020-06-19 19:42:55 +03:00
Zahary Karadjov 0ca6089962
Misc fixes
* Allow BlockHash et al to be used as keys in hash tables
* Switch from Exceptions to CatchableErrors
* Export some helpers that needed in NBC
2020-04-18 17:24:59 +03:00
Zahary Karadjov 270fd64620
Add convenience API for obtaining logs from a smart contract event 2020-04-18 17:24:59 +03:00
Zahary Karadjov 6927cd08a2
Allow specifying a block number when making smart contract calls
Other changes:

* More accurate RPC signatures
* Handle empty responses from the Web3 provider in `eth_call`
2020-04-18 17:24:59 +03:00
Jacek Sieka 969adf2f1e
keys: fix deprecations 2020-04-04 18:51:27 +02:00
Yuriy Glukhov 37fc461114
Fixed serialization compatibility with geth. Added getMinedTransactionReceipt 2019-10-30 15:05:44 +02:00
Yuriy Glukhov 7ed8080ec3
Use BlockHash and TxHash types where appropriate 2019-09-30 13:39:03 +03:00
Yuriy Glukhov 08909f9972 Fixed gcsafety issues for newer nim 2019-09-09 23:42:39 -04:00
Ștefan Talpalaru 58d78cfa7f
byteutils -> stew/byteutils 2019-08-24 21:48:57 +02:00
Yuriy Glukhov 6ca87380a6 Fixes #5, implemented tx signing 2019-08-06 11:02:38 +03:00
Yuriy Glukhov cd0e216aaf Ergonomics changes 2019-07-31 13:13:26 +03:00
Yuriy Glukhov f96487e604 Fixed more signatures 2019-07-22 12:09:09 +03:00
Yuriy Glukhov cf6dc7699f More fixes, fetch historical logs on subsciption, more tests 2019-07-22 12:09:09 +03:00
Yuriy Glukhov 1d6d413318 Fixed dynamic encoding, added deposit contract test 2019-07-22 12:09:09 +03:00
Yuriy Glukhov 1d58c88989 Event subscriptions 2019-07-22 12:09:09 +03:00
Yuriy Glukhov 4363d66838 Some fixes. Package structure updated. 2019-06-10 15:02:43 +03:00