@aztec/aztec.js 0.0.1-commit.4eabbdb → 0.0.1-commit.5358163d3

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 (37) hide show
  1. package/dest/contract/deploy_method.d.ts +19 -6
  2. package/dest/contract/deploy_method.d.ts.map +1 -1
  3. package/dest/contract/deploy_method.js +25 -10
  4. package/dest/contract/get_gas_limits.js +3 -3
  5. package/dest/contract/interaction_options.d.ts +8 -1
  6. package/dest/contract/interaction_options.d.ts.map +1 -1
  7. package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -1
  8. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  9. package/dest/contract/protocol_contracts/auth-registry.js +16 -0
  10. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -1
  11. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  12. package/dest/contract/protocol_contracts/fee-juice.js +8 -0
  13. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +1 -1
  14. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  15. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +16 -0
  16. package/dest/contract/protocol_contracts/public-checks.d.ts +1 -1
  17. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  18. package/dest/contract/protocol_contracts/public-checks.js +16 -0
  19. package/dest/wallet/capabilities.d.ts +9 -1
  20. package/dest/wallet/capabilities.d.ts.map +1 -1
  21. package/dest/wallet/deploy_account_method.d.ts +15 -4
  22. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  23. package/dest/wallet/deploy_account_method.js +26 -0
  24. package/dest/wallet/wallet.d.ts +139 -1
  25. package/dest/wallet/wallet.d.ts.map +1 -1
  26. package/dest/wallet/wallet.js +9 -3
  27. package/package.json +10 -10
  28. package/src/contract/deploy_method.ts +48 -14
  29. package/src/contract/get_gas_limits.ts +3 -3
  30. package/src/contract/interaction_options.ts +7 -0
  31. package/src/contract/protocol_contracts/auth-registry.ts +4 -0
  32. package/src/contract/protocol_contracts/fee-juice.ts +2 -0
  33. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +4 -0
  34. package/src/contract/protocol_contracts/public-checks.ts +4 -0
  35. package/src/wallet/capabilities.ts +9 -0
  36. package/src/wallet/deploy_account_method.ts +39 -2
  37. package/src/wallet/wallet.ts +3 -0
@@ -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,sBAAsB,EAEvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAE3B,KAAK,yBAAyB,EAC9B,KAAK,i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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"}
@@ -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'),
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.4eabbdb",
4
+ "version": "0.0.1-commit.5358163d3",
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.4eabbdb",
98
- "@aztec/entrypoints": "0.0.1-commit.4eabbdb",
99
- "@aztec/ethereum": "0.0.1-commit.4eabbdb",
100
- "@aztec/foundation": "0.0.1-commit.4eabbdb",
101
- "@aztec/l1-artifacts": "0.0.1-commit.4eabbdb",
102
- "@aztec/protocol-contracts": "0.0.1-commit.4eabbdb",
103
- "@aztec/stdlib": "0.0.1-commit.4eabbdb",
104
- "axios": "^1.12.0",
97
+ "@aztec/constants": "0.0.1-commit.5358163d3",
98
+ "@aztec/entrypoints": "0.0.1-commit.5358163d3",
99
+ "@aztec/ethereum": "0.0.1-commit.5358163d3",
100
+ "@aztec/foundation": "0.0.1-commit.5358163d3",
101
+ "@aztec/l1-artifacts": "0.0.1-commit.5358163d3",
102
+ "@aztec/protocol-contracts": "0.0.1-commit.5358163d3",
103
+ "@aztec/stdlib": "0.0.1-commit.5358163d3",
104
+ "axios": "^1.13.5",
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.4eabbdb",
110
+ "@aztec/builder": "0.0.1-commit.5358163d3",
111
111
  "@jest/globals": "^30.0.0",
112
112
  "@types/jest": "^30.0.0",
113
113
  "@types/node": "^22.15.17",
@@ -9,12 +9,19 @@ import {
9
9
  getContractInstanceFromInstantiationParams,
10
10
  } from '@aztec/stdlib/contract';
11
11
  import type { PublicKeys } from '@aztec/stdlib/keys';
