Add log index to Price Feed events

This commit is contained in:
Rob Mulholand
2018-10-23 15:25:21 -05:00
parent a0a86871b5
commit e0253cce55
8 changed files with 82 additions and 56 deletions
+3 -2
View File
@@ -37,15 +37,16 @@ var EthPriceFeedLog = types.Log{
TxHash: common.HexToHash("0xa51a50a2adbfba4e2ab3d72dfd67a21c769f1bc8d2b180663a15500a56cde58f"),
TxIndex: txIndex,
BlockHash: common.HexToHash("0x27ecebbf69eefa3bb3cf65f472322a80ff4946653a50a2171dc605f49829467d"),
Index: 0,
Index: 8,
Removed: false,
}
var rawPriceFeedLog, _ = json.Marshal(EthPriceFeedLog)
var PriceFeedModel = price_feeds.PriceFeedModel{
BlockNumber: blockNumber,
MedianizerAddress: EthPriceFeedLog.Address[:],
MedianizerAddress: EthPriceFeedLog.Address.String(),
UsdValue: "378.6599388897",
LogIndex: EthPriceFeedLog.Index,
TransactionIndex: EthPriceFeedLog.TxIndex,
Raw: rawPriceFeedLog,
}