@aztec/end-to-end 4.0.0-nightly.20260113 → 4.0.0-nightly.20260114
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/dest/bench/client_flows/client_flows_benchmark.d.ts +10 -10
- package/dest/bench/client_flows/client_flows_benchmark.d.ts.map +1 -1
- package/dest/bench/client_flows/client_flows_benchmark.js +98 -133
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts +5 -6
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.d.ts.map +1 -1
- package/dest/e2e_blacklist_token_contract/blacklist_token_contract_test.js +94 -112
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts +5 -5
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.d.ts.map +1 -1
- package/dest/e2e_cross_chain_messaging/cross_chain_messaging_test.js +60 -62
- package/dest/e2e_deploy_contract/deploy_test.d.ts +4 -3
- package/dest/e2e_deploy_contract/deploy_test.d.ts.map +1 -1
- package/dest/e2e_deploy_contract/deploy_test.js +15 -13
- package/dest/e2e_fees/bridging_race.notest.js +2 -4
- package/dest/e2e_fees/fees_test.d.ts +11 -11
- package/dest/e2e_fees/fees_test.d.ts.map +1 -1
- package/dest/e2e_fees/fees_test.js +118 -139
- package/dest/e2e_l1_publisher/write_json.d.ts +1 -1
- package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
- package/dest/e2e_l1_publisher/write_json.js +1 -0
- package/dest/e2e_nested_contract/nested_contract_test.d.ts +5 -8
- package/dest/e2e_nested_contract/nested_contract_test.d.ts.map +1 -1
- package/dest/e2e_nested_contract/nested_contract_test.js +29 -40
- package/dest/e2e_p2p/inactivity_slash_test.js +1 -1
- package/dest/e2e_p2p/p2p_network.d.ts +5 -3
- package/dest/e2e_p2p/p2p_network.d.ts.map +1 -1
- package/dest/e2e_p2p/p2p_network.js +99 -102
- package/dest/e2e_token_contract/token_contract_test.d.ts +15 -8
- package/dest/e2e_token_contract/token_contract_test.d.ts.map +1 -1
- package/dest/e2e_token_contract/token_contract_test.js +88 -92
- package/dest/fixtures/e2e_prover_test.d.ts +7 -13
- package/dest/fixtures/e2e_prover_test.d.ts.map +1 -1
- package/dest/fixtures/e2e_prover_test.js +78 -91
- package/dest/fixtures/snapshot_manager.d.ts +10 -44
- package/dest/fixtures/snapshot_manager.d.ts.map +1 -1
- package/dest/fixtures/snapshot_manager.js +12 -255
- package/dest/fixtures/utils.js +3 -3
- package/dest/quality_of_service/prometheus_client.d.ts +38 -0
- package/dest/quality_of_service/prometheus_client.d.ts.map +1 -0
- package/dest/quality_of_service/prometheus_client.js +67 -0
- package/dest/spartan/tx_metrics.d.ts +4 -1
- package/dest/spartan/tx_metrics.d.ts.map +1 -1
- package/dest/spartan/tx_metrics.js +21 -1
- package/dest/spartan/utils.d.ts +5 -1
- package/dest/spartan/utils.d.ts.map +1 -1
- package/dest/spartan/utils.js +25 -8
- package/package.json +38 -38
- package/src/bench/client_flows/client_flows_benchmark.ts +134 -192
- package/src/e2e_blacklist_token_contract/blacklist_token_contract_test.ts +104 -136
- package/src/e2e_cross_chain_messaging/cross_chain_messaging_test.ts +91 -103
- package/src/e2e_deploy_contract/deploy_test.ts +18 -14
- package/src/e2e_fees/bridging_race.notest.ts +2 -5
- package/src/e2e_fees/fees_test.ts +165 -210
- package/src/e2e_l1_publisher/write_json.ts +1 -0
- package/src/e2e_nested_contract/nested_contract_test.ts +30 -54
- package/src/e2e_p2p/inactivity_slash_test.ts +1 -1
- package/src/e2e_p2p/p2p_network.ts +149 -165
- package/src/e2e_token_contract/token_contract_test.ts +104 -113
- package/src/fixtures/e2e_prover_test.ts +97 -130
- package/src/fixtures/snapshot_manager.ts +12 -325
- package/src/fixtures/utils.ts +3 -3
- package/src/quality_of_service/prometheus_client.ts +113 -0
- package/src/spartan/tx_metrics.ts +21 -1
- package/src/spartan/utils.ts +26 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d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,EAClB,MAAM,EAAE,MAAM,iBAgBf;AAED,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,qBA4BpD;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,oBAAoB,CAAC,mCAK5F;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,UAAU,mCAElD;AAED,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CA2BpH;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,UAAU;AACf,gDAAgD;AAChD,SAAS,CAAC,EAAE,YAAY,EAAE,GACzB,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAC;IAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC,CAyB5E;AAED,4DAA4D;AAC5D,wBAAsB,wBAAwB,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAsB5F;AAED;;;;;;GAMG;AACH,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,iBAcpD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAW1C;AAED,6EAA6E;AAC7E,wBAAsB,aAAa,CACjC,GAAG,EAAE,UAAU,EACf,KAAK,GAAE,MAAU,GAChB,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC,CA0BlG"}
|
package/dest/spartan/utils.js
CHANGED
|
@@ -92,7 +92,7 @@ export async function startPortForward({ resource, namespace, containerPort, hos
|
|
|
92
92
|
]
|
|
93
93
|
});
|
|
94
94
|
let isResolved = false;
|
|
95
|
-
const connected = new Promise((resolve)=>{
|
|
95
|
+
const connected = new Promise((resolve, reject)=>{
|
|
96
96
|
process1.stdout?.on('data', (data)=>{
|
|
97
97
|
const str = data.toString();
|
|
98
98
|
if (!isResolved && str.includes('Forwarding from')) {
|
|
@@ -100,7 +100,8 @@ export async function startPortForward({ resource, namespace, containerPort, hos
|
|
|
100
100
|
logger.debug(`Port forward for ${resource}: ${str}`);
|
|
101
101
|
const port = str.search(/:\d+/);
|
|
102
102
|
if (port === -1) {
|
|
103
|
-
|
|
103
|
+
reject(new Error('Port not found in port forward output'));
|
|
104
|
+
return;
|
|
104
105
|
}
|
|
105
106
|
const portNumber = parseInt(str.slice(port + 1));
|
|
106
107
|
logger.verbose(`Port forwarded for ${resource} at ${portNumber}:${containerPort}`);
|
|
@@ -120,17 +121,26 @@ export async function startPortForward({ resource, namespace, containerPort, hos
|
|
|
120
121
|
process1.on('close', ()=>{
|
|
121
122
|
if (!isResolved) {
|
|
122
123
|
isResolved = true;
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
const msg = `Port forward for ${resource} closed before connection established`;
|
|
125
|
+
logger.warn(msg);
|
|
126
|
+
reject(new Error(msg));
|
|
125
127
|
}
|
|
126
128
|
});
|
|
127
129
|
process1.on('error', (error)=>{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
if (!isResolved) {
|
|
131
|
+
isResolved = true;
|
|
132
|
+
const msg = `Port forward for ${resource} error: ${error}`;
|
|
133
|
+
logger.error(msg);
|
|
134
|
+
reject(new Error(msg));
|
|
135
|
+
}
|
|
130
136
|
});
|
|
131
137
|
process1.on('exit', (code)=>{
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
if (!isResolved) {
|
|
139
|
+
isResolved = true;
|
|
140
|
+
const msg = `Port forward for ${resource} exited with code ${code}`;
|
|
141
|
+
logger.verbose(msg);
|
|
142
|
+
reject(new Error(msg));
|
|
143
|
+
}
|
|
134
144
|
});
|
|
135
145
|
});
|
|
136
146
|
const port = await connected;
|
|
@@ -165,6 +175,13 @@ export function getExternalIP(namespace, serviceName) {
|
|
|
165
175
|
});
|
|
166
176
|
return promise;
|
|
167
177
|
}
|
|
178
|
+
export function startPortForwardForPrometeheus(namespace) {
|
|
179
|
+
return startPortForward({
|
|
180
|
+
resource: `svc/${namespace}-prometheus-server`,
|
|
181
|
+
namespace,
|
|
182
|
+
containerPort: 80
|
|
183
|
+
});
|
|
184
|
+
}
|
|
168
185
|
export function startPortForwardForRPC(namespace, index = 0) {
|
|
169
186
|
return startPortForward({
|
|
170
187
|
resource: `pod/${namespace}-rpc-aztec-node-${index}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/end-to-end",
|
|
3
|
-
"version": "4.0.0-nightly.
|
|
3
|
+
"version": "4.0.0-nightly.20260114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -25,43 +25,43 @@
|
|
|
25
25
|
"formatting": "run -T prettier --check ./src && run -T eslint ./src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aztec/accounts": "4.0.0-nightly.
|
|
29
|
-
"@aztec/archiver": "4.0.0-nightly.
|
|
30
|
-
"@aztec/aztec": "4.0.0-nightly.
|
|
31
|
-
"@aztec/aztec-node": "4.0.0-nightly.
|
|
32
|
-
"@aztec/aztec.js": "4.0.0-nightly.
|
|
33
|
-
"@aztec/bb-prover": "4.0.0-nightly.
|
|
34
|
-
"@aztec/bb.js": "4.0.0-nightly.
|
|
35
|
-
"@aztec/blob-client": "4.0.0-nightly.
|
|
36
|
-
"@aztec/blob-lib": "4.0.0-nightly.
|
|
37
|
-
"@aztec/bot": "4.0.0-nightly.
|
|
38
|
-
"@aztec/cli": "4.0.0-nightly.
|
|
39
|
-
"@aztec/constants": "4.0.0-nightly.
|
|
40
|
-
"@aztec/entrypoints": "4.0.0-nightly.
|
|
41
|
-
"@aztec/epoch-cache": "4.0.0-nightly.
|
|
42
|
-
"@aztec/ethereum": "4.0.0-nightly.
|
|
43
|
-
"@aztec/foundation": "4.0.0-nightly.
|
|
44
|
-
"@aztec/kv-store": "4.0.0-nightly.
|
|
45
|
-
"@aztec/l1-artifacts": "4.0.0-nightly.
|
|
46
|
-
"@aztec/merkle-tree": "4.0.0-nightly.
|
|
47
|
-
"@aztec/node-keystore": "4.0.0-nightly.
|
|
48
|
-
"@aztec/noir-contracts.js": "4.0.0-nightly.
|
|
49
|
-
"@aztec/noir-noirc_abi": "4.0.0-nightly.
|
|
50
|
-
"@aztec/noir-protocol-circuits-types": "4.0.0-nightly.
|
|
51
|
-
"@aztec/noir-test-contracts.js": "4.0.0-nightly.
|
|
52
|
-
"@aztec/p2p": "4.0.0-nightly.
|
|
53
|
-
"@aztec/protocol-contracts": "4.0.0-nightly.
|
|
54
|
-
"@aztec/prover-client": "4.0.0-nightly.
|
|
55
|
-
"@aztec/prover-node": "4.0.0-nightly.
|
|
56
|
-
"@aztec/pxe": "4.0.0-nightly.
|
|
57
|
-
"@aztec/sequencer-client": "4.0.0-nightly.
|
|
58
|
-
"@aztec/simulator": "4.0.0-nightly.
|
|
59
|
-
"@aztec/slasher": "4.0.0-nightly.
|
|
60
|
-
"@aztec/stdlib": "4.0.0-nightly.
|
|
61
|
-
"@aztec/telemetry-client": "4.0.0-nightly.
|
|
62
|
-
"@aztec/test-wallet": "4.0.0-nightly.
|
|
63
|
-
"@aztec/validator-client": "4.0.0-nightly.
|
|
64
|
-
"@aztec/world-state": "4.0.0-nightly.
|
|
28
|
+
"@aztec/accounts": "4.0.0-nightly.20260114",
|
|
29
|
+
"@aztec/archiver": "4.0.0-nightly.20260114",
|
|
30
|
+
"@aztec/aztec": "4.0.0-nightly.20260114",
|
|
31
|
+
"@aztec/aztec-node": "4.0.0-nightly.20260114",
|
|
32
|
+
"@aztec/aztec.js": "4.0.0-nightly.20260114",
|
|
33
|
+
"@aztec/bb-prover": "4.0.0-nightly.20260114",
|
|
34
|
+
"@aztec/bb.js": "4.0.0-nightly.20260114",
|
|
35
|
+
"@aztec/blob-client": "4.0.0-nightly.20260114",
|
|
36
|
+
"@aztec/blob-lib": "4.0.0-nightly.20260114",
|
|
37
|
+
"@aztec/bot": "4.0.0-nightly.20260114",
|
|
38
|
+
"@aztec/cli": "4.0.0-nightly.20260114",
|
|
39
|
+
"@aztec/constants": "4.0.0-nightly.20260114",
|
|
40
|
+
"@aztec/entrypoints": "4.0.0-nightly.20260114",
|
|
41
|
+
"@aztec/epoch-cache": "4.0.0-nightly.20260114",
|
|
42
|
+
"@aztec/ethereum": "4.0.0-nightly.20260114",
|
|
43
|
+
"@aztec/foundation": "4.0.0-nightly.20260114",
|
|
44
|
+
"@aztec/kv-store": "4.0.0-nightly.20260114",
|
|
45
|
+
"@aztec/l1-artifacts": "4.0.0-nightly.20260114",
|
|
46
|
+
"@aztec/merkle-tree": "4.0.0-nightly.20260114",
|
|
47
|
+
"@aztec/node-keystore": "4.0.0-nightly.20260114",
|
|
48
|
+
"@aztec/noir-contracts.js": "4.0.0-nightly.20260114",
|
|
49
|
+
"@aztec/noir-noirc_abi": "4.0.0-nightly.20260114",
|
|
50
|
+
"@aztec/noir-protocol-circuits-types": "4.0.0-nightly.20260114",
|
|
51
|
+
"@aztec/noir-test-contracts.js": "4.0.0-nightly.20260114",
|
|
52
|
+
"@aztec/p2p": "4.0.0-nightly.20260114",
|
|
53
|
+
"@aztec/protocol-contracts": "4.0.0-nightly.20260114",
|
|
54
|
+
"@aztec/prover-client": "4.0.0-nightly.20260114",
|
|
55
|
+
"@aztec/prover-node": "4.0.0-nightly.20260114",
|
|
56
|
+
"@aztec/pxe": "4.0.0-nightly.20260114",
|
|
57
|
+
"@aztec/sequencer-client": "4.0.0-nightly.20260114",
|
|
58
|
+
"@aztec/simulator": "4.0.0-nightly.20260114",
|
|
59
|
+
"@aztec/slasher": "4.0.0-nightly.20260114",
|
|
60
|
+
"@aztec/stdlib": "4.0.0-nightly.20260114",
|
|
61
|
+
"@aztec/telemetry-client": "4.0.0-nightly.20260114",
|
|
62
|
+
"@aztec/test-wallet": "4.0.0-nightly.20260114",
|
|
63
|
+
"@aztec/validator-client": "4.0.0-nightly.20260114",
|
|
64
|
+
"@aztec/world-state": "4.0.0-nightly.20260114",
|
|
65
65
|
"@iarna/toml": "^2.2.5",
|
|
66
66
|
"@jest/globals": "^30.0.0",
|
|
67
67
|
"@noble/curves": "=1.0.0",
|
|
@@ -29,12 +29,7 @@ import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
|
29
29
|
import { TestWallet } from '@aztec/test-wallet/server';
|
|
30
30
|
|
|
31
31
|
import { MNEMONIC } from '../../fixtures/fixtures.js';
|
|
32
|
-
import {
|
|
33
|
-
type ISnapshotManager,
|
|
34
|
-
type SubsystemsContext,
|
|
35
|
-
createSnapshotManager,
|
|
36
|
-
deployAccounts,
|
|
37
|
-
} from '../../fixtures/snapshot_manager.js';
|
|
32
|
+
import { type SubsystemsContext, deployAccounts, setupFromFresh, teardown } from '../../fixtures/snapshot_manager.js';
|
|
38
33
|
import { mintTokensToPrivate } from '../../fixtures/token_utils.js';
|
|
39
34
|
import { type SetupOptions, setupSponsoredFPC } from '../../fixtures/utils.js';
|
|
40
35
|
import { CrossChainTestHarness } from '../../shared/cross_chain_test_harness.js';
|
|
@@ -45,15 +40,13 @@ import {
|
|
|
45
40
|
import { ProxyLogger } from './benchmark.js';
|
|
46
41
|
import { type ClientFlowsConfig, FULL_FLOWS_CONFIG, KEY_FLOWS_CONFIG } from './config.js';
|
|
47
42
|
|
|
48
|
-
const {
|
|
43
|
+
const { BENCHMARK_CONFIG } = process.env;
|
|
49
44
|
|
|
50
45
|
export type AccountType = 'ecdsar1' | 'schnorr';
|
|
51
46
|
export type FeePaymentMethodGetter = (wallet: Wallet, sender: AztecAddress) => Promise<FeePaymentMethod | undefined>;
|
|
52
47
|
export type BenchmarkingFeePaymentMethod = 'bridged_fee_juice' | 'private_fpc' | 'sponsored_fpc' | 'fee_juice';
|
|
53
48
|
|
|
54
49
|
export class ClientFlowsBenchmark {
|
|
55
|
-
private snapshotManager: ISnapshotManager;
|
|
56
|
-
|
|
57
50
|
public logger: Logger;
|
|
58
51
|
public aztecNode!: AztecNode;
|
|
59
52
|
public cheatCodes!: CheatCodes;
|
|
@@ -125,33 +118,32 @@ export class ClientFlowsBenchmark {
|
|
|
125
118
|
public config: ClientFlowsConfig;
|
|
126
119
|
|
|
127
120
|
private proxyLogger: ProxyLogger;
|
|
121
|
+
private setupOptions: Partial<SetupOptions & DeployAztecL1ContractsArgs>;
|
|
128
122
|
|
|
129
123
|
constructor(testName?: string, setupOptions: Partial<SetupOptions & DeployAztecL1ContractsArgs> = {}) {
|
|
130
124
|
this.logger = createLogger(`bench:client_flows${testName ? `:${testName}` : ''}`);
|
|
131
|
-
this.
|
|
132
|
-
`bench_client_flows${testName ? `/${testName}` : ''}`,
|
|
133
|
-
dataPath,
|
|
134
|
-
{ startProverNode: true, ...setupOptions },
|
|
135
|
-
{ ...setupOptions },
|
|
136
|
-
);
|
|
125
|
+
this.setupOptions = { startProverNode: true, ...setupOptions };
|
|
137
126
|
this.config = BENCHMARK_CONFIG === 'key_flows' ? KEY_FLOWS_CONFIG : FULL_FLOWS_CONFIG;
|
|
138
127
|
ProxyLogger.create();
|
|
139
128
|
this.proxyLogger = ProxyLogger.getInstance();
|
|
140
129
|
}
|
|
141
130
|
|
|
142
131
|
async setup() {
|
|
143
|
-
|
|
144
|
-
await
|
|
132
|
+
this.logger.info('Setting up subsystems from fresh');
|
|
133
|
+
this.context = await setupFromFresh(this.logger, this.setupOptions, this.setupOptions);
|
|
134
|
+
await this.applyBaseSetup();
|
|
145
135
|
|
|
146
|
-
|
|
147
|
-
|
|
136
|
+
await this.context.aztecNode.setConfig({ feeRecipient: this.sequencerAddress, coinbase: this.coinbase });
|
|
137
|
+
|
|
138
|
+
const rollupContract = RollupContract.getFromConfig(this.context.aztecNodeConfig);
|
|
139
|
+
this.chainMonitor = new ChainMonitor(rollupContract, this.context.dateProvider, this.logger, 200).start();
|
|
148
140
|
|
|
149
141
|
return this;
|
|
150
142
|
}
|
|
151
143
|
|
|
152
144
|
async teardown() {
|
|
153
145
|
await this.chainMonitor.stop();
|
|
154
|
-
await this.
|
|
146
|
+
await teardown(this.context);
|
|
155
147
|
}
|
|
156
148
|
|
|
157
149
|
async mintAndBridgeFeeJuice(address: AztecAddress) {
|
|
@@ -193,157 +185,120 @@ export class ClientFlowsBenchmark {
|
|
|
193
185
|
}
|
|
194
186
|
}
|
|
195
187
|
|
|
196
|
-
public async
|
|
197
|
-
await this.
|
|
198
|
-
await this.
|
|
188
|
+
public async applyBaseSetup() {
|
|
189
|
+
await this.applyInitialAccounts();
|
|
190
|
+
await this.applySetupFeeJuice();
|
|
199
191
|
}
|
|
200
192
|
|
|
201
|
-
async
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
193
|
+
async applyInitialAccounts() {
|
|
194
|
+
this.logger.info('Applying initial accounts setup');
|
|
195
|
+
const { deployedAccounts } = await deployAccounts(
|
|
196
|
+
2,
|
|
197
|
+
this.logger,
|
|
198
|
+
)({
|
|
199
|
+
wallet: this.context.wallet,
|
|
200
|
+
initialFundedAccounts: this.context.initialFundedAccounts,
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
const [{ address: adminAddress }, { address: sequencerAddress }] = deployedAccounts;
|
|
204
|
+
|
|
205
|
+
this.adminWallet = this.context.wallet;
|
|
206
|
+
this.aztecNode = this.context.aztecNode;
|
|
207
|
+
this.cheatCodes = this.context.cheatCodes;
|
|
208
|
+
|
|
209
|
+
this.adminAddress = adminAddress;
|
|
210
|
+
this.sequencerAddress = sequencerAddress;
|
|
211
|
+
|
|
212
|
+
const canonicalFeeJuice = await getCanonicalFeeJuice();
|
|
213
|
+
this.feeJuiceContract = FeeJuiceContract.at(canonicalFeeJuice.address, this.adminWallet);
|
|
214
|
+
this.coinbase = EthAddress.random();
|
|
215
|
+
|
|
216
|
+
const userPXEConfig = getPXEConfig();
|
|
217
|
+
const userPXEConfigWithContracts = {
|
|
218
|
+
...userPXEConfig,
|
|
219
|
+
proverEnabled: this.realProofs,
|
|
220
|
+
} as PXEConfig;
|
|
221
|
+
|
|
222
|
+
this.userWallet = await TestWallet.create(this.aztecNode, userPXEConfigWithContracts, {
|
|
223
|
+
loggers: {
|
|
224
|
+
prover: this.proxyLogger.createLogger('pxe:bb:wasm:bundle:proxied'),
|
|
231
225
|
},
|
|
232
|
-
);
|
|
226
|
+
});
|
|
233
227
|
}
|
|
234
228
|
|
|
235
|
-
async
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
aztecNodeAdmin: context.aztecNode,
|
|
247
|
-
l1Client: context.deployL1ContractsValues.l1Client,
|
|
248
|
-
wallet: this.adminWallet,
|
|
249
|
-
logger: this.logger,
|
|
250
|
-
});
|
|
251
|
-
},
|
|
252
|
-
);
|
|
229
|
+
async applySetupFeeJuice() {
|
|
230
|
+
this.logger.info('Applying fee juice setup');
|
|
231
|
+
this.feeJuiceContract = FeeJuiceContract.at(ProtocolContractAddress.FeeJuice, this.adminWallet);
|
|
232
|
+
|
|
233
|
+
this.feeJuiceBridgeTestHarness = await FeeJuicePortalTestingHarnessFactory.create({
|
|
234
|
+
aztecNode: this.context.aztecNode,
|
|
235
|
+
aztecNodeAdmin: this.context.aztecNode,
|
|
236
|
+
l1Client: this.context.deployL1ContractsValues.l1Client,
|
|
237
|
+
wallet: this.adminWallet,
|
|
238
|
+
logger: this.logger,
|
|
239
|
+
});
|
|
253
240
|
}
|
|
254
241
|
|
|
255
|
-
async
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
return { bananaCoinAddress: bananaCoin.address, bananaCoinInstance };
|
|
270
|
-
},
|
|
271
|
-
({ bananaCoinAddress, bananaCoinInstance }) => {
|
|
272
|
-
this.bananaCoin = BananaCoin.at(bananaCoinAddress, this.adminWallet);
|
|
273
|
-
this.bananaCoinInstance = bananaCoinInstance;
|
|
274
|
-
return Promise.resolve();
|
|
275
|
-
},
|
|
276
|
-
);
|
|
242
|
+
async applyDeployBananaToken() {
|
|
243
|
+
this.logger.info('Applying banana token deployment');
|
|
244
|
+
const { contract: bananaCoin, instance: bananaCoinInstance } = await BananaCoin.deploy(
|
|
245
|
+
this.adminWallet,
|
|
246
|
+
this.adminAddress,
|
|
247
|
+
'BC',
|
|
248
|
+
'BC',
|
|
249
|
+
18n,
|
|
250
|
+
)
|
|
251
|
+
.send({ from: this.adminAddress })
|
|
252
|
+
.wait();
|
|
253
|
+
this.logger.info(`BananaCoin deployed at ${bananaCoin.address}`);
|
|
254
|
+
this.bananaCoin = bananaCoin;
|
|
255
|
+
this.bananaCoinInstance = bananaCoinInstance;
|
|
277
256
|
}
|
|
278
257
|
|
|
279
|
-
async
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return { candyBarCoinAddress: candyBarCoin.address, candyBarCoinInstance };
|
|
294
|
-
},
|
|
295
|
-
({ candyBarCoinAddress, candyBarCoinInstance }) => {
|
|
296
|
-
this.candyBarCoin = TokenContract.at(candyBarCoinAddress, this.adminWallet);
|
|
297
|
-
this.candyBarCoinInstance = candyBarCoinInstance;
|
|
298
|
-
return Promise.resolve();
|
|
299
|
-
},
|
|
300
|
-
);
|
|
258
|
+
async applyDeployCandyBarToken() {
|
|
259
|
+
this.logger.info('Applying candy bar token deployment');
|
|
260
|
+
const { contract: candyBarCoin, instance: candyBarCoinInstance } = await TokenContract.deploy(
|
|
261
|
+
this.adminWallet,
|
|
262
|
+
this.adminAddress,
|
|
263
|
+
'CBC',
|
|
264
|
+
'CBC',
|
|
265
|
+
18n,
|
|
266
|
+
)
|
|
267
|
+
.send({ from: this.adminAddress })
|
|
268
|
+
.wait();
|
|
269
|
+
this.logger.info(`CandyBarCoin deployed at ${candyBarCoin.address}`);
|
|
270
|
+
this.candyBarCoin = candyBarCoin;
|
|
271
|
+
this.candyBarCoinInstance = candyBarCoinInstance;
|
|
301
272
|
}
|
|
302
273
|
|
|
303
|
-
public async
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
const feeJuiceContract = this.feeJuiceBridgeTestHarness.feeJuice;
|
|
308
|
-
expect((await context.wallet.getContractMetadata(feeJuiceContract.address)).isContractPublished).toBe(true);
|
|
274
|
+
public async applyFPCSetup() {
|
|
275
|
+
this.logger.info('Applying FPC setup');
|
|
276
|
+
const feeJuiceContract = this.feeJuiceBridgeTestHarness.feeJuice;
|
|
277
|
+
expect((await this.context.wallet.getContractMetadata(feeJuiceContract.address)).isContractPublished).toBe(true);
|
|
309
278
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
279
|
+
const bananaCoin = this.bananaCoin;
|
|
280
|
+
const { contract: bananaFPC, instance: bananaFPCInstance } = await FPCContract.deploy(
|
|
281
|
+
this.adminWallet,
|
|
282
|
+
bananaCoin.address,
|
|
283
|
+
this.adminAddress,
|
|
284
|
+
)
|
|
285
|
+
.send({ from: this.adminAddress })
|
|
286
|
+
.wait();
|
|
318
287
|
|
|
319
|
-
|
|
288
|
+
this.logger.info(`BananaPay deployed at ${bananaFPC.address}`);
|
|
320
289
|
|
|
321
|
-
|
|
290
|
+
await this.feeJuiceBridgeTestHarness.bridgeFromL1ToL2(bananaFPC.address, this.adminAddress);
|
|
322
291
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
data => {
|
|
326
|
-
this.bananaFPC = FPCContract.at(data.bananaFPCAddress, this.adminWallet);
|
|
327
|
-
this.bananaFPCInstance = data.bananaFPCInstance;
|
|
328
|
-
return Promise.resolve();
|
|
329
|
-
},
|
|
330
|
-
);
|
|
292
|
+
this.bananaFPC = bananaFPC;
|
|
293
|
+
this.bananaFPCInstance = bananaFPCInstance;
|
|
331
294
|
}
|
|
332
295
|
|
|
333
|
-
async
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
return { sponsoredFPCAddress: sponsoredFPCInstance.address, sponsoredFPCInstance };
|
|
340
|
-
},
|
|
341
|
-
({ sponsoredFPCAddress, sponsoredFPCInstance }) => {
|
|
342
|
-
this.sponsoredFPC = SponsoredFPCContract.at(sponsoredFPCAddress, this.adminWallet);
|
|
343
|
-
this.sponsoredFPCInstance = sponsoredFPCInstance;
|
|
344
|
-
return Promise.resolve();
|
|
345
|
-
},
|
|
346
|
-
);
|
|
296
|
+
async applyDeploySponsoredFPC() {
|
|
297
|
+
this.logger.info('Applying sponsored FPC deployment');
|
|
298
|
+
const sponsoredFPCInstance = await setupSponsoredFPC(this.adminWallet);
|
|
299
|
+
this.logger.info(`SponsoredFPC at ${sponsoredFPCInstance.address}`);
|
|
300
|
+
this.sponsoredFPC = SponsoredFPCContract.at(sponsoredFPCInstance.address, this.adminWallet);
|
|
301
|
+
this.sponsoredFPCInstance = sponsoredFPCInstance;
|
|
347
302
|
}
|
|
348
303
|
|
|
349
304
|
public async createCrossChainTestHarness(owner: AztecAddress) {
|
|
@@ -391,44 +346,31 @@ export class ClientFlowsBenchmark {
|
|
|
391
346
|
return accountManager.address;
|
|
392
347
|
}
|
|
393
348
|
|
|
394
|
-
public async
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
ammInstance,
|
|
420
|
-
liquidityTokenAddress: liquidityToken.address,
|
|
421
|
-
liquidityTokenInstance,
|
|
422
|
-
};
|
|
423
|
-
},
|
|
424
|
-
({ ammAddress, ammInstance, liquidityTokenAddress, liquidityTokenInstance }) => {
|
|
425
|
-
this.liquidityToken = TokenContract.at(liquidityTokenAddress, this.adminWallet);
|
|
426
|
-
this.liquidityTokenInstance = liquidityTokenInstance;
|
|
427
|
-
this.amm = AMMContract.at(ammAddress, this.adminWallet);
|
|
428
|
-
this.ammInstance = ammInstance;
|
|
429
|
-
return Promise.resolve();
|
|
430
|
-
},
|
|
431
|
-
);
|
|
349
|
+
public async applyDeployAmm() {
|
|
350
|
+
this.logger.info('Applying AMM deployment');
|
|
351
|
+
const { contract: liquidityToken, instance: liquidityTokenInstance } = await TokenContract.deploy(
|
|
352
|
+
this.adminWallet,
|
|
353
|
+
this.adminAddress,
|
|
354
|
+
'LPT',
|
|
355
|
+
'LPT',
|
|
356
|
+
18n,
|
|
357
|
+
)
|
|
358
|
+
.send({ from: this.adminAddress })
|
|
359
|
+
.wait();
|
|
360
|
+
const { contract: amm, instance: ammInstance } = await AMMContract.deploy(
|
|
361
|
+
this.adminWallet,
|
|
362
|
+
this.bananaCoin.address,
|
|
363
|
+
this.candyBarCoin.address,
|
|
364
|
+
liquidityToken.address,
|
|
365
|
+
)
|
|
366
|
+
.send({ from: this.adminAddress })
|
|
367
|
+
.wait();
|
|
368
|
+
this.logger.info(`AMM deployed at ${amm.address}`);
|
|
369
|
+
await liquidityToken.methods.set_minter(amm.address, true).send({ from: this.adminAddress }).wait();
|
|
370
|
+
this.liquidityToken = liquidityToken;
|
|
371
|
+
this.liquidityTokenInstance = liquidityTokenInstance;
|
|
372
|
+
this.amm = amm;
|
|
373
|
+
this.ammInstance = ammInstance;
|
|
432
374
|
}
|
|
433
375
|
|
|
434
376
|
public async getBridgedFeeJuicePaymentMethodForWallet(_wallet: Wallet, sender: AztecAddress) {
|