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 Krump
84e77f259d
Use most recent blockNumber when blockNumber parame is nil
2017-12-14 10:15:36 -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
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
Matt K
71de8e970d
Contract hist ( #84 )
...
Add ability to query contract historical state
2017-12-04 12:54:33 -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
Matt K
7a11d3c50f
Merge pull request #83 from 8thlight/refactor-two
...
Refactor Blockchain interface
2017-11-30 16:49:29 -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
Matt Krump
687af1f3d4
Change string formatting
2017-11-30 10:23:58 -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
Matt Krump
091bbc69b3
Update .travis.yml so that integration tests run
2017-11-29 14:39:59 -06:00
Matt Krump
b2dfe1e486
Move type conversion to presenter
2017-11-29 09:32:34 -06:00
Matt Krump
b26bcf74e9
First pass at adding non-string attributes
2017-11-28 17:04:09 -06:00
Matt Krump
72b656fc15
Update README to include contract summary usage
2017-11-28 15:14:05 -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
Matt Krump
54458e9741
Address PR comments
2017-11-28 14:40:05 -06:00
Matt Krump
1bae6db483
Added sort method to ContractAttributes array
2017-11-28 14:05:39 -06:00
Matt Krump
aa3318451b
Updated to use contracts derived Attributes
2017-11-28 13:43:08 -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
Matt Krump
d0602833bb
Update contract summary output to include transaction info
2017-11-14 09:57:27 -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