Commit Graph
1791 Commits
Author SHA1 Message Date
i-norden db4bd5183e use 6c00c38cc4e1db6f7c4cecbb62fdfd540fba50d6 ver of ipld-eth-db (has new get_storage_at_by_hash func) 2023-04-14 17:33:27 +08:00
i-norden d06bce2f1b use e62830c982d4dfc5f3c1c2b12c1754a7e9b538f1 ver of stack-orch 2023-04-14 17:33:27 +08:00
i-norden 97a4cbddc8 remove outdated custom runner; simplify unit tests action 2023-04-14 14:49:39 +08:00
i-norden f689e60292 use go1.19 explicitly in all workflows 2023-04-14 14:49:39 +08:00
i-norden 20fa187092 bump to go 1.19 and update workflow refs 2023-04-14 14:49:39 +08:00
i-norden b410c0876a interface fixes for v1.11.5 2023-04-14 14:49:39 +08:00
i-norden 2695cb5e0b bump kubo version 2023-04-14 14:49:39 +08:00
i-norden 9fcb21f812 bump to v4 v1.11.5 and use internal concurrent_iterator 2023-04-14 14:49:39 +08:00
Ian Norden bf55668d10 Merge pull request #233 from cerc-io/ian/v5_dev
v5 Checkpoint
2023-03-20 07:28:58 -05:00
i-norden bf1151d905 updated ipld-eth-db image ver 2023-03-17 15:19:36 -05:00
telackey ea19cc8d8d Use blocks table, not header_cids, for getBlockNumber() (#232) 2023-03-17 15:17:58 -05:00
i-norden 2bd6ed9b24 use new release of ipld-eth-statedb 2023-03-16 08:24:48 -05:00
i-norden 20b787e5dc missed moving some sql into consolidated file 2023-03-14 10:04:41 -05:00
i-norden 4678b6a733 ipld-eth-statedb initialization/instantiation 2023-03-13 18:23:49 -05:00
i-norden df8bec1ad0 adapt uncle retrieval methods to work for v5 2023-03-13 12:48:25 -05:00
i-norden aab5a2ef0b use ipld-eth-statedb for eth_call and graphql endpoints 2023-03-13 11:25:19 -05:00
i-norden ba5cdecf93 new backend methods using ipld_eth_statedb.StateDB 2023-03-13 07:51:03 -05:00
i-norden 4c29841c21 internalize some node type utils from geth as they are no longer used over there in v5 2023-03-07 21:49:38 -06:00
i-norden 573a3dc991 node_type => removed 2023-03-07 21:49:38 -06:00
i-norden 6f1bfc7fce combine ipld and cid retriever into one struct. the original reason for the separation of concerns was because we used to fetch cids directly from the database but then use those to fetch iplds using an ipfs.BlockService abstraction ontop of our database (and/or a ipfs.BlockExchange). But now they are both accessed directly in the local DB. Additionally, some of the queries should be further refined/refactored/combined as we no longer need to take two trips but can retrieve cid and ipld in the same query. 2023-03-07 21:49:38 -06:00
i-norden 5bd9783aed move all sql statements into own file 2023-03-07 21:49:35 -06:00
i-norden 907f15f640 mh_key => cid; leaf_cid => cid; refactor GetReceipts 2023-03-02 17:59:13 -06:00
i-norden 87013110f9 public.blocks => ipld.blocks 2023-03-02 17:41:44 -06:00
Ian Norden 53b6fbfee3 Merge pull request #231 from cerc-io/ian/v5_dev
Clean up
2023-03-01 22:26:40 -06:00
i-norden 8ec203ec3d refactor out remaining unused bits 2023-02-21 19:50:58 -06:00
i-norden 7279d48dc6 remove vestigial packages 2023-02-21 19:47:47 -06:00
telackey b0bcdacc7d Add debugging support for Docker container. (#228) 2023-01-25 16:10:29 -06:00
Ian Norden dec31761b2 Merge pull request #225 from cerc-io/ian_dev
Fall-through post-London endpoints
2023-01-23 12:45:15 -06:00
telackey ade4a7ae91 Only attempt to parse the body when it is present. 2023-01-20 20:08:19 -06:00
telackey 190d0d7ac9 Improved logging and metrics. (#227)
1. Improve logging to include API method, user ID, etc in the output. We do this by intercepting the request details in the "middleware" and adding them to the request context, as well as adding a wrapper to logrus that simplifies including the fields in the output.

2. Breakdown API metrics by method. This will allow us to differentiate call counts and durations by API method (eg, eth_call vs eth_getStorageAt).
2023-01-20 19:39:26 -06:00
i-norden 1b5dbc33d7 eth_maxPriorityFeePerGas fall-through 2023-01-12 20:58:42 -06:00
i-norden 74071ecdf9 eth_gasPrice fall-through 2023-01-12 20:58:42 -06:00
i-norden 7b19973f91 eth_estimateGas fallthrough 2023-01-12 20:58:42 -06:00
i-norden ed088cdf21 eth_feeHistory fallthrough endpoint 2023-01-12 20:58:42 -06:00
i-norden 2b10ac5385 eth_createAccessList fall-through endpoint 2023-01-12 20:58:42 -06:00
roysc e0de4a1591 add StateDiffTimeout config setting (#224) 2023-01-12 19:18:12 -06:00
Ian Norden 618d2afaac Merge pull request #223 from cerc-io/ian/no_writeStateDiffAt_forward
Remove problematic `eth_writeStateDiffAt` calls
2023-01-10 18:25:01 -06:00
i-norden 4f2436c7f9 Merge branch 'v4' into ian/no_writeStateDiffAt_forward 2023-01-10 18:13:40 -06:00
telackey 757edf17d6 Add option to forward eth_getStorageAt calls. (#221) 2023-01-10 17:39:21 -06:00
i-norden f667e59699 do no eth_writeStateDiffAt for certain endpoints where we cannot pinpoint which statediff is missing 2023-01-10 15:34:39 -06:00
telackey 96a0774725 Always return when forwarding. 2023-01-10 13:16:01 -06:00
telackey 3a248979b9 Remove ipld 2023-01-10 12:24:29 -06:00
telackey c57e8091b8 Merge error 2023-01-10 12:19:38 -06:00
telackey 71cbb71e13 Remove accidental file. 2023-01-10 12:13:12 -06:00
telackey b37c6bb5a3 Merge branch 'v4' into telackey/pxy_get_storage_at 2023-01-10 12:10:03 -06:00
telackey d64ac5792c Add forwardGetStorageAt setting. 2023-01-10 12:04:28 -06:00
telackey 8c55b6341a 211: ipld-eth-server http counters don't work (#212)
* 211: ipld-eth-server http counters don't work

* On one line is fine
2022-12-23 14:07:24 -06:00
prathamesh0 721a728d4b Implement getSlice API (#206)
* Implement getSlice API for state nodes

* Implement getSlice API for storage nodes

* Fix the helper function to create a slice of required paths

* Fix query to get state leaf key for given storage root

* Add a test to get state slice for root path

* Add checks in queries to get canonical data

* Add tests to get state slice

* Add a todo for using an iterator

* Avoid filtering out removed nodes

* Add tests to get storage slice

* Remove logs

* Populate extra contract leaves field in the response

* Update tests

* Avoid EOAs in additional data in response

* Use iterator based approach for getSlice

* Skip undesired nodes from stem and head iterators

* Update storage slice tests

* Fix meta data updates

* Use state trie to get stem nodes directly using paths

* Bugfix - Continue processing other trie nodes on encountering a leaf

* Remove unnecessary TODO
2022-12-19 14:12:23 +05:30
telackey 4714610b72 Use get_storage_at DB functions. (#205)
* Use new get_storage_at DB functions.

* Use latest ipld-eth-db for tests.
2022-11-16 14:13:10 -06:00
Michael 5a7281009d dependency updates for geth 1.10.26 (#204) 2022-11-08 15:38:40 -05:00