5682ee988b
* Add log_index field to flip kick * Add log index to flop kick * Add repo tests for Cat.file * Add log_index to vat_flux * Add log_index to vat_slip * Add log_index to vat_toll * Add log_index to vat_tune * Add test to repos for updating checked headers
38 lines
1.7 KiB
Go
38 lines
1.7 KiB
Go
package test_data
|
|
|
|
import (
|
|
"encoding/json"
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_toll"
|
|
"math/big"
|
|
)
|
|
|
|
var EthVatTollLog = types.Log{
|
|
Address: common.HexToAddress("0x239E6f0AB02713f1F8AA90ebeDeD9FC66Dc96CD6"),
|
|
Topics: []common.Hash{
|
|
common.HexToHash("0x09b7a0b500000000000000000000000000000000000000000000000000000000"),
|
|
common.HexToHash("0x66616b6520696c6b000000000000000000000000000000000000000000000000"),
|
|
common.HexToHash("0xa3e37186e017747dba34042e83e3f76ad3cce9b0000000000000000000000000"),
|
|
common.HexToHash("0x00000000000000000000000000000000000000000000000000000000075bcd15"),
|
|
},
|
|
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006409b7a0b566616b6520696c6b000000000000000000000000000000000000000000000000a3e37186e017747dba34042e83e3f76ad3cce9b000000000000000000000000000000000000000000000000000000000000000000000000000000000075bcd15"),
|
|
BlockNumber: 21,
|
|
TxHash: common.HexToHash("0x0d59cb158b033ffdfb9a021d1e80bfbbcd99594c62c501897ccee446bcd33828"),
|
|
TxIndex: 2,
|
|
BlockHash: common.HexToHash("0xdbfda0ecb4ac6267c50be21db97874dc1203c22033e19733a6f67ca00b51dfc5"),
|
|
Index: 4,
|
|
Removed: false,
|
|
}
|
|
|
|
var rawVatTollLog, _ = json.Marshal(EthVatTollLog)
|
|
var VatTollModel = vat_toll.VatTollModel{
|
|
Ilk: "fake ilk",
|
|
Urn: "0xA3E37186E017747DbA34042e83e3F76Ad3CcE9b0",
|
|
Take: big.NewInt(123456789).String(),
|
|
TransactionIndex: EthVatTollLog.TxIndex,
|
|
LogIndex: EthVatTollLog.Index,
|
|
Raw: rawVatTollLog,
|
|
}
|