Commit Graph

25 Commits

Author SHA1 Message Date
Matt Krump
0ae25aff95 Remove getLogs entrypoint 2018-01-16 09:49:23 -06:00
Matt Krump
08993cc6a4 Add back schema dump 2018-01-16 09:11:23 -06:00
Matt K
70cfa20c68 Watch contact updates (#127)
* Downcase all arguments for contact watching

* ABI retrieval from test networks
2018-01-08 15:59:47 -06:00
Matt K
6decf0b54b Remove pubsub and replace w/ polling head of chain (#122)
* Rename geth package structs to not be prefaced with package name

* No longer need to dump schema since Travis uses migrate

* Rearrange history package

* Removed double request for receipt from block rewards

* Remove Listener + Observers and Replace w/ Polling Head

* Potential Short term Issue w/ Infura (ignore these tests for now)
2018-01-05 11:55:00 -06:00
Matt K
7e5e12f488 Backfill/listen for contract logs (#113) 2017-12-22 11:42:35 -06:00
Matt K
24bc83a448 Block categorization (#110)
* Add block categorization (is_final=)

* Add godo task for vulcanizeDB (Example of how everything could work together)

* Add unique constraint on block_number and node

* Add index on block_id for transactions_table

* Add node_id index on blocks table

* Sort transactions returned from FindBlock by tx_hash

* lowercase tx_to, tx_from like etherscan
2017-12-20 14:06:22 -06:00
Matt K
0e837e2d03 Refactoring (#101)
* Make naming consistent for watched_contracts

* Update FindContract and FindBlockByNumber to return errors rather than nil
2017-12-13 10:51:11 -06:00
Matt K
5e64283a12 Get logs for a contract (#99)
* Add ability to fetch logs for a contract and a block

* Test contract related code against Infura, so can run on Travis

* Add godo task for getLogs
2017-12-11 15:08:00 -06:00
Matt K
18163f970e Get ABI via etherscan API (#96)
- Added ABI request
- Add unique constraint on contract hash for watched contracts
2017-12-07 09:58:06 -06:00
Eric Meyer
a0cd7f773a Require ABI filepath for watching a contract 2017-12-04 15:12:27 -06:00
Eric Meyer
f50a4d7726 Allow users to watch and print summaries for contracts 2017-11-13 13:51:09 -06:00
Matt Krump
4ad1d531a8 Update contract naming per Eric PR review 2017-11-13 10:11:27 -06:00
Matt Krump
30fadffb14 Add contracts table / start building out watch contracts 2017-11-09 15:06:01 -06:00
Eric Meyer
84205a21ea Extract loading config to a shared file 2017-11-09 13:37:10 -06:00
Eric Meyer
aa52088ba7 Refactor config to return an error instead of aborting 2017-11-09 12:41:02 -06:00
Eric Meyer
4c84173bc0 Add ability to populate missing blocks
* The command populates up to the highest known block number
 * The anticipated use case is that the listener will be running
   in parallel to the populateBlocks command
    * This will mean that the listener is responsible for picking up
      new blocks, and the populateBlocks command is reposible for
      historical blocks
 * Reformat SQL statements
2017-11-08 14:52:38 -06:00
Eric Meyer
aeb1fe8862 Nest migrations under db directory 2017-11-06 13:12:57 -06:00
Eric Meyer
f4a603efcb Nest packages under pkg 2017-11-06 13:06:03 -06:00
Eric Meyer
9ef1fda667 Fix issue where godo would not build project
* The solution is to add a main.go and call run
     *  parses the current file contents
2017-11-06 11:40:52 -06:00
Eric Meyer
24a8fcbadb Refactor DB observer to depend on repository 2017-11-06 11:25:58 -06:00
Matt Krump
e9efc2ff82 Update to use TOML config 2017-11-03 11:53:31 -05:00
Eric Meyer
0a04df72d3 Reorganize files into separate packages 2017-11-02 15:07:38 -05:00
Eric Meyer
646e0fa057 Refactor to use listener
* This removes some duplication between the fake blockchain and
   geth blockchain.
 * This pulls the observers into the blockchain listener
2017-11-02 12:51:46 -05:00
Eric Meyer
102beb11e3 Add the concept of multiple environments
* Right now, the two environments are Public and Private
    * This was to reflect the two blockchains we run against
2017-11-01 12:15:55 -05:00
Eric Meyer
121511f10d Refactor existing code to use Godo 2017-11-01 10:54:57 -05:00