Commit Graph

13302 Commits

Author SHA1 Message Date
2caedb0c36 Changes for using single-node v4 db schema 2022-05-17 16:54:47 +05:30
Ashwin Phatak
328ab956df
Merge pull request #227 from deep-stack/pm-v4-merge
Merge branch 'v1.10.17-statediff-3.2.1' into v4
2022-05-16 12:05:27 +05:30
41c9ea064c Add new target branch for github actions 2022-05-16 11:37:42 +05:30
a6891a65a2 Merge branch 'v1.10.17-statediff-3.2.1' into v4 2022-05-16 10:52:45 +05:30
Ashwin Phatak
17d272d837
Merge pull request #226 from deep-stack/ng-public-WatchedAddressesLeafKeys
Export builder config param WatchedAddressesLeafKeys
2022-05-13 16:09:34 +05:30
4318911a5c Move over helper function for loading chain config 2022-05-12 19:27:14 +05:30
aa3fa24bef Implemented method to get private watchedAddressesLeafKeys 2022-05-12 15:49:58 +05:30
Ashwin Phatak
cef1fc425f
Merge pull request #225 from deep-stack/pm-v4-schema-fixes
Updates to use v4 multi-node DB setup
2022-05-12 14:43:06 +05:30
24058dc9df Export builder config param WatchedAddressesLeafKeys 2022-05-11 18:23:17 +05:30
8a4583c48c Run tests using multi-node database setup 2022-05-11 16:34:40 +05:30
d2c25c6a10 Update more test queries to use COALESCE 2022-05-11 16:09:12 +05:30
6ae7719c64 Use COALESCE to avoid possible NULL values from database 2022-05-11 14:27:47 +05:30
ecba34cdac Change ON CONFLICT clauses to do nothing 2022-05-11 13:59:34 +05:30
9db8c59144 Update ipld-eth-db build configuration in docker-compose file 2022-05-11 13:59:27 +05:30
8551aaee81 Fix database insert statements according to v4 schema 2022-05-11 13:58:04 +05:30
d2144cad4b Fix assertion errors 2022-05-11 13:58:04 +05:30
de0954a449 Merge latest v3 changes into v4 2022-05-11 13:42:51 +05:30
Abdul Rabbani
8316859938 Remove related-repository 2022-04-22 08:45:10 -04:00
Abdul Rabbani
498101102c
Merge pull request #222 from vulcanize/v1.10.17-statediff-v3.2.0
Handle all breaking changes for the patch
2022-04-06 14:44:49 -04:00
Abdul Rabbani
e6ac85fefc Remove redundant deferences for pointers 2022-04-06 13:51:03 -04:00
Abdul Rabbani
3477d35af4 Handle all breaking changes for the patch
The major change to integrate the patch has been:

* Updating the arguments for `rlp.EncodeToBytes`. This function accepts interfaces, but since the last update, it is better to pass in a pointer to the function.
* From the Ethereum Release Notes: "
Compatibility note about `core/types`: For optimization purposes, `types.Header` and other types in this package now implement the `rlp.Encoder` interface. This change can cause incompatibilities because the new method is implemented with pointer receiver. Attempting to RLP-encode unadressable (i.e. non-pointer) values of type `Header` does not work anymore and will result in an error."
* Instead of just updating all the headers. I have updated all parameters for the `rlp.EncodeToBytes` to be pointers instead of values.

__Please take a close look at the updates__. The functions won't fail if a non-pointer is passed (in most cases), but we could be unexpected behaviors.
2022-04-06 10:57:57 -04:00
Abdul Rabbani
e5824ecbe9
Merge pull request #221 from vulcanize/v1.10.17-statediff-v3.2.0
Update a few go dependencies + GHA workflow
2022-04-05 15:50:45 -04:00
Abdul Rabbani
3ef54d3dde Update a few go dependencies + GHA workflow 2022-04-05 15:49:41 -04:00
Abdul Rabbani
a7caed41df Merge tag 'v1.10.17' into v1.10.17-statediff-v3 2022-04-05 15:30:47 -04:00
Ashwin Phatak
a9ab76cb33
Merge pull request #210 from deep-stack/pm-removed-storage-nodes
Add diffs for storage nodes of destroyed contracts
2022-04-05 14:21:19 +05:30
b351f8f335 Increase timeout in a failing test 2022-04-05 12:38:14 +05:30
c21aa96962 Index Removed diffs without leaf keys if an account or storage node is moved 2022-04-05 12:09:23 +05:30
9917e6c293 Fix linting errors 2022-04-05 12:09:23 +05:30
84365431d1 Update indexer unit tests 2022-04-05 12:09:23 +05:30
a14745dac5 Updated unit tests for changes in builder 2022-04-05 12:09:09 +05:30
4855d9304e Index Removed storage diffs on contract destruction 2022-04-05 11:03:54 +05:30
Ashwin Phatak
2aaf6bcda3
Merge pull request #212 from deep-stack/pm-watched-addresses-v3
Statediff API (v3) to change addresses watched in direct indexing mode
2022-04-05 09:33:51 +05:30
52df3460d6 Create file for watched addresses only when required 2022-04-01 14:58:50 +05:30
710312378a Add indexer unit tests for loading watched addresses 2022-04-01 14:58:50 +05:30
e7526469db Add file mode indexer unit tests for watched address methods 2022-04-01 14:58:50 +05:30
a7f9354f0e Implement watch address indexer methods for file mode 2022-04-01 14:58:50 +05:30
12b9f50930 Update context used in watch address indexer functions 2022-04-01 14:56:29 +05:30
750e44e9e6 Add builder test for removal of watched addresses 2022-04-01 14:55:33 +05:30
f3761efe76 Add a fix in builder for removal of a non-watched address 2022-04-01 14:55:33 +05:30
7f38afe542 Add tests for the API to change addresses being watched 2022-04-01 14:55:33 +05:30
af4dbed9d2 Add tests for indexer methods used to change addresses being watched 2022-04-01 14:55:33 +05:30
8fc2c09634 Add placeholder indexer methods for file and dump modes 2022-04-01 14:55:33 +05:30
9b234ef5b4 Statediff API to change addresses being watched in direct indexing 2022-04-01 14:55:33 +05:30
Abdul Rabbani
c8b68db48c
Merge pull request #217 from vulcanize/feature/known-gaps
Feature/known gaps
2022-03-31 14:38:59 -04:00
Abdul Rabbani
d24a49ef03 Add Workflow dispatch for docker builds 2022-03-31 14:14:34 -04:00
Abdul Rabbani
102f874c63 Update known_gaps table name 2022-03-31 14:11:57 -04:00
Abdul Rabbani
359799dee2 Update docker compose 2022-03-31 14:02:30 -04:00
Abdul Rabbani
2e836e869a PR Updates as per Ian's request 2022-03-31 11:37:01 -04:00
Abdul Rabbani
a60d5a016d Code Clean Up 2022-03-30 17:30:19 -04:00
Abdul Rabbani
fc6a9379e1 Add Prometheus metrics and write SQL file if it has data. 2022-03-30 12:53:44 -04:00