@aztec/stdlib 0.83.0 → 0.83.1-nightly.20250404

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 (50) hide show
  1. package/dest/avm/avm.d.ts +1203 -694
  2. package/dest/avm/avm.d.ts.map +1 -1
  3. package/dest/avm/avm.js +58 -6
  4. package/dest/avm/avm_circuit_public_inputs.d.ts +80 -80
  5. package/dest/avm/avm_proving_request.d.ts +672 -447
  6. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  7. package/dest/config/config.d.ts +2 -1
  8. package/dest/config/config.d.ts.map +1 -1
  9. package/dest/contract/interfaces/contract_instance.d.ts +2 -2
  10. package/dest/interfaces/allowed_element.d.ts +53 -0
  11. package/dest/interfaces/allowed_element.d.ts.map +1 -0
  12. package/dest/interfaces/allowed_element.js +18 -0
  13. package/dest/interfaces/configs.d.ts +17 -34
  14. package/dest/interfaces/configs.d.ts.map +1 -1
  15. package/dest/interfaces/configs.js +2 -17
  16. package/dest/interfaces/proving-job.d.ts +672 -447
  17. package/dest/interfaces/proving-job.d.ts.map +1 -1
  18. package/dest/interfaces/public_state_source.d.ts +8 -0
  19. package/dest/interfaces/public_state_source.d.ts.map +1 -0
  20. package/dest/interfaces/public_state_source.js +1 -0
  21. package/dest/interfaces/server.d.ts +1 -0
  22. package/dest/interfaces/server.d.ts.map +1 -1
  23. package/dest/interfaces/server.js +1 -0
  24. package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
  25. package/dest/note/extended_note.d.ts +3 -3
  26. package/dest/proofs/proof.d.ts +0 -1
  27. package/dest/proofs/proof.d.ts.map +1 -1
  28. package/dest/proofs/proof.js +6 -11
  29. package/dest/tests/factories.d.ts +2 -1
  30. package/dest/tests/factories.d.ts.map +1 -1
  31. package/dest/tests/factories.js +12 -3
  32. package/dest/trees/database_public_state_source.d.ts +11 -0
  33. package/dest/trees/database_public_state_source.d.ts.map +1 -0
  34. package/dest/trees/database_public_state_source.js +18 -0
  35. package/dest/trees/index.d.ts +1 -0
  36. package/dest/trees/index.d.ts.map +1 -1
  37. package/dest/trees/index.js +1 -0
  38. package/dest/tx/call_context.d.ts +1 -1
  39. package/dest/tx/tree_snapshots.d.ts +6 -6
  40. package/package.json +6 -6
  41. package/src/avm/avm.ts +89 -5
  42. package/src/config/config.ts +2 -1
  43. package/src/interfaces/allowed_element.ts +21 -0
  44. package/src/interfaces/configs.ts +3 -18
  45. package/src/interfaces/public_state_source.ts +9 -0
  46. package/src/interfaces/server.ts +1 -0
  47. package/src/proofs/proof.ts +6 -16
  48. package/src/tests/factories.ts +19 -2
  49. package/src/trees/database_public_state_source.ts +30 -0
  50. package/src/trees/index.ts +1 -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,6 +1,7 @@
1
1
  import type { ConfigMappingsType } from '@aztec/foundation/config';
2
2
  import { EthAddress } from '@aztec/foundation/eth-address';
3
- export { type AllowedElement, type SequencerConfig, SequencerConfigSchema } from '../interfaces/configs.js';
3
+ export { type SequencerConfig, SequencerConfigSchema } from '../interfaces/configs.js';
4
+ export { type AllowedElement } from '../interfaces/allowed_element.js';
4
5
  export declare const emptyChainConfig: ChainConfig;
5
6
  export declare const chainConfigMappings: ConfigMappingsType<ChainConfig>;
