levr-sdk 0.2.2 → 0.3.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 (131) hide show
  1. package/dist/esm/abis/ClankerAirdropV2.js +289 -0
  2. package/dist/esm/abis/ClankerVault.js +215 -0
  3. package/dist/esm/abis/LevrFactory_v1.js +23 -0
  4. package/dist/esm/abis/LevrFeeSplitterFactory_v1.js +197 -0
  5. package/dist/esm/abis/LevrFeeSplitter_v1.js +544 -0
  6. package/dist/esm/abis/LevrGovernor_v1.js +10 -0
  7. package/dist/esm/abis/index.js +4 -0
  8. package/dist/esm/airdrop.js +160 -0
  9. package/dist/esm/airdrop.js.map +1 -0
  10. package/dist/esm/build-calldatas-v4.js +3 -1
  11. package/dist/esm/build-calldatas-v4.js.map +1 -1
  12. package/dist/esm/build-clanker-v4.js +75 -25
  13. package/dist/esm/build-clanker-v4.js.map +1 -1
  14. package/dist/esm/client/hook/index.js +10 -0
  15. package/dist/esm/client/hook/index.js.map +1 -1
  16. package/dist/esm/client/hook/use-airdrop.js +8 -4
  17. package/dist/esm/client/hook/use-airdrop.js.map +1 -1
  18. package/dist/esm/client/hook/use-configure-splits.js +43 -0
  19. package/dist/esm/client/hook/use-configure-splits.js.map +1 -0
  20. package/dist/esm/client/hook/use-deploy.js +3 -3
  21. package/dist/esm/client/hook/use-deploy.js.map +1 -1
  22. package/dist/esm/client/hook/use-factory.js +33 -0
  23. package/dist/esm/client/hook/use-factory.js.map +1 -0
  24. package/dist/esm/client/hook/use-fee-receivers.js +3 -2
  25. package/dist/esm/client/hook/use-fee-receivers.js.map +1 -1
  26. package/dist/esm/client/hook/use-governance.js +18 -3
  27. package/dist/esm/client/hook/use-governance.js.map +1 -1
  28. package/dist/esm/client/hook/use-project.js +7 -3
  29. package/dist/esm/client/hook/use-project.js.map +1 -1
  30. package/dist/esm/client/hook/use-proposal.js +11 -5
  31. package/dist/esm/client/hook/use-proposal.js.map +1 -1
  32. package/dist/esm/client/hook/use-stake.js +1 -1
  33. package/dist/esm/client/hook/use-stake.js.map +1 -1
  34. package/dist/esm/client/hook/use-vault.js +67 -0
  35. package/dist/esm/client/hook/use-vault.js.map +1 -0
  36. package/dist/esm/client/levr-provider.js +18 -2
  37. package/dist/esm/client/levr-provider.js.map +1 -1
  38. package/dist/esm/client/query-keys.js +13 -1
  39. package/dist/esm/client/query-keys.js.map +1 -1
  40. package/dist/esm/constants.js +83 -6
  41. package/dist/esm/constants.js.map +1 -1
  42. package/dist/esm/deploy-v4.js +56 -3
  43. package/dist/esm/deploy-v4.js.map +1 -1
  44. package/dist/esm/factory.js +94 -0
  45. package/dist/esm/factory.js.map +1 -0
  46. package/dist/esm/fee-receivers.js +265 -4
  47. package/dist/esm/fee-receivers.js.map +1 -1
  48. package/dist/esm/fee-splitter.js +68 -0
  49. package/dist/esm/fee-splitter.js.map +1 -0
  50. package/dist/esm/governance.js +86 -9
  51. package/dist/esm/governance.js.map +1 -1
  52. package/dist/esm/index.js +5 -1
  53. package/dist/esm/index.js.map +1 -1
  54. package/dist/esm/ipfs-merkle-tree.js +130 -0
  55. package/dist/esm/ipfs-merkle-tree.js.map +1 -0
  56. package/dist/esm/project.js +114 -26
  57. package/dist/esm/project.js.map +1 -1
  58. package/dist/esm/schema/levr.schema.js +94 -33
  59. package/dist/esm/schema/levr.schema.js.map +1 -1
  60. package/dist/esm/stake.js +157 -19
  61. package/dist/esm/stake.js.map +1 -1
  62. package/dist/esm/vault.js +136 -0
  63. package/dist/esm/vault.js.map +1 -0
  64. package/dist/types/abis/ClankerAirdropV2.d.ts +573 -0
  65. package/dist/types/abis/ClankerVault.d.ts +407 -0
  66. package/dist/types/abis/LevrFactory_v1.d.ts +18 -0
  67. package/dist/types/abis/LevrFeeSplitterFactory_v1.d.ts +149 -0
  68. package/dist/types/abis/LevrFeeSplitter_v1.d.ts +422 -0
  69. package/dist/types/abis/LevrGovernor_v1.d.ts +8 -0
  70. package/dist/types/abis/index.d.ts +4 -0
  71. package/dist/types/airdrop.d.ts +18 -0
  72. package/dist/types/airdrop.d.ts.map +1 -0
  73. package/dist/types/build-calldatas-v4.d.ts +3 -0
  74. package/dist/types/build-calldatas-v4.d.ts.map +1 -1
  75. package/dist/types/build-clanker-v4.d.ts +6 -1
  76. package/dist/types/build-clanker-v4.d.ts.map +1 -1
  77. package/dist/types/client/hook/index.d.ts +10 -0
  78. package/dist/types/client/hook/index.d.ts.map +1 -1
  79. package/dist/types/client/hook/use-airdrop.d.ts +3 -1
  80. package/dist/types/client/hook/use-airdrop.d.ts.map +1 -1
  81. package/dist/types/client/hook/use-configure-splits.d.ts +17 -0
  82. package/dist/types/client/hook/use-configure-splits.d.ts.map +1 -0
  83. package/dist/types/client/hook/use-deploy.d.ts +21 -14
  84. package/dist/types/client/hook/use-deploy.d.ts.map +1 -1
  85. package/dist/types/client/hook/use-factory.d.ts +34 -0
  86. package/dist/types/client/hook/use-factory.d.ts.map +1 -0
  87. package/dist/types/client/hook/use-fee-receivers.d.ts +1 -1
  88. package/dist/types/client/hook/use-fee-receivers.d.ts.map +1 -1
  89. package/dist/types/client/hook/use-governance.d.ts +18 -2
  90. package/dist/types/client/hook/use-governance.d.ts.map +1 -1
  91. package/dist/types/client/hook/use-project.d.ts +169 -1
  92. package/dist/types/client/hook/use-project.d.ts.map +1 -1
  93. package/dist/types/client/hook/use-proposal.d.ts +3 -2
  94. package/dist/types/client/hook/use-proposal.d.ts.map +1 -1
  95. package/dist/types/client/hook/use-vault.d.ts +13 -0
  96. package/dist/types/client/hook/use-vault.d.ts.map +1 -0
  97. package/dist/types/client/levr-provider.d.ts +15 -1
  98. package/dist/types/client/levr-provider.d.ts.map +1 -1
  99. package/dist/types/client/query-keys.d.ts +13 -1
  100. package/dist/types/client/query-keys.d.ts.map +1 -1
  101. package/dist/types/constants.d.ts +59 -1
  102. package/dist/types/constants.d.ts.map +1 -1
  103. package/dist/types/deploy-v4.d.ts +3 -1
  104. package/dist/types/deploy-v4.d.ts.map +1 -1
  105. package/dist/types/factory.d.ts +21 -0
  106. package/dist/types/factory.d.ts.map +1 -0
  107. package/dist/types/fee-receivers.d.ts +1822 -1
  108. package/dist/types/fee-receivers.d.ts.map +1 -1
  109. package/dist/types/fee-splitter.d.ts +23 -0
  110. package/dist/types/fee-splitter.d.ts.map +1 -0
  111. package/dist/types/governance.d.ts +18 -2
  112. package/dist/types/governance.d.ts.map +1 -1
  113. package/dist/types/index.d.ts +5 -1
  114. package/dist/types/index.d.ts.map +1 -1
  115. package/dist/types/ipfs-merkle-tree.d.ts +72 -0
  116. package/dist/types/ipfs-merkle-tree.d.ts.map +1 -0
  117. package/dist/types/project.d.ts +10 -2
  118. package/dist/types/project.d.ts.map +1 -1
  119. package/dist/types/proposal.d.ts +16 -0
  120. package/dist/types/proposal.d.ts.map +1 -1
  121. package/dist/types/schema/levr.schema.d.ts +16 -4
  122. package/dist/types/schema/levr.schema.d.ts.map +1 -1
  123. package/dist/types/stake.d.ts +33 -2
  124. package/dist/types/stake.d.ts.map +1 -1
  125. package/dist/types/vault.d.ts +70 -0
  126. package/dist/types/vault.d.ts.map +1 -0
  127. package/package.json +1 -1
  128. package/dist/esm/treasury.js +0 -90
  129. package/dist/esm/treasury.js.map +0 -1
  130. package/dist/types/treasury.d.ts +0 -11
  131. package/dist/types/treasury.d.ts.map +0 -1
