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-17 15:53: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-17 15:53:06 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_flux"
|
|
|
|
)
|
|
|
|
|
|
|
|
var VatFluxLog = types.Log{
|
2019-01-23 18:44:09 +00:00
|
|
|
Address: common.HexToAddress(KovanVatContractAddress),
|
2018-10-17 15:53:06 +00:00
|
|
|
Topics: []common.Hash{
|
|
|
|
common.HexToHash("0xa6e4182100000000000000000000000000000000000000000000000000000000"),
|
2018-10-17 21:25:12 +00:00
|
|
|
common.HexToHash("0x5245500000000000000000000000000000000000000000000000000000000000"),
|
2018-10-17 16:48:57 +00:00
|
|
|
common.HexToHash("0x0000000000000000000000007FA9EF6609Ca7921112231f8f195138ebba29770"),
|
2018-10-17 15:53:06 +00:00
|
|
|
common.HexToHash("0x00000000000000000000000093086347c52a8878af71bb818509d484c6a2e1bf"),
|
|
|
|
},
|
|
|
|
Data: hexutil.MustDecode("0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000084a6e418217340e006f4135ba6970d43bf43d88dcad4e7a8ca00000000000000000000000007fa9ef6609ca7921112231f8f195138ebba297700000000000000000000000093086347c52a8878af71bb818509d484c6a2e1bf000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b"),
|
|
|
|
BlockNumber: 23,
|
|
|
|
TxHash: common.HexToHash("0xf98681bab9b8c75bd8aa4a7d0a8142ff527c5ea8fa54f3c2835d4533838b2e6f"),
|
|
|
|
TxIndex: 0,
|
2018-11-12 20:59:16 +00:00
|
|
|
BlockHash: fakes.FakeHash,
|
2018-10-23 21:33:04 +00:00
|
|
|
Index: 3,
|
2018-10-17 15:53:06 +00:00
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawFluxLog, _ = json.Marshal(VatFluxLog)
|
|
|
|
var VatFluxModel = vat_flux.VatFluxModel{
|
2019-01-28 22:52:47 +00:00
|
|
|
Ilk: "5245500000000000000000000000000000000000000000000000000000000000",
|
2019-02-05 21:43:20 +00:00
|
|
|
Src: "0000000000000000000000007fa9ef6609ca7921112231f8f195138ebba29770",
|
|
|
|
Dst: "00000000000000000000000093086347c52a8878af71bb818509d484c6a2e1bf",
|
2018-10-17 15:53:06 +00:00
|
|
|
Rad: "123",
|
2018-10-23 21:33:04 +00:00
|
|
|
TransactionIndex: VatFluxLog.TxIndex,
|
|
|
|
LogIndex: VatFluxLog.Index,
|
2018-10-17 15:53:06 +00:00
|
|
|
Raw: rawFluxLog,
|
|
|
|
}
|