2018-10-04 19:46:04 +00:00
|
|
|
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"
|
2018-11-12 20:59:16 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/fakes"
|
2018-10-04 19:46:04 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_toll"
|
|
|
|
"math/big"
|
|
|
|
)
|
|
|
|
|
|
|
|
var EthVatTollLog = types.Log{
|
2019-01-23 18:44:09 +00:00
|
|
|
Address: common.HexToAddress(KovanVatContractAddress),
|
2018-10-04 19:46:04 +00:00
|
|
|
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,
|
2018-11-12 20:59:16 +00:00
|
|
|
BlockHash: fakes.FakeHash,
|
2018-10-04 19:46:04 +00:00
|
|
|
Index: 4,
|
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawVatTollLog, _ = json.Marshal(EthVatTollLog)
|
|
|
|
var VatTollModel = vat_toll.VatTollModel{
|
2019-01-28 22:52:47 +00:00
|
|
|
Ilk: "66616b6520696c6b000000000000000000000000000000000000000000000000",
|
2018-10-04 19:46:04 +00:00
|
|
|
Urn: "0xA3E37186E017747DbA34042e83e3F76Ad3CcE9b0",
|
|
|
|
Take: big.NewInt(123456789).String(),
|
|
|
|
TransactionIndex: EthVatTollLog.TxIndex,
|
2018-10-23 21:33:04 +00:00
|
|
|
LogIndex: EthVatTollLog.Index,
|
2018-10-04 19:46:04 +00:00
|
|
|
Raw: rawVatTollLog,
|
|
|
|
}
|