@@ -0,0 +1,422 @@
1
+ declare const _default: readonly [{
2
+ readonly type: "constructor";
3
+ readonly inputs: readonly [{
4
+ readonly name: "clankerToken_";
5
+ readonly type: "address";
6
+ readonly internalType: "address";
7
+ }, {
8
+ readonly name: "factory_";
9
+ readonly type: "address";
10
+ readonly internalType: "address";
11
+ }, {
12
+ readonly name: "trustedForwarder_";
13
+ readonly type: "address";
14
+ readonly internalType: "address";
15
+ }];
16
+ readonly stateMutability: "nonpayable";
17
+ }, {
18
+ readonly type: "function";
19
+ readonly name: "clankerToken";
20
+ readonly inputs: readonly [];
21
+ readonly outputs: readonly [{
22
+ readonly name: "";
23
+ readonly type: "address";
24
+ readonly internalType: "address";
25
+ }];
26
+ readonly stateMutability: "view";
27
+ }, {
28
+ readonly type: "function";
29
+ readonly name: "configureSplits";
30
+ readonly inputs: readonly [{
31
+ readonly name: "splits";
32
+ readonly type: "tuple[]";
33
+ readonly internalType: "struct ILevrFeeSplitter_v1.SplitConfig[]";
34
+ readonly components: readonly [{
35
+ readonly name: "receiver";
36
+ readonly type: "address";
37
+ readonly internalType: "address";
38
+ }, {
39
+ readonly name: "bps";
40
+ readonly type: "uint16";
41
+ readonly internalType: "uint16";
42
+ }];
43
+ }];
44
+ readonly outputs: readonly [];
45
+ readonly stateMutability: "nonpayable";
46
+ }, {
47
+ readonly type: "function";
48
+ readonly name: "distribute";
49
+ readonly inputs: readonly [{
50
+ readonly name: "rewardToken";
51
+ readonly type: "address";
52
+ readonly internalType: "address";
53
+ }];
54
+ readonly outputs: readonly [];
55
+ readonly stateMutability: "nonpayable";
56
+ }, {
57
+ readonly type: "function";
58
+ readonly name: "distributeBatch";
59
+ readonly inputs: readonly [{
60
+ readonly name: "rewardTokens";
61
+ readonly type: "address[]";
62
+ readonly internalType: "address[]";
63
+ }];
64
+ readonly outputs: readonly [];
65
+ readonly stateMutability: "nonpayable";
66
+ }, {
67
+ readonly type: "function";
68
+ readonly name: "factory";
69
+ readonly inputs: readonly [];
70
+ readonly outputs: readonly [{
71
+ readonly name: "";
72
+ readonly type: "address";
73
+ readonly internalType: "address";
74
+ }];
75
+ readonly stateMutability: "view";
76
+ }, {
77
+ readonly type: "function";
78
+ readonly name: "getDistributionState";
79
+ readonly inputs: readonly [{
80
+ readonly name: "rewardToken";
81
+ readonly type: "address";
82
+ readonly internalType: "address";
83
+ }];
84
+ readonly outputs: readonly [{
85
+ readonly name: "state";
86
+ readonly type: "tuple";
87
+ readonly internalType: "struct ILevrFeeSplitter_v1.DistributionState";
88
+ readonly components: readonly [{
89
+ readonly name: "totalDistributed";
90
+ readonly type: "uint256";
91
+ readonly internalType: "uint256";
92
+ }, {
93
+ readonly name: "lastDistribution";
94
+ readonly type: "uint256";
95
+ readonly internalType: "uint256";
96
+ }];
97
+ }];
98
+ readonly stateMutability: "view";
99
+ }, {
100
+ readonly type: "function";
101
+ readonly name: "getSplits";
102
+ readonly inputs: readonly [];
103
+ readonly outputs: readonly [{
104
+ readonly name: "splits";
105
+ readonly type: "tuple[]";
106
+ readonly internalType: "struct ILevrFeeSplitter_v1.SplitConfig[]";
107
+ readonly components: readonly [{
108
+ readonly name: "receiver";
109
+ readonly type: "address";
110
+ readonly internalType: "address";
111
+ }, {
112
+ readonly name: "bps";
113
+ readonly type: "uint16";
114
+ readonly internalType: "uint16";
115
+ }];
116
+ }];
117
+ readonly stateMutability: "view";
118
+ }, {
119
+ readonly type: "function";
120
+ readonly name: "getStakingAddress";
121
+ readonly inputs: readonly [];
122
+ readonly outputs: readonly [{
123
+ readonly name: "staking";
124
+ readonly type: "address";
125
+ readonly internalType: "address";
126
+ }];
127
+ readonly stateMutability: "view";
128
+ }, {
129
+ readonly type: "function";
130
+ readonly name: "getTotalBps";
131
+ readonly inputs: readonly [];
132
+ readonly outputs: readonly [{
133
+ readonly name: "totalBps";
134
+ readonly type: "uint256";
135
+ readonly internalType: "uint256";
136
+ }];
137
+ readonly stateMutability: "view";
138
+ }, {
139
+ readonly type: "function";
140
+ readonly name: "isSplitsConfigured";
141
+ readonly inputs: readonly [];
142
+ readonly outputs: readonly [{
143
+ readonly name: "configured";
144
+ readonly type: "bool";
145
+ readonly internalType: "bool";
146
+ }];
147
+ readonly stateMutability: "view";
148
+ }, {
149
+ readonly type: "function";
150
+ readonly name: "isTrustedForwarder";
151
+ readonly inputs: readonly [{
152
+ readonly name: "forwarder";
153
+ readonly type: "address";
154
+ readonly internalType: "address";
155
+ }];
156
+ readonly outputs: readonly [{
157
+ readonly name: "";
158
+ readonly type: "bool";
159
+ readonly internalType: "bool";
160
+ }];
161
+ readonly stateMutability: "view";
162
+ }, {
163
+ readonly type: "function";
164
+ readonly name: "pendingFees";
165
+ readonly inputs: readonly [{
166
+ readonly name: "rewardToken";
167
+ readonly type: "address";
168
+ readonly internalType: "address";
169
+ }];
170
+ readonly outputs: readonly [{
171
+ readonly name: "pending";
172
+ readonly type: "uint256";
173
+ readonly internalType: "uint256";
174
+ }];
175
+ readonly stateMutability: "view";
176
+ }, {
177
+ readonly type: "function";
178
+ readonly name: "pendingFeesInclBalance";
179
+ readonly inputs: readonly [{
180
+ readonly name: "rewardToken";
181
+ readonly type: "address";
182
+ readonly internalType: "address";
183
+ }];
184
+ readonly outputs: readonly [{
185
+ readonly name: "pending";
186
+ readonly type: "uint256";
187
+ readonly internalType: "uint256";
188
+ }];
189
+ readonly stateMutability: "view";
190
+ }, {
191
+ readonly type: "function";
192
+ readonly name: "recoverDust";
193
+ readonly inputs: readonly [{
194
+ readonly name: "token";
195
+ readonly type: "address";
196
+ readonly internalType: "address";
197
+ }, {
198
+ readonly name: "to";
199
+ readonly type: "address";
200
+ readonly internalType: "address";
201
+ }];
202
+ readonly outputs: readonly [];
203
+ readonly stateMutability: "nonpayable";
204
+ }, {
205
+ readonly type: "function";
206
+ readonly name: "trustedForwarder";
207
+ readonly inputs: readonly [];
208
+ readonly outputs: readonly [{
209
+ readonly name: "";
210
+ readonly type: "address";
211
+ readonly internalType: "address";
212
+ }];
213
+ readonly stateMutability: "view";
214
+ }, {
215
+ readonly type: "event";
216
+ readonly name: "AutoAccrualFailed";
217
+ readonly inputs: readonly [{
218
+ readonly name: "clankerToken";
219
+ readonly type: "address";
220
+ readonly indexed: true;
221
+ readonly internalType: "address";
222
+ }, {
223
+ readonly name: "token";
224
+ readonly type: "address";
225
+ readonly indexed: true;
226
+ readonly internalType: "address";
227
+ }];
228
+ readonly anonymous: false;
229
+ }, {
230
+ readonly type: "event";
231
+ readonly name: "AutoAccrualSuccess";
232
+ readonly inputs: readonly [{
233
+ readonly name: "clankerToken";
234
+ readonly type: "address";
235
+ readonly indexed: true;
236
+ readonly internalType: "address";
237
+ }, {
238
+ readonly name: "token";
239
+ readonly type: "address";
240
+ readonly indexed: true;
241
+ readonly internalType: "address";
242
+ }];
243
+ readonly anonymous: false;
244
+ }, {
245
+ readonly type: "event";
246
+ readonly name: "Distributed";
247
+ readonly inputs: readonly [{
248
+ readonly name: "clankerToken";
249
+ readonly type: "address";
250
+ readonly indexed: true;
251
+ readonly internalType: "address";
252
+ }, {
253
+ readonly name: "token";
254
+ readonly type: "address";
255
+ readonly indexed: true;
256
+ readonly internalType: "address";
257
+ }, {
258
+ readonly name: "totalAmount";
259
+ readonly type: "uint256";
260
+ readonly indexed: false;
261
+ readonly internalType: "uint256";
262
+ }];
263
+ readonly anonymous: false;
264
+ }, {
265
+ readonly type: "event";
266
+ readonly name: "DustRecovered";
267
+ readonly inputs: readonly [{
268
+ readonly name: "token";
269
+ readonly type: "address";
270
+ readonly indexed: true;
271
+ readonly internalType: "address";
272
+ }, {
273
+ readonly name: "to";
274
+ readonly type: "address";
275
+ readonly indexed: true;
276
+ readonly internalType: "address";
277
+ }, {
278
+ readonly name: "amount";
279
+ readonly type: "uint256";
280
+ readonly indexed: false;
281
+ readonly internalType: "uint256";
282
+ }];
283
+ readonly anonymous: false;
284
+ }, {
285
+ readonly type: "event";
286
+ readonly name: "FeeDistributed";
287
+ readonly inputs: readonly [{
288
+ readonly name: "clankerToken";
289
+ readonly type: "address";
290
+ readonly indexed: true;
291
+ readonly internalType: "address";
292
+ }, {
293
+ readonly name: "token";
294
+ readonly type: "address";
295
+ readonly indexed: true;
296
+ readonly internalType: "address";
297
+ }, {
298
+ readonly name: "receiver";
299
+ readonly type: "address";
300
+ readonly indexed: true;
301
+ readonly internalType: "address";
302
+ }, {
303
+ readonly name: "amount";
304
+ readonly type: "uint256";
305
+ readonly indexed: false;
306
+ readonly internalType: "uint256";
307
+ }];
308
+ readonly anonymous: false;
309
+ }, {
310
+ readonly type: "event";
311
+ readonly name: "SplitsConfigured";
312
+ readonly inputs: readonly [{
313
+ readonly name: "clankerToken";
314
+ readonly type: "address";
315
+ readonly indexed: true;
316
+ readonly internalType: "address";
317
+ }, {
318
+ readonly name: "splits";
319
+ readonly type: "tuple[]";
320
+ readonly indexed: false;
321
+ readonly internalType: "struct ILevrFeeSplitter_v1.SplitConfig[]";
322
+ readonly components: readonly [{
323
+ readonly name: "receiver";
324
+ readonly type: "address";
325
+ readonly internalType: "address";
326
+ }, {
327
+ readonly name: "bps";
328
+ readonly type: "uint16";
329
+ readonly internalType: "uint16";
330
+ }];
331
+ }];
332
+ readonly anonymous: false;
333
+ }, {
334
+ readonly type: "event";
335
+ readonly name: "StakingDistribution";
336
+ readonly inputs: readonly [{
337
+ readonly name: "clankerToken";
338
+ readonly type: "address";
339
+ readonly indexed: true;
340
+ readonly internalType: "address";
341
+ }, {
342
+ readonly name: "token";
343
+ readonly type: "address";
344
+ readonly indexed: true;
345
+ readonly internalType: "address";
346
+ }, {
347
+ readonly name: "amount";
348
+ readonly type: "uint256";
349
+ readonly indexed: false;
350
+ readonly internalType: "uint256";
351
+ }];
352
+ readonly anonymous: false;
353
+ }, {
354
+ readonly type: "error";
355
+ readonly name: "ClankerMetadataNotFound";
356
+ readonly inputs: readonly [];
357
+ }, {
358
+ readonly type: "error";
359
+ readonly name: "DuplicateReceiver";
360
+ readonly inputs: readonly [];
361
+ }, {
362
+ readonly type: "error";
363
+ readonly name: "DuplicateStakingReceiver";
364
+ readonly inputs: readonly [];
365
+ }, {
366
+ readonly type: "error";
367
+ readonly name: "InvalidSplits";
368
+ readonly inputs: readonly [];
369
+ }, {
370
+ readonly type: "error";
371
+ readonly name: "InvalidTotalBps";
372
+ readonly inputs: readonly [];
373
+ }, {
374
+ readonly type: "error";
375
+ readonly name: "LpLockerNotConfigured";
376
+ readonly inputs: readonly [];
377
+ }, {
378
+ readonly type: "error";
379
+ readonly name: "NoPendingFees";
380
+ readonly inputs: readonly [];
381
+ }, {
382
+ readonly type: "error";
383
+ readonly name: "NoReceivers";
384
+ readonly inputs: readonly [];
385
+ }, {
386
+ readonly type: "error";
387
+ readonly name: "OnlyTokenAdmin";
388
+ readonly inputs: readonly [];
389
+ }, {
390
+ readonly type: "error";
391
+ readonly name: "ProjectNotRegistered";
392
+ readonly inputs: readonly [];
393
+ }, {
394
+ readonly type: "error";
395
+ readonly name: "ReentrancyGuardReentrantCall";
396
+ readonly inputs: readonly [];
397
+ }, {
398
+ readonly type: "error";
399
+ readonly name: "SafeERC20FailedOperation";
400
+ readonly inputs: readonly [{
401
+ readonly name: "token";
402
+ readonly type: "address";
403
+ readonly internalType: "address";
404
+ }];
405
+ }, {
406
+ readonly type: "error";
407
+ readonly name: "SplitsNotConfigured";
408
+ readonly inputs: readonly [];
409
+ }, {
410
+ readonly type: "error";
411
+ readonly name: "TooManyReceivers";
412
+ readonly inputs: readonly [];
413
+ }, {
414
+ readonly type: "error";
415
+ readonly name: "ZeroAddress";
416
+ readonly inputs: readonly [];
417
+ }, {
418
+ readonly type: "error";
419
+ readonly name: "ZeroBps";
420
+ readonly inputs: readonly [];
421
+ }];
422
+ export default _default;
@@ -504,6 +504,10 @@ declare const _default: readonly [{
504
504
  readonly type: "error";
505
505
  readonly name: "InsufficientStake";
506
506
  readonly inputs: readonly [];
507
+ }, {
508
+ readonly type: "error";
509
+ readonly name: "InsufficientTreasuryBalance";
510
+ readonly inputs: readonly [];
507
511
  }, {
508
512
  readonly type: "error";
509
513
  readonly name: "InsufficientVotingPower";
@@ -536,6 +540,10 @@ declare const _default: readonly [{
536
540
  readonly type: "error";
537
541
  readonly name: "NotWinner";
538
542
  readonly inputs: readonly [];
543
+ }, {
544
+ readonly type: "error";
545
+ readonly name: "ProposalAmountExceedsLimit";
546
+ readonly inputs: readonly [];
539
547
  }, {
540
548
  readonly type: "error";
541
549
  readonly name: "ProposalNotSucceeded";
@@ -1,4 +1,6 @@
1
1
  export { default as LevrFactory_v1 } from './LevrFactory_v1';
2
+ export { default as LevrFeeSplitter_v1 } from './LevrFeeSplitter_v1';
3
+ export { default as LevrFeeSplitterFactory_v1 } from './LevrFeeSplitterFactory_v1';
2
4
  export { default as LevrForwarder_v1 } from './LevrForwarder_v1';
3
5
  export { default as LevrGovernor_v1 } from './LevrGovernor_v1';
4
6
  export { default as LevrStakedToken_v1 } from './LevrStakedToken_v1';
@@ -8,6 +10,8 @@ export { default as V3QuoterV2 } from './V3QuoterV2';
8
10
  export { default as Permit2 } from './Permit2';
9
11
  export { default as StateView } from './StateView';
10
12
  export { default as V4Quoter } from './V4Quoter';
13
+ export { default as ClankerAirdropV2 } from './ClankerAirdropV2';
14
+ export { default as ClankerVault } from './ClankerVault';
11
15
  export { default as IClankerAirdrop } from './IClankerAirdrop';
12
16
  export { default as IClankerHookDynamicFee } from './IClankerHookDynamicFee';
13
17
  export { default as IClankerHookStaticFee } from './IClankerHookStaticFee';
@@ -0,0 +1,18 @@
1
+ import type { BalanceResult, PopPublicClient } from './types';
2
+ export type AirdropRecipient = {
3
+ address: `0x${string}`;
4
+ allocatedAmount: BalanceResult;
5
+ availableAmount: BalanceResult;
6
+ isAvailable: boolean;
7
+ proof: `0x${string}`[];
8
+ isTreasury: boolean;
9
+ error?: string;
10
+ };
11
+ export type AirdropStatus = {
12
+ recipients: AirdropRecipient[];
13
+ deploymentTimestamp?: number;
14
+ lockupDurationHours?: number;
15
+ };
16
+ export declare function getAirdropStatus(publicClient: PopPublicClient, clankerToken: `0x${string}`, treasury: `0x${string}`, tokenDecimals: number, tokenUsdPrice: number | null, ipfsSearchUrl?: string, // Full URL to /api/ipfs-search
17
+ ipfsJsonUrl?: string): Promise<AirdropStatus | null>;
18
+ //# sourceMappingURL=airdrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdrop.d.ts","sourceRoot":"","sources":["../../src/airdrop.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE7D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,KAAK,MAAM,EAAE,CAAA;IACtB,eAAe,EAAE,aAAa,CAAA;IAC9B,eAAe,EAAE,aAAa,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,KAAK,EAAE,KAAK,MAAM,EAAE,EAAE,CAAA;IACtB,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,gBAAgB,EAAE,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,eAAe,EAC7B,YAAY,EAAE,KAAK,MAAM,EAAE,EAC3B,QAAQ,EAAE,KAAK,MAAM,EAAE,EACvB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,+BAA+B;AACvD,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAoL/B"}
@@ -1,3 +1,4 @@
1
+ import type { StandardMerkleTree } from '@openzeppelin/merkle-tree';
1
2
  import type { Clanker } from 'clanker-sdk/v4';
2
3
  import type { PublicClient, WalletClient } from 'viem';
3
4
  import type { LevrClankerDeploymentSchemaType } from './schema';
@@ -14,6 +15,8 @@ export type BuildCalldatasV4ReturnType = {
14
15
  callDatas: CallData[];
15
16
  clankerTokenAddress: `0x${string}`;
16
17
  totalValue: bigint;
18
+ merkleTree: StandardMerkleTree<[string, string]> | null;
19
+ treasury: `0x${string}`;
17
20
  };
18
21
  export declare const clankerV4Factory: Record<number, `0x${string}`>;
19
22
  export declare const buildCalldatasV4: ({ c, clanker, publicClient, wallet, factoryAddress, forwarderAddress, }: BuildCalldatasV4Params) => Promise<BuildCalldatasV4ReturnType>;
@@ -1 +1 @@
1
- {"version":3,"file":"build-calldatas-v4.d.ts","sourceRoot":"","sources":["../../src/build-calldatas-v4.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAMtD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,EAAE,+BAA+B,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;IAC1B,MAAM,EAAE,YAAY,CAAA;IACpB,cAAc,EAAE,KAAK,MAAM,EAAE,CAAA;IAC7B,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,mBAAmB,EAAE,KAAK,MAAM,EAAE,CAAA;IAClC,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,MAAM,EAAE,CAK1D,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAU,yEAOpC,sBAAsB,KAAG,OAAO,CAAC,0BAA0B,CA+F7D,CAAA"}
1
+ {"version":3,"file":"build-calldatas-v4.d.ts","sourceRoot":"","sources":["../../src/build-calldatas-v4.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAMtD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,EAAE,+BAA+B,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,YAAY,CAAA;IAC1B,MAAM,EAAE,YAAY,CAAA;IACpB,cAAc,EAAE,KAAK,MAAM,EAAE,CAAA;IAC7B,gBAAgB,EAAE,KAAK,MAAM,EAAE,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,mBAAmB,EAAE,KAAK,MAAM,EAAE,CAAA;IAClC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,kBAAkB,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAA;IACvD,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,MAAM,EAAE,CAM1D,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAU,yEAOpC,sBAAsB,KAAG,OAAO,CAAC,0BAA0B,CAiG7D,CAAA"}
@@ -1,3 +1,4 @@
1
+ import type { StandardMerkleTree } from '@openzeppelin/merkle-tree';
1
2
  import type { ClankerTokenV4 } from 'clanker-sdk';
2
3
  import type { LevrClankerDeploymentSchemaType } from './schema';
3
4
  type BuildClankerV4Params = {
@@ -7,6 +8,10 @@ type BuildClankerV4Params = {
7
8
  staking: `0x${string}`;
8
9
  chainId: number;
9
10
  };
10
- export declare const buildClankerV4: ({ c, treasuryAddress, deployer, staking, chainId, }: BuildClankerV4Params) => ClankerTokenV4;
11
+ export type BuildClankerV4ReturnType = {
12
+ config: ClankerTokenV4;
13
+ merkleTree: StandardMerkleTree<[string, string]> | null;
14
+ };
15
+ export declare const buildClankerV4: ({ c, treasuryAddress, deployer, staking, chainId, }: BuildClankerV4Params) => BuildClankerV4ReturnType;
11
16
  export {};
12
17
  //# sourceMappingURL=build-clanker-v4.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-clanker-v4.d.ts","sourceRoot":"","sources":["../../src/build-clanker-v4.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAKjD,OAAO,KAAK,EAA+B,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAE5F,KAAK,oBAAoB,GAAG;IAC1B,CAAC,EAAE,+BAA+B,CAAA;IAClC,eAAe,EAAE,KAAK,MAAM,EAAE,CAAA;IAC9B,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB,OAAO,EAAE,KAAK,MAAM,EAAE,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,qDAM5B,oBAAoB,KAAG,cAoBzB,CAAA"}
1
+ {"version":3,"file":"build-clanker-v4.d.ts","sourceRoot":"","sources":["../../src/build-clanker-v4.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAajD,OAAO,KAAK,EAA+B,+BAA+B,EAAE,MAAM,UAAU,CAAA;AAE5F,KAAK,oBAAoB,GAAG;IAC1B,CAAC,EAAE,+BAA+B,CAAA;IAClC,eAAe,EAAE,KAAK,MAAM,EAAE,CAAA;IAC9B,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB,OAAO,EAAE,KAAK,MAAM,EAAE,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,cAAc,CAAA;IACtB,UAAU,EAAE,kBAAkB,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,qDAM5B,oBAAoB,KAAG,wBAyBzB,CAAA"}
@@ -18,16 +18,26 @@ export declare const useProposals: () => import("@tanstack/react-query").UseQuer
18
18
  * Hook to access airdrop status from LevrProvider
19
19
  */
20
20
  export declare const useAirdropStatus: () => import("@tanstack/react-query").UseQueryResult<import("../..").AirdropStatus | null>;
21
+ /**
22
+ * Hook to access and manage governance cycle selection
23
+ */
24
+ export declare const useGovernanceCycle: () => {
25
+ selectedCycleId: bigint | null;
26
+ setSelectedCycleId: (cycleId: bigint | null) => void;
27
+ };
21
28
  export * from './use-clanker';
29
+ export * from './use-configure-splits';
22
30
  export * from './use-fee-receivers';
23
31
  export * from './use-governance';
24
32
  export * from './use-stake';
25
33
  export * from './use-swap';
26
34
  export * from './use-airdrop';
27
35
  export * from './use-deploy';
36
+ export * from './use-factory';
28
37
  export * from './use-pool';
29
38
  export * from './use-prepare';
30
39
  export * from './use-project';
31
40
  export * from './use-proposal';
32
41
  export * from './use-register';
42
+ export * from './use-vault';
33
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/index.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,OAAO,mFAA8B,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU,sFAAiC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,OAAO,uFAA8B,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,8FAAmC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB,4FAAuC,CAAA;AAMpE,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAM1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/index.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,OAAO,mFAA8B,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,UAAU,sFAAiC,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,OAAO,uFAA8B,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,8FAAmC,CAAA;AAE5D;;GAEG;AACH,eAAO,MAAM,gBAAgB,4FAAuC,CAAA;AAEpE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;CAG9B,CAAA;AAMD,cAAc,eAAe,CAAA;AAC7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAM1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA"}
@@ -2,10 +2,12 @@ import type { AirdropStatus, Project } from '../..';
2
2
  export type UseAirdropStatusQueryParams = {
3
3
  project?: Project | null;
4
4
  enabled?: boolean;
5
+ ipfsSearchUrl?: string;
6
+ ipfsJsonUrl?: string;
5
7
  };
6
8
  /**
7
9
  * Hook to fetch airdrop status for a treasury
8
10
  * This should be called separately from project data
9
11
  */
10
- export declare function useAirdropStatusQuery({ project, enabled: e }: UseAirdropStatusQueryParams): import("@tanstack/react-query").UseQueryResult<AirdropStatus | null, Error>;
12
+ export declare function useAirdropStatusQuery({ project, enabled: e, ipfsSearchUrl, ipfsJsonUrl, }: UseAirdropStatusQueryParams): import("@tanstack/react-query").UseQueryResult<AirdropStatus | null, Error>;
11
13
  //# sourceMappingURL=use-airdrop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-airdrop.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-airdrop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGnD,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAQ,EAAE,EAAE,2BAA2B,+EAmBhG"}
1
+ {"version":3,"file":"use-airdrop.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-airdrop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGnD,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,OAAO,EAAE,CAAQ,EACjB,aAAa,EACb,WAAW,GACZ,EAAE,2BAA2B,+EAuB7B"}
@@ -0,0 +1,17 @@
1
+ import type { SplitConfigUI } from '../../fee-receivers';
2
+ export type SplitConfig = SplitConfigUI;
3
+ export type UpdateSplitterParams = {
4
+ clankerToken: `0x${string}`;
5
+ splits: readonly SplitConfigUI[];
6
+ rewardIndex: bigint | number;
7
+ };
8
+ export type UseConfigureSplitsParams = {
9
+ onConfigureSplitsSuccess?: (hash: `0x${string}`) => void;
10
+ onUpdateRecipientSuccess?: (hash: `0x${string}`) => void;
11
+ onRecipientAlreadyActive?: () => void;
12
+ onSplitsUnchanged?: () => void;
13
+ onSuccess?: (hash?: `0x${string}`) => void;
14
+ onError?: (error: Error) => void;
15
+ };
16
+ export declare function useConfigureSplits({ onConfigureSplitsSuccess, onUpdateRecipientSuccess, onRecipientAlreadyActive, onSplitsUnchanged, onSuccess, onError, }?: UseConfigureSplitsParams): import("@tanstack/react-query").UseMutationResult<`0x${string}` | undefined, Error, UpdateSplitterParams, unknown>;
17
+ //# sourceMappingURL=use-configure-splits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-configure-splits.d.ts","sourceRoot":"","sources":["../../../../src/client/hook/use-configure-splits.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAGxD,MAAM,MAAM,WAAW,GAAG,aAAa,CAAA;AAEvC,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,KAAK,MAAM,EAAE,CAAA;IAC3B,MAAM,EAAE,SAAS,aAAa,EAAE,CAAA;IAChC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,CAAA;IACxD,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,CAAA;IACxD,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAA;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,EAAE,KAAK,IAAI,CAAA;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACjC,CAAA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,GAAE,wBAA6B,sHA0C/B"}