@aztec/aztec.js 3.0.3 → 4.0.0-devnet.1-patch.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/account/account.d.ts +25 -40
- package/dest/account/account.d.ts.map +1 -1
- package/dest/account/account.js +19 -47
- package/dest/account/account_contract.d.ts +8 -9
- package/dest/account/account_contract.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.d.ts +19 -7
- package/dest/account/account_with_secret_key.d.ts.map +1 -1
- package/dest/account/account_with_secret_key.js +21 -4
- package/dest/account/index.d.ts +3 -2
- package/dest/account/index.d.ts.map +1 -1
- package/dest/account/index.js +2 -0
- package/dest/account/signerless_account.d.ts +5 -6
- package/dest/account/signerless_account.d.ts.map +1 -1
- package/dest/account/signerless_account.js +8 -11
- package/dest/api/account.d.ts +2 -4
- package/dest/api/account.d.ts.map +1 -1
- package/dest/api/account.js +1 -3
- package/dest/api/authorization.d.ts +2 -2
- package/dest/api/authorization.d.ts.map +1 -1
- package/dest/api/authorization.js +1 -1
- package/dest/api/contract.d.ts +18 -12
- package/dest/api/contract.d.ts.map +1 -1
- package/dest/api/contract.js +16 -10
- package/dest/api/deployment.d.ts +1 -2
- package/dest/api/deployment.d.ts.map +1 -1
- package/dest/api/deployment.js +0 -1
- package/dest/api/events.d.ts +10 -6
- package/dest/api/events.d.ts.map +1 -1
- package/dest/api/events.js +30 -20
- package/dest/api/fields.d.ts +2 -1
- package/dest/api/fields.d.ts.map +1 -1
- package/dest/api/fields.js +1 -0
- package/dest/api/keys.d.ts +1 -1
- package/dest/api/keys.js +1 -1
- package/dest/api/node.d.ts +8 -4
- package/dest/api/node.d.ts.map +1 -1
- package/dest/api/node.js +7 -3
- package/dest/api/protocol.d.ts +7 -1
- package/dest/api/protocol.d.ts.map +1 -1
- package/dest/api/protocol.js +6 -0
- package/dest/api/tx.d.ts +2 -2
- package/dest/api/tx.d.ts.map +1 -1
- package/dest/api/tx.js +1 -1
- package/dest/api/wallet.d.ts +3 -2
- package/dest/api/wallet.d.ts.map +1 -1
- package/dest/api/wallet.js +2 -1
- package/dest/authorization/call_authorization_request.d.ts +22 -1
- package/dest/authorization/call_authorization_request.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.d.ts +8 -10
- package/dest/contract/base_contract_interaction.d.ts.map +1 -1
- package/dest/contract/base_contract_interaction.js +5 -17
- package/dest/contract/batch_call.d.ts +1 -1
- package/dest/contract/batch_call.d.ts.map +1 -1
- package/dest/contract/batch_call.js +3 -1
- package/dest/contract/contract_base.d.ts +4 -1
- package/dest/contract/contract_base.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.d.ts +3 -12
- package/dest/contract/contract_function_interaction.d.ts.map +1 -1
- package/dest/contract/contract_function_interaction.js +6 -6
- package/dest/contract/deploy_method.d.ts +63 -16
- package/dest/contract/deploy_method.d.ts.map +1 -1
- package/dest/contract/deploy_method.js +41 -23
- package/dest/contract/interaction_options.d.ts +42 -5
- package/dest/contract/interaction_options.d.ts.map +1 -1
- package/dest/contract/interaction_options.js +8 -1
- package/dest/contract/protocol_contracts/auth-registry.d.ts +27 -0
- package/dest/contract/protocol_contracts/auth-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/auth-registry.js +558 -0
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts +15 -0
- package/dest/contract/protocol_contracts/contract-class-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/contract-class-registry.js +127 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts +22 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/contract-instance-registry.js +465 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts +21 -0
- package/dest/contract/protocol_contracts/fee-juice.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/fee-juice.js +426 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts +34 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/multi-call-entrypoint.js +585 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts +26 -0
- package/dest/contract/protocol_contracts/public-checks.d.ts.map +1 -0
- package/dest/contract/protocol_contracts/public-checks.js +593 -0
- package/dest/contract/wait_for_proven.d.ts +2 -2
- package/dest/contract/wait_for_proven.d.ts.map +1 -1
- package/dest/contract/wait_for_proven.js +1 -1
- package/dest/contract/wait_opts.d.ts +16 -0
- package/dest/contract/wait_opts.d.ts.map +1 -0
- package/dest/contract/wait_opts.js +5 -0
- package/dest/deployment/publish_class.js +2 -2
- package/dest/deployment/publish_instance.d.ts +2 -2
- package/dest/deployment/publish_instance.d.ts.map +1 -1
- package/dest/deployment/publish_instance.js +3 -3
- package/dest/ethereum/portal_manager.d.ts +7 -4
- package/dest/ethereum/portal_manager.d.ts.map +1 -1
- package/dest/ethereum/portal_manager.js +15 -16
- package/dest/fee/fee_juice_payment_method_with_claim.js +6 -6
- package/dest/fee/private_fee_payment_method.js +10 -10
- package/dest/fee/public_fee_payment_method.js +10 -10
- package/dest/fee/sponsored_fee_payment.js +3 -3
- package/dest/scripts/generate_protocol_contract_types.d.ts +2 -0
- package/dest/scripts/generate_protocol_contract_types.d.ts.map +1 -0
- package/dest/scripts/generate_protocol_contract_types.js +120 -0
- package/dest/utils/authwit.d.ts +8 -6
- package/dest/utils/authwit.d.ts.map +1 -1
- package/dest/utils/authwit.js +5 -9
- package/dest/utils/node.d.ts +12 -1
- package/dest/utils/node.d.ts.map +1 -1
- package/dest/utils/node.js +46 -0
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts +5 -8
- package/dest/wallet/account_entrypoint_meta_payment_method.d.ts.map +1 -1
- package/dest/wallet/account_entrypoint_meta_payment_method.js +28 -43
- package/dest/wallet/account_manager.d.ts +5 -8
- package/dest/wallet/account_manager.d.ts.map +1 -1
- package/dest/wallet/account_manager.js +5 -11
- package/dest/wallet/capabilities.d.ts +444 -0
- package/dest/wallet/capabilities.d.ts.map +1 -0
- package/dest/wallet/capabilities.js +3 -0
- package/dest/wallet/deploy_account_method.d.ts +34 -6
- package/dest/wallet/deploy_account_method.d.ts.map +1 -1
- package/dest/wallet/deploy_account_method.js +7 -5
- package/dest/wallet/index.d.ts +2 -1
- package/dest/wallet/index.d.ts.map +1 -1
- package/dest/wallet/index.js +1 -0
- package/dest/wallet/wallet.d.ts +1642 -1007
- package/dest/wallet/wallet.d.ts.map +1 -1
- package/dest/wallet/wallet.js +201 -107
- package/package.json +24 -13
- package/src/account/account.ts +34 -58
- package/src/account/account_contract.ts +6 -7
- package/src/account/account_with_secret_key.ts +33 -8
- package/src/account/index.ts +2 -1
- package/src/account/signerless_account.ts +13 -12
- package/src/api/account.ts +9 -3
- package/src/api/authorization.ts +1 -0
- package/src/api/contract.ts +24 -9
- package/src/api/deployment.ts +0 -1
- package/src/api/events.ts +35 -27
- package/src/api/fields.ts +1 -0
- package/src/api/keys.ts +2 -2
- package/src/api/node.ts +7 -3
- package/src/api/protocol.ts +7 -0
- package/src/api/tx.ts +2 -0
- package/src/api/wallet.ts +47 -3
- package/src/contract/base_contract_interaction.ts +27 -15
- package/src/contract/batch_call.ts +4 -2
- package/src/contract/contract_function_interaction.ts +13 -6
- package/src/contract/deploy_method.ts +122 -29
- package/src/contract/interaction_options.ts +49 -4
- package/src/contract/protocol_contracts/auth-registry.ts +351 -0
- package/src/contract/protocol_contracts/contract-class-registry.ts +96 -0
- package/src/contract/protocol_contracts/contract-instance-registry.ts +302 -0
- package/src/contract/protocol_contracts/fee-juice.ts +264 -0
- package/src/contract/protocol_contracts/multi-call-entrypoint.ts +332 -0
- package/src/contract/protocol_contracts/public-checks.ts +316 -0
- package/src/contract/wait_for_proven.ts +1 -1
- package/src/contract/wait_opts.ts +21 -0
- package/src/deployment/publish_class.ts +2 -2
- package/src/deployment/publish_instance.ts +3 -6
- package/src/ethereum/portal_manager.ts +17 -21
- package/src/fee/fee_juice_payment_method_with_claim.ts +5 -5
- package/src/fee/private_fee_payment_method.ts +7 -7
- package/src/fee/public_fee_payment_method.ts +8 -8
- package/src/fee/sponsored_fee_payment.ts +3 -3
- package/src/scripts/generate_protocol_contract_types.ts +150 -0
- package/src/utils/authwit.ts +19 -7
- package/src/utils/node.ts +62 -0
- package/src/wallet/account_entrypoint_meta_payment_method.ts +28 -60
- package/src/wallet/account_manager.ts +5 -13
- package/src/wallet/capabilities.ts +491 -0
- package/src/wallet/deploy_account_method.ts +37 -13
- package/src/wallet/index.ts +1 -0
- package/src/wallet/wallet.ts +319 -118
- package/dest/account/interface.d.ts +0 -19
- package/dest/account/interface.d.ts.map +0 -1
- package/dest/account/interface.js +0 -5
- package/dest/contract/deploy_sent_tx.d.ts +0 -48
- package/dest/contract/deploy_sent_tx.d.ts.map +0 -1
- package/dest/contract/deploy_sent_tx.js +0 -46
- package/dest/contract/protocol_contracts.d.ts +0 -9
- package/dest/contract/protocol_contracts.d.ts.map +0 -1
- package/dest/contract/protocol_contracts.js +0 -26
- package/dest/contract/sent_tx.d.ts +0 -50
- package/dest/contract/sent_tx.d.ts.map +0 -1
- package/dest/contract/sent_tx.js +0 -90
- package/dest/contract/unsafe_contract.d.ts +0 -15
- package/dest/contract/unsafe_contract.d.ts.map +0 -1
- package/dest/contract/unsafe_contract.js +0 -6
- package/dest/deployment/broadcast_function.d.ts +0 -24
- package/dest/deployment/broadcast_function.d.ts.map +0 -1
- package/dest/deployment/broadcast_function.js +0 -74
- package/src/account/interface.ts +0 -25
- package/src/contract/deploy_sent_tx.ts +0 -75
- package/src/contract/protocol_contracts.ts +0 -35
- package/src/contract/sent_tx.ts +0 -129
- package/src/contract/unsafe_contract.ts +0 -19
- package/src/deployment/broadcast_function.ts +0 -148
|
@@ -0,0 +1,426 @@
|
|
|
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
|
+
'6609888949476313245': {
|
|
66
|
+
error_kind: 'string',
|
|
67
|
+
string: 'Message not in state'
|
|
68
|
+
},
|
|
69
|
+
'11019205087382408538': {
|
|
70
|
+
error_kind: 'string',
|
|
71
|
+
string: 'Field failed to decompose into specified 4 limbs'
|
|
72
|
+
},
|
|
73
|
+
'12370419938245003393': {
|
|
74
|
+
error_kind: 'string',
|
|
75
|
+
string: 'Field failed to decompose into specified 36 limbs'
|
|
76
|
+
},
|
|
77
|
+
'14990209321349310352': {
|
|
78
|
+
error_kind: 'string',
|
|
79
|
+
string: 'attempt to add with overflow'
|
|
80
|
+
},
|
|
81
|
+
'15764276373176857197': {
|
|
82
|
+
error_kind: 'string',
|
|
83
|
+
string: 'Stack too deep'
|
|
84
|
+
},
|
|
85
|
+
'15835548349546956319': {
|
|
86
|
+
error_kind: 'string',
|
|
87
|
+
string: 'Field failed to decompose into specified 32 limbs'
|
|
88
|
+
},
|
|
89
|
+
'16431471497789672479': {
|
|
90
|
+
error_kind: 'string',
|
|
91
|
+
string: 'Index out of bounds'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
bytecode: Buffer.from([]),
|
|
96
|
+
debugSymbols: ''
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
...{
|
|
100
|
+
functionType: FunctionType.PRIVATE,
|
|
101
|
+
name: 'claim_and_end_setup',
|
|
102
|
+
isOnlySelf: false,
|
|
103
|
+
isStatic: false,
|
|
104
|
+
isInitializer: false,
|
|
105
|
+
parameters: [
|
|
106
|
+
{
|
|
107
|
+
name: 'to',
|
|
108
|
+
type: {
|
|
109
|
+
kind: 'struct',
|
|
110
|
+
fields: [
|
|
111
|
+
{
|
|
112
|
+
name: 'inner',
|
|
113
|
+
type: {
|
|
114
|
+
kind: 'field'
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
|
|
119
|
+
},
|
|
120
|
+
visibility: 'private'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'amount',
|
|
124
|
+
type: {
|
|
125
|
+
kind: 'integer',
|
|
126
|
+
sign: 'unsigned',
|
|
127
|
+
width: 128
|
|
128
|
+
},
|
|
129
|
+
visibility: 'private'
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'secret',
|
|
133
|
+
type: {
|
|
134
|
+
kind: 'field'
|
|
135
|
+
},
|
|
136
|
+
visibility: 'private'
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'message_leaf_index',
|
|
140
|
+
type: {
|
|
141
|
+
kind: 'field'
|
|
142
|
+
},
|
|
143
|
+
visibility: 'private'
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
returnTypes: [],
|
|
147
|
+
errorTypes: {
|
|
148
|
+
'361444214588792908': {
|
|
149
|
+
error_kind: 'string',
|
|
150
|
+
string: 'attempt to multiply with overflow'
|
|
151
|
+
},
|
|
152
|
+
'1998584279744703196': {
|
|
153
|
+
error_kind: 'string',
|
|
154
|
+
string: 'attempt to subtract with overflow'
|
|
155
|
+
},
|
|
156
|
+
'6609888949476313245': {
|
|
157
|
+
error_kind: 'string',
|
|
158
|
+
string: 'Message not in state'
|
|
159
|
+
},
|
|
160
|
+
'11019205087382408538': {
|
|
161
|
+
error_kind: 'string',
|
|
162
|
+
string: 'Field failed to decompose into specified 4 limbs'
|
|
163
|
+
},
|
|
164
|
+
'12370419938245003393': {
|
|
165
|
+
error_kind: 'string',
|
|
166
|
+
string: 'Field failed to decompose into specified 36 limbs'
|
|
167
|
+
},
|
|
168
|
+
'14990209321349310352': {
|
|
169
|
+
error_kind: 'string',
|
|
170
|
+
string: 'attempt to add with overflow'
|
|
171
|
+
},
|
|
172
|
+
'15764276373176857197': {
|
|
173
|
+
error_kind: 'string',
|
|
174
|
+
string: 'Stack too deep'
|
|
175
|
+
},
|
|
176
|
+
'15835548349546956319': {
|
|
177
|
+
error_kind: 'string',
|
|
178
|
+
string: 'Field failed to decompose into specified 32 limbs'
|
|
179
|
+
},
|
|
180
|
+
'16431471497789672479': {
|
|
181
|
+
error_kind: 'string',
|
|
182
|
+
string: 'Index out of bounds'
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
bytecode: Buffer.from([]),
|
|
187
|
+
debugSymbols: ''
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
...{
|
|
191
|
+
functionType: FunctionType.PUBLIC,
|
|
192
|
+
name: 'public_dispatch',
|
|
193
|
+
isOnlySelf: false,
|
|
194
|
+
isStatic: false,
|
|
195
|
+
isInitializer: false,
|
|
196
|
+
parameters: [
|
|
197
|
+
{
|
|
198
|
+
name: 'selector',
|
|
199
|
+
type: {
|
|
200
|
+
kind: 'field'
|
|
201
|
+
},
|
|
202
|
+
visibility: 'private'
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
returnTypes: [],
|
|
206
|
+
errorTypes: {
|
|
207
|
+
'361444214588792908': {
|
|
208
|
+
error_kind: 'string',
|
|
209
|
+
string: 'attempt to multiply with overflow'
|
|
210
|
+
},
|
|
211
|
+
'1080336462466469436': {
|
|
212
|
+
error_kind: 'string',
|
|
213
|
+
string: 'Function check_balance can only be called statically'
|
|
214
|
+
},
|
|
215
|
+
'1998584279744703196': {
|
|
216
|
+
error_kind: 'string',
|
|
217
|
+
string: 'attempt to subtract with overflow'
|
|
218
|
+
},
|
|
219
|
+
'8637882143979902881': {
|
|
220
|
+
error_kind: 'string',
|
|
221
|
+
string: 'Function _increase_public_balance can only be called by the same contract'
|
|
222
|
+
},
|
|
223
|
+
'9543832133280402246': {
|
|
224
|
+
error_kind: 'string',
|
|
225
|
+
string: 'Balance too low'
|
|
226
|
+
},
|
|
227
|
+
'12511970388699677811': {
|
|
228
|
+
error_kind: 'fmtstring',
|
|
229
|
+
length: 27,
|
|
230
|
+
item_types: [
|
|
231
|
+
{
|
|
232
|
+
kind: 'field'
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
'13455385521185560676': {
|
|
237
|
+
error_kind: 'string',
|
|
238
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
239
|
+
},
|
|
240
|
+
'14990209321349310352': {
|
|
241
|
+
error_kind: 'string',
|
|
242
|
+
string: 'attempt to add with overflow'
|
|
243
|
+
},
|
|
244
|
+
'15764276373176857197': {
|
|
245
|
+
error_kind: 'string',
|
|
246
|
+
string: 'Stack too deep'
|
|
247
|
+
},
|
|
248
|
+
'15860392472534760515': {
|
|
249
|
+
error_kind: 'string',
|
|
250
|
+
string: 'Function balance_of_public can only be called statically'
|
|
251
|
+
},
|
|
252
|
+
'16431471497789672479': {
|
|
253
|
+
error_kind: 'string',
|
|
254
|
+
string: 'Index out of bounds'
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
bytecode: Buffer.from([]),
|
|
259
|
+
debugSymbols: ''
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
nonDispatchPublicFunctions: [
|
|
263
|
+
{
|
|
264
|
+
functionType: FunctionType.PUBLIC,
|
|
265
|
+
name: '_increase_public_balance',
|
|
266
|
+
isOnlySelf: true,
|
|
267
|
+
isStatic: false,
|
|
268
|
+
isInitializer: false,
|
|
269
|
+
parameters: [
|
|
270
|
+
{
|
|
271
|
+
name: 'to',
|
|
272
|
+
type: {
|
|
273
|
+
kind: 'struct',
|
|
274
|
+
fields: [
|
|
275
|
+
{
|
|
276
|
+
name: 'inner',
|
|
277
|
+
type: {
|
|
278
|
+
kind: 'field'
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
|
|
283
|
+
},
|
|
284
|
+
visibility: 'private'
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: 'amount',
|
|
288
|
+
type: {
|
|
289
|
+
kind: 'integer',
|
|
290
|
+
sign: 'unsigned',
|
|
291
|
+
width: 128
|
|
292
|
+
},
|
|
293
|
+
visibility: 'private'
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
returnTypes: [],
|
|
297
|
+
errorTypes: {
|
|
298
|
+
'361444214588792908': {
|
|
299
|
+
error_kind: 'string',
|
|
300
|
+
string: 'attempt to multiply with overflow'
|
|
301
|
+
},
|
|
302
|
+
'1998584279744703196': {
|
|
303
|
+
error_kind: 'string',
|
|
304
|
+
string: 'attempt to subtract with overflow'
|
|
305
|
+
},
|
|
306
|
+
'8637882143979902881': {
|
|
307
|
+
error_kind: 'string',
|
|
308
|
+
string: 'Function _increase_public_balance can only be called by the same contract'
|
|
309
|
+
},
|
|
310
|
+
'13455385521185560676': {
|
|
311
|
+
error_kind: 'string',
|
|
312
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
313
|
+
},
|
|
314
|
+
'14990209321349310352': {
|
|
315
|
+
error_kind: 'string',
|
|
316
|
+
string: 'attempt to add with overflow'
|
|
317
|
+
},
|
|
318
|
+
'15764276373176857197': {
|
|
319
|
+
error_kind: 'string',
|
|
320
|
+
string: 'Stack too deep'
|
|
321
|
+
},
|
|
322
|
+
'16431471497789672479': {
|
|
323
|
+
error_kind: 'string',
|
|
324
|
+
string: 'Index out of bounds'
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
functionType: FunctionType.PUBLIC,
|
|
330
|
+
name: 'balance_of_public',
|
|
331
|
+
isOnlySelf: false,
|
|
332
|
+
isStatic: true,
|
|
333
|
+
isInitializer: false,
|
|
334
|
+
parameters: [
|
|
335
|
+
{
|
|
336
|
+
name: 'owner',
|
|
337
|
+
type: {
|
|
338
|
+
kind: 'struct',
|
|
339
|
+
fields: [
|
|
340
|
+
{
|
|
341
|
+
name: 'inner',
|
|
342
|
+
type: {
|
|
343
|
+
kind: 'field'
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
path: 'aztec::protocol_types::address::aztec_address::AztecAddress'
|
|
348
|
+
},
|
|
349
|
+
visibility: 'private'
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
returnTypes: [
|
|
353
|
+
{
|
|
354
|
+
kind: 'integer',
|
|
355
|
+
sign: 'unsigned',
|
|
356
|
+
width: 128
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
errorTypes: {
|
|
360
|
+
'13455385521185560676': {
|
|
361
|
+
error_kind: 'string',
|
|
362
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
363
|
+
},
|
|
364
|
+
'15764276373176857197': {
|
|
365
|
+
error_kind: 'string',
|
|
366
|
+
string: 'Stack too deep'
|
|
367
|
+
},
|
|
368
|
+
'15860392472534760515': {
|
|
369
|
+
error_kind: 'string',
|
|
370
|
+
string: 'Function balance_of_public can only be called statically'
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
functionType: FunctionType.PUBLIC,
|
|
376
|
+
name: 'check_balance',
|
|
377
|
+
isOnlySelf: false,
|
|
378
|
+
isStatic: true,
|
|
379
|
+
isInitializer: false,
|
|
380
|
+
parameters: [
|
|
381
|
+
{
|
|
382
|
+
name: 'fee_limit',
|
|
383
|
+
type: {
|
|
384
|
+
kind: 'integer',
|
|
385
|
+
sign: 'unsigned',
|
|
386
|
+
width: 128
|
|
387
|
+
},
|
|
388
|
+
visibility: 'private'
|
|
389
|
+
}
|
|
390
|
+
],
|
|
391
|
+
returnTypes: [],
|
|
392
|
+
errorTypes: {
|
|
393
|
+
'1080336462466469436': {
|
|
394
|
+
error_kind: 'string',
|
|
395
|
+
string: 'Function check_balance can only be called statically'
|
|
396
|
+
},
|
|
397
|
+
'9543832133280402246': {
|
|
398
|
+
error_kind: 'string',
|
|
399
|
+
string: 'Balance too low'
|
|
400
|
+
},
|
|
401
|
+
'13455385521185560676': {
|
|
402
|
+
error_kind: 'string',
|
|
403
|
+
string: 'Storage slot 0 not allowed. Storage slots must start from 1.'
|
|
404
|
+
},
|
|
405
|
+
'15764276373176857197': {
|
|
406
|
+
error_kind: 'string',
|
|
407
|
+
string: 'Stack too deep'
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
outputs: {
|
|
413
|
+
structs: {},
|
|
414
|
+
globals: {}
|
|
415
|
+
},
|
|
416
|
+
storageLayout: {},
|
|
417
|
+
fileMap: {}
|
|
418
|
+
};
|
|
419
|
+
export class FeeJuiceContract extends ContractBase {
|
|
420
|
+
constructor(wallet){
|
|
421
|
+
super(ProtocolContractAddress.FeeJuice, FeeJuiceContractArtifact, wallet);
|
|
422
|
+
}
|
|
423
|
+
static at(wallet) {
|
|
424
|
+
return new FeeJuiceContract(wallet);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGktY2FsbC1lbnRyeXBvaW50LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29udHJhY3QvcHJvdG9jb2xfY29udHJhY3RzL211bHRpLWNhbGwtZW50cnlwb2ludC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEtBQUssRUFDVixnQkFBZ0IsRUFFaEIsU0FBUyxFQUNULG9CQUFvQixFQUVyQixNQUFNLDBCQUEwQixDQUFDO0FBQ2xDLE9BQU8sS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sRUFBRSxZQUFZLEVBQUUsS0FBSyxjQUFjLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN4RSxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQWlSbEYscUJBQWEsMkJBQTRCLFNBQVEsWUFBWTtJQUMzRCxPQUFPLGVBRU47SUFFRCxPQUFjLEVBQUUsQ0FBQyxNQUFNLEVBQUUsTUFBTSxHQUFHLDJCQUEyQixDQUU1RDtJQUVjLE9BQU8sRUFBRTtRQUN0QixzQ0FBc0M7UUFDdEMsVUFBVSxFQUFFLENBQUMsQ0FBQyxXQUFXLEVBQUU7WUFDekIsY0FBYyxFQUFFO2dCQUNkLFNBQVMsRUFBRSxTQUFTLENBQUM7Z0JBQ3JCLGlCQUFpQixFQUFFLG9CQUFvQixDQUFDO2dCQUN4QyxjQUFjLEVBQUUsZ0JBQWdCLENBQUM7Z0JBQ2pDLFNBQVMsRUFBRSxPQUFPLENBQUM7Z0JBQ25CLGVBQWUsRUFBRSxPQUFPLENBQUM7Z0JBQ3pCLFNBQVMsRUFBRSxPQUFPLENBQUM7YUFDcEIsRUFBRSxDQUFDO1lBQ0osUUFBUSxFQUFFLFNBQVMsQ0FBQztTQUNyQixLQUFLLDJCQUEyQixDQUFDLEdBQ2hDLElBQUksQ0FBQyxjQUFjLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFFbkMsMkVBQTJFO1FBQzNFLGVBQWUsRUFBRSxDQUFDLENBQ2hCLGtCQUFrQixFQUFFLFNBQVMsRUFBRSxFQUMvQixlQUFlLEVBQUU7WUFDZixPQUFPLEVBQUUsU0FBUyxDQUFDO1lBQ25CLHdCQUF3QixFQUFFLFNBQVMsRUFBRSxDQUFDO1lBQ3RDLHFCQUFxQixFQUFFLFNBQVMsQ0FBQztZQUNqQyxTQUFTLEVBQUUsZ0JBQWdCLENBQUM7U0FDN0IsS0FDRSwyQkFBMkIsQ0FBQyxHQUMvQixJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRW5DLHVDQUF1QztRQUN2QyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxTQUFTLEtBQUssMkJBQTJCLENBQUMsR0FBRyxJQUFJLENBQUMsY0FBYyxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBRTNHLG1CQUFtQjtRQUNuQixVQUFVLEVBQUUsQ0FBQyxNQUFNLDJCQUEyQixDQUFDLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxVQUFVLENBQUMsQ0FBQztLQUNwRixDQUFDO0NBQ0gifQ==
|
|
@@ -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;AAiRlF,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;gBACnB,eAAe,EAAE,OAAO,CAAC;gBACzB,SAAS,EAAE,OAAO,CAAC;aACpB,EAAE,CAAC;YACJ,QAAQ,EAAE,SAAS,CAAC;SACrB,KAAK,2BAA2B,CAAC,GAChC,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAEnC,2EAA2E;QAC3E,eAAe,EAAE,CAAC,CAChB,kBAAkB,EAAE,SAAS,EAAE,EAC/B,eAAe,EAAE;YACf,OAAO,EAAE,SAAS,CAAC;YACnB,wBAAwB,EAAE,SAAS,EAAE,CAAC;YACtC,qBAAqB,EAAE,SAAS,CAAC;YACjC,SAAS,EAAE,gBAAgB,CAAC;SAC7B,KACE,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;QAE3G,mBAAmB;QACnB,UAAU,EAAE,CAAC,MAAM,2BAA2B,CAAC,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;KACpF,CAAC;CACH"}
|