Skip to content

Commit

Permalink
Add another test (#2657)
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk authored Jun 12, 2024
1 parent 0cb22f6 commit 1a16757
Showing 1 changed file with 80 additions and 41 deletions.
121 changes: 80 additions & 41 deletions tests/integrations/ethereum/pancakeswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,84 @@ package main

// integrationTestPancakeswap is tested with us in a broader lifi
// transaction, and a transaction that doesn't include us.
const integrationTestPancakeswap = `[
{
"transfer": {
"transaction": "0xcec460b14b3b11e8dbb0e8afda4a3189faea78836a60cb324abfebce32ffa304",
"log": {
"data": "//////////////////////////////////////7KWcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATWwcQAAAAAAAAAAAAAAAAAAAAAAAAABAAERlr0lzlQtgf6GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEg5lGpVoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAp0=",
"address": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"topics": [
"0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83",
"0x000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09",
"0x0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582"
],
"log_index": "6"
},
"application": 30
},
"transaction": {
"to": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"from": "0x6ebcd1bffb2d6be2efc3c33f09250a95745b7bb1",
"hash": "0xcec460b14b3b11e8dbb0e8afda4a3189faea78836a60cb324abfebce32ffa304"
},
"expected_sender": "0x6ebcd1bffb2d6be2efc3c33f09250a95745b7bb1",
"expected_recipient": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"expected_fees": "0/1",
"expected_volume": "317081/15625",
"expected_emission": {
"pancakeswap": 0
},
"rpc_methods": {},
"call_methods": {
"token0()": {
"": "0x0000000000000000000000004CFA50B7Ce747e2D61724fcAc57f24B748FF2b2A"
},
"token1()": {
"": "0x000000000000000000000000af88d065e77c8cC2239327C5EDb3A432268e5831"
}
},
"token_decimals": 6,
"contract_address": "0x4cfa50b7ce747e2d61724fcac57f24b748ff2b2a"
}
]
const integrationTestPancakeswap = ` [
{
"transfer": {
"transaction": "0xcec460b14b3b11e8dbb0e8afda4a3189faea78836a60cb324abfebce32ffa304",
"log": {
"data": "//////////////////////////////////////7KWcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATWwcQAAAAAAAAAAAAAAAAAAAAAAAAABAAERlr0lzlQtgf6GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEg5lGpVoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAp0=",
"address": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"topics": [
"0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83",
"0x000000000000000000000000e37e799d5077682fa0a244d46e5649f71457bd09",
"0x0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582"
],
"log_index": "6"
},
"application": 30
},
"transaction": {
"to": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"from": "0x6ebcd1bffb2d6be2efc3c33f09250a95745b7bb1",
"hash": "0xcec460b14b3b11e8dbb0e8afda4a3189faea78836a60cb324abfebce32ffa304"
},
"expected_sender": "0x6ebcd1bffb2d6be2efc3c33f09250a95745b7bb1",
"expected_recipient": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"expected_fees": "0/1",
"expected_volume": "317081/15625",
"expected_emission": {
"pancakeswap": 0
},
"rpc_methods": {},
"call_methods": {
"token0()": {
"": "0x0000000000000000000000004CFA50B7Ce747e2D61724fcAc57f24B748FF2b2A"
},
"token1()": {
"": "0x000000000000000000000000af88d065e77c8cC2239327C5EDb3A432268e5831"
}
},
"token_decimals": 6,
"contract_address": "0x4cfa50b7ce747e2d61724fcac57f24b748ff2b2a"
},
{
"transfer": {
"transaction": "0x4d86b0f941072e96ea3876d2c256deeb23c801260e330e3a042f2ed2e33064ec",
"log": {
"data": "//////////////////////////////////////5KIDUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbXtYgAAAAAAAAAAAAAAAAAAAAAAAAABAADTGNr2LWCujn7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjYIWUBYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7M=",
"address": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"topics": [
"0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83",
"0x000000000000000000000000474e51f692a724cd054bcaa07ccd094c9c7d93a0",
"0x0000000000000000000000006d6e11ee57b784ab0b0e5738ad142016d0ac083a"
],
"log_index": "6"
},
"application": 30
},
"transaction": {
"to": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"from": "0x22225f25f6c3e90cf25c370085026bfb19f586e6",
"hash": "0x4d86b0f941072e96ea3876d2c256deeb23c801260e330e3a042f2ed2e33064ec"
},
"expected_sender": "0x22225f25f6c3e90cf25c370085026bfb19f586e6",
"expected_recipient": "0x38437dbfd1d6a147a50cd0991a9581ac8f996892",
"expected_fees": "0/1",
"expected_volume": "28696523/1000000",
"expected_emission": {
"pancakeswap": 0
},
"rpc_methods": {},
"call_methods": {
"token0()": {
"": "0x0000000000000000000000004CFA50B7Ce747e2D61724fcAc57f24B748FF2b2A"
},
"token1()": {
"": "0x000000000000000000000000af88d065e77c8cC2239327C5EDb3A432268e5831"
}
},
"token_decimals": 6,
"contract_address": "0x4cfa50b7ce747e2d61724fcac57f24b748ff2b2a"
}
]
`

0 comments on commit 1a16757

Please sign in to comment.