@aztec/end-to-end 0.0.1-commit.b6e433891 → 0.0.1-commit.b8a057fa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +217 -14
- package/dest/automine/automine_test_context.d.ts +85 -0
- package/dest/automine/automine_test_context.d.ts.map +1 -0
- package/dest/automine/automine_test_context.js +98 -0
- package/dest/automine/contracts/fixtures/storage_proof_fetcher.d.ts +2 -0
- package/dest/automine/contracts/fixtures/storage_proof_fetcher.d.ts.map +1 -0
- package/dest/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fixture.d.ts +1 -1
- package/dest/automine/contracts/fixtures/storage_proof_fixture.d.ts.map +1 -0
- package/dest/automine/delivery/onchain_delivery_harness.d.ts +17 -0
- package/dest/automine/delivery/onchain_delivery_harness.d.ts.map +1 -0
- package/dest/automine/delivery/onchain_delivery_harness.js +123 -0
- package/dest/automine/token/blacklist_token_contract_test.d.ts +49 -0
- package/dest/automine/token/blacklist_token_contract_test.d.ts.map +1 -0
- package/dest/{e2e_blacklist_token_contract → automine/token}/blacklist_token_contract_test.js +23 -36
- package/dest/automine/token/token_contract_test.d.ts +40 -0
- package/dest/automine/token/token_contract_test.d.ts.map +1 -0
- package/dest/{e2e_token_contract → automine/token}/token_contract_test.js +24 -39
- package/dest/automine/token/token_test_helpers.d.ts +73 -0
- package/dest/automine/token/token_test_helpers.d.ts.map +1 -0
- package/dest/automine/token/token_test_helpers.js +97 -0
- package/dest/bench/client_flows/benchmark.d.ts +15 -1
- package/dest/bench/client_flows/benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/benchmark.js +19 -0
- package/dest/bench/client_flows/client_flows_benchmark.d.ts +5 -5
- package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/client_flows_benchmark.js +53 -52
- package/dest/bench/client_flows/data_extractor.js +1 -0
- package/dest/bench/utils.d.ts +3 -3
- package/dest/bench/utils.d.ts.map +1 -1
- package/dest/bench/utils.js +97 -6
- package/dest/composed/ha/ha_full_setup.d.ts +77 -0
- package/dest/composed/ha/ha_full_setup.d.ts.map +1 -0
- package/dest/composed/ha/ha_full_setup.js +383 -0
- package/dest/composed/web3signer/multi_validator_keystore_utils.d.ts +12 -0
- package/dest/composed/web3signer/multi_validator_keystore_utils.d.ts.map +1 -0
- package/dest/fixtures/authwit_proxy.d.ts +1 -1
- package/dest/fixtures/authwit_proxy.d.ts.map +1 -1
- package/dest/fixtures/authwit_proxy.js +4 -0
- package/dest/fixtures/e2e_prover_test.d.ts +15 -11
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
- package/dest/fixtures/e2e_prover_test.js +55 -40
- package/dest/fixtures/fixtures.d.ts +78 -1
- package/dest/fixtures/fixtures.d.ts.map +1 -1
- package/dest/fixtures/fixtures.js +78 -0
- package/dest/fixtures/get_bb_config.d.ts +1 -1
- package/dest/fixtures/get_bb_config.d.ts.map +1 -1
- package/dest/fixtures/get_bb_config.js +5 -5
- package/dest/fixtures/ha_setup.d.ts +4 -4
- package/dest/fixtures/ha_setup.d.ts.map +1 -1
- package/dest/fixtures/ha_setup.js +5 -2
- package/dest/fixtures/index.d.ts +2 -1
- package/dest/fixtures/index.d.ts.map +1 -1
- package/dest/fixtures/index.js +1 -0
- package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts +25 -0
- package/dest/fixtures/schnorr_hardcoded_account_contract.d.ts.map +1 -0
- package/dest/fixtures/schnorr_hardcoded_account_contract.js +37 -0
- package/dest/fixtures/setup.d.ts +71 -41
- package/dest/fixtures/setup.d.ts.map +1 -1
- package/dest/fixtures/setup.js +283 -201
- package/dest/fixtures/setup_p2p_test.d.ts +10 -6
- package/dest/fixtures/setup_p2p_test.d.ts.map +1 -1
- package/dest/fixtures/setup_p2p_test.js +11 -11
- package/dest/fixtures/timing.d.ts +42 -0
- package/dest/fixtures/timing.d.ts.map +1 -0
- package/dest/fixtures/timing.js +72 -0
- package/dest/fixtures/token_utils.d.ts +22 -4
- package/dest/fixtures/token_utils.d.ts.map +1 -1
- package/dest/fixtures/token_utils.js +23 -6
- package/dest/fixtures/utils.d.ts +2 -2
- package/dest/fixtures/utils.d.ts.map +1 -1
- package/dest/fixtures/utils.js +1 -1
- package/dest/fixtures/wait_helpers.d.ts +135 -0
- package/dest/fixtures/wait_helpers.d.ts.map +1 -0
- package/dest/fixtures/wait_helpers.js +154 -0
- package/dest/forward-compatibility/wallet_rpc_client.d.ts +7 -0
- package/dest/forward-compatibility/wallet_rpc_client.d.ts.map +1 -0
- package/dest/forward-compatibility/wallet_rpc_client.js +15 -0
- package/dest/forward-compatibility/wallet_service.d.ts +3 -0
- package/dest/forward-compatibility/wallet_service.d.ts.map +1 -0
- package/dest/forward-compatibility/wallet_service.js +109 -0
- package/dest/install_legacy_contracts.d.cts +10 -0
- package/dest/install_legacy_contracts.d.cts.map +1 -0
- package/dest/legacy-jest-resolver.d.cts +3 -0
- package/dest/legacy-jest-resolver.d.cts.map +1 -0
- package/dest/multi-node/block-production/setup.d.ts +97 -0
- package/dest/multi-node/block-production/setup.d.ts.map +1 -0
- package/dest/multi-node/block-production/setup.js +158 -0
- package/dest/multi-node/governance/setup.d.ts +67 -0
- package/dest/multi-node/governance/setup.d.ts.map +1 -0
- package/dest/multi-node/governance/setup.js +126 -0
- package/dest/multi-node/multi_node_test_context.d.ts +212 -0
- package/dest/multi-node/multi_node_test_context.d.ts.map +1 -0
- package/dest/multi-node/multi_node_test_context.js +347 -0
- package/dest/multi-node/slashing/inactivity_setup.d.ts +27 -0
- package/dest/multi-node/slashing/inactivity_setup.d.ts.map +1 -0
- package/dest/multi-node/slashing/inactivity_setup.js +111 -0
- package/dest/multi-node/slashing/setup.d.ts +167 -0
- package/dest/multi-node/slashing/setup.d.ts.map +1 -0
- package/dest/multi-node/slashing/setup.js +275 -0
- package/dest/{e2e_p2p → p2p}/p2p_network.d.ts +19 -10
- package/dest/p2p/p2p_network.d.ts.map +1 -0
- package/dest/{e2e_p2p → p2p}/p2p_network.js +81 -38
- package/dest/p2p/reqresp/utils.d.ts +19 -0
- package/dest/p2p/reqresp/utils.d.ts.map +1 -0
- package/dest/{e2e_p2p → p2p}/reqresp/utils.js +32 -29
- package/dest/p2p/shared.d.ts +72 -0
- package/dest/p2p/shared.d.ts.map +1 -0
- package/dest/p2p/shared.js +212 -0
- package/dest/shared/cross_chain_test_harness.d.ts +6 -4
- package/dest/shared/cross_chain_test_harness.d.ts.map +1 -1
- package/dest/shared/cross_chain_test_harness.js +25 -20
- package/dest/shared/gas_portal_test_harness.d.ts +8 -5
- package/dest/shared/gas_portal_test_harness.d.ts.map +1 -1
- package/dest/shared/gas_portal_test_harness.js +24 -12
- package/dest/shared/submit-transactions.d.ts +1 -1
- package/dest/shared/submit-transactions.d.ts.map +1 -1
- package/dest/shared/submit-transactions.js +12 -5
- package/dest/shared/timing_env.d.js +5 -0
- package/dest/shared/timing_env.js +365 -0
- package/dest/shared/uniswap_l1_l2.d.ts +1 -1
- package/dest/shared/uniswap_l1_l2.d.ts.map +1 -1
- package/dest/shared/uniswap_l1_l2.js +50 -37
- package/dest/shared/wait_for_l1_to_l2_message.d.ts +13 -0
- package/dest/shared/wait_for_l1_to_l2_message.d.ts.map +1 -0
- package/dest/shared/wait_for_l1_to_l2_message.js +10 -0
- package/dest/simulators/lending_simulator.d.ts +10 -3
- package/dest/simulators/lending_simulator.d.ts.map +1 -1
- package/dest/simulators/lending_simulator.js +25 -13
- package/dest/single-node/cross-chain/cross_chain_messaging_test.d.ts +75 -0
- package/dest/single-node/cross-chain/cross_chain_messaging_test.d.ts.map +1 -0
- package/dest/single-node/cross-chain/cross_chain_messaging_test.js +209 -0
- package/dest/single-node/cross-chain/message_test_helpers.d.ts +38 -0
- package/dest/single-node/cross-chain/message_test_helpers.d.ts.map +1 -0
- package/dest/single-node/cross-chain/message_test_helpers.js +70 -0
- package/dest/{e2e_fees → single-node/fees}/bridging_race.notest.d.ts +1 -1
- package/dest/single-node/fees/bridging_race.notest.d.ts.map +1 -0
- package/dest/{e2e_fees → single-node/fees}/bridging_race.notest.js +17 -4
- package/dest/single-node/fees/fees_test.d.ts +93 -0
- package/dest/single-node/fees/fees_test.d.ts.map +1 -0
- package/dest/{e2e_fees → single-node/fees}/fees_test.js +78 -59
- package/dest/single-node/l1-reorgs/setup.d.ts +42 -0
- package/dest/single-node/l1-reorgs/setup.d.ts.map +1 -0
- package/dest/single-node/l1-reorgs/setup.js +57 -0
- package/dest/single-node/partial-proofs/setup.d.ts +5 -0
- package/dest/single-node/partial-proofs/setup.d.ts.map +1 -0
- package/dest/single-node/partial-proofs/setup.js +5 -0
- package/dest/single-node/proving/setup.d.ts +5 -0
- package/dest/single-node/proving/setup.d.ts.map +1 -0
- package/dest/single-node/proving/setup.js +5 -0
- package/dest/single-node/recovery/setup.d.ts +5 -0
- package/dest/single-node/recovery/setup.d.ts.map +1 -0
- package/dest/single-node/recovery/setup.js +5 -0
- package/dest/single-node/setup.d.ts +49 -0
- package/dest/single-node/setup.d.ts.map +1 -0
- package/dest/single-node/setup.js +56 -0
- package/dest/single-node/single_node_test_context.d.ts +360 -0
- package/dest/single-node/single_node_test_context.d.ts.map +1 -0
- package/dest/single-node/single_node_test_context.js +833 -0
- package/dest/spartan/setup_test_wallets.d.ts +1 -1
- package/dest/spartan/setup_test_wallets.d.ts.map +1 -1
- package/dest/spartan/setup_test_wallets.js +83 -49
- package/dest/spartan/tx_metrics.d.ts +27 -4
- package/dest/spartan/tx_metrics.d.ts.map +1 -1
- package/dest/spartan/tx_metrics.js +105 -20
- package/dest/spartan/utils/config.d.ts +9 -35
- package/dest/spartan/utils/config.d.ts.map +1 -1
- package/dest/spartan/utils/nodes.js +2 -2
- package/dest/test-wallet/test_wallet.d.ts +38 -9
- package/dest/test-wallet/test_wallet.d.ts.map +1 -1
- package/dest/test-wallet/test_wallet.js +186 -77
- package/dest/test-wallet/utils.d.ts +38 -3
- package/dest/test-wallet/utils.d.ts.map +1 -1
- package/dest/test-wallet/utils.js +65 -10
- package/dest/test-wallet/wallet_worker_script.js +10 -2
- package/dest/test-wallet/worker_wallet.d.ts +7 -6
- package/dest/test-wallet/worker_wallet.d.ts.map +1 -1
- package/dest/test-wallet/worker_wallet.js +6 -2
- package/dest/test-wallet/worker_wallet_schema.d.ts +3 -273
- package/dest/test-wallet/worker_wallet_schema.d.ts.map +1 -1
- package/dest/test-wallet/worker_wallet_schema.js +14 -2
- package/package.json +47 -42
- package/src/automine/README.md +60 -0
- package/src/automine/automine_test_context.ts +153 -0
- package/src/automine/delivery/onchain_delivery_harness.ts +177 -0
- package/src/{e2e_blacklist_token_contract → automine/token}/blacklist_token_contract_test.ts +24 -47
- package/src/{e2e_token_contract → automine/token}/token_contract_test.ts +25 -48
- package/src/automine/token/token_test_helpers.ts +138 -0
- package/src/bench/client_flows/benchmark.ts +21 -0
- package/src/bench/client_flows/client_flows_benchmark.ts +103 -73
- package/src/bench/client_flows/data_extractor.ts +1 -0
- package/src/bench/utils.ts +110 -6
- package/src/composed/ha/ha_full_setup.ts +466 -0
- package/src/fixtures/authwit_proxy.ts +4 -0
- package/src/fixtures/e2e_prover_test.ts +66 -63
- package/src/fixtures/fixtures.ts +98 -0
- package/src/fixtures/get_bb_config.ts +7 -6
- package/src/fixtures/ha_setup.ts +11 -5
- package/src/fixtures/index.ts +1 -0
- package/src/fixtures/schnorr_hardcoded_account_contract.ts +49 -0
- package/src/fixtures/setup.ts +342 -258
- package/src/fixtures/setup_p2p_test.ts +15 -11
- package/src/fixtures/timing.ts +97 -0
- package/src/fixtures/token_utils.ts +40 -8
- package/src/fixtures/utils.ts +2 -3
- package/src/fixtures/wait_helpers.ts +333 -0
- package/src/forward-compatibility/wallet_rpc_client.ts +14 -0
- package/src/forward-compatibility/wallet_service.ts +106 -0
- package/src/guides/up_quick_start.sh +5 -2
- package/src/infra/README.md +12 -0
- package/src/install_legacy_contracts.cjs +75 -0
- package/src/legacy-jest-resolver.cjs +112 -0
- package/src/multi-node/README.md +95 -0
- package/src/multi-node/block-production/setup.ts +272 -0
- package/src/multi-node/governance/setup.ts +172 -0
- package/src/multi-node/multi_node_test_context.ts +447 -0
- package/src/multi-node/slashing/inactivity_setup.ts +139 -0
- package/src/multi-node/slashing/setup.ts +433 -0
- package/src/p2p/README.md +78 -0
- package/src/{e2e_p2p → p2p}/p2p_network.ts +92 -49
- package/src/{e2e_p2p → p2p}/reqresp/utils.ts +35 -28
- package/src/p2p/shared.ts +329 -0
- package/src/shared/cross_chain_test_harness.ts +35 -14
- package/src/shared/gas_portal_test_harness.ts +32 -14
- package/src/shared/submit-transactions.ts +13 -5
- package/src/shared/timing_env.d.mts +39 -0
- package/src/shared/timing_env.mjs +363 -0
- package/src/shared/uniswap_l1_l2.ts +80 -43
- package/src/shared/wait_for_l1_to_l2_message.ts +23 -0
- package/src/simulators/lending_simulator.ts +29 -13
- package/src/single-node/README.md +60 -0
- package/src/single-node/cross-chain/cross_chain_messaging_test.ts +302 -0
- package/src/single-node/cross-chain/message_test_helpers.ts +125 -0
- package/src/{e2e_fees → single-node/fees}/bridging_race.notest.ts +19 -5
- package/src/{e2e_fees → single-node/fees}/fees_test.ts +103 -66
- package/src/single-node/l1-reorgs/setup.ts +93 -0
- package/src/single-node/partial-proofs/setup.ts +8 -0
- package/src/single-node/proving/setup.ts +15 -0
- package/src/single-node/recovery/setup.ts +8 -0
- package/src/single-node/setup.ts +63 -0
- package/src/single-node/single_node_test_context.ts +1041 -0
- package/src/spartan/setup_test_wallets.ts +79 -44
- package/src/spartan/tx_metrics.ts +107 -23
- package/src/spartan/utils/nodes.ts +2 -2
- package/src/test-wallet/test_wallet.ts +213 -78
- package/src/test-wallet/utils.ts +104 -11
- package/src/test-wallet/wallet_worker_script.ts +8 -2
- package/src/test-wallet/worker_wallet.ts +12 -11
- package/src/test-wallet/worker_wallet_schema.ts +4 -3
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +0 -55
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +0 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +0 -47
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +0 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +0 -129
- package/dest/e2e_deploy_contract/deploy_test.d.ts +0 -37
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +0 -1
- package/dest/e2e_deploy_contract/deploy_test.js +0 -50
- package/dest/e2e_epochs/epochs_test.d.ts +0 -104
- package/dest/e2e_epochs/epochs_test.d.ts.map +0 -1
- package/dest/e2e_epochs/epochs_test.js +0 -389
- package/dest/e2e_fees/bridging_race.notest.d.ts.map +0 -1
- package/dest/e2e_fees/fees_test.d.ts +0 -88
- package/dest/e2e_fees/fees_test.d.ts.map +0 -1
- package/dest/e2e_l1_publisher/write_json.d.ts +0 -11
- package/dest/e2e_l1_publisher/write_json.d.ts.map +0 -1
- package/dest/e2e_l1_publisher/write_json.js +0 -56
- package/dest/e2e_multi_validator/utils.d.ts +0 -12
- package/dest/e2e_multi_validator/utils.d.ts.map +0 -1
- package/dest/e2e_nested_contract/nested_contract_test.d.ts +0 -26
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +0 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +0 -54
- package/dest/e2e_p2p/inactivity_slash_test.d.ts +0 -31
- package/dest/e2e_p2p/inactivity_slash_test.d.ts.map +0 -1
- package/dest/e2e_p2p/inactivity_slash_test.js +0 -136
- package/dest/e2e_p2p/p2p_network.d.ts.map +0 -1
- package/dest/e2e_p2p/reqresp/utils.d.ts +0 -22
- package/dest/e2e_p2p/reqresp/utils.d.ts.map +0 -1
- package/dest/e2e_p2p/shared.d.ts +0 -66
- package/dest/e2e_p2p/shared.d.ts.map +0 -1
- package/dest/e2e_p2p/shared.js +0 -212
- package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts +0 -2
- package/dest/e2e_storage_proof/fixtures/storage_proof_fetcher.d.ts.map +0 -1
- package/dest/e2e_storage_proof/fixtures/storage_proof_fixture.d.ts.map +0 -1
- package/dest/e2e_token_contract/token_contract_test.d.ts +0 -44
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +0 -1
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +0 -193
- package/src/e2e_deploy_contract/deploy_test.ts +0 -85
- package/src/e2e_epochs/epochs_test.ts +0 -499
- package/src/e2e_l1_publisher/write_json.ts +0 -77
- package/src/e2e_nested_contract/nested_contract_test.ts +0 -75
- package/src/e2e_p2p/inactivity_slash_test.ts +0 -179
- package/src/e2e_p2p/shared.ts +0 -343
- /package/dest/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fetcher.js +0 -0
- /package/dest/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fixture.js +0 -0
- /package/dest/{e2e_multi_validator/utils.js → composed/web3signer/multi_validator_keystore_utils.js} +0 -0
- /package/src/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof.json +0 -0
- /package/src/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fetcher.ts +0 -0
- /package/src/{e2e_storage_proof → automine/contracts}/fixtures/storage_proof_fixture.ts +0 -0
- /package/src/{e2e_multi_validator/utils.ts → composed/web3signer/multi_validator_keystore_utils.ts} +0 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { appendFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { basename } from 'node:path';
|
|
3
|
+
import CustomEnvironment from '../../../foundation/src/jest/env.mjs';
|
|
4
|
+
// Per-test e2e timing environment. Gated entirely on the TEST_TIMING_FILE env var: when unset, this
|
|
5
|
+
// behaves exactly like the base CustomEnvironment (it only delegates). When set, it records, per test
|
|
6
|
+
// worker process, the time spent in jest before/after hooks and the test body, and folds in the named
|
|
7
|
+
// spans recorded via the `testSpan()` wrapper (fixtures/timing.ts) through a collector shared on
|
|
8
|
+
// `this.global`.
|
|
9
|
+
//
|
|
10
|
+
// Output is one JSONL file per worker process (the env runs once per worker). Each line carries a
|
|
11
|
+
// `type` discriminator and is one of:
|
|
12
|
+
// - `type: 'test'` (`name` set): beforeEach hooks, the it() body, afterEach hooks for one test; or
|
|
13
|
+
// - `type: 'suite'` (`name: null`): the suite-scoped beforeAll/afterAll hooks for the whole file.
|
|
14
|
+
//
|
|
15
|
+
// Each line also gains a `spans` map: per `category:label` tag the test/suite touched, the collector
|
|
16
|
+
// records `{ count, totalMs, busyMs, maxMs }`. `busyMs` is the duration of the union of the spans'
|
|
17
|
+
// `[start, end)` intervals on the shared `performance.now()` clock, so concurrent spans (Promise.all
|
|
18
|
+
// fan-out) do not inflate it the way `totalMs` does. The legacy `setupFnMs`/`teardownFnMs` fields are
|
|
19
|
+
// kept for back-compat, derived from the `setup:env`/`teardown:env` spans.
|
|
20
|
+
//
|
|
21
|
+
// When `TEST_TIMING_SPANS=1`, the collector additionally retains every raw span occurrence and emits
|
|
22
|
+
// one `type:"span"` line per occurrence (owner, name, ms) for deep dives, at the cost of a larger file.
|
|
23
|
+
export default class TimingEnvironment extends CustomEnvironment {
|
|
24
|
+
constructor(config, context){
|
|
25
|
+
super(config, context);
|
|
26
|
+
this.timingFile = process.env.TEST_TIMING_FILE;
|
|
27
|
+
if (!this.timingFile) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.suite = basename(context?.testPath ?? config?.testPath ?? 'unknown').replace(/\.test\.[cm]?[jt]s$/, '');
|
|
31
|
+
this.meta = {
|
|
32
|
+
commit: process.env.COMMIT_HASH ?? null,
|
|
33
|
+
branch: process.env.TARGET_BRANCH ?? process.env.REF_NAME ?? null,
|
|
34
|
+
runId: process.env.RUN_ID ?? null
|
|
35
|
+
};
|
|
36
|
+
// Opt-in per-occurrence emission for deep dives (off by default keeps the JSONL one line per test).
|
|
37
|
+
this.emitSpanLines = process.env.TEST_TIMING_SPANS === '1';
|
|
38
|
+
// Shared collector. The instrumented helpers (running in the sandbox realm) read
|
|
39
|
+
// `globalThis.__e2eTimings`; this env (host realm) reads `this.global.__e2eTimings` — they are the
|
|
40
|
+
// same object. `current` is the full name of the test currently running (null during
|
|
41
|
+
// beforeAll/afterAll), used to attribute each span to a test or to the suite-scoped line. `spans`
|
|
42
|
+
// accumulates every recorded span until flush. The `start`/`end` timestamps come from the sandbox
|
|
43
|
+
// realm's `performance.now()`; Node's perf clock is process-wide (one monotonic origin across all
|
|
44
|
+
// realms), so merging the intervals here for `busyMs` is valid.
|
|
45
|
+
this.collector = {
|
|
46
|
+
current: null,
|
|
47
|
+
spans: []
|
|
48
|
+
};
|
|
49
|
+
this.global.__e2eTimings = this.collector;
|
|
50
|
+
// Records to flush as JSONL on teardown. One per test plus one suite-scoped record.
|
|
51
|
+
this.records = [];
|
|
52
|
+
this.recordsByName = new Map();
|
|
53
|
+
// The suite-scoped record (beforeAll/afterAll); bodyMs/totalMs are computed at flush time.
|
|
54
|
+
this.suiteRecord = {
|
|
55
|
+
name: null,
|
|
56
|
+
status: 'passed',
|
|
57
|
+
beforeHooksMs: 0,
|
|
58
|
+
afterHooksMs: 0
|
|
59
|
+
};
|
|
60
|
+
// Start times keyed by hook type (beforeAll/beforeEach/afterAll/afterEach).
|
|
61
|
+
this.hookStarts = {};
|
|
62
|
+
this.testStarts = new Map();
|
|
63
|
+
// Guards against double-flushing (we flush on both the teardown event and the teardown method).
|
|
64
|
+
this.flushed = false;
|
|
65
|
+
// Raw per-occurrence spans retained only when TEST_TIMING_SPANS=1, emitted as `type:"span"` lines.
|
|
66
|
+
this.rawSpans = [];
|
|
67
|
+
}
|
|
68
|
+
// Flush on the teardown method too: the jest lifecycle always calls this, whereas the 'teardown'
|
|
69
|
+
// event is not reliably delivered when a test run is interrupted. Whichever fires first wins.
|
|
70
|
+
async teardown() {
|
|
71
|
+
this.finalizeAndFlush();
|
|
72
|
+
await super.teardown();
|
|
73
|
+
}
|
|
74
|
+
async handleTestEvent(event, state) {
|
|
75
|
+
// Run the base env first so its unhandledRejection patching for after-hooks stays intact.
|
|
76
|
+
await super.handleTestEvent(event, state);
|
|
77
|
+
if (!this.timingFile) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const now = Date.now();
|
|
81
|
+
switch(event.name){
|
|
82
|
+
case 'hook_start':
|
|
83
|
+
{
|
|
84
|
+
this.hookStarts[event.hook.type] = now;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
case 'hook_success':
|
|
88
|
+
case 'hook_failure':
|
|
89
|
+
{
|
|
90
|
+
const start = this.hookStarts[event.hook.type];
|
|
91
|
+
if (start === undefined) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
delete this.hookStarts[event.hook.type];
|
|
95
|
+
const ms = now - start;
|
|
96
|
+
if (event.hook.type === 'beforeEach') {
|
|
97
|
+
this.addToCurrent('beforeHooksMs', ms);
|
|
98
|
+
} else if (event.hook.type === 'afterEach') {
|
|
99
|
+
this.addToCurrent('afterHooksMs', ms);
|
|
100
|
+
} else if (event.hook.type === 'beforeAll') {
|
|
101
|
+
this.suiteRecord.beforeHooksMs += ms;
|
|
102
|
+
} else if (event.hook.type === 'afterAll') {
|
|
103
|
+
this.suiteRecord.afterHooksMs += ms;
|
|
104
|
+
}
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
case 'test_start':
|
|
108
|
+
{
|
|
109
|
+
const name = this.fullTestName(event.test);
|
|
110
|
+
const record = {
|
|
111
|
+
type: 'test',
|
|
112
|
+
name,
|
|
113
|
+
status: 'passed',
|
|
114
|
+
setupFnMs: 0,
|
|
115
|
+
beforeHooksMs: 0,
|
|
116
|
+
bodyMs: 0,
|
|
117
|
+
teardownFnMs: 0,
|
|
118
|
+
afterHooksMs: 0,
|
|
119
|
+
totalMs: 0,
|
|
120
|
+
startedAt: new Date(now).toISOString()
|
|
121
|
+
};
|
|
122
|
+
this.records.push(record);
|
|
123
|
+
this.recordsByName.set(name, record);
|
|
124
|
+
this.testStarts.set(name, now);
|
|
125
|
+
this.collector.current = name;
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
case 'test_fn_start':
|
|
129
|
+
{
|
|
130
|
+
this.testStarts.set(`fn:${this.fullTestName(event.test)}`, now);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
case 'test_fn_success':
|
|
134
|
+
case 'test_fn_failure':
|
|
135
|
+
{
|
|
136
|
+
const name = this.fullTestName(event.test);
|
|
137
|
+
const start = this.testStarts.get(`fn:${name}`);
|
|
138
|
+
const record = this.recordsByName.get(name);
|
|
139
|
+
if (record && start !== undefined) {
|
|
140
|
+
record.bodyMs = now - start;
|
|
141
|
+
}
|
|
142
|
+
if (record && event.name === 'test_fn_failure') {
|
|
143
|
+
record.status = 'failed';
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
case 'test_done':
|
|
148
|
+
{
|
|
149
|
+
const name = this.fullTestName(event.test);
|
|
150
|
+
const record = this.recordsByName.get(name);
|
|
151
|
+
const start = this.testStarts.get(name);
|
|
152
|
+
if (record && start !== undefined) {
|
|
153
|
+
record.totalMs = now - start;
|
|
154
|
+
}
|
|
155
|
+
if (record && event.test?.errors?.length) {
|
|
156
|
+
record.status = 'failed';
|
|
157
|
+
}
|
|
158
|
+
this.collector.current = null;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
case 'teardown':
|
|
162
|
+
{
|
|
163
|
+
this.finalizeAndFlush();
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
default:
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
/** The record for the test currently running, if any. */ currentRecord() {
|
|
171
|
+
return this.collector.current ? this.recordsByName.get(this.collector.current) : undefined;
|
|
172
|
+
}
|
|
173
|
+
/** Adds `ms` to a hook bucket on the current per-test record, or the suite record during beforeAll/afterAll. */ addToCurrent(field, ms) {
|
|
174
|
+
const record = this.currentRecord();
|
|
175
|
+
if (record) {
|
|
176
|
+
record[field] += ms;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/** Builds the full test name by walking up the describe blocks, matching jest's currentTestName. */ fullTestName(test) {
|
|
180
|
+
if (!test) {
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
const parts = [];
|
|
184
|
+
let node = test;
|
|
185
|
+
while(node && node.name && node.name !== 'ROOT_DESCRIBE_BLOCK'){
|
|
186
|
+
parts.unshift(node.name);
|
|
187
|
+
node = node.parent;
|
|
188
|
+
}
|
|
189
|
+
return parts.join(' ');
|
|
190
|
+
}
|
|
191
|
+
/** Folds the collected spans into the per-test / suite records via {@link foldSpansInto}, then drains the collector. */ foldSpans() {
|
|
192
|
+
const rawSpans = foldSpansInto(this.collector.spans, {
|
|
193
|
+
recordsByName: this.recordsByName,
|
|
194
|
+
suiteRecord: this.suiteRecord,
|
|
195
|
+
emitSpanLines: this.emitSpanLines
|
|
196
|
+
});
|
|
197
|
+
this.rawSpans.push(...rawSpans);
|
|
198
|
+
this.collector.spans = [];
|
|
199
|
+
}
|
|
200
|
+
/** Folds spans into records, finalizes the suite-scoped record, and writes all JSONL. */ finalizeAndFlush() {
|
|
201
|
+
if (this.flushed || !this.timingFile) {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
this.flushed = true;
|
|
205
|
+
this.foldSpans();
|
|
206
|
+
const lines = [];
|
|
207
|
+
for (const record of this.records){
|
|
208
|
+
lines.push(this.toLine({
|
|
209
|
+
...record
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
lines.push(this.toLine({
|
|
213
|
+
type: 'suite',
|
|
214
|
+
name: null,
|
|
215
|
+
status: 'passed',
|
|
216
|
+
setupFnMs: this.suiteRecord.setupFnMs ?? 0,
|
|
217
|
+
beforeHooksMs: this.suiteRecord.beforeHooksMs,
|
|
218
|
+
teardownFnMs: this.suiteRecord.teardownFnMs ?? 0,
|
|
219
|
+
afterHooksMs: this.suiteRecord.afterHooksMs,
|
|
220
|
+
totalMs: this.suiteRecord.beforeHooksMs + this.suiteRecord.afterHooksMs,
|
|
221
|
+
spans: this.suiteRecord.spans
|
|
222
|
+
}));
|
|
223
|
+
for (const raw of this.rawSpans){
|
|
224
|
+
lines.push(this.toLine({
|
|
225
|
+
type: 'span',
|
|
226
|
+
name: raw.owner,
|
|
227
|
+
span: raw.name,
|
|
228
|
+
ms: raw.ms
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
const payload = lines.join('\n') + '\n';
|
|
232
|
+
try {
|
|
233
|
+
// One file per worker process, but a worker may run several suites: append so we keep them all.
|
|
234
|
+
appendFileSync(this.timingFile, payload);
|
|
235
|
+
} catch {
|
|
236
|
+
try {
|
|
237
|
+
writeFileSync(this.timingFile, payload);
|
|
238
|
+
} catch {
|
|
239
|
+
// Timing is best-effort; never fail a test because we couldn't write the file.
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/** Flattens metadata onto a record and serializes to a single JSON line, rounding all Ms fields. */ toLine(record) {
|
|
244
|
+
const obj = {
|
|
245
|
+
suite: this.suite,
|
|
246
|
+
...record,
|
|
247
|
+
...this.meta
|
|
248
|
+
};
|
|
249
|
+
for (const key of Object.keys(obj)){
|
|
250
|
+
if (key.endsWith('Ms') && typeof obj[key] === 'number') {
|
|
251
|
+
obj[key] = Math.round(obj[key]);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
// Round the nested span aggregates' Ms fields too (totalMs/busyMs/maxMs per tag).
|
|
255
|
+
if (obj.spans && typeof obj.spans === 'object') {
|
|
256
|
+
for (const agg of Object.values(obj.spans)){
|
|
257
|
+
for (const key of Object.keys(agg)){
|
|
258
|
+
if (key.endsWith('Ms') && typeof agg[key] === 'number') {
|
|
259
|
+
agg[key] = Math.round(agg[key]);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
return JSON.stringify(obj);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Aggregates a list of `{ start, end }` spans of one tag into `{ count, totalMs, busyMs, maxMs }`.
|
|
269
|
+
* `totalMs` is the naive sum of per-occurrence durations (correct for serial repeats); `busyMs` is
|
|
270
|
+
* the duration of the union of the `[start, end)` intervals (concurrency-correct — N concurrent
|
|
271
|
+
* spans collapse to their wall-clock span instead of summing to ~N×); `maxMs` is the longest single
|
|
272
|
+
* occurrence. All durations are on the shared process-wide `performance.now()` clock. Does not mutate
|
|
273
|
+
* the input array.
|
|
274
|
+
*/ export function aggregateSpans(spans) {
|
|
275
|
+
let totalMs = 0;
|
|
276
|
+
let maxMs = 0;
|
|
277
|
+
for (const span of spans){
|
|
278
|
+
const ms = span.end - span.start;
|
|
279
|
+
totalMs += ms;
|
|
280
|
+
if (ms > maxMs) {
|
|
281
|
+
maxMs = ms;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
// busyMs: sort by start and merge overlapping intervals, summing the merged lengths.
|
|
285
|
+
const sorted = [
|
|
286
|
+
...spans
|
|
287
|
+
].sort((a, b)=>a.start - b.start);
|
|
288
|
+
let busyMs = 0;
|
|
289
|
+
let mergeStart = null;
|
|
290
|
+
let mergeEnd = null;
|
|
291
|
+
for (const span of sorted){
|
|
292
|
+
if (mergeStart === null) {
|
|
293
|
+
mergeStart = span.start;
|
|
294
|
+
mergeEnd = span.end;
|
|
295
|
+
} else if (span.start <= mergeEnd) {
|
|
296
|
+
if (span.end > mergeEnd) {
|
|
297
|
+
mergeEnd = span.end;
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
busyMs += mergeEnd - mergeStart;
|
|
301
|
+
mergeStart = span.start;
|
|
302
|
+
mergeEnd = span.end;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if (mergeStart !== null) {
|
|
306
|
+
busyMs += mergeEnd - mergeStart;
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
count: spans.length,
|
|
310
|
+
totalMs,
|
|
311
|
+
busyMs,
|
|
312
|
+
maxMs
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Groups `spans` by owner, then by tag, and attaches a `spans` map of aggregates to the matching
|
|
317
|
+
* per-test record (looked up in `recordsByName`) or, for `null`-owner spans, to `suiteRecord`. Also
|
|
318
|
+
* derives the back-compat `setupFnMs` / `teardownFnMs` fields from the `setup:env:<mode>` /
|
|
319
|
+
* `teardown:env` aggregates (additive over any pre-existing value). Spans whose owner matches no
|
|
320
|
+
* record (e.g. the pinned `other:mempool-feeder` owner) are dropped. Returns the raw per-occurrence
|
|
321
|
+
* list (`{ owner, name, ms }`), which is empty unless `emitSpanLines` is set.
|
|
322
|
+
*/ export function foldSpansInto(spans, { recordsByName, suiteRecord, emitSpanLines = false }) {
|
|
323
|
+
const rawSpans = [];
|
|
324
|
+
// Group by owner (null owner → suite record), then by tag.
|
|
325
|
+
const byOwner = new Map();
|
|
326
|
+
for (const span of spans){
|
|
327
|
+
const owner = span.owner ?? null;
|
|
328
|
+
let byName = byOwner.get(owner);
|
|
329
|
+
if (!byName) {
|
|
330
|
+
byName = new Map();
|
|
331
|
+
byOwner.set(owner, byName);
|
|
332
|
+
}
|
|
333
|
+
let list = byName.get(span.name);
|
|
334
|
+
if (!list) {
|
|
335
|
+
list = [];
|
|
336
|
+
byName.set(span.name, list);
|
|
337
|
+
}
|
|
338
|
+
list.push(span);
|
|
339
|
+
if (emitSpanLines) {
|
|
340
|
+
rawSpans.push({
|
|
341
|
+
owner,
|
|
342
|
+
name: span.name,
|
|
343
|
+
ms: span.end - span.start
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
for (const [owner, byName] of byOwner){
|
|
348
|
+
const record = owner === null ? suiteRecord : recordsByName.get(owner);
|
|
349
|
+
if (!record) {
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
const aggregates = {};
|
|
353
|
+
for (const [name, list] of byName){
|
|
354
|
+
aggregates[name] = aggregateSpans(list);
|
|
355
|
+
}
|
|
356
|
+
record.spans = aggregates;
|
|
357
|
+
// Back-compat: the legacy fn-span buckets are derived from the top-level env setup/teardown tags.
|
|
358
|
+
// The top-level setup is tagged `setup:env:<proverMode>` (the mode is a closed set, distinct from
|
|
359
|
+
// the `:anvil`/`:l1-deploy`/... sub-phase tags), so sum those three exact tags.
|
|
360
|
+
const setupFnMs = (aggregates['setup:env:none']?.totalMs ?? 0) + (aggregates['setup:env:fake']?.totalMs ?? 0) + (aggregates['setup:env:real']?.totalMs ?? 0);
|
|
361
|
+
record.setupFnMs = setupFnMs + (record.setupFnMs ?? 0);
|
|
362
|
+
record.teardownFnMs = (aggregates['teardown:env']?.totalMs ?? 0) + (record.teardownFnMs ?? 0);
|
|
363
|
+
}
|
|
364
|
+
return rawSpans;
|
|
365
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type EndToEndContext } from '../fixtures/utils.js';
|
|
2
2
|
export declare const uniswapL1L2TestSuite: (setup: () => Promise<EndToEndContext>, cleanup: () => Promise<void>, expectedForkBlockNumber?: number) => void;
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pc3dhcF9sMV9sMi5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NoYXJlZC91bmlzd2FwX2wxX2wyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQSxPQUFPLEVBQUUsS0FBSyxlQUFlLEVBQStCLE1BQU0sc0JBQXNCLENBQUM7QUFhekYsZUFBTyxNQUFNLG9CQUFvQixpSEE0Z0NoQyxDQUFDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswap_l1_l2.d.ts","sourceRoot":"","sources":["../../src/shared/uniswap_l1_l2.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"uniswap_l1_l2.d.ts","sourceRoot":"","sources":["../../src/shared/uniswap_l1_l2.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,eAAe,EAA+B,MAAM,sBAAsB,CAAC;AAazF,eAAO,MAAM,oBAAoB,iHA4gChC,CAAC"}
|
|
@@ -8,13 +8,13 @@ import { deployL1Contract } from '@aztec/ethereum/deploy-l1-contract';
|
|
|
8
8
|
import { extractEvent } from '@aztec/ethereum/utils';
|
|
9
9
|
import { EpochNumber } from '@aztec/foundation/branded-types';
|
|
10
10
|
import { sha256ToField } from '@aztec/foundation/crypto/sha256';
|
|
11
|
+
import { retryUntil } from '@aztec/foundation/retry';
|
|
11
12
|
import { InboxAbi, UniswapPortalAbi, UniswapPortalBytecode } from '@aztec/l1-artifacts';
|
|
12
13
|
import { UniswapContract } from '@aztec/noir-contracts.js/Uniswap';
|
|
13
14
|
import { computeL2ToL1MessageHash } from '@aztec/stdlib/hash';
|
|
14
|
-
import { computeL2ToL1MembershipWitness } from '@aztec/stdlib/messaging';
|
|
15
15
|
import { jest } from '@jest/globals';
|
|
16
16
|
import { getContract, parseEther, toFunctionSelector } from 'viem';
|
|
17
|
-
import {
|
|
17
|
+
import { ensureAuthRegistryPublished } from '../fixtures/utils.js';
|
|
18
18
|
import { CrossChainTestHarness } from './cross_chain_test_harness.js';
|
|
19
19
|
// PSA: This tests works on forked mainnet. There is a dump of the data in `dumpedState` such that we
|
|
20
20
|
// don't need to burn through RPC requests.
|
|
@@ -22,7 +22,7 @@ import { CrossChainTestHarness } from './cross_chain_test_harness.js';
|
|
|
22
22
|
// To start an actual fork, use the command:
|
|
23
23
|
// anvil --fork-url https://mainnet.infura.io/v3/9928b52099854248b3a096be07a6b23c --fork-block-number 17514288 --chain-id 31337
|
|
24
24
|
// For CI, this is configured in `run_tests.sh` and `docker-compose-images.yml`
|
|
25
|
-
const TIMEOUT =
|
|
25
|
+
const TIMEOUT = 15 * 60 * 1000;
|
|
26
26
|
export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 17514288)=>{
|
|
27
27
|
describe('uniswap_trade_on_l1_from_l2', ()=>{
|
|
28
28
|
jest.setTimeout(TIMEOUT);
|
|
@@ -52,17 +52,13 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
52
52
|
const t = await setup();
|
|
53
53
|
({ aztecNode, logger, deployL1ContractsValues, cheatCodes, wallet, accounts: [ownerAddress, sponsorAddress] } = t);
|
|
54
54
|
l1Client = deployL1ContractsValues.l1Client;
|
|
55
|
-
t.watcher.setIsMarkingAsProven(false);
|
|
56
55
|
if (Number(await l1Client.getBlockNumber()) < expectedForkBlockNumber) {
|
|
57
56
|
throw new Error('This test must be run on a fork of mainnet with the expected fork block');
|
|
58
57
|
}
|
|
59
58
|
rollup = new RollupContract(deployL1ContractsValues.l1Client, deployL1ContractsValues.l1ContractAddresses.rollupAddress);
|
|
60
59
|
version = Number(await rollup.getVersion());
|
|
61
60
|
ownerEthAddress = EthAddress.fromString((await l1Client.getAddresses())[0]);
|
|
62
|
-
await
|
|
63
|
-
ownerAddress,
|
|
64
|
-
sponsorAddress
|
|
65
|
-
]);
|
|
61
|
+
await ensureAuthRegistryPublished(wallet, ownerAddress);
|
|
66
62
|
logger.info('Deploying DAI Portal, initializing and deploying l2 contract...');
|
|
67
63
|
daiCrossChainHarness = await CrossChainTestHarness.new(aztecNode, deployL1ContractsValues.l1Client, wallet, ownerAddress, logger, DAI_ADDRESS);
|
|
68
64
|
logger.info('Deploying WETH Portal, initializing and deploying l2 contract...');
|
|
@@ -98,7 +94,6 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
98
94
|
afterAll(async ()=>{
|
|
99
95
|
await cleanup();
|
|
100
96
|
});
|
|
101
|
-
// docs:start:uniswap_private
|
|
102
97
|
it('should uniswap trade on L1 from L2 funds privately (swaps WETH -> DAI)', async ()=>{
|
|
103
98
|
const wethL1BeforeBalance = await wethCrossChainHarness.getL1BalanceOf(ownerEthAddress);
|
|
104
99
|
// 1. Approve and deposit weth to the portal and move to L2
|
|
@@ -165,28 +160,35 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
165
160
|
await wethCrossChainHarness.expectPrivateBalanceOnL2(ownerAddress, wethL2BalanceBeforeSwap - wethAmountToBridge);
|
|
166
161
|
// ensure that uniswap contract didn't eat the funds.
|
|
167
162
|
await wethCrossChainHarness.expectPublicBalanceOnL2(uniswapL2Contract.address, 0n);
|
|
168
|
-
// Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
|
|
163
|
+
// Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch
|
|
164
|
+
// before we can ask the witness helper for a covering root.
|
|
165
|
+
const minedReceipt = await aztecNode.getTxReceipt(l2UniswapInteractionReceipt.txHash);
|
|
166
|
+
if (minedReceipt.epochNumber === undefined) {
|
|
167
|
+
throw new Error('L2 Uniswap interaction tx is not yet in an epoch');
|
|
168
|
+
}
|
|
169
|
+
await cheatCodes.rollup.advanceToEpoch(EpochNumber(minedReceipt.epochNumber + 1));
|
|
172
170
|
await waitForProven(aztecNode, l2UniswapInteractionReceipt, {
|
|
173
171
|
provenTimeout: 300
|
|
174
172
|
});
|
|
175
173
|
// 5. Consume L2 to L1 message by calling uniswapPortal.swap_private()
|
|
176
174
|
logger.info('Execute withdraw and swap on the uniswapPortal!');
|
|
177
175
|
const daiL1BalanceOfPortalBeforeSwap = await daiCrossChainHarness.getL1BalanceOf(daiCrossChainHarness.tokenPortalAddress);
|
|
178
|
-
const
|
|
176
|
+
const swapResult = await retryUntil(()=>aztecNode.getL2ToL1MembershipWitness(minedReceipt.txHash, swapPrivateLeaf), 'swap private l2 to l1 witness', 60, 1);
|
|
177
|
+
const { epochNumber: epoch, numCheckpointsInEpoch } = swapResult;
|
|
178
|
+
const withdrawResult = await retryUntil(()=>aztecNode.getL2ToL1MembershipWitness(minedReceipt.txHash, withdrawLeaf), 'withdraw l2 to l1 witness', 60, 1);
|
|
179
179
|
const swapPrivateL2MessageIndex = swapResult.leafIndex;
|
|
180
180
|
const swapPrivateSiblingPath = swapResult.siblingPath;
|
|
181
181
|
const withdrawL2MessageIndex = withdrawResult.leafIndex;
|
|
182
182
|
const withdrawSiblingPath = withdrawResult.siblingPath;
|
|
183
183
|
const withdrawMessageMetadata = {
|
|
184
184
|
_epoch: BigInt(epoch),
|
|
185
|
+
_numCheckpointsInEpoch: BigInt(withdrawResult.numCheckpointsInEpoch),
|
|
185
186
|
_leafIndex: BigInt(withdrawL2MessageIndex),
|
|
186
187
|
_path: withdrawSiblingPath.toBufferArray().map((buf)=>`0x${buf.toString('hex')}`)
|
|
187
188
|
};
|
|
188
189
|
const swapPrivateMessageMetadata = {
|
|
189
190
|
_epoch: BigInt(epoch),
|
|
191
|
+
_numCheckpointsInEpoch: BigInt(numCheckpointsInEpoch),
|
|
190
192
|
_leafIndex: BigInt(swapPrivateL2MessageIndex),
|
|
191
193
|
_path: swapPrivateSiblingPath.toBufferArray().map((buf)=>`0x${buf.toString('hex')}`)
|
|
192
194
|
};
|
|
@@ -235,9 +237,7 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
235
237
|
logger.info('WETH balance after swap : ', wethL2BalanceAfterSwap.toString());
|
|
236
238
|
logger.info('DAI balance after swap : ', daiL2BalanceAfterSwap.toString());
|
|
237
239
|
});
|
|
238
|
-
// docs:end:uniswap_private
|
|
239
240
|
// TODO(#7463): reenable look into this failure https://github.com/AztecProtocol/aztec-packages/actions/runs/9912612912/job/27388320150?pr=7462
|
|
240
|
-
// // docs:start:uniswap_public
|
|
241
241
|
// it('should uniswap trade on L1 from L2 funds publicly (swaps WETH -> DAI)', async () => {
|
|
242
242
|
// const wethL1BeforeBalance = await wethCrossChainHarness.getL1BalanceOf(ownerEthAddress);
|
|
243
243
|
// // 1. Approve and deposit weth to the portal and move to L2
|
|
@@ -440,7 +440,6 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
440
440
|
// logger.info('WETH balance after swap : ', wethL2BalanceAfterSwap.toString());
|
|
441
441
|
// logger.info('DAI balance after swap : ', daiL2BalanceAfterSwap.toString());
|
|
442
442
|
// });
|
|
443
|
-
// // docs:end:uniswap_public
|
|
444
443
|
// Edge cases for the private flow:
|
|
445
444
|
// note - tests for uniswapPortal.sol and minting asset on L2 are covered in other tests.
|
|
446
445
|
it('swap_private reverts without transfer to public approval', async ()=>{
|
|
@@ -573,30 +572,37 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
573
572
|
rollupVersion: new Fr(version),
|
|
574
573
|
chainId: new Fr(l1Client.chain.id)
|
|
575
574
|
});
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
575
|
+
// ensure that user's funds were burnt
|
|
576
|
+
await wethCrossChainHarness.expectPrivateBalanceOnL2(ownerAddress, wethL2BalanceBeforeSwap - wethAmountToBridge);
|
|
577
|
+
// Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch
|
|
578
|
+
// before we can ask the witness helper for a covering root.
|
|
579
|
+
const minedReceipt = await aztecNode.getTxReceipt(withdrawReceipt.txHash);
|
|
580
|
+
if (minedReceipt.epochNumber === undefined) {
|
|
581
|
+
throw new Error('Withdraw tx is not yet in an epoch');
|
|
582
|
+
}
|
|
583
|
+
await cheatCodes.rollup.advanceToEpoch(EpochNumber(minedReceipt.epochNumber + 1));
|
|
584
|
+
await waitForProven(aztecNode, withdrawReceipt, {
|
|
585
|
+
provenTimeout: 300
|
|
586
|
+
});
|
|
587
|
+
const swapResult = await retryUntil(()=>aztecNode.getL2ToL1MembershipWitness(minedReceipt.txHash, swapPrivateLeaf), 'swap private l2 to l1 witness', 60, 1);
|
|
588
|
+
const { epochNumber: epoch, numCheckpointsInEpoch } = swapResult;
|
|
589
|
+
const withdrawResult = await retryUntil(()=>aztecNode.getL2ToL1MembershipWitness(minedReceipt.txHash, withdrawLeaf), 'withdraw l2 to l1 witness', 60, 1);
|
|
579
590
|
const swapPrivateL2MessageIndex = swapResult.leafIndex;
|
|
580
591
|
const swapPrivateSiblingPath = swapResult.siblingPath;
|
|
581
592
|
const withdrawL2MessageIndex = withdrawResult.leafIndex;
|
|
582
593
|
const withdrawSiblingPath = withdrawResult.siblingPath;
|
|
583
594
|
const withdrawMessageMetadata = {
|
|
584
595
|
_epoch: BigInt(epoch),
|
|
596
|
+
_numCheckpointsInEpoch: BigInt(withdrawResult.numCheckpointsInEpoch),
|
|
585
597
|
_leafIndex: BigInt(withdrawL2MessageIndex),
|
|
586
598
|
_path: withdrawSiblingPath.toBufferArray().map((buf)=>`0x${buf.toString('hex')}`)
|
|
587
599
|
};
|
|
588
600
|
const swapPrivateMessageMetadata = {
|
|
589
601
|
_epoch: BigInt(epoch),
|
|
602
|
+
_numCheckpointsInEpoch: BigInt(numCheckpointsInEpoch),
|
|
590
603
|
_leafIndex: BigInt(swapPrivateL2MessageIndex),
|
|
591
604
|
_path: swapPrivateSiblingPath.toBufferArray().map((buf)=>`0x${buf.toString('hex')}`)
|
|
592
605
|
};
|
|
593
|
-
// ensure that user's funds were burnt
|
|
594
|
-
await wethCrossChainHarness.expectPrivateBalanceOnL2(ownerAddress, wethL2BalanceBeforeSwap - wethAmountToBridge);
|
|
595
|
-
// Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch.
|
|
596
|
-
await cheatCodes.rollup.advanceToEpoch(EpochNumber(epoch + 1));
|
|
597
|
-
await waitForProven(aztecNode, withdrawReceipt, {
|
|
598
|
-
provenTimeout: 300
|
|
599
|
-
});
|
|
600
606
|
// On L1 call swap_public!
|
|
601
607
|
logger.info('call swap_public on L1');
|
|
602
608
|
const swapArgs = [
|
|
@@ -663,30 +669,37 @@ export const uniswapL1L2TestSuite = (setup, cleanup, expectedForkBlockNumber = 1
|
|
|
663
669
|
rollupVersion: new Fr(version),
|
|
664
670
|
chainId: new Fr(l1Client.chain.id)
|
|
665
671
|
});
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
672
|
+
// check weth balance of owner on L2 (we first bridged `wethAmountToBridge` into L2 and now withdrew it!)
|
|
673
|
+
await wethCrossChainHarness.expectPublicBalanceOnL2(ownerAddress, 0n);
|
|
674
|
+
// Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch
|
|
675
|
+
// before we can ask the witness helper for a covering root.
|
|
676
|
+
const minedReceipt = await aztecNode.getTxReceipt(withdrawReceipt.txHash);
|
|
677
|
+
if (minedReceipt.epochNumber === undefined) {
|
|
678
|
+
throw new Error('Withdraw tx is not yet in an epoch');
|
|
679
|
+
}
|
|
680
|
+
await cheatCodes.rollup.advanceToEpoch(EpochNumber(minedReceipt.epochNumber + 1));
|
|
681
|
+
await waitForProven(aztecNode, withdrawReceipt, {
|
|
682
|
+
provenTimeout: 300
|
|
683
|
+
});
|
|
684
|
+
const swapResult = await retryUntil(()=>aztecNode.getL2ToL1MembershipWitness(minedReceipt.txHash, swapPublicLeaf), 'swap public l2 to l1 witness', 60, 1);
|
|
685
|
+
const { epochNumber: epoch, numCheckpointsInEpoch } = swapResult;
|
|
686
|
+
const withdrawResult = await retryUntil(()=>aztecNode.getL2ToL1MembershipWitness(minedReceipt.txHash, withdrawLeaf), 'withdraw l2 to l1 witness', 60, 1);
|
|
669
687
|
const swapPublicL2MessageIndex = swapResult.leafIndex;
|
|
670
688
|
const swapPublicSiblingPath = swapResult.siblingPath;
|
|
671
689
|
const withdrawL2MessageIndex = withdrawResult.leafIndex;
|
|
672
690
|
const withdrawSiblingPath = withdrawResult.siblingPath;
|
|
673
691
|
const withdrawMessageMetadata = {
|
|
674
692
|
_epoch: BigInt(epoch),
|
|
693
|
+
_numCheckpointsInEpoch: BigInt(withdrawResult.numCheckpointsInEpoch),
|
|
675
694
|
_leafIndex: BigInt(withdrawL2MessageIndex),
|
|
676
695
|
_path: withdrawSiblingPath.toBufferArray().map((buf)=>`0x${buf.toString('hex')}`)
|
|
677
696
|
};
|
|
678
697
|
const swapPublicMessageMetadata = {
|
|
679
698
|
_epoch: BigInt(epoch),
|
|
699
|
+
_numCheckpointsInEpoch: BigInt(numCheckpointsInEpoch),
|
|
680
700
|
_leafIndex: BigInt(swapPublicL2MessageIndex),
|
|
681
701
|
_path: swapPublicSiblingPath.toBufferArray().map((buf)=>`0x${buf.toString('hex')}`)
|
|
682
702
|
};
|
|
683
|
-
// check weth balance of owner on L2 (we first bridged `wethAmountToBridge` into L2 and now withdrew it!)
|
|
684
|
-
await wethCrossChainHarness.expectPublicBalanceOnL2(ownerAddress, 0n);
|
|
685
|
-
// Since the outbox is only consumable when the epoch is proven, we need to advance to the next epoch.
|
|
686
|
-
await cheatCodes.rollup.advanceToEpoch(EpochNumber(epoch + 1));
|
|
687
|
-
await waitForProven(aztecNode, withdrawReceipt, {
|
|
688
|
-
provenTimeout: 300
|
|
689
|
-
});
|
|
690
703
|
// Call swap_private on L1
|
|
691
704
|
logger.info('Execute withdraw and swap on the uniswapPortal!');
|
|
692
705
|
const swapArgs = [
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Fr } from '@aztec/aztec.js/fields';
|
|
2
|
+
import type { AztecNode } from '@aztec/aztec.js/node';
|
|
3
|
+
/**
|
|
4
|
+
* Waits until the archiver has seen the L1 to L2 message and indexed it. Unlike
|
|
5
|
+
* {@link waitForL1ToL2MessageReady} from `@aztec/aztec.js/messaging`, this does not
|
|
6
|
+
* require the L2 chain to have advanced to the message's checkpoint — it only confirms
|
|
7
|
+
* the message has been picked up from L1. Use this in tests that explicitly produce L2
|
|
8
|
+
* blocks afterwards to make the message consumable.
|
|
9
|
+
*/
|
|
10
|
+
export declare function waitForL1ToL2MessageSeen(node: Pick<AztecNode, 'getL1ToL2MessageCheckpoint'>, l1ToL2MessageHash: Fr, opts: {
|
|
11
|
+
timeoutSeconds: number;
|
|
12
|
+
}): Promise<boolean>;
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2FpdF9mb3JfbDFfdG9fbDJfbWVzc2FnZS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NoYXJlZC93YWl0X2Zvcl9sMV90b19sMl9tZXNzYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxFQUFFLEVBQUUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ2pELE9BQU8sS0FBSyxFQUFFLFNBQVMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBR3REOzs7Ozs7R0FNRztBQUNILHdCQUFnQix3QkFBd0IsQ0FDdEMsSUFBSSxFQUFFLElBQUksQ0FBQyxTQUFTLEVBQUUsNEJBQTRCLENBQUMsRUFDbkQsaUJBQWlCLEVBQUUsRUFBRSxFQUNyQixJQUFJLEVBQUU7SUFBRSxjQUFjLEVBQUUsTUFBTSxDQUFBO0NBQUUsb0JBUWpDIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait_for_l1_to_l2_message.d.ts","sourceRoot":"","sources":["../../src/shared/wait_for_l1_to_l2_message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,4BAA4B,CAAC,EACnD,iBAAiB,EAAE,EAAE,EACrB,IAAI,EAAE;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,oBAQjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { retryUntil } from '@aztec/foundation/retry';
|
|
2
|
+
/**
|
|
3
|
+
* Waits until the archiver has seen the L1 to L2 message and indexed it. Unlike
|
|
4
|
+
* {@link waitForL1ToL2MessageReady} from `@aztec/aztec.js/messaging`, this does not
|
|
5
|
+
* require the L2 chain to have advanced to the message's checkpoint — it only confirms
|
|
6
|
+
* the message has been picked up from L1. Use this in tests that explicitly produce L2
|
|
7
|
+
* blocks afterwards to make the message consumable.
|
|
8
|
+
*/ export function waitForL1ToL2MessageSeen(node, l1ToL2MessageHash, opts) {
|
|
9
|
+
return retryUntil(async ()=>await node.getL1ToL2MessageCheckpoint(l1ToL2MessageHash) !== undefined, `L1 to L2 message ${l1ToL2MessageHash.toString()} seen`, opts.timeoutSeconds, 0.25);
|
|
10
|
+
}
|
|
@@ -4,6 +4,7 @@ import { CheatCodes } from '@aztec/aztec/testing';
|
|
|
4
4
|
import type { RollupContract } from '@aztec/ethereum/contracts';
|
|
5
5
|
import type { TestDateProvider } from '@aztec/foundation/timer';
|
|
6
6
|
import type { LendingContract } from '@aztec/noir-contracts.js/Lending';
|
|
7
|
+
import type { AztecNode, AztecNodeDebug } from '@aztec/stdlib/interfaces/client';
|
|
7
8
|
import type { TokenSimulator } from './token_simulator.js';
|
|
8
9
|
/**
|
|
9
10
|
* Contains utilities to compute the "key" for private holdings in the public state.
|
|
@@ -53,8 +54,14 @@ export declare class LendingSimulator {
|
|
|
53
54
|
collateralAsset: TokenSimulator,
|
|
54
55
|
/** the stable-coin borrowed in the lending contract */
|
|
55
56
|
stableCoin: TokenSimulator);
|
|
56
|
-
prepare():
|
|
57
|
-
|
|
57
|
+
prepare(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Advances the simulator's accumulator and clock to match a block timestamp observed on chain.
|
|
60
|
+
* Call this BEFORE applying any accumulator-sensitive mutation (borrow/repay) so the mutation
|
|
61
|
+
* sees the same accumulator as the contract did during execution.
|
|
62
|
+
*/
|
|
63
|
+
observeBlockTimestamp(ts: number): void;
|
|
64
|
+
progressSlots(diff: number, _dateProvider?: TestDateProvider, node?: AztecNode & AztecNodeDebug): Promise<void>;
|
|
58
65
|
depositPrivate(from: AztecAddress, onBehalfOf: Fr, amount: bigint): void;
|
|
59
66
|
depositPublic(from: AztecAddress, onBehalfOf: Fr, amount: bigint): void;
|
|
60
67
|
private deposit;
|
|
@@ -66,4 +73,4 @@ export declare class LendingSimulator {
|
|
|
66
73
|
mintStableCoinOutsideLoan(recipient: AztecAddress, amount: bigint, priv?: boolean): void;
|
|
67
74
|
check(): Promise<void>;
|
|
68
75
|
}
|
|
69
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVuZGluZ19zaW11bGF0b3IuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaW11bGF0b3JzL2xlbmRpbmdfc2ltdWxhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ2xELE9BQU8sS0FBSyxFQUFFLGNBQWMsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBR2hFLE9BQU8sS0FBSyxFQUFFLGdCQUFnQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDaEUsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDeEUsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLGNBQWMsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRWpGLE9BQU8sS0FBSyxFQUFFLGNBQWMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRTNEOztHQUVHO0FBQ0gscUJBQWEsY0FBYztJQUN6Qix5Q0FBeUM7SUFDekMsU0FBZ0IsT0FBTyxFQUFFLFlBQVksQ0FBQztJQUN0QywyQ0FBMkM7SUFDM0MsU0FBZ0IsTUFBTSxFQUFFLEVBQUUsQ0FBQztJQUUzQixZQUFZLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLEVBQUUsRUFHNUM7SUFFRDs7O09BR0c7SUFDSSxHQUFHLGdCQUVUO0NBQ0Y7QUFnQ0Q7O0dBRUc7QUFDSCxxQkFBYSxnQkFBZ0I7SUFZekIsT0FBTyxDQUFDLEVBQUU7SUFDVixPQUFPLENBQUMsT0FBTztJQUNmLE9BQU8sQ0FBQyxJQUFJO0lBQ1osT0FBTyxDQUFDLG9CQUFvQjtJQUM1QiwwQkFBMEI7SUFDbkIsTUFBTSxFQUFFLGNBQWM7SUFDN0IsMkJBQTJCO0lBQ3BCLGVBQWUsRUFBRSxlQUFlO0lBQ3ZDLHdEQUF3RDtJQUNqRCxlQUFlLEVBQUUsY0FBYztJQUN0Qyx1REFBdUQ7SUFDaEQsVUFBVSxFQUFFLGNBQWM7SUF0Qm5DLGdDQUFnQztJQUN6QixXQUFXLEVBQUUsTUFBTSxDQUFNO0lBQ2hDLG9DQUFvQztJQUM3QixJQUFJLEVBQUUsTUFBTSxDQUFLO0lBRXhCLE9BQU8sQ0FBQyxVQUFVLENBQTZCO0lBQy9DLE9BQU8sQ0FBQyxVQUFVLENBQTZCO0lBQy9DLE9BQU8sQ0FBQyxRQUFRLENBQWM7SUFDOUIsT0FBTyxDQUFDLGFBQWEsQ0FBYztJQUVuQyxZQUNVLEVBQUUsRUFBRSxVQUFVLEVBQ2QsT0FBTyxFQUFFLGNBQWMsRUFDdkIsSUFBSSxFQUFFLE1BQU0sRUFDWixvQkFBb0IsRUFBRSxNQUFNO0lBQ3BDLDBCQUEwQjtJQUNuQixNQUFNLEVBQUUsY0FBYztJQUM3QiwyQkFBMkI7SUFDcEIsZUFBZSxFQUFFLGVBQWU7SUFDdkMsd0RBQXdEO0lBQ2pELGVBQWUsRUFBRSxjQUFjO0lBQ3RDLHVEQUF1RDtJQUNoRCxVQUFVLEVBQUUsY0FBYyxFQUMvQjtJQUVKLE9BQU8sU0FHTjtJQUVEOzs7O09BSUc7SUFDSCxxQkFBcUIsQ0FBQyxFQUFFLEVBQUUsTUFBTSxRQU0vQjtJQUVLLGFBQWEsQ0FBQyxJQUFJLEVBQUUsTUFBTSxFQUFFLGFBQWEsQ0FBQyxFQUFFLGdCQUFnQixFQUFFLElBQUksQ0FBQyxFQUFFLFNBQVMsR0FBRyxjQUFjLGlCQXFCcEc7SUFFRCxjQUFjLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsRUFBRSxFQUFFLE1BQU0sRUFBRSxNQUFNLFFBR2hFO0lBRUQsYUFBYSxDQUFDLElBQUksRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFFLEVBQUUsRUFBRSxNQUFNLEVBQUUsTUFBTSxRQUcvRDtJQUVELE9BQU8sQ0FBQyxPQUFPO0lBS2YsUUFBUSxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsTUFBTSxRQUkxRDtJQUVELE1BQU0sQ0FBQyxLQUFLLEVBQUUsRUFBRSxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLE1BQU0sUUFPeEQ7SUFFRCxZQUFZLENBQUMsSUFBSSxFQUFFLFlBQVksRUFBRSxVQUFVLEVBQUUsRUFBRSxFQUFFLE1BQU0sRUFBRSxNQUFNLFFBRzlEO0lBRUQsV0FBVyxDQUFDLElBQUksRUFBRSxZQUFZLEVBQUUsVUFBVSxFQUFFLEVBQUUsRUFBRSxNQUFNLEVBQUUsTUFBTSxRQUc3RDtJQUVELE9BQU8sQ0FBQyxLQUFLO0lBUWIseUJBQXlCLENBQUMsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLElBQUksVUFBUSxRQU85RTtJQUVLLEtBQUssa0JBMkJWO0NBQ0YifQ==
|