Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
type AccountWallet,
AztecAddress,
type AztecNode,
FeeJuicePaymentMethod,
FeeJuicePaymentMethodWithClaim,
type FeePaymentMethod,
type Logger,
Expand Down Expand Up @@ -52,7 +53,7 @@ const { E2E_DATA_PATH: dataPath, BENCHMARK_CONFIG } = process.env;

export type AccountType = 'ecdsar1' | 'schnorr';
export type FeePaymentMethodGetter = (wallet: Wallet) => Promise<FeePaymentMethod>;
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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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()));
}
}
4 changes: 2 additions & 2 deletions yarn-project/end-to-end/src/bench/client_flows/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
},
};
Expand Down