Commit Graph

96 Commits

Author SHA1 Message Date
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 Krump
e510154c81 mend 2017-11-13 10:37:09 -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 Krump
4ad1d531a8 Update contract naming per Eric PR review 2017-11-13 10:11:27 -06:00
A. F. Dudley
75ac3d75d8 Merge pull request #68 from 8thlight/license
Add LICENSE
2017-11-09 21:01:30 -05:00
Matt Krump
c7bd6de7da Added From field to transactions 2017-11-09 16:51:22 -06:00
Matt Krump
30fadffb14 Add contracts table / start building out watch contracts 2017-11-09 15:06:01 -06:00
Eric Meyer
a655470f18 Refactor run main.go 2017-11-09 14:30:24 -06:00
Eric Meyer
84205a21ea Extract loading config to a shared file 2017-11-09 13:37:10 -06:00
Matt Krump
e414d42704 Add LICENSE 2017-11-09 12:58:17 -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
Eric Meyer
58fbeb32fd Refactor postgres to be initialized with config 2017-11-09 12:42:24 -06:00
Eric Meyer
aa52088ba7 Refactor config to return an error instead of aborting 2017-11-09 12:41:02 -06:00
ericmeyer
61cf7af2ec Merge pull request #63 from 8thlight/add_db_transactions-two
Add database transactions to postgres repository
2017-11-08 15:28:43 -06:00
Matt Krump
df9e7ebcc5 Add database transactions to postgres repository
* Repository returns error when CreateBlock fails.
2017-11-08 15:25:06 -06:00
ericmeyer
d3b3da7f17 Merge pull request #59 from 8thlight/populate-historical-blocks
Populate historical blocks
2017-11-08 14:55:00 -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
Matt Krump
cdc861e5f2 Update Config to use abs path if supplied 2017-11-08 14:42:23 -06:00
ericmeyer
d3946e27d8 Merge pull request #57 from 8thlight/refactor-specs
Remove duplication in repository specs
2017-11-06 14:17:31 -06:00
Eric Meyer
1bd56ec499 Remove duplication in repository specs 2017-11-06 14:15:02 -06:00
Eric Meyer
7131eafe99 Fix Travis 2017-11-06 13:22:02 -06:00
Eric Meyer
aeb1fe8862 Nest migrations under db directory 2017-11-06 13:12:57 -06:00
ericmeyer
6a1589bafa Merge pull request #56 from 8thlight/introduce-pkg
Nest packages under pkg
2017-11-06 13:08:18 -06:00
Eric Meyer
f4a603efcb Nest packages under pkg 2017-11-06 13:06:03 -06:00
ericmeyer
cf5f2f28db Merge pull request #55 from 8thlight/update-godo
Update godo
2017-11-06 11:44:55 -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
Eric Meyer
26b21e8eea Add InMemory Repository 2017-11-06 10:42:33 -06:00
ericmeyer
808d4388cd Merge pull request #53 from 8thlight/introduce-repository
Extract Postgres repository
2017-11-06 09:56:29 -06:00
Eric Meyer
ebad2187e5 Extract Postgres repository 2017-11-06 09:52:02 -06:00
ericmeyer
b1a7da4ee3 Merge pull request #49 from 8thlight/add_block_fields
Add fields to block tables
2017-11-03 16:53:31 -05:00
Eric Meyer
70faec6dfd Update README to account for environment based changes 2017-11-03 16:52:19 -05:00
Eric Meyer
24ac0023e9 Ignore non-private environments 2017-11-03 16:37:17 -05:00
ericmeyer
946847a2bd Merge pull request #52 from 8thlight/config_file
Update to use TOML config
2017-11-03 12:26:30 -05:00
Matt Krump
e9efc2ff82 Update to use TOML config 2017-11-03 11:53:31 -05:00
Matt Krump
946eb23861 mend 2017-11-03 09:59:24 -05:00
Matt Krump
df09cf8d93 Add fields to block tables 2017-11-03 09:56:24 -05:00
Eric Meyer
0262a99321 Close subscription in integration test
* This was causing issues in future tests,
   since the subscription was causing blocks
   and transactions to be added to the DB
2017-11-03 08:56:58 -05:00
ericmeyer
4733b25f54 Merge pull request #50 from 8thlight/reogranize-packages
Reorganize files into separate packages
2017-11-02 15:10:52 -05:00
Eric Meyer
0a04df72d3 Reorganize files into separate packages 2017-11-02 15:07:38 -05:00
ericmeyer
70c34e86ea Merge pull request #48 from 8thlight/refactor-to-listener
Refactor to use listener
2017-11-02 12:55:12 -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
ericmeyer
60a8be67f4 Merge pull request #44 from 8thlight/go-task
Add multiple environments
2017-11-01 12:21:49 -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
Eric Meyer
e4fe3e0210 Run dep ensure 2017-11-01 09:02:50 -05:00
Eric Meyer
552bca29b0 Run go fmt 2017-11-01 09:01:48 -05: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