Commit Graph

124 Commits

Author SHA1 Message Date
Jacek Sieka 75a1a0e5d8
Merge pull request #35 from status-im/eh-tracking
Fix exceptions from callbacks
2021-03-26 13:16:45 +01:00
Jacek Sieka 04845b0ed8
Fix exceptions from callbacks
For https://github.com/status-im/nim-chronos/pull/166/
2021-03-22 17:14:26 +01:00
Ștefan Talpalaru 21b465fcd5 enable cross-compilation 2021-02-03 21:35:17 +02:00
Viktor Kirilov dde382f70e fixed a problem with geth when sending newHeads with an empty {} argument 2020-09-24 15:56:42 +03:00
andri lim bf6805dff9
Merge pull request #31 from status-im/fix_import
fixes wrong import
2020-09-21 14:03:37 +07:00
jangko 2ac463ce9d
fixes wrong import 2020-09-21 13:26:59 +07:00
Zahary Karadjov fc0c27a730
Fix the CI failure 2020-08-10 23:08:44 +03:00
emizzle 3900d91958
refactor: move encoding/decoding functions to sub-lib
Move all encoding/decoding functions to a separate sub-library, to allow libraries to use these functions without needing to import the entire library (ie hopefully without needing to import secp256k1).
2020-08-10 19:43:42 +10:00
Zahary Karadjov 0361338cea
Correct nonce values when sending multiple transactions 2020-08-01 19:41:39 +03:00
Zahary Karadjov 9fb271b876
Allow run-time block IDs to be used in the RPC calls 2020-07-28 16:37:53 +03:00
Zahary Karadjov 4fe1a81ce7
Add helpers for using Web3 types on the Confutils command-line 2020-07-21 22:17:19 +03:00
andri lim 319af0b00b
Merge pull request #28 from status-im/make_test_green
Attempt to make test green
2020-07-15 22:48:32 +07:00
jangko a01a40b8d7
fix appveyor.yml: 'ganache-cli.cmd' instead of 'ganache-cli' 2020-07-15 16:35:37 +07:00
jangko 4097cfaf95
fix tests 2020-07-15 15:41:22 +07:00
jangko b29311a9d0
silence spurious warnings 2020-07-15 10:14:28 +07:00
jangko fd8b5de13c
fix test_signed_tx 2020-07-15 10:06:11 +07: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 237646de7c
Make the fetching of historic events optional when subscribing to 'logs' 2020-06-27 14:50:53 +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 4889e41a1c
Merge pull request #22 from status-im/requires-keys
secp: requiresInit
2020-06-22 19:02:46 +02:00
Jacek Sieka 73896c2226
fix 2020-06-22 17:09:35 +02: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
Viktor Kirilov f1d3e94dda event handlers should't be permitted to raise anything other than a Defect 2020-05-08 17:20:59 +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 d172765114
Transform some macro generated code into a generic function 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
Jacek Sieka da74eabaa0
web3: fix zero key comparison 2020-04-02 17:31:23 +02:00
Yuriy Glukhov 89d7a0c8fd
Handle and propagate disconnect event from provider 2019-11-22 14:41:12 +02:00
Yuriy Glukhov 7bc29e7470
Merge pull request #14 from status-im/fix-13
Removed unneeded debug prints. Fixes #13
2019-11-04 19:34:55 +02:00
Yuriy Glukhov ca799679f5
Removed unneeded debug prints. Fixes #13 2019-11-04 19:05:31 +02:00
Yuriy Glukhov 37fc461114
Fixed serialization compatibility with geth. Added getMinedTransactionReceipt 2019-10-30 15:05:44 +02:00
Yuriy Glukhov ecd2fb45a6 Added close function 2019-10-23 09:35:54 +09:00
Yuriy Glukhov 5107c088bc
Merge pull request #10 from status-im/blkhashtyp
Use BlockHash and TxHash types where appropriate
2019-09-30 15:54:34 +03: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
Yuriy Glukhov 817c819847 Fixed fixed encoding, inputs/outputs parsing 2019-09-06 09:24:37 -04:00
Ștefan Talpalaru 58d78cfa7f
byteutils -> stew/byteutils 2019-08-24 21:48:57 +02:00
Ștefan Talpalaru 377b14cb4a
CI: update script path 2019-08-24 21:38:37 +02:00
Yuriy Glukhov 6ca87380a6 Fixes #5, implemented tx signing 2019-08-06 11:02:38 +03:00
Yuriy Glukhov 21b7c69093
Merge pull request #6 from status-im/debug
limit debug prints to explicit debug builds (-d:debug)
2019-08-01 22:55:35 +03:00