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
This commit is contained in:
Matt K
2018-02-02 15:53:16 -06:00
committed by GitHub
parent 3863bcb614
commit aea9c7b5e2
35 changed files with 1440 additions and 1322 deletions
+8 -8
View File
@@ -1,13 +1,13 @@
package core
type Transaction struct {
Hash string
Data string
Nonce uint64
To string
From string
GasLimit int64
GasPrice int64
Hash string `db:"tx_hash"`
Data string `db:"tx_input_data"`
Nonce uint64 `db:"tx_nonce"`
To string `db:"tx_to"`
From string `db:"tx_from"`
GasLimit int64 `db:"tx_gaslimit"`
GasPrice int64 `db:"tx_gasprice"`
Receipt
Value string
Value string `db:"tx_value"`
}