12
- import { type Capsule, TxHash, type TxProfileResult, type TxReceipt, collectOffchainEffects } from '@aztec/stdlib/tx';
12
+ import {
13
+ type Capsule,
14
+ HashedValues,
15
+ TxHash,
16
+ type TxProfileResult,
17
+ type TxReceipt,
18
+ collectOffchainEffects,
19
+ } from '@aztec/stdlib/tx';
13
20
  import { ExecutionPayload, mergeExecutionPayloads } from '@aztec/stdlib/tx';
14
21
 
15
22
  import { publishContractClass } from '../deployment/publish_class.js';
16
23
  import { publishInstance } from '../deployment/publish_instance.js';
17
- import type { SendOptions, Wallet } from '../wallet/wallet.js';
24
+ import type { ProfileOptions, SendOptions, SimulateOptions, Wallet } from '../wallet/wallet.js';
18
25
  import { BaseContractInteraction } from './base_contract_interaction.js';
19
26
  import type { ContractBase } from './contract_base.js';
20
27
  import { ContractFunctionInteraction } from './contract_function_interaction.js';
@@ -82,7 +89,7 @@ export type DeployOptionsWithoutWait = Omit<RequestDeployOptions, 'deployer'> &
82
89
  * is mutually exclusive with "deployer"
83
90
  */
84
91
  universalDeploy?: boolean;
85
- } & Pick<SendInteractionOptionsWithoutWait, 'from' | 'fee'>;
92
+ } & Pick<SendInteractionOptionsWithoutWait, 'from' | 'fee' | 'additionalScopes'>;
86
93
 
87
94
  /**
88
95
  * Extends the deployment options with the required parameters to send the transaction.
@@ -164,6 +171,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
164
171
  constructorNameOrArtifact?: string | FunctionArtifact,
165
172
  authWitnesses: AuthWitness[] = [],
166
173
  capsules: Capsule[] = [],
174
+ private extraHashedArgs: HashedValues[] = [],
167
175
  ) {
168
176
  super(wallet, authWitnesses, capsules);
169
177
  this.constructorArtifact = getInitializer(artifact, constructorNameOrArtifact);
@@ -174,20 +182,29 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
174
182
  * @param options - Configuration options.
175
183
  * @returns The execution payload for this operation
176
184
  */
