@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,336 @@
1
+ /* Autogenerated file, do not edit! */
2
+ /* eslint-disable */
3
+ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
4
+ import { FunctionType } from '@aztec/stdlib/abi';
5
+
6
+ import type { ContractArtifact } from '../../api/abi.js';
7
+ import { PublicKeys } from '../../api/keys.js';
8
+ import type {
9
+ AztecAddressLike,
10
+ EthAddressLike,
11
+ FieldLike,
12
+ FunctionSelectorLike,
13
+ WrappedFieldLike,
14
+ } from '../../utils/abi_types.js';
15
+ import type { Wallet } from '../../wallet/wallet.js';
16
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
17
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
18
+
19
+ const MultiCallEntrypointContractArtifact: ContractArtifact = {
20
+ name: 'MultiCallEntrypoint',
21
+ functions: [
22
+ {
23
+ ...{
24
+ functionType: FunctionType.PRIVATE,
25
+ name: 'entrypoint',
26
+ isOnlySelf: false,
27
+ isStatic: false,
28
+ isInitializer: false,
29
+ parameters: [
30
+ {
31
+ name: 'app_payload',
32
+ type: {
33
+ kind: 'struct',
34
+ fields: [
35
+ {
36
+ name: 'function_calls',
37
+ type: {
38
+ kind: 'array',
39
+ length: 5,
40
+ type: {
41
+ kind: 'struct',
42
+ fields: [
43
+ { name: 'args_hash', type: { kind: 'field' } },
44
+ {
45
+ name: 'function_selector',
46
+ type: {
47
+ kind: 'struct',
48
+ fields: [{ name: 'inner', type: { kind: 'integer', sign: 'unsigned', width: 32 } }],
49
+ path: 'aztec::protocol_types::abis::function_selector::FunctionSelector',
50
+ },
51
+ },
52
+ {
53
+ name: 'target_address',
54
+ type: {
55
+ kind: 'struct',
56
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
57
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
58
+ },
59
+ },
60
+ { name: 'is_public', type: { kind: 'boolean' } },
61
+ { name: 'hide_msg_sender', type: { kind: 'boolean' } },
62
+ { name: 'is_static', type: { kind: 'boolean' } },
63
+ ],
64
+ path: 'aztec::authwit::entrypoint::function_call::FunctionCall',
65
+ },
66
+ },
67
+ },
68
+ { name: 'tx_nonce', type: { kind: 'field' } },
69
+ ],
70
+ path: 'aztec::authwit::entrypoint::app::AppPayload',
71
+ },
72
+ visibility: 'private',
73
+ },
74
+ ],
75
+ returnTypes: [],
76
+ errorTypes: {
77
+ '10365856833277169390': {
78
+ error_kind: 'string',
79
+ string: 'Incompatible flag. `hide_msg_sender = true` is only available for public calls.',
80
+ },
81
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
82
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
83
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
84
+ },
85
+ },
86
+ bytecode: Buffer.from([]),
87
+ debugSymbols: '',
88
+ },
89
+ {
90
+ ...{
91
+ functionType: FunctionType.UTILITY,
92
+ name: 'process_message',
93
+ isOnlySelf: false,
94
+ isStatic: false,
95
+ isInitializer: false,
96
+ parameters: [
97
+ {
98
+ name: 'message_ciphertext',
99
+ type: {
100
+ kind: 'struct',
101
+ fields: [
102
+ { name: 'storage', type: { kind: 'array', length: 15, type: { kind: 'field' } } },
103
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
104
+ ],
105
+ path: 'std::collections::bounded_vec::BoundedVec',
106
+ },
107
+ visibility: 'private',
108
+ },
109
+ {
110
+ name: 'message_context',
111
+ type: {
112
+ kind: 'struct',
113
+ fields: [
114
+ { name: 'tx_hash', type: { kind: 'field' } },
115
+ {
116
+ name: 'unique_note_hashes_in_tx',
117
+ type: {
118
+ kind: 'struct',
119
+ fields: [
120
+ { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
121
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
122
+ ],
123
+ path: 'std::collections::bounded_vec::BoundedVec',
124
+ },
125
+ },
126
+ { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
127
+ {
128
+ name: 'recipient',
129
+ type: {
130
+ kind: 'struct',
131
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
132
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
133
+ },
134
+ },
135
+ ],
136
+ path: 'aztec::messages::processing::message_context::MessageContext',
137
+ },
138
+ visibility: 'private',
139
+ },
140
+ ],
141
+ returnTypes: [],
142
+ errorTypes: {
143
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
144
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
145
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
146
+ '2967937905572420042': {
147
+ error_kind: 'fmtstring',
148
+ length: 61,
149
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
150
+ },
151
+ '3330370348214585450': {
152
+ error_kind: 'fmtstring',
153
+ length: 48,
154
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
155
+ },
156
+ '3670003311596808700': {
157
+ error_kind: 'fmtstring',
158
+ length: 77,
159
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
160
+ },
161
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
162
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
163
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
164
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
165
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
166
+ '9791669845391776238': {
167
+ error_kind: 'string',
168
+ string: '0 has a square root; you cannot claim it is not square',
169
+ },
170
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
171
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
172
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
173
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
174
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
175
+ '13557316507370296400': {
176
+ error_kind: 'fmtstring',
177
+ length: 130,
178
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
179
+ },
180
+ '14938672389828944159': {
181
+ error_kind: 'fmtstring',
182
+ length: 146,
183
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
184
+ },
185
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
186
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
187
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
188
+ '17531474008201752295': {
189
+ error_kind: 'fmtstring',
190
+ length: 133,
191
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
192
+ },
193
+ },
194
+ },
195
+ bytecode: Buffer.from([]),
196
+ debugSymbols: '',
197
+ },
198
+ {
199
+ ...{
200
+ functionType: FunctionType.UTILITY,
201
+ name: 'sync_state',
202
+ isOnlySelf: false,
203
+ isStatic: false,
204
+ isInitializer: false,
205
+ parameters: [],
206
+ returnTypes: [],
207
+ errorTypes: {
208
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
209
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
210
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
211
+ '2967937905572420042': {
212
+ error_kind: 'fmtstring',
213
+ length: 61,
214
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
215
+ },
216
+ '3330370348214585450': {
217
+ error_kind: 'fmtstring',
218
+ length: 48,
219
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
220
+ },
221
+ '3670003311596808700': {
222
+ error_kind: 'fmtstring',
223
+ length: 77,
224
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
225
+ },
226
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
227
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
228
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
229
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
230
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
231
+ '9791669845391776238': {
232
+ error_kind: 'string',
233
+ string: '0 has a square root; you cannot claim it is not square',
234
+ },
235
+ '9885968605480832328': {
236
+ error_kind: 'string',
237
+ string: 'Attempted to read past the length of a CapsuleArray',
238
+ },
239
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
240
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
241
+ '11021520179822076911': {
242
+ error_kind: 'string',
243
+ string: 'Attempted to delete past the length of a CapsuleArray',
244
+ },
245
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
246
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
247
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
248
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
249
+ '13557316507370296400': {
250
+ error_kind: 'fmtstring',
251
+ length: 130,
252
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
253
+ },
254
+ '14938672389828944159': {
255
+ error_kind: 'fmtstring',
256
+ length: 146,
257
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
258
+ },
259
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
260
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
261
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
262
+ '17531474008201752295': {
263
+ error_kind: 'fmtstring',
264
+ length: 133,
265
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
266
+ },
267
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
268
+ },
269
+ },
270
+ bytecode: Buffer.from([]),
271
+ debugSymbols: '',
272
+ },
273
+ {
274
+ ...{
275
+ functionType: FunctionType.PUBLIC,
276
+ name: 'public_dispatch',
277
+ isOnlySelf: false,
278
+ isStatic: false,
279
+ isInitializer: false,
280
+ parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
281
+ returnTypes: [],
282
+ errorTypes: { '1335198680857977525': { error_kind: 'string', string: 'No public functions' } },
283
+ },
284
+ bytecode: Buffer.from([]),
285
+ debugSymbols: '',
286
+ },
287
+ ],
288
+ nonDispatchPublicFunctions: [],
289
+ outputs: { structs: {}, globals: {} },
290
+ storageLayout: {},
291
+ fileMap: {},
292
+ };
293
+
294
+ export class MultiCallEntrypointContract extends ContractBase {
295
+ private constructor(wallet: Wallet) {
296
+ super(ProtocolContractAddress.MultiCallEntrypoint, MultiCallEntrypointContractArtifact, wallet);
297
+ }
298
+
299
+ public static at(wallet: Wallet): MultiCallEntrypointContract {
300
+ return new MultiCallEntrypointContract(wallet);
301
+ }
302
+
303
+ declare public methods: {
304
+ /** entrypoint(app_payload: struct) */
305
+ entrypoint: ((app_payload: {
306
+ function_calls: {
307
+ args_hash: FieldLike;
308
+ function_selector: FunctionSelectorLike;
309
+ target_address: AztecAddressLike;
310
+ is_public: boolean;
311
+ hide_msg_sender: boolean;
312
+ is_static: boolean;
313
+ }[];
314
+ tx_nonce: FieldLike;
315
+ }) => ContractFunctionInteraction) &
316
+ Pick<ContractMethod, 'selector'>;
317
+
318
+ /** process_message(message_ciphertext: struct, message_context: struct) */
319
+ process_message: ((
320
+ message_ciphertext: FieldLike[],
321
+ message_context: {
322
+ tx_hash: FieldLike;
323
+ unique_note_hashes_in_tx: FieldLike[];
324
+ first_nullifier_in_tx: FieldLike;
325
+ recipient: AztecAddressLike;
326
+ },
327
+ ) => ContractFunctionInteraction) &
328
+ Pick<ContractMethod, 'selector'>;
329
+
330
+ /** public_dispatch(selector: field) */
331
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
332
+
333
+ /** sync_state() */
334
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
335
+ };
336
+ }
@@ -0,0 +1,320 @@
1
+ /* Autogenerated file, do not edit! */
2
+ /* eslint-disable */
3
+ import { ProtocolContractAddress } from '@aztec/protocol-contracts';
4
+ import { FunctionType } from '@aztec/stdlib/abi';
5
+
6
+ import type { ContractArtifact } from '../../api/abi.js';
7
+ import { PublicKeys } from '../../api/keys.js';
8
+ import type {
9
+ AztecAddressLike,
10
+ EthAddressLike,
11
+ FieldLike,
12
+ FunctionSelectorLike,
13
+ WrappedFieldLike,
14
+ } from '../../utils/abi_types.js';
15
+ import type { Wallet } from '../../wallet/wallet.js';
16
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
17
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
18
+
19
+ const PublicChecksContractArtifact: ContractArtifact = {
20
+ name: 'PublicChecks',
21
+ functions: [
22
+ {
23
+ ...{
24
+ functionType: FunctionType.UTILITY,
25
+ name: 'process_message',
26
+ isOnlySelf: false,
27
+ isStatic: false,
28
+ isInitializer: false,
29
+ parameters: [
30
+ {
31
+ name: 'message_ciphertext',
32
+ type: {
33
+ kind: 'struct',
34
+ fields: [
35
+ { name: 'storage', type: { kind: 'array', length: 15, type: { kind: 'field' } } },
36
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
37
+ ],
38
+ path: 'std::collections::bounded_vec::BoundedVec',
39
+ },
40
+ visibility: 'private',
41
+ },
42
+ {
43
+ name: 'message_context',
44
+ type: {
45
+ kind: 'struct',
46
+ fields: [
47
+ { name: 'tx_hash', type: { kind: 'field' } },
48
+ {
49
+ name: 'unique_note_hashes_in_tx',
50
+ type: {
51
+ kind: 'struct',
52
+ fields: [
53
+ { name: 'storage', type: { kind: 'array', length: 64, type: { kind: 'field' } } },
54
+ { name: 'len', type: { kind: 'integer', sign: 'unsigned', width: 32 } },
55
+ ],
56
+ path: 'std::collections::bounded_vec::BoundedVec',
57
+ },
58
+ },
59
+ { name: 'first_nullifier_in_tx', type: { kind: 'field' } },
60
+ {
61
+ name: 'recipient',
62
+ type: {
63
+ kind: 'struct',
64
+ fields: [{ name: 'inner', type: { kind: 'field' } }],
65
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress',
66
+ },
67
+ },
68
+ ],
69
+ path: 'aztec::messages::processing::message_context::MessageContext',
70
+ },
71
+ visibility: 'private',
72
+ },
73
+ ],
74
+ returnTypes: [],
75
+ errorTypes: {
76
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
77
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
78
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
79
+ '2967937905572420042': {
80
+ error_kind: 'fmtstring',
81
+ length: 61,
82
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
83
+ },
84
+ '3330370348214585450': {
85
+ error_kind: 'fmtstring',
86
+ length: 48,
87
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
88
+ },
89
+ '3670003311596808700': {
90
+ error_kind: 'fmtstring',
91
+ length: 77,
92
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
93
+ },
94
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
95
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
96
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
97
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
98
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
99
+ '9791669845391776238': {
100
+ error_kind: 'string',
101
+ string: '0 has a square root; you cannot claim it is not square',
102
+ },
103
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
104
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
105
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
106
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
107
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
108
+ '13557316507370296400': {
109
+ error_kind: 'fmtstring',
110
+ length: 130,
111
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
112
+ },
113
+ '14938672389828944159': {
114
+ error_kind: 'fmtstring',
115
+ length: 146,
116
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
117
+ },
118
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
119
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
120
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
121
+ '17531474008201752295': {
122
+ error_kind: 'fmtstring',
123
+ length: 133,
124
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
125
+ },
126
+ },
127
+ },
128
+ bytecode: Buffer.from([]),
129
+ debugSymbols: '',
130
+ },
131
+ {
132
+ ...{
133
+ functionType: FunctionType.PUBLIC,
134
+ name: 'public_dispatch',
135
+ isOnlySelf: false,
136
+ isStatic: false,
137
+ isInitializer: false,
138
+ parameters: [{ name: 'selector', type: { kind: 'field' }, visibility: 'private' }],
139
+ returnTypes: [],
140
+ errorTypes: {
141
+ '3445904810750103705': { error_kind: 'string', string: 'Block number mismatch.' },
142
+ '6989792215391248978': {
143
+ error_kind: 'string',
144
+ string: 'Function check_timestamp can only be called statically',
145
+ },
146
+ '7259463707251703666': {
147
+ error_kind: 'string',
148
+ string: 'Function check_block_number can only be called statically',
149
+ },
150
+ '12511970388699677811': { error_kind: 'fmtstring', length: 27, item_types: [{ kind: 'field' }] },
151
+ '13950240626967988787': { error_kind: 'string', string: 'Timestamp mismatch.' },
152
+ '15015303112667403944': { error_kind: 'fmtstring', length: 17, item_types: [] },
153
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
154
+ },
155
+ },
156
+ bytecode: Buffer.from([]),
157
+ debugSymbols: '',
158
+ },
159
+ {
160
+ ...{
161
+ functionType: FunctionType.UTILITY,
162
+ name: 'sync_state',
163
+ isOnlySelf: false,
164
+ isStatic: false,
165
+ isInitializer: false,
166
+ parameters: [],
167
+ returnTypes: [],
168
+ errorTypes: {
169
+ '361444214588792908': { error_kind: 'string', string: 'attempt to multiply with overflow' },
170
+ '992401946138144806': { error_kind: 'string', string: 'Attempted to read past end of BoundedVec' },
171
+ '1998584279744703196': { error_kind: 'string', string: 'attempt to subtract with overflow' },
172
+ '2967937905572420042': {
173
+ error_kind: 'fmtstring',
174
+ length: 61,
175
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
176
+ },
177
+ '3330370348214585450': {
178
+ error_kind: 'fmtstring',
179
+ length: 48,
180
+ item_types: [{ kind: 'field' }, { kind: 'field' }],
181
+ },
182
+ '3670003311596808700': {
183
+ error_kind: 'fmtstring',
184
+ length: 77,
185
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
186
+ },
187
+ '4261968856572588300': { error_kind: 'string', string: 'Value does not fit in field' },
188
+ '4440399188109668273': { error_kind: 'string', string: 'Input length must be a multiple of 32' },
189
+ '5417577161503694006': { error_kind: 'fmtstring', length: 56, item_types: [{ kind: 'field' }] },
190
+ '5421095327929394772': { error_kind: 'string', string: 'attempt to bit-shift with overflow' },
191
+ '9530675838293881722': { error_kind: 'string', string: 'Writer did not write all data' },
192
+ '9791669845391776238': {
193
+ error_kind: 'string',
194
+ string: '0 has a square root; you cannot claim it is not square',
195
+ },
196
+ '9885968605480832328': {
197
+ error_kind: 'string',
198
+ string: 'Attempted to read past the length of a CapsuleArray',
199
+ },
200
+ '10135509984888824963': { error_kind: 'fmtstring', length: 58, item_types: [{ kind: 'field' }] },
201
+ '10791800398362570014': { error_kind: 'string', string: 'extend_from_bounded_vec out of bounds' },
202
+ '11021520179822076911': {
203
+ error_kind: 'string',
204
+ string: 'Attempted to delete past the length of a CapsuleArray',
205
+ },
206
+ '11692359521570349358': { error_kind: 'fmtstring', length: 40, item_types: [] },
207
+ '12327971061804302172': { error_kind: 'fmtstring', length: 98, item_types: [] },
208
+ '12469291177396340830': { error_kind: 'string', string: 'call to assert_max_bit_size' },
209
+ '12913276134398371456': { error_kind: 'string', string: 'push out of bounds' },
210
+ '13557316507370296400': {
211
+ error_kind: 'fmtstring',
212
+ length: 130,
213
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
214
+ },
215
+ '14938672389828944159': {
216
+ error_kind: 'fmtstring',
217
+ length: 146,
218
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
219
+ },
220
+ '14990209321349310352': { error_kind: 'string', string: 'attempt to add with overflow' },
221
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
222
+ '16431471497789672479': { error_kind: 'string', string: 'Index out of bounds' },
223
+ '17531474008201752295': {
224
+ error_kind: 'fmtstring',
225
+ length: 133,
226
+ item_types: [{ kind: 'integer', sign: 'unsigned', width: 32 }],
227
+ },
228
+ '17655676068928457687': { error_kind: 'string', string: 'Reader did not read all data' },
229
+ },
230
+ },
231
+ bytecode: Buffer.from([]),
232
+ debugSymbols: '',
233
+ },
234
+ ],
235
+ nonDispatchPublicFunctions: [
236
+ {
237
+ functionType: FunctionType.PUBLIC,
238
+ name: 'check_block_number',
239
+ isOnlySelf: false,
240
+ isStatic: true,
241
+ isInitializer: false,
242
+ parameters: [
243
+ { name: 'operation', type: { kind: 'integer', sign: 'unsigned', width: 8 }, visibility: 'private' },
244
+ { name: 'value', type: { kind: 'integer', sign: 'unsigned', width: 32 }, visibility: 'private' },
245
+ ],
246
+ returnTypes: [],
247
+ errorTypes: {
248
+ '3445904810750103705': { error_kind: 'string', string: 'Block number mismatch.' },
249
+ '7259463707251703666': {
250
+ error_kind: 'string',
251
+ string: 'Function check_block_number can only be called statically',
252
+ },
253
+ '15015303112667403944': { error_kind: 'fmtstring', length: 17, item_types: [] },
254
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
255
+ },
256
+ },
257
+ {
258
+ functionType: FunctionType.PUBLIC,
259
+ name: 'check_timestamp',
260
+ isOnlySelf: false,
261
+ isStatic: true,
262
+ isInitializer: false,
263
+ parameters: [
264
+ { name: 'operation', type: { kind: 'integer', sign: 'unsigned', width: 8 }, visibility: 'private' },
265
+ { name: 'value', type: { kind: 'integer', sign: 'unsigned', width: 64 }, visibility: 'private' },
266
+ ],
267
+ returnTypes: [],
268
+ errorTypes: {
269
+ '6989792215391248978': {
270
+ error_kind: 'string',
271
+ string: 'Function check_timestamp can only be called statically',
272
+ },
273
+ '13950240626967988787': { error_kind: 'string', string: 'Timestamp mismatch.' },
274
+ '15015303112667403944': { error_kind: 'fmtstring', length: 17, item_types: [] },
275
+ '15764276373176857197': { error_kind: 'string', string: 'Stack too deep' },
276
+ },
277
+ },
278
+ ],
279
+ outputs: { structs: {}, globals: {} },
280
+ storageLayout: {},
281
+ fileMap: {},
282
+ };
283
+
284
+ export class PublicChecksContract extends ContractBase {
285
+ private constructor(wallet: Wallet) {
286
+ super(ProtocolContractAddress.PublicChecks, PublicChecksContractArtifact, wallet);
287
+ }
288
+
289
+ public static at(wallet: Wallet): PublicChecksContract {
290
+ return new PublicChecksContract(wallet);
291
+ }
292
+
293
+ declare public methods: {
294
+ /** check_block_number(operation: integer, value: integer) */
295
+ check_block_number: ((operation: bigint | number, value: bigint | number) => ContractFunctionInteraction) &
296
+ Pick<ContractMethod, 'selector'>;
297
+
298
+ /** check_timestamp(operation: integer, value: integer) */
299
+ check_timestamp: ((operation: bigint | number, value: bigint | number) => ContractFunctionInteraction) &
300
+ Pick<ContractMethod, 'selector'>;
301
+
302
+ /** process_message(message_ciphertext: struct, message_context: struct) */
303
+ process_message: ((
304
+ message_ciphertext: FieldLike[],
305
+ message_context: {
306
+ tx_hash: FieldLike;
307
+ unique_note_hashes_in_tx: FieldLike[];
308
+ first_nullifier_in_tx: FieldLike;
309
+ recipient: AztecAddressLike;
310
+ },
311
+ ) => ContractFunctionInteraction) &
312
+ Pick<ContractMethod, 'selector'>;
313
+
314
+ /** public_dispatch(selector: field) */
315
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
316
+
317
+ /** sync_state() */
318
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
319
+ };
320
+ }
@@ -2,7 +2,7 @@ import { retryUntil } from '@aztec/foundation/retry';
2
2
  import type { AztecNode } from '@aztec/stdlib/interfaces/client';
3
3
  import type { TxReceipt } from '@aztec/stdlib/tx';
4
4
 
5
- import { DefaultWaitOpts } from './sent_tx.js';
5
+ import { DefaultWaitOpts } from './wait_opts.js';
6
6
 
7
7
  /**
8
8
  * Options for waiting for a transaction to be proven.