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-12 14:13:13 +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-11-08 15:14:35 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_move"
|
2018-10-12 14:13:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var EthVatMoveLog = types.Log{
|
2019-01-23 18:44:09 +00:00
|
|
|
Address: common.HexToAddress(KovanVatContractAddress),
|
2018-10-12 14:13:13 +00:00
|
|
|
Topics: []common.Hash{
|
|
|
|
common.HexToHash("0x78f1947000000000000000000000000000000000000000000000000000000000"),
|
2018-10-17 20:26:06 +00:00
|
|
|
common.HexToHash("0x000000000000000000000000a730d1ff8b6bc74a26d54c20a9dda539909bab0e"),
|
|
|
|
common.HexToHash("0x000000000000000000000000b730d1ff8b6bc74a26d54c20a9dda539909bab0e"),
|
2018-10-12 14:13:13 +00:00
|
|
|
common.HexToHash("0x000000000000000000000000000000000000000000000000000000000000002a"),
|
|
|
|
},
|
|
|
|
Data: hexutil.MustDecode("0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006478f19470a730d1ff8b6bc74a26d54c20a9dda539909bab0e000000000000000000000000b730d1ff8b6bc74a26d54c20a9dda539909bab0e000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a"),
|
|
|
|
BlockNumber: 10,
|
|
|
|
TxHash: common.HexToHash("0xe8f39fbb7fea3621f543868f19b1114e305aff6a063a30d32835ff1012526f91"),
|
|
|
|
TxIndex: 7,
|
2018-11-12 20:59:16 +00:00
|
|
|
BlockHash: fakes.FakeHash,
|
2018-10-23 16:49:13 +00:00
|
|
|
Index: 8,
|
2018-10-12 14:13:13 +00:00
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawVatMoveLog, _ = json.Marshal(EthVatMoveLog)
|
|
|
|
var VatMoveModel = vat_move.VatMoveModel{
|
|
|
|
Src: "0xA730d1FF8B6Bc74a26d54c20a9dda539909BaB0e",
|
|
|
|
Dst: "0xB730D1fF8b6BC74a26D54c20a9ddA539909BAb0e",
|
|
|
|
Rad: "42",
|
2018-10-23 16:49:13 +00:00
|
|
|
LogIndex: EthVatMoveLog.Index,
|
2018-10-12 14:13:13 +00:00
|
|
|
TransactionIndex: EthVatMoveLog.TxIndex,
|
|
|
|
Raw: rawVatMoveLog,
|
|
|
|
}
|