@boostxyz/sdk 5.0.0 → 5.1.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.
Files changed (126) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +5 -5
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts +18 -0
  6. package/dist/Actions/EventAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.js +201 -132
  8. package/dist/Actions/EventAction.js.map +1 -1
  9. package/dist/AllowLists/AllowList.cjs +1 -1
  10. package/dist/AllowLists/AllowList.js +3 -3
  11. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  12. package/dist/AllowLists/SimpleAllowList.js +8 -8
  13. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  14. package/dist/AllowLists/SimpleDenyList.js +3 -3
  15. package/dist/Auth/PassthroughAuth.cjs +1 -1
  16. package/dist/Auth/PassthroughAuth.js +1 -1
  17. package/dist/BoostCore.cjs +2 -2
  18. package/dist/BoostCore.cjs.map +1 -1
  19. package/dist/BoostCore.d.ts +14 -0
  20. package/dist/BoostCore.d.ts.map +1 -1
  21. package/dist/BoostCore.js +94 -75
  22. package/dist/BoostCore.js.map +1 -1
  23. package/dist/BoostRegistry.cjs +1 -1
  24. package/dist/BoostRegistry.js +6 -6
  25. package/dist/{Budget-fHCvlPfB.js → Budget-CTxrE06r.js} +53 -53
  26. package/dist/{Budget-fHCvlPfB.js.map → Budget-CTxrE06r.js.map} +1 -1
  27. package/dist/{Budget-Cnyh81n5.cjs → Budget-Cui2BUr4.cjs} +2 -2
  28. package/dist/{Budget-Cnyh81n5.cjs.map → Budget-Cui2BUr4.cjs.map} +1 -1
  29. package/dist/Budgets/Budget.cjs +1 -1
  30. package/dist/Budgets/Budget.js +3 -3
  31. package/dist/Budgets/ManagedBudget.cjs +1 -1
  32. package/dist/Budgets/ManagedBudget.js +29 -29
  33. package/dist/Deployable/DeployableTarget.cjs +1 -1
  34. package/dist/Deployable/DeployableTarget.js +1 -1
  35. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  36. package/dist/Deployable/DeployableTargetWithRBAC.js +15 -15
  37. package/dist/Incentive-AWwdbmix.cjs +2 -0
  38. package/dist/Incentive-AWwdbmix.cjs.map +1 -0
  39. package/dist/Incentive-CsFJZxYl.js +901 -0
  40. package/dist/Incentive-CsFJZxYl.js.map +1 -0
  41. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  42. package/dist/Incentives/AllowListIncentive.js +11 -11
  43. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  44. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  45. package/dist/Incentives/CGDAIncentive.d.ts +1 -1
  46. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  47. package/dist/Incentives/CGDAIncentive.js +24 -22
  48. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  49. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  50. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  51. package/dist/Incentives/ERC20Incentive.js +19 -19
  52. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  53. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +1035 -0
  54. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -0
  55. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  56. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  57. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +19 -19
  58. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  59. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  60. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  61. package/dist/Incentives/ERC20VariableIncentive.d.ts +1 -1
  62. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  63. package/dist/Incentives/ERC20VariableIncentive.js +25 -23
  64. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  65. package/dist/Incentives/Incentive.cjs +1 -1
  66. package/dist/Incentives/Incentive.d.ts +6 -5
  67. package/dist/Incentives/Incentive.d.ts.map +1 -1
  68. package/dist/Incentives/Incentive.js +17 -16
  69. package/dist/Incentives/PointsIncentive.cjs +1 -1
  70. package/dist/Incentives/PointsIncentive.js +8 -8
  71. package/dist/{SimpleDenyList-CgQvS1ek.cjs → SimpleDenyList-DQT0Fj3v.cjs} +2 -2
  72. package/dist/{SimpleDenyList-CgQvS1ek.cjs.map → SimpleDenyList-DQT0Fj3v.cjs.map} +1 -1
  73. package/dist/{SimpleDenyList-GZlSeh2G.js → SimpleDenyList-kcqV-01w.js} +12 -12
  74. package/dist/{SimpleDenyList-GZlSeh2G.js.map → SimpleDenyList-kcqV-01w.js.map} +1 -1
  75. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  76. package/dist/Validators/LimitedSignerValidator.js +18 -18
  77. package/dist/Validators/SignerValidator.cjs +1 -1
  78. package/dist/Validators/SignerValidator.js +16 -16
  79. package/dist/Validators/Validator.cjs +1 -1
  80. package/dist/Validators/Validator.js +4 -4
  81. package/dist/componentInterfaces-D7r9xJmt.cjs +2 -0
  82. package/dist/componentInterfaces-D7r9xJmt.cjs.map +1 -0
  83. package/dist/componentInterfaces-PR3ijhgZ.js +18 -0
  84. package/dist/componentInterfaces-PR3ijhgZ.js.map +1 -0
  85. package/dist/{deployments-CMdsItcq.cjs → deployments-BNFI9vnc.cjs} +2 -2
  86. package/dist/deployments-BNFI9vnc.cjs.map +1 -0
  87. package/dist/{deployments-DzhmI-zL.js → deployments-D68FgefY.js} +31 -31
  88. package/dist/deployments-D68FgefY.js.map +1 -0
  89. package/dist/deployments.json +20 -15
  90. package/dist/generated-CRD9XfOT.cjs +3 -0
  91. package/dist/generated-CRD9XfOT.cjs.map +1 -0
  92. package/dist/{generated-Hbd0NIf9.js → generated-ClbO_ULI.js} +1274 -709
  93. package/dist/generated-ClbO_ULI.js.map +1 -0
  94. package/dist/index.cjs +1 -1
  95. package/dist/index.d.ts +1 -0
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +133 -129
  98. package/dist/utils.cjs +1 -1
  99. package/dist/utils.cjs.map +1 -1
  100. package/dist/utils.d.ts +7 -1
  101. package/dist/utils.d.ts.map +1 -1
  102. package/dist/utils.js +1121 -41
  103. package/dist/utils.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/Actions/EventAction.ts +85 -1
  106. package/src/BoostCore.ts +27 -0
  107. package/src/Incentives/CGDAIncentive.ts +3 -1
  108. package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.test.ts +315 -0
  109. package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +728 -0
  110. package/src/Incentives/ERC20VariableIncentive.ts +3 -1
  111. package/src/Incentives/Incentive.ts +8 -2
  112. package/src/index.ts +1 -0
  113. package/src/utils.ts +10 -0
  114. package/dist/Incentive-M45PaQsT.js +0 -397
  115. package/dist/Incentive-M45PaQsT.js.map +0 -1
  116. package/dist/Incentive-axLU7ndr.cjs +0 -2
  117. package/dist/Incentive-axLU7ndr.cjs.map +0 -1
  118. package/dist/componentInterfaces-Bt-4sNB5.cjs +0 -2
  119. package/dist/componentInterfaces-Bt-4sNB5.cjs.map +0 -1
  120. package/dist/componentInterfaces-C4uAYjSo.js +0 -16
  121. package/dist/componentInterfaces-C4uAYjSo.js.map +0 -1
  122. package/dist/deployments-CMdsItcq.cjs.map +0 -1
  123. package/dist/deployments-DzhmI-zL.js.map +0 -1
  124. package/dist/generated-CNkDfjzI.cjs +0 -3
  125. package/dist/generated-CNkDfjzI.cjs.map +0 -1
  126. package/dist/generated-Hbd0NIf9.js.map +0 -1
