2018-09-06 21:42:24 +00:00
|
|
|
// Copyright 2018 Vulcanize
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
package test_data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
2018-09-06 21:42:24 +00:00
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
|
|
|
"github.com/ethereum/go-ethereum/core/types"
|
2018-09-06 21:42:24 +00:00
|
|
|
|
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/shared/constants"
|
2018-09-04 16:35:38 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_init"
|
|
|
|
)
|
|
|
|
|
|
|
|
var EthVatInitLog = types.Log{
|
2018-11-08 15:14:35 +00:00
|
|
|
Address: common.HexToAddress(constants.VatContractAddress),
|
2018-09-04 16:35:38 +00:00
|
|
|
Topics: []common.Hash{
|
|
|
|
common.HexToHash("0x3b66319500000000000000000000000000000000000000000000000000000000"),
|
|
|
|
common.HexToHash("0x66616b6520696c6b000000000000000000000000000000000000000000000000"),
|
|
|
|
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
|
|
|
|
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
|
|
|
|
},
|
|
|
|
Data: hexutil.MustDecode("0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000243b66319566616b6520696c6b000000000000000000000000000000000000000000000000"),
|
|
|
|
BlockNumber: 24,
|
|
|
|
TxHash: common.HexToHash("0xe8f39fbb7fea3621f543868f19b1114e305aff6a063a30d32835ff1012526f91"),
|
|
|
|
TxIndex: 7,
|
2018-11-12 20:59:16 +00:00
|
|
|
BlockHash: fakes.FakeHash,
|
2018-10-22 21:48:27 +00:00
|
|
|
Index: 8,
|
2018-09-04 16:35:38 +00:00
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawVatInitLog, _ = json.Marshal(EthVatInitLog)
|
|
|
|
var VatInitModel = vat_init.VatInitModel{
|
|
|
|
Ilk: "fake ilk",
|
2018-10-22 21:48:27 +00:00
|
|
|
LogIndex: EthVatInitLog.Index,
|
2018-09-04 16:35:38 +00:00
|
|
|
TransactionIndex: EthVatInitLog.TxIndex,
|
|
|
|
Raw: rawVatInitLog,
|
|
|
|
}
|