@aztec/aztec.js 0.0.1-commit.1bb068fb5 → 0.0.1-commit.217f559981

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 (40) hide show
  1. package/dest/api/wallet.d.ts +2 -2
  2. package/dest/api/wallet.d.ts.map +1 -1
  3. package/dest/contract/batch_call.d.ts +3 -3
  4. package/dest/contract/batch_call.d.ts.map +1 -1
  5. package/dest/contract/batch_call.js +4 -4
  6. package/dest/contract/contract_function_interaction.js +1 -1
  7. package/dest/contract/deploy_method.d.ts +16 -4
  8. package/dest/contract/deploy_method.d.ts.map +1 -1
  9. package/dest/contract/deploy_method.js +14 -6
  10. package/dest/contract/interaction_options.d.ts +8 -1
  11. package/dest/contract/interaction_options.d.ts.map +1 -1
  12. package/dest/contract/protocol_contracts/auth-registry.d.ts +10 -1
  13. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  14. package/dest/contract/protocol_contracts/auth-registry.js +498 -59
  15. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +1 -1
  16. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  17. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +9 -1
  18. package/dest/contract/protocol_contracts/public-checks.d.ts +1 -1
  19. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  20. package/dest/contract/protocol_contracts/public-checks.js +9 -1
  21. package/dest/wallet/capabilities.d.ts +13 -5
  22. package/dest/wallet/capabilities.d.ts.map +1 -1
  23. package/dest/wallet/deploy_account_method.d.ts +15 -4
  24. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  25. package/dest/wallet/deploy_account_method.js +26 -0
  26. package/dest/wallet/wallet.d.ts +156 -18
  27. package/dest/wallet/wallet.d.ts.map +1 -1
  28. package/dest/wallet/wallet.js +12 -6
  29. package/package.json +9 -9
  30. package/src/api/wallet.ts +1 -1
  31. package/src/contract/batch_call.ts +6 -11
  32. package/src/contract/contract_function_interaction.ts +1 -1
  33. package/src/contract/deploy_method.ts +26 -9
  34. package/src/contract/interaction_options.ts +7 -0
  35. package/src/contract/protocol_contracts/auth-registry.ts +237 -37
  36. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +3 -1
  37. package/src/contract/protocol_contracts/public-checks.ts +3 -1
  38. package/src/wallet/capabilities.ts +13 -4
  39. package/src/wallet/deploy_account_method.ts +39 -2
  40. package/src/wallet/wallet.ts +10 -7
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAA6B,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,gBAAgB,EAErB,KAAK,uBAAuB,EAC5B,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,KAAK,2BAA2B,EAAqC,MAAM,wBAAwB,CAAC;AAC7G,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAoB,KAAK,YAAY,EAA6B,MAAM,uBAAuB,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,OAAO,EACP,YAAY,EACZ,MAAM,EACN,eAAe,EAEf,kBAAkB,EAClB,uBAAuB,EAExB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAC;AAkFH,QAAA,MAAe,mBAAmB;;;;;;;;;;;;;;;;;;QAAU,mBAAmB;;;;;;;;;;;;;;;;;;MAA4C,CAAC;AAE5G,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;AAEpD,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,MAAM,CAI7C,CAAC"}
@@ -4,7 +4,7 @@ import { AuthWitness } from '@aztec/stdlib/auth-witness';
4
4
  import { ContractInstanceWithAddressSchema } from '@aztec/stdlib/contract';
5
5
  import { Gas } from '@aztec/stdlib/gas';
6
6
  import { AbiDecodedSchema, optional, schemas, zodFor } from '@aztec/stdlib/schemas';
7
- import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilitySimulationResult, inTxSchema } from '@aztec/stdlib/tx';
7
+ import { Capsule, HashedValues, TxHash, TxProfileResult, TxReceipt, TxSimulationResult, UtilityExecutionResult, inTxSchema } from '@aztec/stdlib/tx';
8
8
  import { z } from 'zod';
