@aztec/stdlib 0.0.1-commit.3100065 → 0.0.1-commit.321f6a9

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 (163) hide show
  1. package/dest/abi/abi.d.ts +8 -1
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/contract_artifact.d.ts +1 -14
  4. package/dest/abi/contract_artifact.d.ts.map +1 -1
  5. package/dest/abi/contract_artifact.js +26 -25
  6. package/dest/avm/avm_proving_request.d.ts +70 -70
  7. package/dest/avm/index.d.ts +1 -6
  8. package/dest/avm/index.d.ts.map +1 -1
  9. package/dest/avm/index.js +0 -5
  10. package/dest/contract/contract_class.d.ts +1 -1
  11. package/dest/contract/contract_class.d.ts.map +1 -1
  12. package/dest/contract/contract_class.js +3 -2
  13. package/dest/contract/index.d.ts +1 -2
  14. package/dest/contract/index.d.ts.map +1 -1
  15. package/dest/contract/index.js +0 -1
  16. package/dest/interfaces/block-builder.d.ts +7 -2
  17. package/dest/interfaces/block-builder.d.ts.map +1 -1
  18. package/dest/interfaces/merkle_tree_operations.d.ts +8 -3
  19. package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
  20. package/dest/interfaces/private_kernel_prover.d.ts +64 -3
  21. package/dest/interfaces/private_kernel_prover.d.ts.map +1 -1
  22. package/dest/interfaces/proving-job.d.ts +1 -1
  23. package/dest/interfaces/server.d.ts +1 -2
  24. package/dest/interfaces/server.d.ts.map +1 -1
  25. package/dest/interfaces/server.js +0 -1
  26. package/dest/kernel/hints/index.d.ts +1 -2
  27. package/dest/kernel/hints/index.d.ts.map +1 -1
  28. package/dest/kernel/hints/index.js +0 -1
  29. package/dest/kernel/index.d.ts +5 -1
  30. package/dest/kernel/index.d.ts.map +1 -1
  31. package/dest/kernel/index.js +4 -0
  32. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +1 -9
  33. package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
  34. package/dest/kernel/private_kernel_circuit_public_inputs.js +3 -7
  35. package/dest/kernel/private_kernel_init_4_circuit_private_inputs.d.ts +24 -0
  36. package/dest/kernel/private_kernel_init_4_circuit_private_inputs.d.ts.map +1 -0
  37. package/dest/kernel/private_kernel_init_4_circuit_private_inputs.js +37 -0
  38. package/dest/kernel/private_kernel_init_5_circuit_private_inputs.d.ts +25 -0
  39. package/dest/kernel/private_kernel_init_5_circuit_private_inputs.d.ts.map +1 -0
  40. package/dest/kernel/private_kernel_init_5_circuit_private_inputs.js +39 -0
  41. package/dest/kernel/private_kernel_inner_4_circuit_private_inputs.d.ts +18 -0
  42. package/dest/kernel/private_kernel_inner_4_circuit_private_inputs.d.ts.map +1 -0
  43. package/dest/kernel/private_kernel_inner_4_circuit_private_inputs.js +27 -0
  44. package/dest/kernel/private_kernel_inner_5_circuit_private_inputs.d.ts +19 -0
  45. package/dest/kernel/private_kernel_inner_5_circuit_private_inputs.d.ts.map +1 -0
  46. package/dest/kernel/private_kernel_inner_5_circuit_private_inputs.js +29 -0
  47. package/dest/kernel/private_kernel_prover_output.d.ts +4 -1
  48. package/dest/kernel/private_kernel_prover_output.d.ts.map +1 -1
  49. package/dest/kernel/private_kernel_prover_output.js +4 -1
  50. package/dest/kernel/private_kernel_simulated_output.d.ts +1 -7
  51. package/dest/kernel/private_kernel_simulated_output.d.ts.map +1 -1
  52. package/dest/kernel/private_kernel_simulated_output.js +2 -1
  53. package/dest/kernel/utils/index.d.ts +1 -2
  54. package/dest/kernel/utils/index.d.ts.map +1 -1
  55. package/dest/kernel/utils/index.js +0 -1
  56. package/dest/logs/index.d.ts +3 -1
  57. package/dest/logs/index.d.ts.map +1 -1
  58. package/dest/logs/index.js +2 -0
  59. package/dest/logs/message_context.d.ts +17 -0
  60. package/dest/logs/message_context.d.ts.map +1 -0
  61. package/dest/logs/message_context.js +9 -0
  62. package/dest/logs/pending_tagged_log.d.ts +11 -0
  63. package/dest/logs/pending_tagged_log.d.ts.map +1 -0
  64. package/dest/logs/pending_tagged_log.js +4 -0
  65. package/dest/logs/shared_secret_derivation.d.ts +12 -2
  66. package/dest/logs/shared_secret_derivation.d.ts.map +1 -1
  67. package/dest/logs/shared_secret_derivation.js +18 -0
  68. package/dest/noir/index.d.ts +3 -3
  69. package/dest/noir/index.d.ts.map +1 -1
  70. package/dest/p2p/index.d.ts +1 -2
  71. package/dest/p2p/index.d.ts.map +1 -1
  72. package/dest/p2p/index.js +0 -1
  73. package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +1 -1
  74. package/dest/stats/stats.d.ts +2 -2
  75. package/dest/stats/stats.d.ts.map +1 -1
  76. package/dest/tests/factories.d.ts +1 -27
  77. package/dest/tests/factories.d.ts.map +1 -1
  78. package/dest/tests/factories.js +0 -30
  79. package/dest/tx/index.d.ts +1 -2
  80. package/dest/tx/index.d.ts.map +1 -1
  81. package/dest/tx/index.js +0 -1
  82. package/dest/tx/profiling.d.ts +1 -1
  83. package/dest/tx/profiling.d.ts.map +1 -1
  84. package/dest/tx/profiling.js +2 -0
  85. package/dest/world-state/world_state_revision.d.ts +1 -18
  86. package/dest/world-state/world_state_revision.d.ts.map +1 -1
  87. package/dest/world-state/world_state_revision.js +0 -20
  88. package/package.json +8 -8
  89. package/src/abi/abi.ts +8 -0
  90. package/src/abi/contract_artifact.ts +33 -28
  91. package/src/avm/index.ts +0 -5
  92. package/src/contract/contract_class.ts +3 -2
  93. package/src/contract/index.ts +0 -1
  94. package/src/gas/README.md +108 -36
  95. package/src/interfaces/block-builder.ts +6 -1
  96. package/src/interfaces/merkle_tree_operations.ts +8 -2
  97. package/src/interfaces/private_kernel_prover.ts +94 -1
  98. package/src/interfaces/server.ts +0 -1
  99. package/src/kernel/hints/index.ts +0 -1
  100. package/src/kernel/index.ts +4 -0
  101. package/src/kernel/private_kernel_circuit_public_inputs.ts +0 -7
  102. package/src/kernel/private_kernel_init_4_circuit_private_inputs.ts +52 -0
  103. package/src/kernel/private_kernel_init_5_circuit_private_inputs.ts +55 -0
  104. package/src/kernel/private_kernel_inner_4_circuit_private_inputs.ts +39 -0
  105. package/src/kernel/private_kernel_inner_5_circuit_private_inputs.ts +42 -0
  106. package/src/kernel/private_kernel_prover_output.ts +4 -0
  107. package/src/kernel/private_kernel_simulated_output.ts +0 -7
  108. package/src/kernel/utils/index.ts +0 -1
  109. package/src/logs/index.ts +2 -0
  110. package/src/logs/message_context.ts +18 -0
  111. package/src/logs/pending_tagged_log.ts +12 -0
  112. package/src/logs/shared_secret_derivation.ts +18 -1
  113. package/src/noir/index.ts +2 -1
  114. package/src/p2p/index.ts +0 -1
  115. package/src/stats/stats.ts +4 -0
  116. package/src/tests/factories.ts +0 -38
  117. package/src/tx/index.ts +0 -1
  118. package/src/tx/profiling.ts +2 -0
  119. package/src/world-state/world_state_revision.ts +0 -33
  120. package/dest/avm/contract_storage_read.d.ts +0 -58
  121. package/dest/avm/contract_storage_read.d.ts.map +0 -1
  122. package/dest/avm/contract_storage_read.js +0 -65
  123. package/dest/avm/contract_storage_update_request.d.ts +0 -65
  124. package/dest/avm/contract_storage_update_request.d.ts.map +0 -1
  125. package/dest/avm/contract_storage_update_request.js +0 -80
  126. package/dest/avm/public_call_stack_item_compressed.d.ts +0 -43
  127. package/dest/avm/public_call_stack_item_compressed.d.ts.map +0 -1
  128. package/dest/avm/public_call_stack_item_compressed.js +0 -70
  129. package/dest/avm/public_data_update_request.d.ts +0 -62
  130. package/dest/avm/public_data_update_request.d.ts.map +0 -1
  131. package/dest/avm/public_data_update_request.js +0 -67
  132. package/dest/avm/public_inner_call_request.d.ts +0 -50
  133. package/dest/avm/public_inner_call_request.d.ts.map +0 -1
  134. package/dest/avm/public_inner_call_request.js +0 -74
  135. package/dest/contract/deployment_info.d.ts +0 -24
  136. package/dest/contract/deployment_info.d.ts.map +0 -1
  137. package/dest/contract/deployment_info.js +0 -3
  138. package/dest/interfaces/prover-coordination.d.ts +0 -15
  139. package/dest/interfaces/prover-coordination.d.ts.map +0 -1
  140. package/dest/interfaces/prover-coordination.js +0 -1
  141. package/dest/kernel/hints/tree_leaf_read_request.d.ts +0 -14
  142. package/dest/kernel/hints/tree_leaf_read_request.d.ts.map +0 -1
  143. package/dest/kernel/hints/tree_leaf_read_request.js +0 -33
  144. package/dest/kernel/utils/optional_number.d.ts +0 -31
  145. package/dest/kernel/utils/optional_number.d.ts.map +0 -1
  146. package/dest/kernel/utils/optional_number.js +0 -42
  147. package/dest/p2p/interface.d.ts +0 -5
  148. package/dest/p2p/interface.d.ts.map +0 -1
  149. package/dest/p2p/interface.js +0 -1
  150. package/dest/tx/validator/empty_validator.d.ts +0 -5
  151. package/dest/tx/validator/empty_validator.d.ts.map +0 -1
  152. package/dest/tx/validator/empty_validator.js +0 -7
  153. package/src/avm/contract_storage_read.ts +0 -77
  154. package/src/avm/contract_storage_update_request.ts +0 -93
  155. package/src/avm/public_call_stack_item_compressed.ts +0 -113
  156. package/src/avm/public_data_update_request.ts +0 -106
  157. package/src/avm/public_inner_call_request.ts +0 -85
  158. package/src/contract/deployment_info.ts +0 -25
  159. package/src/interfaces/prover-coordination.ts +0 -17
  160. package/src/kernel/hints/tree_leaf_read_request.ts +0 -35
  161. package/src/kernel/utils/optional_number.ts +0 -50
  162. package/src/p2p/interface.ts +0 -4
  163. package/src/tx/validator/empty_validator.ts +0 -7
