@aztec/aztec.js 0.0.1-commit.d6f2b3f94 → 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.
- package/dest/api/abi.d.ts +2 -2
- package/dest/api/abi.d.ts.map +1 -1
- package/dest/api/contract.d.ts +3 -3
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/contract.js +1 -1
- package/dest/api/wallet.d.ts +2 -2
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.d.ts +3 -3
- package/dest/contract/base_contract_interaction.d.ts.map +1 -1
- package/dest/contract/batch_call.d.ts +3 -3
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +17 -8
- package/dest/contract/contract_function_interaction.d.ts +5 -5
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +102 -13
- package/dest/contract/deploy_method.d.ts +37 -12
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +42 -21
- package/dest/contract/get_gas_limits.js +3 -3
- package/dest/contract/interaction_options.d.ts +62 -21
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/interaction_options.js +33 -0
- package/dest/contract/protocol_contracts/auth-registry.d.ts +10 -1
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/auth-registry.js +506 -59
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +1 -1
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-class-registry.js +12 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts +1 -1
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/fee-juice.js +8 -0
- 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 +17 -1
- 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 +17 -1
- package/dest/utils/abi_types.d.ts +6 -1
- package/dest/utils/abi_types.d.ts.map +1 -1
- package/dest/utils/abi_types.js +1 -1
- package/dest/utils/authwit.d.ts +5 -5
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +10 -6
- package/dest/wallet/capabilities.d.ts +13 -5
- package/dest/wallet/capabilities.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.d.ts +15 -4
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +26 -0
- package/dest/wallet/wallet.d.ts +163 -16
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +33 -7
- package/package.json +10 -10
- package/src/api/abi.ts +1 -0
- package/src/api/contract.ts +8 -1
- package/src/api/wallet.ts +1 -0
- package/src/contract/base_contract_interaction.ts +3 -2
- package/src/contract/batch_call.ts +17 -14
- package/src/contract/contract_function_interaction.ts +101 -20
- package/src/contract/deploy_method.ts +77 -32
- package/src/contract/get_gas_limits.ts +3 -3
- package/src/contract/interaction_options.ts +96 -23
- package/src/contract/protocol_contracts/auth-registry.ts +239 -37
- package/src/contract/protocol_contracts/contract-class-registry.ts +3 -0
- package/src/contract/protocol_contracts/fee-juice.ts +2 -0
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +5 -1
- package/src/contract/protocol_contracts/public-checks.ts +5 -1
- package/src/utils/abi_types.ts +7 -0
- package/src/utils/authwit.ts +20 -22
- package/src/wallet/capabilities.ts +13 -4
- package/src/wallet/deploy_account_method.ts +39 -2
- package/src/wallet/wallet.ts +46 -6
|
@@ -6,54 +6,61 @@ const AuthRegistryContractArtifact = {
|
|
|
6
6
|
functions: [
|
|
7
7
|
{
|
|
8
8
|
...{
|
|
9
|
-
functionType: FunctionType.
|
|
10
|
-
name: '
|
|
9
|
+
functionType: FunctionType.PRIVATE,
|
|
10
|
+
name: 'set_authorized_private',
|
|
11
11
|
isOnlySelf: false,
|
|
12
12
|
isStatic: false,
|
|
13
13
|
isInitializer: false,
|
|
14
14
|
parameters: [
|
|
15
15
|
{
|
|
16
|
-
name: '
|
|
16
|
+
name: 'approver',
|
|
17
|
+
type: {
|
|
18
|
+
kind: 'struct',
|
|
19
|
+
fields: [
|
|
20
|
+
{
|
|
21
|
+
name: 'inner',
|
|
22
|
+
type: {
|
|
23
|
+
kind: 'field'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
|
|
28
|
+
},
|
|
29
|
+
visibility: 'private'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'message_hash',
|
|
17
33
|
type: {
|
|
18
34
|
kind: 'field'
|
|
19
35
|
},
|
|
20
36
|
visibility: 'private'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'authorize',
|
|
40
|
+
type: {
|
|
41
|
+
kind: 'boolean'
|
|
42
|
+
},
|
|
43
|
+
visibility: 'private'
|
|
21
44
|
}
|
|
22
45
|
],
|
|
23
46
|
returnTypes: [],
|
|
24
47
|
errorTypes: {
|
|
25
|
-
'
|
|
26
|
-
error_kind: 'string',
|
|
27
|
-
string: 'attempt to multiply with overflow'
|
|
28
|
-
},
|
|
29
|
-
'1998584279744703196': {
|
|
48
|
+
'7555607922535724711': {
|
|
30
49
|
error_kind: 'string',
|
|
31
|
-
string: '
|
|
50
|
+
string: 'Preimage mismatch'
|
|
32
51
|
},
|
|
33
|
-
'
|
|
52
|
+
'9530675838293881722': {
|
|
34
53
|
error_kind: 'string',
|
|
35
|
-
string: '
|
|
54
|
+
string: 'Writer did not write all data'
|
|
36
55
|
},
|
|
37
|
-
'
|
|
56
|
+
'9894212961085021188': {
|
|
38
57
|
error_kind: 'string',
|
|
39
|
-
string: '
|
|
58
|
+
string: 'Message not authorized by account'
|
|
40
59
|
},
|
|
41
|
-
'
|
|
60
|
+
'12327971061804302172': {
|
|
42
61
|
error_kind: 'fmtstring',
|
|
43
|
-
length:
|
|
44
|
-
item_types: [
|
|
45
|
-
{
|
|
46
|
-
kind: 'field'
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
'13455385521185560676': {
|
|
51
|
-
error_kind: 'string',
|
|
52
|
-
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
53
|
-
},
|
|
54
|
-
'13929691561421487185': {
|
|
55
|
-
error_kind: 'string',
|
|
56
|
-
string: 'Function _set_authorized can only be called by the same contract'
|
|
62
|
+
length: 98,
|
|
63
|
+
item_types: []
|
|
57
64
|
},
|
|
58
65
|
'14990209321349310352': {
|
|
59
66
|
error_kind: 'string',
|
|
@@ -66,14 +73,6 @@ const AuthRegistryContractArtifact = {
|
|
|
66
73
|
'16431471497789672479': {
|
|
67
74
|
error_kind: 'string',
|
|
68
75
|
string: 'Index out of bounds'
|
|
69
|
-
},
|
|
70
|
-
'17089945683942782951': {
|
|
71
|
-
error_kind: 'string',
|
|
72
|
-
string: 'unauthorized'
|
|
73
|
-
},
|
|
74
|
-
'17312933876399746100': {
|
|
75
|
-
error_kind: 'string',
|
|
76
|
-
string: 'Function is_consumable can only be called statically'
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
},
|
|
@@ -82,14 +81,14 @@ const AuthRegistryContractArtifact = {
|
|
|
82
81
|
},
|
|
83
82
|
{
|
|
84
83
|
...{
|
|
85
|
-
functionType: FunctionType.
|
|
86
|
-
name: '
|
|
84
|
+
functionType: FunctionType.UTILITY,
|
|
85
|
+
name: 'utility_is_consumable',
|
|
87
86
|
isOnlySelf: false,
|
|
88
87
|
isStatic: false,
|
|
89
88
|
isInitializer: false,
|
|
90
89
|
parameters: [
|
|
91
90
|
{
|
|
92
|
-
name: '
|
|
91
|
+
name: 'on_behalf_of',
|
|
93
92
|
type: {
|
|
94
93
|
kind: 'struct',
|
|
95
94
|
fields: [
|
|
@@ -110,24 +109,25 @@ const AuthRegistryContractArtifact = {
|
|
|
110
109
|
kind: 'field'
|
|
111
110
|
},
|
|
112
111
|
visibility: 'private'
|
|
113
|
-
}
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
returnTypes: [
|
|
114
115
|
{
|
|
115
|
-
|
|
116
|
-
type: {
|
|
117
|
-
kind: 'boolean'
|
|
118
|
-
},
|
|
119
|
-
visibility: 'private'
|
|
116
|
+
kind: 'boolean'
|
|
120
117
|
}
|
|
121
118
|
],
|
|
122
|
-
returnTypes: [],
|
|
123
119
|
errorTypes: {
|
|
124
|
-
'
|
|
120
|
+
'361444214588792908': {
|
|
125
121
|
error_kind: 'string',
|
|
126
|
-
string: '
|
|
122
|
+
string: 'attempt to multiply with overflow'
|
|
127
123
|
},
|
|
128
|
-
'
|
|
124
|
+
'1998584279744703196': {
|
|
129
125
|
error_kind: 'string',
|
|
130
|
-
string: '
|
|
126
|
+
string: 'attempt to subtract with overflow'
|
|
127
|
+
},
|
|
128
|
+
'13455385521185560676': {
|
|
129
|
+
error_kind: 'string',
|
|
130
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
131
131
|
},
|
|
132
132
|
'14990209321349310352': {
|
|
133
133
|
error_kind: 'string',
|
|
@@ -136,6 +136,10 @@ const AuthRegistryContractArtifact = {
|
|
|
136
136
|
'15764276373176857197': {
|
|
137
137
|
error_kind: 'string',
|
|
138
138
|
string: 'Stack too deep'
|
|
139
|
+
},
|
|
140
|
+
'16431471497789672479': {
|
|
141
|
+
error_kind: 'string',
|
|
142
|
+
string: 'Index out of bounds'
|
|
139
143
|
}
|
|
140
144
|
}
|
|
141
145
|
},
|
|
@@ -145,40 +149,275 @@ const AuthRegistryContractArtifact = {
|
|
|
145
149
|
{
|
|
146
150
|
...{
|
|
147
151
|
functionType: FunctionType.UTILITY,
|
|
148
|
-
name: '
|
|
152
|
+
name: 'process_message',
|
|
149
153
|
isOnlySelf: false,
|
|
150
154
|
isStatic: false,
|
|
151
155
|
isInitializer: false,
|
|
152
156
|
parameters: [
|
|
153
157
|
{
|
|
154
|
-
name: '
|
|
158
|
+
name: 'message_ciphertext',
|
|
155
159
|
type: {
|
|
156
160
|
kind: 'struct',
|
|
157
161
|
fields: [
|
|
158
162
|
{
|
|
159
|
-
name: '
|
|
163
|
+
name: 'storage',
|
|
160
164
|
type: {
|
|
161
|
-
kind: '
|
|
165
|
+
kind: 'array',
|
|
166
|
+
length: 15,
|
|
167
|
+
type: {
|
|
168
|
+
kind: 'field'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'len',
|
|
174
|
+
type: {
|
|
175
|
+
kind: 'integer',
|
|
176
|
+
sign: 'unsigned',
|
|
177
|
+
width: 32
|
|
162
178
|
}
|
|
163
179
|
}
|
|
164
180
|
],
|
|
165
|
-
path: '
|
|
181
|
+
path: 'std::collections::bounded_vec::BoundedVec'
|
|
166
182
|
},
|
|
167
183
|
visibility: 'private'
|
|
168
184
|
},
|
|
169
185
|
{
|
|
170
|
-
name: '
|
|
186
|
+
name: 'message_context',
|
|
171
187
|
type: {
|
|
172
|
-
kind: '
|
|
188
|
+
kind: 'struct',
|
|
189
|
+
fields: [
|
|
190
|
+
{
|
|
191
|
+
name: 'tx_hash',
|
|
192
|
+
type: {
|
|
193
|
+
kind: 'field'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'unique_note_hashes_in_tx',
|
|
198
|
+
type: {
|
|
199
|
+
kind: 'struct',
|
|
200
|
+
fields: [
|
|
201
|
+
{
|
|
202
|
+
name: 'storage',
|
|
203
|
+
type: {
|
|
204
|
+
kind: 'array',
|
|
205
|
+
length: 64,
|
|
206
|
+
type: {
|
|
207
|
+
kind: 'field'
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'len',
|
|
213
|
+
type: {
|
|
214
|
+
kind: 'integer',
|
|
215
|
+
sign: 'unsigned',
|
|
216
|
+
width: 32
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
path: 'std::collections::bounded_vec::BoundedVec'
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'first_nullifier_in_tx',
|
|
225
|
+
type: {
|
|
226
|
+
kind: 'field'
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'recipient',
|
|
231
|
+
type: {
|
|
232
|
+
kind: 'struct',
|
|
233
|
+
fields: [
|
|
234
|
+
{
|
|
235
|
+
name: 'inner',
|
|
236
|
+
type: {
|
|
237
|
+
kind: 'field'
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
path: 'aztec::messages::processing::message_context::MessageContext'
|
|
173
246
|
},
|
|
174
247
|
visibility: 'private'
|
|
175
248
|
}
|
|
176
249
|
],
|
|
177
|
-
returnTypes: [
|
|
250
|
+
returnTypes: [],
|
|
251
|
+
errorTypes: {
|
|
252
|
+
'361444214588792908': {
|
|
253
|
+
error_kind: 'string',
|
|
254
|
+
string: 'attempt to multiply with overflow'
|
|
255
|
+
},
|
|
256
|
+
'992401946138144806': {
|
|
257
|
+
error_kind: 'string',
|
|
258
|
+
string: 'Attempted to read past end of BoundedVec'
|
|
259
|
+
},
|
|
260
|
+
'1998584279744703196': {
|
|
261
|
+
error_kind: 'string',
|
|
262
|
+
string: 'attempt to subtract with overflow'
|
|
263
|
+
},
|
|
264
|
+
'2967937905572420042': {
|
|
265
|
+
error_kind: 'fmtstring',
|
|
266
|
+
length: 61,
|
|
267
|
+
item_types: [
|
|
268
|
+
{
|
|
269
|
+
kind: 'field'
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
kind: 'field'
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
'3330370348214585450': {
|
|
277
|
+
error_kind: 'fmtstring',
|
|
278
|
+
length: 48,
|
|
279
|
+
item_types: [
|
|
280
|
+
{
|
|
281
|
+
kind: 'field'
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
kind: 'field'
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
'3670003311596808700': {
|
|
289
|
+
error_kind: 'fmtstring',
|
|
290
|
+
length: 77,
|
|
291
|
+
item_types: [
|
|
292
|
+
{
|
|
293
|
+
kind: 'integer',
|
|
294
|
+
sign: 'unsigned',
|
|
295
|
+
width: 32
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
'4261968856572588300': {
|
|
300
|
+
error_kind: 'string',
|
|
301
|
+
string: 'Value does not fit in field'
|
|
302
|
+
},
|
|
303
|
+
'4440399188109668273': {
|
|
304
|
+
error_kind: 'string',
|
|
305
|
+
string: 'Input length must be a multiple of 32'
|
|
306
|
+
},
|
|
307
|
+
'5417577161503694006': {
|
|
308
|
+
error_kind: 'fmtstring',
|
|
309
|
+
length: 56,
|
|
310
|
+
item_types: [
|
|
311
|
+
{
|
|
312
|
+
kind: 'field'
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
'5421095327929394772': {
|
|
317
|
+
error_kind: 'string',
|
|
318
|
+
string: 'attempt to bit-shift with overflow'
|
|
319
|
+
},
|
|
320
|
+
'9530675838293881722': {
|
|
321
|
+
error_kind: 'string',
|
|
322
|
+
string: 'Writer did not write all data'
|
|
323
|
+
},
|
|
324
|
+
'9791669845391776238': {
|
|
325
|
+
error_kind: 'string',
|
|
326
|
+
string: '0 has a square root; you cannot claim it is not square'
|
|
327
|
+
},
|
|
328
|
+
'10135509984888824963': {
|
|
329
|
+
error_kind: 'fmtstring',
|
|
330
|
+
length: 58,
|
|
331
|
+
item_types: [
|
|
332
|
+
{
|
|
333
|
+
kind: 'field'
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
'10791800398362570014': {
|
|
338
|
+
error_kind: 'string',
|
|
339
|
+
string: 'extend_from_bounded_vec out of bounds'
|
|
340
|
+
},
|
|
341
|
+
'11692359521570349358': {
|
|
342
|
+
error_kind: 'fmtstring',
|
|
343
|
+
length: 40,
|
|
344
|
+
item_types: []
|
|
345
|
+
},
|
|
346
|
+
'12469291177396340830': {
|
|
347
|
+
error_kind: 'string',
|
|
348
|
+
string: 'call to assert_max_bit_size'
|
|
349
|
+
},
|
|
350
|
+
'12913276134398371456': {
|
|
351
|
+
error_kind: 'string',
|
|
352
|
+
string: 'push out of bounds'
|
|
353
|
+
},
|
|
354
|
+
'13557316507370296400': {
|
|
355
|
+
error_kind: 'fmtstring',
|
|
356
|
+
length: 130,
|
|
357
|
+
item_types: [
|
|
358
|
+
{
|
|
359
|
+
kind: 'integer',
|
|
360
|
+
sign: 'unsigned',
|
|
361
|
+
width: 32
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
'14938672389828944159': {
|
|
366
|
+
error_kind: 'fmtstring',
|
|
367
|
+
length: 146,
|
|
368
|
+
item_types: [
|
|
369
|
+
{
|
|
370
|
+
kind: 'integer',
|
|
371
|
+
sign: 'unsigned',
|
|
372
|
+
width: 32
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
'14990209321349310352': {
|
|
377
|
+
error_kind: 'string',
|
|
378
|
+
string: 'attempt to add with overflow'
|
|
379
|
+
},
|
|
380
|
+
'15764276373176857197': {
|
|
381
|
+
error_kind: 'string',
|
|
382
|
+
string: 'Stack too deep'
|
|
383
|
+
},
|
|
384
|
+
'16431471497789672479': {
|
|
385
|
+
error_kind: 'string',
|
|
386
|
+
string: 'Index out of bounds'
|
|
387
|
+
},
|
|
388
|
+
'17531474008201752295': {
|
|
389
|
+
error_kind: 'fmtstring',
|
|
390
|
+
length: 133,
|
|
391
|
+
item_types: [
|
|
392
|
+
{
|
|
393
|
+
kind: 'integer',
|
|
394
|
+
sign: 'unsigned',
|
|
395
|
+
width: 32
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
bytecode: Buffer.from([]),
|
|
402
|
+
debugSymbols: ''
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
...{
|
|
406
|
+
functionType: FunctionType.PUBLIC,
|
|
407
|
+
name: 'public_dispatch',
|
|
408
|
+
isOnlySelf: false,
|
|
409
|
+
isStatic: false,
|
|
410
|
+
isInitializer: false,
|
|
411
|
+
parameters: [
|
|
178
412
|
{
|
|
179
|
-
|
|
413
|
+
name: 'selector',
|
|
414
|
+
type: {
|
|
415
|
+
kind: 'field'
|
|
416
|
+
},
|
|
417
|
+
visibility: 'private'
|
|
180
418
|
}
|
|
181
419
|
],
|
|
420
|
+
returnTypes: [],
|
|
182
421
|
errorTypes: {
|
|
183
422
|
'361444214588792908': {
|
|
184
423
|
error_kind: 'string',
|
|
@@ -188,10 +427,203 @@ const AuthRegistryContractArtifact = {
|
|
|
188
427
|
error_kind: 'string',
|
|
189
428
|
string: 'attempt to subtract with overflow'
|
|
190
429
|
},
|
|
430
|
+
'5525725861591553972': {
|
|
431
|
+
error_kind: 'string',
|
|
432
|
+
string: 'rejecting all'
|
|
433
|
+
},
|
|
434
|
+
'11691217184967371519': {
|
|
435
|
+
error_kind: 'string',
|
|
436
|
+
string: 'Function is_reject_all can only be called statically'
|
|
437
|
+
},
|
|
438
|
+
'12511970388699677811': {
|
|
439
|
+
error_kind: 'fmtstring',
|
|
440
|
+
length: 27,
|
|
441
|
+
item_types: [
|
|
442
|
+
{
|
|
443
|
+
kind: 'field'
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
},
|
|
191
447
|
'13455385521185560676': {
|
|
192
448
|
error_kind: 'string',
|
|
193
449
|
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
194
450
|
},
|
|
451
|
+
'13929691561421487185': {
|
|
452
|
+
error_kind: 'string',
|
|
453
|
+
string: 'Function _set_authorized can only be called by the same contract'
|
|
454
|
+
},
|
|
455
|
+
'14990209321349310352': {
|
|
456
|
+
error_kind: 'string',
|
|
457
|
+
string: 'attempt to add with overflow'
|
|
458
|
+
},
|
|
459
|
+
'15764276373176857197': {
|
|
460
|
+
error_kind: 'string',
|
|
461
|
+
string: 'Stack too deep'
|
|
462
|
+
},
|
|
463
|
+
'16431471497789672479': {
|
|
464
|
+
error_kind: 'string',
|
|
465
|
+
string: 'Index out of bounds'
|
|
466
|
+
},
|
|
467
|
+
'17089945683942782951': {
|
|
468
|
+
error_kind: 'string',
|
|
469
|
+
string: 'unauthorized'
|
|
470
|
+
},
|
|
471
|
+
'17312933876399746100': {
|
|
472
|
+
error_kind: 'string',
|
|
473
|
+
string: 'Function is_consumable can only be called statically'
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
bytecode: Buffer.from([]),
|
|
478
|
+
debugSymbols: ''
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
...{
|
|
482
|
+
functionType: FunctionType.UTILITY,
|
|
483
|
+
name: 'sync_state',
|
|
484
|
+
isOnlySelf: false,
|
|
485
|
+
isStatic: false,
|
|
486
|
+
isInitializer: false,
|
|
487
|
+
parameters: [],
|
|
488
|
+
returnTypes: [],
|
|
489
|
+
errorTypes: {
|
|
490
|
+
'361444214588792908': {
|
|
491
|
+
error_kind: 'string',
|
|
492
|
+
string: 'attempt to multiply with overflow'
|
|
493
|
+
},
|
|
494
|
+
'992401946138144806': {
|
|
495
|
+
error_kind: 'string',
|
|
496
|
+
string: 'Attempted to read past end of BoundedVec'
|
|
497
|
+
},
|
|
498
|
+
'1998584279744703196': {
|
|
499
|
+
error_kind: 'string',
|
|
500
|
+
string: 'attempt to subtract with overflow'
|
|
501
|
+
},
|
|
502
|
+
'2967937905572420042': {
|
|
503
|
+
error_kind: 'fmtstring',
|
|
504
|
+
length: 61,
|
|
505
|
+
item_types: [
|
|
506
|
+
{
|
|
507
|
+
kind: 'field'
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
kind: 'field'
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
'3330370348214585450': {
|
|
515
|
+
error_kind: 'fmtstring',
|
|
516
|
+
length: 48,
|
|
517
|
+
item_types: [
|
|
518
|
+
{
|
|
519
|
+
kind: 'field'
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
kind: 'field'
|
|
523
|
+
}
|
|
524
|
+
]
|
|
525
|
+
},
|
|
526
|
+
'3670003311596808700': {
|
|
527
|
+
error_kind: 'fmtstring',
|
|
528
|
+
length: 77,
|
|
529
|
+
item_types: [
|
|
530
|
+
{
|
|
531
|
+
kind: 'integer',
|
|
532
|
+
sign: 'unsigned',
|
|
533
|
+
width: 32
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
'4261968856572588300': {
|
|
538
|
+
error_kind: 'string',
|
|
539
|
+
string: 'Value does not fit in field'
|
|
540
|
+
},
|
|
541
|
+
'4440399188109668273': {
|
|
542
|
+
error_kind: 'string',
|
|
543
|
+
string: 'Input length must be a multiple of 32'
|
|
544
|
+
},
|
|
545
|
+
'5417577161503694006': {
|
|
546
|
+
error_kind: 'fmtstring',
|
|
547
|
+
length: 56,
|
|
548
|
+
item_types: [
|
|
549
|
+
{
|
|
550
|
+
kind: 'field'
|
|
551
|
+
}
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
'5421095327929394772': {
|
|
555
|
+
error_kind: 'string',
|
|
556
|
+
string: 'attempt to bit-shift with overflow'
|
|
557
|
+
},
|
|
558
|
+
'9530675838293881722': {
|
|
559
|
+
error_kind: 'string',
|
|
560
|
+
string: 'Writer did not write all data'
|
|
561
|
+
},
|
|
562
|
+
'9791669845391776238': {
|
|
563
|
+
error_kind: 'string',
|
|
564
|
+
string: '0 has a square root; you cannot claim it is not square'
|
|
565
|
+
},
|
|
566
|
+
'9885968605480832328': {
|
|
567
|
+
error_kind: 'string',
|
|
568
|
+
string: 'Attempted to read past the length of a CapsuleArray'
|
|
569
|
+
},
|
|
570
|
+
'10135509984888824963': {
|
|
571
|
+
error_kind: 'fmtstring',
|
|
572
|
+
length: 58,
|
|
573
|
+
item_types: [
|
|
574
|
+
{
|
|
575
|
+
kind: 'field'
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
'10791800398362570014': {
|
|
580
|
+
error_kind: 'string',
|
|
581
|
+
string: 'extend_from_bounded_vec out of bounds'
|
|
582
|
+
},
|
|
583
|
+
'11021520179822076911': {
|
|
584
|
+
error_kind: 'string',
|
|
585
|
+
string: 'Attempted to delete past the length of a CapsuleArray'
|
|
586
|
+
},
|
|
587
|
+
'11692359521570349358': {
|
|
588
|
+
error_kind: 'fmtstring',
|
|
589
|
+
length: 40,
|
|
590
|
+
item_types: []
|
|
591
|
+
},
|
|
592
|
+
'12327971061804302172': {
|
|
593
|
+
error_kind: 'fmtstring',
|
|
594
|
+
length: 98,
|
|
595
|
+
item_types: []
|
|
596
|
+
},
|
|
597
|
+
'12469291177396340830': {
|
|
598
|
+
error_kind: 'string',
|
|
599
|
+
string: 'call to assert_max_bit_size'
|
|
600
|
+
},
|
|
601
|
+
'12913276134398371456': {
|
|
602
|
+
error_kind: 'string',
|
|
603
|
+
string: 'push out of bounds'
|
|
604
|
+
},
|
|
605
|
+
'13557316507370296400': {
|
|
606
|
+
error_kind: 'fmtstring',
|
|
607
|
+
length: 130,
|
|
608
|
+
item_types: [
|
|
609
|
+
{
|
|
610
|
+
kind: 'integer',
|
|
611
|
+
sign: 'unsigned',
|
|
612
|
+
width: 32
|
|
613
|
+
}
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
'14938672389828944159': {
|
|
617
|
+
error_kind: 'fmtstring',
|
|
618
|
+
length: 146,
|
|
619
|
+
item_types: [
|
|
620
|
+
{
|
|
621
|
+
kind: 'integer',
|
|
622
|
+
sign: 'unsigned',
|
|
623
|
+
width: 32
|
|
624
|
+
}
|
|
625
|
+
]
|
|
626
|
+
},
|
|
195
627
|
'14990209321349310352': {
|
|
196
628
|
error_kind: 'string',
|
|
197
629
|
string: 'attempt to add with overflow'
|
|
@@ -203,6 +635,21 @@ const AuthRegistryContractArtifact = {
|
|
|
203
635
|
'16431471497789672479': {
|
|
204
636
|
error_kind: 'string',
|
|
205
637
|
string: 'Index out of bounds'
|
|
638
|
+
},
|
|
639
|
+
'17531474008201752295': {
|
|
640
|
+
error_kind: 'fmtstring',
|
|
641
|
+
length: 133,
|
|
642
|
+
item_types: [
|
|
643
|
+
{
|
|
644
|
+
kind: 'integer',
|
|
645
|
+
sign: 'unsigned',
|
|
646
|
+
width: 32
|
|
647
|
+
}
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
'17655676068928457687': {
|
|
651
|
+
error_kind: 'string',
|
|
652
|
+
string: 'Reader did not read all data'
|
|
206
653
|
}
|
|
207
654
|
}
|
|
208
655
|
},
|