@aztec/aztec.js 0.0.1-commit.3469e52 → 0.0.1-commit.43597cc1
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/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/events.d.ts +10 -6
- package/dest/api/events.d.ts.map +1 -1
- package/dest/api/events.js +30 -20
- package/dest/api/fields.d.ts +2 -1
- package/dest/api/fields.d.ts.map +1 -1
- package/dest/api/fields.js +1 -0
- 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/contract_function_interaction.d.ts +3 -12
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +6 -6
- 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 +61 -479
- 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 -486
- 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 -414
- 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 +23 -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 +23 -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/fee/fee_juice_payment_method_with_claim.js +6 -6
- package/dest/fee/private_fee_payment_method.js +10 -10
- package/dest/fee/public_fee_payment_method.js +10 -10
- package/dest/fee/sponsored_fee_payment.js +3 -3
- package/dest/utils/authwit.d.ts +6 -6
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +2 -6
- 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/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 +19 -5
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- 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 +1491 -92
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +158 -25
- package/package.json +19 -10
- package/src/api/block.ts +1 -1
- package/src/api/contract.ts +22 -7
- package/src/api/events.ts +35 -27
- package/src/api/fields.ts +1 -0
- 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 +47 -1
- package/src/contract/base_contract_interaction.ts +27 -15
- package/src/contract/contract_function_interaction.ts +13 -6
- package/src/contract/deploy_method.ts +115 -23
- package/src/contract/interaction_options.ts +49 -4
- package/src/contract/protocol_contracts/auth-registry.ts +37 -240
- package/src/contract/protocol_contracts/contract-class-registry.ts +3 -204
- package/src/contract/protocol_contracts/contract-instance-registry.ts +34 -234
- package/src/contract/protocol_contracts/fee-juice.ts +0 -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/fee/fee_juice_payment_method_with_claim.ts +5 -5
- package/src/fee/private_fee_payment_method.ts +7 -7
- package/src/fee/public_fee_payment_method.ts +8 -8
- package/src/fee/sponsored_fee_payment.ts +3 -3
- package/src/utils/authwit.ts +16 -4
- package/src/utils/node.ts +62 -0
- package/src/wallet/capabilities.ts +491 -0
- package/src/wallet/deploy_account_method.ts +19 -4
- package/src/wallet/index.ts +1 -0
- package/src/wallet/wallet.ts +213 -46
- 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/contract/deploy_sent_tx.ts +0 -75
- package/src/contract/sent_tx.ts +0 -129
|
@@ -21,32 +21,38 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
21
21
|
functions: [
|
|
22
22
|
{
|
|
23
23
|
...{
|
|
24
|
-
functionType: FunctionType.
|
|
25
|
-
name: '
|
|
24
|
+
functionType: FunctionType.PUBLIC,
|
|
25
|
+
name: 'public_dispatch',
|
|
26
26
|
isOnlySelf: false,
|
|
27
27
|
isStatic: false,
|
|
28
28
|
isInitializer: false,
|
|
29
|
-
parameters: [
|
|
30
|
-
{
|
|
31
|
-
name: 'approver',
|
|
32
|
-
type: {
|
|
33
|
-
kind: 'struct',
|
|
34
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
35
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
36
|
-
},
|
|
37
|
-
visibility: 'private',
|
|
38
|
-
},
|
|
39
|
-
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
40
|
-
{ name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
|
|
41
|
-
],
|
|
29
|
+
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
42
30
|
returnTypes: [],
|
|
43
31
|
errorTypes: {
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
32
|
+
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
33
|
+
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
34
|
+
'5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
|
|
35
|
+
'11691217184967371519': {
|
|
36
|
+
error_kind: 'string',
|
|
37
|
+
string: 'Function is_reject_all can only be called statically',
|
|
38
|
+
},
|
|
39
|
+
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
40
|
+
'13455385521185560676': {
|
|
41
|
+
error_kind: 'string',
|
|
42
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
43
|
+
},
|
|
44
|
+
'13929691561421487185': {
|
|
45
|
+
error_kind: 'string',
|
|
46
|
+
string: 'Function _set_authorized can only be called by the same contract',
|
|
47
|
+
},
|
|
47
48
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
48
49
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
49
50
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
51
|
+
'17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
|
|
52
|
+
'17312933876399746100': {
|
|
53
|
+
error_kind: 'string',
|
|
54
|
+
string: 'Function is_consumable can only be called statically',
|
|
55
|
+
},
|
|
50
56
|
},
|
|
51
57
|
},
|
|
52
58
|
bytecode: Buffer.from([]),
|
|
@@ -54,14 +60,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
54
60
|
},
|
|
55
61
|
{
|
|
56
62
|
...{
|
|
57
|
-
functionType: FunctionType.
|
|
58
|
-
name: '
|
|
63
|
+
functionType: FunctionType.PRIVATE,
|
|
64
|
+
name: 'set_authorized_private',
|
|
59
65
|
isOnlySelf: false,
|
|
60
66
|
isStatic: false,
|
|
61
67
|
isInitializer: false,
|
|
62
68
|
parameters: [
|
|
63
69
|
{
|
|
64
|
-
name: '
|
|
70
|
+
name: 'approver',
|
|
65
71
|
type: {
|
|
66
72
|
kind: 'struct',
|
|
67
73
|
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
@@ -70,18 +76,14 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
70
76
|
visibility: 'private',
|
|
71
77
|
},
|
|
72
78
|
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
79
|
+
{ name: 'authorize', type: { kind: 'boolean' }, visibility: 'private' },
|
|
73
80
|
],
|
|
74
|
-
returnTypes: [
|
|
81
|
+
returnTypes: [],
|
|
75
82
|
errorTypes: {
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'13455385521185560676': {
|
|
79
|
-
error_kind: 'string',
|
|
80
|
-
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
81
|
-
},
|
|
83
|
+
'7555607922535724711': { error_kind: 'string', string: 'Preimage mismatch' },
|
|
84
|
+
'9894212961085021188': { error_kind: 'string', string: 'Message not authorized by account' },
|
|
82
85
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
83
86
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
84
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
85
87
|
},
|
|
86
88
|
},
|
|
87
89
|
bytecode: Buffer.from([]),
|
|
@@ -90,223 +92,33 @@ const AuthRegistryContractArtifact: ContractArtifact = {
|
|
|
90
92
|
{
|
|
91
93
|
...{
|
|
92
94
|
functionType: FunctionType.UTILITY,
|
|
93
|
-
name: '
|
|
95
|
+
name: 'utility_is_consumable',
|
|
94
96
|
isOnlySelf: false,
|
|
95
97
|
isStatic: false,
|
|
96
98
|
isInitializer: false,
|
|
97
99
|
parameters: [
|
|
98
100
|
{
|
|
99
|
-
name: '
|
|
100
|
-
type: {
|
|
101
|
-
kind: 'struct',
|
|
102
|
-
fields: [
|
|
103
|
-
{ name: 'storage', type: { kind: 'array', length: 17, type: { kind: 'field' } } },
|
|
104
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
105
|
-
],
|
|
106
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
107
|
-
},
|
|
108
|
-
visibility: 'private',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'message_context',
|
|
101
|
+
name: 'on_behalf_of',
|
|
112
102
|
type: {
|
|
113
103
|
kind: 'struct',
|
|
114
|
-
fields: [
|
|
115
|
-
|
|
116
|
-
{
|
|
117
|
-
name: 'unique_note_hashes_in_tx',
|
|
118
|
-
type: {
|
|
119
|
-
kind: 'struct',
|
|
120
|
-
fields: [
|
|
121
|
-
{ name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
|
|
122
|
-
{ name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
|
|
123
|
-
],
|
|
124
|
-
path: 'std::collections::bounded_vec::BoundedVec',
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
{ name: 'first_nullifier_in_tx', type: { kind: 'field' } },
|
|
128
|
-
{
|
|
129
|
-
name: 'recipient',
|
|
130
|
-
type: {
|
|
131
|
-
kind: 'struct',
|
|
132
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
133
|
-
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
path: 'aztec::messages::processing::message_context::MessageContext',
|
|
104
|
+
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
105
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
|
|
138
106
|
},
|
|
139
107
|
visibility: 'private',
|
|
140
108
|
},
|
|
109
|
+
{ name: 'message_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
141
110
|
],
|
|
142
|
-
returnTypes: [],
|
|
143
|
-
errorTypes: {
|
|
144
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
145
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
146
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
147
|
-
'2967937905572420042': {
|
|
148
|
-
error_kind: 'fmtstring',
|
|
149
|
-
length: 61,
|
|
150
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
151
|
-
},
|
|
152
|
-
'3330370348214585450': {
|
|
153
|
-
error_kind: 'fmtstring',
|
|
154
|
-
length: 48,
|
|
155
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
156
|
-
},
|
|
157
|
-
'3670003311596808700': {
|
|
158
|
-
error_kind: 'fmtstring',
|
|
159
|
-
length: 77,
|
|
160
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
161
|
-
},
|
|
162
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
163
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
164
|
-
'9791669845391776238': {
|
|
165
|
-
error_kind: 'string',
|
|
166
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
167
|
-
},
|
|
168
|
-
'9885968605480832328': {
|
|
169
|
-
error_kind: 'string',
|
|
170
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
171
|
-
},
|
|
172
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
173
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
174
|
-
'11021520179822076911': {
|
|
175
|
-
error_kind: 'string',
|
|
176
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
177
|
-
},
|
|
178
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
179
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
180
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
181
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
182
|
-
'13557316507370296400': {
|
|
183
|
-
error_kind: 'fmtstring',
|
|
184
|
-
length: 130,
|
|
185
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
186
|
-
},
|
|
187
|
-
'14938672389828944159': {
|
|
188
|
-
error_kind: 'fmtstring',
|
|
189
|
-
length: 146,
|
|
190
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
191
|
-
},
|
|
192
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
193
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
194
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
195
|
-
'17531474008201752295': {
|
|
196
|
-
error_kind: 'fmtstring',
|
|
197
|
-
length: 133,
|
|
198
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
bytecode: Buffer.from([]),
|
|
203
|
-
debugSymbols: '',
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
...{
|
|
207
|
-
functionType: FunctionType.PUBLIC,
|
|
208
|
-
name: 'public_dispatch',
|
|
209
|
-
isOnlySelf: false,
|
|
210
|
-
isStatic: false,
|
|
211
|
-
isInitializer: false,
|
|
212
|
-
parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
|
|
213
|
-
returnTypes: [],
|
|
111
|
+
returnTypes: [{ kind: 'boolean' }],
|
|
214
112
|
errorTypes: {
|
|
215
113
|
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
216
114
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
217
|
-
'5525725861591553972': { error_kind: 'string', string: 'rejecting all' },
|
|
218
|
-
'11691217184967371519': {
|
|
219
|
-
error_kind: 'string',
|
|
220
|
-
string: 'Function is_reject_all can only be called statically',
|
|
221
|
-
},
|
|
222
|
-
'12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
|
|
223
115
|
'13455385521185560676': {
|
|
224
116
|
error_kind: 'string',
|
|
225
117
|
string: 'Storage slot 0 not allowed. Storage slots must start from 1.',
|
|
226
118
|
},
|
|
227
|
-
'13929691561421487185': {
|
|
228
|
-
error_kind: 'string',
|
|
229
|
-
string: 'Function _set_authorized can only be called by the same contract',
|
|
230
|
-
},
|
|
231
119
|
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
232
120
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
233
121
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
234
|
-
'17089945683942782951': { error_kind: 'string', string: 'unauthorized' },
|
|
235
|
-
'17312933876399746100': {
|
|
236
|
-
error_kind: 'string',
|
|
237
|
-
string: 'Function is_consumable can only be called statically',
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
bytecode: Buffer.from([]),
|
|
242
|
-
debugSymbols: '',
|
|
243
|
-
},
|
|
244
|
-
{
|
|
245
|
-
...{
|
|
246
|
-
functionType: FunctionType.UTILITY,
|
|
247
|
-
name: 'sync_private_state',
|
|
248
|
-
isOnlySelf: false,
|
|
249
|
-
isStatic: false,
|
|
250
|
-
isInitializer: false,
|
|
251
|
-
parameters: [],
|
|
252
|
-
returnTypes: [],
|
|
253
|
-
errorTypes: {
|
|
254
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
255
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
256
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
257
|
-
'2967937905572420042': {
|
|
258
|
-
error_kind: 'fmtstring',
|
|
259
|
-
length: 61,
|
|
260
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
261
|
-
},
|
|
262
|
-
'3330370348214585450': {
|
|
263
|
-
error_kind: 'fmtstring',
|
|
264
|
-
length: 48,
|
|
265
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
266
|
-
},
|
|
267
|
-
'3670003311596808700': {
|
|
268
|
-
error_kind: 'fmtstring',
|
|
269
|
-
length: 77,
|
|
270
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
271
|
-
},
|
|
272
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
273
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
274
|
-
'9791669845391776238': {
|
|
275
|
-
error_kind: 'string',
|
|
276
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
277
|
-
},
|
|
278
|
-
'9885968605480832328': {
|
|
279
|
-
error_kind: 'string',
|
|
280
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
281
|
-
},
|
|
282
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
283
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
284
|
-
'11021520179822076911': {
|
|
285
|
-
error_kind: 'string',
|
|
286
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
287
|
-
},
|
|
288
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
289
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
290
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
291
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
292
|
-
'13557316507370296400': {
|
|
293
|
-
error_kind: 'fmtstring',
|
|
294
|
-
length: 130,
|
|
295
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
296
|
-
},
|
|
297
|
-
'14938672389828944159': {
|
|
298
|
-
error_kind: 'fmtstring',
|
|
299
|
-
length: 146,
|
|
300
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
301
|
-
},
|
|
302
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
303
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
304
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
305
|
-
'17531474008201752295': {
|
|
306
|
-
error_kind: 'fmtstring',
|
|
307
|
-
length: 133,
|
|
308
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
309
|
-
},
|
|
310
122
|
},
|
|
311
123
|
},
|
|
312
124
|
bytecode: Buffer.from([]),
|
|
@@ -514,18 +326,6 @@ export class AuthRegistryContract extends ContractBase {
|
|
|
514
326
|
/** is_reject_all(on_behalf_of: struct) */
|
|
515
327
|
is_reject_all: ((on_behalf_of: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
516
328
|
|
|
517
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
518
|
-
process_message: ((
|
|
519
|
-
message_ciphertext: FieldLike[],
|
|
520
|
-
message_context: {
|
|
521
|
-
tx_hash: FieldLike;
|
|
522
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
523
|
-
first_nullifier_in_tx: FieldLike;
|
|
524
|
-
recipient: AztecAddressLike;
|
|
525
|
-
},
|
|
526
|
-
) => ContractFunctionInteraction) &
|
|
527
|
-
Pick<ContractMethod, 'selector'>;
|
|
528
|
-
|
|
529
329
|
/** public_dispatch(selector: field) */
|
|
530
330
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
531
331
|
|
|
@@ -544,9 +344,6 @@ export class AuthRegistryContract extends ContractBase {
|
|
|
544
344
|
/** set_reject_all(reject: boolean) */
|
|
545
345
|
set_reject_all: ((reject: boolean) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
546
346
|
|
|
547
|
-
/** sync_private_state() */
|
|
548
|
-
sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
549
|
-
|
|
550
347
|
/** utility_is_consumable(on_behalf_of: struct, message_hash: field) */
|
|
551
348
|
utility_is_consumable: ((on_behalf_of: AztecAddressLike, message_hash: FieldLike) => ContractFunctionInteraction) &
|
|
552
349
|
Pick<ContractMethod, 'selector'>;
|
|
@@ -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,192 +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
|
-
'9885968605480832328': {
|
|
254
|
-
error_kind: 'string',
|
|
255
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
256
|
-
},
|
|
257
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
258
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
259
|
-
'11021520179822076911': {
|
|
260
|
-
error_kind: 'string',
|
|
261
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
262
|
-
},
|
|
263
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
264
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
265
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
266
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
267
|
-
'13557316507370296400': {
|
|
268
|
-
error_kind: 'fmtstring',
|
|
269
|
-
length: 130,
|
|
270
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
271
|
-
},
|
|
272
|
-
'14938672389828944159': {
|
|
273
|
-
error_kind: 'fmtstring',
|
|
274
|
-
length: 146,
|
|
275
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
276
|
-
},
|
|
277
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
278
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
279
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
280
|
-
'17531474008201752295': {
|
|
281
|
-
error_kind: 'fmtstring',
|
|
282
|
-
length: 133,
|
|
283
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
bytecode: Buffer.from([]),
|
|
288
|
-
debugSymbols: '',
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
...{
|
|
292
|
-
functionType: FunctionType.UTILITY,
|
|
293
|
-
name: 'sync_private_state',
|
|
294
|
-
isOnlySelf: false,
|
|
295
|
-
isStatic: false,
|
|
296
|
-
isInitializer: false,
|
|
297
|
-
parameters: [],
|
|
298
|
-
returnTypes: [],
|
|
299
|
-
errorTypes: {
|
|
300
|
-
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
301
|
-
'992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
|
|
302
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
303
|
-
'2967937905572420042': {
|
|
304
|
-
error_kind: 'fmtstring',
|
|
305
|
-
length: 61,
|
|
306
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
307
|
-
},
|
|
308
|
-
'3330370348214585450': {
|
|
309
|
-
error_kind: 'fmtstring',
|
|
310
|
-
length: 48,
|
|
311
|
-
item_types: [{ kind: 'field' }, { kind: 'field' }],
|
|
312
|
-
},
|
|
313
|
-
'3670003311596808700': {
|
|
314
|
-
error_kind: 'fmtstring',
|
|
315
|
-
length: 77,
|
|
316
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
317
|
-
},
|
|
318
|
-
'4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
|
|
319
|
-
'4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
|
|
320
|
-
'9791669845391776238': {
|
|
321
|
-
error_kind: 'string',
|
|
322
|
-
string: '0 has a square root; you cannot claim it is not square',
|
|
323
|
-
},
|
|
324
|
-
'9885968605480832328': {
|
|
325
|
-
error_kind: 'string',
|
|
326
|
-
string: 'Attempted to read past the length of a CapsuleArray',
|
|
327
|
-
},
|
|
328
|
-
'10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
|
|
329
|
-
'10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
|
|
330
|
-
'11021520179822076911': {
|
|
331
|
-
error_kind: 'string',
|
|
332
|
-
string: 'Attempted to delete past the length of a CapsuleArray',
|
|
333
|
-
},
|
|
334
|
-
'11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
|
|
335
|
-
'12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
|
|
336
|
-
'12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
|
|
337
|
-
'12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
|
|
338
|
-
'13557316507370296400': {
|
|
339
|
-
error_kind: 'fmtstring',
|
|
340
|
-
length: 130,
|
|
341
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
342
|
-
},
|
|
343
|
-
'14938672389828944159': {
|
|
344
|
-
error_kind: 'fmtstring',
|
|
345
|
-
length: 146,
|
|
346
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
347
|
-
},
|
|
348
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
349
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
350
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
351
|
-
'17531474008201752295': {
|
|
352
|
-
error_kind: 'fmtstring',
|
|
353
|
-
length: 133,
|
|
354
|
-
item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
|
|
355
|
-
},
|
|
169
|
+
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
356
170
|
},
|
|
357
171
|
},
|
|
358
172
|
bytecode: Buffer.from([]),
|
|
@@ -413,18 +227,6 @@ export class ContractClassRegistryContract extends ContractBase {
|
|
|
413
227
|
) => ContractFunctionInteraction) &
|
|
414
228
|
Pick<ContractMethod, 'selector'>;
|
|
415
229
|
|
|
416
|
-
/** process_message(message_ciphertext: struct, message_context: struct) */
|
|
417
|
-
process_message: ((
|
|
418
|
-
message_ciphertext: FieldLike[],
|
|
419
|
-
message_context: {
|
|
420
|
-
tx_hash: FieldLike;
|
|
421
|
-
unique_note_hashes_in_tx: FieldLike[];
|
|
422
|
-
first_nullifier_in_tx: FieldLike;
|
|
423
|
-
recipient: AztecAddressLike;
|
|
424
|
-
},
|
|
425
|
-
) => ContractFunctionInteraction) &
|
|
426
|
-
Pick<ContractMethod, 'selector'>;
|
|
427
|
-
|
|
428
230
|
/** public_dispatch(selector: field) */
|
|
429
231
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
430
232
|
|
|
@@ -435,8 +237,5 @@ export class ContractClassRegistryContract extends ContractBase {
|
|
|
435
237
|
public_bytecode_commitment: FieldLike,
|
|
436
238
|
) => ContractFunctionInteraction) &
|
|
437
239
|
Pick<ContractMethod, 'selector'>;
|
|
438
|
-
|
|
439
|
-
/** sync_private_state() */
|
|
440
|
-
sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
441
240
|
};
|
|
442
241
|
}
|