ipld-eth-server/pkg/transformers/test_data/vat_init.go

54 lines
2.2 KiB
Go
Raw Normal View History

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-09-04 16:35:38 +00:00
package test_data
import (
"encoding/json"
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"
"github.com/vulcanize/vulcanizedb/pkg/fakes"
2018-09-04 16:35:38 +00:00
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_init"
)
var EthVatInitLog = types.Log{
Address: common.HexToAddress(KovanVatContractAddress),
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,
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: "66616b6520696c6b000000000000000000000000000000000000000000000000",
2018-10-22 21:48:27 +00:00
LogIndex: EthVatInitLog.Index,
2018-09-04 16:35:38 +00:00
TransactionIndex: EthVatInitLog.TxIndex,
Raw: rawVatInitLog,
}