levr-sdk 0.3.1 → 0.4.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 (115) hide show
  1. package/dist/esm/abis/IClankerFeeLocker.js +215 -0
  2. package/dist/esm/abis/IClankerLpLockerFeeConversion.js +26 -0
  3. package/dist/esm/abis/LevrDeployer_v1.js +86 -0
  4. package/dist/esm/abis/LevrFactory_v1.js +603 -66
  5. package/dist/esm/abis/LevrFeeSplitter_v1.js +5 -58
  6. package/dist/esm/abis/LevrGovernor_v1.js +215 -14
  7. package/dist/esm/abis/LevrStakedToken_v1.js +15 -0
  8. package/dist/esm/abis/LevrStaking_v1.js +318 -63
  9. package/dist/esm/abis/LevrTreasury_v1.js +34 -38
  10. package/dist/esm/abis/index.js +2 -0
  11. package/dist/esm/airdrop.js +29 -14
  12. package/dist/esm/airdrop.js.map +1 -1
  13. package/dist/esm/build-calldatas-v4.js +2 -1
  14. package/dist/esm/build-calldatas-v4.js.map +1 -1
  15. package/dist/esm/build-clanker-v4.js +6 -1
  16. package/dist/esm/build-clanker-v4.js.map +1 -1
  17. package/dist/esm/client/hook/use-project.js +6 -3
  18. package/dist/esm/client/hook/use-project.js.map +1 -1
  19. package/dist/esm/client/hook/use-register.js +1 -1
  20. package/dist/esm/client/hook/use-stake.js +1 -1
  21. package/dist/esm/client/levr-provider.js +43 -72
  22. package/dist/esm/client/levr-provider.js.map +1 -1
  23. package/dist/esm/client/query-keys.js +1 -1
  24. package/dist/esm/client/query-keys.js.map +1 -1
  25. package/dist/esm/constants/clanker.js +84 -0
  26. package/dist/esm/constants/clanker.js.map +1 -0
  27. package/dist/esm/constants/config.js +71 -0
  28. package/dist/esm/constants/config.js.map +1 -0
  29. package/dist/esm/constants/index.js +52 -0
  30. package/dist/esm/constants/index.js.map +1 -0
  31. package/dist/esm/constants/levr.js +34 -0
  32. package/dist/esm/constants/levr.js.map +1 -0
  33. package/dist/esm/constants/uniswap.js +86 -0
  34. package/dist/esm/constants/uniswap.js.map +1 -0
  35. package/dist/esm/deploy-v4.js +1 -1
  36. package/dist/esm/factory.js +84 -7
  37. package/dist/esm/factory.js.map +1 -1
  38. package/dist/esm/fee-receivers.js +1 -1
  39. package/dist/esm/fee-splitter.js +1 -1
  40. package/dist/esm/governance.js +4 -3
  41. package/dist/esm/governance.js.map +1 -1
  42. package/dist/esm/index.js +1 -1
  43. package/dist/esm/pool-key.js +1 -1
  44. package/dist/esm/pool.js +1 -1
  45. package/dist/esm/project.js +194 -55
  46. package/dist/esm/project.js.map +1 -1
  47. package/dist/esm/proposal.js +1 -0
  48. package/dist/esm/proposal.js.map +1 -1
  49. package/dist/esm/quote/v4.js +1 -1
  50. package/dist/esm/schema/levr.schema.js +37 -10
  51. package/dist/esm/schema/levr.schema.js.map +1 -1
  52. package/dist/esm/stake.js +137 -61
  53. package/dist/esm/stake.js.map +1 -1
  54. package/dist/esm/swap-v4.js +1 -1
  55. package/dist/esm/usd-price.js +1 -1
  56. package/dist/esm/user.js +13 -6
  57. package/dist/esm/user.js.map +1 -1
  58. package/dist/esm/util.js +58 -2
  59. package/dist/esm/util.js.map +1 -1
  60. package/dist/esm/vault.js +1 -1
  61. package/dist/types/abis/IClankerFeeLocker.d.ts +169 -0
  62. package/dist/types/abis/IClankerLpLockerFeeConversion.d.ts +20 -0
  63. package/dist/types/abis/LevrDeployer_v1.d.ts +67 -0
  64. package/dist/types/abis/LevrFactory_v1.d.ts +454 -39
  65. package/dist/types/abis/LevrFeeSplitter_v1.d.ts +4 -44
  66. package/dist/types/abis/LevrGovernor_v1.d.ts +172 -14
  67. package/dist/types/abis/LevrStakedToken_v1.d.ts +12 -0
  68. package/dist/types/abis/LevrStaking_v1.d.ts +258 -61
  69. package/dist/types/abis/LevrTreasury_v1.d.ts +29 -31
  70. package/dist/types/abis/index.d.ts +2 -0
  71. package/dist/types/airdrop.d.ts +2 -1
  72. package/dist/types/airdrop.d.ts.map +1 -1
  73. package/dist/types/build-calldatas-v4.d.ts +1 -0
  74. package/dist/types/build-calldatas-v4.d.ts.map +1 -1
  75. package/dist/types/build-clanker-v4.d.ts +2 -1
  76. package/dist/types/build-clanker-v4.d.ts.map +1 -1
  77. package/dist/types/client/hook/use-factory.d.ts +2 -0
  78. package/dist/types/client/hook/use-factory.d.ts.map +1 -1
  79. package/dist/types/client/hook/use-project.d.ts.map +1 -1
  80. package/dist/types/client/levr-provider.d.ts.map +1 -1
  81. package/dist/types/client/query-keys.d.ts +1 -1
  82. package/dist/types/client/query-keys.d.ts.map +1 -1
  83. package/dist/types/constants/clanker.d.ts +31 -0
  84. package/dist/types/constants/clanker.d.ts.map +1 -0
  85. package/dist/types/constants/config.d.ts +71 -0
  86. package/dist/types/constants/config.d.ts.map +1 -0
  87. package/dist/types/constants/index.d.ts +35 -0
  88. package/dist/types/constants/index.d.ts.map +1 -0
  89. package/dist/types/constants/levr.d.ts +17 -0
  90. package/dist/types/constants/levr.d.ts.map +1 -0
  91. package/dist/types/constants/uniswap.d.ts +37 -0
  92. package/dist/types/constants/uniswap.d.ts.map +1 -0
  93. package/dist/types/factory.d.ts +20 -3
  94. package/dist/types/factory.d.ts.map +1 -1
  95. package/dist/types/fee-receivers.d.ts +17 -177
  96. package/dist/types/fee-receivers.d.ts.map +1 -1
  97. package/dist/types/governance.d.ts +2 -0
  98. package/dist/types/governance.d.ts.map +1 -1
  99. package/dist/types/project.d.ts +17 -2
  100. package/dist/types/project.d.ts.map +1 -1
  101. package/dist/types/proposal.d.ts +344 -28
  102. package/dist/types/proposal.d.ts.map +1 -1
  103. package/dist/types/schema/levr.schema.d.ts +21 -0
  104. package/dist/types/schema/levr.schema.d.ts.map +1 -1
  105. package/dist/types/stake.d.ts +20 -34
  106. package/dist/types/stake.d.ts.map +1 -1
  107. package/dist/types/user.d.ts +813 -1
  108. package/dist/types/user.d.ts.map +1 -1
  109. package/dist/types/util.d.ts +4 -0
  110. package/dist/types/util.d.ts.map +1 -1
  111. package/package.json +2 -1
  112. package/dist/esm/constants.js +0 -300
  113. package/dist/esm/constants.js.map +0 -1
  114. package/dist/types/constants.d.ts +0 -177
  115. package/dist/types/constants.d.ts.map +0 -1