@@ -1,3 +1,4 @@
1
+ import { CircuitKind } from '@aztec/bb.js';
1
2
  import { bufferSchema, mapSchema } from '@aztec/foundation/schemas';
2
3
  import type { WitnessMap } from '@aztec/noir-acvm_js';
3
4
  import { serializeWitness } from '@aztec/noir-noirc_abi';
@@ -15,6 +16,7 @@ export const PrivateExecutionStepSchema = z.object({
15
16
  bytecode: bufferSchema,
16
17
  witness: mapSchema(z.number(), z.string()),
17
18
  vk: bufferSchema,
19
+ kind: z.nativeEnum(CircuitKind),
18
20
  timings: z.object({
19
21
  witgen: z.number(),
20
22
  gateCount: z.number().optional(),
@@ -31,6 +33,7 @@ export interface PrivateExecutionStep {
31
33
  witness: WitnessMap;
32
34
  /* TODO(https://github.com/AztecProtocol/barretenberg/issues/1328) this should get its own proper class. */
33
35
  vk: Buffer;
36
+ kind: CircuitKind;
34
37
  timings: {
35
38
  witgen: number;
36
39
  gateCount?: number;
@@ -64,6 +67,7 @@ export function serializePrivateExecutionSteps(steps: PrivateExecutionStep[]) {
64
67
  witness: serializeWitness(step.witness),
65
68
  vk: step.vk,
66
69
  functionName: step.functionName,
70
+ kind: step.kind,
67
71
  };
68
72
  };
69
73
  return new Encoder({ useRecords: false }).pack(steps.map(stepToStruct));
@@ -17,10 +17,3 @@ export interface PrivateKernelSimulateOutput<
17
17
  verificationKey: VerificationKeyData;
18
18
  bytecode: Buffer;
19
19
  }
20
-
21
- /**
22
- * Represents the output of the circuit simulation process for init and inner private kernel circuit.
23
- */
24
- export type AppCircuitSimulateOutput = {
25
- verificationKey: VerificationKeyData;
26
- };
@@ -1,3 +1,2 @@
1
1
  export * from './interfaces.js';
2
- export * from './optional_number.js';
3
2
  export * from './order_and_comparison.js';
package/src/logs/index.ts CHANGED
@@ -5,11 +5,13 @@ export * from './tagging_index_range.js';
5
5
  export * from './contract_class_log.js';
6
6
  export * from './public_log.js';
7
7
  export * from './private_log.js';
8
+ export * from './pending_tagged_log.js';
8
9
  export * from './log_result.js';
9
10
  export * from './log_cursor.js';
10
11
  export * from './logs_query.js';
11
12
  export * from './query_all_logs_by_tags.js';
12
13
  export * from './shared_secret_derivation.js';
14
+ export * from './message_context.js';
13
15
  export * from './debug_log.js';
14
16
  export * from './debug_log_store.js';
15
17
  export * from './tag.js';
@@ -0,0 +1,18 @@
1
+ import type { Fr } from '@aztec/foundation/curves/bn254';
2
+
3
+ import type { TxHash } from '../tx/tx_hash.js';
4
+
5
+ /**
6
+ * Additional information needed to process a message.
7
+ *
8
+ * All messages exist in the context of a transaction, and information about that transaction is typically required
9
+ * in order to perform validation, store results, etc. For example, messages containing notes require knowledge of note
10
+ * hashes and the first nullifier in order to find the note's nonce.
11
+ *
12
+ * A TS version of `message_context.nr`.
13
+ */
14
+ export type MessageContext = {
15
+ txHash: TxHash;
16
+ uniqueNoteHashesInTx: Fr[];
17
+ firstNullifierInTx: Fr;
18
+ };
@@ -0,0 +1,12 @@
1
+ import type { Fr } from '@aztec/foundation/curves/bn254';
2
+
3
+ import type { MessageContext } from './message_context.js';
4
+
5
+ /**
6
+ * Represents a pending tagged log as it is stored in the pending tagged log array to which the fetchTaggedLogs oracle
7
+ * inserts found private logs. A TS version of `pending_tagged_log.nr`.
8
+ */
9
+ export type PendingTaggedLog = {
10
+ log: Fr[];
11
+ context: MessageContext;
12
+ };
@@ -2,7 +2,7 @@ import { DomainSeparator } from '@aztec/constants';
2
2
  import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
3
3
  import { poseidon2HashWithSeparator } from '@aztec/foundation/crypto/poseidon';
4
4
  import type { Fr } from '@aztec/foundation/curves/bn254';
5
- import type { GrumpkinScalar, Point } from '@aztec/foundation/curves/grumpkin';
5
+ import { GrumpkinScalar, type Point } from '@aztec/foundation/curves/grumpkin';
6
6
 
7
7
  import type { AztecAddress } from '../aztec-address/index.js';
8
8
  import type { PublicKey } from '../keys/public_key.js';
@@ -51,3 +51,20 @@ export async function appSiloEcdhSharedSecret(
51
51
  export function appSiloEcdhSharedSecretPoint(point: Point, app: AztecAddress): Promise<Fr> {
52
52
  return poseidon2HashWithSeparator([point.x, point.y, app], DomainSeparator.APP_SILOED_ECDH_SHARED_SECRET);
53
53
  }
54
+
55
+ /**
56
+ * Protects a handshake's shared secret from being forged by the recipient: `S' = hash(ephPk, recipientPoint) * S`.
57
+ *
58
+ * Mirrors aztec-nr's `protect_from_forgery` and must stay byte-compatible with it.
59
+ *
60
+ * @param secret - The raw shared secret `S` to protect.
61
+ * @param ephPk - The handshake's ephemeral public key.
62
+ * @param recipientPoint - The recipient's address point.
63
+ */
64
+ export async function protectFromForgery(secret: Point, ephPk: Point, recipientPoint: Point): Promise<Point> {
65
+ const scalar = await poseidon2HashWithSeparator(
66
+ [ephPk.x, ephPk.y, recipientPoint.x, recipientPoint.y],
67
+ DomainSeparator.HANDSHAKE_FORGERY_PROTECTION,
68
+ );
69
+ return Grumpkin.mul(secret, new GrumpkinScalar(scalar.toBigInt()));
70
+ }
package/src/noir/index.ts CHANGED
@@ -2,6 +2,7 @@ import type {
2
2
  ABIParameter,
3
3
  ABIParameterVisibility,
4
4
  AbiErrorType,
5
+ AbiNamedValue,
5
6
  AbiType,
6
7
  AbiValue,
7
8
  DebugFileMap,
@@ -73,7 +74,7 @@ export interface NoirCompiledContract {
73
74
  /** The events of the contract */
74
75
  outputs: {
75
76
  structs: Record<string, AbiType[]>;
76
- globals: Record<string, AbiValue[]>;
77
+ globals: Record<string, (AbiNamedValue | AbiValue)[]>;
77
78
  };
78
79
  /** The map of file ID to the source code and path of the file. */
79
80
  file_map: DebugFileMap;
package/src/p2p/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from './checkpoint_attestation.js';
4
4
  export * from './checkpoint_proposal.js';
5
5
  export * from './consensus_payload.js';
6
6
  export * from './gossipable.js';
7
- export * from './interface.js';
8
7
  export * from './signature_utils.js';
9
8
  export * from './signed_txs.js';
10
9
  export * from './topic_type.js';
@@ -86,9 +86,13 @@ export type ClientCircuitName =
86
86
  | 'private-kernel-init'
87
87
  | 'private-kernel-init-2'
88
88
  | 'private-kernel-init-3'
89
+ | 'private-kernel-init-4'
90
+ | 'private-kernel-init-5'
89
91
  | 'private-kernel-inner'
90
92
  | 'private-kernel-inner-2'
91
93
  | 'private-kernel-inner-3'
94
+ | 'private-kernel-inner-4'
95
+ | 'private-kernel-inner-5'
92
96
  | 'private-kernel-reset'
93
97
  | 'private-kernel-reset-tail'
94
98
  | 'private-kernel-reset-tail-to-public'
@@ -54,8 +54,6 @@ import type { Bufferable, Serializable, Tuple } from '@aztec/foundation/serializ
54
54
  import { MembershipWitness } from '@aztec/foundation/trees';
55
55
 
56
56
  import { FunctionSelector } from '../abi/function_selector.js';
57
- import { ContractStorageRead } from '../avm/contract_storage_read.js';
58
- import { ContractStorageUpdateRequest } from '../avm/contract_storage_update_request.js';
59
57
  import {
60
58
  AvmAccumulatedData,
61
59
  AvmAccumulatedDataArrayLengths,
@@ -82,7 +80,6 @@ import {
82
80
  AvmSequentialInsertHintPublicDataTree,
83
81
  AvmTxHint,
84
82
  } from '../avm/index.js';
85
- import { PublicDataRead } from '../avm/public_data_read.js';
86
83
  import { PublicDataWrite } from '../avm/public_data_write.js';
87
84
  import { AztecAddress } from '../aztec-address/index.js';
88
85
  import { BlockHash } from '../block/block_hash.js';
@@ -276,41 +273,6 @@ export function makePublicDataWrite(seed = 1) {
276
273
  return new PublicDataWrite(fr(seed), fr(seed + 1));
277
274
  }
278
275
 
279
- /**
280
- * Creates arbitrary public data read.
281
- * @param seed - The seed to use for generating the public data read.
282
- * @returns A public data read.
283
- */
284
- export function makePublicDataRead(seed = 1): PublicDataRead {
285
- return new PublicDataRead(fr(seed), fr(seed + 1), 0);
286
- }
287
-
288
- /**
289
- * Creates empty public data read.
290
- * @returns An empty public data read.
291
- */
292
- export function makeEmptyPublicDataRead(): PublicDataRead {
293
- return new PublicDataRead(fr(0), fr(0), 0);
294
- }
295
-
296
- /**
297
- * Creates arbitrary contract storage update request.
298
- * @param seed - The seed to use for generating the contract storage update request.
299
- * @returns A contract storage update request.
300
- */
301
- export function makeContractStorageUpdateRequest(seed = 1): ContractStorageUpdateRequest {
302
- return new ContractStorageUpdateRequest(fr(seed), fr(seed + 1), seed + 2);
303
- }
304
-
305
- /**
306
- * Creates arbitrary contract storage read.
307
- * @param seed - The seed to use for generating the contract storage read.
308
- * @returns A contract storage read.
309
- */
310
- export function makeContractStorageRead(seed = 1): ContractStorageRead {
311
- return new ContractStorageRead(fr(seed), fr(seed + 1), seed + 2);
312
- }
313
-
314
276
  function makeTxConstantData(seed = 1) {
315
277
  return new TxConstantData(
316
278
  makeBlockHeader(seed),
package/src/tx/index.ts CHANGED
@@ -21,7 +21,6 @@ export * from './tx_effect.js';
21
21
  export * from './public_simulation_output.js';
22
22
  export * from './tx_execution_request.js';
23
23
  export * from './validator/tx_validator.js';
24
- export * from './validator/empty_validator.js';
25
24
  export * from './validator/error_texts.js';
26
25
  export * from './capsule.js';
27
26
  export * from './fee_provider.js';
@@ -1,3 +1,4 @@
1
+ import { CircuitKind } from '@aztec/bb.js';
1
2
  import { Fr } from '@aztec/foundation/curves/bn254';
2
3
  import { type ZodFor, optional, schemas } from '@aztec/foundation/schemas';
3
4
 
@@ -125,6 +126,7 @@ export class TxProfileResult {
125
126
  bytecode: Buffer.from('random'),
126
127
  witness: new Map([[1, 'random']]),
127
128
  vk: Buffer.from('random'),
129
+ kind: CircuitKind.App,
128
130
  timings: {
129
131
  witgen: 1,
130
132
  gateCount: 1,
@@ -36,36 +36,3 @@ export class WorldStateRevision {
36
36
  );
37
37
  }
38
38
  }
39
-
40
- export class WorldStateRevisionWithHandle extends WorldStateRevision {
41
- constructor(
42
- forkId: number,
43
- blockNumber: number,
44
- includeUncommitted: boolean,
45
- public readonly handle: any,
46
- ) {
47
- super(forkId, blockNumber, includeUncommitted);
48
- }
49
-
50
- public toWorldStateRevision() {
51
- return new WorldStateRevision(this.forkId, this.blockNumber, this.includeUncommitted);
52
- }
53
-
54
- static fromWorldStateRevision(revision: WorldStateRevision, handle: any) {
55
- return new WorldStateRevisionWithHandle(revision.forkId, revision.blockNumber, revision.includeUncommitted, handle);
56
- }
57
-
58
- static override get schema() {
59
- return z
60
- .object({
61
- forkId: z.number(),
62
- blockNumber: z.number(),
63
- includeUncommitted: z.boolean(),
64
- handle: z.any(),
65
- })
66
- .transform(
67
- ({ forkId, blockNumber, includeUncommitted, handle }) =>
68
- new WorldStateRevisionWithHandle(forkId, blockNumber, includeUncommitted, handle),
69
- );
70
- }
71
- }
@@ -1,58 +0,0 @@
1
- import { Fr } from '@aztec/foundation/curves/bn254';
2
- import { BufferReader, FieldReader } from '@aztec/foundation/serialize';
3
- import type { AztecAddress } from '../aztec-address/index.js';
4
- /**
5
- * Contract storage read operation on a specific contract.
6
- *
7
- * Note: Similar to `PublicDataRead` but it's from the POV of contract storage so we are not working with public data
8
- * tree leaf index but storage slot index.
9
- */
10
- export declare class ContractStorageRead {
11
- /**
12
- * Storage slot we are reading from.
13
- */
14
- readonly storageSlot: Fr;
15
- /**
16
- * Value read from the storage slot.
17
- */
18
- readonly currentValue: Fr;
19
- /**
20
- * Side effect counter tracking position of this event in tx execution.
21
- */
22
- readonly counter: number;
23
- /**
24
- * Contract address whose storage is being read.
25
- */
26
- contractAddress?: AztecAddress | undefined;
27
- constructor(
28
- /**
29
- * Storage slot we are reading from.
30
- */
31
- storageSlot: Fr,
32
- /**
33
- * Value read from the storage slot.
34
- */
35
- currentValue: Fr,
36
- /**
37
- * Side effect counter tracking position of this event in tx execution.
38
- */
39
- counter: number,
40
- /**
41
- * Contract address whose storage is being read.
42
- */
43
- contractAddress?: AztecAddress | undefined);
44
- static from(args: {
45
- storageSlot: Fr;
46
- currentValue: Fr;
47
- counter: number;
48
- contractAddress?: AztecAddress;
49
- }): ContractStorageRead;
50
- toBuffer(): Buffer<ArrayBufferLike>;
51
- static fromBuffer(buffer: Buffer | BufferReader): ContractStorageRead;
52
- static empty(): ContractStorageRead;
53
- isEmpty(): boolean;
54
- toFriendlyJSON(): string;
55
- toFields(): Fr[];
56
- static fromFields(fields: Fr[] | FieldReader): ContractStorageRead;
57
- }
58
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJhY3Rfc3RvcmFnZV9yZWFkLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXZtL2NvbnRyYWN0X3N0b3JhZ2VfcmVhZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEQsT0FBTyxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQXFCLE1BQ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ceRoot":"","sources":["../../src/avm/contract_storage_read.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;GAKG;AACH,qBAAa,mBAAmB;IAE5B;;OAEG;aACa,WAAW,EAAE,EAAE;IAC/B;;OAEG;aACa,YAAY,EAAE,EAAE;IAChC;;OAEG;aACa,OAAO,EAAE,MAAM;IAC/B;;OAEG;IACI,eAAe,CAAC;IAhBzB;IACE;;OAEG;IACa,WAAW,EAAE,EAAE;IAC/B;;OAEG;IACa,YAAY,EAAE,EAAE;IAChC;;OAEG;IACa,OAAO,EAAE,MAAM;IAC/B;;OAEG;IACI,eAAe,CAAC,0BAAc,EACnC;IAEJ,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE;QAAE,WAAW,EAAE,EAAE,CAAC;QAAC,YAAY,EAAE,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,eAAe,CAAC,EAAE,YAAY,CAAA;KAAE,uBAEvG;IAED,QAAQ,4BAEP;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,uBAG9C;IAED,MAAM,CAAC,KAAK,wBAEX;IAED,OAAO,YAEN;IAED,cAAc,WAEb;IAED,QAAQ,IAAI,EAAE,EAAE,CAQf;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,mBAAmB,CAQjE;CACF"}
@@ -1,65 +0,0 @@
1
- import { CONTRACT_STORAGE_READ_LENGTH } from '@aztec/constants';
2
- import { Fr } from '@aztec/foundation/curves/bn254';
3
- import { BufferReader, FieldReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
- /**
5
- * Contract storage read operation on a specific contract.
6
- *
7
- * Note: Similar to `PublicDataRead` but it's from the POV of contract storage so we are not working with public data
8
- * tree leaf index but storage slot index.
9
- */ export class ContractStorageRead {
10
- storageSlot;
11
- currentValue;
12
- counter;
13
- contractAddress;
14
- constructor(/**
15
- * Storage slot we are reading from.
16
- */ storageSlot, /**
17
- * Value read from the storage slot.
18
- */ currentValue, /**
19
- * Side effect counter tracking position of this event in tx execution.
20
- */ counter, /**
21
- * Contract address whose storage is being read.
22
- */ contractAddress){
23
- this.storageSlot = storageSlot;
24
- this.currentValue = currentValue;
25
- this.counter = counter;
26
- this.contractAddress = contractAddress;
27
- }
28
- static from(args) {
29
- return new ContractStorageRead(args.storageSlot, args.currentValue, args.counter, args.contractAddress);
30
- }
31
- toBuffer() {
32
- return serializeToBuffer(this.storageSlot, this.currentValue, new Fr(this.counter));
33
- }
34
- static fromBuffer(buffer) {
35
- const reader = BufferReader.asReader(buffer);
36
- return new ContractStorageRead(Fr.fromBuffer(reader), Fr.fromBuffer(reader), Fr.fromBuffer(reader).toNumber());
37
- }
38
- static empty() {
39
- return new ContractStorageRead(Fr.ZERO, Fr.ZERO, 0);
40
- }
41
- isEmpty() {
42
- return this.storageSlot.isZero() && this.currentValue.isZero() && this.counter == 0;
43
- }
44
- toFriendlyJSON() {
45
- return `Slot=${this.storageSlot.toFriendlyJSON()}: ${this.currentValue.toFriendlyJSON()}`;
46
- }
47
- toFields() {
48
- const fields = [
49
- this.storageSlot,
50
- this.currentValue,
51
- new Fr(this.counter)
52
- ];
53
- if (fields.length !== CONTRACT_STORAGE_READ_LENGTH) {
54
- throw new Error(`Invalid number of fields for ContractStorageRead. Expected ${CONTRACT_STORAGE_READ_LENGTH}, got ${fields.length}`);
55
- }
56
- return fields;
57
- }
58
- static fromFields(fields) {
59
- const reader = FieldReader.asReader(fields);
60
- const storageSlot = reader.readField();
61
- const currentValue = reader.readField();
62
- const counter = reader.readField().toNumber();
63
- return new ContractStorageRead(storageSlot, currentValue, counter);
64
- }
65
- }
@@ -1,65 +0,0 @@
1
- import { Fr } from '@aztec/foundation/curves/bn254';
2
- import { BufferReader, FieldReader } from '@aztec/foundation/serialize';
3
- import type { FieldsOf } from '@aztec/foundation/types';
4
- import type { AztecAddress } from '../aztec-address/index.js';
5
- /**
6
- * Contract storage update request for a slot on a specific contract.
7
- *
8
- * Note: Similar to `PublicDataUpdateRequest` but it's from the POV of contract storage so we are not working with
9
- * public data tree leaf index but storage slot index.
10
- */
11
- export declare class ContractStorageUpdateRequest {
12
- /**
13
- * Storage slot we are updating.
14
- */
15
- readonly storageSlot: Fr;
16
- /**
17
- * New value of the storage slot.
18
- */
19
- readonly newValue: Fr;
20
- /**
21
- * Side effect counter tracking position of this event in tx execution.
22
- */
23
- readonly counter: number;
24
- /**
25
- * Contract address whose storage is being read.
26
- */
27
- contractAddress?: AztecAddress | undefined;
28
- constructor(
29
- /**
30
- * Storage slot we are updating.
31
- */
32
- storageSlot: Fr,
33
- /**
34
- * New value of the storage slot.
35
- */
36
- newValue: Fr,
37
- /**
38
- * Side effect counter tracking position of this event in tx execution.
39
- */
40
- counter: number,
41
- /**
42
- * Contract address whose storage is being read.
43
- */
44
- contractAddress?: AztecAddress | undefined);
45
- toBuffer(): Buffer<ArrayBufferLike>;
46
- static fromBuffer(buffer: Buffer | BufferReader): ContractStorageUpdateRequest;
47
- /**
48
- * Create ContractStorageUpdateRequest from a fields dictionary.
49
- * @param fields - The dictionary.
50
- * @returns A ContractStorageUpdateRequest object.
51
- */
52
- static from(fields: FieldsOf<ContractStorageUpdateRequest>): ContractStorageUpdateRequest;
53
- /**
54
- * Serialize into a field array. Low-level utility.
55
- * @param fields - Object with fields.
56
- * @returns The array.
57
- */
58
- static getFields(fields: FieldsOf<ContractStorageUpdateRequest>): readonly [Fr, Fr, number, AztecAddress | undefined];
59
- static empty(): ContractStorageUpdateRequest;
60
- isEmpty(): boolean;
61
- toFriendlyJSON(): string;
62
- toFields(): Fr[];
63
- static fromFields(fields: Fr[] | FieldReader): ContractStorageUpdateRequest;
64
- }
65
- //# source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UUFBUSxDQUFDLDRCQUE0QixDQUFDLEdBQUcsNEJBQTRCLENBRXhGO0lBRUQ7Ozs7T0FJRztJQUNILE1BQU0sQ0FBQyxTQUFTLENBQUMsTUFBTSxFQUFFLFFBQVEsQ0FBQyw0QkFBNEIsQ0FBQyx1REFFOUQ7SUFFRCxNQUFNLENBQUMsS0FBSyxpQ0FFWDtJQUVELE9BQU8sWUFFTjtJQUVELGNBQWMsV0FJYjtJQUVELFFBQVEsSUFBSSxFQUFFLEVBQUUsQ0FRZjtJQUVELE1BQU0sQ0FBQyxVQUFVLENBQUMsTUFBTSxFQUFFLEVBQUUsRUFBRSxHQUFHLFdBQVcsR0FBRyw0QkFBNEIsQ0FPMUU7Q0FDRiJ9
@@ -1 +0,0 @@
1
- {"version":3,"file":"contract_storage_update_request.d.ts","sourceRoot":"","sources":["../../src/avm/contract_storage_update_request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAC3F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;GAKG;AACH,qBAAa,4BAA4B;IAErC;;OAEG;aACa,WAAW,EAAE,EAAE;IAC/B;;OAEG;aACa,QAAQ,EAAE,EAAE;IAC5B;;OAEG;aACa,OAAO,EAAE,MAAM;IAC/B;;OAEG;IACI,eAAe,CAAC;IAhBzB;IACE;;OAEG;IACa,WAAW,EAAE,EAAE;IAC/B;;OAEG;IACa,QAAQ,EAAE,EAAE;IAC5B;;OAEG;IACa,OAAO,EAAE,MAAM;IAC/B;;OAEG;IACI,eAAe,CAAC,0BAAc,EACnC;IAEJ,QAAQ,4BAEP;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,gCAG9C;IAED;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,4BAA4B,CAAC,GAAG,4BAA4B,CAExF;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,4BAA4B,CAAC,uDAE9D;IAED,MAAM,CAAC,KAAK,iCAEX;IAED,OAAO,YAEN;IAED,cAAc,WAIb;IAED,QAAQ,IAAI,EAAE,EAAE,CAQf;IAED,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,4BAA4B,CAO1E;CACF"}
@@ -1,80 +0,0 @@
1
- import { CONTRACT_STORAGE_UPDATE_REQUEST_LENGTH } from '@aztec/constants';
2
- import { Fr } from '@aztec/foundation/curves/bn254';
3
- import { BufferReader, FieldReader, serializeToBuffer } from '@aztec/foundation/serialize';
4
- /**
5
- * Contract storage update request for a slot on a specific contract.
6
- *
7
- * Note: Similar to `PublicDataUpdateRequest` but it's from the POV of contract storage so we are not working with
8
- * public data tree leaf index but storage slot index.
9
- */ export class ContractStorageUpdateRequest {
10
- storageSlot;
11
- newValue;
12
- counter;
13
- contractAddress;
14
- constructor(/**
15
- * Storage slot we are updating.
16
- */ storageSlot, /**
17
- * New value of the storage slot.
18
- */ newValue, /**
19
- * Side effect counter tracking position of this event in tx execution.
20
- */ counter, /**
21
- * Contract address whose storage is being read.
22
- */ contractAddress){
23
- this.storageSlot = storageSlot;
24
- this.newValue = newValue;
25
- this.counter = counter;
26
- this.contractAddress = contractAddress;
27
- }
28
- toBuffer() {
29
- return serializeToBuffer(this.storageSlot, this.newValue, this.counter);
30
- }
31
- static fromBuffer(buffer) {
32
- const reader = BufferReader.asReader(buffer);
33
- return new ContractStorageUpdateRequest(Fr.fromBuffer(reader), Fr.fromBuffer(reader), reader.readNumber());
34
- }
35
- /**
36
- * Create ContractStorageUpdateRequest from a fields dictionary.
37
- * @param fields - The dictionary.
38
- * @returns A ContractStorageUpdateRequest object.
39
- */ static from(fields) {
40
- return new ContractStorageUpdateRequest(...ContractStorageUpdateRequest.getFields(fields));
41
- }
42
- /**
43
- * Serialize into a field array. Low-level utility.
44
- * @param fields - Object with fields.
45
- * @returns The array.
46
- */ static getFields(fields) {
47
- return [
48
- fields.storageSlot,
49
- fields.newValue,
50
- fields.counter,
51
- fields.contractAddress
52
- ];
53
- }
54
- static empty() {
55
- return new ContractStorageUpdateRequest(Fr.ZERO, Fr.ZERO, 0);
56
- }
57
- isEmpty() {
58
- return this.storageSlot.isZero() && this.newValue.isZero();
59
- }
60
- toFriendlyJSON() {
61
- return `Slot=${this.storageSlot.toFriendlyJSON()}: ${this.newValue.toFriendlyJSON()}, sideEffectCounter=${this.counter}`;
62
- }
63
- toFields() {
64
- const fields = [
65
- this.storageSlot,
66
- this.newValue,
67
- new Fr(this.counter)
68
- ];
69
- if (fields.length !== CONTRACT_STORAGE_UPDATE_REQUEST_LENGTH) {
70
- throw new Error(`Invalid number of fields for ContractStorageUpdateRequest. Expected ${CONTRACT_STORAGE_UPDATE_REQUEST_LENGTH}, got ${fields.length}`);
71
- }
72
- return fields;
73
- }
74
- static fromFields(fields) {
75
- const reader = FieldReader.asReader(fields);
76
- const storageSlot = reader.readField();
77
- const newValue = reader.readField();
78
- return new ContractStorageUpdateRequest(storageSlot, newValue, reader.readU32());
79
- }
80
- }
@@ -1,43 +0,0 @@
1
- import { Fr } from '@aztec/foundation/curves/bn254';
2
- import { BufferReader, FieldReader } from '@aztec/foundation/serialize';
3
- import type { FieldsOf } from '@aztec/foundation/types';
4
- import { AztecAddress } from '../aztec-address/index.js';
5
- import { Gas } from '../gas/gas.js';
6
- import { CallContext } from '../tx/call_context.js';
7
- import { RevertCode } from './revert_code.js';
8
- /**
9
- * Compressed call stack item on a public call.
10
- */
11
- export declare class PublicCallStackItemCompressed {
12
- contractAddress: AztecAddress;
13
- callContext: CallContext;
14
- argsHash: Fr;
15
- returnsHash: Fr;
16
- revertCode: RevertCode;
17
- /** How much gas was available for execution. */
18
- startGasLeft: Gas;
19
- /** How much gas was left after execution. */
20
- endGasLeft: Gas;
21
- constructor(contractAddress: AztecAddress, callContext: CallContext, argsHash: Fr, returnsHash: Fr, revertCode: RevertCode,
22
- /** How much gas was available for execution. */
23
- startGasLeft: Gas,
24
- /** How much gas was left after execution. */
25
- endGasLeft: Gas);
26
- static getFields(fields: FieldsOf<PublicCallStackItemCompressed>): readonly [AztecAddress, CallContext, Fr, Fr, RevertCode, Gas, Gas];
27
- toFields(): Fr[];
28
- toBuffer(): Buffer<ArrayBufferLike>;
29
- /**
30
- * Deserializes from a buffer or reader.
31
- * @param buffer - Buffer or reader to read from.
32
- * @returns The deserialized instance.
33
- */
34
- static fromBuffer(buffer: Buffer | BufferReader): PublicCallStackItemCompressed;
35
- static fromFields(fields: Fr[] | FieldReader): PublicCallStackItemCompressed;
36
- /**
37
- * Returns a new instance of PublicCallStackItem with zero contract address, function data and public inputs.
38
- * @returns A new instance of PublicCallStackItem with zero contract address, function data and public inputs.
39
- */
40
- static empty(): PublicCallStackItemCompressed;
41
- isEmpty(): boolean;
42
- }
43
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2NhbGxfc3RhY2tfaXRlbV9jb21wcmVzc2VkLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXZtL3B1YmxpY19jYWxsX3N0YWNrX2l0ZW1fY29tcHJlc3NlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsRUFBRSxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEQsT0FBTyxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQXdDLE1BQU0sNkJBQTZCLENBQUM7QUFDOUcsT0FBTyxLQUFLLEVBQUUsUUFBUSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFFeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNL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JBQTZCLENBWTNFO0lBRUQ7OztPQUdHO0lBQ0gsT0FBYyxLQUFLLElBQUksNkJBQTZCLENBVW5EO0lBRUQsT0FBTyxZQVVOO0NBQ0YifQ==
@@ -1 +0,0 @@
1
- {"version":3,"file":"public_call_stack_item_compressed.d.ts","sourceRoot":"","sources":["../../src/avm/public_call_stack_item_compressed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAwC,MAAM,6BAA6B,CAAC;AAC9G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C;;GAEG;AACH,qBAAa,6BAA6B;IAE/B,eAAe,EAAE,YAAY;IAC7B,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,UAAU;IAC7B,gDAAgD;IACzC,YAAY,EAAE,GAAG;IACxB,6CAA6C;IACtC,UAAU,EAAE,GAAG;IATxB,YACS,eAAe,EAAE,YAAY,EAC7B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,EAAE,EACZ,WAAW,EAAE,EAAE,EACf,UAAU,EAAE,UAAU;IAC7B,gDAAgD;IACzC,YAAY,EAAE,GAAG;IACxB,6CAA6C;IACtC,UAAU,EAAE,GAAG,EACpB;IAEJ,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,6BAA6B,CAAC,sEAU/D;IAED,QAAQ,IAAI,EAAE,EAAE,CAQf;IAED,QAAQ,4BAEP;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC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