@aztec/aztec.js 0.0.1-commit.d431d1c → 0.0.1-commit.db765a8

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 (139) hide show
  1. package/dest/api/abi.d.ts +2 -2
  2. package/dest/api/abi.d.ts.map +1 -1
  3. package/dest/api/block.d.ts +2 -2
  4. package/dest/api/block.d.ts.map +1 -1
  5. package/dest/api/block.js +1 -1
  6. package/dest/api/contract.d.ts +18 -12
  7. package/dest/api/contract.d.ts.map +1 -1
  8. package/dest/api/contract.js +16 -10
  9. package/dest/api/deployment.d.ts +1 -2
  10. package/dest/api/deployment.d.ts.map +1 -1
  11. package/dest/api/deployment.js +0 -1
  12. package/dest/api/events.d.ts +10 -6
  13. package/dest/api/events.d.ts.map +1 -1
  14. package/dest/api/events.js +30 -20
  15. package/dest/api/fields.d.ts +2 -1
  16. package/dest/api/fields.d.ts.map +1 -1
  17. package/dest/api/fields.js +1 -0
  18. package/dest/api/keys.d.ts +1 -1
  19. package/dest/api/keys.js +1 -1
  20. package/dest/api/node.d.ts +8 -4
  21. package/dest/api/node.d.ts.map +1 -1
  22. package/dest/api/node.js +7 -3
  23. package/dest/api/tx.d.ts +2 -2
  24. package/dest/api/tx.d.ts.map +1 -1
  25. package/dest/api/tx.js +1 -1
  26. package/dest/api/wallet.d.ts +3 -2
  27. package/dest/api/wallet.d.ts.map +1 -1
  28. package/dest/api/wallet.js +2 -1
  29. package/dest/contract/base_contract_interaction.d.ts +8 -10
  30. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  31. package/dest/contract/base_contract_interaction.js +5 -17
  32. package/dest/contract/batch_call.d.ts +3 -3
  33. package/dest/contract/batch_call.d.ts.map +1 -1
  34. package/dest/contract/batch_call.js +17 -8
  35. package/dest/contract/contract_function_interaction.d.ts +7 -16
  36. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  37. package/dest/contract/contract_function_interaction.js +107 -18
  38. package/dest/contract/deploy_method.d.ts +91 -19
  39. package/dest/contract/deploy_method.d.ts.map +1 -1
  40. package/dest/contract/deploy_method.js +68 -30
  41. package/dest/contract/get_gas_limits.js +3 -3
  42. package/dest/contract/interaction_options.d.ts +99 -21
  43. package/dest/contract/interaction_options.d.ts.map +1 -1
  44. package/dest/contract/interaction_options.js +41 -1
  45. package/dest/contract/protocol_contracts/auth-registry.d.ts +3 -3
  46. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
  47. package/dest/contract/protocol_contracts/auth-registry.js +49 -20
  48. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -22
  49. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
  50. package/dest/contract/protocol_contracts/contract-class-registry.js +13 -671
  51. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
  52. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
  53. package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -486
  54. package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
  55. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
  56. package/dest/contract/protocol_contracts/fee-juice.js +7 -413
  57. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +3 -3
  58. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
  59. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +40 -15
  60. package/dest/contract/protocol_contracts/public-checks.d.ts +3 -3
  61. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
  62. package/dest/contract/protocol_contracts/public-checks.js +40 -23
  63. package/dest/contract/wait_for_proven.js +1 -1
  64. package/dest/contract/wait_opts.d.ts +16 -0
  65. package/dest/contract/wait_opts.d.ts.map +1 -0
  66. package/dest/contract/wait_opts.js +5 -0
  67. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  68. package/dest/fee/private_fee_payment_method.js +10 -10
  69. package/dest/fee/public_fee_payment_method.js +10 -10
  70. package/dest/fee/sponsored_fee_payment.js +3 -3
  71. package/dest/utils/abi_types.d.ts +6 -1
  72. package/dest/utils/abi_types.d.ts.map +1 -1
  73. package/dest/utils/abi_types.js +1 -1
  74. package/dest/utils/authwit.d.ts +6 -6
  75. package/dest/utils/authwit.d.ts.map +1 -1
  76. package/dest/utils/authwit.js +12 -12
  77. package/dest/utils/node.d.ts +12 -1
  78. package/dest/utils/node.d.ts.map +1 -1
  79. package/dest/utils/node.js +46 -0
  80. package/dest/wallet/capabilities.d.ts +452 -0
  81. package/dest/wallet/capabilities.d.ts.map +1 -0
  82. package/dest/wallet/capabilities.js +3 -0
  83. package/dest/wallet/deploy_account_method.d.ts +31 -6
  84. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  85. package/dest/wallet/deploy_account_method.js +26 -0
  86. package/dest/wallet/index.d.ts +2 -1
  87. package/dest/wallet/index.d.ts.map +1 -1
  88. package/dest/wallet/index.js +1 -0
  89. package/dest/wallet/wallet.d.ts +1639 -93
  90. package/dest/wallet/wallet.d.ts.map +1 -1
  91. package/dest/wallet/wallet.js +186 -27
  92. package/package.json +20 -11
  93. package/src/api/abi.ts +1 -0
  94. package/src/api/block.ts +1 -1
  95. package/src/api/contract.ts +31 -9
  96. package/src/api/deployment.ts +0 -1
  97. package/src/api/events.ts +35 -27
  98. package/src/api/fields.ts +1 -0
  99. package/src/api/keys.ts +2 -2
  100. package/src/api/node.ts +7 -3
  101. package/src/api/tx.ts +2 -0
  102. package/src/api/wallet.ts +48 -1
  103. package/src/contract/base_contract_interaction.ts +28 -15
  104. package/src/contract/batch_call.ts +17 -14
  105. package/src/contract/contract_function_interaction.ts +114 -26
  106. package/src/contract/deploy_method.ts +172 -35
  107. package/src/contract/get_gas_limits.ts +3 -3
  108. package/src/contract/interaction_options.ts +141 -23
  109. package/src/contract/protocol_contracts/auth-registry.ts +13 -14
  110. package/src/contract/protocol_contracts/contract-class-registry.ts +4 -347
  111. package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -234
  112. package/src/contract/protocol_contracts/fee-juice.ts +2 -202
  113. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +11 -13
  114. package/src/contract/protocol_contracts/public-checks.ts +11 -15
  115. package/src/contract/wait_for_proven.ts +1 -1
  116. package/src/contract/wait_opts.ts +21 -0
  117. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  118. package/src/fee/private_fee_payment_method.ts +7 -7
  119. package/src/fee/public_fee_payment_method.ts +8 -8
  120. package/src/fee/sponsored_fee_payment.ts +3 -3
  121. package/src/utils/abi_types.ts +7 -0
  122. package/src/utils/authwit.ts +31 -21
  123. package/src/utils/node.ts +62 -0
  124. package/src/wallet/capabilities.ts +500 -0
  125. package/src/wallet/deploy_account_method.ts +56 -4
  126. package/src/wallet/index.ts +1 -0
  127. package/src/wallet/wallet.ts +257 -50
  128. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  129. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  130. package/dest/contract/deploy_sent_tx.js +0 -46
  131. package/dest/contract/sent_tx.d.ts +0 -50
  132. package/dest/contract/sent_tx.d.ts.map +0 -1
  133. package/dest/contract/sent_tx.js +0 -90
  134. package/dest/deployment/broadcast_function.d.ts +0 -24
  135. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  136. package/dest/deployment/broadcast_function.js +0 -74
  137. package/src/contract/deploy_sent_tx.ts +0 -75
  138. package/src/contract/sent_tx.ts +0 -129
  139. package/src/deployment/broadcast_function.ts +0 -148