9
9
  import { NO_WAIT } from '../contract/interaction_options.js';
10
10
  export const ExecutionPayloadSchema = z.object({
@@ -46,7 +46,8 @@ export const SendOptionsSchema = z.object({
46
46
  wait: optional(z.union([
47
47
  z.literal(NO_WAIT),
48
48
  WaitOptsSchema
49
- ]))
49
+ ])),
50
+ additionalScopes: optional(z.array(schemas.AztecAddress))
50
51
  });
51
52
  export const SimulateOptionsSchema = z.object({
52
53
  from: schemas.AztecAddress,
@@ -55,7 +56,8 @@ export const SimulateOptionsSchema = z.object({
55
56
  fee: optional(WalletSimulationFeeOptionSchema),
56
57
  skipTxValidation: optional(z.boolean()),
57
58
  skipFeeEnforcement: optional(z.boolean()),
58
- includeMetadata: optional(z.boolean())
59
+ includeMetadata: optional(z.boolean()),
60
+ additionalScopes: optional(z.array(schemas.AztecAddress))
59
61
  });
60
62
  export const ProfileOptionsSchema = SimulateOptionsSchema.extend({
61
63
  profileMode: z.enum([
@@ -121,7 +123,11 @@ export const ContractFunctionPatternSchema = z.object({
121
123
  function: z.union([
122
124
  z.string(),
123
125
  z.literal('*')
124
- ])
126
+ ]),
127
+ additionalScopes: optional(z.union([
128
+ z.array(schemas.AztecAddress),
129
+ z.literal('*')
130
+ ]))
125
131
  });
126
132
  export const AccountsCapabilitySchema = z.object({
127
133
  type: z.literal('accounts'),
@@ -253,10 +259,10 @@ export const WalletCapabilitiesSchema = z.object({
253
259
  }))),
254
260
  registerContract: z.function().args(ContractInstanceWithAddressSchema, optional(ContractArtifactSchema), optional(schemas.Fr)).returns(ContractInstanceWithAddressSchema),
255
261
  simulateTx: z.function().args(ExecutionPayloadSchema, SimulateOptionsSchema).returns(TxSimulationResult.schema),
256
- simulateUtility: z.function().args(FunctionCall.schema, z.object({
262
+ executeUtility: z.function().args(FunctionCall.schema, z.object({
257
263
  scope: schemas.AztecAddress,
258
264
  authWitnesses: optional(z.array(AuthWitness.schema))
259
- })).returns(UtilitySimulationResult.schema),
265
+ })).returns(UtilityExecutionResult.schema),
260
266
  profileTx: z.function().args(ExecutionPayloadSchema, ProfileOptionsSchema).returns(TxProfileResult.schema),
261
267
  sendTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(z.union([
262
268
  TxHash.schema,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aztec/aztec.js",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
4
- "version": "0.0.1-commit.1bb068fb5",
4
+ "version": "0.0.1-commit.217f559981",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./abi": "./dest/api/abi.js",
@@ -94,20 +94,20 @@
94
94
  ]
95
95
  },
96
96
  "dependencies": {
97
- "@aztec/constants": "0.0.1-commit.1bb068fb5",
98
- "@aztec/entrypoints": "0.0.1-commit.1bb068fb5",
99
- "@aztec/ethereum": "0.0.1-commit.1bb068fb5",
100
- "@aztec/foundation": "0.0.1-commit.1bb068fb5",
101
- "@aztec/l1-artifacts": "0.0.1-commit.1bb068fb5",
102
- "@aztec/protocol-contracts": "0.0.1-commit.1bb068fb5",
103
- "@aztec/stdlib": "0.0.1-commit.1bb068fb5",
97
+ "@aztec/constants": "0.0.1-commit.217f559981",
98
+ "@aztec/entrypoints": "0.0.1-commit.217f559981",
99
+ "@aztec/ethereum": "0.0.1-commit.217f559981",
100
+ "@aztec/foundation": "0.0.1-commit.217f559981",
101
+ "@aztec/l1-artifacts": "0.0.1-commit.217f559981",
102
+ "@aztec/protocol-contracts": "0.0.1-commit.217f559981",
103
+ "@aztec/stdlib": "0.0.1-commit.217f559981",
104
104
  "axios": "^1.12.0",
105
105
  "tslib": "^2.4.0",
106
106
  "viem": "npm:@aztec/viem@2.38.2",
107
107
  "zod": "^3.23.8"
108
108
  },
109
109
  "devDependencies": {
110
- "@aztec/builder": "0.0.1-commit.1bb068fb5",
110
+ "@aztec/builder": "0.0.1-commit.217f559981",
111
111
  "@jest/globals": "^30.0.0",
112
112
  "@types/jest": "^30.0.0",
113
113
  "@types/node": "^22.15.17",
package/src/api/wallet.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export {
2
2
  type Aliased,
3
3
  type SimulateOptions,
4
- type SimulateUtilityOptions,
4
+ type ExecuteUtilityOptions,
5
5
  type ProfileOptions,
6
6
  type SendOptions,
7
7
  type BatchableMethods,
@@ -1,10 +1,5 @@
1
1
  import { type FunctionCall, FunctionType, decodeFromAbi } from '@aztec/stdlib/abi';
2
- import {
3
- ExecutionPayload,
4
- TxSimulationResult,
5
- UtilitySimulationResult,
6
- mergeExecutionPayloads,
7
- } from '@aztec/stdlib/tx';
2
+ import { ExecutionPayload, TxSimulationResult, UtilityExecutionResult, mergeExecutionPayloads } from '@aztec/stdlib/tx';
8
3
 
9
4
  import type { BatchedMethod, Wallet } from '../wallet/wallet.js';
10
5
  import { BaseContractInteraction } from './base_contract_interaction.js';
@@ -42,9 +37,9 @@ export class BatchCall extends BaseContractInteraction {
42
37
  }
43
38
 
44
39
  /**
45
- * Simulates the batch, supporting private, public and utility functions. Although this is a single
40
+ * Simulates/executes the batch, supporting private, public and utility functions. Although this is a single
46
41
  * interaction with the wallet, private and public functions will be grouped into a single ExecutionPayload
47
- * that the wallet will simulate as a single transaction. Utility function calls will simply be executed
42
+ * that the wallet will simulate as a single transaction. Utility function calls will be executed
48
43
  * one by one.
49
44
  * @param options - An optional object containing additional configuration for the interaction.
50
45
  * @returns The results of all the interactions that make up the batch
@@ -81,7 +76,7 @@ export class BatchCall extends BaseContractInteraction {
81
76
  // Add utility calls to batch
82
77
  for (const [call] of utility) {
83
78
  batchRequests.push({
84
- name: 'simulateUtility' as const,
79
+ name: 'executeUtility' as const,
85
80
  args: [call, { scope: options.from, authWitnesses: options.authWitnesses }],
86
81
  });
87
82
  }
@@ -111,8 +106,8 @@ export class BatchCall extends BaseContractInteraction {
111
106
  for (let i = 0; i < utility.length; i++) {
112
107
  const [call, resultIndex] = utility[i];
113
108
  const wrappedResult = batchResults[i];
114
- if (wrappedResult.name === 'simulateUtility') {
115
- const rawReturnValues = (wrappedResult.result as UtilitySimulationResult).result;
109
+ if (wrappedResult.name === 'executeUtility') {
110
+ const rawReturnValues = (wrappedResult.result as UtilityExecutionResult).result;
116
111
  results[resultIndex] = rawReturnValues ? decodeFromAbi(call.returnTypes, rawReturnValues) : [];
117
112
  }
118
113
  }
@@ -111,7 +111,7 @@ export class ContractFunctionInteraction extends BaseContractInteraction {
111
111
  // docs:end:simulate
112
112
  if (this.functionDao.functionType == FunctionType.UTILITY) {
113
113
  const call = await this.getFunctionCall();
114
- const utilityResult = await this.wallet.simulateUtility(call, {
114
+ const utilityResult = await this.wallet.executeUtility(call, {
115
115
  scope: options.from,
116
116
  authWitnesses: options.authWitnesses,
117
117
  });
@@ -14,7 +14,7 @@ import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
14
14
 
15
15
  import { publishContractClass } from '../deployment/publish_class.js';
16
16
  import { publishInstance } from '../deployment/publish_instance.js';
17
- import type { SendOptions, Wallet } from '../wallet/wallet.js';
17
+ import type { ProfileOptions, SendOptions, SimulateOptions, Wallet } from '../wallet/wallet.js';
18
18
  import { BaseContractInteraction } from './base_contract_interaction.js';
19
19
  import type { ContractBase } from './contract_base.js';
20
20
  import { ContractFunctionInteraction } from './contract_function_interaction.js';
@@ -82,7 +82,7 @@ export type DeployOptionsWithoutWait = Omit<RequestDeployOptions, 'deployer'> &
82
82
  * is mutually exclusive with "deployer"
83
83
  */
84
84
  universalDeploy?: boolean;
85
- } & Pick<SendInteractionOptionsWithoutWait, 'from' | 'fee'>;
85
+ } & Pick<SendInteractionOptionsWithoutWait, 'from' | 'fee' | 'additionalScopes'>;
86
86
 
87
87
  /**
88
88
  * Extends the deployment options with the required parameters to send the transaction.
@@ -207,7 +207,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
207
207
  * @param options - Deploy options with wait parameter
208
208
  * @returns Send options with wait parameter
209
209
  */
210
- private convertDeployOptionsToSendOptions<W extends DeployInteractionWaitOptions>(
210
+ protected convertDeployOptionsToSendOptions<W extends DeployInteractionWaitOptions>(
211
211
  options: DeployOptions<W>,
212
212
  // eslint-disable-next-line jsdoc/require-jsdoc
213
213
  ): SendOptions<W extends { returnReceipt: true } ? WaitOpts : W> {
@@ -219,6 +219,24 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
219
219
  } as any;
220
220
  }
221
221
 
222
+ /**
223
+ * Converts deploy simulation options into wallet-level simulate options.
224
+ * @param options - The deploy simulation options to convert.
225
+ */
226
+ protected convertDeployOptionsToSimulateOptions(options: SimulateDeployOptions): SimulateOptions {
227
+ return toSimulateOptions(options);
228
+ }
229
+
230
+ /**
231
+ * Converts deploy profile options into wallet-level profile options.
232
+ * @param options - The deploy profile options to convert.
233
+ */
234
+ protected convertDeployOptionsToProfileOptions(
235
+ options: DeployOptionsWithoutWait & ProfileInteractionOptions,
236
+ ): ProfileOptions {
237
+ return toProfileOptions(options);
238
+ }
239
+
222
240
  /**
223
241
  * Adds this contract to the wallet and returns the Contract object.
224
242
  * @param options - Deployment options.
@@ -368,7 +386,10 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
368
386
  */
369
387
  public async simulate(options: SimulateDeployOptions): Promise<SimulationReturn<true>> {
370
388
  const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
371
- const simulatedTx = await this.wallet.simulateTx(executionPayload, toSimulateOptions(options));
389
+ const simulatedTx = await this.wallet.simulateTx(
390
+ executionPayload,
391
+ this.convertDeployOptionsToSimulateOptions(options),
392
+ );
372
393
 
373
394
  const { gasLimits, teardownGasLimits } = getGasLimits(simulatedTx, options.fee?.estimatedGasPadding);
374
395
  this.log.verbose(
@@ -390,11 +411,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
390
411
  */
391
412
  public async profile(options: DeployOptionsWithoutWait & ProfileInteractionOptions): Promise<TxProfileResult> {
392
413
  const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
393
- return await this.wallet.profileTx(executionPayload, {
394
- ...toProfileOptions(options),
395
- profileMode: options.profileMode,
396
- skipProofGeneration: options.skipProofGeneration,
397
- });
414
+ return await this.wallet.profileTx(executionPayload, this.convertDeployOptionsToProfileOptions(options));
398
415
  }
399
416
 
400
417
  /** Return this deployment address. */
@@ -82,6 +82,13 @@ export type SendInteractionOptionsWithoutWait = RequestInteractionOptions & {
82
82
  from: AztecAddress;
83
83
  /** The fee options for the transaction. */
84
84
  fee?: InteractionFeeOptions;
85
+ /**
86
+ * Additional addresses whose private state and keys should be accessible during execution,
87
+ * beyond the sender's. Required when the transaction needs to access private state or keys
88
+ * belonging to an address other than `from`, e.g. withdrawing from an escrow that holds
89
+ * its own private notes.
90
+ */
91
+ additionalScopes?: AztecAddress[];
85
92
  };
86
93
 
87
94
  /**
@@ -21,38 +21,33 @@ const AuthRegistryContractArtifact: ContractArtifact = {
21
21
  functions: [
22
22
  {
23
23
  ...{
24
- functionType: FunctionType.PUBLIC,
25
- name: 'public_dispatch',
24
+ functionType: FunctionType.PRIVATE,
25
+ name: 'set_authorized_private',
26
26
  isOnlySelf: false,
27
27
  isStatic: false,
28
28
  isInitializer: false,
29
- parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
29
+ parameters: [
30
+ {
31
+ name: 'approver',
32
+ type: {
33
+ kind: 'struct',
34
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
35
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
36
+ },
37
+ visibility: 'private',
38
+ },
39
+ { name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
40
+ { name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
41
+ ],
30
42
  returnTypes: [],
31
43
  errorTypes: {
32
- '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
33
- '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
34
- '5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
35
- '11691217184967371519': {
36
- error_kind: 'string',
37
- string: 'Function is_reject_all can only be called statically',
38
- },
39
- '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
40
- '13455385521185560676': {
41
- error_kind: 'string',
42
- string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
43
- },
44
- '13929691561421487185': {
45
- error_kind: 'string',
46
- string: 'Function _set_authorized can only be called by the same contract',
47
- },
44
+ '7555607922535724711': { error_kind: 'string', string: 'Preimage mismatch' },
45
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
46
+ '9894212961085021188': { error_kind: 'string', string: 'Message not authorized by account' },
47
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
48
48
  '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
49
49
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
50
50
  '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
51
- '17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
52
- '17312933876399746100': {
53
- error_kind: 'string',
54
- string: 'Function is_consumable can only be called statically',
55
- },
56
51
  },
57
52
  },
58
53
  bytecode: Buffer.from([]),
@@ -60,14 +55,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
60
55
  },
61
56
  {
62
57
  ...{
63
- functionType: FunctionType.PRIVATE,
64
- name: 'set_authorized_private',
58
+ functionType: FunctionType.UTILITY,
59
+ name: 'utility_is_consumable',
65
60
  isOnlySelf: false,
66
61
  isStatic: false,
67
62
  isInitializer: false,
68
63
  parameters: [
69
64
  {
70
- name: 'approver',
65
+ name: 'on_behalf_of',
71
66
  type: {
72
67
  kind: 'struct',
73
68
  fields: [{ name: 'inner', type: { kind: 'field' } }],
@@ -76,14 +71,18 @@ const AuthRegistryContractArtifact: ContractArtifact = {
76
71
  visibility: 'private',
77
72
  },
78
73
  { name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
79
- { name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
80
74
  ],
81
- returnTypes: [],
75
+ returnTypes: [{ kind: 'boolean' }],
82
76
  errorTypes: {
83
- '7555607922535724711': { error_kind: 'string', string: 'Preimage mismatch' },
84
- '9894212961085021188': { error_kind: 'string', string: 'Message not authorized by account' },
77
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
78
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
79
+ '13455385521185560676': {
80
+ error_kind: 'string',
81
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
82
+ },
85
83
  '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
86
84
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
85
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
87
86
  },
88
87
  },
89
88
  bytecode: Buffer.from([]),
@@ -92,33 +91,219 @@ const AuthRegistryContractArtifact: ContractArtifact = {
92
91
  {
93
92
  ...{
94
93
  functionType: FunctionType.UTILITY,
95
- name: 'utility_is_consumable',
94
+ name: 'process_message',
96
95
  isOnlySelf: false,
97
96
  isStatic: false,
98
97
  isInitializer: false,
99
98
  parameters: [
100
99
  {
101
- name: 'on_behalf_of',
100
+ name: 'message_ciphertext',
102
101
  type: {
103
102
  kind: 'struct',
104
- fields: [{ name: 'inner', type: { kind: 'field' } }],
105
- path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
103
+ fields: [
104
+ { name: 'storage', type: { kind: 'array', length: 15, type: { kind: 'field' } } },
105
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
106
+ ],
107
+ path: 'std::collections::bounded_vec::BoundedVec',
108
+ },
109
+ visibility: 'private',
110
+ },
111
+ {
112
+ name: 'message_context',
113
+ type: {
114
+ kind: 'struct',
115
+ fields: [
116
+ { name: 'tx_hash', type: { kind: 'field' } },
117
+ {
118
+ name: 'unique_note_hashes_in_tx',
119
+ type: {
120
+ kind: 'struct',
121
+ fields: [
122
+ { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
123
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
124
+ ],
125
+ path: 'std::collections::bounded_vec::BoundedVec',
126
+ },
127
+ },
128
+ { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
129
+ {
130
+ name: 'recipient',
131
+ type: {
132
+ kind: 'struct',
133
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
134
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
135
+ },
136
+ },
137
+ ],
138
+ path: 'aztec::messages::processing::message_context::MessageContext',
106
139
  },
107
140
  visibility: 'private',
108
141
  },
109
- { name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
110
142
  ],
111
- returnTypes: [{ kind: 'boolean' }],
143
+ returnTypes: [],
144
+ errorTypes: {
145
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
146
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
147
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
148
+ '2967937905572420042': {
149
+ error_kind: 'fmtstring',
150
+ length: 61,
151
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
152
+ },
153
+ '3330370348214585450': {
154
+ error_kind: 'fmtstring',
155
+ length: 48,
156
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
157
+ },
158
+ '3670003311596808700': {
159
+ error_kind: 'fmtstring',
160
+ length: 77,
161
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
162
+ },
163
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
164
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
165
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
166
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
167
+ '9791669845391776238': {
168
+ error_kind: 'string',
169
+ string: '0 has a square root; you cannot claim it is not square',
170
+ },
171
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
172
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
173
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
174
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
175
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
176
+ '13557316507370296400': {
177
+ error_kind: 'fmtstring',
178
+ length: 130,
179
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
180
+ },
181
+ '14938672389828944159': {
182
+ error_kind: 'fmtstring',
183
+ length: 146,
184
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
185
+ },
186
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
187
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
188
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
189
+ '17531474008201752295': {
190
+ error_kind: 'fmtstring',
191
+ length: 133,
192
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
193
+ },
194
+ },
195
+ },
196
+ bytecode: Buffer.from([]),
197
+ debugSymbols: '',
198
+ },
199
+ {
200
+ ...{
201
+ functionType: FunctionType.PUBLIC,
202
+ name: 'public_dispatch',
203
+ isOnlySelf: false,
204
+ isStatic: false,
205
+ isInitializer: false,
206
+ parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
207
+ returnTypes: [],
112
208
  errorTypes: {
113
209
  '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
114
210
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
211
+ '5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
212
+ '11691217184967371519': {
213
+ error_kind: 'string',
214
+ string: 'Function is_reject_all can only be called statically',
215
+ },
216
+ '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
115
217
  '13455385521185560676': {
116
218
  error_kind: 'string',
117
219
  string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
118
220
  },
221
+ '13929691561421487185': {
222
+ error_kind: 'string',
223
+ string: 'Function _set_authorized can only be called by the same contract',
224
+ },
119
225
  '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
120
226
  '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
121
227
  '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
228
+ '17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
229
+ '17312933876399746100': {
230
+ error_kind: 'string',
231
+ string: 'Function is_consumable can only be called statically',
232
+ },
233
+ },
234
+ },
235
+ bytecode: Buffer.from([]),
236
+ debugSymbols: '',
237
+ },
238
+ {
239
+ ...{
240
+ functionType: FunctionType.UTILITY,
241
+ name: 'sync_state',
242
+ isOnlySelf: false,
243
+ isStatic: false,
244
+ isInitializer: false,
245
+ parameters: [],
246
+ returnTypes: [],
247
+ errorTypes: {
248
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
249
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
250
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
251
+ '2967937905572420042': {
252
+ error_kind: 'fmtstring',
253
+ length: 61,
254
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
255
+ },
256
+ '3330370348214585450': {
257
+ error_kind: 'fmtstring',
258
+ length: 48,
259
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
260
+ },
261
+ '3670003311596808700': {
262
+ error_kind: 'fmtstring',
263
+ length: 77,
264
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
265
+ },
266
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
267
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
268
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
269
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
270
+ '9791669845391776238': {
271
+ error_kind: 'string',
272
+ string: '0 has a square root; you cannot claim it is not square',
273
+ },
274
+ '9885968605480832328': {
275
+ error_kind: 'string',
276
+ string: 'Attempted to read past the length of a CapsuleArray',
277
+ },
278
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
279
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
280
+ '11021520179822076911': {
281
+ error_kind: 'string',
282
+ string: 'Attempted to delete past the length of a CapsuleArray',
283
+ },
284
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
285
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
286
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
287
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
288
+ '13557316507370296400': {
289
+ error_kind: 'fmtstring',
290
+ length: 130,
291
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
292
+ },
293
+ '14938672389828944159': {
294
+ error_kind: 'fmtstring',
295
+ length: 146,
296
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
297
+ },
298
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
299
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
300
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
301
+ '17531474008201752295': {
302
+ error_kind: 'fmtstring',
303
+ length: 133,
304
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
305
+ },
306
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
122
307
  },
123
308
  },
124
309
  bytecode: Buffer.from([]),
@@ -326,6 +511,18 @@ export class AuthRegistryContract extends ContractBase {
326
511
  /** is_reject_all(on_behalf_of: struct) */
327
512
  is_reject_all: ((on_behalf_of: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
328
513
 
514
+ /** process_message(message_ciphertext: struct, message_context: struct) */
515
+ process_message: ((
516
+ message_ciphertext: FieldLike[],
517
+ message_context: {
518
+ tx_hash: FieldLike;
519
+ unique_note_hashes_in_tx: FieldLike[];
520
+ first_nullifier_in_tx: FieldLike;
521
+ recipient: AztecAddressLike;
522
+ },
523
+ ) => ContractFunctionInteraction) &
524
+ Pick<ContractMethod, 'selector'>;
525
+
329
526
  /** public_dispatch(selector: field) */
330
527
  public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
331
528
 
@@ -344,6 +541,9 @@ export class AuthRegistryContract extends ContractBase {
344
541
  /** set_reject_all(reject: boolean) */
345
542
  set_reject_all: ((reject: boolean) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
346
543
 
544
+ /** sync_state() */
545
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
546
+
347
547
  /** utility_is_consumable(on_behalf_of: struct, message_hash: field) */
348
548
  utility_is_consumable: ((on_behalf_of: AztecAddressLike, message_hash: FieldLike) => ContractFunctionInteraction) &
349
549
  Pick<ContractMethod, 'selector'>;