@aztec/aztec.js 0.0.1-commit.c7c42ec → 0.0.1-commit.c949de6bc

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 (199) hide show
  1. package/dest/account/account.d.ts +25 -40
  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 +8 -9
  5. package/dest/account/account_contract.d.ts.map +1 -1
  6. package/dest/account/account_with_secret_key.d.ts +19 -7
  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 +3 -2
  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 +5 -6
  13. package/dest/account/signerless_account.d.ts.map +1 -1
  14. package/dest/account/signerless_account.js +8 -11
  15. package/dest/api/account.d.ts +2 -4
  16. package/dest/api/account.d.ts.map +1 -1
  17. package/dest/api/account.js +1 -3
  18. package/dest/api/authorization.d.ts +2 -2
  19. package/dest/api/authorization.d.ts.map +1 -1
  20. package/dest/api/authorization.js +1 -1
  21. package/dest/api/contract.d.ts +18 -12
  22. package/dest/api/contract.d.ts.map +1 -1
  23. package/dest/api/contract.js +16 -10
  24. package/dest/api/deployment.d.ts +1 -2
  25. package/dest/api/deployment.d.ts.map +1 -1
  26. package/dest/api/deployment.js +0 -1
  27. package/dest/api/events.d.ts +10 -6
  28. package/dest/api/events.d.ts.map +1 -1
  29. package/dest/api/events.js +30 -20
  30. package/dest/api/fields.d.ts +2 -1
  31. package/dest/api/fields.d.ts.map +1 -1
  32. package/dest/api/fields.js +1 -0
  33. package/dest/api/keys.d.ts +1 -1
  34. package/dest/api/keys.js +1 -1
  35. package/dest/api/node.d.ts +8 -4
  36. package/dest/api/node.d.ts.map +1 -1
  37. package/dest/api/node.js +7 -3
  38. package/dest/api/protocol.d.ts +7 -1
  39. package/dest/api/protocol.d.ts.map +1 -1
  40. package/dest/api/protocol.js +6 -0
  41. package/dest/api/tx.d.ts +2 -2
  42. package/dest/api/tx.d.ts.map +1 -1
  43. package/dest/api/tx.js +1 -1
  44. package/dest/api/wallet.d.ts +3 -2
  45. package/dest/api/wallet.d.ts.map +1 -1
  46. package/dest/api/wallet.js +2 -1
  47. package/dest/authorization/call_authorization_request.d.ts +22 -1
  48. package/dest/authorization/call_authorization_request.d.ts.map +1 -1
  49. package/dest/contract/base_contract_interaction.d.ts +8 -10
  50. package/dest/contract/base_contract_interaction.d.ts.map +1 -1
  51. package/dest/contract/base_contract_interaction.js +5 -17
  52. package/dest/contract/batch_call.d.ts +3 -3
  53. package/dest/contract/batch_call.d.ts.map +1 -1
  54. package/dest/contract/batch_call.js +11 -6
  55. package/dest/contract/contract_base.d.ts +4 -1
  56. package/dest/contract/contract_base.d.ts.map +1 -1
  57. package/dest/contract/contract_function_interaction.d.ts +3 -12
  58. package/dest/contract/contract_function_interaction.d.ts.map +1 -1
  59. package/dest/contract/contract_function_interaction.js +10 -7
  60. package/dest/contract/deploy_method.d.ts +78 -18
  61. package/dest/contract/deploy_method.d.ts.map +1 -1
  62. package/dest/contract/deploy_method.js +66 -33
  63. package/dest/contract/get_gas_limits.js +3 -3
  64. package/dest/contract/interaction_options.d.ts +49 -5
  65. package/dest/contract/interaction_options.d.ts.map +1 -1
  66. package/dest/contract/interaction_options.js +8 -1
  67. package/dest/contract/protocol_contracts/auth-registry.d.ts +36 -0
  68. package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
  69. package/dest/contract/protocol_contracts/auth-registry.js +1005 -0
  70. package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
  71. package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
  72. package/dest/contract/protocol_contracts/contract-class-registry.js +139 -0
  73. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
  74. package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
  75. package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
  76. package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
  77. package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
  78. package/dest/contract/protocol_contracts/fee-juice.js +434 -0
  79. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
  80. package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
  81. package/dest/contract/protocol_contracts/multi-call-entrypoint.js +601 -0
  82. package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
  83. package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
  84. package/dest/contract/protocol_contracts/public-checks.js +609 -0
  85. package/dest/contract/wait_for_proven.d.ts +2 -2
  86. package/dest/contract/wait_for_proven.d.ts.map +1 -1
  87. package/dest/contract/wait_for_proven.js +1 -1
  88. package/dest/contract/wait_opts.d.ts +16 -0
  89. package/dest/contract/wait_opts.d.ts.map +1 -0
  90. package/dest/contract/wait_opts.js +5 -0
  91. package/dest/deployment/publish_class.js +2 -2
  92. package/dest/deployment/publish_instance.d.ts +2 -2
  93. package/dest/deployment/publish_instance.d.ts.map +1 -1
  94. package/dest/deployment/publish_instance.js +3 -3
  95. package/dest/ethereum/portal_manager.d.ts +6 -3
  96. package/dest/ethereum/portal_manager.d.ts.map +1 -1
  97. package/dest/ethereum/portal_manager.js +10 -10
  98. package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
  99. package/dest/fee/private_fee_payment_method.js +10 -10
  100. package/dest/fee/public_fee_payment_method.js +10 -10
  101. package/dest/fee/sponsored_fee_payment.js +3 -3
  102. package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
  103. package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
  104. package/dest/scripts/generate_protocol_contract_types.js +120 -0
  105. package/dest/utils/authwit.d.ts +8 -6
  106. package/dest/utils/authwit.d.ts.map +1 -1
  107. package/dest/utils/authwit.js +5 -9
  108. package/dest/utils/node.d.ts +12 -1
  109. package/dest/utils/node.d.ts.map +1 -1
  110. package/dest/utils/node.js +46 -0
  111. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
  112. package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
  113. package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
  114. package/dest/wallet/account_manager.d.ts +5 -8
  115. package/dest/wallet/account_manager.d.ts.map +1 -1
  116. package/dest/wallet/account_manager.js +5 -11
  117. package/dest/wallet/capabilities.d.ts +452 -0
  118. package/dest/wallet/capabilities.d.ts.map +1 -0
  119. package/dest/wallet/capabilities.js +3 -0
  120. package/dest/wallet/deploy_account_method.d.ts +46 -7
  121. package/dest/wallet/deploy_account_method.d.ts.map +1 -1
  122. package/dest/wallet/deploy_account_method.js +33 -5
  123. package/dest/wallet/index.d.ts +2 -1
  124. package/dest/wallet/index.d.ts.map +1 -1
  125. package/dest/wallet/index.js +1 -0
  126. package/dest/wallet/wallet.d.ts +1740 -2496
  127. package/dest/wallet/wallet.d.ts.map +1 -1
  128. package/dest/wallet/wallet.js +211 -108
  129. package/package.json +25 -14
  130. package/src/account/account.ts +34 -58
  131. package/src/account/account_contract.ts +6 -7
  132. package/src/account/account_with_secret_key.ts +33 -8
  133. package/src/account/index.ts +2 -1
  134. package/src/account/signerless_account.ts +13 -12
  135. package/src/api/account.ts +9 -3
  136. package/src/api/authorization.ts +1 -0
  137. package/src/api/contract.ts +24 -9
  138. package/src/api/deployment.ts +0 -1
  139. package/src/api/events.ts +35 -27
  140. package/src/api/fields.ts +1 -0
  141. package/src/api/keys.ts +2 -2
  142. package/src/api/node.ts +7 -3
  143. package/src/api/protocol.ts +7 -0
  144. package/src/api/tx.ts +2 -0
  145. package/src/api/wallet.ts +48 -3
  146. package/src/contract/base_contract_interaction.ts +27 -15
  147. package/src/contract/batch_call.ts +10 -13
  148. package/src/contract/contract_function_interaction.ts +17 -7
  149. package/src/contract/deploy_method.ts +165 -38
  150. package/src/contract/get_gas_limits.ts +3 -3
  151. package/src/contract/interaction_options.ts +56 -4
  152. package/src/contract/protocol_contracts/auth-registry.ts +553 -0
  153. package/src/contract/protocol_contracts/contract-class-registry.ts +99 -0
  154. package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
  155. package/src/contract/protocol_contracts/fee-juice.ts +266 -0
  156. package/src/contract/protocol_contracts/multi-call-entrypoint.ts +336 -0
  157. package/src/contract/protocol_contracts/public-checks.ts +320 -0
  158. package/src/contract/wait_for_proven.ts +1 -1
  159. package/src/contract/wait_opts.ts +21 -0
  160. package/src/deployment/publish_class.ts +2 -2
  161. package/src/deployment/publish_instance.ts +3 -6
  162. package/src/ethereum/portal_manager.ts +9 -8
  163. package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
  164. package/src/fee/private_fee_payment_method.ts +7 -7
  165. package/src/fee/public_fee_payment_method.ts +8 -8
  166. package/src/fee/sponsored_fee_payment.ts +3 -3
  167. package/src/scripts/generate_protocol_contract_types.ts +150 -0
  168. package/src/utils/authwit.ts +19 -7
  169. package/src/utils/node.ts +62 -0
  170. package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
  171. package/src/wallet/account_manager.ts +5 -13
  172. package/src/wallet/capabilities.ts +500 -0
  173. package/src/wallet/deploy_account_method.ts +74 -13
  174. package/src/wallet/index.ts +1 -0
  175. package/src/wallet/wallet.ts +344 -130
  176. package/dest/account/interface.d.ts +0 -19
  177. package/dest/account/interface.d.ts.map +0 -1
  178. package/dest/account/interface.js +0 -5
  179. package/dest/contract/deploy_sent_tx.d.ts +0 -48
  180. package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
  181. package/dest/contract/deploy_sent_tx.js +0 -46
  182. package/dest/contract/protocol_contracts.d.ts +0 -9
  183. package/dest/contract/protocol_contracts.d.ts.map +0 -1
  184. package/dest/contract/protocol_contracts.js +0 -26
  185. package/dest/contract/sent_tx.d.ts +0 -50
  186. package/dest/contract/sent_tx.d.ts.map +0 -1
  187. package/dest/contract/sent_tx.js +0 -90
  188. package/dest/contract/unsafe_contract.d.ts +0 -15
  189. package/dest/contract/unsafe_contract.d.ts.map +0 -1
  190. package/dest/contract/unsafe_contract.js +0 -6
  191. package/dest/deployment/broadcast_function.d.ts +0 -24
  192. package/dest/deployment/broadcast_function.d.ts.map +0 -1
  193. package/dest/deployment/broadcast_function.js +0 -74
  194. package/src/account/interface.ts +0 -25
  195. package/src/contract/deploy_sent_tx.ts +0 -75
  196. package/src/contract/protocol_contracts.ts +0 -35
  197. package/src/contract/sent_tx.ts +0 -129
  198. package/src/contract/unsafe_contract.ts +0 -19
  199. package/src/deployment/broadcast_function.ts +0 -148
