@boostxyz/sdk 0.0.0-alpha.2

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 (117) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +7 -0
  3. package/dist/Actions/Action.cjs +1 -0
  4. package/dist/Actions/Action.d.ts +31 -0
  5. package/dist/Actions/Action.d.ts.map +1 -0
  6. package/dist/Actions/Action.js +27 -0
  7. package/dist/Actions/ContractAction.d.ts +327 -0
  8. package/dist/Actions/ContractAction.d.ts.map +1 -0
  9. package/dist/Actions/ERC721MintAction.d.ts +486 -0
  10. package/dist/Actions/ERC721MintAction.d.ts.map +1 -0
  11. package/dist/Actions/EventAction.cjs +1 -0
  12. package/dist/Actions/EventAction.d.ts +433 -0
  13. package/dist/Actions/EventAction.d.ts.map +1 -0
  14. package/dist/Actions/EventAction.js +211 -0
  15. package/dist/AllowLists/AllowList.cjs +1 -0
  16. package/dist/AllowLists/AllowList.d.ts +33 -0
  17. package/dist/AllowLists/AllowList.d.ts.map +1 -0
  18. package/dist/AllowLists/AllowList.js +28 -0
  19. package/dist/AllowLists/SimpleAllowList.cjs +1 -0
  20. package/dist/AllowLists/SimpleAllowList.d.ts +452 -0
  21. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -0
  22. package/dist/AllowLists/SimpleAllowList.js +138 -0
  23. package/dist/AllowLists/SimpleDenyList.cjs +1 -0
  24. package/dist/AllowLists/SimpleDenyList.d.ts +306 -0
  25. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -0
  26. package/dist/AllowLists/SimpleDenyList.js +202 -0
  27. package/dist/Auth/Auth.cjs +1 -0
  28. package/dist/Auth/Auth.d.ts +10 -0
  29. package/dist/Auth/Auth.d.ts.map +1 -0
  30. package/dist/Auth/Auth.js +4 -0
  31. package/dist/Auth/PassthroughAuth.cjs +1 -0
  32. package/dist/Auth/PassthroughAuth.d.ts +51 -0
  33. package/dist/Auth/PassthroughAuth.d.ts.map +1 -0
  34. package/dist/Auth/PassthroughAuth.js +38 -0
  35. package/dist/Boost.cjs +1 -0
  36. package/dist/Boost.d.ts +142 -0
  37. package/dist/Boost.d.ts.map +1 -0
  38. package/dist/Boost.js +15 -0
  39. package/dist/BoostCore.cjs +2 -0
  40. package/dist/BoostCore.d.ts +460 -0
  41. package/dist/BoostCore.d.ts.map +1 -0
  42. package/dist/BoostCore.js +1105 -0
  43. package/dist/BoostRegistry.cjs +1 -0
  44. package/dist/BoostRegistry.d.ts +229 -0
  45. package/dist/BoostRegistry.d.ts.map +1 -0
  46. package/dist/BoostRegistry.js +250 -0
  47. package/dist/Budgets/Budget.cjs +1 -0
  48. package/dist/Budgets/Budget.d.ts +31 -0
  49. package/dist/Budgets/Budget.d.ts.map +1 -0
  50. package/dist/Budgets/Budget.js +27 -0
  51. package/dist/Budgets/ManagedBudget.cjs +1 -0
  52. package/dist/Budgets/ManagedBudget.d.ts +1065 -0
  53. package/dist/Budgets/ManagedBudget.d.ts.map +1 -0
  54. package/dist/Budgets/ManagedBudget.js +498 -0
  55. package/dist/Budgets/SimpleBudget.d.ts +793 -0
  56. package/dist/Budgets/SimpleBudget.d.ts.map +1 -0
  57. package/dist/Budgets/VestingBudget.d.ts +726 -0
  58. package/dist/Budgets/VestingBudget.d.ts.map +1 -0
  59. package/dist/Deployable/Contract.cjs +1 -0
  60. package/dist/Deployable/Contract.d.ts +125 -0
  61. package/dist/Deployable/Contract.d.ts.map +1 -0
  62. package/dist/Deployable/Contract.js +149 -0
  63. package/dist/Deployable/Deployable.cjs +1 -0
  64. package/dist/Deployable/Deployable.d.ts +155 -0
  65. package/dist/Deployable/Deployable.d.ts.map +1 -0
  66. package/dist/Deployable/Deployable.js +124 -0
  67. package/dist/Deployable/DeployableTarget.cjs +1 -0
  68. package/dist/Deployable/DeployableTarget.d.ts +115 -0
  69. package/dist/Deployable/DeployableTarget.d.ts.map +1 -0
  70. package/dist/Deployable/DeployableTarget.js +128 -0
  71. package/dist/Incentives/AllowListIncentive.cjs +1 -0
  72. package/dist/Incentives/AllowListIncentive.d.ts +483 -0
  73. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -0
  74. package/dist/Incentives/AllowListIncentive.js +188 -0
  75. package/dist/Incentives/CGDAIncentive.cjs +1 -0
  76. package/dist/Incentives/CGDAIncentive.d.ts +560 -0
  77. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -0
  78. package/dist/Incentives/CGDAIncentive.js +249 -0
  79. package/dist/Incentives/ERC1155Incentive.d.ts +652 -0
  80. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -0
  81. package/dist/Incentives/ERC20Incentive.cjs +1 -0
  82. package/dist/Incentives/ERC20Incentive.d.ts +622 -0
  83. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -0
  84. package/dist/Incentives/ERC20Incentive.js +292 -0
  85. package/dist/Incentives/ERC20VariableIncentive.d.ts +545 -0
  86. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -0
  87. package/dist/Incentives/Incentive.cjs +1 -0
  88. package/dist/Incentives/Incentive.d.ts +39 -0
  89. package/dist/Incentives/Incentive.d.ts.map +1 -0
  90. package/dist/Incentives/Incentive.js +280 -0
  91. package/dist/Incentives/PointsIncentive.cjs +1 -0
  92. package/dist/Incentives/PointsIncentive.d.ts +615 -0
  93. package/dist/Incentives/PointsIncentive.d.ts.map +1 -0
  94. package/dist/Incentives/PointsIncentive.js +197 -0
  95. package/dist/Validators/SignerValidator.cjs +1 -0
  96. package/dist/Validators/SignerValidator.d.ts +452 -0
  97. package/dist/Validators/SignerValidator.d.ts.map +1 -0
  98. package/dist/Validators/SignerValidator.js +167 -0
  99. package/dist/Validators/Validator.cjs +1 -0
  100. package/dist/Validators/Validator.d.ts +31 -0
  101. package/dist/Validators/Validator.d.ts.map +1 -0
  102. package/dist/Validators/Validator.js +25 -0
  103. package/dist/errors.cjs +1 -0
  104. package/dist/errors.d.ts +257 -0
  105. package/dist/errors.d.ts.map +1 -0
  106. package/dist/errors.js +161 -0
  107. package/dist/generated-BaaleHW-.cjs +2 -0
  108. package/dist/generated-x_abr3Yv.js +6228 -0
  109. package/dist/index.cjs +1 -0
  110. package/dist/index.d.ts +29 -0
  111. package/dist/index.d.ts.map +1 -0
  112. package/dist/index.js +1355 -0
  113. package/dist/utils.cjs +1 -0
  114. package/dist/utils.d.ts +1454 -0
  115. package/dist/utils.d.ts.map +1 -0
  116. package/dist/utils.js +643 -0
  117. package/package.json +197 -0
