2018-10-04 21:49:09 +00:00
|
|
|
package test_data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"math/big"
|
|
|
|
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
|
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
|
|
|
"github.com/ethereum/go-ethereum/core/types"
|
|
|
|
|
2018-11-08 15:14:35 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared/constants"
|
2018-10-04 21:49:09 +00:00
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_tune"
|
|
|
|
)
|
|
|
|
|
|
|
|
var EthVatTuneLog = types.Log{
|
2018-11-08 15:14:35 +00:00
|
|
|
Address: common.HexToAddress(constants.VatContractAddress),
|
2018-10-04 21:49:09 +00:00
|
|
|
Topics: []common.Hash{
|
|
|
|
common.HexToHash("0x5dd6471a00000000000000000000000000000000000000000000000000000000"),
|
2018-10-17 18:04:55 +00:00
|
|
|
common.HexToHash("0x4554480000000000000000000000000000000000000000000000000000000000"),
|
|
|
|
common.HexToHash("0x0000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b0876"),
|
|
|
|
common.HexToHash("0x0000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b0876"),
|
2018-10-04 21:49:09 +00:00
|
|
|
},
|
2018-10-17 18:04:55 +00:00
|
|
|
Data: hexutil.MustDecode("0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c45dd6471a45544800000000000000000000000000000000000000000000000000000000000000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b08760000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b08760000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b08760000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffe43e9298b1380000"),
|
|
|
|
BlockNumber: 8761670,
|
|
|
|
TxHash: common.HexToHash("0x95eb3d6cbd83032efa29714d4a391ce163d7d215db668aadd7d33dd5c20b1ec7"),
|
|
|
|
TxIndex: 0,
|
|
|
|
BlockHash: common.HexToHash("0xd35188df40a741f4bf4ccacc6be0154e338652660d0b56cc9058c1bca53b09ee"),
|
2018-10-04 21:49:09 +00:00
|
|
|
Index: 6,
|
|
|
|
Removed: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var rawVatTuneLog, _ = json.Marshal(EthVatTuneLog)
|
2018-10-17 18:04:55 +00:00
|
|
|
var dartString = "115792089237316195423570985008687907853269984665640564039455584007913129639936"
|
|
|
|
var vatTuneDart, _ = new(big.Int).SetString(dartString, 10)
|
|
|
|
var urnAddress = "0x4F26FfBe5F04ED43630fdC30A87638d53D0b0876"
|
2018-10-04 21:49:09 +00:00
|
|
|
var VatTuneModel = vat_tune.VatTuneModel{
|
2018-10-17 18:04:55 +00:00
|
|
|
Ilk: "ETH",
|
|
|
|
Urn: urnAddress,
|
|
|
|
V: urnAddress,
|
|
|
|
W: urnAddress,
|
|
|
|
Dink: big.NewInt(0).String(),
|
|
|
|
Dart: vatTuneDart.String(),
|
2018-10-04 21:49:09 +00:00
|
|
|
TransactionIndex: EthVatTuneLog.TxIndex,
|
2018-10-23 21:33:04 +00:00
|
|
|
LogIndex: EthVatTuneLog.Index,
|
2018-10-04 21:49:09 +00:00
|
|
|
Raw: rawVatTuneLog,
|
|
|
|
}
|