forked from cerc-io/ipld-eth-server
integration tests (#75)
* Deal integration test * Add LogIndex to CatFileChopLump to update unique constraint * Add LogIndex to cat_file_pit_vow records * Add integration tests for Cat.file transformers * Add log index to Cat.file flip
This commit is contained in:
@@ -39,7 +39,7 @@ var EthCatFileChopLumpLog = types.Log{
|
||||
TxHash: common.HexToHash("0xe32dfe6afd7ea28475569756fc30f0eea6ad4cfd32f67436ff1d1c805e4382df"),
|
||||
TxIndex: 13,
|
||||
BlockHash: common.HexToHash("0x2764998a4e048d4c4ba45ea40fd5efaa8e2d4f1dd2b15425a6c6a3dea7f1064a"),
|
||||
Index: 0,
|
||||
Index: 1,
|
||||
Removed: false,
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ var CatFileChopLumpModel = chop_lump.CatFileChopLumpModel{
|
||||
What: "chop",
|
||||
Data: big.NewInt(123456789).String(),
|
||||
TransactionIndex: EthCatFileChopLumpLog.TxIndex,
|
||||
LogIndex: EthCatFileChopLumpLog.Index,
|
||||
Raw: rawCatFileChopLumpLog,
|
||||
}
|
||||
|
||||
@@ -65,7 +66,7 @@ var EthCatFileFlipLog = types.Log{
|
||||
TxHash: common.HexToHash("0xc71ef3e9999595913d31e89446cab35319bd4289520e55611a1b42fc2a8463b6"),
|
||||
TxIndex: 12,
|
||||
BlockHash: common.HexToHash("0xe5fcc1b65dd901e003e3768c1d4ce58d72f5f3a31e6a5d27d9cbdc7dca4bb405"),
|
||||
Index: 0,
|
||||
Index: 1,
|
||||
Removed: false,
|
||||
}
|
||||
|
||||
@@ -75,6 +76,7 @@ var CatFileFlipModel = flip.CatFileFlipModel{
|
||||
What: "flip",
|
||||
Flip: "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
|
||||
TransactionIndex: EthCatFileFlipLog.TxIndex,
|
||||
LogIndex: EthCatFileFlipLog.Index,
|
||||
Raw: rawCatFileFlipLog,
|
||||
}
|
||||
|
||||
@@ -91,7 +93,7 @@ var EthCatFilePitVowLog = types.Log{
|
||||
TxHash: common.HexToHash("0x6515c7dfe53f0ad83ce1173fa99032c24a07cfd8b5d5a1c1f80486c99dd52800"),
|
||||
TxIndex: 11,
|
||||
BlockHash: common.HexToHash("0xae75936bc6b6a3383e8c991686747ef2221984b0ec8a5d4a6350989ec0ddbd67"),
|
||||
Index: 0,
|
||||
Index: 2,
|
||||
Removed: false,
|
||||
}
|
||||
|
||||
@@ -100,5 +102,6 @@ var CatFilePitVowModel = pit_vow.CatFilePitVowModel{
|
||||
What: "pit",
|
||||
Data: "0x8E84a1e068d77059Cbe263C43AD0cDc130863313",
|
||||
TransactionIndex: EthCatFilePitVowLog.TxIndex,
|
||||
LogIndex: EthCatFilePitVowLog.Index,
|
||||
Raw: rawCatFilePitVowLog,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user