Merge branch 'staging' into VDB-125-aggregate-log-fetching
This commit is contained in:
@@ -35,7 +35,7 @@ var EthDripFileIlkLog = types.Log{
|
||||
common.HexToHash("0x66616b6520696c6b000000000000000000000000000000000000000000000000"),
|
||||
common.HexToHash("0x66616b6520766f77000000000000000000000000000000000000000000000000"),
|
||||
},
|
||||
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000641a0b287e66616b6520696c6b00000000000000000000000000000000000000000000000066616b6520766f77000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b"),
|
||||
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000641a0b287e66616b6520696c6b00000000000000000000000000000000000000000000000066616b6520766f77000000000000000000000000000000000000000000000000000000000000000000000000000000000000009B3F7188CE95D16E5AE0000000"),
|
||||
BlockNumber: 35,
|
||||
TxHash: common.HexToHash("0xa1c31b7e6389470902237161263558615e60b40f2e63060b2f4aeafe92d57e5f"),
|
||||
TxIndex: 12,
|
||||
@@ -48,7 +48,7 @@ var rawDripFileIlkLog, _ = json.Marshal(EthDripFileIlkLog)
|
||||
var DripFileIlkModel = ilk2.DripFileIlkModel{
|
||||
Ilk: "fake ilk",
|
||||
Vow: "fake vow",
|
||||
Tax: big.NewInt(123).String(),
|
||||
Tax: "12300.000000000000000000000000000",
|
||||
LogIndex: EthDripFileIlkLog.Index,
|
||||
TransactionIndex: EthDripFileIlkLog.TxIndex,
|
||||
Raw: rawDripFileIlkLog,
|
||||
|
||||
@@ -25,6 +25,7 @@ import (
|
||||
"github.com/vulcanize/vulcanizedb/pkg/fakes"
|
||||
"github.com/vulcanize/vulcanizedb/pkg/transformers/pit_file/debt_ceiling"
|
||||
ilk2 "github.com/vulcanize/vulcanizedb/pkg/transformers/pit_file/ilk"
|
||||
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
|
||||
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared/constants"
|
||||
)
|
||||
|
||||
@@ -48,21 +49,48 @@ var EthPitFileDebtCeilingLog = types.Log{
|
||||
var rawPitFileDebtCeilingLog, _ = json.Marshal(EthPitFileDebtCeilingLog)
|
||||
var PitFileDebtCeilingModel = debt_ceiling.PitFileDebtCeilingModel{
|
||||
What: "Line",
|
||||
Data: big.NewInt(123456).String(),
|
||||
Data: shared.ConvertToWad(big.NewInt(123456).String()),
|
||||
LogIndex: EthPitFileDebtCeilingLog.Index,
|
||||
TransactionIndex: EthPitFileDebtCeilingLog.TxIndex,
|
||||
Raw: rawPitFileDebtCeilingLog,
|
||||
}
|
||||
|
||||
var EthPitFileIlkLog = types.Log{
|
||||
var EthPitFileIlkLineLog = types.Log{
|
||||
Address: common.HexToAddress(constants.PitContractAddress),
|
||||
Topics: []common.Hash{
|
||||
common.HexToHash("0x1a0b287e00000000000000000000000000000000000000000000000000000000"),
|
||||
common.HexToHash("0x0000000000000000000000000f243e26db94b5426032e6dfa6007802dea2a614"),
|
||||
common.HexToHash("0x00000000000000000000000064d922894153be9eef7b7218dc565d1d0ce2a092"),
|
||||
common.HexToHash("0x66616b6520696c6b000000000000000000000000000000000000000000000000"),
|
||||
common.HexToHash("0x6c696e6500000000000000000000000000000000000000000000000000000000"),
|
||||
},
|
||||
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000641a0b287e66616b6520696c6b0000000000000000000000000000000000000000000000006c696e6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e8d4a51000"),
|
||||
BlockNumber: 12,
|
||||
TxHash: common.HexToHash("0x2e27c962a697d4f7ec5d3206d0c058bd510f7593a711f082e55f3b62d44d8dd9"),
|
||||
TxIndex: 112,
|
||||
BlockHash: fakes.FakeHash,
|
||||
Index: 15,
|
||||
Removed: false,
|
||||
}
|
||||
|
||||
var rawPitFileIlkLineLog, _ = json.Marshal(EthPitFileIlkLineLog)
|
||||
var PitFileIlkLineModel = ilk2.PitFileIlkModel{
|
||||
Ilk: "fake ilk",
|
||||
What: "line",
|
||||
Data: "0.000001000000000000",
|
||||
LogIndex: EthPitFileIlkLineLog.Index,
|
||||
TransactionIndex: EthPitFileIlkLineLog.TxIndex,
|
||||
Raw: rawPitFileIlkLineLog,
|
||||
}
|
||||
|
||||
var EthPitFileIlkSpotLog = types.Log{
|
||||
Address: common.HexToAddress(constants.PitContractAddress),
|
||||
Topics: []common.Hash{
|
||||
common.HexToHash("0x1a0b287e00000000000000000000000000000000000000000000000000000000"),
|
||||
common.HexToHash("0x00000000000000000000000064d922894153be9eef7b7218dc565d1d0ce2a092"),
|
||||
common.HexToHash("0x66616b6520696c6b000000000000000000000000000000000000000000000000"),
|
||||
common.HexToHash("0x73706f7400000000000000000000000000000000000000000000000000000000"),
|
||||
},
|
||||
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000641a0b287e66616b6520696c6b00000000000000000000000000000000000000000000000073706f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b"),
|
||||
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000641a0b287e66616b6520696c6b00000000000000000000000000000000000000000000000073706f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e8d4a51000"),
|
||||
BlockNumber: 11,
|
||||
TxHash: common.HexToHash("0x1ba8125f60fa045c85b35df3983bee37db8627fbc32e3442a5cf17c85bb83f09"),
|
||||
TxIndex: 111,
|
||||
@@ -71,12 +99,12 @@ var EthPitFileIlkLog = types.Log{
|
||||
Removed: false,
|
||||
}
|
||||
|
||||
var rawPitFileIlkLog, _ = json.Marshal(EthPitFileIlkLog)
|
||||
var PitFileIlkModel = ilk2.PitFileIlkModel{
|
||||
var rawPitFileIlkSpotLog, _ = json.Marshal(EthPitFileIlkSpotLog)
|
||||
var PitFileIlkSpotModel = ilk2.PitFileIlkModel{
|
||||
Ilk: "fake ilk",
|
||||
What: "spot",
|
||||
Data: big.NewInt(123).String(),
|
||||
LogIndex: EthPitFileIlkLog.Index,
|
||||
TransactionIndex: EthPitFileIlkLog.TxIndex,
|
||||
Raw: rawPitFileIlkLog,
|
||||
Data: "0.000000000000001000000000000",
|
||||
LogIndex: EthPitFileIlkSpotLog.Index,
|
||||
TransactionIndex: EthPitFileIlkSpotLog.TxIndex,
|
||||
Raw: rawPitFileIlkSpotLog,
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ var rawVatFoldLog, _ = json.Marshal(EthVatFoldLog)
|
||||
var VatFoldModel = vat_fold.VatFoldModel{
|
||||
Ilk: "REP",
|
||||
Urn: "0x3728e9777B2a0a611ee0F89e00E01044ce4736d1",
|
||||
Rate: "2",
|
||||
Rate: "0.000000000000000000000000002",
|
||||
LogIndex: EthVatFoldLog.Index,
|
||||
TransactionIndex: EthVatFoldLog.TxIndex,
|
||||
Raw: rawVatFoldLog,
|
||||
|
||||
Reference in New Issue
Block a user