@@ -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,EAGL,KAAK,gBAAgB,EAErB,KAAK,uBAAuB,EAC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AAe,mBAAmB;;;;;;;;;;;;;;;;;;QAAU,mBAAmB;;;;;;;;;;;;;;;;;;MAA4C,CAAC;AAE5G,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;AAEpD,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,MAAM,CAI7C,CAAC"}
@@ -1,23 +1,14 @@
1
1
  import { BlockNumberPositiveSchema } from '@aztec/foundation/branded-types';
2
- import { AbiTypeSchema, ContractArtifactSchema, FunctionType } from '@aztec/stdlib/abi';
2
+ import { AbiTypeSchema, ContractArtifactSchema, FunctionCall } from '@aztec/stdlib/abi';
3
3
  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
- export const FunctionCallSchema = z.object({
10
- name: z.string(),
11
- to: schemas.AztecAddress,
12
- selector: schemas.FunctionSelector,
13
- type: z.nativeEnum(FunctionType),
14
- isStatic: z.boolean(),
15
- hideMsgSender: z.boolean(),
16
- args: z.array(schemas.Fr),
17
- returnTypes: z.array(AbiTypeSchema)
18
- });
9
+ import { NO_WAIT } from '../contract/interaction_options.js';
19
10
  export const ExecutionPayloadSchema = z.object({
20
- calls: z.array(FunctionCallSchema),
11
+ calls: z.array(FunctionCall.schema),
21
12
  authWitnesses: z.array(AuthWitness.schema),
22
13
  capsules: z.array(Capsule.schema),
23
14
  extraHashedArgs: z.array(HashedValues.schema),
@@ -41,11 +32,22 @@ export const WalletSimulationFeeOptionSchema = GasSettingsOptionSchema.extend({
41
32
  estimatedGasPadding: optional(z.number()),
42
33
  estimateGas: optional(z.boolean())
43
34
  });
35
+ export const WaitOptsSchema = z.object({
36
+ ignoreDroppedReceiptsFor: optional(z.number()),
37
+ timeout: optional(z.number()),
38
+ interval: optional(z.number()),
39
+ dontThrowOnRevert: optional(z.boolean())
40
+ });
44
41
  export const SendOptionsSchema = z.object({
45
42
  from: schemas.AztecAddress,
46
43
  authWitnesses: optional(z.array(AuthWitness.schema)),
47
44
  capsules: optional(z.array(Capsule.schema)),
48
- fee: optional(GasSettingsOptionSchema)
45
+ fee: optional(GasSettingsOptionSchema),
46
+ wait: optional(z.union([
47
+ z.literal(NO_WAIT),
48
+ WaitOptsSchema
49
+ ])),
50
+ additionalScopes: optional(z.array(schemas.AztecAddress))
49
51
  });
50
52
  export const SimulateOptionsSchema = z.object({
51
53
  from: schemas.AztecAddress,
@@ -54,7 +56,8 @@ export const SimulateOptionsSchema = z.object({
54
56
  fee: optional(WalletSimulationFeeOptionSchema),
55
57
  skipTxValidation: optional(z.boolean()),
56
58
  skipFeeEnforcement: optional(z.boolean()),
57
- includeMetadata: optional(z.boolean())
59
+ includeMetadata: optional(z.boolean()),
60
+ additionalScopes: optional(z.array(schemas.AztecAddress))
58
61
  });
59
62
  export const ProfileOptionsSchema = SimulateOptionsSchema.extend({
60
63
  profileMode: z.enum([
@@ -71,7 +74,7 @@ export const MessageHashOrIntentSchema = z.union([
71
74
  }),
72
75
  z.object({
73
76
  caller: schemas.AztecAddress,
74
- call: FunctionCallSchema
77
+ call: FunctionCall.schema
75
78
  })
76
79
  ]);
77
80
  export const EventMetadataDefinitionSchema = z.object({
@@ -79,17 +82,28 @@ export const EventMetadataDefinitionSchema = z.object({
79
82
  abiType: AbiTypeSchema,
80
83
  fieldNames: z.array(z.string())
81
84
  });
82
- export const PrivateEventSchema = zodFor()(z.object({
83
- event: AbiDecodedSchema,
84
- metadata: inTxSchema()
85
- }));
86
- export const PrivateEventFilterSchema = z.object({
87
- contractAddress: schemas.AztecAddress,
88
- scopes: z.array(schemas.AztecAddress),
85
+ const EventFilterBaseSchema = z.object({
89
86
  txHash: optional(TxHash.schema),
90
87
  fromBlock: optional(BlockNumberPositiveSchema),
91
88
  toBlock: optional(BlockNumberPositiveSchema)
92
89
  });
90
+ export const PrivateEventFilterSchema = EventFilterBaseSchema.extend({
91
+ contractAddress: schemas.AztecAddress,
92
+ scopes: z.array(schemas.AztecAddress)
93
+ });
94
+ export const PublicEventFilterSchema = EventFilterBaseSchema.extend({
95
+ contractAddress: optional(schemas.AztecAddress)
96
+ });
97
+ export const PrivateEventSchema = zodFor()(z.object({
98
+ event: AbiDecodedSchema,
99
+ metadata: inTxSchema()
100
+ }));
101
+ export const PublicEventSchema = zodFor()(z.object({
102
+ event: AbiDecodedSchema,
103
+ metadata: z.intersection(inTxSchema(), z.object({
104
+ contractAddress: schemas.AztecAddress
105
+ }))
106
+ }));
93
107
  export const ContractMetadataSchema = z.object({
94
108
  instance: optional(ContractInstanceWithAddressSchema),
95
109
  isContractInitialized: z.boolean(),
@@ -101,6 +115,141 @@ export const ContractClassMetadataSchema = z.object({
101
115
  isArtifactRegistered: z.boolean(),
102
116
  isContractClassPubliclyRegistered: z.boolean()
103
117
  });
118
+ export const ContractFunctionPatternSchema = z.object({
119
+ contract: z.union([
120
+ schemas.AztecAddress,
121
+ z.literal('*')
122
+ ]),
123
+ function: z.union([
124
+ z.string(),
125
+ z.literal('*')
126
+ ]),
127
+ additionalScopes: optional(z.union([
128
+ z.array(schemas.AztecAddress),
129
+ z.literal('*')
130
+ ]))
131
+ });
132
+ export const AccountsCapabilitySchema = z.object({
133
+ type: z.literal('accounts'),
134
+ canGet: optional(z.boolean()),
135
+ canCreateAuthWit: optional(z.boolean())
136
+ });
137
+ export const GrantedAccountsCapabilitySchema = AccountsCapabilitySchema.extend({
138
+ accounts: z.array(z.object({
139
+ alias: z.string(),
140
+ item: schemas.AztecAddress
141
+ }))
142
+ });
143
+ export const ContractsCapabilitySchema = z.object({
144
+ type: z.literal('contracts'),
145
+ contracts: z.union([
146
+ z.literal('*'),
147
+ z.array(schemas.AztecAddress)
148
+ ]),
149
+ canRegister: optional(z.boolean()),
150
+ canGetMetadata: optional(z.boolean())
151
+ });
152
+ export const GrantedContractsCapabilitySchema = ContractsCapabilitySchema;
153
+ export const ContractClassesCapabilitySchema = z.object({
154
+ type: z.literal('contractClasses'),
155
+ classes: z.union([
156
+ z.literal('*'),
157
+ z.array(schemas.Fr)
158
+ ]),
159
+ canGetMetadata: z.boolean()
160
+ });
161
+ export const GrantedContractClassesCapabilitySchema = ContractClassesCapabilitySchema;
162
+ export const SimulationCapabilitySchema = z.object({
163
+ type: z.literal('simulation'),
164
+ transactions: optional(z.object({
165
+ scope: z.union([
166
+ z.literal('*'),
167
+ z.array(ContractFunctionPatternSchema)
168
+ ])
169
+ })),
170
+ utilities: optional(z.object({
171
+ scope: z.union([
172
+ z.literal('*'),
173
+ z.array(ContractFunctionPatternSchema)
174
+ ])
175
+ }))
176
+ });
177
+ export const GrantedSimulationCapabilitySchema = SimulationCapabilitySchema;
178
+ export const TransactionCapabilitySchema = z.object({
179
+ type: z.literal('transaction'),
180
+ scope: z.union([
181
+ z.literal('*'),
182
+ z.array(ContractFunctionPatternSchema)
183
+ ])
184
+ });
185
+ export const GrantedTransactionCapabilitySchema = TransactionCapabilitySchema;
186
+ export const DataCapabilitySchema = z.object({
187
+ type: z.literal('data'),
188
+ addressBook: optional(z.boolean()),
189
+ privateEvents: optional(z.object({
190
+ contracts: z.union([
191
+ z.literal('*'),
192
+ z.array(schemas.AztecAddress)
193
+ ])
194
+ }))
195
+ });
196
+ export const GrantedDataCapabilitySchema = DataCapabilitySchema;
197
+ export const CapabilitySchema = z.discriminatedUnion('type', [
198
+ AccountsCapabilitySchema,
199
+ ContractsCapabilitySchema,
200
+ ContractClassesCapabilitySchema,
201
+ SimulationCapabilitySchema,
202
+ TransactionCapabilitySchema,
203
+ DataCapabilitySchema
204
+ ]);
205
+ export const GrantedCapabilitySchema = z.discriminatedUnion('type', [
206
+ GrantedAccountsCapabilitySchema,
207
+ GrantedContractsCapabilitySchema,
208
+ GrantedContractClassesCapabilitySchema,
209
+ GrantedSimulationCapabilitySchema,
210
+ GrantedTransactionCapabilitySchema,
211
+ GrantedDataCapabilitySchema
212
+ ]);
213
+ export const AppCapabilitiesSchema = z.object({
214
+ version: z.literal('1.0'),
215
+ metadata: z.object({
216
+ name: z.string(),
217
+ version: z.string(),
218
+ description: optional(z.string()),
219
+ url: optional(z.string()),
220
+ icon: optional(z.string())
221
+ }),
222
+ capabilities: z.array(CapabilitySchema),
223
+ behavior: optional(z.object({
224
+ mode: optional(z.enum([
225
+ 'strict',
226
+ 'permissive'
227
+ ])),
228
+ expiration: optional(z.number())
229
+ }))
230
+ });
231
+ export const WalletCapabilitiesSchema = z.object({
232
+ version: z.literal('1.0'),
233
+ granted: z.array(GrantedCapabilitySchema),
234
+ wallet: z.object({
235
+ name: z.string(),
236
+ version: z.string()
237
+ }),
238
+ expiresAt: optional(z.number())
239
+ });
240
+ const OffchainEffectSchema = z.object({
241
+ data: z.array(schemas.Fr),
242
+ contractAddress: schemas.AztecAddress
243
+ });
244
+ const OffchainMessageSchema = z.object({
245
+ recipient: schemas.AztecAddress,
246
+ payload: z.array(schemas.Fr),
247
+ contractAddress: schemas.AztecAddress
248
+ });
249
+ const OffchainOutputSchema = z.object({
250
+ offchainEffects: z.array(OffchainEffectSchema),
251
+ offchainMessages: z.array(OffchainMessageSchema)
252
+ });
104
253
  /**
105
254
  * Record of all wallet method schemas (excluding batch).
106
255
  * This is the single source of truth for method schemas - batch schemas are derived from this.
@@ -109,7 +258,6 @@ export const ContractClassMetadataSchema = z.object({
109
258
  chainId: schemas.Fr,
110
259
  version: schemas.Fr
111
260
  })),
112
- getTxReceipt: z.function().args(TxHash.schema).returns(TxReceipt.schema),
113
261
  getContractMetadata: z.function().args(schemas.AztecAddress).returns(ContractMetadataSchema),
114
262
  getContractClassMetadata: z.function().args(schemas.Fr).returns(ContractClassMetadataSchema),
115
263
  getPrivateEvents: z.function().args(EventMetadataDefinitionSchema, PrivateEventFilterSchema).returns(z.array(PrivateEventSchema)),
@@ -124,10 +272,21 @@ export const ContractClassMetadataSchema = z.object({
124
272
  }))),
125
273
  registerContract: z.function().args(ContractInstanceWithAddressSchema, optional(ContractArtifactSchema), optional(schemas.Fr)).returns(ContractInstanceWithAddressSchema),
126
274
  simulateTx: z.function().args(ExecutionPayloadSchema, SimulateOptionsSchema).returns(TxSimulationResult.schema),
127
- simulateUtility: z.function().args(FunctionCallSchema, optional(z.array(AuthWitness.schema))).returns(UtilitySimulationResult.schema),
275
+ executeUtility: z.function().args(FunctionCall.schema, z.object({
276
+ scope: schemas.AztecAddress,
277
+ authWitnesses: optional(z.array(AuthWitness.schema))
278
+ })).returns(UtilityExecutionResult.schema),
128
279
  profileTx: z.function().args(ExecutionPayloadSchema, ProfileOptionsSchema).returns(TxProfileResult.schema),
129
- sendTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(TxHash.schema),
130
- createAuthWit: z.function().args(schemas.AztecAddress, MessageHashOrIntentSchema).returns(AuthWitness.schema)
280
+ sendTx: z.function().args(ExecutionPayloadSchema, SendOptionsSchema).returns(z.union([
281
+ z.object({
282
+ txHash: TxHash.schema
283
+ }).merge(OffchainOutputSchema),
284
+ z.object({
285
+ receipt: TxReceipt.schema
286
+ }).merge(OffchainOutputSchema)
287
+ ])),
288
+ createAuthWit: z.function().args(schemas.AztecAddress, MessageHashOrIntentSchema).returns(AuthWitness.schema),
289
+ requestCapabilities: z.function().args(AppCapabilitiesSchema).returns(WalletCapabilitiesSchema)
131
290
  };
132
291
  /**
133
292
  * Creates batch schemas from the individual wallet methods.
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.d431d1c",
4
+ "version": "0.0.1-commit.db765a8",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./abi": "./dest/api/abi.js",
@@ -30,7 +30,16 @@
30
30
  },
31
31
  "typedocOptions": {
32
32
  "entryPoints": [
33
- "./src/index.ts"
33
+ "./src/api/abi.ts",
34
+ "./src/api/account.ts",
35
+ "./src/api/contract.ts",
36
+ "./src/api/deployment.ts",
37
+ "./src/api/ethereum.ts",
38
+ "./src/api/fee.ts",
39
+ "./src/api/fields.ts",
40
+ "./src/api/keys.ts",
41
+ "./src/api/tx.ts",
42
+ "./src/api/wallet.ts"
34
43
  ],
35
44
  "name": "Aztec.js",
36
45
  "tsconfig": "./tsconfig.json"
@@ -85,20 +94,20 @@
85
94
  ]
86
95
  },
87
96
  "dependencies": {
88
- "@aztec/constants": "0.0.1-commit.d431d1c",
89
- "@aztec/entrypoints": "0.0.1-commit.d431d1c",
90
- "@aztec/ethereum": "0.0.1-commit.d431d1c",
91
- "@aztec/foundation": "0.0.1-commit.d431d1c",
92
- "@aztec/l1-artifacts": "0.0.1-commit.d431d1c",
93
- "@aztec/protocol-contracts": "0.0.1-commit.d431d1c",
94
- "@aztec/stdlib": "0.0.1-commit.d431d1c",
95
- "axios": "^1.12.0",
97
+ "@aztec/constants": "0.0.1-commit.db765a8",
98
+ "@aztec/entrypoints": "0.0.1-commit.db765a8",
99
+ "@aztec/ethereum": "0.0.1-commit.db765a8",
100
+ "@aztec/foundation": "0.0.1-commit.db765a8",
101
+ "@aztec/l1-artifacts": "0.0.1-commit.db765a8",
102
+ "@aztec/protocol-contracts": "0.0.1-commit.db765a8",
103
+ "@aztec/stdlib": "0.0.1-commit.db765a8",
104
+ "axios": "^1.13.5",
96
105
  "tslib": "^2.4.0",
97
106
  "viem": "npm:@aztec/viem@2.38.2",
98
107
  "zod": "^3.23.8"
99
108
  },
100
109
  "devDependencies": {
101
- "@aztec/builder": "0.0.1-commit.d431d1c",
110
+ "@aztec/builder": "0.0.1-commit.db765a8",
102
111
  "@jest/globals": "^30.0.0",
103
112
  "@types/jest": "^30.0.0",
104
113
  "@types/node": "^22.15.17",
package/src/api/abi.ts CHANGED
@@ -31,6 +31,7 @@ export {
31
31
  type EventSelectorLike,
32
32
  type FieldLike,
33
33
  type FunctionSelectorLike,
34
+ type OptionLike,
34
35
  type U128Like,
35
36
  type WrappedFieldLike,
36
37
  } from '../utils/abi_types.js';
package/src/api/block.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { Body, L2BlockNew } from '@aztec/stdlib/block';
1
+ export { Body, L2Block } from '@aztec/stdlib/block';
2
2
  export { getTimestampRangeForEpoch } from '@aztec/stdlib/epoch-helpers';
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `contract` module provides utilities for deploying and interacting with contracts, based on a
3
3
  * `Wallet` instance and a compiled artifact. Refer to the {@link account} module for how to obtain a valid
4
- * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract | Compiling contracts}
4
+ * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/compiling_contracts | Compiling contracts}
5
5
  * section of the documentation for how to generate an artifact out of your Noir source code.
6
6
  *
7
7
  * The {@link Contract} class is the main class in this module, and provides static methods for deploying
@@ -10,13 +10,21 @@
10
10
  * or can be queried via `simulate()`.
11
11
  *
12
12
  * ```ts
13
- * const contract = await Contract.deploy(wallet, MyContractArtifact, [...constructorArgs]).send().deployed();
13
+ * // Deploy and get the contract instance directly (default behavior)
14
+ * const contract = await Contract.deploy(wallet, MyContractArtifact, [...constructorArgs]).send({ from: accountAddress });
14
15
  * console.log(`Contract deployed at ${contract.address}`);
16
+ *
17
+ * // Or get the full receipt with contract and instance
18
+ * const receipt = await Contract.deploy(wallet, MyContractArtifact, [...constructorArgs]).send({
19
+ * from: accountAddress,
20
+ * wait: { returnReceipt: true }
21
+ * });
22
+ * console.log(`Contract deployed at ${receipt.contract.address}`);
15
23
  * ```
16
24
  *
17
25
  * ```ts
18
26
  * const contract = Contract.at(address, MyContractArtifact, wallet);
19
- * await contract.methods.mint(1000, owner).send().wait();
27
+ * await contract.methods.mint(1000, owner).send({ from: accountAddress });
20
28
  * console.log(`Total supply is now ${await contract.methods.totalSupply().simulate()}`);
21
29
  * ```
22
30
  *
@@ -25,12 +33,11 @@
25
33
  * a transaction to the network via the `send` method, but you can also `simulate` it without sending,
26
34
  * or obtaining the `request` for aggregating into a {@link BatchCall}.
27
35
  *
28
- * The result of `send`ing a transaction is a {@link SentTx} object, from which you can get the
29
- * transaction hash, or simply `wait` until the transaction is mined and the local PXE
30
- * has synchronized its changes.
36
+ * The `send` method returns a {@link TxReceipt} by default (waits for the transaction to be mined).
37
+ * If you pass `wait: NO_WAIT` in the options, it will return a {@link TxHash} immediately without waiting.
31
38
  *
32
39
  * @remarks If you are using typescript, consider using the
33
- * {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract#use-generated-interfaces | autogenerated type-safe interfaces}
40
+ * {@link https://docs.aztec.network/developers/aztec-nr/compiling_contracts#use-generated-interfaces | autogenerated type-safe interfaces}
34
41
  * for interacting with your contracts.
35
42
  *
36
43
  * @packageDocumentation
@@ -39,27 +46,42 @@ export { Contract } from '../contract/contract.js';
39
46
  export { ContractFunctionInteraction } from '../contract/contract_function_interaction.js';
40
47
 
41
48
  export {
49
+ NO_WAIT,
50
+ type NoWait,
51
+ type OffchainMessage,
52
+ type OffchainOutput,
42
53
  type RequestInteractionOptions,
43
54
  type SendInteractionOptions,
44
55
  type ProfileInteractionOptions,
45
56
  type SimulateInteractionOptions,
46
57
  type InteractionFeeOptions,
58
+ type InteractionWaitOptions,
47
59
  type GasSettingsOption,
60
+ type SendReturn,
61
+ type SimulationResult,
62
+ type TxSendResultImmediate,
63
+ type TxSendResultMined,
64
+ emptyOffchainOutput,
65
+ extractOffchainOutput,
48
66
  toProfileOptions,
49
67
  toSendOptions,
50
68
  toSimulateOptions,
51
69
  } from '../contract/interaction_options.js';
52
70
 
53
- export { DefaultWaitOpts, SentTx, type WaitOpts } from '../contract/sent_tx.js';
71
+ export { DefaultWaitOpts, type WaitOpts } from '../contract/wait_opts.js';
54
72
  export { ContractBase, type ContractMethod, type ContractStorageLayout } from '../contract/contract_base.js';
55
73
  export { BatchCall } from '../contract/batch_call.js';
56
74
  export {
57
75
  type DeployOptions,
76
+ type DeployResultMined,
77
+ type DeployReturn,
78
+ type DeployTxReceipt,
79
+ type DeployWaitOptions,
80
+ type DeployInteractionWaitOptions,
58
81
  DeployMethod,
59
82
  type RequestDeployOptions,
60
83
  type SimulateDeployOptions,
61
84
  } from '../contract/deploy_method.js';
62
- export { DeploySentTx } from '../contract/deploy_sent_tx.js';
63
85
  export { waitForProven, type WaitForProvenOpts, DefaultWaitForProvenOpts } from '../contract/wait_for_proven.js';
64
86
  export { getGasLimits } from '../contract/get_gas_limits.js';
65
87
 
@@ -1,4 +1,3 @@
1
1
  export { publishContractClass } from '../deployment/publish_class.js';
2
- export { broadcastPrivateFunction, broadcastUtilityFunction } from '../deployment/broadcast_function.js';
3
2
  export { publishInstance } from '../deployment/publish_instance.js';
4
3
  export { ContractDeployer } from '../deployment/contract_deployer.js';
package/src/api/events.ts CHANGED
@@ -1,44 +1,52 @@
1
1
  import { type EventMetadataDefinition, EventSelector, decodeFromAbi } from '@aztec/stdlib/abi';
2
2
  import type { AztecNode } from '@aztec/stdlib/interfaces/client';
3
3
 
4
+ import type { PublicEvent, PublicEventFilter } from '../wallet/wallet.js';
5
+
4
6
  /**
5
7
  * Returns decoded public events given search parameters.
6
8
  * @param node - The node to request events from
7
- * @param eventMetadata - Metadata of the event. This should be the class generated from the contract. e.g. Contract.events.Event
8
- * @param from - The block number to search from.
9
- * @param limit - The amount of blocks to search.
10
- * @returns - The deserialized events.
9
+ * @param eventMetadataDef - Metadata of the event. This should be the class generated from the contract. e.g. Contract.events.Event
10
+ * @param filter - Filter options for the event query:
11
+ * - `contractAddress`: The address of the contract that emitted the events.
12
+ * - `txHash`: Transaction in which the events were emitted.
13
+ * - `fromBlock`: The block number from which to start fetching events (inclusive). Defaults to 1.
14
+ * - `toBlock`: The block number until which to fetch events (not inclusive). Defaults to latest + 1.
15
+ * @returns - The decoded events with metadata.
11
16
  */
12
- export async function getDecodedPublicEvents<T>(
17
+ export async function getPublicEvents<T>(
13
18
  node: AztecNode,
14
19
  eventMetadataDef: EventMetadataDefinition,
15
- from: number,
16
- limit: number,
17
- ): Promise<T[]> {
20
+ filter: PublicEventFilter,
21
+ ): Promise<PublicEvent<T>[]> {
18
22
  const { logs } = await node.getPublicLogs({
19
- fromBlock: from,
20
- toBlock: from + limit,
23
+ fromBlock: filter.fromBlock ? Number(filter.fromBlock) : undefined,
24
+ toBlock: filter.toBlock ? Number(filter.toBlock) : undefined,
25
+ txHash: filter.txHash,
26
+ contractAddress: filter.contractAddress,
21
27
  });
22
28
 
23
- const decodedEvents = logs
24
- .map(log => {
25
- // +1 for the event selector
26
- const expectedLength = eventMetadataDef.fieldNames.length + 1;
27
- if (log.log.fields.length !== expectedLength) {
28
- throw new Error(
29
- `Something is weird here, we have matching EventSelectors, but the actual payload has mismatched length. Expected ${expectedLength}. Got ${log.log.fields.length}.`,
30
- );
31
- }
29
+ const decodedEvents: PublicEvent<T>[] = [];
30
+
31
+ for (const log of logs) {
32
+ const logFields = log.log.getEmittedFields();
33
+ // Event selector is at the last position of the emitted fields
34
+ const logEventSelector = EventSelector.fromField(logFields[logFields.length - 1]);
32
35
 
33
- const logFields = log.log.getEmittedFields();
34
- // We are assuming here that event logs are the last 4 bytes of the event. This is not enshrined but is a function of aztec.nr raw log emission.
35
- if (!EventSelector.fromField(logFields[logFields.length - 1]).equals(eventMetadataDef.eventSelector)) {
36
- return undefined;
37
- }
36
+ if (!logEventSelector.equals(eventMetadataDef.eventSelector)) {
37
+ continue;
38
+ }
38
39
 
39
- return decodeFromAbi([eventMetadataDef.abiType], log.log.fields) as T;
40
- })
41
- .filter(log => log !== undefined) as T[];
40
+ decodedEvents.push({
41
+ event: decodeFromAbi([eventMetadataDef.abiType], log.log.fields) as T,
42
+ metadata: {
43
+ l2BlockNumber: log.id.blockNumber,
44
+ l2BlockHash: log.id.blockHash,
45
+ txHash: log.id.txHash,
46
+ contractAddress: log.log.contractAddress,
47
+ },
48
+ });
49
+ }
42
50
 
43
51
  return decodedEvents;
44
52
  }
package/src/api/fields.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { Fr, Fq } from '@aztec/foundation/curves/bn254';
2
2
  export { GrumpkinScalar, Point } from '@aztec/foundation/curves/grumpkin';
3
+ export { BlockNumber } from '@aztec/foundation/branded-types';
package/src/api/keys.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { type PublicKey, PublicKeys } from '@aztec/stdlib/keys';
2
2
  export {
3
- computeAppNullifierSecretKey,
3
+ computeAppNullifierHidingKey,
4
4
  deriveKeys,
5
5
  deriveMasterIncomingViewingSecretKey,
6
- deriveMasterNullifierSecretKey,
6
+ deriveMasterNullifierHidingKey,
7
7
  } from '@aztec/stdlib/keys';
8
8
  export { generatePublicKey } from '../utils/pub_key.js';
package/src/api/node.ts CHANGED
@@ -3,18 +3,22 @@
3
3
  *
4
4
  * The primary function is {@link createAztecNodeClient}, which creates a JSON-RPC client
5
5
  * that connects to a running Aztec node instance. Use {@link waitForNode} to wait for
6
- * the node to be ready before proceeding.
6
+ * the node to be ready before proceeding, and {@link waitForTx} to wait for a transaction
7
+ * to be mined.
7
8
  *
8
9
  * @example
9
10
  * ```ts
10
- * import { createAztecNodeClient, waitForNode } from '@aztec/aztec.js/node';
11
+ * import { createAztecNodeClient, waitForNode, waitForTx } from '@aztec/aztec.js/node';
11
12
  *
12
13
  * const node = createAztecNodeClient('http://localhost:8080');
13
14
  * await waitForNode(node);
14
15
  * const blockNumber = await node.getBlockNumber();
16
+ *
17
+ * // Wait for a transaction
18
+ * const receipt = await waitForTx(node, txHash);
15
19
  * ```
16
20
  *
17
21
  * @packageDocumentation
18
22
  */
19
- export { createAztecNodeClient, waitForNode, type AztecNode } from '../utils/node.js';
23
+ export { createAztecNodeClient, waitForNode, waitForTx, type AztecNode } from '../utils/node.js';
20
24
  export { type NodeInfo } from '@aztec/stdlib/contract';
package/src/api/tx.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  export {
2
2
  Tx,
3
3
  TxExecutionRequest,
4
+ TxExecutionResult,
4
5
  TxHash,
5
6
  TxReceipt,
6
7
  TxStatus,
8
+ SortedTxStatuses,
7
9
  Capsule,
8
10
  HashedValues,
9
11
  GlobalVariables,