Arijit Das
d8a5358a70
Remove ipld-eth-indexer dependency.
2021-08-12 11:56:29 +05:30
Arijit Das
e00e602098
Merge pull request #83 from vulcanize/marshall-binary
...
Update RPC api and backend to support the EIP-2930 and EIP-1559.
2021-08-05 11:04:57 +05:30
Arijit Das
924d0be0b9
Update RPC api and backend to support the EIP-2930 and EIP-1559.
2021-07-27 17:37:50 +05:30
Ashwin Phatak
70f7face75
getLogs API changes to return txHash, make contract arg optional. ( #81 )
...
* getLogs API changes to return txHash, make contract arg optional.
* Populate log index.
* Add test for txn hash in GetLogs request.
* Convert tx string to common.Hash after fetching.
Co-authored-by: Arijit Das <arijitad.in@gmail.com>
2021-07-26 15:43:38 +05:30
Arijit Das
f1a61d0991
Add graphql tests.
2021-07-02 14:35:01 +05:30
Arijit Das
9a5581b543
Fix failing unit tests.
2021-06-29 12:59:37 +05:30
Ashwin Phatak
0a14bd9f0f
Update method used to get storage slot.
2021-06-29 12:23:10 +05:30
Ashwin Phatak
a3ca08b653
Return empty result instead of error if slot not found in storage table.
2021-06-28 12:51:38 +05:30
Ashwin Phatak
b2828a814f
Compute leaf key from slot.
2021-06-28 12:51:38 +05:30
Ashwin Phatak
a284a566d5
Get storage API, with storage leaf CID and raw IPLD block.
2021-06-28 12:51:35 +05:30
Ashwin Phatak
b90fcb53e6
Get logs API, with receipt CID and raw IPLD block.
2021-06-28 12:04:46 +05:30
Ashwin Phatak
18266c4f9d
Get receipt CID and block data for logs.
2021-06-28 12:04:46 +05:30
Arijit Das
969da82f6e
Merge remote-tracking branch 'origin/master' into endpoints
2021-06-18 16:11:11 +05:30
Arijit Das
c4f7fa2821
Address comments.
2021-06-18 12:12:29 +05:30
Arijit Das
e7744cce4b
Add test scripts.
2021-06-14 10:26:10 +05:30
Arijit Das
2c1bc557e5
Add test for GetStorageAt RPC.
2021-06-10 11:51:38 +05:30
Arijit Das
3b3716499f
Fix and add integration test.
2021-06-10 08:50:18 +05:30
Arijit Das
8c16dc2b35
Fix get logs unit test.
2021-06-09 09:12:46 +05:30
Arijit Das
7babaf6c05
Fix failing test
2021-06-04 00:01:25 +05:30
ramil
954e028306
custom comparation for tx and block (exclude time)
...
enrich receipts and logs with non-rlp encoded data (block number, block hash, etc)
2021-04-29 16:33:27 +03:00
ramil
97d8c4dc86
integration tests: fix issue with eth_call (pass chain config via json file to match geth chain config)
...
added additional test case: gets balance for a non-existing account without block number
2021-04-23 12:46:35 +03:00
ramil
1141f3909c
unit test fix for eth_getStorageAt
2021-04-21 22:42:11 +03:00
ramil
cef4b1ddc6
fix storageAt json-rpc endpoint
2021-04-21 22:09:57 +03:00
ramil
39141bd30d
fix quiering json-rpc methods eth_getStorageAt, eth_getBalance without block number
2021-04-21 18:00:01 +03:00
ramil
d09b756768
fix unit tests for getCode method
2021-04-21 15:11:00 +03:00
ramil
9b960a105f
fix CodeAt without block number
2021-04-21 14:16:47 +03:00
ramil
f8b9d9475e
add eth_chainId JSON-RPC endpoint
2021-04-20 00:52:58 +03:00
Ian Norden
d5cf74e202
minor refactor; fix error shadowing
2021-04-19 09:34:38 -05:00
ramil
9d6791706d
fix unit tests
2021-04-19 15:00:28 +03:00
ramil
53f06a66f5
integration test: fix returning error when block doesn't exist
2021-04-19 13:16:59 +03:00
ramil
31cbaec567
fix serve command for ipld graphql server
2021-04-16 16:56:02 +03:00
ramil
75debec01a
remove proxy command
2021-04-16 16:02:04 +03:00
ramil
524ab42674
normilize CLI options, environment variables
...
merge gap-filler library to "serve" commnad
2021-04-14 18:53:44 +03:00
Ian Norden
08df7beca3
eth_getLogs use FilterCriteria not FilterQuery
2021-04-11 23:12:20 -05:00
Ian Norden
aff66d950b
fix
2021-04-10 21:28:21 -05:00
Ian Norden
86aa1c16e6
support net endpoints
2021-04-09 09:51:12 -05:00
Ramil Amerzyanov
d3f30b621b
support custom chain config ( #36 )
...
* support custom chain config
* move loading config logic to a separate helper function
2021-03-10 19:18:32 +03:00
Ramil Amerzyanov
33bb152c04
[WIP] don't write to public.node from ipld-eth-server ( #37 )
...
* don't write to public.node from ipld-eth-server
* update ipld-eth-indexer to version v0.7.0-alpha
2021-03-10 13:13:43 +03:00
Ian Norden
86e9edd3d1
extend deadline
2021-02-27 10:31:40 -06:00
Ian Norden
9f81ffa8e0
minor clenaup/adjustments
2021-02-24 16:20:06 -06:00
Ian Norden
211ec12009
cache misses trigger call out to statediffing geth to fill in the gap in Postgres
2021-02-24 10:50:26 -06:00
Ramil Amerzyanov
e92d35b084
update geth statediff to version v1.9.25-statediff-0.0.14 ( #27 )
...
* update geth statediff to version v1.9.25-statediff-0.0.14
run integration tests in github actions
* fix goose install issue
* fix unit test bug.
Added sorting by tx index for transactions and receipts queries
2021-02-19 23:23:45 +03:00
Ian Norden
b11fb949f5
final touches, test canonicty functions and get tests passing again
2020-11-13 07:40:33 -06:00
Ian Norden
c0a91b9d9f
updated canonical header finder functions
2020-11-09 10:29:04 -06:00
Ian Norden
b128f894c4
postgres functions to check if node was removed (e.g. a la EIP158) in a range; update backend to use these to retrieve state and storage leafs in single (albeit complex) SELECT query
2020-10-31 15:00:03 -05:00
Ian Norden
7c06d4b3a1
additional unit tests
2020-10-30 18:21:44 -05:00
Ian Norden
b208281ad6
optimize GetStorageAt; GetStorageAt unit tests
2020-10-30 12:06:41 -05:00
Ian Norden
b664aee621
unit tests for GetTransactionCount, GetTransactionReceipt, GetBalance, and GetCode
2020-10-30 00:44:41 -05:00
Ian Norden
cffceb53db
optimize GetTransactionCount, GetBalance, and GetCode to use secondary indexes instead of operating through ethdb where we have to iterate down trie from root to leaf (multiple db lookups) to access account info
2020-10-29 22:07:39 -05:00
Ian Norden
dc25ea7f87
new transaction endpoint unit tests (except for GetTransactionCount which is still TODO because testing its current implementation requires complete state (e.g. like eth_call test) so- ideally- will first refactor it to use state diff 2ndary indexes rather than proceeding through regular ethdb interface)
2020-10-29 15:20:58 -05:00