177
- public async request(options?: RequestDeployOptions): Promise<ExecutionPayload> {
185
+ public async request(options: RequestDeployOptions = {}): Promise<ExecutionPayload> {
178
186
  const publication = await this.getPublicationExecutionPayload(options);
179
187
 
180
188
  if (!options?.skipRegistration) {
181
189
  await this.wallet.registerContract(await this.getInstance(options), this.artifact);
182
190
  }
183
-
191
+ const { authWitnesses, capsules } = options;
192
+
193
+ // Propagates the included authwitnesses, capsules, and extraHashedArgs
194
+ // potentially baked into the interaction
195
+ const initialExecutionPayload = new ExecutionPayload(
196
+ [],
197
+ this.authWitnesses.concat(authWitnesses ?? []),
198
+ this.capsules.concat(capsules ?? []),
199
+ this.extraHashedArgs,
200
+ );
184
201
  const initialization = await this.getInitializationExecutionPayload(options);
185
202
  const feeExecutionPayload = options?.fee?.paymentMethod
186
203
  ? await options.fee.paymentMethod.getExecutionPayload()
187
204
  : undefined;
188
205
  const finalExecutionPayload = feeExecutionPayload
189
- ? mergeExecutionPayloads([feeExecutionPayload, publication, initialization])
190
- : mergeExecutionPayloads([publication, initialization]);
206
+ ? mergeExecutionPayloads([initialExecutionPayload, feeExecutionPayload, publication, initialization])
207
+ : mergeExecutionPayloads([initialExecutionPayload, publication, initialization]);
191
208
  if (!finalExecutionPayload.calls.length) {
192
209
  throw new Error(`No transactions are needed to publish or initialize contract ${this.artifact.name}`);
193
210
  }
@@ -207,7 +224,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
207
224
  * @param options - Deploy options with wait parameter
208
225
  * @returns Send options with wait parameter
209
226
  */
210
- private convertDeployOptionsToSendOptions<W extends DeployInteractionWaitOptions>(
227
+ protected convertDeployOptionsToSendOptions<W extends DeployInteractionWaitOptions>(
211
228
  options: DeployOptions<W>,
212
229
  // eslint-disable-next-line jsdoc/require-jsdoc
213
230
  ): SendOptions<W extends { returnReceipt: true } ? WaitOpts : W> {
@@ -219,6 +236,24 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
219
236
  } as any;
220
237
  }
221
238
 
239
+ /**
240
+ * Converts deploy simulation options into wallet-level simulate options.
241
+ * @param options - The deploy simulation options to convert.
242
+ */
243
+ protected convertDeployOptionsToSimulateOptions(options: SimulateDeployOptions): SimulateOptions {
244
+ return toSimulateOptions(options);
245
+ }
246
+
247
+ /**
248
+ * Converts deploy profile options into wallet-level profile options.
249
+ * @param options - The deploy profile options to convert.
250
+ */
251
+ protected convertDeployOptionsToProfileOptions(
252
+ options: DeployOptionsWithoutWait & ProfileInteractionOptions,
253
+ ): ProfileOptions {
254
+ return toProfileOptions(options);
255
+ }
256
+
222
257
  /**
223
258
  * Adds this contract to the wallet and returns the Contract object.
224
259
  * @param options - Deployment options.
@@ -368,7 +403,10 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
368
403
  */
369
404
  public async simulate(options: SimulateDeployOptions): Promise<SimulationReturn<true>> {
370
405
  const executionPayload = await this.request(this.convertDeployOptionsToRequestOptions(options));
371
- const simulatedTx = await this.wallet.simulateTx(executionPayload, toSimulateOptions(options));
406
+ const simulatedTx = await this.wallet.simulateTx(
407
+ executionPayload,
408
+ this.convertDeployOptionsToSimulateOptions(options),
409
+ );
372
410
 
373
411
  const { gasLimits, teardownGasLimits } = getGasLimits(simulatedTx, options.fee?.estimatedGasPadding);
374
412
  this.log.verbose(
@@ -390,11 +428,7 @@ export class DeployMethod<TContract extends ContractBase = ContractBase> extends
390
428
  */
391
429
  public async profile(options: DeployOptionsWithoutWait & ProfileInteractionOptions): Promise<TxProfileResult> {
392
430
  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
- });
431
+ return await this.wallet.profileTx(executionPayload, this.convertDeployOptionsToProfileOptions(options));
398
432
  }
399
433
 
400
434
  /** Return this deployment address. */
@@ -1,4 +1,4 @@
1
- import { AVM_MAX_PROCESSABLE_L2_GAS } from '@aztec/constants';
1
+ import { MAX_PROCESSABLE_L2_GAS } from '@aztec/constants';
2
2
  import { Gas } from '@aztec/stdlib/gas';
3
3
  import type { TxSimulationResult } from '@aztec/stdlib/tx';
4
4
 
@@ -23,8 +23,8 @@ export function getGasLimits(
23
23
  const gasLimits = simulationResult.gasUsed.totalGas.mul(1 + pad);
24
24
  const teardownGasLimits = simulationResult.gasUsed.teardownGas.mul(1 + pad);
25
25
 
26
- if (gasLimits.l2Gas > AVM_MAX_PROCESSABLE_L2_GAS) {
27
- throw new Error('Transaction consumes more gas than the AVM maximum processable gas');
26
+ if (gasLimits.l2Gas > MAX_PROCESSABLE_L2_GAS) {
27
+ throw new Error('Transaction consumes more l2 gas than the maximum processable gas');
28
28
  }
29
29
  return {
30
30
  gasLimits,
@@ -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
  /**
@@ -163,6 +163,8 @@ const AuthRegistryContractArtifact: ContractArtifact = {
163
163
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
164
164
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
165
165
  '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
166
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
167
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
166
168
  '9791669845391776238': {
167
169
  error_kind: 'string',
168
170
  string: '0 has a square root; you cannot claim it is not square',
@@ -265,6 +267,8 @@ const AuthRegistryContractArtifact: ContractArtifact = {
265
267
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
266
268
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
267
269
  '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
270
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
271
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
268
272
  '9791669845391776238': {
269
273
  error_kind: 'string',
270
274
  string: '0 has a square root; you cannot claim it is not square',
@@ -44,6 +44,7 @@ const FeeJuiceContractArtifact: ContractArtifact = {
44
44
  errorTypes: {
45
45
  '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
46
46
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
47
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
47
48
  '6609888949476313245': { error_kind: 'string', string: 'Message not in state' },
48
49
  '11019205087382408538': { error_kind: 'string', string: 'Field failed to decompose into specified 4 limbs' },
49
50
  '12370419938245003393': { error_kind: 'string', string: 'Field failed to decompose into specified 36 limbs' },
@@ -81,6 +82,7 @@ const FeeJuiceContractArtifact: ContractArtifact = {
81
82
  errorTypes: {
82
83
  '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
83
84
  '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
85
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
84
86
  '6609888949476313245': { error_kind: 'string', string: 'Message not in state' },
85
87
  '11019205087382408538': { error_kind: 'string', string: 'Field failed to decompose into specified 4 limbs' },
86
88
  '12370419938245003393': { error_kind: 'string', string: 'Field failed to decompose into specified 36 limbs' },
@@ -161,6 +161,8 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
161
161
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
162
162
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
163
163
  '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
164
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
165
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
164
166
  '9791669845391776238': {
165
167
  error_kind: 'string',
166
168
  string: '0 has a square root; you cannot claim it is not square',
@@ -224,6 +226,8 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
224
226
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
225
227
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
226
228
  '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
229
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
230
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
227
231
  '9791669845391776238': {
228
232
  error_kind: 'string',
229
233
  string: '0 has a square root; you cannot claim it is not square',
@@ -94,6 +94,8 @@ const PublicChecksContractArtifact: ContractArtifact = {
94
94
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
95
95
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
96
96
  '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
97
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
98
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
97
99
  '9791669845391776238': {
98
100
  error_kind: 'string',
99
101
  string: '0 has a square root; you cannot claim it is not square',
@@ -185,6 +187,8 @@ const PublicChecksContractArtifact: ContractArtifact = {
185
187
  '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
186
188
  '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
187
189
  '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
190
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
191
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
188
192
  '9791669845391776238': {
189
193
  error_kind: 'string',
190
194
  string: '0 has a square root; you cannot claim it is not square',
@@ -32,6 +32,15 @@ export interface ContractFunctionPattern {
32
32
 
33
33
  /** Function name or '*' for any function */
34
34
  function: string;
35
+
36
+ /**
37
+ * Additional addresses whose private state and keys are accessible
38
+ * when calling this function, beyond the sender's.
39
+ * - undefined: No additional scopes allowed
40
+ * - AztecAddress[]: Only these specific addresses allowed as additional scopes
41
+ * - '*': All known address allowed as an additional scope
42
+ */
43
+ additionalScopes?: AztecAddress[] | '*';
35
44
  }
36
45
 
37
46
  /**
@@ -9,15 +9,22 @@ import type { Account } from '../account/account.js';
9
9
  import type { Contract } from '../contract/contract.js';
10
10
  import type { ContractBase } from '../contract/contract_base.js';
11
11
  import {
12
+ type DeployInteractionWaitOptions,
12
13
  DeployMethod,
14
+ type DeployOptions,
13
15
  type DeployOptionsWithoutWait,
14
16
  type RequestDeployOptions,
15
17
  type SimulateDeployOptions,
16
18
  } from '../contract/deploy_method.js';
17
- import type { FeePaymentMethodOption, InteractionWaitOptions } from '../contract/interaction_options.js';
19
+ import type {
20
+ FeePaymentMethodOption,
21
+ InteractionWaitOptions,
22
+ ProfileInteractionOptions,
23
+ } from '../contract/interaction_options.js';
24
+ import type { WaitOpts } from '../contract/wait_opts.js';
18
25
  import type { FeePaymentMethod } from '../fee/fee_payment_method.js';
19
26
  import { AccountEntrypointMetaPaymentMethod } from './account_entrypoint_meta_payment_method.js';
20
- import type { Wallet } from './index.js';
27
+ import type { ProfileOptions, SendOptions, SimulateOptions, Wallet } from './index.js';
21
28
 
22
29
  /**
23
30
  * Extended fee payment method option for account deployments that includes entrypoint wrapping options
@@ -147,4 +154,34 @@ export class DeployAccountMethod<TContract extends ContractBase = Contract> exte
147
154
  deployer: options.from,
148
155
  };
149
156
  }
157
+
158
+ protected override convertDeployOptionsToSendOptions<W extends DeployInteractionWaitOptions>(
159
+ options: DeployOptions<W>,
160
+ // eslint-disable-next-line jsdoc/require-jsdoc
161
+ ): SendOptions<W extends { returnReceipt: true } ? WaitOpts : W> {
162
+ return super.convertDeployOptionsToSendOptions(this.injectContractAddressIntoScopes(options));
163
+ }
164
+
165
+ protected override convertDeployOptionsToSimulateOptions(options: SimulateDeployOptions): SimulateOptions {
166
+ return super.convertDeployOptionsToSimulateOptions(this.injectContractAddressIntoScopes(options));
167
+ }
168
+
169
+ protected override convertDeployOptionsToProfileOptions(
170
+ options: DeployOptionsWithoutWait & ProfileInteractionOptions,
171
+ ): ProfileOptions {
172
+ return super.convertDeployOptionsToProfileOptions(this.injectContractAddressIntoScopes(options));
173
+ }
174
+
175
+ /**
176
+ * Injects the contract's own address into scopes so the constructor can access its own keys.
177
+ * @param options - The deploy options to augment with the contract address.
178
+ */
179
+ // eslint-disable-next-line jsdoc/require-jsdoc
180
+ private injectContractAddressIntoScopes<T extends { additionalScopes?: AztecAddress[] }>(options: T): T {
181
+ if (!this.address) {
182
+ throw new Error('Instance not yet constructed. This is a bug!');
183
+ }
184
+ const existing = options.additionalScopes ?? [];
185
+ return { ...options, additionalScopes: [...existing, this.address] };
186
+ }
150
187
  }
@@ -303,6 +303,7 @@ export const SendOptionsSchema = z.object({
303
303
  capsules: optional(z.array(Capsule.schema)),
304
304
  fee: optional(GasSettingsOptionSchema),
305
305
  wait: optional(z.union([z.literal(NO_WAIT), WaitOptsSchema])),
306
+ additionalScopes: optional(z.array(schemas.AztecAddress)),
306
307
  });
307
308
 
308
309
  export const SimulateOptionsSchema = z.object({
@@ -313,6 +314,7 @@ export const SimulateOptionsSchema = z.object({
313
314
  skipTxValidation: optional(z.boolean()),
314
315
  skipFeeEnforcement: optional(z.boolean()),
315
316
  includeMetadata: optional(z.boolean()),
317
+ additionalScopes: optional(z.array(schemas.AztecAddress)),
316
318
  });
317
319
 
318
320
  export const ProfileOptionsSchema = SimulateOptionsSchema.extend({
@@ -379,6 +381,7 @@ export const ContractClassMetadataSchema = z.object({
379
381
  export const ContractFunctionPatternSchema = z.object({
380
382
  contract: z.union([schemas.AztecAddress, z.literal('*')]),
381
383
  function: z.union([z.string(), z.literal('*')]),
384
+ additionalScopes: optional(z.union([z.array(schemas.AztecAddress), z.literal('*')])),
382
385
  });
383
386
 
384
387
  export const AccountsCapabilitySchema = z.object({