@aztec/stdlib 1.0.0-nightly.20250605 → 1.0.0-nightly.20250607

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.
Files changed (89) hide show
  1. package/dest/avm/avm.d.ts +304 -406
  2. package/dest/avm/avm.d.ts.map +1 -1
  3. package/dest/avm/avm_accumulated_data.d.ts +0 -8
  4. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  5. package/dest/avm/avm_circuit_public_inputs.d.ts +60 -90
  6. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  7. package/dest/avm/avm_proving_request.d.ts +184 -251
  8. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  9. package/dest/avm/message_pack.d.ts.map +1 -1
  10. package/dest/avm/message_pack.js +2 -1
  11. package/dest/block/l2_block_code_to_purge.js +1 -1
  12. package/dest/block/l2_block_source.d.ts +2 -0
  13. package/dest/block/l2_block_source.d.ts.map +1 -1
  14. package/dest/config/node-rpc-config.d.ts +2 -0
  15. package/dest/config/node-rpc-config.d.ts.map +1 -1
  16. package/dest/config/node-rpc-config.js +5 -0
  17. package/dest/fees/transaction_fee.js +3 -3
  18. package/dest/gas/gas.js +1 -1
  19. package/dest/gas/gas_fees.d.ts +15 -14
  20. package/dest/gas/gas_fees.d.ts.map +1 -1
  21. package/dest/gas/gas_fees.js +17 -18
  22. package/dest/gas/gas_settings.d.ts +24 -24
  23. package/dest/gas/gas_settings.d.ts.map +1 -1
  24. package/dest/gas/gas_settings.js +1 -1
  25. package/dest/hash/hash.d.ts +2 -3
  26. package/dest/hash/hash.d.ts.map +1 -1
  27. package/dest/hash/hash.js +3 -4
  28. package/dest/interfaces/archiver.d.ts.map +1 -1
  29. package/dest/interfaces/archiver.js +1 -0
  30. package/dest/interfaces/proving-job.d.ts +184 -251
  31. package/dest/interfaces/proving-job.d.ts.map +1 -1
  32. package/dest/interfaces/server_circuit_prover.d.ts +4 -0
  33. package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
  34. package/dest/interfaces/service.d.ts +1 -2
  35. package/dest/interfaces/service.d.ts.map +1 -1
  36. package/dest/interfaces/service.js +0 -7
  37. package/dest/kernel/private_accumulated_data.d.ts +3 -3
  38. package/dest/kernel/private_accumulated_data.d.ts.map +1 -1
  39. package/dest/kernel/private_accumulated_data.js +3 -3
  40. package/dest/kernel/private_circuit_public_inputs.d.ts +4 -4
  41. package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
  42. package/dest/kernel/private_circuit_public_inputs.js +4 -4
  43. package/dest/kernel/private_to_avm_accumulated_data.d.ts +0 -8
  44. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  45. package/dest/messaging/l2_to_l1_message.d.ts +108 -16
  46. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  47. package/dest/messaging/l2_to_l1_message.js +76 -37
  48. package/dest/note/extended_note.d.ts +8 -8
  49. package/dest/note/extended_note.d.ts.map +1 -1
  50. package/dest/note/extended_note.js +9 -9
  51. package/dest/tests/factories.d.ts +1 -2
  52. package/dest/tests/factories.d.ts.map +1 -1
  53. package/dest/tests/factories.js +11 -8
  54. package/dest/tests/mocks.d.ts +1 -1
  55. package/dest/tests/mocks.d.ts.map +1 -1
  56. package/dest/tests/mocks.js +2 -2
  57. package/dest/tx/global_variables.d.ts +12 -12
  58. package/dest/tx/global_variables.js +2 -2
  59. package/dest/tx/proposed_block_header.d.ts +2 -2
  60. package/dest/tx/proposed_block_header.js +1 -1
  61. package/dest/tx/tx_context.d.ts +32 -32
  62. package/dest/types/shared.d.ts +4 -0
  63. package/dest/types/shared.d.ts.map +1 -1
  64. package/dest/zkpassport/index.d.ts +31 -0
  65. package/dest/zkpassport/index.d.ts.map +1 -0
  66. package/dest/zkpassport/index.js +81 -0
  67. package/package.json +9 -8
  68. package/src/avm/message_pack.ts +1 -0
  69. package/src/block/l2_block_code_to_purge.ts +1 -1
  70. package/src/block/l2_block_source.ts +3 -0
  71. package/src/config/node-rpc-config.ts +7 -0
  72. package/src/fees/transaction_fee.ts +5 -5
  73. package/src/gas/gas.ts +1 -1
  74. package/src/gas/gas_fees.ts +27 -23
  75. package/src/gas/gas_settings.ts +1 -5
  76. package/src/hash/hash.ts +3 -4
  77. package/src/interfaces/archiver.ts +1 -0
  78. package/src/interfaces/server_circuit_prover.ts +5 -0
  79. package/src/interfaces/service.ts +1 -11
  80. package/src/kernel/private_accumulated_data.ts +4 -4
  81. package/src/kernel/private_circuit_public_inputs.ts +5 -5
  82. package/src/messaging/l2_to_l1_message.ts +88 -39
  83. package/src/note/extended_note.ts +8 -8
  84. package/src/tests/factories.ts +13 -9
  85. package/src/tests/mocks.ts +2 -2
  86. package/src/tx/global_variables.ts +2 -2
  87. package/src/tx/proposed_block_header.ts +1 -1
  88. package/src/types/shared.ts +5 -0
  89. package/src/zkpassport/index.ts +115 -0
