Matthias Seitz
c75608eda1
ci: rm pinned nightly ( #1541 )
...
* ci: rm pinned nightly
* chore(clippy): make clippy happy
2022-07-31 19:00:31 -07:00
Matthias Seitz
81a2a5ed68
fix(etherscan): support stringified numbers in response ( #1524 )
...
* fix(etherscan): support stringified numbers in response
* feat: add helper function
* improve string parsing
* chore(clippy): make clippy happy
2022-07-28 11:06:56 -07:00
Bjerg
c436d19a9c
feat(etherscan): add caching ( #1108 )
...
* feat(etherscan): add caching
* feat: write to cache if not exists
* fix: flush `BufWriter`
* fix: fix serialization
* fix: read cache without truncating the file
* chore: remove comments
* feat: rate limit errors
* test: fix tests
* test: fix tests
* fix: don't fail if cache doesn't exist
* fix: catch all rate limits
* feat: add ttl
* feat: also cache when contracts are not verified
* chore: clippy
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-04-05 19:01:44 -07:00
Alexey Shekhirin
dd2c589102
feat(etherscan, middleware): implement gas endpoints and use in oracle middleware ( #621 )
...
* feat(etherscan, middleware): implement gas-related endpoints and use them in gas oracle
* cleanup deps
* better comment
* revertme: add debug print
* Revert "revertme: add debug print"
This reverts commit 63993642c4
.
* make etherscan tests serial
* run each etherscan test at least 200ms
* 200ms -> 250ms
* Revert "200ms -> 250ms"
This reverts commit 29c7f6ed9a
.
* add separate etherscan key for celo tests
* 200ms -> 250ms
* add Chain::Sepolia to match
2021-11-27 09:54:20 +02:00
Matthias Seitz
dcf20022c6
chore: add rustfmt.toml ( #537 )
...
* chore: add rustfmt.toml
* rustfmt
* chore: Update readme with fmt info
* ci: update ci
* chore: rustfmt
* rustfmt
* rustfmt
* ci: install libudev
* chore(clippy): make clippy happy
* chore(clippy): make clippy happy
* revert ci
* ci: install libudev
2021-10-29 14:29:35 +02:00
Alexey Shekhirin
cba1a85483
refactor(core, contract, etherscan): move Chain enum, use HashMap::from ( #524 )
...
* refactor(contract, etherscan): make use of HashMap::from
* feat(core): Chain enum
* rename unknown chain error
* reorg imports
2021-10-24 21:41:50 +03:00
Alexey Shekhirin
071a41605b
feat(etherscan): transaction endpoints ( #512 )
...
* feat(etherscan): transaction endpoints
* bump ethers-etherscan version to 0.1.1
* feat: replace anyhow::Result with thiserror strong types
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-17 13:01:20 +03:00