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-10 16:56:06 +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-10 16:56:06 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_heal"
|
|
|
|
)
|
|
|
|
|
|
|
|
var VatHealLog = types.Log{
|
2019-01-23 18:44:09 +00:00
|
|
|
Address: common.HexToAddress(KovanVatContractAddress),
|
2018-10-10 16:56:06 +00:00
|
|
|
Topics: []common.Hash{
|
|
|
|
common.HexToHash("0x990a5f6300000000000000000000000000000000000000000000000000000000"),
|
2018-10-17 21:01:48 +00:00
|
|
|
common.HexToHash("0x0000000000000000000000007d7bee5fcfd8028cf7b00876c5b1421c800561a6"),
|
|
|
|
common.HexToHash("0x0000000000000000000000007340e006f4135ba6970d43bf43d88dcad4e7a8ca"),
|
2018-10-10 16:56:06 +00:00
|
|
|
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000078"),
|
|
|
|
},
|
|
|
|
Data: hexutil.MustDecode("0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000064990a5f637d7bee5fcfd8028cf7b00876c5b1421c800561a600000000000000000000000074686520762076616c75650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000078"),
|
|
|
|
BlockNumber: 10,
|
|
|
|
TxHash: common.HexToHash("0x991b8079b1333024000dcaf2b00c24c5db0315e112a4ac4d912aa96a602e12b9"),
|
|
|
|
TxIndex: 2,
|
2018-11-12 20:59:16 +00:00
|
|
|
BlockHash: fakes.FakeHash,
|
2018-10-22 21:39:49 +00:00
|
|
|
Index: 3,
|
2018-10-10 16:56:06 +00:00
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawHealLog, _ = json.Marshal(VatHealLog)
|
|
|
|
var VatHealModel = vat_heal.VatHealModel{
|
2019-02-05 21:43:20 +00:00
|
|
|
Urn: "0000000000000000000000007d7bee5fcfd8028cf7b00876c5b1421c800561a6",
|
|
|
|
V: "0000000000000000000000007340e006f4135ba6970d43bf43d88dcad4e7a8ca",
|
2018-10-17 21:01:48 +00:00
|
|
|
Rad: "120",
|
2018-10-22 21:39:49 +00:00
|
|
|
LogIndex: VatHealLog.Index,
|
|
|
|
TransactionIndex: VatHealLog.TxIndex,
|
2018-10-10 16:56:06 +00:00
|
|
|
Raw: rawHealLog,
|
|
|
|
}
|