6
7
  /** Chain configuration. */
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAE5G,eAAO,MAAM,gBAAgB,EAAE,WAI9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,CAAC,WAAW,CAgB/D,CAAC;AAEF,2BAA2B;AAC3B,MAAM,MAAM,WAAW,GAAG;IACxB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,WAAW,EAAE;QACX,4BAA4B;QAC5B,aAAa,EAAE,UAAU,CAAC;KAC3B,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,eAAO,MAAM,gBAAgB,EAAE,WAI9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,CAAC,WAAW,CAgB/D,CAAC;AAEF,2BAA2B;AAC3B,MAAM,MAAM,WAAW,GAAG;IACxB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,WAAW,EAAE;QACX,4BAA4B;QAC5B,aAAa,EAAE,UAAU,CAAC;KAC3B,CAAC;CACH,CAAC"}
@@ -58,12 +58,12 @@ export declare const ContractInstanceSchema: z.ZodObject<{
58
58
  }>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  version: 1;
61
+ publicKeys: PublicKeys;
61
62
  salt: Fr;
62
63
  deployer: AztecAddress;
63
64
  currentContractClassId: Fr;
64
65
  originalContractClassId: Fr;
65
66
  initializationHash: Fr;
66
- publicKeys: PublicKeys;
67
67
  }, {
68
68
  version: 1;
69
69
  publicKeys: {
@@ -108,12 +108,12 @@ export declare const ContractInstanceWithAddressSchema: z.ZodIntersection<z.ZodO
108
108
  }>;
109
109
  }, "strip", z.ZodTypeAny, {
110
110
  version: 1;
111
+ publicKeys: PublicKeys;
111
112
  salt: Fr;
112
113
  deployer: AztecAddress;
113
114
  currentContractClassId: Fr;
114
115
  originalContractClassId: Fr;
115
116
  initializationHash: Fr;
116
- publicKeys: PublicKeys;
117
117
  }, {
118
118
  version: 1;
119
119
  publicKeys: {
@@ -0,0 +1,53 @@
1
+ import type { Fr } from '@aztec/foundation/fields';
2
+ import { z } from 'zod';
3
+ import type { FunctionSelector } from '../abi/function_selector.js';
4
+ import type { AztecAddress } from '../aztec-address/index.js';
5
+ import { type ZodFor } from '../schemas/index.js';
6
+ type AllowedInstance = {
7
+ address: AztecAddress;
8
+ };
9
+ type AllowedInstanceFunction = {
10
+ address: AztecAddress;
11
+ selector: FunctionSelector;
12
+ };
13
+ type AllowedClass = {
14
+ classId: Fr;
15
+ };
16
+ type AllowedClassFunction = {
17
+ classId: Fr;
18
+ selector: FunctionSelector;
19
+ };
20
+ export type AllowedElement = AllowedInstance | AllowedInstanceFunction | AllowedClass | AllowedClassFunction;
21
+ export declare const AllowedElementSchema: z.ZodUnion<[z.ZodObject<{
22
+ address: ZodFor<AztecAddress>;
23
+ selector: ZodFor<FunctionSelector>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ selector: FunctionSelector;
26
+ address: AztecAddress;
27
+ }, {
28
+ selector?: any;
29
+ address?: any;
30
+ }>, z.ZodObject<{
31
+ address: ZodFor<AztecAddress>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ address: AztecAddress;
34
+ }, {
35
+ address?: any;
36
+ }>, z.ZodObject<{
37
+ classId: ZodFor<Fr>;
38
+ selector: ZodFor<FunctionSelector>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ selector: FunctionSelector;
41
+ classId: Fr;
42
+ }, {
43
+ selector?: any;
44
+ classId?: any;
45
+ }>, z.ZodObject<{
46
+ classId: ZodFor<Fr>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ classId: Fr;
49
+ }, {
50
+ classId?: any;
51
+ }>]>;
52
+ export {};
53
+ //# sourceMappingURL=allowed_element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"allowed_element.d.ts","sourceRoot":"","sources":["../../src/interfaces/allowed_element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAE3D,KAAK,eAAe,GAAG;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC;AACjD,KAAK,uBAAuB,GAAG;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;AACrF,KAAK,YAAY,GAAG;IAAE,OAAO,EAAE,EAAE,CAAA;CAAE,CAAC;AACpC,KAAK,oBAAoB,GAAG;IAAE,OAAO,EAAE,EAAE,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAExE,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,uBAAuB,GAAG,YAAY,GAAG,oBAAoB,CAAC;AAE7G,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ import { schemas } from '../schemas/index.js';
3
+ export const AllowedElementSchema = z.union([
4
+ z.object({
5
+ address: schemas.AztecAddress,
6
+ selector: schemas.FunctionSelector
7
+ }),
8
+ z.object({
9
+ address: schemas.AztecAddress
10
+ }),
11
+ z.object({
12
+ classId: schemas.Fr,
13
+ selector: schemas.FunctionSelector
14
+ }),
15
+ z.object({
16
+ classId: schemas.Fr
17
+ })
18
+ ]);
@@ -1,24 +1,8 @@
1
1
  import type { EthAddress } from '@aztec/foundation/eth-address';
2
- import type { Fr } from '@aztec/foundation/fields';
3
2
  import { z } from 'zod';
4
- import type { FunctionSelector } from '../abi/function_selector.js';
5
3
  import type { AztecAddress } from '../aztec-address/index.js';
6
4
  import { type ZodFor } from '../schemas/index.js';
7
- type AllowedInstance = {
8
- address: AztecAddress;
9
- };
10
- type AllowedInstanceFunction = {
11
- address: AztecAddress;
12
- selector: FunctionSelector;
13
- };
14
- type AllowedClass = {
15
- classId: Fr;
16
- };
17
- type AllowedClassFunction = {
18
- classId: Fr;
19
- selector: FunctionSelector;
20
- };
21
- export type AllowedElement = AllowedInstance | AllowedInstanceFunction | AllowedClass | AllowedClassFunction;
5
+ import { type AllowedElement } from './allowed_element.js';
22
6
  /**
23
7
  * The sequencer configuration.
24
8
  */
@@ -42,7 +26,7 @@ export interface SequencerConfig {
42
26
  /** The path to the ACVM binary */
43
27
  acvmBinaryPath?: string;
44
28
  /** The list of functions calls allowed to run in setup */
45
- allowedInSetup?: AllowedElement[];
29
+ txPublicSetupAllowList?: AllowedElement[];
46
30
  /** Max block size */
47
31
  maxBlockSizeInBytes?: number;
48
32
  /** Payload address to vote for */
@@ -62,11 +46,11 @@ export declare const SequencerConfigSchema: z.ZodObject<{
62
46
  feeRecipient: z.ZodOptional<ZodFor<AztecAddress>>;
63
47
  acvmWorkingDirectory: z.ZodOptional<z.ZodString>;
64
48
  acvmBinaryPath: z.ZodOptional<z.ZodString>;
65
- allowedInSetup: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
49
+ txPublicSetupAllowList: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
66
50
  address: ZodFor<AztecAddress>;
67
- selector: ZodFor<FunctionSelector>;
51
+ selector: ZodFor<import("../abi/function_selector.js").FunctionSelector>;
68
52
  }, "strip", z.ZodTypeAny, {
69
- selector: FunctionSelector;
53
+ selector: import("../abi/function_selector.js").FunctionSelector;
70
54
  address: AztecAddress;
71
55
  }, {
72
56
  selector?: any;
@@ -78,18 +62,18 @@ export declare const SequencerConfigSchema: z.ZodObject<{
78
62
  }, {
79
63
  address?: any;
80
64
  }>, z.ZodObject<{
81
- classId: ZodFor<Fr>;
82
- selector: ZodFor<FunctionSelector>;
65
+ classId: ZodFor<import("@aztec/foundation/schemas").Fr>;
66
+ selector: ZodFor<import("../abi/function_selector.js").FunctionSelector>;
83
67
  }, "strip", z.ZodTypeAny, {
84
- selector: FunctionSelector;
85
- classId: Fr;
68
+ selector: import("../abi/function_selector.js").FunctionSelector;
69
+ classId: import("@aztec/foundation/schemas").Fr;
86
70
  }, {
87
71
  selector?: any;
88
72
  classId?: any;
89
73
  }>, z.ZodObject<{
90
- classId: ZodFor<Fr>;
74
+ classId: ZodFor<import("@aztec/foundation/schemas").Fr>;
91
75
  }, "strip", z.ZodTypeAny, {
92
- classId: Fr;
76
+ classId: import("@aztec/foundation/schemas").Fr;
93
77
  }, {
94
78
  classId?: any;
95
79
  }>]>, "many">>;
@@ -107,16 +91,16 @@ export declare const SequencerConfigSchema: z.ZodObject<{
107
91
  maxDABlockGas?: number | undefined;
108
92
  acvmWorkingDirectory?: string | undefined;
109
93
  acvmBinaryPath?: string | undefined;
110
- allowedInSetup?: ({
111
- selector: FunctionSelector;
94
+ txPublicSetupAllowList?: ({
95
+ selector: import("../abi/function_selector.js").FunctionSelector;
112
96
  address: AztecAddress;
113
97
  } | {
114
98
  address: AztecAddress;
115
99
  } | {
116
- selector: FunctionSelector;
117
- classId: Fr;
100
+ selector: import("../abi/function_selector.js").FunctionSelector;
101
+ classId: import("@aztec/foundation/schemas").Fr;
118
102
  } | {
119
- classId: Fr;
103
+ classId: import("@aztec/foundation/schemas").Fr;
120
104
  })[] | undefined;
121
105
  maxBlockSizeInBytes?: number | undefined;
122
106
  governanceProposerPayload?: EthAddress | undefined;
@@ -132,7 +116,7 @@ export declare const SequencerConfigSchema: z.ZodObject<{
132
116
  maxDABlockGas?: number | undefined;
133
117
  acvmWorkingDirectory?: string | undefined;
134
118
  acvmBinaryPath?: string | undefined;
135
- allowedInSetup?: ({
119
+ txPublicSetupAllowList?: ({
136
120
  selector?: any;
137
121
  address?: any;
138
122
  } | {
@@ -148,5 +132,4 @@ export declare const SequencerConfigSchema: z.ZodObject<{
148
132
  maxL1TxInclusionTimeIntoSlot?: number | undefined;
149
133
  enforceTimeTable?: boolean | undefined;
150
134
  }>;
151
- export {};
152
135
  //# sourceMappingURL=configs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../src/interfaces/configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAE3D,KAAK,eAAe,GAAG;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC;AACjD,KAAK,uBAAuB,GAAG;IAAE,OAAO,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;AACrF,KAAK,YAAY,GAAG;IAAE,OAAO,EAA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
  import { z } from 'zod';
2
2
  import { schemas } from '../schemas/index.js';
3
- const AllowedElementSchema = z.union([
4
- z.object({
5
- address: schemas.AztecAddress,
6
- selector: schemas.FunctionSelector
7
- }),
8
- z.object({
9
- address: schemas.AztecAddress
10
- }),
11
- z.object({
12
- classId: schemas.Fr,
13
- selector: schemas.FunctionSelector
14
- }),
15
- z.object({
16
- classId: schemas.Fr
17
- })
18
- ]);
3
+ import { AllowedElementSchema } from './allowed_element.js';
19
4
  export const SequencerConfigSchema = z.object({
20
5
  transactionPollingIntervalMS: z.number().optional(),
21
6
  maxTxsPerBlock: z.number().optional(),
@@ -26,7 +11,7 @@ export const SequencerConfigSchema = z.object({
26
11
  feeRecipient: schemas.AztecAddress.optional(),
27
12
  acvmWorkingDirectory: z.string().optional(),
28
13
  acvmBinaryPath: z.string().optional(),
29
- allowedInSetup: z.array(AllowedElementSchema).optional(),
14
+ txPublicSetupAllowList: z.array(AllowedElementSchema).optional(),
30
15
  maxBlockSizeInBytes: z.number().optional(),
31
16
  governanceProposerPayload: schemas.EthAddress.optional(),
32
17
  maxL1TxInclusionTimeIntoSlot: z.number().optional(),