VDB-207 refactor init move split toll tune flog (#110)

* Use shared repo tests for vat_init

* Use shared methods in vat_init repository

* Use shared repo tests for vat_move

* Use shared methods in vat_move repository

* Use shared repo tests for vat_slip

* Use shared methods in vat_slip repository

* Use shared repo tests for vat_toll

* Use shared methods in vat_toll repository

* Use shared methods in vat_tune repository

* Use shared repo tests for vow_flog (+small namespace fix)

* Use shared methods in vow_flog repository

* Go vet + tiny oopsie
This commit is contained in:
Edvard Hübinette
2018-11-12 14:17:58 +01:00
committed by GitHub
parent 571f300392
commit 4f295b9aec
14 changed files with 241 additions and 1137 deletions
+6 -6
View File
@@ -23,7 +23,7 @@ import (
"github.com/vulcanize/vulcanizedb/pkg/transformers/vow_flog"
)
var EthFlogLog = types.Log{
var EthVowFlogLog = types.Log{
Address: common.HexToAddress(constants.VowContractAddress),
Topics: []common.Hash{
common.HexToHash("0x35aee16f00000000000000000000000000000000000000000000000000000000"),
@@ -40,10 +40,10 @@ var EthFlogLog = types.Log{
Removed: false,
}
var rawFlogLog, _ = json.Marshal(EthFlogLog)
var FlogModel = vow_flog.VowFlogModel{
var rawVowFlogLog, _ = json.Marshal(EthVowFlogLog)
var VowFlogModel = vow_flog.VowFlogModel{
Era: "1337",
LogIndex: EthFlogLog.Index,
TransactionIndex: EthFlogLog.TxIndex,
Raw: rawFlogLog,
LogIndex: EthVowFlogLog.Index,
TransactionIndex: EthVowFlogLog.TxIndex,
Raw: rawVowFlogLog,
}