@aztec/aztec.js 0.0.1-commit.e61ad554 → 0.0.1-commit.ee80a48
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.
- package/dest/api/keys.d.ts +1 -1
- package/dest/api/keys.js +1 -1
- package/dest/api/wallet.d.ts +3 -2
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +2 -1
- package/dest/contract/protocol_contracts/auth-registry.d.ts +1 -10
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/auth-registry.js +61 -466
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -11
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-class-registry.js +10 -409
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +2 -11
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-instance-registry.js +80 -473
- package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -10
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/fee-juice.js +0 -401
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +12 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts +1 -1
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/public-checks.js +12 -8
- package/dest/wallet/capabilities.d.ts +444 -0
- package/dest/wallet/capabilities.d.ts.map +1 -0
- package/dest/wallet/capabilities.js +3 -0
- package/dest/wallet/index.d.ts +2 -1
- package/dest/wallet/index.d.ts.map +1 -1
- package/dest/wallet/index.js +1 -0
- package/dest/wallet/wallet.d.ts +1307 -14
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +120 -1
- package/package.json +9 -9
- package/src/api/keys.ts +2 -2
- package/src/api/wallet.ts +38 -0
- package/src/contract/protocol_contracts/auth-registry.ts +37 -231
- package/src/contract/protocol_contracts/contract-class-registry.ts +3 -195
- package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -225
- package/src/contract/protocol_contracts/fee-juice.ts +0 -193
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +3 -0
- package/src/contract/protocol_contracts/public-checks.ts +3 -2
- package/src/wallet/capabilities.ts +491 -0
- package/src/wallet/index.ts +1 -0
- package/src/wallet/wallet.ts +117 -1
|
@@ -74,10 +74,10 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
|
74
74
|
returnTypes: [],
|
|
75
75
|
errorTypes: {
|
|
76
76
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
77
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
78
77
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
79
78
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
80
79
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
80
|
+
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
81
81
|
},
|
|
82
82
|
},
|
|
83
83
|
bytecode: Buffer.from([]),
|
|
@@ -131,10 +131,10 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
|
131
131
|
returnTypes: [],
|
|
132
132
|
errorTypes: {
|
|
133
133
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
134
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
135
134
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
136
135
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
137
136
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
137
|
+
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
138
138
|
},
|
|
139
139
|
},
|
|
140
140
|
bytecode: Buffer.from([]),
|
|
@@ -157,7 +157,6 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
|
157
157
|
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
158
158
|
'922421554006670918': { error_kind: 'string', string: 'num_items is greater than MAX_ITEMS' },
|
|
159
159
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
160
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
161
160
|
'10965409165809799877': {
|
|
162
161
|
error_kind: 'string',
|
|
163
162
|
string: 'Given in_len to absorb is larger than the input array len',
|
|
@@ -167,183 +166,7 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
|
167
166
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
168
167
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
169
168
|
'16450579948625159707': { error_kind: 'string', string: 'Sponge must be in cache_size=1' },
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
bytecode: Buffer.from([]),
|
|
173
|
-
debugSymbols: '',
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
...{
|
|
177
|
-
functionType: FunctionType.UTILITY,
|
|
178
|
-
name: 'process_message',
|
|
179
|
-
isOnlySelf: false,
|
|
180
|
-
isStatic: false,
|
|
181
|
-
isInitializer: false,
|
|
182
|
-
parameters: [
|
|
183
|
-
{
|
|
184
|
-
name: 'message_ciphertext',
|
|
185
|
-
type: {
|
|
186
|
-
kind: 'struct',
|
|
187
|
-
fields: [
|
|
188
|
-
{ name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
|
|
189
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
190
|
-
],
|
|
191
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
192
|
-
},
|
|
193
|
-
visibility: 'private',
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
name: 'message_context',
|
|
197
|
-
type: {
|
|
198
|
-
kind: 'struct',
|
|
199
|
-
fields: [
|
|
200
|
-
{ name: 'tx_hash', type: { kind: 'field' } },
|
|
201
|
-
{
|
|
202
|
-
name: 'unique_note_hashes_in_tx',
|
|
203
|
-
type: {
|
|
204
|
-
kind: 'struct',
|
|
205
|
-
fields: [
|
|
206
|
-
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
207
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
208
|
-
],
|
|
209
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
213
|
-
{
|
|
214
|
-
name: 'recipient',
|
|
215
|
-
type: {
|
|
216
|
-
kind: 'struct',
|
|
217
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
218
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
],
|
|
222
|
-
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
223
|
-
},
|
|
224
|
-
visibility: 'private',
|
|
225
|
-
},
|
|
226
|
-
],
|
|
227
|
-
returnTypes: [],
|
|
228
|
-
errorTypes: {
|
|
229
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
230
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
231
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
232
|
-
'2967937905572420042': {
|
|
233
|
-
error_kind: 'fmtstring',
|
|
234
|
-
length: 61,
|
|
235
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
236
|
-
},
|
|
237
|
-
'3330370348214585450': {
|
|
238
|
-
error_kind: 'fmtstring',
|
|
239
|
-
length: 48,
|
|
240
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
241
|
-
},
|
|
242
|
-
'3670003311596808700': {
|
|
243
|
-
error_kind: 'fmtstring',
|
|
244
|
-
length: 77,
|
|
245
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
246
|
-
},
|
|
247
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
248
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
249
|
-
'9791669845391776238': {
|
|
250
|
-
error_kind: 'string',
|
|
251
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
252
|
-
},
|
|
253
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
254
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
255
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
256
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
257
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
258
|
-
'13557316507370296400': {
|
|
259
|
-
error_kind: 'fmtstring',
|
|
260
|
-
length: 130,
|
|
261
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
262
|
-
},
|
|
263
|
-
'14938672389828944159': {
|
|
264
|
-
error_kind: 'fmtstring',
|
|
265
|
-
length: 146,
|
|
266
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
267
|
-
},
|
|
268
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
269
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
270
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
271
|
-
'17531474008201752295': {
|
|
272
|
-
error_kind: 'fmtstring',
|
|
273
|
-
length: 133,
|
|
274
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
275
|
-
},
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
bytecode: Buffer.from([]),
|
|
279
|
-
debugSymbols: '',
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
...{
|
|
283
|
-
functionType: FunctionType.UTILITY,
|
|
284
|
-
name: 'sync_state',
|
|
285
|
-
isOnlySelf: false,
|
|
286
|
-
isStatic: false,
|
|
287
|
-
isInitializer: false,
|
|
288
|
-
parameters: [],
|
|
289
|
-
returnTypes: [],
|
|
290
|
-
errorTypes: {
|
|
291
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
292
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
293
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
294
|
-
'2967937905572420042': {
|
|
295
|
-
error_kind: 'fmtstring',
|
|
296
|
-
length: 61,
|
|
297
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
298
|
-
},
|
|
299
|
-
'3330370348214585450': {
|
|
300
|
-
error_kind: 'fmtstring',
|
|
301
|
-
length: 48,
|
|
302
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
303
|
-
},
|
|
304
|
-
'3670003311596808700': {
|
|
305
|
-
error_kind: 'fmtstring',
|
|
306
|
-
length: 77,
|
|
307
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
308
|
-
},
|
|
309
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
310
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
311
|
-
'9791669845391776238': {
|
|
312
|
-
error_kind: 'string',
|
|
313
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
314
|
-
},
|
|
315
|
-
'9885968605480832328': {
|
|
316
|
-
error_kind: 'string',
|
|
317
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
318
|
-
},
|
|
319
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
320
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
321
|
-
'11021520179822076911': {
|
|
322
|
-
error_kind: 'string',
|
|
323
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
324
|
-
},
|
|
325
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
326
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
327
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
328
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
329
|
-
'13557316507370296400': {
|
|
330
|
-
error_kind: 'fmtstring',
|
|
331
|
-
length: 130,
|
|
332
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
333
|
-
},
|
|
334
|
-
'14938672389828944159': {
|
|
335
|
-
error_kind: 'fmtstring',
|
|
336
|
-
length: 146,
|
|
337
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
338
|
-
},
|
|
339
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
340
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
341
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
342
|
-
'17531474008201752295': {
|
|
343
|
-
error_kind: 'fmtstring',
|
|
344
|
-
length: 133,
|
|
345
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
346
|
-
},
|
|
169
|
+
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
347
170
|
},
|
|
348
171
|
},
|
|
349
172
|
bytecode: Buffer.from([]),
|
|
@@ -404,18 +227,6 @@ export class ContractClassRegistryContract extends ContractBase {
|
|
|
404
227
|
) => ContractFunctionInteraction) &
|
|
405
228
|
Pick<ContractMethod, 'selector'>;
|
|
406
229
|
|
|
407
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
408
|
-
process_message: ((
|
|
409
|
-
message_ciphertext: FieldLike[],
|
|
410
|
-
message_context: {
|
|
411
|
-
tx_hash: FieldLike;
|
|
412
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
413
|
-
first_nullifier_in_tx: FieldLike;
|
|
414
|
-
recipient: AztecAddressLike;
|
|
415
|
-
},
|
|
416
|
-
) => ContractFunctionInteraction) &
|
|
417
|
-
Pick<ContractMethod, 'selector'>;
|
|
418
|
-
|
|
419
230
|
/** public_dispatch(selector: field) */
|
|
420
231
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
421
232
|
|
|
@@ -426,8 +237,5 @@ export class ContractClassRegistryContract extends ContractBase {
|
|
|
426
237
|
public_bytecode_commitment: FieldLike,
|
|
427
238
|
) => ContractFunctionInteraction) &
|
|
428
239
|
Pick<ContractMethod, 'selector'>;
|
|
429
|
-
|
|
430
|
-
/** sync_state() */
|
|
431
|
-
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
432
240
|
};
|
|
433
241
|
}
|
|
@@ -19,6 +19,38 @@ import { ContractFunctionInteraction } from '../contract_function_interaction.js
|
|
|
19
19
|
const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
20
20
|
name: 'ContractInstanceRegistry',
|
|
21
21
|
functions: [
|
|
22
|
+
{
|
|
23
|
+
...{
|
|
24
|
+
functionType: FunctionType.PUBLIC,
|
|
25
|
+
name: 'public_dispatch',
|
|
26
|
+
isOnlySelf: false,
|
|
27
|
+
isStatic: false,
|
|
28
|
+
isInitializer: false,
|
|
29
|
+
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
30
|
+
returnTypes: [],
|
|
31
|
+
errorTypes: {
|
|
32
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
33
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
34
|
+
'5755400808989454547': {
|
|
35
|
+
error_kind: 'string',
|
|
36
|
+
string: 'Function get_update_delay can only be called statically',
|
|
37
|
+
},
|
|
38
|
+
'6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
|
|
39
|
+
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
40
|
+
'12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
|
|
41
|
+
'13455385521185560676': {
|
|
42
|
+
error_kind: 'string',
|
|
43
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
44
|
+
},
|
|
45
|
+
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
46
|
+
'15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
|
|
47
|
+
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
48
|
+
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
bytecode: Buffer.from([]),
|
|
52
|
+
debugSymbols: '',
|
|
53
|
+
},
|
|
22
54
|
{
|
|
23
55
|
...{
|
|
24
56
|
functionType: FunctionType.PRIVATE,
|
|
@@ -137,7 +169,6 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
|
137
169
|
returnTypes: [],
|
|
138
170
|
errorTypes: {
|
|
139
171
|
'718532354304118388': { error_kind: 'string', string: 'Point not on curve' },
|
|
140
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
141
172
|
'4135474769840782447': {
|
|
142
173
|
error_kind: 'string',
|
|
143
174
|
string: 'Point at infinity should have canonical representation (0 0)',
|
|
@@ -150,215 +181,6 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
|
150
181
|
bytecode: Buffer.from([]),
|
|
151
182
|
debugSymbols: '',
|
|
152
183
|
},
|
|
153
|
-
{
|
|
154
|
-
...{
|
|
155
|
-
functionType: FunctionType.UTILITY,
|
|
156
|
-
name: 'process_message',
|
|
157
|
-
isOnlySelf: false,
|
|
158
|
-
isStatic: false,
|
|
159
|
-
isInitializer: false,
|
|
160
|
-
parameters: [
|
|
161
|
-
{
|
|
162
|
-
name: 'message_ciphertext',
|
|
163
|
-
type: {
|
|
164
|
-
kind: 'struct',
|
|
165
|
-
fields: [
|
|
166
|
-
{ name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
|
|
167
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
168
|
-
],
|
|
169
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
170
|
-
},
|
|
171
|
-
visibility: 'private',
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: 'message_context',
|
|
175
|
-
type: {
|
|
176
|
-
kind: 'struct',
|
|
177
|
-
fields: [
|
|
178
|
-
{ name: 'tx_hash', type: { kind: 'field' } },
|
|
179
|
-
{
|
|
180
|
-
name: 'unique_note_hashes_in_tx',
|
|
181
|
-
type: {
|
|
182
|
-
kind: 'struct',
|
|
183
|
-
fields: [
|
|
184
|
-
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
185
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
186
|
-
],
|
|
187
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
191
|
-
{
|
|
192
|
-
name: 'recipient',
|
|
193
|
-
type: {
|
|
194
|
-
kind: 'struct',
|
|
195
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
196
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
201
|
-
},
|
|
202
|
-
visibility: 'private',
|
|
203
|
-
},
|
|
204
|
-
],
|
|
205
|
-
returnTypes: [],
|
|
206
|
-
errorTypes: {
|
|
207
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
208
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
209
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
210
|
-
'2967937905572420042': {
|
|
211
|
-
error_kind: 'fmtstring',
|
|
212
|
-
length: 61,
|
|
213
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
214
|
-
},
|
|
215
|
-
'3330370348214585450': {
|
|
216
|
-
error_kind: 'fmtstring',
|
|
217
|
-
length: 48,
|
|
218
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
219
|
-
},
|
|
220
|
-
'3670003311596808700': {
|
|
221
|
-
error_kind: 'fmtstring',
|
|
222
|
-
length: 77,
|
|
223
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
224
|
-
},
|
|
225
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
226
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
227
|
-
'9791669845391776238': {
|
|
228
|
-
error_kind: 'string',
|
|
229
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
230
|
-
},
|
|
231
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
232
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
233
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
234
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
235
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
236
|
-
'13557316507370296400': {
|
|
237
|
-
error_kind: 'fmtstring',
|
|
238
|
-
length: 130,
|
|
239
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
240
|
-
},
|
|
241
|
-
'14938672389828944159': {
|
|
242
|
-
error_kind: 'fmtstring',
|
|
243
|
-
length: 146,
|
|
244
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
245
|
-
},
|
|
246
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
247
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
248
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
249
|
-
'17531474008201752295': {
|
|
250
|
-
error_kind: 'fmtstring',
|
|
251
|
-
length: 133,
|
|
252
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
bytecode: Buffer.from([]),
|
|
257
|
-
debugSymbols: '',
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
...{
|
|
261
|
-
functionType: FunctionType.PUBLIC,
|
|
262
|
-
name: 'public_dispatch',
|
|
263
|
-
isOnlySelf: false,
|
|
264
|
-
isStatic: false,
|
|
265
|
-
isInitializer: false,
|
|
266
|
-
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
267
|
-
returnTypes: [],
|
|
268
|
-
errorTypes: {
|
|
269
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
270
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
271
|
-
'5755400808989454547': {
|
|
272
|
-
error_kind: 'string',
|
|
273
|
-
string: 'Function get_update_delay can only be called statically',
|
|
274
|
-
},
|
|
275
|
-
'6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
|
|
276
|
-
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
277
|
-
'12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
|
|
278
|
-
'13455385521185560676': {
|
|
279
|
-
error_kind: 'string',
|
|
280
|
-
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
281
|
-
},
|
|
282
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
283
|
-
'15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
|
|
284
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
285
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
bytecode: Buffer.from([]),
|
|
289
|
-
debugSymbols: '',
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
...{
|
|
293
|
-
functionType: FunctionType.UTILITY,
|
|
294
|
-
name: 'sync_state',
|
|
295
|
-
isOnlySelf: false,
|
|
296
|
-
isStatic: false,
|
|
297
|
-
isInitializer: false,
|
|
298
|
-
parameters: [],
|
|
299
|
-
returnTypes: [],
|
|
300
|
-
errorTypes: {
|
|
301
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
302
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
303
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
304
|
-
'2967937905572420042': {
|
|
305
|
-
error_kind: 'fmtstring',
|
|
306
|
-
length: 61,
|
|
307
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
308
|
-
},
|
|
309
|
-
'3330370348214585450': {
|
|
310
|
-
error_kind: 'fmtstring',
|
|
311
|
-
length: 48,
|
|
312
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
313
|
-
},
|
|
314
|
-
'3670003311596808700': {
|
|
315
|
-
error_kind: 'fmtstring',
|
|
316
|
-
length: 77,
|
|
317
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
318
|
-
},
|
|
319
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
320
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
321
|
-
'9791669845391776238': {
|
|
322
|
-
error_kind: 'string',
|
|
323
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
324
|
-
},
|
|
325
|
-
'9885968605480832328': {
|
|
326
|
-
error_kind: 'string',
|
|
327
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
328
|
-
},
|
|
329
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
330
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
331
|
-
'11021520179822076911': {
|
|
332
|
-
error_kind: 'string',
|
|
333
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
334
|
-
},
|
|
335
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
336
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
337
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
338
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
339
|
-
'13557316507370296400': {
|
|
340
|
-
error_kind: 'fmtstring',
|
|
341
|
-
length: 130,
|
|
342
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
343
|
-
},
|
|
344
|
-
'14938672389828944159': {
|
|
345
|
-
error_kind: 'fmtstring',
|
|
346
|
-
length: 146,
|
|
347
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
348
|
-
},
|
|
349
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
350
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
351
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
352
|
-
'17531474008201752295': {
|
|
353
|
-
error_kind: 'fmtstring',
|
|
354
|
-
length: 133,
|
|
355
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
356
|
-
},
|
|
357
|
-
},
|
|
358
|
-
},
|
|
359
|
-
bytecode: Buffer.from([]),
|
|
360
|
-
debugSymbols: '',
|
|
361
|
-
},
|
|
362
184
|
],
|
|
363
185
|
nonDispatchPublicFunctions: [
|
|
364
186
|
{
|
|
@@ -392,6 +214,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
|
392
214
|
],
|
|
393
215
|
returnTypes: [],
|
|
394
216
|
errorTypes: {
|
|
217
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
395
218
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
396
219
|
'6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
|
|
397
220
|
'13455385521185560676': {
|
|
@@ -423,6 +246,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
|
423
246
|
],
|
|
424
247
|
returnTypes: [],
|
|
425
248
|
errorTypes: {
|
|
249
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
426
250
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
427
251
|
'12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
|
|
428
252
|
'13455385521185560676': {
|
|
@@ -454,18 +278,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
|
|
|
454
278
|
/** get_update_delay() */
|
|
455
279
|
get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
456
280
|
|
|
457
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
458
|
-
process_message: ((
|
|
459
|
-
message_ciphertext: FieldLike[],
|
|
460
|
-
message_context: {
|
|
461
|
-
tx_hash: FieldLike;
|
|
462
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
463
|
-
first_nullifier_in_tx: FieldLike;
|
|
464
|
-
recipient: AztecAddressLike;
|
|
465
|
-
},
|
|
466
|
-
) => ContractFunctionInteraction) &
|
|
467
|
-
Pick<ContractMethod, 'selector'>;
|
|
468
|
-
|
|
469
281
|
/** public_dispatch(selector: field) */
|
|
470
282
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
471
283
|
|
|
@@ -483,9 +295,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
|
|
|
483
295
|
set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
|
|
484
296
|
Pick<ContractMethod, 'selector'>;
|
|
485
297
|
|
|
486
|
-
/** sync_state() */
|
|
487
|
-
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
488
|
-
|
|
489
298
|
/** update(new_contract_class_id: struct) */
|
|
490
299
|
update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
|
|
491
300
|
Pick<ContractMethod, 'selector'>;
|