@@ -1,6 +1,10 @@
1
1
  declare const _default: readonly [{
2
2
  readonly type: "constructor";
3
3
  readonly inputs: readonly [{
4
+ readonly name: "factory_";
5
+ readonly type: "address";
6
+ readonly internalType: "address";
7
+ }, {
4
8
  readonly name: "trustedForwarder";
5
9
  readonly type: "address";
6
10
  readonly internalType: "address";
@@ -8,22 +12,58 @@ declare const _default: readonly [{
8
12
  readonly stateMutability: "nonpayable";
9
13
  }, {
10
14
  readonly type: "function";
11
- readonly name: "accrueFromTreasury";
15
+ readonly name: "BASIS_POINTS";
16
+ readonly inputs: readonly [];
17
+ readonly outputs: readonly [{
18
+ readonly name: "";
19
+ readonly type: "uint256";
20
+ readonly internalType: "uint256";
21
+ }];
22
+ readonly stateMutability: "view";
23
+ }, {
24
+ readonly type: "function";
25
+ readonly name: "MIN_REWARD_AMOUNT";
26
+ readonly inputs: readonly [];
27
+ readonly outputs: readonly [{
28
+ readonly name: "";
29
+ readonly type: "uint256";
30
+ readonly internalType: "uint256";
31
+ }];
32
+ readonly stateMutability: "view";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "PRECISION";
36
+ readonly inputs: readonly [];
37
+ readonly outputs: readonly [{
38
+ readonly name: "";
39
+ readonly type: "uint256";
40
+ readonly internalType: "uint256";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ }, {
44
+ readonly type: "function";
45
+ readonly name: "SECONDS_PER_DAY";
46
+ readonly inputs: readonly [];
47
+ readonly outputs: readonly [{
48
+ readonly name: "";
49
+ readonly type: "uint256";
50
+ readonly internalType: "uint256";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly name: "accRewardPerShare";
12
56
  readonly inputs: readonly [{
13
- readonly name: "token";
57
+ readonly name: "";
14
58
  readonly type: "address";
15
59
  readonly internalType: "address";
16
- }, {
17
- readonly name: "amount";
60
+ }];
61
+ readonly outputs: readonly [{
62
+ readonly name: "";
18
63
  readonly type: "uint256";
19
64
  readonly internalType: "uint256";
20
- }, {
21
- readonly name: "pullFromTreasury";
22
- readonly type: "bool";
23
- readonly internalType: "bool";
24
65
  }];
25
- readonly outputs: readonly [];
26
- readonly stateMutability: "nonpayable";
66
+ readonly stateMutability: "view";
27
67
  }, {
28
68
  readonly type: "function";
29
69
  readonly name: "accrueRewards";
@@ -78,12 +118,22 @@ declare const _default: readonly [{
78
118
  readonly stateMutability: "view";
79
119
  }, {
80
120
  readonly type: "function";
81
- readonly name: "escrowBalance";
121
+ readonly name: "cleanupFinishedRewardToken";
82
122
  readonly inputs: readonly [{
83
123
  readonly name: "token";
84
124
  readonly type: "address";
85
125
  readonly internalType: "address";
86
126
  }];
127
+ readonly outputs: readonly [];
128
+ readonly stateMutability: "nonpayable";
129
+ }, {
130
+ readonly type: "function";
131
+ readonly name: "escrowBalance";
132
+ readonly inputs: readonly [{
133
+ readonly name: "";
134
+ readonly type: "address";
135
+ readonly internalType: "address";
136
+ }];
87
137
  readonly outputs: readonly [{
88
138
  readonly name: "";
89
139
  readonly type: "uint256";
@@ -102,13 +152,25 @@ declare const _default: readonly [{
102
152
  readonly stateMutability: "view";
103
153
  }, {
104
154
  readonly type: "function";
105
- readonly name: "getClankerFeeLocker";
106
- readonly inputs: readonly [];
107
- readonly outputs: readonly [{
108
- readonly name: "";
155
+ readonly name: "getTokenStreamInfo";
156
+ readonly inputs: readonly [{
157
+ readonly name: "token";
109
158
  readonly type: "address";
110
159
  readonly internalType: "address";
111
160
  }];
161
+ readonly outputs: readonly [{
162
+ readonly name: "streamStart";
163
+ readonly type: "uint64";
164
+ readonly internalType: "uint64";
165
+ }, {
166
+ readonly name: "streamEnd";
167
+ readonly type: "uint64";
168
+ readonly internalType: "uint64";
169
+ }, {
170
+ readonly name: "streamTotal";
171
+ readonly type: "uint256";
172
+ readonly internalType: "uint256";
173
+ }];
112
174
  readonly stateMutability: "view";
113
175
  }, {
114
176
  readonly type: "function";
@@ -124,6 +186,16 @@ declare const _default: readonly [{
124
186
  readonly internalType: "uint256";
125
187
  }];
126
188
  readonly stateMutability: "view";
189
+ }, {
190
+ readonly type: "function";
191
+ readonly name: "getWhitelistedTokens";
192
+ readonly inputs: readonly [];
193
+ readonly outputs: readonly [{
194
+ readonly name: "";
195
+ readonly type: "address[]";
196
+ readonly internalType: "address[]";
197
+ }];
198
+ readonly stateMutability: "view";
127
199
  }, {
128
200
  readonly type: "function";
129
201
  readonly name: "initialize";
@@ -140,17 +212,17 @@ declare const _default: readonly [{
140
212
  readonly type: "address";
141
213
  readonly internalType: "address";
142
214
  }, {
143
- readonly name: "factory_";
144
- readonly type: "address";
145
- readonly internalType: "address";
215
+ readonly name: "initialWhitelistedTokens";
216
+ readonly type: "address[]";
217
+ readonly internalType: "address[]";
146
218
  }];
147
219
  readonly outputs: readonly [];
148
220
  readonly stateMutability: "nonpayable";
149
221
  }, {
150
222
  readonly type: "function";
151
- readonly name: "isTrustedForwarder";
223
+ readonly name: "isTokenWhitelisted";
152
224
  readonly inputs: readonly [{
153
- readonly name: "forwarder";
225
+ readonly name: "token";
154
226
  readonly type: "address";
155
227
  readonly internalType: "address";
156
228
  }];
@@ -162,27 +234,23 @@ declare const _default: readonly [{
162
234
  readonly stateMutability: "view";
163
235
  }, {
164
236
  readonly type: "function";
165
- readonly name: "outstandingRewards";
237
+ readonly name: "isTrustedForwarder";
166
238
  readonly inputs: readonly [{
167
- readonly name: "token";
239
+ readonly name: "forwarder";
168
240
  readonly type: "address";
169
241
  readonly internalType: "address";
170
242
  }];
171
243
  readonly outputs: readonly [{
172
- readonly name: "available";
173
- readonly type: "uint256";
174
- readonly internalType: "uint256";
175
- }, {
176
- readonly name: "pending";
177
- readonly type: "uint256";
178
- readonly internalType: "uint256";
244
+ readonly name: "";
245
+ readonly type: "bool";
246
+ readonly internalType: "bool";
179
247
  }];
180
248
  readonly stateMutability: "view";
181
249
  }, {
182
250
  readonly type: "function";
183
- readonly name: "rewardRatePerSecond";
251
+ readonly name: "lastStakeBlock";
184
252
  readonly inputs: readonly [{
185
- readonly name: "token";
253
+ readonly name: "";
186
254
  readonly type: "address";
187
255
  readonly internalType: "address";
188
256
  }];
@@ -194,21 +262,29 @@ declare const _default: readonly [{
194
262
  readonly stateMutability: "view";
195
263
  }, {
196
264
  readonly type: "function";
197
- readonly name: "stake";
265
+ readonly name: "outstandingRewards";
198
266
  readonly inputs: readonly [{
199
- readonly name: "amount";
267
+ readonly name: "token";
268
+ readonly type: "address";
269
+ readonly internalType: "address";
270
+ }];
271
+ readonly outputs: readonly [{
272
+ readonly name: "available";
200
273
  readonly type: "uint256";
201
274
  readonly internalType: "uint256";
202
275
  }];
203
- readonly outputs: readonly [];
204
- readonly stateMutability: "nonpayable";
276
+ readonly stateMutability: "view";
205
277
  }, {
206
278
  readonly type: "function";
207
- readonly name: "stakeStartTime";
279
+ readonly name: "rewardDebt";
208
280
  readonly inputs: readonly [{
209
281
  readonly name: "";
210
282
  readonly type: "address";
211
283
  readonly internalType: "address";
284
+ }, {
285
+ readonly name: "";
286
+ readonly type: "address";
287
+ readonly internalType: "address";
212
288
  }];
213
289
  readonly outputs: readonly [{
214
290
  readonly name: "";
@@ -218,9 +294,9 @@ declare const _default: readonly [{
218
294
  readonly stateMutability: "view";
219
295
  }, {
220
296
  readonly type: "function";
221
- readonly name: "stakedBalanceOf";
297
+ readonly name: "rewardRatePerSecond";
222
298
  readonly inputs: readonly [{
223
- readonly name: "account";
299
+ readonly name: "token";
224
300
  readonly type: "address";
225
301
  readonly internalType: "address";
226
302
  }];
@@ -232,42 +308,36 @@ declare const _default: readonly [{
232
308
  readonly stateMutability: "view";
233
309
  }, {
234
310
  readonly type: "function";
235
- readonly name: "stakedToken";
236
- readonly inputs: readonly [];
237
- readonly outputs: readonly [{
238
- readonly name: "";
239
- readonly type: "address";
240
- readonly internalType: "address";
311
+ readonly name: "stake";
312
+ readonly inputs: readonly [{
313
+ readonly name: "amount";
314
+ readonly type: "uint256";
315
+ readonly internalType: "uint256";
241
316
  }];
242
- readonly stateMutability: "view";
317
+ readonly outputs: readonly [];
318
+ readonly stateMutability: "nonpayable";
243
319
  }, {
244
320
  readonly type: "function";
245
- readonly name: "streamEnd";
246
- readonly inputs: readonly [];
247
- readonly outputs: readonly [{
321
+ readonly name: "stakeStartTime";
322
+ readonly inputs: readonly [{
248
323
  readonly name: "";
249
- readonly type: "uint64";
250
- readonly internalType: "uint64";
324
+ readonly type: "address";
325
+ readonly internalType: "address";
251
326
  }];
252
- readonly stateMutability: "view";
253
- }, {
254
- readonly type: "function";
255
- readonly name: "streamStart";
256
- readonly inputs: readonly [];
257
327
  readonly outputs: readonly [{
258
328
  readonly name: "";
259
- readonly type: "uint64";
260
- readonly internalType: "uint64";
329
+ readonly type: "uint256";
330
+ readonly internalType: "uint256";
261
331
  }];
262
332
  readonly stateMutability: "view";
263
333
  }, {
264
334
  readonly type: "function";
265
- readonly name: "streamWindowSeconds";
335
+ readonly name: "stakedToken";
266
336
  readonly inputs: readonly [];
267
337
  readonly outputs: readonly [{
268
338
  readonly name: "";
269
- readonly type: "uint32";
270
- readonly internalType: "uint32";
339
+ readonly type: "address";
340
+ readonly internalType: "address";
271
341
  }];
272
342
  readonly stateMutability: "view";
273
343
  }, {
@@ -328,6 +398,56 @@ declare const _default: readonly [{
328
398
  readonly internalType: "uint256";
329
399
  }];
330
400
  readonly stateMutability: "nonpayable";
401
+ }, {
402
+ readonly type: "function";
403
+ readonly name: "unwhitelistToken";
404
+ readonly inputs: readonly [{
405
+ readonly name: "token";
406
+ readonly type: "address";
407
+ readonly internalType: "address";
408
+ }];
409
+ readonly outputs: readonly [];
410
+ readonly stateMutability: "nonpayable";
411
+ }, {
412
+ readonly type: "function";
413
+ readonly name: "whitelistToken";
414
+ readonly inputs: readonly [{
415
+ readonly name: "token";
416
+ readonly type: "address";
417
+ readonly internalType: "address";
418
+ }];
419
+ readonly outputs: readonly [];
420
+ readonly stateMutability: "nonpayable";
421
+ }, {
422
+ readonly type: "event";
423
+ readonly name: "Initialized";
424
+ readonly inputs: readonly [{
425
+ readonly name: "underlying";
426
+ readonly type: "address";
427
+ readonly indexed: true;
428
+ readonly internalType: "address";
429
+ }, {
430
+ readonly name: "stakedToken";
431
+ readonly type: "address";
432
+ readonly indexed: true;
433
+ readonly internalType: "address";
434
+ }, {
435
+ readonly name: "treasury";
436
+ readonly type: "address";
437
+ readonly indexed: true;
438
+ readonly internalType: "address";
439
+ }];
440
+ readonly anonymous: false;
441
+ }, {
442
+ readonly type: "event";
443
+ readonly name: "RewardTokenRemoved";
444
+ readonly inputs: readonly [{
445
+ readonly name: "token";
446
+ readonly type: "address";
447
+ readonly indexed: true;
448
+ readonly internalType: "address";
449
+ }];
450
+ readonly anonymous: false;
331
451
  }, {
332
452
  readonly type: "event";
333
453
  readonly name: "RewardsAccrued";
@@ -342,7 +462,7 @@ declare const _default: readonly [{
342
462
  readonly indexed: false;
343
463
  readonly internalType: "uint256";
344
464
  }, {
345
- readonly name: "newAccPerShare";
465
+ readonly name: "newPoolTotal";
346
466
  readonly type: "uint256";
347
467
  readonly indexed: false;
348
468
  readonly internalType: "uint256";
@@ -392,6 +512,11 @@ declare const _default: readonly [{
392
512
  readonly type: "event";
393
513
  readonly name: "StreamReset";
394
514
  readonly inputs: readonly [{
515
+ readonly name: "token";
516
+ readonly type: "address";
517
+ readonly indexed: true;
518
+ readonly internalType: "address";
519
+ }, {
395
520
  readonly name: "windowSeconds";
396
521
  readonly type: "uint32";
397
522
  readonly indexed: false;
@@ -408,6 +533,26 @@ declare const _default: readonly [{
408
533
  readonly internalType: "uint64";
409
534
  }];
410
535
  readonly anonymous: false;
536
+ }, {
537
+ readonly type: "event";
538
+ readonly name: "TokenUnwhitelisted";
539
+ readonly inputs: readonly [{
540
+ readonly name: "token";
541
+ readonly type: "address";
542
+ readonly indexed: true;
543
+ readonly internalType: "address";
544
+ }];
545
+ readonly anonymous: false;
546
+ }, {
547
+ readonly type: "event";
548
+ readonly name: "TokenWhitelisted";
549
+ readonly inputs: readonly [{
550
+ readonly name: "token";
551
+ readonly type: "address";
552
+ readonly indexed: true;
553
+ readonly internalType: "address";
554
+ }];
555
+ readonly anonymous: false;
411
556
  }, {
412
557
  readonly type: "event";
413
558
  readonly name: "Unstaked";
@@ -432,6 +577,34 @@ declare const _default: readonly [{
432
577
  readonly type: "error";
433
578
  readonly name: "AlreadyInitialized";
434
579
  readonly inputs: readonly [];
580
+ }, {
581
+ readonly type: "error";
582
+ readonly name: "AlreadyWhitelisted";
583
+ readonly inputs: readonly [];
584
+ }, {
585
+ readonly type: "error";
586
+ readonly name: "CannotModifyUnderlying";
587
+ readonly inputs: readonly [];
588
+ }, {
589
+ readonly type: "error";
590
+ readonly name: "CannotRemoveUnderlying";
591
+ readonly inputs: readonly [];
592
+ }, {
593
+ readonly type: "error";
594
+ readonly name: "CannotRemoveWhitelisted";
595
+ readonly inputs: readonly [];
596
+ }, {
597
+ readonly type: "error";
598
+ readonly name: "CannotUnwhitelistUnderlying";
599
+ readonly inputs: readonly [];
600
+ }, {
601
+ readonly type: "error";
602
+ readonly name: "CannotUnwhitelistWithPendingRewards";
603
+ readonly inputs: readonly [];
604
+ }, {
605
+ readonly type: "error";
606
+ readonly name: "CannotWhitelistWithPendingRewards";
607
+ readonly inputs: readonly [];
435
608
  }, {
436
609
  readonly type: "error";
437
610
  readonly name: "InsufficientEscrow";
@@ -448,14 +621,30 @@ declare const _default: readonly [{
448
621
  readonly type: "error";
449
622
  readonly name: "InvalidAmount";
450
623
  readonly inputs: readonly [];
624
+ }, {
625
+ readonly type: "error";
626
+ readonly name: "InvalidTokenDecimals";
627
+ readonly inputs: readonly [];
451
628
  }, {
452
629
  readonly type: "error";
453
630
  readonly name: "OnlyFactory";
454
631
  readonly inputs: readonly [];
632
+ }, {
633
+ readonly type: "error";
634
+ readonly name: "OnlyTokenAdmin";
635
+ readonly inputs: readonly [];
455
636
  }, {
456
637
  readonly type: "error";
457
638
  readonly name: "ReentrancyGuardReentrantCall";
458
639
  readonly inputs: readonly [];
640
+ }, {
641
+ readonly type: "error";
642
+ readonly name: "RewardTooSmall";
643
+ readonly inputs: readonly [];
644
+ }, {
645
+ readonly type: "error";
646
+ readonly name: "RewardsStillPending";
647
+ readonly inputs: readonly [];
459
648
  }, {
460
649
  readonly type: "error";
461
650
  readonly name: "SafeERC20FailedOperation";
@@ -464,6 +653,14 @@ declare const _default: readonly [{
464
653
  readonly type: "address";
465
654
  readonly internalType: "address";
466
655
  }];
656
+ }, {
657
+ readonly type: "error";
658
+ readonly name: "TokenNotRegistered";
659
+ readonly inputs: readonly [];
660
+ }, {
661
+ readonly type: "error";
662
+ readonly name: "TokenNotWhitelisted";
663
+ readonly inputs: readonly [];
467
664
  }, {
468
665
  readonly type: "error";
469
666
  readonly name: "ZeroAddress";
@@ -10,16 +10,6 @@ declare const _default: readonly [{
10
10
  readonly internalType: "address";
11
11
  }];
12
12
  readonly stateMutability: "nonpayable";
13
- }, {
14
- readonly type: "function";
15
- readonly name: "applyBoost";
16
- readonly inputs: readonly [{
17
- readonly name: "amount";
18
- readonly type: "uint256";
19
- readonly internalType: "uint256";
20
- }];
21
- readonly outputs: readonly [];
22
- readonly stateMutability: "nonpayable";
23
13
  }, {
24
14
  readonly type: "function";
25
15
  readonly name: "factory";
@@ -30,16 +20,6 @@ declare const _default: readonly [{
30
20
  readonly internalType: "address";
31
21
  }];
32
22
  readonly stateMutability: "view";
33
- }, {
34
- readonly type: "function";
35
- readonly name: "getUnderlyingBalance";
36
- readonly inputs: readonly [];
37
- readonly outputs: readonly [{
38
- readonly name: "";
39
- readonly type: "uint256";
40
- readonly internalType: "uint256";
41
- }];
42
- readonly stateMutability: "view";
43
23
  }, {
44
24
  readonly type: "function";
45
25
  readonly name: "governor";
@@ -78,20 +58,14 @@ declare const _default: readonly [{
78
58
  readonly internalType: "bool";
79
59
  }];
80
60
  readonly stateMutability: "view";
81
- }, {
82
- readonly type: "function";
83
- readonly name: "staking";
84
- readonly inputs: readonly [];
85
- readonly outputs: readonly [{
86
- readonly name: "";
87
- readonly type: "address";
88
- readonly internalType: "address";
89
- }];
90
- readonly stateMutability: "view";
91
61
  }, {
92
62
  readonly type: "function";
93
63
  readonly name: "transfer";
94
64
  readonly inputs: readonly [{
65
+ readonly name: "token";
66
+ readonly type: "address";
67
+ readonly internalType: "address";
68
+ }, {
95
69
  readonly name: "to";
96
70
  readonly type: "address";
97
71
  readonly internalType: "address";
@@ -137,14 +111,38 @@ declare const _default: readonly [{
137
111
  readonly internalType: "address";
138
112
  }];
139
113
  readonly anonymous: false;
114
+ }, {
115
+ readonly type: "event";
116
+ readonly name: "TransferExecuted";
117
+ readonly inputs: readonly [{
118
+ readonly name: "token";
119
+ readonly type: "address";
120
+ readonly indexed: true;
121
+ readonly internalType: "address";
122
+ }, {
123
+ readonly name: "to";
124
+ readonly type: "address";
125
+ readonly indexed: true;
126
+ readonly internalType: "address";
127
+ }, {
128
+ readonly name: "amount";
129
+ readonly type: "uint256";
130
+ readonly indexed: false;
131
+ readonly internalType: "uint256";
132
+ }];
133
+ readonly anonymous: false;
140
134
  }, {
141
135
  readonly type: "error";
142
- readonly name: "InsufficientStake";
136
+ readonly name: "AlreadyInitialized";
143
137
  readonly inputs: readonly [];
144
138
  }, {
145
139
  readonly type: "error";
146
140
  readonly name: "InvalidAmount";
147
141
  readonly inputs: readonly [];
142
+ }, {
143
+ readonly type: "error";
144
+ readonly name: "OnlyFactory";
145
+ readonly inputs: readonly [];
148
146
  }, {
149
147
  readonly type: "error";
150
148
  readonly name: "OnlyGovernor";
@@ -13,9 +13,11 @@ export { default as V4Quoter } from './V4Quoter';
13
13
  export { default as ClankerAirdropV2 } from './ClankerAirdropV2';
14
14
  export { default as ClankerVault } from './ClankerVault';
15
15
  export { default as IClankerAirdrop } from './IClankerAirdrop';
16
+ export { default as IClankerFeeLocker } from './IClankerFeeLocker';
16
17
  export { default as IClankerHookDynamicFee } from './IClankerHookDynamicFee';
17
18
  export { default as IClankerHookStaticFee } from './IClankerHookStaticFee';
18
19
  export { default as IClankerLPLocker } from './IClankerLPLocker';
19
20
  export { default as IClankerLpLockerMultiple } from './IClankerLpLockerMultiple';
21
+ export { default as IClankerLpLockerFeeConversion } from './IClankerLpLockerFeeConversion';
20
22
  export { default as IClankerToken } from './IClankerToken';
21
23
  export { default as WETH9 } from './WETH9';
@@ -14,5 +14,6 @@ export type AirdropStatus = {
14
14
  lockupDurationHours?: number;
15
15
  };
16
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>;
17
+ ipfsJsonUrl?: string, // Full URL to /api/ipfs-json
18
+ maxBlocksToSearch?: bigint): Promise<AirdropStatus | null>;
18
19
  //# sourceMappingURL=airdrop.d.ts.map
@@ -1 +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,w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G,IAAI,CAAC,CAqM/B"}
@@ -17,6 +17,7 @@ export type BuildCalldatasV4ReturnType = {
17
17
  totalValue: bigint;
18
18
  merkleTree: StandardMerkleTree<[string, string]> | null;
19
19
  treasury: `0x${string}`;
20
+ liquidityPercentage: number;
20
21
  };
21
22
  export declare const clankerV4Factory: Record<number, `0x${string}`>;
22
23
  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":"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,M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M,EAAE,CAM1D,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAU,yEAOpC,sBAAsB,KAAG,OAAO,CAAC,0BAA0B,CAkG7D,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { StandardMerkleTree } from '@openzeppelin/merkle-tree';
2
2
  import type { ClankerTokenV4 } from 'clanker-sdk';
3
- import type { LevrClankerDeploymentSchemaType } from './schema';
3
+ import { type LevrClankerDeploymentSchemaType } from './schema';
4
4
  type BuildClankerV4Params = {
5
5
  c: LevrClankerDeploymentSchemaType;
6
6
  treasuryAddress: `0x${string}`;
@@ -11,6 +11,7 @@ type BuildClankerV4Params = {
11
11
  export type BuildClankerV4ReturnType = {
12
12
  config: ClankerTokenV4;
13
13
  merkleTree: StandardMerkleTree<[string, string]> | null;
14
+ liquidityPercentage: number;
14
15
  };
15
16
  export declare const buildClankerV4: ({ c, treasuryAddress, deployer, staking, chainId, }: BuildClankerV4Params) => BuildClankerV4ReturnType;
16
17
  export {};
@@ -1 +1 @@
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"}
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,EAGL,KAAK,+BAA+B,EACrC,MAAM,UAAU,CAAA;AAEjB,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;IACvD,mBAAmB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,qDAM5B,oBAAoB,KAAG,wBA6BzB,CAAA"}
@@ -15,6 +15,7 @@ export declare function useFactoryConfigQuery(params?: {
15
15
  approvalBps: number;
16
16
  minSTokenBpsToSubmit: number;
17
17
  maxProposalAmountBps: number;
18
+ minimumQuorumBps: number;
18
19
  }> | null, Error>;
19
20
  /**
20
21
  * Hook to access factory config from LevrProvider
@@ -30,5 +31,6 @@ export declare function useFactory(): import("@tanstack/react-query").UseQueryRe
30
31
  approvalBps: number;
31
32
  minSTokenBpsToSubmit: number;
32
33
  maxProposalAmountBps: number;
34
+ minimumQuorumBps: number;
33
35
  }> | null>;
34
36
  //# sourceMappingURL=use-factory.d.ts.map