Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test benchmarking transaction Emufid2pv2UpxrZae4NyowF2N2ZHvYEPq16LsQc7Uoc6 #599

Merged
merged 2 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions engine-tests/src/tests/repro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,25 @@ fn repro_D98vwmi() {
});
}

/// This test reproduces a transaction from testnet:
/// https://explorer.testnet.near.org/transactions/Emufid2pv2UpxrZae4NyowF2N2ZHvYEPq16LsQc7Uoc6
/// It hit the gas limit at the time of its execution (engine v2.7.0).
/// The transaction is some kind of multi-step token swap. The user says it should be similar
/// to this transaction on Polygon:
/// https://mumbai.polygonscan.com/tx/0xd9ab182692c74a873f0c444854ed1045edbb32a252b561677042276143a024b7
#[allow(non_snake_case)]
#[test]
fn repro_Emufid2() {
repro_common(ReproContext {
snapshot_path: "src/tests/res/aurora_state_Emufid2.json",
block_index: 99197180,
block_timestamp: 1662118048636713538,
input_path: "src/tests/res/input_Emufid2.hex",
evm_gas_used: 1_156_364,
near_gas_used: 327,
});
}

fn repro_common<'a>(context: ReproContext<'a>) {
let ReproContext {
snapshot_path,
Expand Down
556 changes: 556 additions & 0 deletions engine-tests/src/tests/res/aurora_state_Emufid2.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions engine-tests/src/tests/res/input_Emufid2.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f907ae81bb830aae60835b8d8094e0c021bd8040d54e61f107c86a0d7eeb7c2bf8b380b90744135160af00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000078000000000000000402e391e5b58a27c54190a834915d896908893a2364141565a0d1a47f18551eec63a024d831c7b45fb5fefff986e448a829f60d54f44f0911acbc089bf801883d515d5683057303e4b8713c03df07578f76d3a07558f61c957148e2a7beae02c80000000000ac918d000000000000001a000000000000000000000000000000000000000000000000000000000000000000000000000004c6fdc304c417506cc9158d1020cf40bf69a313125e581f2f4c164213dccd5a67db1966ed7d3c869e0ac46a8a56120d29087a5eba713dfc2f00000000000000000000000012e11a0fdd28762eeafbce7835ba437a192542c3fd6404f567dc86000000000000000000000000b3219d55286d61caa463a6f9e74e41ee813c6f1e00000000000000000000000075944cee60c2976acc660f75736890a1df1a6242000000000000000000000000bb63264985dc07056b7d025bbc4d42d49fc6c1a60000000000000000000000000000000000000000000000001b9b127fa4651078000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000001b983ed4909b967a00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000001b96d5240cfbca7a0000000000000000000000003353b1b76a969e834403ebdc8c6191fef7290fea0000000000000000000000004f51a71522f7dc1499a2cc0aebc9cdd6730ed6910000000000000000000000004f51a71522f7dc1499a2cc0aebc9cdd6730ed691000000000000000000000000e5586fc3ce557134b0cbc2e66bf62c45358853e0000000000000000000000000000000000000000000000000000000000000a8690000000000000000000000000b05b4cf9a69d0be1f93f32b88e14d5fcf793ea70000000000000000000000007d3c869e0ac46a8a56120d29087a5eba713dfc2f0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000037576628d531c2dd89b99a3f575178d9f4724d3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000562443fb8af52225a96690c6fa94c636bba479cc529228edc88b5522516b4a620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005341454e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008022c82aa719953a0038617373b7da4c0286d4a0ffea798d7c952198195288dc3011b5e79f800762abb4d45832987ee6df02032b7a7808bdb7193cfb7f96871fd01aed7ade72a214db88a8a58e2c7d92ee19778a95385f3e904ca7be44fa83b2900c8627e3ebec315728983f4b47b90cf98142dd38bc4307ed84196db3e6ec061700000000000000000000000000000000000000000000000000000000000000400c5b142e835cbc45fe5a92911c22b2a0dbfaa3b60c4808db0275dd9cb95a02b117728ade96a41f42f14a98e405383c65527f8f9668f1833f5d00985dc0257fc4849c8a82c9a0ba4d6481f50e109922c33bddc68a3f16997833e0b54ab5c72392066e7e0f0a39a03d042184e20e9c261d761158efc84c7676dc570f31d44a119ac1029c84970712