Commit Graph
31 Commits
Author SHA1 Message Date
Rob Mulholand e1f609528d Add Pit file stability fee event
- file event on the pit contract is overloaded and each implementation
  logs a note
- existing Pit file transformer now specified as dealing with ilks
2018-09-05 11:36:13 -05:00
Rob Mulholand a30e5036fd generate log event signatures from functions 2018-09-04 16:19:03 -05:00
Rob Mulholand 8f5bc0a956 Add raw log to Frob record in DB
- Enables parsing additional values off the log if necessary
- Also update Frob to reflect DSS changes (lad => urn)
- Move Frob constants to shared directory
2018-09-04 16:11:54 -05:00
Rob Mulholand db4b891398 Backfill Pit.file log events 2018-09-04 16:07:35 -05:00
Rob Mulholand 1916d585fa Incorporate DSS updates (#8)
* Incorporate DSS updates
- Lad renamed to Guy
- Dink and Dart added to Frob
* update test chain data
* Remove Mom field from FlipKick
* Update Flip ABI and sample flip kick data
* Incorporate updates to Frob event
- Guy renamed to Lad
- Era and Gem removed, iArt added
- Also turn off integration tests that read from test chain while
events are actively under development
2018-08-28 14:16:39 -05:00
Rob Mulholand 634604d0b5 Combine price feed transformers
- fetches logs from all three price feeds in one query
- assumes eth/usd price feed will be updated to include LogValue event
- updates transformers to run separate from header sync
2018-08-16 11:22:16 -05:00
Rob Mulholand 9231d40369 Extract price feed contract addresses to config 2018-08-16 11:22:16 -05:00
Rob Mulholand 72a849a272 Update price feeds if header changed by validator
- currently not validating price feeds if the underlying header already exists
  and is valid, since price feeds should have been added when initial header
  was added
2018-08-16 11:22:16 -05:00
Rob Mulholand 6e68dc4a92 Add Rep price feed 2018-08-16 11:22:16 -05:00
Rob Mulholand 2949996d22 Add Pip price feed 2018-08-16 11:22:16 -05:00
Rob Mulholand 0551147453 Add Pep price feed 2018-08-16 11:22:16 -05:00
Rob Mulholand 9f7a776d70 update chain data for frob event 2018-08-14 10:47:43 -05:00
Rob Mulholand ac63e43543 Backfill Frob log events 2018-08-14 10:47:43 -05:00
Rob Mulholand 55229cd2eb Refactorings to get tests passing with local Ganache setup
- removes assertions against data with timestamps to facilitate running
the tests against a freshly setup local Ganache instance
- also applies a few `go vet` and `go fmt` changes
2018-08-09 16:55:44 -05:00
Rob Mulholand 66decaaa78 Merge pull request #29 from 8thlight/light-sync
Add light sync command
2018-07-20 11:52:35 -05:00
Rob Mulholand a683e45855 Consolidate test doubles
- Migrate various mocks of core namespaces to shared version in `fakes` pkg
- Err on the side of making test doubles less sophisticated
- Don't pull over mocks of namespaces that are only used in example code
2018-07-20 11:37:46 -05:00
Rob Mulholand 63434f6bc9 Add tests for pkg/geth/blockchain
- inject dependencies instead of initializing them in the constructor
2018-07-18 16:34:13 -05:00
Rob Mulholand 1355271011 Add light sync command
- Only syncs block headers (excludes block bodies, transactions, receipts, and logs)
- Modifies validation window to include the most recent block
- Isolates validation window to the variable defined in the cmd directory (blocks
  have a separate variable defined in the block_repository for determining when
  to set a block as final)
2018-07-18 16:34:12 -05:00
Rob Mulholand 74d6046508 Merge pull request #65 from chapsuk/dev_env
Dockerized dev environment, geth rinkeby
2018-06-27 09:13:38 -05:00
Rob Mulholand 02fc10dd3d Merge pull request #64 from chapsuk/fix_flag_description
Fixed sync command help typo
2018-06-21 12:33:05 -05:00
Rob Mulholand b2cf8d55d8 Merge pull request #63 from chapsuk/duplicate_gouroutines
Removed useless goroutines from sync cmd
2018-06-21 10:12:49 -05:00
Rob Mulholand 94182b55fa Merge pull request #61 from wanderingstan/patch-1
Add "About" section to README
2018-06-21 09:49:49 -05:00
Rob Mulholand b1df139d29 Merge pull request #57 from vulcanize/fix-missing-blocks-lookup
Fix missing block numbers lookup
2018-06-13 11:28:22 -05:00
Rob Mulholand 3e39ccb9bb Fix missing block numbers lookup
- Previously, a block was treated as missing if there was a number in
the given range for which there existing a block that did not match
the node's fingerprint. This meant that in a case where we have a block
that does not match the node's fingerprint and also one that does match,
the block would be treated as missing. This led to errors being thrown
when attempting to add a block that already exists.
- These changes treat a block as missing only if we do not already have
a block that matches the number and node fingerprint.
2018-06-08 11:26:25 -05:00
Rob Mulholand 7533e6d476 Merge pull request #52 from vulcanize/cold-import
Cold import
2018-05-21 09:34:05 -05:00
Rob Mulholand d5c2ab33fc Sync only missing blocks on cold import
= Add eth_node_fingerprint to block that can be imitated by both hot and cold imports
- Only sync missing blocks (blocks that are missing or don't share a fingerprint) on cold import
- Set block is_final status after import
2018-05-07 16:38:04 -05:00
Rob Mulholand 5a5e08bd13 Get head block number
- Allows us to refuse to sync past current head
- Creates the opportunity to add a flag for syncing all blocks
2018-05-04 11:03:50 -05:00
Rob Mulholand 5f6bf32ec1 Add cold import script 2018-05-04 10:54:00 -05:00
Rob Mulholand 462f94d84a Associate receipts with blocks instead of transactions
- Allows us to fetch receipts by block and persist even when
associated transaction is unknown. (The associated transaction
can still be derived from the tx_hash column at query time, but
is an expensive operation to require for inserts).
2018-05-04 10:52:28 -05:00
Rob Mulholand 02b23ef748 Rename handlers to transformers 2018-03-16 15:07:19 -05:00
Rob Mulholand 203f9b47d3 Merge pull request #32 from vulcanize/custom_handlers
Handle events
2018-03-05 10:23:11 -06:00