diff --git a/yarn-project/end-to-end/src/bench/client_flows/client_flows_benchmark.ts b/yarn-project/end-to-end/src/bench/client_flows/client_flows_benchmark.ts index fe7b41c2a56e..ced9418e84ba 100644 --- a/yarn-project/end-to-end/src/bench/client_flows/client_flows_benchmark.ts +++ b/yarn-project/end-to-end/src/bench/client_flows/client_flows_benchmark.ts @@ -4,6 +4,7 @@ import { type AccountWallet, AztecAddress, type AztecNode, + FeeJuicePaymentMethod, FeeJuicePaymentMethodWithClaim, type FeePaymentMethod, type Logger, @@ -52,7 +53,7 @@ const { E2E_DATA_PATH: dataPath, BENCHMARK_CONFIG } = process.env; export type AccountType = 'ecdsar1' | 'schnorr'; export type FeePaymentMethodGetter = (wallet: Wallet) => Promise; -export type BenchmarkingFeePaymentMethod = 'bridged_fee_juice' | 'private_fpc' | 'sponsored_fpc'; +export type BenchmarkingFeePaymentMethod = 'bridged_fee_juice' | 'private_fpc' | 'sponsored_fpc' | 'fee_juice'; export class ClientFlowsBenchmark { private snapshotManager: ISnapshotManager; @@ -111,6 +112,11 @@ export class ClientFlowsBenchmark { forWallet: this.getSponsoredFPCPaymentMethodForWallet.bind(this), circuits: 2, // Sponsored FPC sponsor_unconditionally + kernel inner }, + // eslint-disable-next-line camelcase + fee_juice: { + forWallet: this.getFeeJuicePaymentMethodForWallet.bind(this), + circuits: 0, + }, }; public config: ClientFlowsConfig; @@ -394,4 +400,8 @@ export class ClientFlowsBenchmark { public getSponsoredFPCPaymentMethodForWallet(_wallet: Wallet) { return Promise.resolve(new SponsoredFeePaymentMethod(this.sponsoredFPC.address)); } + + public getFeeJuicePaymentMethodForWallet(wallet: Wallet) { + return Promise.resolve(new FeeJuicePaymentMethod(wallet.getAddress())); + } } diff --git a/yarn-project/end-to-end/src/bench/client_flows/config.ts b/yarn-project/end-to-end/src/bench/client_flows/config.ts index eaebb286eeaa..d34b376a0018 100644 --- a/yarn-project/end-to-end/src/bench/client_flows/config.ts +++ b/yarn-project/end-to-end/src/bench/client_flows/config.ts @@ -26,8 +26,8 @@ export const KEY_FLOWS_CONFIG: ClientFlowsConfig = { feePaymentMethods: ['sponsored_fpc'], }, transfers: { - accounts: ['ecdsar1'], - feePaymentMethods: ['sponsored_fpc'], + accounts: ['ecdsar1', 'schnorr'], + feePaymentMethods: ['sponsored_fpc', 'fee_juice'], recursions: [1], }, };