package/dist/utils.js CHANGED
@@ -1,46 +1,1125 @@
1
- import { waitForTransactionReceipt as A, getChainId as u, getAccount as e, readContract as f } from "@wagmi/core";
2
- import { slice as N, isHex as E, keccak256 as i, toHex as I } from "viem";
3
- import { NoContractAddressUponReceiptError as m, InvalidProtocolChainIdError as w } from "./errors.js";
4
- var _ = /* @__PURE__ */ ((t) => (t[t.ACTION = 0] = "ACTION", t[t.ALLOW_LIST = 1] = "ALLOW_LIST", t[t.BUDGET = 2] = "BUDGET", t[t.INCENTIVE = 3] = "INCENTIVE", t[t.VALIDATOR = 4] = "VALIDATOR", t))(_ || {}), l = /* @__PURE__ */ ((t) => (t[t.ANY_ACTION_PARAM = 255] = "ANY_ACTION_PARAM", t[t.TX_SENDER_CLAIMANT = 255] = "TX_SENDER_CLAIMANT", t[t.GAS_REBATE_INCENTIVE = 255] = "GAS_REBATE_INCENTIVE", t))(l || {});
5
- function v(t) {
6
- return N(E(t) ? i(t) : i(I(t)), 0, 4);
1
+ import { waitForTransactionReceipt as u, getChainId as r, getAccount as p, readContract as y } from "@wagmi/core";
2
+ import { slice as x, isHex as c, keccak256 as a, toHex as b } from "viem";
3
+ import { NoContractAddressUponReceiptError as f, InvalidProtocolChainIdError as o } from "./errors.js";
4
+ const m = {
5
+ abi: {
6
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
7
+ name: "Transfer",
8
+ type: "event",
9
+ inputs: [
10
+ {
11
+ type: "address",
12
+ indexed: !0
13
+ },
14
+ {
15
+ type: "address",
16
+ indexed: !0
17
+ },
18
+ {
19
+ type: "uint256",
20
+ indexed: !0
21
+ }
22
+ ]
23
+ },
24
+ "Transfer(address indexed,address indexed,uint256 indexed)": {
25
+ name: "Transfer",
26
+ type: "event",
27
+ inputs: [
28
+ {
29
+ type: "address",
30
+ indexed: !0
31
+ },
32
+ {
33
+ type: "address",
34
+ indexed: !0
35
+ },
36
+ {
37
+ type: "uint256",
38
+ indexed: !0
39
+ }
40
+ ]
41
+ },
42
+ "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e": {
43
+ name: "Purchased",
44
+ type: "event",
45
+ inputs: [
46
+ {
47
+ type: "address",
48
+ indexed: !0
49
+ },
50
+ {
51
+ type: "address",
52
+ indexed: !0
53
+ },
54
+ {
55
+ type: "uint256",
56
+ indexed: !0
57
+ },
58
+ {
59
+ type: "uint256"
60
+ },
61
+ {
62
+ type: "uint256"
63
+ }
64
+ ]
65
+ },
66
+ "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": {
67
+ name: "Purchased",
68
+ type: "event",
69
+ inputs: [
70
+ {
71
+ type: "address",
72
+ indexed: !0
73
+ },
74
+ {
75
+ type: "address",
76
+ indexed: !0
77
+ },
78
+ {
79
+ type: "uint256",
80
+ indexed: !0
81
+ },
82
+ {
83
+ type: "uint256"
84
+ },
85
+ {
86
+ type: "uint256"
87
+ }
88
+ ]
89
+ },
90
+ "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27": {
91
+ name: "NameRegistered",
92
+ type: "event",
93
+ inputs: [
94
+ {
95
+ type: "string"
96
+ },
97
+ {
98
+ type: "bytes32",
99
+ indexed: !0
100
+ },
101
+ {
102
+ type: "address",
103
+ indexed: !0
104
+ },
105
+ {
106
+ type: "uint256"
107
+ },
108
+ {
109
+ type: "uint256"
110
+ },
111
+ {
112
+ type: "uint256"
113
+ }
114
+ ]
115
+ },
116
+ "NameRegistered(string,bytes32 indexed,address indexed,uint256,uint256,uint256)": {
117
+ name: "NameRegistered",
118
+ type: "event",
119
+ inputs: [
120
+ {
121
+ type: "string"
122
+ },
123
+ {
124
+ type: "bytes32",
125
+ indexed: !0
126
+ },
127
+ {
128
+ type: "address",
129
+ indexed: !0
130
+ },
131
+ {
132
+ type: "uint256"
133
+ },
134
+ {
135
+ type: "uint256"
136
+ },
137
+ {
138
+ type: "uint256"
139
+ }
140
+ ]
141
+ },
142
+ "0x0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa": {
143
+ name: "NameRegistered",
144
+ type: "event",
145
+ inputs: [
146
+ {
147
+ type: "string"
148
+ },
149
+ {
150
+ type: "bytes32",
151
+ indexed: !0
152
+ },
153
+ {
154
+ type: "address",
155
+ indexed: !0
156
+ },
157
+ {
158
+ type: "uint256"
159
+ }
160
+ ]
161
+ },
162
+ "NameRegistered(string,bytes32 indexed,address indexed,uint256)": {
163
+ name: "NameRegistered",
164
+ type: "event",
165
+ inputs: [
166
+ {
167
+ type: "string"
168
+ },
169
+ {
170
+ type: "bytes32",
171
+ indexed: !0
172
+ },
173
+ {
174
+ type: "address",
175
+ indexed: !0
176
+ },
177
+ {
178
+ type: "uint256"
179
+ }
180
+ ]
181
+ },
182
+ "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f": {
183
+ name: "DelegateChanged",
184
+ type: "event",
185
+ inputs: [
186
+ {
187
+ type: "address",
188
+ indexed: !0
189
+ },
190
+ {
191
+ type: "address",
192
+ indexed: !0
193
+ },
194
+ {
195
+ type: "address",
196
+ indexed: !0
197
+ }
198
+ ]
199
+ },
200
+ "DelegateChanged(address indexed,address indexed,address indexed)": {
201
+ name: "DelegateChanged",
202
+ type: "event",
203
+ inputs: [
204
+ {
205
+ type: "address",
206
+ indexed: !0
207
+ },
208
+ {
209
+ type: "address",
210
+ indexed: !0
211
+ },
212
+ {
213
+ type: "address",
214
+ indexed: !0
215
+ }
216
+ ]
217
+ },
218
+ "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0": {
219
+ name: "SwappedV3",
220
+ type: "event",
221
+ inputs: [
222
+ {
223
+ type: "bytes16"
224
+ },
225
+ {
226
+ type: "address"
227
+ },
228
+ {
229
+ type: "uint256"
230
+ },
231
+ {
232
+ type: "address"
233
+ },
234
+ {
235
+ type: "address",
236
+ indexed: !0
237
+ },
238
+ {
239
+ type: "address",
240
+ indexed: !0
241
+ },
242
+ {
243
+ type: "address",
244
+ indexed: !0
245
+ },
246
+ {
247
+ type: "uint256"
248
+ },
249
+ {
250
+ type: "uint256"
251
+ },
252
+ {
253
+ type: "uint256"
254
+ }
255
+ ]
256
+ },
257
+ "SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)": {
258
+ name: "SwappedV3",
259
+ type: "event",
260
+ inputs: [
261
+ {
262
+ type: "bytes16"
263
+ },
264
+ {
265
+ type: "address"
266
+ },
267
+ {
268
+ type: "uint256"
269
+ },
270
+ {
271
+ type: "address"
272
+ },
273
+ {
274
+ type: "address",
275
+ indexed: !0
276
+ },
277
+ {
278
+ type: "address",
279
+ indexed: !0
280
+ },
281
+ {
282
+ type: "address",
283
+ indexed: !0
284
+ },
285
+ {
286
+ type: "uint256"
287
+ },
288
+ {
289
+ type: "uint256"
290
+ },
291
+ {
292
+ type: "uint256"
293
+ }
294
+ ]
295
+ },
296
+ "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4": {
297
+ name: "VoteCast",
298
+ type: "event",
299
+ inputs: [
300
+ {
301
+ type: "address",
302
+ indexed: !0
303
+ },
304
+ {
305
+ type: "uint256"
306
+ },
307
+ {
308
+ type: "uint8"
309
+ },
310
+ {
311
+ type: "uint256"
312
+ },
313
+ {
314
+ type: "string"
315
+ }
316
+ ]
317
+ },
318
+ "VoteCast(address indexed,uint256,uint8,uint256,string)": {
319
+ name: "VoteCast",
320
+ type: "event",
321
+ inputs: [
322
+ {
323
+ type: "address",
324
+ indexed: !0
325
+ },
326
+ {
327
+ type: "uint256"
328
+ },
329
+ {
330
+ type: "uint8"
331
+ },
332
+ {
333
+ type: "uint256"
334
+ },
335
+ {
336
+ type: "string"
337
+ }
338
+ ]
339
+ },
340
+ "0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa": {
341
+ name: "Minted",
342
+ type: "event",
343
+ inputs: [
344
+ {
345
+ type: "uint8"
346
+ },
347
+ {
348
+ type: "address"
349
+ },
350
+ {
351
+ type: "uint256"
352
+ },
353
+ {
354
+ type: "uint256"
355
+ }
356
+ ]
357
+ },
358
+ "Minted(uint8,address,uint256,uint256)": {
359
+ name: "Minted",
360
+ type: "event",
361
+ inputs: [
362
+ {
363
+ type: "uint8"
364
+ },
365
+ {
366
+ type: "address"
367
+ },
368
+ {
369
+ type: "uint256"
370
+ },
371
+ {
372
+ type: "uint256"
373
+ }
374
+ ]
375
+ },
376
+ "0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888": {
377
+ name: "Minted",
378
+ type: "event",
379
+ inputs: [
380
+ {
381
+ type: "address",
382
+ indexed: !0
383
+ },
384
+ {
385
+ type: "uint8"
386
+ },
387
+ {
388
+ type: "uint8"
389
+ },
390
+ {
391
+ type: "address",
392
+ indexed: !0
393
+ },
394
+ {
395
+ type: "tuple",
396
+ components: [
397
+ {
398
+ type: "uint32"
399
+ },
400
+ {
401
+ type: "uint256"
402
+ },
403
+ {
404
+ type: "address"
405
+ },
406
+ {
407
+ type: "uint32"
408
+ },
409
+ {
410
+ type: "uint32"
411
+ },
412
+ {
413
+ type: "uint32"
414
+ },
415
+ {
416
+ type: "address"
417
+ },
418
+ {
419
+ type: "bool"
420
+ },
421
+ {
422
+ type: "uint256"
423
+ },
424
+ {
425
+ type: "uint256"
426
+ },
427
+ {
428
+ type: "uint256"
429
+ },
430
+ {
431
+ type: "uint256"
432
+ },
433
+ {
434
+ type: "uint256"
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ type: "uint256",
440
+ indexed: !0
441
+ }
442
+ ]
443
+ },
444
+ "Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)": {
445
+ name: "Minted",
446
+ type: "event",
447
+ inputs: [
448
+ {
449
+ type: "address",
450
+ indexed: !0
451
+ },
452
+ {
453
+ type: "uint8"
454
+ },
455
+ {
456
+ type: "uint8"
457
+ },
458
+ {
459
+ type: "address",
460
+ indexed: !0
461
+ },
462
+ {
463
+ type: "tuple",
464
+ components: [
465
+ {
466
+ type: "uint32"
467
+ },
468
+ {
469
+ type: "uint256"
470
+ },
471
+ {
472
+ type: "address"
473
+ },
474
+ {
475
+ type: "uint32"
476
+ },
477
+ {
478
+ type: "uint32"
479
+ },
480
+ {
481
+ type: "uint32"
482
+ },
483
+ {
484
+ type: "address"
485
+ },
486
+ {
487
+ type: "bool"
488
+ },
489
+ {
490
+ type: "uint256"
491
+ },
492
+ {
493
+ type: "uint256"
494
+ },
495
+ {
496
+ type: "uint256"
497
+ },
498
+ {
499
+ type: "uint256"
500
+ },
501
+ {
502
+ type: "uint256"
503
+ }
504
+ ]
505
+ },
506
+ {
507
+ type: "uint256",
508
+ indexed: !0
509
+ }
510
+ ]
511
+ },
512
+ "0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8": {
513
+ name: "ZoraTimedSaleStrategyRewards",
514
+ type: "event",
515
+ inputs: [
516
+ {
517
+ type: "address",
518
+ indexed: !0
519
+ },
520
+ {
521
+ type: "uint256",
522
+ indexed: !0
523
+ },
524
+ {
525
+ type: "address"
526
+ },
527
+ {
528
+ type: "uint256"
529
+ },
530
+ {
531
+ type: "address"
532
+ },
533
+ {
534
+ type: "uint256"
535
+ },
536
+ {
537
+ type: "address"
538
+ },
539
+ {
540
+ type: "uint256"
541
+ },
542
+ {
543
+ type: "address"
544
+ },
545
+ {
546
+ type: "uint256"
547
+ },
548
+ {
549
+ type: "address"
550
+ },
551
+ {
552
+ type: "uint256"
553
+ }
554
+ ]
555
+ },
556
+ "ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)": {
557
+ name: "ZoraTimedSaleStrategyRewards",
558
+ type: "event",
559
+ inputs: [
560
+ {
561
+ type: "address",
562
+ indexed: !0
563
+ },
564
+ {
565
+ type: "uint256",
566
+ indexed: !0
567
+ },
568
+ {
569
+ type: "address"
570
+ },
571
+ {
572
+ type: "uint256"
573
+ },
574
+ {
575
+ type: "address"
576
+ },
577
+ {
578
+ type: "uint256"
579
+ },
580
+ {
581
+ type: "address"
582
+ },
583
+ {
584
+ type: "uint256"
585
+ },
586
+ {
587
+ type: "address"
588
+ },
589
+ {
590
+ type: "uint256"
591
+ },
592
+ {
593
+ type: "address"
594
+ },
595
+ {
596
+ type: "uint256"
597
+ }
598
+ ]
599
+ },
600
+ "0x0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547": {
601
+ name: "BoostClaimed",
602
+ type: "event",
603
+ inputs: [
604
+ {
605
+ type: "uint256",
606
+ indexed: !0
607
+ },
608
+ {
609
+ type: "uint256",
610
+ indexed: !0
611
+ },
612
+ {
613
+ type: "address",
614
+ indexed: !0
615
+ },
616
+ {
617
+ type: "address"
618
+ },
619
+ {
620
+ type: "bytes"
621
+ }
622
+ ]
623
+ },
624
+ "BoostClaimed(uint256 indexed,uint256 indexed,address indexed,address,bytes)": {
625
+ name: "BoostClaimed",
626
+ type: "event",
627
+ inputs: [
628
+ {
629
+ type: "uint256",
630
+ indexed: !0
631
+ },
632
+ {
633
+ type: "uint256",
634
+ indexed: !0
635
+ },
636
+ {
637
+ type: "address",
638
+ indexed: !0
639
+ },
640
+ {
641
+ type: "address"
642
+ },
643
+ {
644
+ type: "bytes"
645
+ }
646
+ ]
647
+ },
648
+ "0x116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd": {
649
+ name: "BoostCreated",
650
+ type: "event",
651
+ inputs: [
652
+ {
653
+ type: "uint256",
654
+ indexed: !0
655
+ },
656
+ {
657
+ type: "address",
658
+ indexed: !0
659
+ },
660
+ {
661
+ type: "address",
662
+ indexed: !0
663
+ },
664
+ {
665
+ type: "uint256"
666
+ },
667
+ {
668
+ type: "address"
669
+ },
670
+ {
671
+ type: "address"
672
+ },
673
+ {
674
+ type: "address"
675
+ }
676
+ ]
677
+ },
678
+ "BoostCreated(uint256 indexed,address indexed,address indexed,uint256,address,address,address)": {
679
+ name: "BoostCreated",
680
+ type: "event",
681
+ inputs: [
682
+ {
683
+ type: "uint256",
684
+ indexed: !0
685
+ },
686
+ {
687
+ type: "address",
688
+ indexed: !0
689
+ },
690
+ {
691
+ type: "address",
692
+ indexed: !0
693
+ },
694
+ {
695
+ type: "uint256"
696
+ },
697
+ {
698
+ type: "address"
699
+ },
700
+ {
701
+ type: "address"
702
+ },
703
+ {
704
+ type: "address"
705
+ }
706
+ ]
707
+ },
708
+ "0x72d6b4b5ad0fb12b8a7bb3bcb60edd774c096403d611437859c156ecb3c03a36": {
709
+ name: "SecondaryBuy",
710
+ type: "event",
711
+ inputs: [
712
+ {
713
+ type: "address",
714
+ indexed: !0
715
+ },
716
+ {
717
+ type: "address",
718
+ indexed: !0
719
+ },
720
+ {
721
+ type: "address",
722
+ indexed: !0
723
+ },
724
+ {
725
+ type: "uint256"
726
+ },
727
+ {
728
+ type: "uint256"
729
+ }
730
+ ]
731
+ },
732
+ "SecondaryBuy(address indexed,address indexed,address indexed,uint256,uint256)": {
733
+ name: "SecondaryBuy",
734
+ type: "event",
735
+ inputs: [
736
+ {
737
+ type: "address",
738
+ indexed: !0
739
+ },
740
+ {
741
+ type: "address",
742
+ indexed: !0
743
+ },
744
+ {
745
+ type: "address",
746
+ indexed: !0
747
+ },
748
+ {
749
+ type: "uint256"
750
+ },
751
+ {
752
+ type: "uint256"
753
+ }
754
+ ]
755
+ },
756
+ "0x6779abc30cb1bfb05c1170de8e2ef5828c19a2590043d2fd9579d945929fd8a4": {
757
+ name: "CoopTokenBuy",
758
+ type: "event",
759
+ inputs: [
760
+ {
761
+ type: "address",
762
+ indexed: !0
763
+ },
764
+ {
765
+ type: "address",
766
+ indexed: !0
767
+ },
768
+ {
769
+ type: "address",
770
+ indexed: !0
771
+ },
772
+ {
773
+ type: "uint256"
774
+ },
775
+ {
776
+ type: "uint256"
777
+ },
778
+ {
779
+ type: "uint256"
780
+ },
781
+ {
782
+ type: "uint256"
783
+ },
784
+ {
785
+ type: "uint256"
786
+ },
787
+ {
788
+ type: "string"
789
+ },
790
+ {
791
+ type: "uint256"
792
+ },
793
+ {
794
+ type: "uint8"
795
+ }
796
+ ]
797
+ },
798
+ "CoopTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": {
799
+ name: "CoopTokenBuy",
800
+ type: "event",
801
+ inputs: [
802
+ {
803
+ type: "address",
804
+ indexed: !0
805
+ },
806
+ {
807
+ type: "address",
808
+ indexed: !0
809
+ },
810
+ {
811
+ type: "address",
812
+ indexed: !0
813
+ },
814
+ {
815
+ type: "uint256"
816
+ },
817
+ {
818
+ type: "uint256"
819
+ },
820
+ {
821
+ type: "uint256"
822
+ },
823
+ {
824
+ type: "uint256"
825
+ },
826
+ {
827
+ type: "uint256"
828
+ },
829
+ {
830
+ type: "string"
831
+ },
832
+ {
833
+ type: "uint256"
834
+ },
835
+ {
836
+ type: "uint8"
837
+ }
838
+ ]
839
+ },
840
+ "0xeb3adfe7d8294092cd6b0e7ce95ed01c11d3c5d5d3dc1fecdeb87de43c5e40b2": {
841
+ name: "CoopTokenSell",
842
+ type: "event",
843
+ inputs: [
844
+ {
845
+ type: "address",
846
+ indexed: !0
847
+ },
848
+ {
849
+ type: "address",
850
+ indexed: !0
851
+ },
852
+ {
853
+ type: "address",
854
+ indexed: !0
855
+ },
856
+ {
857
+ type: "uint256"
858
+ },
859
+ {
860
+ type: "uint256"
861
+ },
862
+ {
863
+ type: "uint256"
864
+ },
865
+ {
866
+ type: "uint256"
867
+ },
868
+ {
869
+ type: "uint256"
870
+ },
871
+ {
872
+ type: "string"
873
+ },
874
+ {
875
+ type: "uint256"
876
+ },
877
+ {
878
+ type: "uint8"
879
+ }
880
+ ]
881
+ },
882
+ "CoopTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": {
883
+ name: "CoopTokenSell",
884
+ type: "event",
885
+ inputs: [
886
+ {
887
+ type: "address",
888
+ indexed: !0
889
+ },
890
+ {
891
+ type: "address",
892
+ indexed: !0
893
+ },
894
+ {
895
+ type: "address",
896
+ indexed: !0
897
+ },
898
+ {
899
+ type: "uint256"
900
+ },
901
+ {
902
+ type: "uint256"
903
+ },
904
+ {
905
+ type: "uint256"
906
+ },
907
+ {
908
+ type: "uint256"
909
+ },
910
+ {
911
+ type: "uint256"
912
+ },
913
+ {
914
+ type: "string"
915
+ },
916
+ {
917
+ type: "uint256"
918
+ },
919
+ {
920
+ type: "uint8"
921
+ }
922
+ ]
923
+ },
924
+ "0xd5468362e31bdcdc9884e72dcf3b00f9d46086067621224b7cb759308d597c6c": {
925
+ name: "CoopTokenFees",
926
+ type: "event",
927
+ inputs: [
928
+ {
929
+ type: "address",
930
+ indexed: !0
931
+ },
932
+ {
933
+ type: "address",
934
+ indexed: !0
935
+ },
936
+ {
937
+ type: "address",
938
+ indexed: !0
939
+ },
940
+ {
941
+ type: "address"
942
+ },
943
+ {
944
+ type: "uint256"
945
+ },
946
+ {
947
+ type: "uint256"
948
+ },
949
+ {
950
+ type: "uint256"
951
+ },
952
+ {
953
+ type: "uint256"
954
+ }
955
+ ]
956
+ },
957
+ "CoopTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)": {
958
+ name: "CoopTokenFees",
959
+ type: "event",
960
+ inputs: [
961
+ {
962
+ type: "address",
963
+ indexed: !0
964
+ },
965
+ {
966
+ type: "address",
967
+ indexed: !0
968
+ },
969
+ {
970
+ type: "address",
971
+ indexed: !0
972
+ },
973
+ {
974
+ type: "address"
975
+ },
976
+ {
977
+ type: "uint256"
978
+ },
979
+ {
980
+ type: "uint256"
981
+ },
982
+ {
983
+ type: "uint256"
984
+ },
985
+ {
986
+ type: "uint256"
987
+ }
988
+ ]
989
+ },
990
+ "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": {
991
+ name: "InfoIndexed",
992
+ type: "event",
993
+ inputs: [
994
+ {
995
+ type: "address",
996
+ indexed: !0
997
+ },
998
+ {
999
+ type: "string",
1000
+ indexed: !0
1001
+ }
1002
+ ]
1003
+ },
1004
+ "InfoIndexed(address indexed,string indexed)": {
1005
+ name: "InfoIndexed",
1006
+ type: "event",
1007
+ inputs: [
1008
+ {
1009
+ type: "address",
1010
+ indexed: !0
1011
+ },
1012
+ {
1013
+ type: "string",
1014
+ indexed: !0
1015
+ }
1016
+ ]
1017
+ },
1018
+ "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c": {
1019
+ name: "Info",
1020
+ type: "event",
1021
+ inputs: [
1022
+ {
1023
+ type: "address"
1024
+ },
1025
+ {
1026
+ type: "string"
1027
+ }
1028
+ ]
1029
+ },
1030
+ "Info(address,string)": {
1031
+ name: "Info",
1032
+ type: "event",
1033
+ inputs: [
1034
+ {
1035
+ type: "address"
1036
+ },
1037
+ {
1038
+ type: "string"
1039
+ }
1040
+ ]
1041
+ }
1042
+ },
1043
+ selectors: {
1044
+ "Transfer(address indexed,address indexed,uint256 indexed)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
1045
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": "Transfer(address indexed,address indexed,uint256 indexed)",
1046
+ "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
1047
+ "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e": "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)",
1048
+ "NameRegistered(string,bytes32 indexed,address indexed,uint256,uint256,uint256)": "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27",
1049
+ "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27": "NameRegistered(string,bytes32 indexed,address indexed,uint256,uint256,uint256)",
1050
+ "NameRegistered(string,bytes32 indexed,address indexed,uint256)": "0x0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa",
1051
+ "0x0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa": "NameRegistered(string,bytes32 indexed,address indexed,uint256)",
1052
+ "DelegateChanged(address indexed,address indexed,address indexed)": "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f",
1053
+ "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f": "DelegateChanged(address indexed,address indexed,address indexed)",
1054
+ "SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)": "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0",
1055
+ "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0": "SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)",
1056
+ "VoteCast(address indexed,uint256,uint8,uint256,string)": "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4",
1057
+ "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4": "VoteCast(address indexed,uint256,uint8,uint256,string)",
1058
+ "Minted(uint8,address,uint256,uint256)": "0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa",
1059
+ "0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa": "Minted(uint8,address,uint256,uint256)",
1060
+ "Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)": "0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888",
1061
+ "0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888": "Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)",
1062
+ "ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)": "0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8",
1063
+ "0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8": "ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)",
1064
+ "BoostClaimed(uint256 indexed,uint256 indexed,address indexed,address,bytes)": "0x0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547",
1065
+ "0x0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547": "BoostClaimed(uint256 indexed,uint256 indexed,address indexed,address,bytes)",
1066
+ "BoostCreated(uint256 indexed,address indexed,address indexed,uint256,address,address,address)": "0x116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd",
1067
+ "0x116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd": "BoostCreated(uint256 indexed,address indexed,address indexed,uint256,address,address,address)",
1068
+ "SecondaryBuy(address indexed,address indexed,address indexed,uint256,uint256)": "0x72d6b4b5ad0fb12b8a7bb3bcb60edd774c096403d611437859c156ecb3c03a36",
1069
+ "0x72d6b4b5ad0fb12b8a7bb3bcb60edd774c096403d611437859c156ecb3c03a36": "SecondaryBuy(address indexed,address indexed,address indexed,uint256,uint256)",
1070
+ "CoopTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": "0x6779abc30cb1bfb05c1170de8e2ef5828c19a2590043d2fd9579d945929fd8a4",
1071
+ "0x6779abc30cb1bfb05c1170de8e2ef5828c19a2590043d2fd9579d945929fd8a4": "CoopTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)",
1072
+ "CoopTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)": "0xeb3adfe7d8294092cd6b0e7ce95ed01c11d3c5d5d3dc1fecdeb87de43c5e40b2",
1073
+ "0xeb3adfe7d8294092cd6b0e7ce95ed01c11d3c5d5d3dc1fecdeb87de43c5e40b2": "CoopTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)",
1074
+ "CoopTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)": "0xd5468362e31bdcdc9884e72dcf3b00f9d46086067621224b7cb759308d597c6c",
1075
+ "0xd5468362e31bdcdc9884e72dcf3b00f9d46086067621224b7cb759308d597c6c": "CoopTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)",
1076
+ "InfoIndexed(address indexed,string indexed)": "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b",
1077
+ "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": "InfoIndexed(address indexed,string indexed)",
1078
+ "Info(address,string)": "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c",
1079
+ "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c": "Info(address,string)"
1080
+ }
1081
+ };
1082
+ var g = /* @__PURE__ */ ((e) => (e[e.ACTION = 0] = "ACTION", e[e.ALLOW_LIST = 1] = "ALLOW_LIST", e[e.BUDGET = 2] = "BUDGET", e[e.INCENTIVE = 3] = "INCENTIVE", e[e.VALIDATOR = 4] = "VALIDATOR", e))(g || {}), l = /* @__PURE__ */ ((e) => (e[e.ANY_ACTION_PARAM = 255] = "ANY_ACTION_PARAM", e[e.TX_SENDER_CLAIMANT = 255] = "TX_SENDER_CLAIMANT", e[e.GAS_REBATE_INCENTIVE = 255] = "GAS_REBATE_INCENTIVE", e))(l || {});
1083
+ const C = m.selectors["Transfer(address indexed,address indexed,uint256 indexed)"];
1084
+ function N(e) {
1085
+ return x(c(e) ? a(e) : a(b(e)), 0, 4);
7
1086
  }
8
- async function L(t, a, c) {
9
- const n = await A(t, {
10
- ...c,
11
- hash: await a
1087
+ async function A(e, t, n) {
1088
+ const d = await u(e, {
1089
+ ...n,
1090
+ hash: await t
12
1091
  });
13
- if (!n.contractAddress)
14
- throw new m(n);
15
- return n.contractAddress;
1092
+ if (!d.contractAddress)
1093
+ throw new f(d);
1094
+ return d.contractAddress;
16
1095
  }
17
- async function b(t, a, c) {
18
- const { hash: n, result: o } = await a;
19
- return await A(t, {
20
- ...c,
21
- hash: n
22
- }), o;
1096
+ async function S(e, t, n) {
1097
+ const { hash: d, result: i } = await t;
1098
+ return await u(e, {
1099
+ ...n,
1100
+ hash: d
1101
+ }), i;
23
1102
  }
24
- function D(t, a, c) {
25
- let n;
26
- const o = u(t);
27
- if (o && a[o] && (n = o), c !== void 0 ? a[c] && (n = c) : o !== void 0 && a[o] && (n = o), n === void 0) {
28
- const r = e(t);
29
- r.chainId !== void 0 && a[r.chainId] && (n = r.chainId);
1103
+ function w(e, t, n) {
1104
+ let d;
1105
+ const i = r(e);
1106
+ if (i && t[i] && (d = i), n !== void 0 ? t[n] && (d = n) : i !== void 0 && t[i] && (d = i), d === void 0) {
1107
+ const s = p(e);
1108
+ s.chainId !== void 0 && t[s.chainId] && (d = s.chainId);
30
1109
  }
31
- if (n === void 0 && (n = 11155111), !a[n])
32
- throw new w(
33
- n,
34
- Object.keys(a).map(Number)
1110
+ if (d === void 0 && (d = 11155111), !t[d])
1111
+ throw new o(
1112
+ d,
1113
+ Object.keys(t).map(Number)
35
1114
  );
36
- return { chainId: n, address: a[n] };
1115
+ return { chainId: d, address: t[d] };
37
1116
  }
38
- async function V(t, a, c, n) {
39
- return await f(t, {
40
- ...n,
1117
+ async function E(e, t, n, d) {
1118
+ return await y(e, {
1119
+ ...d,
41
1120
  functionName: "balanceOf",
42
- address: a,
43
- args: [c],
1121
+ address: t,
1122
+ args: [n],
44
1123
  abi: [
45
1124
  {
46
1125
  constant: !0,
@@ -65,11 +1144,12 @@ async function V(t, a, c, n) {
65
1144
  }
66
1145
  export {
67
1146
  l as CheatCodes,
68
- _ as RegistryType,
69
- D as assertValidAddressByChainId,
70
- b as awaitResult,
71
- v as bytes4,
72
- L as getDeployedContractAddress,
73
- V as getErc20Balance
1147
+ g as RegistryType,
1148
+ C as TRANSFER_SIGNATURE,
1149
+ w as assertValidAddressByChainId,
1150
+ S as awaitResult,
1151
+ N as bytes4,
1152
+ A as getDeployedContractAddress,
1153
+ E as getErc20Balance
74
1154
  };
75
1155
  //# sourceMappingURL=utils.js.map