2019-01-24 20:41:30 +00:00
|
|
|
// VulcanizeDB
|
|
|
|
// Copyright © 2018 Vulcanize
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2018-10-15 20:04:17 +00:00
|
|
|
|
|
|
|
package test_data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
2018-11-08 15:14:35 +00:00
|
|
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
2018-10-15 20:04:17 +00:00
|
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
|
|
|
2018-11-12 20:59:16 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/fakes"
|
2018-10-15 20:04:17 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_slip"
|
|
|
|
)
|
|
|
|
|
|
|
|
var EthVatSlipLog = types.Log{
|
2019-01-23 18:44:09 +00:00
|
|
|
Address: common.HexToAddress(KovanVatContractAddress),
|
2018-10-15 20:04:17 +00:00
|
|
|
Topics: []common.Hash{
|
|
|
|
common.HexToHash("0x42066cbb00000000000000000000000000000000000000000000000000000000"),
|
|
|
|
common.HexToHash("0x66616b6520696c6b000000000000000000000000000000000000000000000000"),
|
|
|
|
common.HexToHash("0x0000000000000000000000007d7bee5fcfd8028cf7b00876c5b1421c800561a6"),
|
|
|
|
common.HexToHash("0x000000000000000000000000000000000000000000000000000000003ade68b1"),
|
|
|
|
},
|
|
|
|
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006442066cbb66616b6520696c6b0000000000000000000000000000000000000000000000000000000000000000000000007d7bee5fcfd8028cf7b00876c5b1421c800561a6000000000000000000000000000000000000000000000000000000003ade68b1"),
|
|
|
|
BlockNumber: 10,
|
|
|
|
TxHash: common.HexToHash("0xb114ba306c80c86d51bdbf4a5ac8ed151020cd81b70cfa1dc9822f4a1f73930b"),
|
|
|
|
TxIndex: 3,
|
2018-11-12 20:59:16 +00:00
|
|
|
BlockHash: fakes.FakeHash,
|
2018-10-23 21:33:04 +00:00
|
|
|
Index: 2,
|
2018-10-15 20:04:17 +00:00
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawVatSlipLog, _ = json.Marshal(EthVatSlipLog)
|
|
|
|
var VatSlipModel = vat_slip.VatSlipModel{
|
2019-01-28 22:52:47 +00:00
|
|
|
Ilk: "66616b6520696c6b000000000000000000000000000000000000000000000000",
|
2019-02-05 21:43:20 +00:00
|
|
|
Guy: "0000000000000000000000007d7bee5fcfd8028cf7b00876c5b1421c800561a6",
|
2018-10-15 20:04:17 +00:00
|
|
|
Rad: "987654321",
|
|
|
|
TransactionIndex: EthVatSlipLog.TxIndex,
|
2018-10-23 21:33:04 +00:00
|
|
|
LogIndex: EthVatSlipLog.Index,
|
2018-10-15 20:04:17 +00:00
|
|
|
Raw: rawVatSlipLog,
|
|
|
|
}
|