ipld-eth-server/pkg/transformers/test_data/vow_flog.go
2019-01-24 14:41:30 -06:00

52 lines
2.2 KiB
Go

// 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/>.
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"
"github.com/vulcanize/vulcanizedb/pkg/fakes"
"github.com/vulcanize/vulcanizedb/pkg/transformers/vow_flog"
)
var EthVowFlogLog = types.Log{
Address: common.HexToAddress(KovanVowContractAddress),
Topics: []common.Hash{
common.HexToHash("0x35aee16f00000000000000000000000000000000000000000000000000000000"),
common.HexToHash("0x0000000000000000000000008e84a1e068d77059cbe263c43ad0cdc130863313"),
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000539"),
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
},
Data: hexutil.MustDecode("0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002435aee16f0000000000000000000000000000000000000000000000000000000000000539"),
BlockNumber: 11,
TxHash: common.HexToHash("0x47ffd75c1cda1d5c08219755743663a3790e4f5ae9e1fcb85bb3fe0d74bb7109"),
TxIndex: 4,
BlockHash: fakes.FakeHash,
Index: 3,
Removed: false,
}
var rawVowFlogLog, _ = json.Marshal(EthVowFlogLog)
var VowFlogModel = vow_flog.VowFlogModel{
Era: "1337",
LogIndex: EthVowFlogLog.Index,
TransactionIndex: EthVowFlogLog.TxIndex,
Raw: rawVowFlogLog,
}