@@ -0,0 +1,21 @@
1
+ import type { AztecAddressLike, FieldLike } from '../../utils/abi_types.js';
2
+ import type { Wallet } from '../../wallet/wallet.js';
3
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
4
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
5
+ export declare class FeeJuiceContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): FeeJuiceContract;
8
+ methods: {
9
+ /** balance_of_public(owner: struct) */
10
+ balance_of_public: ((owner: AztecAddressLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
11
+ /** check_balance(fee_limit: integer) */
12
+ check_balance: ((fee_limit: bigint | number) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
13
+ /** claim(to: struct, amount: integer, secret: field, message_leaf_index: field) */
14
+ claim: ((to: AztecAddressLike, amount: bigint | number, secret: FieldLike, message_leaf_index: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
15
+ /** claim_and_end_setup(to: struct, amount: integer, secret: field, message_leaf_index: field) */
16
+ claim_and_end_setup: ((to: AztecAddressLike, amount: bigint | number, secret: FieldLike, message_leaf_index: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
17
+ /** public_dispatch(selector: field) */
18
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<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,EAAE;QACtB,uCAAuC;QACvC,iBAAiB,EAAE,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEjH,wCAAwC;QACxC,aAAa,EAAE,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEhH,mFAAmF;QACnF,KAAK,EAAE,CAAC,CACN,EAAE,EAAE,gBAAgB,EACpB,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,SAAS,KAC1B,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,iGAAiG;QACjG,mBAAmB,EAAE,CAAC,CACpB,EAAE,EAAE,gBAAgB,EACpB,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,MAAM,EAAE,SAAS,EACjB,kBAAkB,EAAE,SAAS,KAC1B,2BAA2B,CAAC,GAC/B,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,uCAAuC;QACvC,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,KAAK,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KAC5G,CAAC;CACH"}
@@ -0,0 +1,434 @@
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 FeeJuiceContractArtifact = {
5
+ name: 'FeeJuice',
6
+ functions: [
7
+ {
8
+ ...{
9
+ functionType: FunctionType.PRIVATE,
10
+ name: 'claim',
11
+ isOnlySelf: false,
12
+ isStatic: false,
13
+ isInitializer: false,
14
+ parameters: [
15
+ {
16
+ name: 'to',
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: 'amount',
33
+ type: {
34
+ kind: 'integer',
35
+ sign: 'unsigned',
36
+ width: 128
37
+ },
38
+ visibility: 'private'
39
+ },
40
+ {
41
+ name: 'secret',
42
+ type: {
43
+ kind: 'field'
44
+ },
45
+ visibility: 'private'
46
+ },
47
+ {
48
+ name: 'message_leaf_index',
49
+ type: {
50
+ kind: 'field'
51
+ },
52
+ visibility: 'private'
53
+ }
54
+ ],
55
+ returnTypes: [],
56
+ errorTypes: {
57
+ '361444214588792908': {
58
+ error_kind: 'string',
59
+ string: 'attempt to multiply with overflow'
60
+ },
61
+ '1998584279744703196': {
62
+ error_kind: 'string',
63
+ string: 'attempt to subtract with overflow'
64
+ },
65
+ '5421095327929394772': {
66
+ error_kind: 'string',
67
+ string: 'attempt to bit-shift with overflow'
68
+ },
69
+ '6609888949476313245': {
70
+ error_kind: 'string',
71
+ string: 'Message not in state'
72
+ },
73
+ '11019205087382408538': {
74
+ error_kind: 'string',
75
+ string: 'Field failed to decompose into specified 4 limbs'
76
+ },
77
+ '12370419938245003393': {
78
+ error_kind: 'string',
79
+ string: 'Field failed to decompose into specified 36 limbs'
80
+ },
81
+ '14990209321349310352': {
82
+ error_kind: 'string',
83
+ string: 'attempt to add with overflow'
84
+ },
85
+ '15764276373176857197': {
86
+ error_kind: 'string',
87
+ string: 'Stack too deep'
88
+ },
89
+ '15835548349546956319': {
90
+ error_kind: 'string',
91
+ string: 'Field failed to decompose into specified 32 limbs'
92
+ },
93
+ '16431471497789672479': {
94
+ error_kind: 'string',
95
+ string: 'Index out of bounds'
96
+ }
97
+ }
98
+ },
99
+ bytecode: Buffer.from([]),
100
+ debugSymbols: ''
101
+ },
102
+ {
103
+ ...{
104
+ functionType: FunctionType.PRIVATE,
105
+ name: 'claim_and_end_setup',
106
+ isOnlySelf: false,
107
+ isStatic: false,
108
+ isInitializer: false,
109
+ parameters: [
110
+ {
111
+ name: 'to',
112
+ type: {
113
+ kind: 'struct',
114
+ fields: [
115
+ {
116
+ name: 'inner',
117
+ type: {
118
+ kind: 'field'
119
+ }
120
+ }
121
+ ],
122
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
123
+ },
124
+ visibility: 'private'
125
+ },
126
+ {
127
+ name: 'amount',
128
+ type: {
129
+ kind: 'integer',
130
+ sign: 'unsigned',
131
+ width: 128
132
+ },
133
+ visibility: 'private'
134
+ },
135
+ {
136
+ name: 'secret',
137
+ type: {
138
+ kind: 'field'
139
+ },
140
+ visibility: 'private'
141
+ },
142
+ {
143
+ name: 'message_leaf_index',
144
+ type: {
145
+ kind: 'field'
146
+ },
147
+ visibility: 'private'
148
+ }
149
+ ],
150
+ returnTypes: [],
151
+ errorTypes: {
152
+ '361444214588792908': {
153
+ error_kind: 'string',
154
+ string: 'attempt to multiply with overflow'
155
+ },
156
+ '1998584279744703196': {
157
+ error_kind: 'string',
158
+ string: 'attempt to subtract with overflow'
159
+ },
160
+ '5421095327929394772': {
161
+ error_kind: 'string',
162
+ string: 'attempt to bit-shift with overflow'
163
+ },
164
+ '6609888949476313245': {
165
+ error_kind: 'string',
166
+ string: 'Message not in state'
167
+ },
168
+ '11019205087382408538': {
169
+ error_kind: 'string',
170
+ string: 'Field failed to decompose into specified 4 limbs'
171
+ },
172
+ '12370419938245003393': {
173
+ error_kind: 'string',
174
+ string: 'Field failed to decompose into specified 36 limbs'
175
+ },
176
+ '14990209321349310352': {
177
+ error_kind: 'string',
178
+ string: 'attempt to add with overflow'
179
+ },
180
+ '15764276373176857197': {
181
+ error_kind: 'string',
182
+ string: 'Stack too deep'
183
+ },
184
+ '15835548349546956319': {
185
+ error_kind: 'string',
186
+ string: 'Field failed to decompose into specified 32 limbs'
187
+ },
188
+ '16431471497789672479': {
189
+ error_kind: 'string',
190
+ string: 'Index out of bounds'
191
+ }
192
+ }
193
+ },
194
+ bytecode: Buffer.from([]),
195
+ debugSymbols: ''
196
+ },
197
+ {
198
+ ...{
199
+ functionType: FunctionType.PUBLIC,
200
+ name: 'public_dispatch',
201
+ isOnlySelf: false,
202
+ isStatic: false,
203
+ isInitializer: false,
204
+ parameters: [
205
+ {
206
+ name: 'selector',
207
+ type: {
208
+ kind: 'field'
209
+ },
210
+ visibility: 'private'
211
+ }
212
+ ],
213
+ returnTypes: [],
214
+ errorTypes: {
215
+ '361444214588792908': {
216
+ error_kind: 'string',
217
+ string: 'attempt to multiply with overflow'
218
+ },
219
+ '1080336462466469436': {
220
+ error_kind: 'string',
221
+ string: 'Function check_balance can only be called statically'
222
+ },
223
+ '1998584279744703196': {
224
+ error_kind: 'string',
225
+ string: 'attempt to subtract with overflow'
226
+ },
227
+ '8637882143979902881': {
228
+ error_kind: 'string',
229
+ string: 'Function _increase_public_balance can only be called by the same contract'
230
+ },
231
+ '9543832133280402246': {
232
+ error_kind: 'string',
233
+ string: 'Balance too low'
234
+ },
235
+ '12511970388699677811': {
236
+ error_kind: 'fmtstring',
237
+ length: 27,
238
+ item_types: [
239
+ {
240
+ kind: 'field'
241
+ }
242
+ ]
243
+ },
244
+ '13455385521185560676': {
245
+ error_kind: 'string',
246
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
247
+ },
248
+ '14990209321349310352': {
249
+ error_kind: 'string',
250
+ string: 'attempt to add with overflow'
251
+ },
252
+ '15764276373176857197': {
253
+ error_kind: 'string',
254
+ string: 'Stack too deep'
255
+ },
256
+ '15860392472534760515': {
257
+ error_kind: 'string',
258
+ string: 'Function balance_of_public can only be called statically'
259
+ },
260
+ '16431471497789672479': {
261
+ error_kind: 'string',
262
+ string: 'Index out of bounds'
263
+ }
264
+ }
265
+ },
266
+ bytecode: Buffer.from([]),
267
+ debugSymbols: ''
268
+ }
269
+ ],
270
+ nonDispatchPublicFunctions: [
271
+ {
272
+ functionType: FunctionType.PUBLIC,
273
+ name: '_increase_public_balance',
274
+ isOnlySelf: true,
275
+ isStatic: false,
276
+ isInitializer: false,
277
+ parameters: [
278
+ {
279
+ name: 'to',
280
+ type: {
281
+ kind: 'struct',
282
+ fields: [
283
+ {
284
+ name: 'inner',
285
+ type: {
286
+ kind: 'field'
287
+ }
288
+ }
289
+ ],
290
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
291
+ },
292
+ visibility: 'private'
293
+ },
294
+ {
295
+ name: 'amount',
296
+ type: {
297
+ kind: 'integer',
298
+ sign: 'unsigned',
299
+ width: 128
300
+ },
301
+ visibility: 'private'
302
+ }
303
+ ],
304
+ returnTypes: [],
305
+ errorTypes: {
306
+ '361444214588792908': {
307
+ error_kind: 'string',
308
+ string: 'attempt to multiply with overflow'
309
+ },
310
+ '1998584279744703196': {
311
+ error_kind: 'string',
312
+ string: 'attempt to subtract with overflow'
313
+ },
314
+ '8637882143979902881': {
315
+ error_kind: 'string',
316
+ string: 'Function _increase_public_balance can only be called by the same contract'
317
+ },
318
+ '13455385521185560676': {
319
+ error_kind: 'string',
320
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
321
+ },
322
+ '14990209321349310352': {
323
+ error_kind: 'string',
324
+ string: 'attempt to add with overflow'
325
+ },
326
+ '15764276373176857197': {
327
+ error_kind: 'string',
328
+ string: 'Stack too deep'
329
+ },
330
+ '16431471497789672479': {
331
+ error_kind: 'string',
332
+ string: 'Index out of bounds'
333
+ }
334
+ }
335
+ },
336
+ {
337
+ functionType: FunctionType.PUBLIC,
338
+ name: 'balance_of_public',
339
+ isOnlySelf: false,
340
+ isStatic: true,
341
+ isInitializer: false,
342
+ parameters: [
343
+ {
344
+ name: 'owner',
345
+ type: {
346
+ kind: 'struct',
347
+ fields: [
348
+ {
349
+ name: 'inner',
350
+ type: {
351
+ kind: 'field'
352
+ }
353
+ }
354
+ ],
355
+ path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
356
+ },
357
+ visibility: 'private'
358
+ }
359
+ ],
360
+ returnTypes: [
361
+ {
362
+ kind: 'integer',
363
+ sign: 'unsigned',
364
+ width: 128
365
+ }
366
+ ],
367
+ errorTypes: {
368
+ '13455385521185560676': {
369
+ error_kind: 'string',
370
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
371
+ },
372
+ '15764276373176857197': {
373
+ error_kind: 'string',
374
+ string: 'Stack too deep'
375
+ },
376
+ '15860392472534760515': {
377
+ error_kind: 'string',
378
+ string: 'Function balance_of_public can only be called statically'
379
+ }
380
+ }
381
+ },
382
+ {
383
+ functionType: FunctionType.PUBLIC,
384
+ name: 'check_balance',
385
+ isOnlySelf: false,
386
+ isStatic: true,
387
+ isInitializer: false,
388
+ parameters: [
389
+ {
390
+ name: 'fee_limit',
391
+ type: {
392
+ kind: 'integer',
393
+ sign: 'unsigned',
394
+ width: 128
395
+ },
396
+ visibility: 'private'
397
+ }
398
+ ],
399
+ returnTypes: [],
400
+ errorTypes: {
401
+ '1080336462466469436': {
402
+ error_kind: 'string',
403
+ string: 'Function check_balance can only be called statically'
404
+ },
405
+ '9543832133280402246': {
406
+ error_kind: 'string',
407
+ string: 'Balance too low'
408
+ },
409
+ '13455385521185560676': {
410
+ error_kind: 'string',
411
+ string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
412
+ },
413
+ '15764276373176857197': {
414
+ error_kind: 'string',
415
+ string: 'Stack too deep'
416
+ }
417
+ }
418
+ }
419
+ ],
420
+ outputs: {
421
+ structs: {},
422
+ globals: {}
423
+ },
424
+ storageLayout: {},
425
+ fileMap: {}
426
+ };
427
+ export class FeeJuiceContract extends ContractBase {
428
+ constructor(wallet){
429
+ super(ProtocolContractAddress.FeeJuice, FeeJuiceContractArtifact, wallet);
430
+ }
431
+ static at(wallet) {
432
+ return new FeeJuiceContract(wallet);
433
+ }
434
+ }
@@ -0,0 +1,34 @@
1
+ import type { AztecAddressLike, FieldLike, FunctionSelectorLike } from '../../utils/abi_types.js';
2
+ import type { Wallet } from '../../wallet/wallet.js';
3
+ import { ContractBase, type ContractMethod } from '../contract_base.js';
4
+ import { ContractFunctionInteraction } from '../contract_function_interaction.js';
5
+ export declare class MultiCallEntrypointContract extends ContractBase {
6
+ private constructor();
7
+ static at(wallet: Wallet): MultiCallEntrypointContract;
8
+ methods: {
9
+ /** entrypoint(app_payload: struct) */
10
+ entrypoint: ((app_payload: {
11
+ function_calls: {
12
+ args_hash: FieldLike;
13
+ function_selector: FunctionSelectorLike;
14
+ target_address: AztecAddressLike;
15
+ is_public: boolean;
16
+ hide_msg_sender: boolean;
17
+ is_static: boolean;
18
+ }[];
19
+ tx_nonce: FieldLike;
20
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
21
+ /** process_message(message_ciphertext: struct, message_context: struct) */
22
+ process_message: ((message_ciphertext: FieldLike[], message_context: {
23
+ tx_hash: FieldLike;
24
+ unique_note_hashes_in_tx: FieldLike[];
25
+ first_nullifier_in_tx: FieldLike;
26
+ recipient: AztecAddressLike;
27
+ }) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
28
+ /** public_dispatch(selector: field) */
29
+ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
30
+ /** sync_state() */
31
+ sync_state: (() => ContractFunctionInteraction) & Pick<ContractMethod, 'selector'>;
32
+ };
33
+ }
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGktY2FsbC1lbnRyeXBvaW50LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3QvcHJvdG9jb2xfY29udHJhY3RzL211bHRpLWNhbGwtZW50cnlwb2ludC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEtBQUssRUFDVixnQkFBZ0IsRUFFaEIsU0FBUyxFQUNULG9CQUFvQixFQUVyQixN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VMsQ0FBQztZQUNqQyxTQUFTLEVBQUUsZ0JBQWdCLENBQUM7U0FDN0IsS0FDRSwyQkFBMkIsQ0FBQyxHQUMvQixJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRW5DLHVDQUF1QztRQUN2QyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxTQUFTLEtBQUssMkJBQTJCLENBQUMsR0FBRyxJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRTNHLG1CQUFtQjtRQUNuQixVQUFVLEVBQUUsQ0FBQyxNQUFNLDJCQUEyQixDQUFDLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztLQUNwRixDQUFDO0NBQ0gifQ==
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-call-entrypoint.d.ts","sourceRoot":"","sources":["../../../src/contract/protocol_contracts/multi-call-entrypoint.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAEhB,SAAS,EACT,oBAAoB,EAErB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAqRlF,qBAAa,2BAA4B,SAAQ,YAAY;IAC3D,OAAO,eAEN;IAED,OAAc,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,2BAA2B,CAE5D;IAEc,OAAO,EAAE;QACtB,sCAAsC;QACtC,UAAU,EAAE,CAAC,CAAC,WAAW,EAAE;YACzB,cAAc,EAAE;gBACd,SAAS,EAAE,SAAS,CAAC;gBACrB,iBAAiB,EAAE,oBAAoB,CAAC;gBACxC,cAAc,EAAE,gBAAgB,CAAC;gBACjC,SAAS,EAAE,OAAO,CAAC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