Commit Graph
276 Commits
Author SHA1 Message Date
Konstantin Zolotarev 65cb6e9092 VDB-205 Fix external configuration values (#121)
* Updated loading config from /Users/konstantinzolotarev/.vulcanizedb for addreses

* Updated contract addresses loading from env variables.

* Implement getter chain for addresses, configs and transformers

Solves the issue with declaring stuff as vars when the environment file hasn't been loaded yet. Instead, this data is fetched dynamically when the root commands are called.

* Update test data to use constant Kovan addresses

* Decouple integration tests from config file IO

* Add ABI to environment file, convert getter chains for related values

* Decouple tests suites from ABI config file IO

* Add startingBlock to environment and implement getter chain

* Exit when called without config file

* Add missing deployment blocks to staging.toml

* Remove comment
2019-01-23 19:44:09 +01:00
Taka Goto 24cf0661b0 lowercase address on map to get transformers 2019-01-16 14:24:00 -06:00
yaoandrew e2b864baa8 Add rollback if GetTicInTx fails and move GetTicInTx to shared/repository.go 2019-01-11 10:07:00 -08:00
Andrew J Yao c8aa3dc275 Replace standard log with logrus import 2019-01-11 10:07:00 -08:00
yaoandrew bc8b7a101c refactor error handling in vat, cat, vow 2019-01-11 10:07:00 -08:00
yaoandrew 525fada3d7 refactor error handling in frob, pit, price, tend 2019-01-11 10:07:00 -08:00
yaoandrew 657aaccff3 refactor error handling in drip, flap, flop 2019-01-11 10:07:00 -08:00
yaoandrew 05351a8ef4 refactor error handling in dent 2019-01-11 10:07:00 -08:00
yaoandrew 08ac7f18a5 refactor error handling in flip_deal 2019-01-11 10:07:00 -08:00
yaoandrew f655997fde refactor error handling in pit_vow 2019-01-11 10:07:00 -08:00
yaoandrew 843d30c88e refactor error handling in flip 2019-01-11 10:07:00 -08:00
yaoandrew 513513e93b refactor error handling in chop_lump 2019-01-11 10:07:00 -08:00
yaoandrew 78b302eab6 refactor error handling in bite transformer 2019-01-11 10:07:00 -08:00
Edvard 50cc0c2459 Update tests for watcher and repository 2019-01-07 15:20:05 +01:00
Edvard 833dde62cf Remove injection of fetcher and repository to watcher 2019-01-07 15:19:31 +01:00
Edvard e54699c039 Remove todo on chunker non-match (it's basically a filter) 2018-12-14 15:22:46 +01:00
Edvard 7cf694f5e7 Update transformer documentation 2018-12-14 10:30:08 +01:00
Edvard 35f7f719e6 Swap strings.Builder for bytes.Buffer for go 1.9 support 2018-12-13 16:08:57 +01:00
Edvard 129964f3bc Add tests for now shared MissingHeaders 2018-12-13 13:58:16 +01:00
Edvard e5db740ae4 Move MockTransformer to test_data 2018-12-13 13:03:51 +01:00
Edvard d30fcfed80 Use new config getter on shared.Transformer <3 2018-12-13 12:39:57 +01:00
Edvard 882a6dd7a2 Update tests with new adding of transformers 2018-12-12 15:41:44 +01:00
Edvard dc43547612 Improve process of adding transformers 2018-12-12 15:41:29 +01:00
Edvard a86a2ec5c6 Improve checked header column detection 2018-12-12 12:13:23 +01:00
Edvard 4e089c363e Fixes after merging staging 2018-12-11 15:19:27 +01:00
Edvard ff47e2e06e Merge branch 'staging' into VDB-125-aggregate-log-fetching 2018-12-11 15:03:21 +01:00
Edvard 9000c6e9f9 Add test for watcher log delegation 2018-12-11 15:02:32 +01:00
Edvard 5d4239de05 Finish watcher and watcher tests (+fmt) 2018-12-11 13:52:02 +01:00
Edvard d93817f346 Interface-ify shared repository 2018-12-11 11:35:13 +01:00
Edvard 83593cb5f2 Cleanup fetcher and add test todos 2018-12-10 21:12:55 +01:00
Edvard 2d81861ae5 Add chunker tests 2018-12-10 21:11:25 +01:00
Edvard bc9fd17793 Fix remaining integration tests 2018-12-10 17:12:51 +01:00
Edvard 3cb8fe60d4 Fix persistHeader not returning proper header ID 2018-12-10 16:58:24 +01:00
Edvard 637623b752 Fix test suites! 2018-12-10 15:40:45 +01:00
Rob Mulholand 2a518ad518 (VDB-254) Convert numerical values for Pit.file ilk
- convert data to ray when what == "spot" and wad when what == "line"
2018-12-07 11:24:06 -06:00
Rob Mulholand 087af252c9 (VDB-253) Update numerical values for Pit.file debt ceiling
- convert Line to wad
2018-12-07 11:24:06 -06:00
Rob Mulholand 4a5765b20d (VDB-249) Update numerical values for Vat.fold
- convert rate to ray
2018-12-07 11:24:06 -06:00
Edvard e1ba7ac5b4 WIP update tests for aggregate fetching 2018-12-07 18:10:36 +01:00
Edvard 47c75d055b Update repository tests for absence of MissingHeaders 2018-12-04 17:53:46 +01:00
Edvard 9789648cc2 Delegate log chunks to respective transformers 2018-12-04 17:40:39 +01:00
Edvard 8bebcdc064 Change transformer.Execute to single header 2018-12-04 17:05:34 +01:00
Edvard 38c745e8c3 Refactor fetching out from repositories to log_fetcher and watcher 2018-12-04 16:04:13 +01:00
Edvard c26736dc9e WIP continue on aggregate fetching architecture 2018-11-30 17:28:52 +01:00
Elizabeth 8ce901d1af Convert drip_file_ilk tax field to ray (#117) 2018-11-29 14:10:12 -06:00
Edvard 45a087f5d1 WIP: First steps in refactoring to aggregate fetching 2018-11-28 17:00:04 +01:00
Edvard 423fdf01b5 Add log_chunker 2018-11-28 16:59:06 +01:00
Edvard f7ecab9dc2 Fix typo 2018-11-28 15:39:46 +01:00
Taka Goto e8be96a4e7 use logrus for logging 2018-11-21 10:14:11 -06:00
Elizabeth 128d20c9bf Vdb 269- fetch logs by hash (#122)
* Upgrade geth from 1.8.15 to 1.8.18

* Update vat_tune to use shared repository methods

* Query blockchain by block hash instead of block number range

* Remove hash validation from repositories

* Fix vow flog integration test

* Update README Travis build sticker

* Update constants formatting per go fmt

* Update EthPublicKeyParser.ParsePublicKey to use discv5.PubkeyID method

* Address PR comments
2018-11-21 09:30:00 -06:00
Elizabeth b19e77e419 Add integration test for Vow.flog (#114) 2018-11-15 16:44:49 -06:00