ericmeyer
f496303f15
Merge pull request #89 from 8thlight/rename-watched-contract-to-contract
...
Rename watched contract to contract
2017-12-05 10:08:10 -06:00
Eric Meyer
0439791381
Rename WatchedContract to Contract
2017-12-05 09:39:58 -06:00
Eric Meyer
3a2e7e0cc1
Update Blockchain interface to use WatchedContract instead of Contract
2017-12-04 17:04:06 -06:00
Eric Meyer
e432219e20
Rename watched_contracts package to contract_summary
2017-12-04 17:04:06 -06:00
Eric Meyer
5aa0bcd6ce
Move WatchedContract back to core
2017-12-04 17:04:06 -06:00
ericmeyer
e4a05858f8
Merge pull request #87 from 8thlight/store-abi-in-column
...
Start storing contract ABI in DB
2017-12-04 15:23:53 -06:00
Eric Meyer
a0cd7f773a
Require ABI filepath for watching a contract
2017-12-04 15:12:27 -06:00
Eric Meyer
fa2766b64d
Store contract ABI on watched_contracts
2017-12-04 14:13:15 -06:00
Eric Meyer
52e3266495
Move WatchedContract to repositories
2017-12-04 13:42:26 -06:00
Eric Meyer
3af336a34a
Return invalid state attribute in appropriate branch
2017-12-04 13:31:27 -06:00
ericmeyer
7501fe70a7
Merge pull request #86 from 8thlight/remove-pointers
...
Update functions that return error to not return pointer
2017-12-04 10:37:50 -06:00
Eric Meyer
486fdc10e4
Update functions that return error to not return pointer
...
* Matches Golang convention
2017-12-04 10:34:49 -06:00
ericmeyer
f46891f732
Merge pull request #85 from 8thlight/remove-logfatal
...
Remove log.Fatal from pkg
2017-12-04 10:07:36 -06:00
Eric Meyer
655d1b1d6f
Remove fatal from pkg
...
* Functions in pkg should return errors
* If aborting is desired, that behavior should be left to the consumer
2017-12-04 09:54:39 -06:00
Eric Meyer
e9bfae9412
Update GetContractStateAttribute to take a Contract instead of contract hash
2017-11-30 16:36:36 -06:00
Eric Meyer
5c18639ef4
Extract Attributes to contract struct
2017-11-30 16:15:32 -06:00
ericmeyer
437e052bbb
Merge pull request #82 from 8thlight/add-contract-types
...
Add contract types
2017-11-30 10:21:21 -06:00
ericmeyer
cb1c08efc4
Merge pull request #81 from 8thlight/integretion-test-travis
...
Update .travis.yml so that integration tests run
2017-11-30 09:53:02 -06:00
ericmeyer
623381b2c3
Merge pull request #78 from 8thlight/add-contract-state-to-contract-summary
...
Add contract state to contract summary
2017-11-28 14:47:02 -06:00
Eric Meyer
60bef69113
Start reading available attributes from ABI
2017-11-28 09:41:23 -06:00
Eric Meyer
708ad114ac
Add function to get string state attributes for a given contract
2017-11-27 15:18:04 -06:00
Eric Meyer
9c1051bfce
Update NewSummary to take the blockchain
2017-11-27 09:21:21 -06:00
Eric Meyer
90edd15ead
Update spacing of summary
2017-11-27 08:54:30 -06:00
ericmeyer
ac940b5bae
Merge pull request #73 from 8thlight/report
...
Update contract summary output to include transaction info
2017-11-14 10:05:31 -06:00
Eric Meyer
a23023f7d6
Move environment configuration to root
2017-11-14 09:10:48 -06:00
Eric Meyer
1889dcad5a
Rename contract file
2017-11-14 09:06:10 -06:00
ericmeyer
5d28fd52f8
Merge pull request #72 from 8thlight/reorg-postgres
...
Reorg postgres
2017-11-13 16:24:19 -06:00
Eric Meyer
50fcae4215
Split in-memory and postgres tests
2017-11-13 16:20:37 -06:00
Eric Meyer
9b4e170e14
Extract shared repository tests to helper
2017-11-13 16:20:37 -06:00
ericmeyer
2a947add95
Merge pull request #71 from 8thlight/contract_summary
...
Add transactions for a watched contract
2017-11-13 16:18:47 -06:00
ericmeyer
874051cf89
Merge pull request #70 from 8thlight/show-contract-summary
...
Allow users to watch and print summaries for contracts
2017-11-13 13:59:52 -06:00
Eric Meyer
f50a4d7726
Allow users to watch and print summaries for contracts
2017-11-13 13:51:09 -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
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
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
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
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
ericmeyer
963cc83299
Merge pull request #37 from 8thlight/add-block-id-to-transactions
...
Associate saved transactions to their block
2017-10-31 10:38:57 -05:00
Eric Meyer
faf018082f
Associate saved transactions to their block
2017-10-31 10:36:37 -05:00
ericmeyer
703acb99fb
Merge pull request #32 from 8thlight/transactions
...
Transactions
2017-10-31 09:24:07 -05:00
Eric Meyer
5d297584df
Revert "Remove Travis indicator from README"
...
This reverts commit 954a3ec3aa9eb5ab351fc0155e45c711ed46cc99.
2017-10-31 09:13:47 -05:00
ericmeyer
293a0957fa
Merge pull request #34 from 8thlight/add-travis
...
Add travis
2017-10-31 09:13:13 -05:00
Eric Meyer
3cfbf00796
Remove AS SEQUENCE
2017-10-31 09:10:29 -05:00
Eric Meyer
60dd1d1d2d
Revert "Remove Travis"
...
This reverts commit ae737c8ef2bd64ae5405a72a4aafabb410751b18.
2017-10-31 09:03:13 -05:00
ericmeyer
1c9706fbea
Merge pull request #31 from 8thlight/add-primary-key-to-blocks
...
Add primary key column for blocks table
2017-10-31 08:44:25 -05:00
Eric Meyer
09ea8235b6
Add primary key column for blocks table
2017-10-31 08:42:14 -05:00
Eric Meyer
ebc4bfa8fd
Remove Travis indicator from README
2017-10-31 08:40:34 -05:00
Eric Meyer
ec107ea933
Remove Travis
...
* Travis does not support Postgres 10, so we are temporarily removing it
2017-10-31 08:40:10 -05:00
ericmeyer
66ac0728a6
Merge pull request #29 from 8thlight/add-migrate-script
...
Add scripts to help with migrations
2017-10-27 15:19:36 -05:00
Eric Meyer
e25a9753b4
Add scripts to help with migrations
2017-10-27 14:20:22 -05:00
Eric Meyer
9cac8e6086
Add dev flag to setup script
2017-10-26 12:26:02 -05:00
Eric Meyer
4c1ff9ecbf
Update README to suggest installing dep via go get
2017-10-26 10:04:45 -05:00
ericmeyer
cc924d2a6b
Merge pull request #14 from 8thlight/add-fields
...
Added fields for: Time, Gas Limit, and Gas Used
2017-10-26 08:46:24 -05:00
ericmeyer
f97c75828a
Merge pull request #13 from 8thlight/dump-schema
...
Update Travis to create a database from a schema
2017-10-25 16:51:16 -05:00
Eric Meyer
f61b1bc96c
Update Travis to create a database from a schema
...
* We were running into issues getting migrate to work
2017-10-25 16:50:19 -05:00
ericmeyer
6fec53d5a1
Merge pull request #12 from 8thlight/add-database
...
Add database
2017-10-25 15:59:16 -05:00
Eric Meyer
0a16e402bb
Add BlockchainDBObserver
...
* First code that interacts
2017-10-25 15:57:05 -05:00
ericmeyer
0b7d9e308f
Merge pull request #11 from 8thlight/update-deps
...
Update locked dependencies
2017-10-25 13:33:37 -05:00
Eric Meyer
5979eb5f8a
Update locked dependencies
...
* ethereum-go had never been locked
* Remove vendor from repo due to size of ethereum-go
2017-10-25 13:29:12 -05:00
ericmeyer
eef5296b44
Merge pull request #10 from 8thlight/add-database
...
Add instructions for creating the database and the initial table
2017-10-25 10:12:05 -05:00
Eric Meyer
99c3003ba8
Add instructions for creating the database and the initial table
2017-10-25 10:05:29 -05:00
Eric Meyer
3438c5f256
Lower timeout of integration test
2017-10-25 09:02:12 -05:00
Eric Meyer
4b63a55060
Updates to readme
2017-10-25 09:01:13 -05:00
ericmeyer
392f31d3c4
Merge pull request #7 from 8thlight/integration_test_2
...
Add integration test
2017-10-24 15:44:27 -05:00
Eric Meyer
51ab23dd3a
Output the number of transactions when logging a new block
2017-10-23 15:02:56 -05:00
Eric Meyer
cc05feee3f
Pass in IPC path as command line argument
2017-10-23 14:33:08 -05:00
Eric Meyer
de0bdff579
Implement GethBlockchain
2017-10-23 13:58:33 -05:00
Eric Meyer
de2cb3b5cc
Start introducing domain concepts
...
* Potential observers include a logger and/or an observer that writes to the DB
2017-10-23 12:08:59 -05:00
Eric Meyer
0ebe0c253f
Remove message
2017-10-23 11:22:56 -05:00
Eric Meyer
d0431295d6
Nest tests with their package
2017-10-19 09:58:36 -05:00
Eric Meyer
07998d5077
Add Travis indicator to readme
2017-10-19 09:45:37 -05:00
Eric Meyer
3227a9750f
Add travis
2017-10-19 09:39:57 -05:00