@aztec/entrypoints 3.0.0-nightly.20250923 → 3.0.0-nightly.20250925

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.
@@ -12,7 +12,7 @@ export declare class DefaultAccountEntrypoint implements EntrypointInterface {
12
12
  private chainId;
13
13
  private version;
14
14
  constructor(address: AztecAddress, auth: AuthWitnessProvider, chainId?: number, version?: number);
15
- createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
15
+ createTxExecutionRequest(exec: ExecutionPayload, feeOptions: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
16
16
  private getEntrypointAbi;
17
17
  }
18
18
  //# sourceMappingURL=account_entrypoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account_entrypoint.d.ts","sourceRoot":"","sources":["../src/account_entrypoint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,mBAAmB;IAEhE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAHP,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,MAAyB,EAClC,OAAO,GAAE,MAAwB;IAGrC,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC;IA+C9B,OAAO,CAAC,gBAAgB;CAqGzB"}
1
+ {"version":3,"file":"account_entrypoint.d.ts","sourceRoot":"","sources":["../src/account_entrypoint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,mBAAmB;IAEhE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAHP,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,MAAyB,EAClC,OAAO,GAAE,MAAwB;IAGrC,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC;IA+C9B,OAAO,CAAC,gBAAgB;CAqGzB"}
@@ -17,7 +17,7 @@ import { EncodedCallsForEntrypoint, computeCombinedPayloadHash } from './encodin
17
17
  this.chainId = chainId;
18
18
  this.version = version;
19
19
  }
20
- async createTxExecutionRequest(exec, fee, options) {
20
+ async createTxExecutionRequest(exec, feeOptions, options) {
21
21
  // Initial request with calls, authWitnesses and capsules
22
22
  const { calls, authWitnesses, capsules, extraHashedArgs } = exec;
23
23
  // Global tx options
@@ -25,9 +25,9 @@ import { EncodedCallsForEntrypoint, computeCombinedPayloadHash } from './encodin
25
25
  // Encode the calls for the app
26
26
  const appEncodedCalls = await EncodedCallsForEntrypoint.fromAppExecution(calls, txNonce);
27
27
  // Get the execution payload for the fee, it includes the calls and potentially authWitnesses
28
- const { calls: feeCalls, authWitnesses: feeAuthwitnesses } = await fee.paymentMethod.getExecutionPayload(fee.gasSettings);
28
+ const { calls: feeCalls, authWitnesses: feeAuthwitnesses } = await feeOptions.paymentMethod.getExecutionPayload(feeOptions.gasSettings);
29
29
  // Encode the calls for the fee
30
- const feePayer = await fee.paymentMethod.getFeePayer();
30
+ const feePayer = await feeOptions.paymentMethod.getFeePayer();
31
31
  const isFeePayer = feePayer.equals(this.address);
32
32
  const feeEncodedCalls = await EncodedCallsForEntrypoint.fromFeeCalls(feeCalls, isFeePayer);
33
33
  // Obtain the entrypoint hashed args, built from the app and fee encoded calls
@@ -44,7 +44,7 @@ import { EncodedCallsForEntrypoint, computeCombinedPayloadHash } from './encodin
44
44
  firstCallArgsHash: entrypointHashedArgs.hash,
45
45
  origin: this.address,
46
46
  functionSelector: await FunctionSelector.fromNameAndParameters(abi.name, abi.parameters),
47
- txContext: new TxContext(this.chainId, this.version, fee.gasSettings),
47
+ txContext: new TxContext(this.chainId, this.version, feeOptions.gasSettings),
48
48
  argsOfCalls: [
49
49
  ...appEncodedCalls.hashedArguments,
50
50
  ...feeEncodedCalls.hashedArguments,
@@ -8,6 +8,6 @@ export declare class DefaultEntrypoint implements EntrypointInterface {
8
8
  private chainId;
9
9
  private rollupVersion;
10
10
  constructor(chainId: number, rollupVersion: number);
11
- createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
11
+ createTxExecutionRequest(exec: ExecutionPayload, feeOptions: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
12
12
  }
13
13
  //# sourceMappingURL=default_entrypoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAEzD,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,aAAa;gBADb,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM;IAGzB,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC;CA+B/B"}
1
+ {"version":3,"file":"default_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_entrypoint.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,mBAAmB;IAEzD,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,aAAa;gBADb,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM;IAGzB,wBAAwB,CAC5B,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC;CA+B/B"}
@@ -9,7 +9,7 @@ import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
9
9
  this.chainId = chainId;
10
10
  this.rollupVersion = rollupVersion;
11
11
  }
12
- async createTxExecutionRequest(exec, fee, options) {
12
+ async createTxExecutionRequest(exec, feeOptions, options) {
13
13
  if (options.txNonce || options.cancellable !== undefined) {
14
14
  throw new Error('TxExecutionOptions are not supported in DefaultEntrypoint');
15
15
  }
@@ -27,7 +27,7 @@ import { HashedValues, TxContext, TxExecutionRequest } from '@aztec/stdlib/tx';
27
27
  throw new Error('Public entrypoints are not allowed');
28
28
  }
29
29
  // Assemble the tx request
30
- return new TxExecutionRequest(call.to, call.selector, hashedArguments[0].hash, new TxContext(this.chainId, this.rollupVersion, fee.gasSettings), [
30
+ return new TxExecutionRequest(call.to, call.selector, hashedArguments[0].hash, new TxContext(this.chainId, this.rollupVersion, feeOptions.gasSettings), [
31
31
  ...hashedArguments,
32
32
  ...extraHashedArgs
33
33
  ], authWitnesses, capsules);
@@ -10,7 +10,7 @@ export declare class DefaultMultiCallEntrypoint implements EntrypointInterface {
10
10
  private version;
11
11
  private address;
12
12
  constructor(chainId: number, version: number, address?: AztecAddress);
13
- createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions): Promise<TxExecutionRequest>;
13
+ createTxExecutionRequest(exec: ExecutionPayload, feeOptions: FeeOptions): Promise<TxExecutionRequest>;
14
14
  private getEntrypointAbi;
15
15
  }
16
16
  //# sourceMappingURL=default_multi_call_entrypoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default_multi_call_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_multi_call_entrypoint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAElE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAFP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAA0D;IAGvE,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAkCpG,OAAO,CAAC,gBAAgB;CAwDzB"}
1
+ {"version":3,"file":"default_multi_call_entrypoint.d.ts","sourceRoot":"","sources":["../src/default_multi_call_entrypoint.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IAElE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;gBAFP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAA0D;IAGvE,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAkC3G,OAAO,CAAC,gBAAgB;CAwDzB"}
@@ -14,11 +14,11 @@ import { EncodedCallsForEntrypoint } from './encoding.js';
14
14
  this.version = version;
15
15
  this.address = address;
16
16
  }
17
- async createTxExecutionRequest(exec, fee) {
17
+ async createTxExecutionRequest(exec, feeOptions) {
18
18
  // Initial request with calls, authWitnesses and capsules
19
19
  const { calls, authWitnesses, capsules, extraHashedArgs } = exec;
20
20
  // Get the execution payload for the fee, it includes the calls and potentially authWitnesses
21
- const { calls: feeCalls, authWitnesses: feeAuthwitnesses, extraHashedArgs: feeExtraHashedArgs } = await fee.paymentMethod.getExecutionPayload(fee.gasSettings);
21
+ const { calls: feeCalls, authWitnesses: feeAuthwitnesses, extraHashedArgs: feeExtraHashedArgs } = await feeOptions.paymentMethod.getExecutionPayload(feeOptions.gasSettings);
22
22
  // Encode the calls, including the fee calls
23
23
  // (since this entrypoint does not distinguish between app and fee calls)
24
24
  const encodedCalls = await EncodedCallsForEntrypoint.fromAppExecution(calls.concat(feeCalls));
@@ -32,7 +32,7 @@ import { EncodedCallsForEntrypoint } from './encoding.js';
32
32
  firstCallArgsHash: entrypointHashedArgs.hash,
33
33
  origin: this.address,
34
34
  functionSelector: await FunctionSelector.fromNameAndParameters(abi.name, abi.parameters),
35
- txContext: new TxContext(this.chainId, this.version, fee.gasSettings),
35
+ txContext: new TxContext(this.chainId, this.version, feeOptions.gasSettings),
36
36
  argsOfCalls: [
37
37
  ...encodedCalls.hashedArguments,
38
38
  entrypointHashedArgs,
@@ -26,11 +26,11 @@ export interface EntrypointInterface {
26
26
  /**
27
27
  * Generates an execution request out of set of function calls.
28
28
  * @param exec - The execution intents to be run.
29
- * @param fee - The fee options for the transaction.
29
+ * @param feeOptions - The fee options for the transaction.
30
30
  * @param options - Transaction nonce and whether the transaction is cancellable.
31
31
  * @returns The authenticated transaction execution request.
32
32
  */
33
- createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
33
+ createTxExecutionRequest(exec: ExecutionPayload, feeOptions: FeeOptions, options: TxExecutionOptions): Promise<TxExecutionRequest>;
34
34
  }
35
35
  /** Creates authorization witnesses. */
36
36
  export interface AuthWitnessProvider {
@@ -74,9 +74,10 @@ export type UserFeeOptions = {
74
74
  paymentMethod?: FeePaymentMethod;
75
75
  /** The gas settings */
76
76
  gasSettings?: Partial<FieldsOf<GasSettings>>;
77
- /** Percentage to pad the base fee by, if empty, defaults to 0.5 */
78
- baseFeePadding?: number;
79
- /** Whether to run an initial simulation of the tx with high gas limit to figure out actual gas settings. */
77
+ };
78
+ /** Fee options that can be set for simulation *only* */
79
+ export type SimulationUserFeeOptions = UserFeeOptions & {
80
+ /** Whether to modify the fee settings of the simulation with high gas limit to figure out actual gas settings. */
80
81
  estimateGas?: boolean;
81
82
  /** Percentage to pad the estimated gas limits by, if empty, defaults to 0.1. Only relevant if estimateGas is set. */
82
83
  estimatedGasPadding?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC;AAED,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/D;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACzE;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,oCAAoC;IACpC,aAAa,EAAE,gBAAgB,CAAC;IAChC,uBAAuB;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAGF,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG;IAC3B,oCAAoC;IACpC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7C,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qHAAqH;IACrH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,wBAAwB,CACtB,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAChC;AAED,uCAAuC;AACvC,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/D;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAClC;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACzE;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,oCAAoC;IACpC,aAAa,EAAE,gBAAgB,CAAC;IAChC,uBAAuB;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAGF,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG;IAC3B,oCAAoC;IACpC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;CAC9C,CAAC;AAGF,yDAAyD;AACzD,MAAM,MAAM,wBAAwB,GAAG,cAAc,GAAG;IACtD,kHAAkH;IAClH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qHAAqH;IACrH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -1,2 +1,2 @@
1
- // docs:start:user_fee_options
2
- /** Fee options as set by a user. */ export { }; // docs:end:user_fee_options
1
+ // docs:end:user_fee_options
2
+ /** Fee options that can be set for simulation *only* */ export { };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aztec/entrypoints",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/entrypoints",
4
4
  "description": "Implementation of sample contract entrypoints for the Aztec Network",
5
- "version": "3.0.0-nightly.20250923",
5
+ "version": "3.0.0-nightly.20250925",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  "./account": "./dest/account_entrypoint.js",
@@ -67,10 +67,10 @@
67
67
  ]
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/constants": "3.0.0-nightly.20250923",
71
- "@aztec/foundation": "3.0.0-nightly.20250923",
72
- "@aztec/protocol-contracts": "3.0.0-nightly.20250923",
73
- "@aztec/stdlib": "3.0.0-nightly.20250923",
70
+ "@aztec/constants": "3.0.0-nightly.20250925",
71
+ "@aztec/foundation": "3.0.0-nightly.20250925",
72
+ "@aztec/protocol-contracts": "3.0.0-nightly.20250925",
73
+ "@aztec/stdlib": "3.0.0-nightly.20250925",
74
74
  "tslib": "^2.4.0"
75
75
  },
76
76
  "devDependencies": {
@@ -22,7 +22,7 @@ export class DefaultAccountEntrypoint implements EntrypointInterface {
22
22
 
23
23
  async createTxExecutionRequest(
24
24
  exec: ExecutionPayload,
25
- fee: FeeOptions,
25
+ feeOptions: FeeOptions,
26
26
  options: TxExecutionOptions,
27
27
  ): Promise<TxExecutionRequest> {
28
28
  // Initial request with calls, authWitnesses and capsules
@@ -32,11 +32,11 @@ export class DefaultAccountEntrypoint implements EntrypointInterface {
32
32
  // Encode the calls for the app
33
33
  const appEncodedCalls = await EncodedCallsForEntrypoint.fromAppExecution(calls, txNonce);
34
34
  // Get the execution payload for the fee, it includes the calls and potentially authWitnesses
35
- const { calls: feeCalls, authWitnesses: feeAuthwitnesses } = await fee.paymentMethod.getExecutionPayload(
36
- fee.gasSettings,
35
+ const { calls: feeCalls, authWitnesses: feeAuthwitnesses } = await feeOptions.paymentMethod.getExecutionPayload(
36
+ feeOptions.gasSettings,
37
37
  );
38
38
  // Encode the calls for the fee
39
- const feePayer = await fee.paymentMethod.getFeePayer();
39
+ const feePayer = await feeOptions.paymentMethod.getFeePayer();
40
40
  const isFeePayer = feePayer.equals(this.address);
41
41
  const feeEncodedCalls = await EncodedCallsForEntrypoint.fromFeeCalls(feeCalls, isFeePayer);
42
42
 
@@ -56,7 +56,7 @@ export class DefaultAccountEntrypoint implements EntrypointInterface {
56
56
  firstCallArgsHash: entrypointHashedArgs.hash,
57
57
  origin: this.address,
58
58
  functionSelector: await FunctionSelector.fromNameAndParameters(abi.name, abi.parameters),
59
- txContext: new TxContext(this.chainId, this.version, fee.gasSettings),
59
+ txContext: new TxContext(this.chainId, this.version, feeOptions.gasSettings),
60
60
  argsOfCalls: [
61
61
  ...appEncodedCalls.hashedArguments,
62
62
  ...feeEncodedCalls.hashedArguments,
@@ -15,7 +15,7 @@ export class DefaultEntrypoint implements EntrypointInterface {
15
15
 
16
16
  async createTxExecutionRequest(
17
17
  exec: ExecutionPayload,
18
- fee: FeeOptions,
18
+ feeOptions: FeeOptions,
19
19
  options: TxExecutionOptions,
20
20
  ): Promise<TxExecutionRequest> {
21
21
  if (options.txNonce || options.cancellable !== undefined) {
@@ -42,7 +42,7 @@ export class DefaultEntrypoint implements EntrypointInterface {
42
42
  call.to,
43
43
  call.selector,
44
44
  hashedArguments[0].hash,
45
- new TxContext(this.chainId, this.rollupVersion, fee.gasSettings),
45
+ new TxContext(this.chainId, this.rollupVersion, feeOptions.gasSettings),
46
46
  [...hashedArguments, ...extraHashedArgs],
47
47
  authWitnesses,
48
48
  capsules,
@@ -18,7 +18,7 @@ export class DefaultMultiCallEntrypoint implements EntrypointInterface {
18
18
  private address: AztecAddress = ProtocolContractAddress.MultiCallEntrypoint,
19
19
  ) {}
20
20
 
21
- async createTxExecutionRequest(exec: ExecutionPayload, fee: FeeOptions): Promise<TxExecutionRequest> {
21
+ async createTxExecutionRequest(exec: ExecutionPayload, feeOptions: FeeOptions): Promise<TxExecutionRequest> {
22
22
  // Initial request with calls, authWitnesses and capsules
23
23
  const { calls, authWitnesses, capsules, extraHashedArgs } = exec;
24
24
 
@@ -27,7 +27,7 @@ export class DefaultMultiCallEntrypoint implements EntrypointInterface {
27
27
  calls: feeCalls,
28
28
  authWitnesses: feeAuthwitnesses,
29
29
  extraHashedArgs: feeExtraHashedArgs,
30
- } = await fee.paymentMethod.getExecutionPayload(fee.gasSettings);
30
+ } = await feeOptions.paymentMethod.getExecutionPayload(feeOptions.gasSettings);
31
31
 
32
32
  // Encode the calls, including the fee calls
33
33
  // (since this entrypoint does not distinguish between app and fee calls)
@@ -42,7 +42,7 @@ export class DefaultMultiCallEntrypoint implements EntrypointInterface {
42
42
  firstCallArgsHash: entrypointHashedArgs.hash,
43
43
  origin: this.address,
44
44
  functionSelector: await FunctionSelector.fromNameAndParameters(abi.name, abi.parameters),
45
- txContext: new TxContext(this.chainId, this.version, fee.gasSettings),
45
+ txContext: new TxContext(this.chainId, this.version, feeOptions.gasSettings),
46
46
  argsOfCalls: [...encodedCalls.hashedArguments, entrypointHashedArgs, ...extraHashedArgs, ...feeExtraHashedArgs],
47
47
  authWitnesses: [...feeAuthwitnesses, ...authWitnesses],
48
48
  capsules,
package/src/interfaces.ts CHANGED
@@ -29,13 +29,13 @@ export interface EntrypointInterface {
29
29
  /**
30
30
  * Generates an execution request out of set of function calls.
31
31
  * @param exec - The execution intents to be run.
32
- * @param fee - The fee options for the transaction.
32
+ * @param feeOptions - The fee options for the transaction.
33
33
  * @param options - Transaction nonce and whether the transaction is cancellable.
34
34
  * @returns The authenticated transaction execution request.
35
35
  */
36
36
  createTxExecutionRequest(
37
37
  exec: ExecutionPayload,
38
- fee: FeeOptions,
38
+ feeOptions: FeeOptions,
39
39
  options: TxExecutionOptions,
40
40
  ): Promise<TxExecutionRequest>;
41
41
  }
@@ -86,11 +86,13 @@ export type UserFeeOptions = {
86
86
  paymentMethod?: FeePaymentMethod;
87
87
  /** The gas settings */
88
88
  gasSettings?: Partial<FieldsOf<GasSettings>>;
89
- /** Percentage to pad the base fee by, if empty, defaults to 0.5 */
90
- baseFeePadding?: number;
91
- /** Whether to run an initial simulation of the tx with high gas limit to figure out actual gas settings. */
89
+ };
90
+ // docs:end:user_fee_options
91
+
92
+ /** Fee options that can be set for simulation *only* */
93
+ export type SimulationUserFeeOptions = UserFeeOptions & {
94
+ /** Whether to modify the fee settings of the simulation with high gas limit to figure out actual gas settings. */
92
95
  estimateGas?: boolean;
93
96
  /** Percentage to pad the estimated gas limits by, if empty, defaults to 0.1. Only relevant if estimateGas is set. */
94
97
  estimatedGasPadding?: number;
95
98
  };
96
- // docs:end:user_fee_options