@aztec/aztec.js 0.0.1-commit.f295ac2 → 0.0.1-commit.f8ca9b2f3
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 +18 -12
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/contract.js +16 -10
- package/dest/api/deployment.d.ts +1 -2
- package/dest/api/deployment.d.ts.map +1 -1
- package/dest/api/deployment.js +0 -1
- 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 +97 -467
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +2 -22
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -1
- package/dest/contract/protocol_contracts/contract-class-registry.js +2 -672
- 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 +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 +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 +1493 -94
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +158 -26
- package/package.json +19 -10
- 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 +24 -9
- package/src/api/deployment.ts +0 -1
- 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 +45 -236
- package/src/contract/protocol_contracts/contract-class-registry.ts +1 -347
- 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/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 +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 +214 -48
- 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/dest/deployment/broadcast_function.d.ts +0 -24
- package/dest/deployment/broadcast_function.d.ts.map +0 -1
- package/dest/deployment/broadcast_function.js +0 -74
- package/src/account/interface.ts +0 -25
- package/src/contract/deploy_sent_tx.ts +0 -75
- package/src/contract/sent_tx.ts +0 -129
- package/src/deployment/broadcast_function.ts +0 -148
|
@@ -19,127 +19,6 @@ import { ContractFunctionInteraction } from '../contract_function_interaction.js
|
|
|
19
19
|
const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
20
20
|
name: 'ContractClassRegistry',
|
|
21
21
|
functions: [
|
|
22
|
-
{
|
|
23
|
-
...{
|
|
24
|
-
functionType: FunctionType.PRIVATE,
|
|
25
|
-
name: 'broadcast_private_function',
|
|
26
|
-
isOnlySelf: false,
|
|
27
|
-
isStatic: false,
|
|
28
|
-
isInitializer: false,
|
|
29
|
-
parameters: [
|
|
30
|
-
{
|
|
31
|
-
name: 'contract_class_id',
|
|
32
|
-
type: {
|
|
33
|
-
kind: 'struct',
|
|
34
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
35
|
-
path: 'aztec::protocol_types::contract_class_id::ContractClassId',
|
|
36
|
-
},
|
|
37
|
-
visibility: 'private',
|
|
38
|
-
},
|
|
39
|
-
{ name: 'artifact_metadata_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
40
|
-
{ name: 'utility_functions_artifact_tree_root', type: { kind: 'field' }, visibility: 'private' },
|
|
41
|
-
{
|
|
42
|
-
name: 'private_function_tree_sibling_path',
|
|
43
|
-
type: { kind: 'array', length: 7, type: { kind: 'field' } },
|
|
44
|
-
visibility: 'private',
|
|
45
|
-
},
|
|
46
|
-
{ name: 'private_function_tree_leaf_index', type: { kind: 'field' }, visibility: 'private' },
|
|
47
|
-
{
|
|
48
|
-
name: 'artifact_function_tree_sibling_path',
|
|
49
|
-
type: { kind: 'array', length: 7, type: { kind: 'field' } },
|
|
50
|
-
visibility: 'private',
|
|
51
|
-
},
|
|
52
|
-
{ name: 'artifact_function_tree_leaf_index', type: { kind: 'field' }, visibility: 'private' },
|
|
53
|
-
{
|
|
54
|
-
name: 'function_data',
|
|
55
|
-
type: {
|
|
56
|
-
kind: 'struct',
|
|
57
|
-
fields: [
|
|
58
|
-
{
|
|
59
|
-
name: 'selector',
|
|
60
|
-
type: {
|
|
61
|
-
kind: 'struct',
|
|
62
|
-
fields: [{ name: 'inner', type: { kind: 'integer', sign: 'unsigned', width: 32 } }],
|
|
63
|
-
path: 'aztec::protocol_types::abis::function_selector::FunctionSelector',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
{ name: 'metadata_hash', type: { kind: 'field' } },
|
|
67
|
-
{ name: 'vk_hash', type: { kind: 'field' } },
|
|
68
|
-
],
|
|
69
|
-
path: 'events::private_function_broadcasted::InnerPrivateFunction',
|
|
70
|
-
},
|
|
71
|
-
visibility: 'private',
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
returnTypes: [],
|
|
75
|
-
errorTypes: {
|
|
76
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
77
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
78
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
79
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
80
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
bytecode: Buffer.from([]),
|
|
84
|
-
debugSymbols: '',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
...{
|
|
88
|
-
functionType: FunctionType.PRIVATE,
|
|
89
|
-
name: 'broadcast_utility_function',
|
|
90
|
-
isOnlySelf: false,
|
|
91
|
-
isStatic: false,
|
|
92
|
-
isInitializer: false,
|
|
93
|
-
parameters: [
|
|
94
|
-
{
|
|
95
|
-
name: 'contract_class_id',
|
|
96
|
-
type: {
|
|
97
|
-
kind: 'struct',
|
|
98
|
-
fields: [{ name: 'inner', type: { kind: 'field' } }],
|
|
99
|
-
path: 'aztec::protocol_types::contract_class_id::ContractClassId',
|
|
100
|
-
},
|
|
101
|
-
visibility: 'private',
|
|
102
|
-
},
|
|
103
|
-
{ name: 'artifact_metadata_hash', type: { kind: 'field' }, visibility: 'private' },
|
|
104
|
-
{ name: 'private_functions_artifact_tree_root', type: { kind: 'field' }, visibility: 'private' },
|
|
105
|
-
{
|
|
106
|
-
name: 'artifact_function_tree_sibling_path',
|
|
107
|
-
type: { kind: 'array', length: 7, type: { kind: 'field' } },
|
|
108
|
-
visibility: 'private',
|
|
109
|
-
},
|
|
110
|
-
{ name: 'artifact_function_tree_leaf_index', type: { kind: 'field' }, visibility: 'private' },
|
|
111
|
-
{
|
|
112
|
-
name: 'function_data',
|
|
113
|
-
type: {
|
|
114
|
-
kind: 'struct',
|
|
115
|
-
fields: [
|
|
116
|
-
{
|
|
117
|
-
name: 'selector',
|
|
118
|
-
type: {
|
|
119
|
-
kind: 'struct',
|
|
120
|
-
fields: [{ name: 'inner', type: { kind: 'integer', sign: 'unsigned', width: 32 } }],
|
|
121
|
-
path: 'aztec::protocol_types::abis::function_selector::FunctionSelector',
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
{ name: 'metadata_hash', type: { kind: 'field' } },
|
|
125
|
-
],
|
|
126
|
-
path: 'events::utility_function_broadcasted::InnerUtilityFunction',
|
|
127
|
-
},
|
|
128
|
-
visibility: 'private',
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
returnTypes: [],
|
|
132
|
-
errorTypes: {
|
|
133
|
-
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
134
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
135
|
-
'14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
|
|
136
|
-
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
137
|
-
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
bytecode: Buffer.from([]),
|
|
141
|
-
debugSymbols: '',
|
|
142
|
-
},
|
|
143
22
|
{
|
|
144
23
|
...{
|
|
145
24
|
functionType: FunctionType.PRIVATE,
|
|
@@ -157,7 +36,6 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
|
157
36
|
'361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
|
|
158
37
|
'922421554006670918': { error_kind: 'string', string: 'num_items is greater than MAX_ITEMS' },
|
|
159
38
|
'1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
|
|
160
|
-
'2754040237334517471': { error_kind: 'fmtstring', length: 92, item_types: [] },
|
|
161
39
|
'10965409165809799877': {
|
|
162
40
|
error_kind: 'string',
|
|
163
41
|
string: 'Given in_len to absorb is larger than the input array len',
|
|
@@ -167,192 +45,7 @@ const ContractClassRegistryContractArtifact: ContractArtifact = {
|
|
|
167
45
|
'15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
|
|
168
46
|
'16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
|
|
169
47
|
'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
|
-
},
|
|
48
|
+
'17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
|
|
356
49
|
},
|
|
357
50
|
},
|
|
358
51
|
bytecode: Buffer.from([]),
|
|
@@ -389,42 +82,6 @@ export class ContractClassRegistryContract extends ContractBase {
|
|
|
389
82
|
}
|
|
390
83
|
|
|
391
84
|
declare public methods: {
|
|
392
|
-
/** broadcast_private_function(contract_class_id: struct, artifact_metadata_hash: field, utility_functions_artifact_tree_root: field, private_function_tree_sibling_path: array, private_function_tree_leaf_index: field, artifact_function_tree_sibling_path: array, artifact_function_tree_leaf_index: field, function_data: struct) */
|
|
393
|
-
broadcast_private_function: ((
|
|
394
|
-
contract_class_id: WrappedFieldLike,
|
|
395
|
-
artifact_metadata_hash: FieldLike,
|
|
396
|
-
utility_functions_artifact_tree_root: FieldLike,
|
|
397
|
-
private_function_tree_sibling_path: FieldLike[],
|
|
398
|
-
private_function_tree_leaf_index: FieldLike,
|
|
399
|
-
artifact_function_tree_sibling_path: FieldLike[],
|
|
400
|
-
artifact_function_tree_leaf_index: FieldLike,
|
|
401
|
-
function_data: { selector: FunctionSelectorLike; metadata_hash: FieldLike; vk_hash: FieldLike },
|
|
402
|
-
) => ContractFunctionInteraction) &
|
|
403
|
-
Pick<ContractMethod, 'selector'>;
|
|
404
|
-
|
|
405
|
-
/** broadcast_utility_function(contract_class_id: struct, artifact_metadata_hash: field, private_functions_artifact_tree_root: field, artifact_function_tree_sibling_path: array, artifact_function_tree_leaf_index: field, function_data: struct) */
|
|
406
|
-
broadcast_utility_function: ((
|
|
407
|
-
contract_class_id: WrappedFieldLike,
|
|
408
|
-
artifact_metadata_hash: FieldLike,
|
|
409
|
-
private_functions_artifact_tree_root: FieldLike,
|
|
410
|
-
artifact_function_tree_sibling_path: FieldLike[],
|
|
411
|
-
artifact_function_tree_leaf_index: FieldLike,
|
|
412
|
-
function_data: { selector: FunctionSelectorLike; metadata_hash: FieldLike },
|
|
413
|
-
) => ContractFunctionInteraction) &
|
|
414
|
-
Pick<ContractMethod, 'selector'>;
|
|
415
|
-
|
|
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
85
|
/** public_dispatch(selector: field) */
|
|
429
86
|
public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
430
87
|
|
|
@@ -435,8 +92,5 @@ export class ContractClassRegistryContract extends ContractBase {
|
|
|
435
92
|
public_bytecode_commitment: FieldLike,
|
|
436
93
|
) => ContractFunctionInteraction) &
|
|
437
94
|
Pick<ContractMethod, 'selector'>;
|
|
438
|
-
|
|
439
|
-
/** sync_private_state() */
|
|
440
|
-
sync_private_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
|
|
441
95
|
};
|
|
442
96
|
}
|