@aztec/aztec.js 0.0.1-commit.b655e406 → 0.0.1-commit.c0b82b2

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.
Files changed (261) hide show
  1. package/dest/account/account.d.ts +26 -42
  2. package/dest/account/account.d.ts.map +1 -1
  3. package/dest/account/account.js +19 -47
  4. package/dest/account/account_contract.d.ts +9 -10
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +20 -9
  7. package/dest/account/account_with_secret_key.d.ts.map +1 -1
  8. package/dest/account/account_with_secret_key.js +21 -4
  9. package/dest/account/index.d.ts +4 -3
  10. package/dest/account/index.d.ts.map +1 -1
  11. package/dest/account/index.js +2 -0
  12. package/dest/account/signerless_account.d.ts +7 -9
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/abi.d.ts +1 -1
  16. package/dest/api/account.d.ts +3 -4
  17. package/dest/api/account.d.ts.map +1 -1
  18. package/dest/api/account.js +2 -3
  19. package/dest/api/addresses.d.ts +1 -1
  20. package/dest/api/authorization.d.ts +2 -2
  21. package/dest/api/authorization.d.ts.map +1 -1
  22. package/dest/api/authorization.js +1 -1
  23. package/dest/api/block.d.ts +1 -1
  24. package/dest/api/contract.d.ts +19 -13
  25. package/dest/api/contract.d.ts.map +1 -1
  26. package/dest/api/contract.js +17 -11
  27. package/dest/api/crypto.d.ts +1 -1
  28. package/dest/api/deployment.d.ts +1 -2
  29. package/dest/api/deployment.d.ts.map +1 -1
  30. package/dest/api/deployment.js +0 -1
  31. package/dest/api/eth_address.d.ts +1 -1
  32. package/dest/api/ethereum.d.ts +1 -1
  33. package/dest/api/events.d.ts +10 -6
  34. package/dest/api/events.d.ts.map +1 -1
  35. package/dest/api/events.js +30 -20
  36. package/dest/api/fee.d.ts +1 -1
  37. package/dest/api/fee_testing.d.ts +1 -1
  38. package/dest/api/fields.d.ts +4 -2
  39. package/dest/api/fields.d.ts.map +1 -1
  40. package/dest/api/fields.js +3 -1
  41. package/dest/api/keys.d.ts +2 -2
  42. package/dest/api/keys.js +1 -1
  43. package/dest/api/log.d.ts +1 -1
  44. package/dest/api/messaging.d.ts +1 -1
  45. package/dest/api/node.d.ts +8 -4
  46. package/dest/api/node.d.ts.map +1 -1
  47. package/dest/api/node.js +7 -3
  48. package/dest/api/note.d.ts +2 -2
  49. package/dest/api/note.d.ts.map +1 -1
  50. package/dest/api/note.js +1 -1
  51. package/dest/api/protocol.d.ts +7 -1
  52. package/dest/api/protocol.d.ts.map +1 -1
  53. package/dest/api/protocol.js +6 -0
  54. package/dest/api/trees.d.ts +1 -1
  55. package/dest/api/tx.d.ts +2 -2
  56. package/dest/api/tx.d.ts.map +1 -1
  57. package/dest/api/tx.js +1 -1
  58. package/dest/api/utils.d.ts +1 -1
  59. package/dest/api/wallet.d.ts +3 -3
  60. package/dest/api/wallet.d.ts.map +1 -1
  61. package/dest/api/wallet.js +2 -2
  62. package/dest/authorization/call_authorization_request.d.ts +2 -2
  63. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  64. package/dest/contract/base_contract_interaction.d.ts +8 -11
  65. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  66. package/dest/contract/base_contract_interaction.js +5 -17
  67. package/dest/contract/batch_call.d.ts +8 -9
  68. package/dest/contract/batch_call.d.ts.map +1 -1
  69. package/dest/contract/batch_call.js +59 -36
  70. package/dest/contract/checker.d.ts +1 -1
  71. package/dest/contract/contract.d.ts +2 -2
  72. package/dest/contract/contract.d.ts.map +1 -1
  73. package/dest/contract/contract.js +4 -5
  74. package/dest/contract/contract_base.d.ts +6 -10
  75. package/dest/contract/contract_base.d.ts.map +1 -1
  76. package/dest/contract/contract_base.js +5 -12
  77. package/dest/contract/contract_function_interaction.d.ts +5 -14
  78. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  79. package/dest/contract/contract_function_interaction.js +18 -12
  80. package/dest/contract/deploy_method.d.ts +85 -24
  81. package/dest/contract/deploy_method.d.ts.map +1 -1
  82. package/dest/contract/deploy_method.js +71 -36
  83. package/dest/contract/get_gas_limits.d.ts +1 -1
  84. package/dest/contract/get_gas_limits.js +3 -3
  85. package/dest/contract/interaction_options.d.ts +51 -7
  86. package/dest/contract/interaction_options.d.ts.map +1 -1
  87. package/dest/contract/interaction_options.js +12 -11
  88. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  89. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  90. package/dest/contract/protocol_contracts/auth-registry.js +1005 -0
  91. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  92. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  93. package/dest/contract/protocol_contracts/contract-class-registry.js +139 -0
  94. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  95. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  96. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  97. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  98. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  99. package/dest/contract/protocol_contracts/fee-juice.js +434 -0
  100. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  101. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  102. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +601 -0
  103. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  104. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  105. package/dest/contract/protocol_contracts/public-checks.js +609 -0
  106. package/dest/contract/wait_for_proven.d.ts +2 -2
  107. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  108. package/dest/contract/wait_for_proven.js +1 -1
  109. package/dest/contract/wait_opts.d.ts +16 -0
  110. package/dest/contract/wait_opts.d.ts.map +1 -0
  111. package/dest/contract/wait_opts.js +5 -0
  112. package/dest/deployment/contract_deployer.d.ts +1 -1
  113. package/dest/deployment/contract_deployer.d.ts.map +1 -1
  114. package/dest/deployment/contract_deployer.js +1 -1
  115. package/dest/deployment/publish_class.d.ts +1 -1
  116. package/dest/deployment/publish_class.js +3 -3
  117. package/dest/deployment/publish_instance.d.ts +2 -2
  118. package/dest/deployment/publish_instance.d.ts.map +1 -1
  119. package/dest/deployment/publish_instance.js +3 -3
  120. package/dest/ethereum/portal_manager.d.ts +7 -6
  121. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  122. package/dest/ethereum/portal_manager.js +48 -22
  123. package/dest/fee/fee_juice_payment_method_with_claim.d.ts +2 -2
  124. package/dest/fee/fee_juice_payment_method_with_claim.d.ts.map +1 -1
  125. package/dest/fee/fee_juice_payment_method_with_claim.js +9 -9
  126. package/dest/fee/fee_payment_method.d.ts +2 -2
  127. package/dest/fee/fee_payment_method.d.ts.map +1 -1
  128. package/dest/fee/private_fee_payment_method.d.ts +2 -2
  129. package/dest/fee/private_fee_payment_method.d.ts.map +1 -1
  130. package/dest/fee/private_fee_payment_method.js +14 -14
  131. package/dest/fee/public_fee_payment_method.d.ts +2 -2
  132. package/dest/fee/public_fee_payment_method.d.ts.map +1 -1
  133. package/dest/fee/public_fee_payment_method.js +14 -14
  134. package/dest/fee/sponsored_fee_payment.d.ts +2 -2
  135. package/dest/fee/sponsored_fee_payment.d.ts.map +1 -1
  136. package/dest/fee/sponsored_fee_payment.js +5 -5
  137. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  138. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  139. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  140. package/dest/utils/abi_types.d.ts +2 -2
  141. package/dest/utils/abi_types.d.ts.map +1 -1
  142. package/dest/utils/authwit.d.ts +14 -12
  143. package/dest/utils/authwit.d.ts.map +1 -1
  144. package/dest/utils/authwit.js +27 -20
  145. package/dest/utils/cross_chain.d.ts +2 -2
  146. package/dest/utils/cross_chain.d.ts.map +1 -1
  147. package/dest/utils/fee_juice.d.ts +2 -2
  148. package/dest/utils/fee_juice.js +2 -2
  149. package/dest/utils/field_compressed_string.d.ts +1 -1
  150. package/dest/utils/field_compressed_string.d.ts.map +1 -1
  151. package/dest/utils/field_compressed_string.js +1 -1
  152. package/dest/utils/node.d.ts +13 -2
  153. package/dest/utils/node.d.ts.map +1 -1
  154. package/dest/utils/node.js +46 -0
  155. package/dest/utils/pub_key.d.ts +2 -2
  156. package/dest/utils/pub_key.d.ts.map +1 -1
  157. package/dest/utils/pub_key.js +1 -1
  158. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +6 -9
  159. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  160. package/dest/wallet/account_entrypoint_meta_payment_method.js +29 -44
  161. package/dest/wallet/account_manager.d.ts +3 -9
  162. package/dest/wallet/account_manager.d.ts.map +1 -1
  163. package/dest/wallet/account_manager.js +6 -12
  164. package/dest/wallet/capabilities.d.ts +452 -0
  165. package/dest/wallet/capabilities.d.ts.map +1 -0
  166. package/dest/wallet/capabilities.js +3 -0
  167. package/dest/wallet/deploy_account_method.d.ts +49 -10
  168. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  169. package/dest/wallet/deploy_account_method.js +35 -7
  170. package/dest/wallet/index.d.ts +2 -2
  171. package/dest/wallet/index.d.ts.map +1 -1
  172. package/dest/wallet/index.js +1 -1
  173. package/dest/wallet/wallet.d.ts +1853 -1533
  174. package/dest/wallet/wallet.d.ts.map +1 -1
  175. package/dest/wallet/wallet.js +223 -124
  176. package/package.json +27 -15
  177. package/src/account/account.ts +35 -60
  178. package/src/account/account_contract.ts +7 -8
  179. package/src/account/account_with_secret_key.ts +34 -9
  180. package/src/account/index.ts +3 -2
  181. package/src/account/signerless_account.ts +15 -15
  182. package/src/api/account.ts +10 -3
  183. package/src/api/authorization.ts +1 -0
  184. package/src/api/contract.ts +26 -10
  185. package/src/api/deployment.ts +0 -1
  186. package/src/api/events.ts +35 -27
  187. package/src/api/fields.ts +3 -1
  188. package/src/api/keys.ts +2 -2
  189. package/src/api/node.ts +7 -3
  190. package/src/api/note.ts +1 -1
  191. package/src/api/protocol.ts +7 -0
  192. package/src/api/tx.ts +4 -0
  193. package/src/api/wallet.ts +52 -9
  194. package/src/authorization/call_authorization_request.ts +1 -1
  195. package/src/contract/base_contract_interaction.ts +27 -16
  196. package/src/contract/batch_call.ts +62 -48
  197. package/src/contract/contract.ts +7 -5
  198. package/src/contract/contract_base.ts +5 -15
  199. package/src/contract/contract_function_interaction.ts +26 -17
  200. package/src/contract/deploy_method.ts +175 -47
  201. package/src/contract/get_gas_limits.ts +3 -3
  202. package/src/contract/interaction_options.ts +59 -13
  203. package/src/contract/protocol_contracts/auth-registry.ts +553 -0
  204. package/src/contract/protocol_contracts/contract-class-registry.ts +99 -0
  205. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  206. package/src/contract/protocol_contracts/fee-juice.ts +266 -0
  207. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +336 -0
  208. package/src/contract/protocol_contracts/public-checks.ts +320 -0
  209. package/src/contract/wait_for_proven.ts +1 -1
  210. package/src/contract/wait_opts.ts +21 -0
  211. package/src/deployment/contract_deployer.ts +3 -2
  212. package/src/deployment/publish_class.ts +3 -3
  213. package/src/deployment/publish_instance.ts +3 -6
  214. package/src/ethereum/portal_manager.ts +65 -34
  215. package/src/fee/fee_juice_payment_method_with_claim.ts +9 -7
  216. package/src/fee/fee_payment_method.ts +1 -1
  217. package/src/fee/private_fee_payment_method.ts +12 -10
  218. package/src/fee/public_fee_payment_method.ts +13 -11
  219. package/src/fee/sponsored_fee_payment.ts +6 -4
  220. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  221. package/src/utils/abi_types.ts +1 -1
  222. package/src/utils/authwit.ts +40 -22
  223. package/src/utils/cross_chain.ts +1 -1
  224. package/src/utils/fee_juice.ts +2 -2
  225. package/src/utils/field_compressed_string.ts +1 -1
  226. package/src/utils/node.ts +62 -0
  227. package/src/utils/pub_key.ts +2 -2
  228. package/src/wallet/account_entrypoint_meta_payment_method.ts +29 -60
  229. package/src/wallet/account_manager.ts +7 -15
  230. package/src/wallet/capabilities.ts +500 -0
  231. package/src/wallet/deploy_account_method.ts +78 -16
  232. package/src/wallet/index.ts +1 -1
  233. package/src/wallet/wallet.ts +387 -166
  234. package/dest/account/interface.d.ts +0 -19
  235. package/dest/account/interface.d.ts.map +0 -1
  236. package/dest/account/interface.js +0 -5
  237. package/dest/contract/deploy_sent_tx.d.ts +0 -43
  238. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  239. package/dest/contract/deploy_sent_tx.js +0 -40
  240. package/dest/contract/protocol_contracts.d.ts +0 -9
  241. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  242. package/dest/contract/protocol_contracts.js +0 -26
  243. package/dest/contract/sent_tx.d.ts +0 -51
  244. package/dest/contract/sent_tx.d.ts.map +0 -1
  245. package/dest/contract/sent_tx.js +0 -90
  246. package/dest/contract/unsafe_contract.d.ts +0 -15
  247. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  248. package/dest/contract/unsafe_contract.js +0 -6
  249. package/dest/deployment/broadcast_function.d.ts +0 -24
  250. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  251. package/dest/deployment/broadcast_function.js +0 -74
  252. package/dest/wallet/base_wallet.d.ts +0 -91
  253. package/dest/wallet/base_wallet.d.ts.map +0 -1
  254. package/dest/wallet/base_wallet.js +0 -238
  255. package/src/account/interface.ts +0 -25
  256. package/src/contract/deploy_sent_tx.ts +0 -68
  257. package/src/contract/protocol_contracts.ts +0 -35
  258. package/src/contract/sent_tx.ts +0 -130
  259. package/src/contract/unsafe_contract.ts +0 -19
  260. package/src/deployment/broadcast_function.ts +0 -148
  261. package/src/wallet/base_wallet.ts +0 -350