@@ -1 +1 @@
1
- {"version":3,"file":"avm_proving_request.d.ts","sourceRoot":"","sources":["../../src/avm/avm_proving_request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"message_pack.d.ts","sourceRoot":"","sources":["../../src/avm/message_pack.ts"],"names":[],"mappings":"AAQA,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CASzD"}
1
+ {"version":3,"file":"message_pack.d.ts","sourceRoot":"","sources":["../../src/avm/message_pack.ts"],"names":[],"mappings":"AAQA,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAUzD"}
@@ -9,7 +9,8 @@ export function serializeWithMessagePack(obj) {
9
9
  // always encode JS objects as MessagePack maps
10
10
  // this makes it compatible with other MessagePack decoders
11
11
  useRecords: false,
12
- int64AsType: 'bigint'
12
+ int64AsType: 'bigint',
13
+ largeBigIntToString: true
13
14
  });
14
15
  return encoder.encode(obj);
15
16
  }
@@ -47,5 +47,5 @@ import { StateReference } from '../tx/state_reference.js';
47
47
  * If blockNumber is undefined, it will be set to seed + 2.
48
48
  * @returns Global variables.
49
49
  */ export function makeGlobalVariables(seed = 1, blockNumber = undefined, slotNumber = undefined) {
50
- return new GlobalVariables(new Fr(seed), new Fr(seed + 1), new Fr(blockNumber ?? seed + 2), new Fr(slotNumber ?? seed + 3), new Fr(seed + 4), EthAddress.fromField(new Fr(seed + 5)), AztecAddress.fromField(new Fr(seed + 6)), new GasFees(new Fr(seed + 7), new Fr(seed + 8)));
50
+ return new GlobalVariables(new Fr(seed), new Fr(seed + 1), new Fr(blockNumber ?? seed + 2), new Fr(slotNumber ?? seed + 3), new Fr(seed + 4), EthAddress.fromField(new Fr(seed + 5)), AztecAddress.fromField(new Fr(seed + 6)), new GasFees(seed + 7, seed + 8));
51
51
  }
