Commit Graph
45 Commits
Author SHA1 Message Date
Matt K 4711708397 Update block reading test to resolve periodic fails (#53) 2018-05-04 10:41:56 -05:00
Matt K 8a9395819c Get transactions (#45)
* Make transactions requests in parallel

* Update transaction error handling
2018-03-27 16:06:12 -05:00
Matt K 6c5bc673c0 Update README.md 2018-03-07 15:34:55 -06:00
Matt K 5a652190d9 Allow Parity as ingest node (#36)
* Upgrade go-ethereum to v1.8

* Add Node Info for parity nodes

* Upgrade start_private_blockchain to use v1.8
2018-03-07 15:29:21 -06:00
Matt K ed907535e3 Separate DB access into several repos (#28)
* Separate files for InMemory

* Start using separate repos for collaborating objects

* Before Updating schema

* Separate various repos
2018-02-12 10:54:05 -06:00
Matt K 605b0a96ae Add graphql server (#27)
* Add graphql server

* Update Makefile

* Update log_filters constraint

* Add GetLogFilter to repo

* Update travis (use Makefile, go fmt, go vet)

* Add logFilter schema and resolvers

* Add GetWatchedEvent to watched_events_repo

* Add watchedEventLog schema and resolvers
2018-02-08 10:12:08 -06:00
Matt K d5852654bb Update table columns (#26)
* Update block table names

* Update transaction table names
2018-02-02 16:12:14 -06:00
Matt K aea9c7b5e2 Separate repositories (#25)
* Separate Repository into multiple Repositories

* Use struct scan for transactions

* Use struct scan for blocks

* Remove unused block repo methods

* Update naming

* Rename / Cleanup repository related fields
2018-02-02 15:53:16 -06:00
Matt K 3863bcb614 Events (#24)
* Add watched events repo
2018-02-02 13:58:59 -06:00
Matt K 293dd2e848 Add vendor dir (#16) (#4)
* Add vendor dir so builds dont require dep

* Pin specific version go-eth version
2018-01-29 13:44:18 -06:00
Matt K 82119b3c4b Update README.md 2018-01-29 09:46:48 -06:00
Matt K 3b31e2a342 Update README, add State sync test (#1) 2018-01-26 13:38:14 -06:00
Matt K d09c2ae9bb Remove godo (#136) 2018-01-25 15:46:55 -06:00
Matt K 572023cdf5 Commandline (#135)
* Add cmd line tool and Makefile

* Add shared utils pkg

* Add cmdline README

* Update godo for new structure
2018-01-25 13:21:55 -06:00
Matt K c00b8a5a98 Add Filters (#133)
* Add LogFilter struct

* Add log_filters table

* Add view for events watching

* Add cmd line "add_filter" to mimic eventual endpoint

* Allow multiple filters in config
2018-01-23 12:43:35 -06:00
Matt K 3f06c7374b Update transaction value field (#132)
* Add test for converting big.Int

* Use string as internal representation of transaction value
2018-01-16 14:25:33 -06:00
Matt K 8e651285ba Merge pull request #131 from 8thlight/add_all_logs
Logs are now added with receipts
2018-01-16 10:24:41 -06:00
Matt K a9bea4f492 Allow for multiple Geth nodes (#128) 2018-01-10 15:54:36 -06:00
Matt K f41bf49b0e Update README.md 2018-01-09 08:45:15 -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 14e1fc4213 Remove admin api dependency (#126) 2018-01-08 14:19:42 -06:00
Matt K 54c4f0c2fe Add back infura related tests (#123) 2018-01-08 11:41:01 -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 095cb1e7b7 Update travis build to exactly mimic local build (#120) 2018-01-03 12:42:48 -06:00
Matt K 4fabe3e917 Add receipts (#119)
* Conversion between Geth Receipt and core.Receipt

* Add receipt to DB

* Insert receipts with transactions

* Update Travis CI to use dep for dependencies
2018-01-03 11:23:43 -06:00
Matt K 13748a92e5 Merge pull request #118 from 8thlight/update_lastblock
Update populate blocks to use blockchain rather than db to determine …
2018-01-02 13:44:37 -06:00
Matt K c806b8f13b Merge pull request #117 from 8thlight/add_transaction_fields
Add tx fields
2017-12-29 08:48:29 -06:00
Matt K 7a09839c23 Merge pull request #116 from 8thlight/add_block_fields
Add block fields
2017-12-28 12:04:02 -06:00
Matt K 7e5e12f488 Backfill/listen for contract logs (#113) 2017-12-22 11:42:35 -06:00
Matt K a786241c8c Add indices for tx_to and tx_from (#112) 2017-12-20 16:58:37 -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 266c9587c8 Canonical blocks (#108)
* Update Block w/ newest Block

* Add cascading delete to blocks and transactions tables

* Add handling for new conflicting blocks

* Command line version of sliding window n behind HEAD
2017-12-19 14:14:41 -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 a68f277066 Save Logs to DB (#100)
* Save logs to database

* Save multiple logs to db

* Add block number parameter to `FindLogs`
2017-12-12 15:55:26 -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 921bde1089 Update BlockChain to record NodeInfo (#95) 2017-12-07 13:32:16 -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
Matt K 71de8e970d Contract hist (#84)
Add ability to query contract historical state
2017-12-04 12:54:33 -06:00
Matt K 7a11d3c50f Merge pull request #83 from 8thlight/refactor-two
Refactor Blockchain interface
2017-11-30 16:49:29 -06:00
Matt K f0f086e48d Merge pull request #69 from 8thlight/watch_contract
* Add contracts table / start building out watch contracts
2017-11-13 10:55:55 -06:00
Matt K 74b51a6e05 Merge pull request #67 from 8thlight/from_complete
Added From field to transactions
2017-11-13 10:31:57 -06:00
Matt K c0f737868b Merge pull request #66 from 8thlight/postgres
Refactor postgres to be initialized with config
2017-11-09 12:47:34 -06:00
Matt K 54ed808a61 Merge pull request #65 from 8thlight/config
Refactor config to return an error instead of aborting
2017-11-09 12:44:21 -06:00
Matt K d2920e7acf Add index on block_number column (#43) 2017-11-01 08:52:04 -05:00
Matt K c961e85099 Refactor block conversion (#38)
Move more of block conversion out of observer
2017-10-31 12:51:05 -05:00