09abcb841a
- Enables simple usage in contract storage lookups
47 lines
2.2 KiB
Go
47 lines
2.2 KiB
Go
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"
|
|
|
|
"github.com/vulcanize/vulcanizedb/pkg/fakes"
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/vat_tune"
|
|
)
|
|
|
|
var EthVatTuneLog = types.Log{
|
|
Address: common.HexToAddress(KovanVatContractAddress),
|
|
Topics: []common.Hash{
|
|
common.HexToHash("0x5dd6471a00000000000000000000000000000000000000000000000000000000"),
|
|
common.HexToHash("0x4554480000000000000000000000000000000000000000000000000000000000"),
|
|
common.HexToHash("0x0000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b0876"),
|
|
common.HexToHash("0x0000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b0876"),
|
|
},
|
|
Data: hexutil.MustDecode("0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c45dd6471a45544800000000000000000000000000000000000000000000000000000000000000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b08760000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b08760000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b08760000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffe43e9298b1380000"),
|
|
BlockNumber: 8761670,
|
|
TxHash: common.HexToHash("0x95eb3d6cbd83032efa29714d4a391ce163d7d215db668aadd7d33dd5c20b1ec7"),
|
|
TxIndex: 0,
|
|
BlockHash: fakes.FakeHash,
|
|
Index: 6,
|
|
Removed: false,
|
|
}
|
|
|
|
var rawVatTuneLog, _ = json.Marshal(EthVatTuneLog)
|
|
var dartString = "115792089237316195423570985008687907853269984665640564039455584007913129639936"
|
|
var vatTuneDart, _ = new(big.Int).SetString(dartString, 10)
|
|
var urn = "0000000000000000000000004f26ffbe5f04ed43630fdc30a87638d53d0b0876"
|
|
var VatTuneModel = vat_tune.VatTuneModel{
|
|
Ilk: "4554480000000000000000000000000000000000000000000000000000000000",
|
|
Urn: urn,
|
|
V: urn,
|
|
W: urn,
|
|
Dink: big.NewInt(0).String(),
|
|
Dart: vatTuneDart.String(),
|
|
TransactionIndex: EthVatTuneLog.TxIndex,
|
|
LogIndex: EthVatTuneLog.Index,
|
|
Raw: rawVatTuneLog,
|
|
}
|