@@ -0,0 +1,1065 @@
1
+ import { managedBudgetAbi } from '@boostxyz/evm';
2
+ import { type Address, type ContractEventName } from 'viem';
3
+ import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
4
+ import { DeployableTarget } from '../Deployable/DeployableTarget';
5
+ import { type ERC1155TransferPayload, type FungibleTransferPayload, type GenericLog, type ManagedBudgetPayload, type ReadParams, RegistryType, type WriteParams } from '../utils';
6
+ export { managedBudgetAbi };
7
+ export type { ERC1155TransferPayload, FungibleTransferPayload, ManagedBudgetPayload, };
8
+ /**
9
+ * Enum representing available roles for use in the `ManagedBudget`.
10
+ * `MANAGER` can disburse funds.
11
+ * `ADMIN` can additionally manage authorized users on the budget.
12
+ *
13
+ * @type {{ readonly MANAGER: 1n; readonly ADMIN_ROLE: 2n; }}
14
+ */
15
+ export declare const ManagedBudgetRoles: {
16
+ readonly MANAGER: 1n;
17
+ readonly ADMIN: 2n;
18
+ };
19
+ /**
20
+ * A generic `viem.Log` event with support for `ManagedBudget` event types.
21
+ *
22
+ * @export
23
+ * @typedef {ManagedBudgetLog}
24
+ * @template {ContractEventName<typeof managedBudgetAbi>} [event=ContractEventName<
25
+ * typeof managedBudgetAbi
26
+ * >]
27
+ */
28
+ export type ManagedBudgetLog<event extends ContractEventName<typeof managedBudgetAbi> = ContractEventName<typeof managedBudgetAbi>> = GenericLog<typeof managedBudgetAbi, event>;
29
+ /**
30
+ * Typeguard to determine if a transfer payload is a Fungible Transfer
31
+ *
32
+ * @export
33
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
34
+ * @returns {transfer is FungibleTransferPayload}
35
+ */
36
+ export declare function isFungibleTransfer(transfer: FungibleTransferPayload | ERC1155TransferPayload): transfer is FungibleTransferPayload;
37
+ /**
38
+ * Typeguard to determine if a transfer payload is an ERC1155 Transfer
39
+ *
40
+ * @export
41
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
42
+ * @returns {transfer is ERC1155TransferPayload}
43
+ */
44
+ export declare function isERC1155TransferPayload(transfer: FungibleTransferPayload | ERC1155TransferPayload): transfer is ERC1155TransferPayload;
45
+ /**
46
+ * Given either a Fungible transfer, or ERC1155 transfer, will properly encode parameters for transfers, claims, disbursements, allocations, etc.
47
+ *
48
+ * @export
49
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
50
+ * @returns {*}
51
+ * @throws {@link UnknownTransferPayloadSupplied}
52
+ */
53
+ export declare function prepareTransfer(transfer: FungibleTransferPayload | ERC1155TransferPayload): `0x${string}`;
54
+ /**
55
+ * A minimal budget implementation that simply holds and distributes tokens (ERC20-like and native)
56
+ * This type of budget supports ETH, ERC20, and ERC1155 assets only
57
+ *
58
+ * @export
59
+ * @class ManagedBudget
60
+ * @typedef {ManagedBudget}
61
+ * @extends {DeployableTarget<ManagedBudgetPayload>}
62
+ */
63
+ export declare class ManagedBudget extends DeployableTarget<ManagedBudgetPayload, typeof managedBudgetAbi> {
64
+ /**
65
+ * @inheritdoc
66
+ *
67
+ * @public
68
+ * @readonly
69
+ * @type {*}
70
+ */
71
+ readonly abi: readonly [{
72
+ readonly type: "constructor";
73
+ readonly inputs: readonly [];
74
+ readonly stateMutability: "nonpayable";
75
+ }, {
76
+ readonly type: "error";
77
+ readonly inputs: readonly [];
78
+ readonly name: "AlreadyInitialized";
79
+ }, {
80
+ readonly type: "error";
81
+ readonly inputs: readonly [];
82
+ readonly name: "CloneAlreadyInitialized";
83
+ }, {
84
+ readonly type: "error";
85
+ readonly inputs: readonly [];
86
+ readonly name: "InitializerNotImplemented";
87
+ }, {
88
+ readonly type: "error";
89
+ readonly inputs: readonly [{
90
+ readonly name: "asset";
91
+ readonly internalType: "address";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly name: "available";
95
+ readonly internalType: "uint256";
96
+ readonly type: "uint256";
97
+ }, {
98
+ readonly name: "required";
99
+ readonly internalType: "uint256";
100
+ readonly type: "uint256";
101
+ }];
102
+ readonly name: "InsufficientFunds";
103
+ }, {
104
+ readonly type: "error";
105
+ readonly inputs: readonly [{
106
+ readonly name: "asset";
107
+ readonly internalType: "address";
108
+ readonly type: "address";
109
+ }, {
110
+ readonly name: "amount";
111
+ readonly internalType: "uint256";
112
+ readonly type: "uint256";
113
+ }];
114
+ readonly name: "InvalidAllocation";
115
+ }, {
116
+ readonly type: "error";
117
+ readonly inputs: readonly [];
118
+ readonly name: "InvalidInitialization";
119
+ }, {
120
+ readonly type: "error";
121
+ readonly inputs: readonly [];
122
+ readonly name: "InvalidInitializationData";
123
+ }, {
124
+ readonly type: "error";
125
+ readonly inputs: readonly [];
126
+ readonly name: "LengthMismatch";
127
+ }, {
128
+ readonly type: "error";
129
+ readonly inputs: readonly [];
130
+ readonly name: "NewOwnerIsZeroAddress";
131
+ }, {
132
+ readonly type: "error";
133
+ readonly inputs: readonly [];
134
+ readonly name: "NoHandoverRequest";
135
+ }, {
136
+ readonly type: "error";
137
+ readonly inputs: readonly [];
138
+ readonly name: "NotImplemented";
139
+ }, {
140
+ readonly type: "error";
141
+ readonly inputs: readonly [];
142
+ readonly name: "NotInitializing";
143
+ }, {
144
+ readonly type: "error";
145
+ readonly inputs: readonly [];
146
+ readonly name: "Reentrancy";
147
+ }, {
148
+ readonly type: "error";
149
+ readonly inputs: readonly [{
150
+ readonly name: "asset";
151
+ readonly internalType: "address";
152
+ readonly type: "address";
153
+ }, {
154
+ readonly name: "to";
155
+ readonly internalType: "address";
156
+ readonly type: "address";
157
+ }, {
158
+ readonly name: "amount";
159
+ readonly internalType: "uint256";
160
+ readonly type: "uint256";
161
+ }];
162
+ readonly name: "TransferFailed";
163
+ }, {
164
+ readonly type: "error";
165
+ readonly inputs: readonly [];
166
+ readonly name: "Unauthorized";
167
+ }, {
168
+ readonly type: "event";
169
+ readonly anonymous: false;
170
+ readonly inputs: readonly [{
171
+ readonly name: "account";
172
+ readonly internalType: "address";
173
+ readonly type: "address";
174
+ readonly indexed: true;
175
+ }, {
176
+ readonly name: "isAuthorized";
177
+ readonly internalType: "bool";
178
+ readonly type: "bool";
179
+ readonly indexed: false;
180
+ }];
181
+ readonly name: "Authorized";
182
+ }, {
183
+ readonly type: "event";
184
+ readonly anonymous: false;
185
+ readonly inputs: readonly [{
186
+ readonly name: "asset";
187
+ readonly internalType: "address";
188
+ readonly type: "address";
189
+ readonly indexed: true;
190
+ }, {
191
+ readonly name: "to";
192
+ readonly internalType: "address";
193
+ readonly type: "address";
194
+ readonly indexed: false;
195
+ }, {
196
+ readonly name: "amount";
197
+ readonly internalType: "uint256";
198
+ readonly type: "uint256";
199
+ readonly indexed: false;
200
+ }];
201
+ readonly name: "Distributed";
202
+ }, {
203
+ readonly type: "event";
204
+ readonly anonymous: false;
205
+ readonly inputs: readonly [{
206
+ readonly name: "version";
207
+ readonly internalType: "uint64";
208
+ readonly type: "uint64";
209
+ readonly indexed: false;
210
+ }];
211
+ readonly name: "Initialized";
212
+ }, {
213
+ readonly type: "event";
214
+ readonly anonymous: false;
215
+ readonly inputs: readonly [{
216
+ readonly name: "pendingOwner";
217
+ readonly internalType: "address";
218
+ readonly type: "address";
219
+ readonly indexed: true;
220
+ }];
221
+ readonly name: "OwnershipHandoverCanceled";
222
+ }, {
223
+ readonly type: "event";
224
+ readonly anonymous: false;
225
+ readonly inputs: readonly [{
226
+ readonly name: "pendingOwner";
227
+ readonly internalType: "address";
228
+ readonly type: "address";
229
+ readonly indexed: true;
230
+ }];
231
+ readonly name: "OwnershipHandoverRequested";
232
+ }, {
233
+ readonly type: "event";
234
+ readonly anonymous: false;
235
+ readonly inputs: readonly [{
236
+ readonly name: "oldOwner";
237
+ readonly internalType: "address";
238
+ readonly type: "address";
239
+ readonly indexed: true;
240
+ }, {
241
+ readonly name: "newOwner";
242
+ readonly internalType: "address";
243
+ readonly type: "address";
244
+ readonly indexed: true;
245
+ }];
246
+ readonly name: "OwnershipTransferred";
247
+ }, {
248
+ readonly type: "event";
249
+ readonly anonymous: false;
250
+ readonly inputs: readonly [{
251
+ readonly name: "user";
252
+ readonly internalType: "address";
253
+ readonly type: "address";
254
+ readonly indexed: true;
255
+ }, {
256
+ readonly name: "roles";
257
+ readonly internalType: "uint256";
258
+ readonly type: "uint256";
259
+ readonly indexed: true;
260
+ }];
261
+ readonly name: "RolesUpdated";
262
+ }, {
263
+ readonly type: "fallback";
264
+ readonly stateMutability: "payable";
265
+ }, {
266
+ readonly type: "function";
267
+ readonly inputs: readonly [];
268
+ readonly name: "ADMIN_ROLE";
269
+ readonly outputs: readonly [{
270
+ readonly name: "";
271
+ readonly internalType: "uint256";
272
+ readonly type: "uint256";
273
+ }];
274
+ readonly stateMutability: "view";
275
+ }, {
276
+ readonly type: "function";
277
+ readonly inputs: readonly [];
278
+ readonly name: "MANAGER_ROLE";
279
+ readonly outputs: readonly [{
280
+ readonly name: "";
281
+ readonly internalType: "uint256";
282
+ readonly type: "uint256";
283
+ }];
284
+ readonly stateMutability: "view";
285
+ }, {
286
+ readonly type: "function";
287
+ readonly inputs: readonly [{
288
+ readonly name: "data_";
289
+ readonly internalType: "bytes";
290
+ readonly type: "bytes";
291
+ }];
292
+ readonly name: "allocate";
293
+ readonly outputs: readonly [{
294
+ readonly name: "";
295
+ readonly internalType: "bool";
296
+ readonly type: "bool";
297
+ }];
298
+ readonly stateMutability: "payable";
299
+ }, {
300
+ readonly type: "function";
301
+ readonly inputs: readonly [{
302
+ readonly name: "asset_";
303
+ readonly internalType: "address";
304
+ readonly type: "address";
305
+ }];
306
+ readonly name: "available";
307
+ readonly outputs: readonly [{
308
+ readonly name: "";
309
+ readonly internalType: "uint256";
310
+ readonly type: "uint256";
311
+ }];
312
+ readonly stateMutability: "view";
313
+ }, {
314
+ readonly type: "function";
315
+ readonly inputs: readonly [{
316
+ readonly name: "asset_";
317
+ readonly internalType: "address";
318
+ readonly type: "address";
319
+ }, {
320
+ readonly name: "tokenId_";
321
+ readonly internalType: "uint256";
322
+ readonly type: "uint256";
323
+ }];
324
+ readonly name: "available";
325
+ readonly outputs: readonly [{
326
+ readonly name: "";
327
+ readonly internalType: "uint256";
328
+ readonly type: "uint256";
329
+ }];
330
+ readonly stateMutability: "view";
331
+ }, {
332
+ readonly type: "function";
333
+ readonly inputs: readonly [];
334
+ readonly name: "cancelOwnershipHandover";
335
+ readonly outputs: readonly [];
336
+ readonly stateMutability: "payable";
337
+ }, {
338
+ readonly type: "function";
339
+ readonly inputs: readonly [{
340
+ readonly name: "data_";
341
+ readonly internalType: "bytes";
342
+ readonly type: "bytes";
343
+ }];
344
+ readonly name: "clawback";
345
+ readonly outputs: readonly [{
346
+ readonly name: "";
347
+ readonly internalType: "bool";
348
+ readonly type: "bool";
349
+ }];
350
+ readonly stateMutability: "nonpayable";
351
+ }, {
352
+ readonly type: "function";
353
+ readonly inputs: readonly [{
354
+ readonly name: "pendingOwner";
355
+ readonly internalType: "address";
356
+ readonly type: "address";
357
+ }];
358
+ readonly name: "completeOwnershipHandover";
359
+ readonly outputs: readonly [];
360
+ readonly stateMutability: "payable";
361
+ }, {
362
+ readonly type: "function";
363
+ readonly inputs: readonly [{
364
+ readonly name: "data_";
365
+ readonly internalType: "bytes";
366
+ readonly type: "bytes";
367
+ }];
368
+ readonly name: "disburse";
369
+ readonly outputs: readonly [{
370
+ readonly name: "";
371
+ readonly internalType: "bool";
372
+ readonly type: "bool";
373
+ }];
374
+ readonly stateMutability: "nonpayable";
375
+ }, {
376
+ readonly type: "function";
377
+ readonly inputs: readonly [{
378
+ readonly name: "data_";
379
+ readonly internalType: "bytes[]";
380
+ readonly type: "bytes[]";
381
+ }];
382
+ readonly name: "disburseBatch";
383
+ readonly outputs: readonly [{
384
+ readonly name: "";
385
+ readonly internalType: "bool";
386
+ readonly type: "bool";
387
+ }];
388
+ readonly stateMutability: "nonpayable";
389
+ }, {
390
+ readonly type: "function";
391
+ readonly inputs: readonly [{
392
+ readonly name: "asset_";
393
+ readonly internalType: "address";
394
+ readonly type: "address";
395
+ }];
396
+ readonly name: "distributed";
397
+ readonly outputs: readonly [{
398
+ readonly name: "";
399
+ readonly internalType: "uint256";
400
+ readonly type: "uint256";
401
+ }];
402
+ readonly stateMutability: "view";
403
+ }, {
404
+ readonly type: "function";
405
+ readonly inputs: readonly [{
406
+ readonly name: "asset_";
407
+ readonly internalType: "address";
408
+ readonly type: "address";
409
+ }, {
410
+ readonly name: "tokenId_";
411
+ readonly internalType: "uint256";
412
+ readonly type: "uint256";
413
+ }];
414
+ readonly name: "distributed";
415
+ readonly outputs: readonly [{
416
+ readonly name: "";
417
+ readonly internalType: "uint256";
418
+ readonly type: "uint256";
419
+ }];
420
+ readonly stateMutability: "view";
421
+ }, {
422
+ readonly type: "function";
423
+ readonly inputs: readonly [];
424
+ readonly name: "getComponentInterface";
425
+ readonly outputs: readonly [{
426
+ readonly name: "";
427
+ readonly internalType: "bytes4";
428
+ readonly type: "bytes4";
429
+ }];
430
+ readonly stateMutability: "pure";
431
+ }, {
432
+ readonly type: "function";
433
+ readonly inputs: readonly [{
434
+ readonly name: "user";
435
+ readonly internalType: "address";
436
+ readonly type: "address";
437
+ }, {
438
+ readonly name: "roles";
439
+ readonly internalType: "uint256";
440
+ readonly type: "uint256";
441
+ }];
442
+ readonly name: "grantRoles";
443
+ readonly outputs: readonly [];
444
+ readonly stateMutability: "payable";
445
+ }, {
446
+ readonly type: "function";
447
+ readonly inputs: readonly [{
448
+ readonly name: "accounts_";
449
+ readonly internalType: "address[]";
450
+ readonly type: "address[]";
451
+ }, {
452
+ readonly name: "roles_";
453
+ readonly internalType: "uint256[]";
454
+ readonly type: "uint256[]";
455
+ }];
456
+ readonly name: "grantRoles";
457
+ readonly outputs: readonly [];
458
+ readonly stateMutability: "nonpayable";
459
+ }, {
460
+ readonly type: "function";
461
+ readonly inputs: readonly [{
462
+ readonly name: "user";
463
+ readonly internalType: "address";
464
+ readonly type: "address";
465
+ }, {
466
+ readonly name: "roles";
467
+ readonly internalType: "uint256";
468
+ readonly type: "uint256";
469
+ }];
470
+ readonly name: "hasAllRoles";
471
+ readonly outputs: readonly [{
472
+ readonly name: "";
473
+ readonly internalType: "bool";
474
+ readonly type: "bool";
475
+ }];
476
+ readonly stateMutability: "view";
477
+ }, {
478
+ readonly type: "function";
479
+ readonly inputs: readonly [{
480
+ readonly name: "user";
481
+ readonly internalType: "address";
482
+ readonly type: "address";
483
+ }, {
484
+ readonly name: "roles";
485
+ readonly internalType: "uint256";
486
+ readonly type: "uint256";
487
+ }];
488
+ readonly name: "hasAnyRole";
489
+ readonly outputs: readonly [{
490
+ readonly name: "";
491
+ readonly internalType: "bool";
492
+ readonly type: "bool";
493
+ }];
494
+ readonly stateMutability: "view";
495
+ }, {
496
+ readonly type: "function";
497
+ readonly inputs: readonly [{
498
+ readonly name: "data_";
499
+ readonly internalType: "bytes";
500
+ readonly type: "bytes";
501
+ }];
502
+ readonly name: "initialize";
503
+ readonly outputs: readonly [];
504
+ readonly stateMutability: "nonpayable";
505
+ }, {
506
+ readonly type: "function";
507
+ readonly inputs: readonly [{
508
+ readonly name: "account_";
509
+ readonly internalType: "address";
510
+ readonly type: "address";
511
+ }];
512
+ readonly name: "isAuthorized";
513
+ readonly outputs: readonly [{
514
+ readonly name: "";
515
+ readonly internalType: "bool";
516
+ readonly type: "bool";
517
+ }];
518
+ readonly stateMutability: "view";
519
+ }, {
520
+ readonly type: "function";
521
+ readonly inputs: readonly [{
522
+ readonly name: "";
523
+ readonly internalType: "address";
524
+ readonly type: "address";
525
+ }, {
526
+ readonly name: "";
527
+ readonly internalType: "address";
528
+ readonly type: "address";
529
+ }, {
530
+ readonly name: "";
531
+ readonly internalType: "uint256[]";
532
+ readonly type: "uint256[]";
533
+ }, {
534
+ readonly name: "";
535
+ readonly internalType: "uint256[]";
536
+ readonly type: "uint256[]";
537
+ }, {
538
+ readonly name: "";
539
+ readonly internalType: "bytes";
540
+ readonly type: "bytes";
541
+ }];
542
+ readonly name: "onERC1155BatchReceived";
543
+ readonly outputs: readonly [{
544
+ readonly name: "";
545
+ readonly internalType: "bytes4";
546
+ readonly type: "bytes4";
547
+ }];
548
+ readonly stateMutability: "pure";
549
+ }, {
550
+ readonly type: "function";
551
+ readonly inputs: readonly [{
552
+ readonly name: "";
553
+ readonly internalType: "address";
554
+ readonly type: "address";
555
+ }, {
556
+ readonly name: "";
557
+ readonly internalType: "address";
558
+ readonly type: "address";
559
+ }, {
560
+ readonly name: "";
561
+ readonly internalType: "uint256";
562
+ readonly type: "uint256";
563
+ }, {
564
+ readonly name: "";
565
+ readonly internalType: "uint256";
566
+ readonly type: "uint256";
567
+ }, {
568
+ readonly name: "";
569
+ readonly internalType: "bytes";
570
+ readonly type: "bytes";
571
+ }];
572
+ readonly name: "onERC1155Received";
573
+ readonly outputs: readonly [{
574
+ readonly name: "";
575
+ readonly internalType: "bytes4";
576
+ readonly type: "bytes4";
577
+ }];
578
+ readonly stateMutability: "pure";
579
+ }, {
580
+ readonly type: "function";
581
+ readonly inputs: readonly [];
582
+ readonly name: "owner";
583
+ readonly outputs: readonly [{
584
+ readonly name: "result";
585
+ readonly internalType: "address";
586
+ readonly type: "address";
587
+ }];
588
+ readonly stateMutability: "view";
589
+ }, {
590
+ readonly type: "function";
591
+ readonly inputs: readonly [{
592
+ readonly name: "pendingOwner";
593
+ readonly internalType: "address";
594
+ readonly type: "address";
595
+ }];
596
+ readonly name: "ownershipHandoverExpiresAt";
597
+ readonly outputs: readonly [{
598
+ readonly name: "result";
599
+ readonly internalType: "uint256";
600
+ readonly type: "uint256";
601
+ }];
602
+ readonly stateMutability: "view";
603
+ }, {
604
+ readonly type: "function";
605
+ readonly inputs: readonly [{
606
+ readonly name: "";
607
+ readonly internalType: "bytes";
608
+ readonly type: "bytes";
609
+ }];
610
+ readonly name: "reconcile";
611
+ readonly outputs: readonly [{
612
+ readonly name: "";
613
+ readonly internalType: "uint256";
614
+ readonly type: "uint256";
615
+ }];
616
+ readonly stateMutability: "nonpayable";
617
+ }, {
618
+ readonly type: "function";
619
+ readonly inputs: readonly [];
620
+ readonly name: "renounceOwnership";
621
+ readonly outputs: readonly [];
622
+ readonly stateMutability: "payable";
623
+ }, {
624
+ readonly type: "function";
625
+ readonly inputs: readonly [{
626
+ readonly name: "roles";
627
+ readonly internalType: "uint256";
628
+ readonly type: "uint256";
629
+ }];
630
+ readonly name: "renounceRoles";
631
+ readonly outputs: readonly [];
632
+ readonly stateMutability: "payable";
633
+ }, {
634
+ readonly type: "function";
635
+ readonly inputs: readonly [];
636
+ readonly name: "requestOwnershipHandover";
637
+ readonly outputs: readonly [];
638
+ readonly stateMutability: "payable";
639
+ }, {
640
+ readonly type: "function";
641
+ readonly inputs: readonly [{
642
+ readonly name: "user";
643
+ readonly internalType: "address";
644
+ readonly type: "address";
645
+ }, {
646
+ readonly name: "roles";
647
+ readonly internalType: "uint256";
648
+ readonly type: "uint256";
649
+ }];
650
+ readonly name: "revokeRoles";
651
+ readonly outputs: readonly [];
652
+ readonly stateMutability: "payable";
653
+ }, {
654
+ readonly type: "function";
655
+ readonly inputs: readonly [{
656
+ readonly name: "accounts_";
657
+ readonly internalType: "address[]";
658
+ readonly type: "address[]";
659
+ }, {
660
+ readonly name: "roles_";
661
+ readonly internalType: "uint256[]";
662
+ readonly type: "uint256[]";
663
+ }];
664
+ readonly name: "revokeRoles";
665
+ readonly outputs: readonly [];
666
+ readonly stateMutability: "nonpayable";
667
+ }, {
668
+ readonly type: "function";
669
+ readonly inputs: readonly [{
670
+ readonly name: "user";
671
+ readonly internalType: "address";
672
+ readonly type: "address";
673
+ }];
674
+ readonly name: "rolesOf";
675
+ readonly outputs: readonly [{
676
+ readonly name: "roles";
677
+ readonly internalType: "uint256";
678
+ readonly type: "uint256";
679
+ }];
680
+ readonly stateMutability: "view";
681
+ }, {
682
+ readonly type: "function";
683
+ readonly inputs: readonly [{
684
+ readonly name: "accounts_";
685
+ readonly internalType: "address[]";
686
+ readonly type: "address[]";
687
+ }, {
688
+ readonly name: "authorized_";
689
+ readonly internalType: "bool[]";
690
+ readonly type: "bool[]";
691
+ }];
692
+ readonly name: "setAuthorized";
693
+ readonly outputs: readonly [];
694
+ readonly stateMutability: "nonpayable";
695
+ }, {
696
+ readonly type: "function";
697
+ readonly inputs: readonly [{
698
+ readonly name: "interfaceId";
699
+ readonly internalType: "bytes4";
700
+ readonly type: "bytes4";
701
+ }];
702
+ readonly name: "supportsInterface";
703
+ readonly outputs: readonly [{
704
+ readonly name: "";
705
+ readonly internalType: "bool";
706
+ readonly type: "bool";
707
+ }];
708
+ readonly stateMutability: "view";
709
+ }, {
710
+ readonly type: "function";
711
+ readonly inputs: readonly [{
712
+ readonly name: "asset_";
713
+ readonly internalType: "address";
714
+ readonly type: "address";
715
+ }];
716
+ readonly name: "total";
717
+ readonly outputs: readonly [{
718
+ readonly name: "";
719
+ readonly internalType: "uint256";
720
+ readonly type: "uint256";
721
+ }];
722
+ readonly stateMutability: "view";
723
+ }, {
724
+ readonly type: "function";
725
+ readonly inputs: readonly [{
726
+ readonly name: "asset_";
727
+ readonly internalType: "address";
728
+ readonly type: "address";
729
+ }, {
730
+ readonly name: "tokenId_";
731
+ readonly internalType: "uint256";
732
+ readonly type: "uint256";
733
+ }];
734
+ readonly name: "total";
735
+ readonly outputs: readonly [{
736
+ readonly name: "";
737
+ readonly internalType: "uint256";
738
+ readonly type: "uint256";
739
+ }];
740
+ readonly stateMutability: "view";
741
+ }, {
742
+ readonly type: "function";
743
+ readonly inputs: readonly [{
744
+ readonly name: "newOwner";
745
+ readonly internalType: "address";
746
+ readonly type: "address";
747
+ }];
748
+ readonly name: "transferOwnership";
749
+ readonly outputs: readonly [];
750
+ readonly stateMutability: "payable";
751
+ }, {
752
+ readonly type: "receive";
753
+ readonly stateMutability: "payable";
754
+ }];
755
+ /**
756
+ * @inheritdoc
757
+ *
758
+ * @public
759
+ * @static
760
+ * @type {Address}
761
+ */
762
+ static base: Address;
763
+ /**
764
+ * @inheritdoc
765
+ *
766
+ * @public
767
+ * @static
768
+ * @type {RegistryType}
769
+ */
770
+ static registryType: RegistryType;
771
+ /**
772
+ * Allocates assets to the budget.
773
+ * The caller must have already approved the contract to transfer the asset
774
+ * If the asset transfer fails, the allocation will revert
775
+ *
776
+ * @public
777
+ * @async
778
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
779
+ * @param {?WriteParams<typeof managedBudgetAbi, 'allocate'>} [params]
780
+ * @returns {Promise<boolean>} - True if the allocation was successful
781
+ */
782
+ allocate(transfer: FungibleTransferPayload | ERC1155TransferPayload, params?: WriteParams<typeof managedBudgetAbi, 'allocate'>): Promise<boolean>;
783
+ /**
784
+ * Allocates assets to the budget.
785
+ * The caller must have already approved the contract to transfer the asset
786
+ * If the asset transfer fails, the allocation will revert
787
+ *
788
+ * @public
789
+ * @async
790
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
791
+ * @param {?WriteParams<typeof managedBudgetAbi, 'allocate'>} [params]
792
+ * @returns {Promise<boolean>} - True if the allocation was successful
793
+ */
794
+ allocateRaw(transfer: FungibleTransferPayload | ERC1155TransferPayload, params?: WriteParams<typeof managedBudgetAbi, 'allocate'>): Promise<{
795
+ hash: `0x${string}`;
796
+ result: boolean;
797
+ }>;
798
+ /**
799
+ * Clawbacks assets from the budget.
800
+ * Only the owner can directly clawback assets from the budget
801
+ * If the amount is zero, the entire balance of the asset will be transferred to the receiver
802
+ * If the asset transfer fails, the reclamation will revert
803
+ *
804
+ * @public
805
+ * @async
806
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
807
+ * @param {?WriteParams<typeof managedBudgetAbi, 'clawback'>} [params]
808
+ * @returns {Promise<boolean>} - True if the request was successful
809
+ */
810
+ clawback(transfer: FungibleTransferPayload | ERC1155TransferPayload, params?: WriteParams<typeof managedBudgetAbi, 'clawback'>): Promise<boolean>;
811
+ /**
812
+ * Clawbacks assets from the budget.
813
+ * Only the owner can directly clawback assets from the budget
814
+ * If the amount is zero, the entire balance of the asset will be transferred to the receiver
815
+ * If the asset transfer fails, the reclamation will revert
816
+ *
817
+ * @public
818
+ * @async
819
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
820
+ * @param {?WriteParams<typeof managedBudgetAbi, 'clawback'>} [params]
821
+ * @returns {Promise<boolean>} - True if the request was successful
822
+ */
823
+ clawbackRaw(transfer: FungibleTransferPayload | ERC1155TransferPayload, params?: WriteParams<typeof managedBudgetAbi, 'clawback'>): Promise<{
824
+ hash: `0x${string}`;
825
+ result: boolean;
826
+ }>;
827
+ /**
828
+ * Disburses assets from the budget to a single recipient
829
+ * If the asset transfer fails, the disbursement will revert
830
+ *
831
+ * @public
832
+ * @async
833
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
834
+ * @param {?WriteParams<typeof managedBudgetAbi, 'disburse'>} [params]
835
+ * @returns {Promise<boolean>} - True if the disbursement was successful
836
+ */
837
+ disburse(transfer: FungibleTransferPayload | ERC1155TransferPayload, params?: WriteParams<typeof managedBudgetAbi, 'disburse'>): Promise<boolean>;
838
+ /**
839
+ * Disburses assets from the budget to a single recipient
840
+ * If the asset transfer fails, the disbursement will revert
841
+ *
842
+ * @public
843
+ * @async
844
+ * @param {(FungibleTransferPayload | ERC1155TransferPayload)} transfer
845
+ * @param {?WriteParams<typeof managedBudgetAbi, 'disburse'>} [params]
846
+ * @returns {Promise<boolean>} - True if the disbursement was successful
847
+ */
848
+ disburseRaw(transfer: FungibleTransferPayload | ERC1155TransferPayload, params?: WriteParams<typeof managedBudgetAbi, 'disburse'>): Promise<{
849
+ hash: `0x${string}`;
850
+ result: boolean;
851
+ }>;
852
+ /**
853
+ * Disburses assets from the budget to multiple recipients
854
+ *
855
+ * @public
856
+ * @async
857
+ * @param {Array<FungibleTransferPayload | ERC1155TransferPayload>} transfers
858
+ * @param {?WriteParams<typeof managedBudgetAbi, 'disburseBatch'>} [params]
859
+ * @returns {Promise<boolean>} - True if all disbursements were successful
860
+ */
861
+ disburseBatch(transfers: Array<FungibleTransferPayload | ERC1155TransferPayload>, params?: WriteParams<typeof managedBudgetAbi, 'disburseBatch'>): Promise<boolean>;
862
+ /**
863
+ * Disburses assets from the budget to multiple recipients
864
+ *
865
+ * @public
866
+ * @async
867
+ * @param {Array<FungibleTransferPayload | ERC1155TransferPayload>} transfers
868
+ * @param {?WriteParams<typeof managedBudgetAbi, 'disburseBatch'>} [params]
869
+ * @returns {Promise<boolean>} - True if all disbursements were successful
870
+ */
871
+ disburseBatchRaw(transfers: Array<FungibleTransferPayload | ERC1155TransferPayload>, params?: WriteParams<typeof managedBudgetAbi, 'disburseBatch'>): Promise<{
872
+ hash: `0x${string}`;
873
+ result: boolean;
874
+ }>;
875
+ /**
876
+ * Set the authorized status of the given accounts
877
+ * The mechanism for managing authorization is left to the implementing contract
878
+ *
879
+ * @public
880
+ * @async
881
+ * @param {Address[]} addresses - The accounts to authorize or deauthorize
882
+ * @param {boolean[]} allowed - The authorization status for the given accounts
883
+ * @param {?WriteParams<typeof managedBudgetAbi, 'setAuthorized'>} [params]
884
+ * @returns {Promise<void>}
885
+ */
886
+ setAuthorized(addresses: Address[], allowed: boolean[], params?: WriteParams<typeof managedBudgetAbi, 'setAuthorized'>): Promise<void>;
887
+ /**
888
+ * Set the authorized status of the given accounts
889
+ * The mechanism for managing authorization is left to the implementing contract
890
+ *
891
+ * @public
892
+ * @async
893
+ * @param {Address[]} addresses - The accounts to authorize or deauthorize
894
+ * @param {boolean[]} allowed - The authorization status for the given accounts
895
+ * @param {?WriteParams<typeof managedBudgetAbi, 'setAuthorized'>} [params]
896
+ * @returns {Promise<void>}
897
+ */
898
+ setAuthorizedRaw(addresses: Address[], allowed: boolean[], params?: WriteParams<typeof managedBudgetAbi, 'setAuthorized'>): Promise<{
899
+ hash: `0x${string}`;
900
+ result: void;
901
+ }>;
902
+ /**
903
+ * Grant many accounts permissions on the budget.
904
+ *
905
+ * @example
906
+ * ```ts
907
+ * await budget.grantRoles(['0xfoo', '0xbar], [ManagedBudgetRoles.MANAGER, ManagedBudgetRoles.ADMIN])
908
+ * ```
909
+ * @public
910
+ * @async
911
+ * @param {Address[]} addresses
912
+ * @param {bigint[]} roles
913
+ * @param {?WriteParams<typeof managedBudgetAbi, 'grantRoles'>} [params]
914
+ * @returns {unknown}
915
+ */
916
+ grantRoles(addresses: Address[], roles: bigint[], params?: WriteParams<typeof managedBudgetAbi, 'grantRoles'>): Promise<never>;
917
+ /**
918
+ * Grant many accounts permissions on the budget.
919
+ *
920
+ * @example
921
+ * ```ts
922
+ * await budget.grantRoles(['0xfoo', '0xbar], [ManagedBudgetRoles.MANAGER, ManagedBudgetRoles.ADMIN])
923
+ *
924
+ * @public
925
+ * @async
926
+ * @param {Address[]} addresses
927
+ * @param {bigint[]} roles
928
+ * @param {?WriteParams<typeof managedBudgetAbi, 'grantRoles'>} [params]
929
+ * @returns {unknown}
930
+ */
931
+ grantRolesRaw(addresses: Address[], roles: bigint[], params?: WriteParams<typeof managedBudgetAbi, 'grantRoles'>): Promise<{
932
+ hash: `0x${string}`;
933
+ result: never;
934
+ }>;
935
+ /**
936
+ * Revoke many accounts' permissions on the budget.
937
+ *
938
+ * @example
939
+ * ```ts
940
+ * await budget.revokeRoles(['0xfoo', '0xbar], [ManagedBudgetRoles.MANAGER, ManagedBudgetRoles.ADMIN])
941
+ *
942
+ * @public
943
+ * @async
944
+ * @param {Address[]} addresses
945
+ * @param {bigint[]} roles
946
+ * @param {?WriteParams<typeof managedBudgetAbi, 'revokeRoles'>} [params]
947
+ * @returns {unknown}
948
+ */
949
+ revokeRoles(addresses: Address[], roles: bigint[], params?: WriteParams<typeof managedBudgetAbi, 'revokeRoles'>): Promise<never>;
950
+ /**
951
+ * Revoke many accounts' permissions on the budget.
952
+ *
953
+ * @example
954
+ * ```ts
955
+ * await budget.revokeRoles(['0xfoo', '0xbar], [ManagedBudgetRoles.MANAGER, ManagedBudgetRoles.ADMIN])
956
+ * @public
957
+ * @async
958
+ * @param {Address[]} addresses
959
+ * @param {bigint[]} roles
960
+ * @param {?WriteParams<typeof managedBudgetAbi, 'revokeRoles'>} [params]
961
+ * @returns {unknown}
962
+ */
963
+ revokeRolesRaw(addresses: Address[], roles: bigint[], params?: WriteParams<typeof managedBudgetAbi, 'revokeRoles'>): Promise<{
964
+ hash: `0x${string}`;
965
+ result: never;
966
+ }>;
967
+ /**
968
+ * Return an array of the roles assigned to the given account.
969
+ * @example
970
+ * ```ts
971
+ * (await budget.rolesOf(0xfoo)).includes(ManagedBudgetRoles.ADMIN)
972
+ * @public
973
+ * @param {Address} account
974
+ * @param {?ReadParams<typeof managedBudgetAbi, 'rolesOf'>} [params]
975
+ * @returns {Promise<Array<bigint>>}
976
+ */
977
+ rolesOf(account: Address, params?: ReadParams<typeof managedBudgetAbi, 'rolesOf'>): Promise<(2n | 1n)[]>;
978
+ /**
979
+ * Returns whether given account has any of the provided roles bitmap.
980
+ *
981
+ * @example
982
+ * ```ts
983
+ * await budget.hasAnyRole(0xfoo, ManagedBudgetRoles.ADMIN | ManagedBudgetRoles.MANAGER)
984
+ * @public
985
+ * @param {Address} account
986
+ * @param {bigint} roles
987
+ * @param {?ReadParams<typeof managedBudgetAbi, 'hasAnyRole'>} [params]
988
+ * @returns {Promise<boolean>}
989
+ */
990
+ hasAnyRole(account: Address, roles: bigint, params?: ReadParams<typeof managedBudgetAbi, 'hasAnyRole'>): Promise<boolean>;
991
+ /**
992
+ * Returns whether given account has all of the provided roles bitmap.
993
+ *
994
+ * @example
995
+ * ```ts
996
+ * await budget.hasAllRoles(0xfoo, ManagedBudgetRoles.ADMIN & ManagedBudgetRoles.MANAGER)
997
+ *
998
+ * @public
999
+ * @param {Address} account
1000
+ * @param {bigint} roles
1001
+ * @param {?ReadParams<typeof managedBudgetAbi, 'hasAllRoles'>} [params]
1002
+ * @returns {*}
1003
+ */
1004
+ hasAllRoles(account: Address, roles: bigint, params?: ReadParams<typeof managedBudgetAbi, 'hasAllRoles'>): Promise<boolean>;
1005
+ /**
1006
+ * Check if the given account is authorized to use the budget
1007
+ *
1008
+ * @public
1009
+ * @param {Address} account
1010
+ * @param {?ReadParams<typeof managedBudgetAbi, 'isAuthorized'>} [params]
1011
+ * @returns {Promise<boolean>} - True if the account is authorized
1012
+ */
1013
+ isAuthorized(account: Address, params?: ReadParams<typeof managedBudgetAbi, 'isAuthorized'>): Promise<boolean>;
1014
+ /**
1015
+ * Get the owner of the budget
1016
+ *
1017
+ * @public
1018
+ * @param {?ReadParams<typeof managedBudgetAbi, 'owner'>} [params]
1019
+ * @returns {Promise<Address>}
1020
+ */
1021
+ owner(params?: ReadParams<typeof managedBudgetAbi, 'owner'>): Promise<`0x${string}`>;
1022
+ /**
1023
+ * Get the total amount of assets allocated to the budget, including any that have been distributed
1024
+ * If a tokenId is provided, get the total amount of ERC1155 assets allocated to the budget, including any that have been distributed
1025
+ *
1026
+ * @public
1027
+ * @param {Address} asset - The address of the asset
1028
+ * @param {?(bigint | undefined)} [tokenId] - The ID of the token
1029
+ * @param {?ReadParams<typeof managedBudgetAbi, 'total'>} [params]
1030
+ * @returns {Promise<bigint>} - The total amount of assets
1031
+ */
1032
+ total(asset: Address, tokenId?: bigint | undefined, params?: ReadParams<typeof managedBudgetAbi, 'total'>): Promise<never>;
1033
+ /**
1034
+ * Get the amount of assets available for distribution from the budget.
1035
+ * If a tokenId is provided, get the amount of ERC1155 assets available for distribution from the budget
1036
+ *
1037
+ * @public
1038
+ * @param {Address} asset
1039
+ * @param {?(bigint | undefined)} [tokenId]
1040
+ * @param {?ReadParams<typeof managedBudgetAbi, 'available'>} [params]
1041
+ * @returns {Promise<bigint>} - The amount of assets available
1042
+ */
1043
+ available(asset: Address, tokenId?: bigint | undefined, params?: ReadParams<typeof managedBudgetAbi, 'available'>): Promise<never>;
1044
+ /**
1045
+ * Get the amount of assets that have been distributed from the budget.
1046
+ * If a tokenId is provided, get the amount of ERC1155 assets that have been distributed from the budget
1047
+ *
1048
+ * @public
1049
+ * @param {Address} asset
1050
+ * @param {?(bigint | undefined)} [tokenId]
1051
+ * @param {?ReadParams<typeof managedBudgetAbi, 'distributed'>} [params]
1052
+ * @returns {Promise<bigint>} - The amount of assets distributed
1053
+ */
1054
+ distributed(asset: Address, tokenId?: bigint | undefined, params?: ReadParams<typeof managedBudgetAbi, 'distributed'>): Promise<never>;
1055
+ /**
1056
+ * @inheritdoc
1057
+ *
1058
+ * @public
1059
+ * @param {?ManagedBudgetPayload} [_payload]
1060
+ * @param {?DeployableOptions} [_options]
1061
+ * @returns {GenericDeployableParams}
1062
+ */
1063
+ buildParameters(_payload?: ManagedBudgetPayload, _options?: DeployableOptions): GenericDeployableParams;
1064
+ }
1065
+ //# sourceMappingURL=ManagedBudget.d.ts.map