@@ -0,0 +1,1005 @@
1
+ /* Autogenerated file, do not edit! */ /* eslint-disable */ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
2
+ import { FunctionType } from '@aztec/stdlib/abi';
3
+ import { ContractBase } from '../contract_base.js';
4
+ const AuthRegistryContractArtifact = {
5
+ name: 'AuthRegistry',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PRIVATE,
10
+ name: 'set_authorized_private',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
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',
33
+ type: {
34
+ kind: 'field'
35
+ },
36
+ visibility: 'private'
37
+ },
38
+ {
39
+ name: 'authorize',
40
+ type: {
41
+ kind: 'boolean'
42
+ },
43
+ visibility: 'private'
44
+ }
45
+ ],
46
+ returnTypes: [],
47
+ errorTypes: {
48
+ '7555607922535724711': {
49
+ error_kind: 'string',
50
+ string: 'Preimage mismatch'
51
+ },
52
+ '9530675838293881722': {
53
+ error_kind: 'string',
54
+ string: 'Writer did not write all data'
55
+ },
56
+ '9894212961085021188': {
57
+ error_kind: 'string',
58
+ string: 'Message not authorized by account'
59
+ },
60
+ '12327971061804302172': {
61
+ error_kind: 'fmtstring',
62
+ length: 98,
63
+ item_types: []
64
+ },
65
+ '14990209321349310352': {
66
+ error_kind: 'string',
67
+ string: 'attempt to add with overflow'
68
+ },
69
+ '15764276373176857197': {
70
+ error_kind: 'string',
71
+ string: 'Stack too deep'
72
+ },
73
+ '16431471497789672479': {
74
+ error_kind: 'string',
75
+ string: 'Index out of bounds'
76
+ }
77
+ }
78
+ },
79
+ bytecode: Buffer.from([]),
80
+ debugSymbols: ''
81
+ },
82
+ {
83
+ ...{
84
+ functionType: FunctionType.UTILITY,
85
+ name: 'utility_is_consumable',
86
+ isOnlySelf: false,
87
+ isStatic: false,
88
+ isInitializer: false,
89
+ parameters: [
90
+ {
91
+ name: 'on_behalf_of',
92
+ type: {
93
+ kind: 'struct',
94
+ fields: [
95
+ {
96
+ name: 'inner',
97
+ type: {
98
+ kind: 'field'
99
+ }
100
+ }
101
+ ],
102
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
103
+ },
104
+ visibility: 'private'
105
+ },
106
+ {
107
+ name: 'message_hash',
108
+ type: {
109
+ kind: 'field'
110
+ },
111
+ visibility: 'private'
112
+ }
113
+ ],
114
+ returnTypes: [
115
+ {
116
+ kind: 'boolean'
117
+ }
118
+ ],
119
+ errorTypes: {
120
+ '361444214588792908': {
121
+ error_kind: 'string',
122
+ string: 'attempt to multiply with overflow'
123
+ },
124
+ '1998584279744703196': {
125
+ error_kind: '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
+ },
132
+ '14990209321349310352': {
133
+ error_kind: 'string',
134
+ string: 'attempt to add with overflow'
135
+ },
136
+ '15764276373176857197': {
137
+ error_kind: 'string',
138
+ string: 'Stack too deep'
139
+ },
140
+ '16431471497789672479': {
141
+ error_kind: 'string',
142
+ string: 'Index out of bounds'
143
+ }
144
+ }
145
+ },
146
+ bytecode: Buffer.from([]),
147
+ debugSymbols: ''
148
+ },
149
+ {
150
+ ...{
151
+ functionType: FunctionType.UTILITY,
152
+ name: 'process_message',
153
+ isOnlySelf: false,
154
+ isStatic: false,
155
+ isInitializer: false,
156
+ parameters: [
157
+ {
158
+ name: 'message_ciphertext',
159
+ type: {
160
+ kind: 'struct',
161
+ fields: [
162
+ {
163
+ name: 'storage',
164
+ type: {
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
178
+ }
179
+ }
180
+ ],
181
+ path: 'std::collections::bounded_vec::BoundedVec'
182
+ },
183
+ visibility: 'private'
184
+ },
185
+ {
186
+ name: 'message_context',
187
+ type: {
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'
246
+ },
247
+ visibility: 'private'
248
+ }
249
+ ],
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: [
412
+ {
413
+ name: 'selector',
414
+ type: {
415
+ kind: 'field'
416
+ },
417
+ visibility: 'private'
418
+ }
419
+ ],
420
+ returnTypes: [],
421
+ errorTypes: {
422
+ '361444214588792908': {
423
+ error_kind: 'string',
424
+ string: 'attempt to multiply with overflow'
425
+ },
426
+ '1998584279744703196': {
427
+ error_kind: 'string',
428
+ string: 'attempt to subtract with overflow'
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
+ },
447
+ '13455385521185560676': {
448
+ error_kind: 'string',
449
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
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
+ },
627
+ '14990209321349310352': {
628
+ error_kind: 'string',
629
+ string: 'attempt to add with overflow'
630
+ },
631
+ '15764276373176857197': {
632
+ error_kind: 'string',
633
+ string: 'Stack too deep'
634
+ },
635
+ '16431471497789672479': {
636
+ error_kind: 'string',
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'
653
+ }
654
+ }
655
+ },
656
+ bytecode: Buffer.from([]),
657
+ debugSymbols: ''
658
+ }
659
+ ],
660
+ nonDispatchPublicFunctions: [
661
+ {
662
+ functionType: FunctionType.PUBLIC,
663
+ name: '_set_authorized',
664
+ isOnlySelf: true,
665
+ isStatic: false,
666
+ isInitializer: false,
667
+ parameters: [
668
+ {
669
+ name: 'approver',
670
+ type: {
671
+ kind: 'struct',
672
+ fields: [
673
+ {
674
+ name: 'inner',
675
+ type: {
676
+ kind: 'field'
677
+ }
678
+ }
679
+ ],
680
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
681
+ },
682
+ visibility: 'private'
683
+ },
684
+ {
685
+ name: 'message_hash',
686
+ type: {
687
+ kind: 'field'
688
+ },
689
+ visibility: 'private'
690
+ },
691
+ {
692
+ name: 'authorize',
693
+ type: {
694
+ kind: 'boolean'
695
+ },
696
+ visibility: 'private'
697
+ }
698
+ ],
699
+ returnTypes: [],
700
+ errorTypes: {
701
+ '361444214588792908': {
702
+ error_kind: 'string',
703
+ string: 'attempt to multiply with overflow'
704
+ },
705
+ '1998584279744703196': {
706
+ error_kind: 'string',
707
+ string: 'attempt to subtract with overflow'
708
+ },
709
+ '13455385521185560676': {
710
+ error_kind: 'string',
711
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
712
+ },
713
+ '13929691561421487185': {
714
+ error_kind: 'string',
715
+ string: 'Function _set_authorized can only be called by the same contract'
716
+ },
717
+ '14990209321349310352': {
718
+ error_kind: 'string',
719
+ string: 'attempt to add with overflow'
720
+ },
721
+ '15764276373176857197': {
722
+ error_kind: 'string',
723
+ string: 'Stack too deep'
724
+ },
725
+ '16431471497789672479': {
726
+ error_kind: 'string',
727
+ string: 'Index out of bounds'
728
+ }
729
+ }
730
+ },
731
+ {
732
+ functionType: FunctionType.PUBLIC,
733
+ name: 'consume',
734
+ isOnlySelf: false,
735
+ isStatic: false,
736
+ isInitializer: false,
737
+ parameters: [
738
+ {
739
+ name: 'on_behalf_of',
740
+ type: {
741
+ kind: 'struct',
742
+ fields: [
743
+ {
744
+ name: 'inner',
745
+ type: {
746
+ kind: 'field'
747
+ }
748
+ }
749
+ ],
750
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
751
+ },
752
+ visibility: 'private'
753
+ },
754
+ {
755
+ name: 'inner_hash',
756
+ type: {
757
+ kind: 'field'
758
+ },
759
+ visibility: 'private'
760
+ }
761
+ ],
762
+ returnTypes: [
763
+ {
764
+ kind: 'field'
765
+ }
766
+ ],
767
+ errorTypes: {
768
+ '361444214588792908': {
769
+ error_kind: 'string',
770
+ string: 'attempt to multiply with overflow'
771
+ },
772
+ '1998584279744703196': {
773
+ error_kind: 'string',
774
+ string: 'attempt to subtract with overflow'
775
+ },
776
+ '5525725861591553972': {
777
+ error_kind: 'string',
778
+ string: 'rejecting all'
779
+ },
780
+ '13455385521185560676': {
781
+ error_kind: 'string',
782
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
783
+ },
784
+ '14990209321349310352': {
785
+ error_kind: 'string',
786
+ string: 'attempt to add with overflow'
787
+ },
788
+ '15764276373176857197': {
789
+ error_kind: 'string',
790
+ string: 'Stack too deep'
791
+ },
792
+ '16431471497789672479': {
793
+ error_kind: 'string',
794
+ string: 'Index out of bounds'
795
+ },
796
+ '17089945683942782951': {
797
+ error_kind: 'string',
798
+ string: 'unauthorized'
799
+ }
800
+ }
801
+ },
802
+ {
803
+ functionType: FunctionType.PUBLIC,
804
+ name: 'is_consumable',
805
+ isOnlySelf: false,
806
+ isStatic: true,
807
+ isInitializer: false,
808
+ parameters: [
809
+ {
810
+ name: 'on_behalf_of',
811
+ type: {
812
+ kind: 'struct',
813
+ fields: [
814
+ {
815
+ name: 'inner',
816
+ type: {
817
+ kind: 'field'
818
+ }
819
+ }
820
+ ],
821
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
822
+ },
823
+ visibility: 'private'
824
+ },
825
+ {
826
+ name: 'message_hash',
827
+ type: {
828
+ kind: 'field'
829
+ },
830
+ visibility: 'private'
831
+ }
832
+ ],
833
+ returnTypes: [
834
+ {
835
+ kind: 'boolean'
836
+ }
837
+ ],
838
+ errorTypes: {
839
+ '361444214588792908': {
840
+ error_kind: 'string',
841
+ string: 'attempt to multiply with overflow'
842
+ },
843
+ '1998584279744703196': {
844
+ error_kind: 'string',
845
+ string: 'attempt to subtract with overflow'
846
+ },
847
+ '13455385521185560676': {
848
+ error_kind: 'string',
849
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
850
+ },
851
+ '14990209321349310352': {
852
+ error_kind: 'string',
853
+ string: 'attempt to add with overflow'
854
+ },
855
+ '15764276373176857197': {
856
+ error_kind: 'string',
857
+ string: 'Stack too deep'
858
+ },
859
+ '16431471497789672479': {
860
+ error_kind: 'string',
861
+ string: 'Index out of bounds'
862
+ },
863
+ '17312933876399746100': {
864
+ error_kind: 'string',
865
+ string: 'Function is_consumable can only be called statically'
866
+ }
867
+ }
868
+ },
869
+ {
870
+ functionType: FunctionType.PUBLIC,
871
+ name: 'is_reject_all',
872
+ isOnlySelf: false,
873
+ isStatic: true,
874
+ isInitializer: false,
875
+ parameters: [
876
+ {
877
+ name: 'on_behalf_of',
878
+ type: {
879
+ kind: 'struct',
880
+ fields: [
881
+ {
882
+ name: 'inner',
883
+ type: {
884
+ kind: 'field'
885
+ }
886
+ }
887
+ ],
888
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
889
+ },
890
+ visibility: 'private'
891
+ }
892
+ ],
893
+ returnTypes: [
894
+ {
895
+ kind: 'boolean'
896
+ }
897
+ ],
898
+ errorTypes: {
899
+ '11691217184967371519': {
900
+ error_kind: 'string',
901
+ string: 'Function is_reject_all can only be called statically'
902
+ },
903
+ '13455385521185560676': {
904
+ error_kind: 'string',
905
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
906
+ },
907
+ '15764276373176857197': {
908
+ error_kind: 'string',
909
+ string: 'Stack too deep'
910
+ }
911
+ }
912
+ },
913
+ {
914
+ functionType: FunctionType.PUBLIC,
915
+ name: 'set_authorized',
916
+ isOnlySelf: false,
917
+ isStatic: false,
918
+ isInitializer: false,
919
+ parameters: [
920
+ {
921
+ name: 'message_hash',
922
+ type: {
923
+ kind: 'field'
924
+ },
925
+ visibility: 'private'
926
+ },
927
+ {
928
+ name: 'authorize',
929
+ type: {
930
+ kind: 'boolean'
931
+ },
932
+ visibility: 'private'
933
+ }
934
+ ],
935
+ returnTypes: [],
936
+ errorTypes: {
937
+ '361444214588792908': {
938
+ error_kind: 'string',
939
+ string: 'attempt to multiply with overflow'
940
+ },
941
+ '1998584279744703196': {
942
+ error_kind: 'string',
943
+ string: 'attempt to subtract with overflow'
944
+ },
945
+ '13455385521185560676': {
946
+ error_kind: 'string',
947
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
948
+ },
949
+ '14990209321349310352': {
950
+ error_kind: 'string',
951
+ string: 'attempt to add with overflow'
952
+ },
953
+ '15764276373176857197': {
954
+ error_kind: 'string',
955
+ string: 'Stack too deep'
956
+ },
957
+ '16431471497789672479': {
958
+ error_kind: 'string',
959
+ string: 'Index out of bounds'
960
+ }
961
+ }
962
+ },
963
+ {
964
+ functionType: FunctionType.PUBLIC,
965
+ name: 'set_reject_all',
966
+ isOnlySelf: false,
967
+ isStatic: false,
968
+ isInitializer: false,
969
+ parameters: [
970
+ {
971
+ name: 'reject',
972
+ type: {
973
+ kind: 'boolean'
974
+ },
975
+ visibility: 'private'
976
+ }
977
+ ],
978
+ returnTypes: [],
979
+ errorTypes: {
980
+ '13455385521185560676': {
981
+ error_kind: 'string',
982
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
983
+ },
984
+ '15764276373176857197': {
985
+ error_kind: 'string',
986
+ string: 'Stack too deep'
987
+ }
988
+ }
989
+ }
990
+ ],
991
+ outputs: {
992
+ structs: {},
993
+ globals: {}
994
+ },
995
+ storageLayout: {},
996
+ fileMap: {}
997
+ };
998
+ export class AuthRegistryContract extends ContractBase {
999
+ constructor(wallet){
1000
+ super(ProtocolContractAddress.AuthRegistry, AuthRegistryContractArtifact, wallet);
1001
+ }
1002
+ static at(wallet) {
1003
+ return new AuthRegistryContract(wallet);
1004
+ }
1005
+ }