@aztec/aztec.js 0.0.1-commit.f295ac2 → 0.0.1-commit.fc805bf
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/account/account.d.ts +25 -40
- package/dest/account/account.d.ts.map +1 -1
- package/dest/account/account.js +19 -47
- package/dest/account/account_contract.d.ts +7 -8
- package/dest/account/account_contract.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.d.ts +18 -7
- package/dest/account/account_with_secret_key.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.js +21 -4
- package/dest/account/index.d.ts +3 -2
- package/dest/account/index.d.ts.map +1 -1
- package/dest/account/index.js +2 -0
- package/dest/account/signerless_account.d.ts +5 -6
- package/dest/account/signerless_account.d.ts.map +1 -1
- package/dest/account/signerless_account.js +8 -11
- package/dest/api/account.d.ts +2 -4
- package/dest/api/account.d.ts.map +1 -1
- package/dest/api/account.js +1 -3
- package/dest/api/authorization.d.ts +2 -2
- package/dest/api/authorization.d.ts.map +1 -1
- package/dest/api/authorization.js +1 -1
- package/dest/api/block.d.ts +2 -2
- package/dest/api/block.d.ts.map +1 -1
- package/dest/api/block.js +1 -1
- package/dest/api/contract.d.ts +16 -10
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/contract.js +14 -8
- package/dest/api/keys.d.ts +1 -1
- package/dest/api/keys.js +1 -1
- package/dest/api/node.d.ts +8 -4
- package/dest/api/node.d.ts.map +1 -1
- package/dest/api/node.js +7 -3
- package/dest/api/tx.d.ts +2 -2
- package/dest/api/tx.d.ts.map +1 -1
- package/dest/api/tx.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/base_contract_interaction.d.ts +8 -10
- package/dest/contract/base_contract_interaction.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.js +5 -17
- package/dest/contract/deploy_method.d.ts +63 -16
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +36 -19
- package/dest/contract/interaction_options.d.ts +42 -5
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/interaction_options.js +8 -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 +97 -467
- 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 -422
- 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 -482
- 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 +14 -412
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +3 -3
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +13 -14
- package/dest/contract/protocol_contracts/public-checks.d.ts +3 -3
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/public-checks.js +13 -22
- package/dest/contract/wait_for_proven.js +1 -1
- package/dest/contract/wait_opts.d.ts +16 -0
- package/dest/contract/wait_opts.d.ts.map +1 -0
- package/dest/contract/wait_opts.js +5 -0
- package/dest/utils/authwit.d.ts +8 -6
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +5 -9
- package/dest/utils/node.d.ts +12 -1
- package/dest/utils/node.d.ts.map +1 -1
- package/dest/utils/node.js +46 -0
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
- package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
- package/dest/wallet/account_manager.d.ts +1 -7
- package/dest/wallet/account_manager.d.ts.map +1 -1
- package/dest/wallet/account_manager.js +5 -11
- 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/deploy_account_method.d.ts +34 -6
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +7 -5
- 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 +1358 -20
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +136 -5
- package/package.json +9 -9
- package/src/account/account.ts +34 -58
- package/src/account/account_contract.ts +6 -7
- package/src/account/account_with_secret_key.ts +33 -8
- package/src/account/index.ts +2 -1
- package/src/account/signerless_account.ts +13 -12
- package/src/api/account.ts +9 -3
- package/src/api/authorization.ts +1 -0
- package/src/api/block.ts +1 -1
- package/src/api/contract.ts +22 -7
- package/src/api/keys.ts +2 -2
- package/src/api/node.ts +7 -3
- package/src/api/tx.ts +2 -0
- package/src/api/wallet.ts +43 -0
- package/src/contract/base_contract_interaction.ts +27 -15
- package/src/contract/deploy_method.ts +115 -23
- package/src/contract/interaction_options.ts +49 -4
- package/src/contract/protocol_contracts/auth-registry.ts +45 -236
- package/src/contract/protocol_contracts/contract-class-registry.ts +3 -204
- package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -233
- package/src/contract/protocol_contracts/fee-juice.ts +4 -202
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +6 -12
- package/src/contract/protocol_contracts/public-checks.ts +6 -14
- package/src/contract/wait_for_proven.ts +1 -1
- package/src/contract/wait_opts.ts +21 -0
- package/src/utils/authwit.ts +19 -7
- package/src/utils/node.ts +62 -0
- package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
- package/src/wallet/account_manager.ts +5 -13
- package/src/wallet/capabilities.ts +491 -0
- package/src/wallet/deploy_account_method.ts +37 -13
- package/src/wallet/index.ts +1 -0
- package/src/wallet/wallet.ts +149 -14
- package/dest/account/interface.d.ts +0 -19
- package/dest/account/interface.d.ts.map +0 -1
- package/dest/account/interface.js +0 -5
- package/dest/contract/deploy_sent_tx.d.ts +0 -48
- package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
- package/dest/contract/deploy_sent_tx.js +0 -46
- package/dest/contract/sent_tx.d.ts +0 -50
- package/dest/contract/sent_tx.d.ts.map +0 -1
- package/dest/contract/sent_tx.js +0 -90
- package/src/account/interface.ts +0 -25
- package/src/contract/deploy_sent_tx.ts +0 -75
- package/src/contract/sent_tx.ts +0 -129
|
@@ -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,223 +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
|
-
'9885968605480832328': {
|
|
232
|
-
error_kind: 'string',
|
|
233
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
234
|
-
},
|
|
235
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
236
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
237
|
-
'11021520179822076911': {
|
|
238
|
-
error_kind: 'string',
|
|
239
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
240
|
-
},
|
|
241
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
242
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
243
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
244
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
245
|
-
'13557316507370296400': {
|
|
246
|
-
error_kind: 'fmtstring',
|
|
247
|
-
length: 130,
|
|
248
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
249
|
-
},
|
|
250
|
-
'14938672389828944159': {
|
|
251
|
-
error_kind: 'fmtstring',
|
|
252
|
-
length: 146,
|
|
253
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
254
|
-
},
|
|
255
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
256
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
257
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
258
|
-
'17531474008201752295': {
|
|
259
|
-
error_kind: 'fmtstring',
|
|
260
|
-
length: 133,
|
|
261
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
bytecode: Buffer.from([]),
|
|
266
|
-
debugSymbols: '',
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
...{
|
|
270
|
-
functionType: FunctionType.PUBLIC,
|
|
271
|
-
name: 'public_dispatch',
|
|
272
|
-
isOnlySelf: false,
|
|
273
|
-
isStatic: false,
|
|
274
|
-
isInitializer: false,
|
|
275
|
-
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
276
|
-
returnTypes: [],
|
|
277
|
-
errorTypes: {
|
|
278
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
279
|
-
'5755400808989454547': {
|
|
280
|
-
error_kind: 'string',
|
|
281
|
-
string: 'Function get_update_delay can only be called statically',
|
|
282
|
-
},
|
|
283
|
-
'6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
|
|
284
|
-
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
285
|
-
'12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
|
|
286
|
-
'13455385521185560676': {
|
|
287
|
-
error_kind: 'string',
|
|
288
|
-
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
289
|
-
},
|
|
290
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
291
|
-
'15353471697975175405': { error_kind: 'string', string: 'msg.sender is not deployed' },
|
|
292
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
293
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
bytecode: Buffer.from([]),
|
|
297
|
-
debugSymbols: '',
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
...{
|
|
301
|
-
functionType: FunctionType.UTILITY,
|
|
302
|
-
name: 'sync_private_state',
|
|
303
|
-
isOnlySelf: false,
|
|
304
|
-
isStatic: false,
|
|
305
|
-
isInitializer: false,
|
|
306
|
-
parameters: [],
|
|
307
|
-
returnTypes: [],
|
|
308
|
-
errorTypes: {
|
|
309
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
310
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
311
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
312
|
-
'2967937905572420042': {
|
|
313
|
-
error_kind: 'fmtstring',
|
|
314
|
-
length: 61,
|
|
315
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
316
|
-
},
|
|
317
|
-
'3330370348214585450': {
|
|
318
|
-
error_kind: 'fmtstring',
|
|
319
|
-
length: 48,
|
|
320
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
321
|
-
},
|
|
322
|
-
'3670003311596808700': {
|
|
323
|
-
error_kind: 'fmtstring',
|
|
324
|
-
length: 77,
|
|
325
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
326
|
-
},
|
|
327
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
328
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
329
|
-
'9791669845391776238': {
|
|
330
|
-
error_kind: 'string',
|
|
331
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
332
|
-
},
|
|
333
|
-
'9885968605480832328': {
|
|
334
|
-
error_kind: 'string',
|
|
335
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
336
|
-
},
|
|
337
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
338
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
339
|
-
'11021520179822076911': {
|
|
340
|
-
error_kind: 'string',
|
|
341
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
342
|
-
},
|
|
343
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
344
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
345
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
346
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
347
|
-
'13557316507370296400': {
|
|
348
|
-
error_kind: 'fmtstring',
|
|
349
|
-
length: 130,
|
|
350
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
351
|
-
},
|
|
352
|
-
'14938672389828944159': {
|
|
353
|
-
error_kind: 'fmtstring',
|
|
354
|
-
length: 146,
|
|
355
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
356
|
-
},
|
|
357
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
358
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
359
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
360
|
-
'17531474008201752295': {
|
|
361
|
-
error_kind: 'fmtstring',
|
|
362
|
-
length: 133,
|
|
363
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
364
|
-
},
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
bytecode: Buffer.from([]),
|
|
368
|
-
debugSymbols: '',
|
|
369
|
-
},
|
|
370
184
|
],
|
|
371
185
|
nonDispatchPublicFunctions: [
|
|
372
186
|
{
|
|
@@ -400,6 +214,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
|
400
214
|
],
|
|
401
215
|
returnTypes: [],
|
|
402
216
|
errorTypes: {
|
|
217
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
403
218
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
404
219
|
'6804164082532189961': { error_kind: 'string', string: 'New update delay is too low' },
|
|
405
220
|
'13455385521185560676': {
|
|
@@ -431,6 +246,7 @@ const ContractInstanceRegistryContractArtifact: ContractArtifact = {
|
|
|
431
246
|
],
|
|
432
247
|
returnTypes: [],
|
|
433
248
|
errorTypes: {
|
|
249
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
434
250
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
435
251
|
'12579274401768182412': { error_kind: 'string', string: 'New contract class is not registered' },
|
|
436
252
|
'13455385521185560676': {
|
|
@@ -462,18 +278,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
|
|
|
462
278
|
/** get_update_delay() */
|
|
463
279
|
get_update_delay: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
464
280
|
|
|
465
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
466
|
-
process_message: ((
|
|
467
|
-
message_ciphertext: FieldLike[],
|
|
468
|
-
message_context: {
|
|
469
|
-
tx_hash: FieldLike;
|
|
470
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
471
|
-
first_nullifier_in_tx: FieldLike;
|
|
472
|
-
recipient: AztecAddressLike;
|
|
473
|
-
},
|
|
474
|
-
) => ContractFunctionInteraction) &
|
|
475
|
-
Pick<ContractMethod, 'selector'>;
|
|
476
|
-
|
|
477
281
|
/** public_dispatch(selector: field) */
|
|
478
282
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
479
283
|
|
|
@@ -491,9 +295,6 @@ export class ContractInstanceRegistryContract extends ContractBase {
|
|
|
491
295
|
set_update_delay: ((new_update_delay: bigint | number) => ContractFunctionInteraction) &
|
|
492
296
|
Pick<ContractMethod, 'selector'>;
|
|
493
297
|
|
|
494
|
-
/** sync_private_state() */
|
|
495
|
-
sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
496
|
-
|
|
497
298
|
/** update(new_contract_class_id: struct) */
|
|
498
299
|
update: ((new_contract_class_id: WrappedFieldLike) => ContractFunctionInteraction) &
|
|
499
300
|
Pick<ContractMethod, 'selector'>;
|
|
@@ -44,7 +44,6 @@ 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
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
48
47
|
'6609888949476313245': { error_kind: 'string', string: 'Message not in state' },
|
|
49
48
|
'11019205087382408538': { error_kind: 'string', string: 'Field failed to decompose into specified 4 limbs' },
|
|
50
49
|
'12370419938245003393': { error_kind: 'string', string: 'Field failed to decompose into specified 36 limbs' },
|
|
@@ -94,121 +93,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
|
|
|
94
93
|
bytecode: Buffer.from([]),
|
|
95
94
|
debugSymbols: '',
|
|
96
95
|
},
|
|
97
|
-
{
|
|
98
|
-
...{
|
|
99
|
-
functionType: FunctionType.UTILITY,
|
|
100
|
-
name: 'process_message',
|
|
101
|
-
isOnlySelf: false,
|
|
102
|
-
isStatic: false,
|
|
103
|
-
isInitializer: false,
|
|
104
|
-
parameters: [
|
|
105
|
-
{
|
|
106
|
-
name: 'message_ciphertext',
|
|
107
|
-
type: {
|
|
108
|
-
kind: 'struct',
|
|
109
|
-
fields: [
|
|
110
|
-
{ name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
|
|
111
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
112
|
-
],
|
|
113
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
114
|
-
},
|
|
115
|
-
visibility: 'private',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'message_context',
|
|
119
|
-
type: {
|
|
120
|
-
kind: 'struct',
|
|
121
|
-
fields: [
|
|
122
|
-
{ name: 'tx_hash', type: { kind: 'field' } },
|
|
123
|
-
{
|
|
124
|
-
name: 'unique_note_hashes_in_tx',
|
|
125
|
-
type: {
|
|
126
|
-
kind: 'struct',
|
|
127
|
-
fields: [
|
|
128
|
-
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
129
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
130
|
-
],
|
|
131
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
135
|
-
{
|
|
136
|
-
name: 'recipient',
|
|
137
|
-
type: {
|
|
138
|
-
kind: 'struct',
|
|
139
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
140
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
145
|
-
},
|
|
146
|
-
visibility: 'private',
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
returnTypes: [],
|
|
150
|
-
errorTypes: {
|
|
151
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
152
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
153
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
154
|
-
'2967937905572420042': {
|
|
155
|
-
error_kind: 'fmtstring',
|
|
156
|
-
length: 61,
|
|
157
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
158
|
-
},
|
|
159
|
-
'3330370348214585450': {
|
|
160
|
-
error_kind: 'fmtstring',
|
|
161
|
-
length: 48,
|
|
162
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
163
|
-
},
|
|
164
|
-
'3670003311596808700': {
|
|
165
|
-
error_kind: 'fmtstring',
|
|
166
|
-
length: 77,
|
|
167
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
168
|
-
},
|
|
169
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
170
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
171
|
-
'9791669845391776238': {
|
|
172
|
-
error_kind: 'string',
|
|
173
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
174
|
-
},
|
|
175
|
-
'9885968605480832328': {
|
|
176
|
-
error_kind: 'string',
|
|
177
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
178
|
-
},
|
|
179
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
180
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
181
|
-
'11021520179822076911': {
|
|
182
|
-
error_kind: 'string',
|
|
183
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
184
|
-
},
|
|
185
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
186
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
187
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
188
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
189
|
-
'13557316507370296400': {
|
|
190
|
-
error_kind: 'fmtstring',
|
|
191
|
-
length: 130,
|
|
192
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
193
|
-
},
|
|
194
|
-
'14938672389828944159': {
|
|
195
|
-
error_kind: 'fmtstring',
|
|
196
|
-
length: 146,
|
|
197
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
198
|
-
},
|
|
199
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
200
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
201
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
202
|
-
'17531474008201752295': {
|
|
203
|
-
error_kind: 'fmtstring',
|
|
204
|
-
length: 133,
|
|
205
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
bytecode: Buffer.from([]),
|
|
210
|
-
debugSymbols: '',
|
|
211
|
-
},
|
|
212
96
|
{
|
|
213
97
|
...{
|
|
214
98
|
functionType: FunctionType.PUBLIC,
|
|
@@ -219,10 +103,12 @@ const FeeJuiceContractArtifact: ContractArtifact = {
|
|
|
219
103
|
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
220
104
|
returnTypes: [],
|
|
221
105
|
errorTypes: {
|
|
106
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
222
107
|
'1080336462466469436': {
|
|
223
108
|
error_kind: 'string',
|
|
224
109
|
string: 'Function check_balance can only be called statically',
|
|
225
110
|
},
|
|
111
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
226
112
|
'8637882143979902881': {
|
|
227
113
|
error_kind: 'string',
|
|
228
114
|
string: 'Function _increase_public_balance can only be called by the same contract',
|
|
@@ -245,77 +131,6 @@ const FeeJuiceContractArtifact: ContractArtifact = {
|
|
|
245
131
|
bytecode: Buffer.from([]),
|
|
246
132
|
debugSymbols: '',
|
|
247
133
|
},
|
|
248
|
-
{
|
|
249
|
-
...{
|
|
250
|
-
functionType: FunctionType.UTILITY,
|
|
251
|
-
name: 'sync_private_state',
|
|
252
|
-
isOnlySelf: false,
|
|
253
|
-
isStatic: false,
|
|
254
|
-
isInitializer: false,
|
|
255
|
-
parameters: [],
|
|
256
|
-
returnTypes: [],
|
|
257
|
-
errorTypes: {
|
|
258
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
259
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
260
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
261
|
-
'2967937905572420042': {
|
|
262
|
-
error_kind: 'fmtstring',
|
|
263
|
-
length: 61,
|
|
264
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
265
|
-
},
|
|
266
|
-
'3330370348214585450': {
|
|
267
|
-
error_kind: 'fmtstring',
|
|
268
|
-
length: 48,
|
|
269
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
270
|
-
},
|
|
271
|
-
'3670003311596808700': {
|
|
272
|
-
error_kind: 'fmtstring',
|
|
273
|
-
length: 77,
|
|
274
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
275
|
-
},
|
|
276
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
277
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
278
|
-
'9791669845391776238': {
|
|
279
|
-
error_kind: 'string',
|
|
280
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
281
|
-
},
|
|
282
|
-
'9885968605480832328': {
|
|
283
|
-
error_kind: 'string',
|
|
284
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
285
|
-
},
|
|
286
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
287
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
288
|
-
'11021520179822076911': {
|
|
289
|
-
error_kind: 'string',
|
|
290
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
291
|
-
},
|
|
292
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
293
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
294
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
295
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
296
|
-
'13557316507370296400': {
|
|
297
|
-
error_kind: 'fmtstring',
|
|
298
|
-
length: 130,
|
|
299
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
300
|
-
},
|
|
301
|
-
'14938672389828944159': {
|
|
302
|
-
error_kind: 'fmtstring',
|
|
303
|
-
length: 146,
|
|
304
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
305
|
-
},
|
|
306
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
307
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
308
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
309
|
-
'17531474008201752295': {
|
|
310
|
-
error_kind: 'fmtstring',
|
|
311
|
-
length: 133,
|
|
312
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
bytecode: Buffer.from([]),
|
|
317
|
-
debugSymbols: '',
|
|
318
|
-
},
|
|
319
134
|
],
|
|
320
135
|
nonDispatchPublicFunctions: [
|
|
321
136
|
{
|
|
@@ -338,6 +153,8 @@ const FeeJuiceContractArtifact: ContractArtifact = {
|
|
|
338
153
|
],
|
|
339
154
|
returnTypes: [],
|
|
340
155
|
errorTypes: {
|
|
156
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
157
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
341
158
|
'8637882143979902881': {
|
|
342
159
|
error_kind: 'string',
|
|
343
160
|
string: 'Function _increase_public_balance can only be called by the same contract',
|
|
@@ -441,22 +258,7 @@ export class FeeJuiceContract extends ContractBase {
|
|
|
441
258
|
) => ContractFunctionInteraction) &
|
|
442
259
|
Pick<ContractMethod, 'selector'>;
|
|
443
260
|
|
|
444
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
445
|
-
process_message: ((
|
|
446
|
-
message_ciphertext: FieldLike[],
|
|
447
|
-
message_context: {
|
|
448
|
-
tx_hash: FieldLike;
|
|
449
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
450
|
-
first_nullifier_in_tx: FieldLike;
|
|
451
|
-
recipient: AztecAddressLike;
|
|
452
|
-
},
|
|
453
|
-
) => ContractFunctionInteraction) &
|
|
454
|
-
Pick<ContractMethod, 'selector'>;
|
|
455
|
-
|
|
456
261
|
/** public_dispatch(selector: field) */
|
|
457
262
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
458
|
-
|
|
459
|
-
/** sync_private_state() */
|
|
460
|
-
sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
461
263
|
};
|
|
462
264
|
}
|
|
@@ -160,22 +160,14 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
|
|
|
160
160
|
},
|
|
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
|
+
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
163
164
|
'9791669845391776238': {
|
|
164
165
|
error_kind: 'string',
|
|
165
166
|
string: '0 has a square root; you cannot claim it is not square',
|
|
166
167
|
},
|
|
167
|
-
'9885968605480832328': {
|
|
168
|
-
error_kind: 'string',
|
|
169
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
170
|
-
},
|
|
171
168
|
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
172
169
|
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
173
|
-
'11021520179822076911': {
|
|
174
|
-
error_kind: 'string',
|
|
175
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
176
|
-
},
|
|
177
170
|
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
178
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
179
171
|
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
180
172
|
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
181
173
|
'13557316507370296400': {
|
|
@@ -204,7 +196,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
|
|
|
204
196
|
{
|
|
205
197
|
...{
|
|
206
198
|
functionType: FunctionType.UTILITY,
|
|
207
|
-
name: '
|
|
199
|
+
name: 'sync_state',
|
|
208
200
|
isOnlySelf: false,
|
|
209
201
|
isStatic: false,
|
|
210
202
|
isInitializer: false,
|
|
@@ -231,6 +223,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
|
|
|
231
223
|
},
|
|
232
224
|
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
233
225
|
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
226
|
+
'9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
|
|
234
227
|
'9791669845391776238': {
|
|
235
228
|
error_kind: 'string',
|
|
236
229
|
string: '0 has a square root; you cannot claim it is not square',
|
|
@@ -267,6 +260,7 @@ const MultiCallEntrypointContractArtifact: ContractArtifact = {
|
|
|
267
260
|
length: 133,
|
|
268
261
|
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
269
262
|
},
|
|
263
|
+
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
270
264
|
},
|
|
271
265
|
},
|
|
272
266
|
bytecode: Buffer.from([]),
|
|
@@ -332,7 +326,7 @@ export class MultiCallEntrypointContract extends ContractBase {
|
|
|
332
326
|
/** public_dispatch(selector: field) */
|
|
333
327
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
334
328
|
|
|
335
|
-
/**
|
|
336
|
-
|
|
329
|
+
/** sync_state() */
|
|
330
|
+
sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
337
331
|
};
|
|
338
332
|
}
|