Commit Graph

42 Commits

Author SHA1 Message Date
Elizabeth Engelman
576e36fc9c Factor out a common trie iterator method in builder 2019-01-24 12:01:38 -06:00
Elizabeth Engelman
565c9cc6c2 Update test contract to include storage on contract intialization
- so that we're able to test that storage diffing works for created and
deleted accounts (not just updated accounts).
2019-01-24 11:53:59 -06:00
Elizabeth Engelman
81cff28cc2 Update builder test after merging in release/1.8 2019-01-24 08:20:09 -06:00
Elizabeth Engelman
d0ea3a92eb Fix publisher to include rows for accounts that don't have store updates 2019-01-23 16:38:12 -06:00
Elizabeth Engelman
a3a6f97afb Address PR comments 2019-01-15 15:54:07 -06:00
Elizabeth Engelman
29f5c3ce86 Add storage key to csv 2019-01-15 15:08:02 -06:00
Elizabeth Engelman
0f2880a019 Add DiffStorage struct 2019-01-14 11:22:37 -06:00
Elizabeth Engelman
0843a227eb Refactor accumulating account row in csv publisher 2019-01-14 11:22:37 -06:00
Elizabeth Engelman
dceddbfbaa Add contract address and storage value to csv 2019-01-14 11:22:37 -06:00
Elizabeth Engelman
569a5a6dd8 Address PR comments 2019-01-09 09:56:51 -06:00
Elizabeth Engelman
61c82b2326 Cleanup formatting, spelling, etc 2019-01-03 14:38:57 -06:00
Elizabeth Engelman
99a29191b1 Clean up error logging 2019-01-02 17:23:03 -06:00
Elizabeth Engelman
ecd34978d3 Include block number in csv filename 2019-01-02 16:12:53 -06:00
Elizabeth Engelman
74bcf49aa4 Consolidate acct diff structs for updated & updated/deleted accts 2019-01-02 14:28:59 -06:00
Elizabeth Engelman
feaff9998f Remove code field from state diff output
this is the contract byte code, and it can still be obtained by querying
the db by the codeHash
2019-01-02 14:28:22 -06:00
Elizabeth Engelman
0dacc940fd Remove some duplication in builder 2019-01-02 12:38:47 -06:00
Elizabeth Engelman
ade4a8efdc Return filename from publisher 2018-12-26 15:27:16 -05:00
Elizabeth Engelman
dc19bd4e3b Pass statediff mode and path in through cli 2018-12-26 11:20:02 -05:00
Elizabeth Engelman
67a86b1f43 Updates to tests 2018-12-21 14:26:03 -06:00
Elizabeth Engelman
2a8a914705 Updates per go fmt 2018-12-21 11:51:42 -06:00
Elizabeth Engelman
0a6dbb8a27 Update testing
- remove statediff ginkgo test suite file
- move mocks to their own dir
2018-12-21 11:44:53 -06:00
Elizabeth Engelman
2797642dfe Update service loop and fetching previous block 2018-12-21 11:14:36 -06:00
Elizabeth Engelman
7604eb8f9a Update publisher to account for only storing current account values 2018-12-19 15:23:28 -06:00
Elizabeth Engelman
96caa16268 Remove old values from created/deleted accounts 2018-12-19 15:15:32 -06:00
Elizabeth Engelman
8152f5562f Remove old storage value from updated accounts 2018-12-19 13:21:54 -06:00
Elizabeth Engelman
1a8a889ef2 Update builder test 2018-12-19 10:49:05 -06:00
Elizabeth Engelman
78d9869256 Remove OldValue from DiffBigInt and DiffUint64 fields 2018-12-19 10:48:41 -06:00
Elizabeth Engelman
77e86a698a Use hexutil.Encode instead of deprecated common.ToHex 2018-12-19 09:58:44 -06:00
Elizabeth Engelman
f4ca756812 Update statediff tests to use golang test pkg
instead of ginkgo

- builder_test
- extractor_test
- publisher_test
2018-12-18 16:18:34 -06:00
Elizabeth Engelman
1d885ecedd Remove testing focuses 2018-12-13 17:03:41 -06:00
Elizabeth Engelman
4d4c229594 Reformatting due to go fmt 2018-12-13 16:49:10 -06:00
Elizabeth Engelman
8578fc20a3 Pull CSV publishing methods into their own file 2018-12-13 16:47:41 -06:00
Elizabeth Engelman
5b63446b6e Restructure statediff directory 2018-12-13 16:47:41 -06:00
Elizabeth Engelman
869a34cf5a Start to write statediff to a CSV 2018-12-13 16:47:31 -06:00
Elizabeth Engelman
bf186e427c Add statediff extractor and builder tests and small refactoring 2018-12-13 16:47:03 -06:00
Elizabeth Engelman
cf4ed9c2b3 Add debugging logs for creating diff 2018-11-29 16:34:25 -06:00
Elizabeth Engelman
71147861f7 Update starting state diff service 2018-11-29 16:34:25 -06:00
Elizabeth Engelman
32a0a23821 Update imports 2018-11-29 16:34:25 -06:00
Elizabeth Engelman
7957c5a92b Add a state diff service 2018-11-29 10:05:55 -06:00
Ian Norden
976bff614a work towards persisting created statediffs in ipfs; based off github.com/vulcanize/eth-block-extractor 2018-11-26 13:42:09 -06:00
Ian Norden
26e8088cc5 integrating state diff extracting, building, and persisting into geth processes 2018-11-25 23:52:53 -06:00
Ian Norden
53a6b1c689 port statediff from 9b7fd9af80/statediff/statediff.go; minor fixes 2018-11-21 19:31:17 -06:00