@@ -99,6 +99,8 @@ export interface L2BlockSource {
99
99
  * Returns the rollup constants for the current chain.
100
100
  */
101
101
  getL1Constants(): Promise<L1RollupConstants>;
102
+ /** Latest synced L1 timestamp. */
103
+ getL1Timestamp(): Promise<bigint>;
102
104
  /** Force a sync. */
103
105
  syncImmediate(): Promise<void>;
104
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"l2_block_source.d.ts","sourceRoot":"","sources":["../../src/block/l2_block_source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,gBAAgB,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAExC;;;OAGG;IACH,kBAAkB,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE1C;;;OAGG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAElC;;;OAGG;IACH,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAExC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO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IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzE,CAAC,CAAC;AACH,MAAM,WAAW,yBAA0B,SAAQ,aAAa,EAAE,eAAe;CAAG;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE3D,4BAA4B;AAC5B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAEnD,6CAA6C;AAC7C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,6BAA6B;AAC7B,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAKtE;AAGD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;IASnB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIK,CAAC;AAE/B,oBAAY,mBAAmB;IAC7B,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;CAChC;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,iBAAiB,GAAG,eAAe,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -3,5 +3,7 @@ export declare const nodeRpcConfigMappings: ConfigMappingsType<NodeRPCConfig>;
3
3
  export type NodeRPCConfig = {
4
4
  /** Maximum gas limit for public tx simulation in the node on `simulatePublicCalls`. */
5
5
  rpcSimulatePublicMaxGasLimit: number;
6
+ /** Maximum allowed batch size for JSON RPC batch requests. */
7
+ rpcMaxBatchSize: number;
6
8
  };
7
9
  //# sourceMappingURL=node-rpc-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-rpc-config.d.ts","sourceRoot":"","sources":["../../src/config/node-rpc-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,0BAA0B,CAAC;AAEvF,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,aAAa,CAMnE,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,uFAAuF;IACvF,4BAA4B,EAAE,MAAM,CAAC;CACtC,CAAC"}
1
+ {"version":3,"file":"node-rpc-config.d.ts","sourceRoot":"","sources":["../../src/config/node-rpc-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,0BAA0B,CAAC;AAEvF,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,CAAC,aAAa,CAWnE,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,uFAAuF;IACvF,4BAA4B,EAAE,MAAM,CAAC;IACrC,8DAA8D;IAC9D,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -4,5 +4,10 @@ export const nodeRpcConfigMappings = {
4
4
  env: 'RPC_SIMULATE_PUBLIC_MAX_GAS_LIMIT',
5
5
  description: 'Maximum gas limit for public tx simulation in the node on `simulatePublicCalls`.',
6
6
  ...numberConfigHelper(10e9)
7
+ },
8
+ rpcMaxBatchSize: {
9
+ env: 'RPC_MAX_BATCH_SIZE',
10
+ description: 'Maximum allowed batch size for JSON RPC batch requests.',
11
+ ...numberConfigHelper(100)
7
12
  }
8
13
  };
@@ -4,9 +4,9 @@ import { GasFees } from '../gas/gas_fees.js';
4
4
  * This is the sum of the gas fees and the priority fees, but capped at the max fees per gas.
5
5
  */ export function computeEffectiveGasFees(gasFees, gasSettings) {
6
6
  const { maxFeesPerGas, maxPriorityFeesPerGas } = gasSettings;
7
- const minField = (f1, f2)=>f1.lt(f2) ? f1 : f2;
8
- const priorityFees = new GasFees(minField(maxPriorityFeesPerGas.feePerDaGas, maxFeesPerGas.feePerDaGas.sub(gasFees.feePerDaGas)), minField(maxPriorityFeesPerGas.feePerL2Gas, maxFeesPerGas.feePerL2Gas.sub(gasFees.feePerL2Gas)));
9
- const effectiveFees = new GasFees(gasFees.feePerDaGas.add(priorityFees.feePerDaGas), gasFees.feePerL2Gas.add(priorityFees.feePerL2Gas));
7
+ const minBigInt = (f1, f2)=>f1 < f2 ? f1 : f2;
8
+ const priorityFees = new GasFees(minBigInt(maxPriorityFeesPerGas.feePerDaGas, maxFeesPerGas.feePerDaGas - gasFees.feePerDaGas), minBigInt(maxPriorityFeesPerGas.feePerL2Gas, maxFeesPerGas.feePerL2Gas - gasFees.feePerL2Gas));
9
+ const effectiveFees = new GasFees(gasFees.feePerDaGas + priorityFees.feePerDaGas, gasFees.feePerL2Gas + priorityFees.feePerL2Gas);
10
10
  return effectiveFees;
11
11
  }
12
12
  export function computeTransactionFee(gasFees, gasSettings, gasUsed) {
package/dest/gas/gas.js CHANGED
@@ -64,7 +64,7 @@ export const GasDimensions = [
64
64
  return this.daGas > other.daGas || this.l2Gas > other.l2Gas;
65
65
  }
66
66
  computeFee(gasFees) {
67
- return GasDimensions.reduce((acc, dimension)=>acc.add(gasFees.get(dimension).mul(new Fr(this.get(dimension)))), Fr.ZERO);
67
+ return GasDimensions.reduce((acc, dimension)=>acc.add(new Fr(gasFees.get(dimension)).mul(new Fr(this.get(dimension)))), Fr.ZERO);
68
68
  }
69
69
  toFields() {
70
70
  return serializeToFields(this.daGas, this.l2Gas);
@@ -3,28 +3,29 @@ import { BufferReader, FieldReader } from '@aztec/foundation/serialize';
3
3
  import type { FieldsOf } from '@aztec/foundation/types';
4
4
  import { inspect } from 'util';
5
5
  import { z } from 'zod';
6
+ import type { UInt128 } from '../types/shared.js';
6
7
  import type { GasDimensions } from './gas.js';
7
8
  /** Gas prices for each dimension. */
8
9
  export declare class GasFees {
9
- readonly feePerDaGas: Fr;
10
- readonly feePerL2Gas: Fr;
11
- constructor(feePerDaGas: Fr | number | bigint, feePerL2Gas: Fr | number | bigint);
10
+ readonly feePerDaGas: UInt128;
11
+ readonly feePerL2Gas: UInt128;
12
+ constructor(feePerDaGas: number | bigint, feePerL2Gas: number | bigint);
12
13
  static get schema(): z.ZodEffects<z.ZodObject<{
13
- feePerDaGas: z.ZodType<Fr, any, string>;
14
- feePerL2Gas: z.ZodType<Fr, any, string>;
14
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
15
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
15
16
  }, "strip", z.ZodTypeAny, {
16
- feePerDaGas: Fr;
17
- feePerL2Gas: Fr;
17
+ feePerDaGas: bigint;
18
+ feePerL2Gas: bigint;
18
19
  }, {
19
- feePerDaGas: string;
20
- feePerL2Gas: string;
20
+ feePerDaGas: string | number | bigint;
21
+ feePerL2Gas: string | number | bigint;
21
22
  }>, GasFees, {
22
- feePerDaGas: string;
23
- feePerL2Gas: string;
23
+ feePerDaGas: string | number | bigint;
24
+ feePerL2Gas: string | number | bigint;
24
25
  }>;
25
26
  clone(): GasFees;
26
27
  equals(other: GasFees): boolean;
27
- get(dimension: GasDimensions): Fr;
28
+ get(dimension: GasDimensions): bigint;
28
29
  mul(scalar: number | bigint): GasFees;
29
30
  static from(fields: FieldsOf<GasFees>): GasFees;
30
31
  static random(): GasFees;
@@ -35,8 +36,8 @@ export declare class GasFees {
35
36
  static fromFields(fields: Fr[] | FieldReader): GasFees;
36
37
  toFields(): Fr[];
37
38
  toInspect(): {
38
- feePerDaGas: number;
39
- feePerL2Gas: number;
39
+ feePerDaGas: bigint;
40
+ feePerL2Gas: bigint;
40
41
  };
41
42
  [inspect.custom](): string;
42
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gas_fees.d.ts","sourceRoot":"","sources":["../../src/gas/gas_fees.ts"],"names":[],"mappings":"A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,YAAY,EACZ,WAAW,EAIZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,qCAAqC;AACrC,qBAAa,OAAO;IAClB,SAAgB,WAAW,EAAE,OAAO,CAAC;IACrC,SAAgB,WAAW,EAAE,OAAO,CAAC;gBAEzB,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM;IAKtE,MAAM,KAAK,MAAM;;;;;;;;;;;;OAOhB;IAED,KAAK,IAAI,OAAO;IAIhB,MAAM,CAAC,KAAK,EAAE,OAAO;IAIrB,GAAG,CAAC,SAAS,EAAE,aAAa;IAS5B,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAU3B,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC;IAIrC,MAAM,CAAC,MAAM;IAIb,MAAM,CAAC,KAAK;IAIZ,OAAO;IAIP,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO;IAKzD,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAK5C,QAAQ;IAIR,SAAS;;;;IAOT,CAAC,OAAO,CAAC,MAAM,CAAC;CAGjB"}
@@ -1,26 +1,25 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
1
  import { schemas } from '@aztec/foundation/schemas';
3
- import { BufferReader, FieldReader, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
2
+ import { BufferReader, FieldReader, bigintToUInt128BE, serializeToBuffer, serializeToFields } from '@aztec/foundation/serialize';
4
3
  import { inspect } from 'util';
5
4
  import { z } from 'zod';
6
5
  /** Gas prices for each dimension. */ export class GasFees {
7
6
  feePerDaGas;
8
7
  feePerL2Gas;
9
8
  constructor(feePerDaGas, feePerL2Gas){
10
- this.feePerDaGas = new Fr(feePerDaGas);
11
- this.feePerL2Gas = new Fr(feePerL2Gas);
9
+ this.feePerDaGas = BigInt(feePerDaGas);
10
+ this.feePerL2Gas = BigInt(feePerL2Gas);
12
11
  }
13
12
  static get schema() {
14
13
  return z.object({
15
- feePerDaGas: schemas.Fr,
16
- feePerL2Gas: schemas.Fr
14
+ feePerDaGas: schemas.BigInt,
15
+ feePerL2Gas: schemas.BigInt
17
16
  }).transform(GasFees.from);
18
17
  }
19
18
  clone() {
20
19
  return new GasFees(this.feePerDaGas, this.feePerL2Gas);
21
20
  }
22
21
  equals(other) {
23
- return this.feePerDaGas.equals(other.feePerDaGas) && this.feePerL2Gas.equals(other.feePerL2Gas);
22
+ return this.feePerDaGas === other.feePerDaGas && this.feePerL2Gas === other.feePerL2Gas;
24
23
  }
25
24
  get(dimension) {
26
25
  switch(dimension){
@@ -34,44 +33,44 @@ import { z } from 'zod';
34
33
  if (scalar === 1 || scalar === 1n) {
35
34
  return this.clone();
36
35
  } else if (typeof scalar === 'bigint') {
37
- return new GasFees(new Fr(this.feePerDaGas.toBigInt() * scalar), new Fr(this.feePerL2Gas.toBigInt() * scalar));
36
+ return new GasFees(this.feePerDaGas * scalar, this.feePerL2Gas * scalar);
38
37
  } else {
39
- return new GasFees(new Fr(this.feePerDaGas.toNumberUnsafe() * scalar), new Fr(this.feePerL2Gas.toNumberUnsafe() * scalar));
38
+ return new GasFees(Number(this.feePerDaGas) * scalar, Number(this.feePerL2Gas) * scalar);
40
39
  }
41
40
  }
42
41
  static from(fields) {
43
42
  return new GasFees(fields.feePerDaGas, fields.feePerL2Gas);
44
43
  }
45
44
  static random() {
46
- return new GasFees(Fr.random(), Fr.random());
45
+ return new GasFees(Math.floor(Math.random() * 1e9), Math.floor(Math.random() * 1e9));
47
46
  }
48
47
  static empty() {
49
- return new GasFees(Fr.ZERO, Fr.ZERO);
48
+ return new GasFees(0, 0);
50
49
  }
51
50
  isEmpty() {
52
- return this.feePerDaGas.isZero() && this.feePerL2Gas.isZero();
51
+ return this.feePerDaGas === 0n && this.feePerL2Gas === 0n;
53
52
  }
54
53
  static fromBuffer(buffer) {
55
54
  const reader = BufferReader.asReader(buffer);
56
- return new GasFees(reader.readObject(Fr), reader.readObject(Fr));
55
+ return new GasFees(reader.readUInt128(), reader.readUInt128());
57
56
  }
58
57
  toBuffer() {
59
- return serializeToBuffer(this.feePerDaGas, this.feePerL2Gas);
58
+ return serializeToBuffer(bigintToUInt128BE(this.feePerDaGas), bigintToUInt128BE(this.feePerL2Gas));
60
59
  }
61
60
  static fromFields(fields) {
62
61
  const reader = FieldReader.asReader(fields);
63
- return new GasFees(reader.readField(), reader.readField());
62
+ return new GasFees(reader.readField().toBigInt(), reader.readField().toBigInt());
64
63
  }
65
64
  toFields() {
66
65
  return serializeToFields(this.feePerDaGas, this.feePerL2Gas);
67
66
  }
68
67
  toInspect() {
69
68
  return {
70
- feePerDaGas: this.feePerDaGas.toNumberUnsafe(),
71
- feePerL2Gas: this.feePerL2Gas.toNumberUnsafe()
69
+ feePerDaGas: this.feePerDaGas,
70
+ feePerL2Gas: this.feePerL2Gas
72
71
  };
73
72
  }
74
73
  [inspect.custom]() {
75
- return `GasFees { feePerDaGas=${this.feePerDaGas.toBigInt()} feePerL2Gas=${this.feePerL2Gas.toBigInt()} }`;
74
+ return `GasFees { feePerDaGas=${this.feePerDaGas} feePerL2Gas=${this.feePerL2Gas} }`;
76
75
  }
77
76
  }
@@ -39,30 +39,30 @@ export declare class GasSettings {
39
39
  l2Gas: string | number | bigint;
40
40
  }>;
41
41
  maxFeesPerGas: z.ZodEffects<z.ZodObject<{
42
- feePerDaGas: z.ZodType<Fr, any, string>;
43
- feePerL2Gas: z.ZodType<Fr, any, string>;
42
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
43
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
44
44
  }, "strip", z.ZodTypeAny, {
45
- feePerDaGas: Fr;
46
- feePerL2Gas: Fr;
45
+ feePerDaGas: bigint;
46
+ feePerL2Gas: bigint;
47
47
  }, {
48
- feePerDaGas: string;
49
- feePerL2Gas: string;
48
+ feePerDaGas: string | number | bigint;
49
+ feePerL2Gas: string | number | bigint;
50
50
  }>, GasFees, {
51
- feePerDaGas: string;
52
- feePerL2Gas: string;
51
+ feePerDaGas: string | number | bigint;
52
+ feePerL2Gas: string | number | bigint;
53
53
  }>;
54
54
  maxPriorityFeesPerGas: z.ZodEffects<z.ZodObject<{
55
- feePerDaGas: z.ZodType<Fr, any, string>;
56
- feePerL2Gas: z.ZodType<Fr, any, string>;
55
+ feePerDaGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
56
+ feePerL2Gas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- feePerDaGas: Fr;
59
- feePerL2Gas: Fr;
58
+ feePerDaGas: bigint;
59
+ feePerL2Gas: bigint;
60
60
  }, {
61
- feePerDaGas: string;
62
- feePerL2Gas: string;
61
+ feePerDaGas: string | number | bigint;
62
+ feePerL2Gas: string | number | bigint;
63
63
  }>, GasFees, {
64
- feePerDaGas: string;
65
- feePerL2Gas: string;
64
+ feePerDaGas: string | number | bigint;
65
+ feePerL2Gas: string | number | bigint;
66
66
  }>;
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  gasLimits: Gas;
@@ -79,12 +79,12 @@ export declare class GasSettings {
79
79
  l2Gas: string | number | bigint;
80
80
  };
81
81
  maxFeesPerGas: {
82
- feePerDaGas: string;
83
- feePerL2Gas: string;
82
+ feePerDaGas: string | number | bigint;
83
+ feePerL2Gas: string | number | bigint;
84
84
  };
85
85
  maxPriorityFeesPerGas: {
86
- feePerDaGas: string;
87
- feePerL2Gas: string;
86
+ feePerDaGas: string | number | bigint;
87
+ feePerL2Gas: string | number | bigint;
88
88
  };
89
89
  }>, GasSettings, {
90
90
  gasLimits: {
@@ -96,12 +96,12 @@ export declare class GasSettings {
96
96
  l2Gas: string | number | bigint;
97
97
  };
98
98
  maxFeesPerGas: {
99
- feePerDaGas: string;
100
- feePerL2Gas: string;
99
+ feePerDaGas: string | number | bigint;
100
+ feePerL2Gas: string | number | bigint;
101
101
  };
102
102
  maxPriorityFeesPerGas: {
103
- feePerDaGas: string;
104
- feePerL2Gas: string;
103
+ feePerDaGas: string | number | bigint;
104
+ feePerL2Gas: string | number | bigint;
105
105
  };
106
106
  }>;
107
107
  getSize(): number;
@@ -1 +1 @@
1
- {"version":3,"file":"gas_settings.d.ts","sourceRoot":"","sources":["../../src/gas/gas_settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAwC,MAAM,6BAA6B,CAAC;AAC9G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,GAAG,EAAiB,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,mGAAmG;AACnG,qBAAa,WAAW;aAEJ,SAAS,EAAE,GAAG;aACd,iBAAiB,EAAE,GAAG;aACtB,aAAa,EAAE,OAAO;aACtB,qBAAqB,EAAE,OAAO;gBAH9B,SAAS,EAAE,GAAG,EACd,iBAAiB,EAAE,GAAG,EACtB,aAAa,EAAE,OAAO,E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M,EAAE,MAAM,GAAG,YAAY,GAAG,WAAW;IAU7D,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,WAAW;IAU1D,QAAQ,IAAI,EAAE,EAAE;IAUhB,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC;CAG/C"}
@@ -35,7 +35,7 @@ import { GasFees } from './gas_fees.js';
35
35
  return new GasSettings(this.gasLimits.clone(), this.teardownGasLimits.clone(), this.maxFeesPerGas.clone(), this.maxPriorityFeesPerGas.clone());
36
36
  }
37
37
  /** Returns the maximum fee to be paid according to gas limits and max fees set. */ getFeeLimit() {
38
- return GasDimensions.reduce((acc, dimension)=>this.maxFeesPerGas.get(dimension).mul(new Fr(this.gasLimits.get(dimension))).add(acc), Fr.ZERO);
38
+ return GasDimensions.reduce((acc, dimension)=>new Fr(this.maxFeesPerGas.get(dimension)).mul(new Fr(this.gasLimits.get(dimension))).add(acc), Fr.ZERO);
39
39
  }
40
40
  /** Zero-value gas settings. */ static empty() {
41
41
  return new GasSettings(Gas.empty(), Gas.empty(), GasFees.empty(), GasFees.empty());
@@ -24,12 +24,11 @@ export declare function computeNoteHashNonce(nullifierZero: Fr, noteHashIndex: n
24
24
  export declare function siloNoteHash(contract: AztecAddress, noteHash: Fr): Promise<Fr>;
25
25
  /**
26
26
  * Computes a unique note hash.
27
- * @dev Includes a nonce which contains data that guarantees the resulting note hash will be unique.
28
- * @param nonce - A nonce (typically derived from tx hash and note hash index in the tx).
27
+ * @param noteNonce - The nonce that was injected into the note hash preimage in order to guarantee uniqueness.
29
28
  * @param siloedNoteHash - A siloed note hash.
30
29
  * @returns A unique note hash.
31
30
  */
32
- export declare function computeUniqueNoteHash(nonce: Fr, siloedNoteHash: Fr): Promise<Fr>;
31
+ export declare function computeUniqueNoteHash(noteNonce: Fr, siloedNoteHash: Fr): Promise<Fr>;
33
32
  /**
34
33
  * Computes a siloed nullifier, given the contract address and the inner nullifier.
35
34
  * A siloed nullifier effectively namespaces a nullifier to a specific contract.
@@ -1 +1 @@
1
- {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash/hash.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAErD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,CAE1F;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAE9E;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAEhF;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAExD;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAEzG;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAM1D;AAED;;;;GAIG;AAC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AAC,EAAE,CAAC,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAExD;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,eAAe,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAEzG;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAM1D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAM/D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,CAEzD;AAED,wBAAsB,6BAA6B,CAAC,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,eAMtG;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAiBlG"}
package/dest/hash/hash.js CHANGED
@@ -33,13 +33,12 @@ import { Fr } from '@aztec/foundation/fields';
33
33
  }
34
34
  /**
35
35
  * Computes a unique note hash.
36
- * @dev Includes a nonce which contains data that guarantees the resulting note hash will be unique.
37
- * @param nonce - A nonce (typically derived from tx hash and note hash index in the tx).
36
+ * @param noteNonce - The nonce that was injected into the note hash preimage in order to guarantee uniqueness.
38
37
  * @param siloedNoteHash - A siloed note hash.
39
38
  * @returns A unique note hash.
40
- */ export function computeUniqueNoteHash(nonce, siloedNoteHash) {
39
+ */ export function computeUniqueNoteHash(noteNonce, siloedNoteHash) {
41
40
  return poseidon2HashWithSeparator([
42
- nonce,
41
+ noteNonce,
43
42
  siloedNoteHash
44
43
  ], GeneratorIndex.UNIQUE_NOTE_HASH);
45
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"archiver.d.ts","sourceRoot":"","sources":["../../src/interfaces/archiver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAOnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,aAAa,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,EACvE,OAAO,GAAG,MAAM,CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CA8CvD,CAAC"}
1
+ {"version":3,"file":"archiver.d.ts","sourceRoot":"","sources":["../../src/interfaces/archiver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,sBAAsB,CAAC;AAK9B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAOnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,aAAa,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,EACvE,OAAO,GAAG,MAAM,CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CA+CvD,CAAC"}
@@ -46,5 +46,6 @@ export const ArchiverApiSchema = {
46
46
  getL1ToL2MessageIndex: z.function().args(schemas.Fr).returns(schemas.BigInt.optional()),
47
47
  getDebugFunctionName: z.function().args(schemas.AztecAddress, schemas.FunctionSelector).returns(optional(z.string())),
48
48
  getL1Constants: z.function().args().returns(L1RollupConstantsSchema),
49
+ getL1Timestamp: z.function().args().returns(schemas.BigInt),
49
50
  syncImmediate: z.function().args().returns(z.void())
50
51
  };