sablier 2.0.0-beta.4 → 2.0.0-beta.5

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.
@@ -3,94 +3,692 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sablierMerkleLTAbi = void 0;
4
4
  exports.sablierMerkleLTAbi = [
5
5
  {
6
+ type: "constructor",
6
7
  inputs: [
7
8
  {
9
+ name: "baseParams",
10
+ type: "tuple",
11
+ internalType: "struct MerkleBase.ConstructorParams",
8
12
  components: [
9
13
  {
10
- internalType: "contract IERC20",
11
14
  name: "token",
12
15
  type: "address",
16
+ internalType: "contract IERC20",
13
17
  },
14
18
  {
15
- internalType: "uint40",
16
19
  name: "expiration",
17
20
  type: "uint40",
21
+ internalType: "uint40",
18
22
  },
19
23
  {
20
- internalType: "address",
21
24
  name: "initialAdmin",
22
25
  type: "address",
26
+ internalType: "address",
23
27
  },
24
28
  {
25
- internalType: "string",
26
29
  name: "ipfsCID",
27
30
  type: "string",
31
+ internalType: "string",
28
32
  },
29
33
  {
30
- internalType: "bytes32",
31
34
  name: "merkleRoot",
32
35
  type: "bytes32",
36
+ internalType: "bytes32",
33
37
  },
34
38
  {
35
- internalType: "string",
36
39
  name: "campaignName",
37
40
  type: "string",
41
+ internalType: "string",
38
42
  },
39
43
  {
40
- internalType: "string",
41
44
  name: "shape",
42
45
  type: "string",
46
+ internalType: "string",
43
47
  },
44
48
  ],
45
- internalType: "struct MerkleBase.ConstructorParams",
46
- name: "baseParams",
47
- type: "tuple",
48
49
  },
49
50
  {
50
- internalType: "address",
51
51
  name: "campaignCreator",
52
52
  type: "address",
53
+ internalType: "address",
53
54
  },
54
55
  {
55
- internalType: "contract ISablierLockup",
56
56
  name: "lockup",
57
57
  type: "address",
58
+ internalType: "contract ISablierLockup",
58
59
  },
59
60
  {
60
- internalType: "bool",
61
61
  name: "cancelable",
62
62
  type: "bool",
63
+ internalType: "bool",
63
64
  },
64
65
  {
65
- internalType: "bool",
66
66
  name: "transferable",
67
67
  type: "bool",
68
+ internalType: "bool",
68
69
  },
69
70
  {
70
- internalType: "uint40",
71
71
  name: "streamStartTime",
72
72
  type: "uint40",
73
+ internalType: "uint40",
73
74
  },
74
75
  {
76
+ name: "tranchesWithPercentages",
77
+ type: "tuple[]",
78
+ internalType: "struct MerkleLT.TrancheWithPercentage[]",
75
79
  components: [
76
80
  {
77
- internalType: "UD2x18",
78
81
  name: "unlockPercentage",
79
82
  type: "uint64",
83
+ internalType: "UD2x18",
80
84
  },
81
85
  {
82
- internalType: "uint40",
83
86
  name: "duration",
84
87
  type: "uint40",
88
+ internalType: "uint40",
85
89
  },
86
90
  ],
87
- internalType: "struct MerkleLT.TrancheWithPercentage[]",
88
- name: "tranchesWithPercentages",
91
+ },
92
+ ],
93
+ stateMutability: "nonpayable",
94
+ },
95
+ {
96
+ type: "function",
97
+ name: "EXPIRATION",
98
+ inputs: [],
99
+ outputs: [
100
+ {
101
+ name: "",
102
+ type: "uint40",
103
+ internalType: "uint40",
104
+ },
105
+ ],
106
+ stateMutability: "view",
107
+ },
108
+ {
109
+ type: "function",
110
+ name: "FACTORY",
111
+ inputs: [],
112
+ outputs: [
113
+ {
114
+ name: "",
115
+ type: "address",
116
+ internalType: "address",
117
+ },
118
+ ],
119
+ stateMutability: "view",
120
+ },
121
+ {
122
+ type: "function",
123
+ name: "FEE",
124
+ inputs: [],
125
+ outputs: [
126
+ {
127
+ name: "",
128
+ type: "uint256",
129
+ internalType: "uint256",
130
+ },
131
+ ],
132
+ stateMutability: "view",
133
+ },
134
+ {
135
+ type: "function",
136
+ name: "LOCKUP",
137
+ inputs: [],
138
+ outputs: [
139
+ {
140
+ name: "",
141
+ type: "address",
142
+ internalType: "contract ISablierLockup",
143
+ },
144
+ ],
145
+ stateMutability: "view",
146
+ },
147
+ {
148
+ type: "function",
149
+ name: "MERKLE_ROOT",
150
+ inputs: [],
151
+ outputs: [
152
+ {
153
+ name: "",
154
+ type: "bytes32",
155
+ internalType: "bytes32",
156
+ },
157
+ ],
158
+ stateMutability: "view",
159
+ },
160
+ {
161
+ type: "function",
162
+ name: "STREAM_CANCELABLE",
163
+ inputs: [],
164
+ outputs: [
165
+ {
166
+ name: "",
167
+ type: "bool",
168
+ internalType: "bool",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ },
173
+ {
174
+ type: "function",
175
+ name: "STREAM_START_TIME",
176
+ inputs: [],
177
+ outputs: [
178
+ {
179
+ name: "",
180
+ type: "uint40",
181
+ internalType: "uint40",
182
+ },
183
+ ],
184
+ stateMutability: "view",
185
+ },
186
+ {
187
+ type: "function",
188
+ name: "STREAM_TRANSFERABLE",
189
+ inputs: [],
190
+ outputs: [
191
+ {
192
+ name: "",
193
+ type: "bool",
194
+ internalType: "bool",
195
+ },
196
+ ],
197
+ stateMutability: "view",
198
+ },
199
+ {
200
+ type: "function",
201
+ name: "TOKEN",
202
+ inputs: [],
203
+ outputs: [
204
+ {
205
+ name: "",
206
+ type: "address",
207
+ internalType: "contract IERC20",
208
+ },
209
+ ],
210
+ stateMutability: "view",
211
+ },
212
+ {
213
+ type: "function",
214
+ name: "TOTAL_PERCENTAGE",
215
+ inputs: [],
216
+ outputs: [
217
+ {
218
+ name: "",
219
+ type: "uint64",
220
+ internalType: "uint64",
221
+ },
222
+ ],
223
+ stateMutability: "view",
224
+ },
225
+ {
226
+ type: "function",
227
+ name: "admin",
228
+ inputs: [],
229
+ outputs: [
230
+ {
231
+ name: "",
232
+ type: "address",
233
+ internalType: "address",
234
+ },
235
+ ],
236
+ stateMutability: "view",
237
+ },
238
+ {
239
+ type: "function",
240
+ name: "campaignName",
241
+ inputs: [],
242
+ outputs: [
243
+ {
244
+ name: "",
245
+ type: "string",
246
+ internalType: "string",
247
+ },
248
+ ],
249
+ stateMutability: "view",
250
+ },
251
+ {
252
+ type: "function",
253
+ name: "claim",
254
+ inputs: [
255
+ {
256
+ name: "index",
257
+ type: "uint256",
258
+ internalType: "uint256",
259
+ },
260
+ {
261
+ name: "recipient",
262
+ type: "address",
263
+ internalType: "address",
264
+ },
265
+ {
266
+ name: "amount",
267
+ type: "uint128",
268
+ internalType: "uint128",
269
+ },
270
+ {
271
+ name: "merkleProof",
272
+ type: "bytes32[]",
273
+ internalType: "bytes32[]",
274
+ },
275
+ ],
276
+ outputs: [],
277
+ stateMutability: "payable",
278
+ },
279
+ {
280
+ type: "function",
281
+ name: "clawback",
282
+ inputs: [
283
+ {
284
+ name: "to",
285
+ type: "address",
286
+ internalType: "address",
287
+ },
288
+ {
289
+ name: "amount",
290
+ type: "uint128",
291
+ internalType: "uint128",
292
+ },
293
+ ],
294
+ outputs: [],
295
+ stateMutability: "nonpayable",
296
+ },
297
+ {
298
+ type: "function",
299
+ name: "collectFees",
300
+ inputs: [
301
+ {
302
+ name: "factoryAdmin",
303
+ type: "address",
304
+ internalType: "address",
305
+ },
306
+ ],
307
+ outputs: [
308
+ {
309
+ name: "feeAmount",
310
+ type: "uint256",
311
+ internalType: "uint256",
312
+ },
313
+ ],
314
+ stateMutability: "nonpayable",
315
+ },
316
+ {
317
+ type: "function",
318
+ name: "getFirstClaimTime",
319
+ inputs: [],
320
+ outputs: [
321
+ {
322
+ name: "",
323
+ type: "uint40",
324
+ internalType: "uint40",
325
+ },
326
+ ],
327
+ stateMutability: "view",
328
+ },
329
+ {
330
+ type: "function",
331
+ name: "getTranchesWithPercentages",
332
+ inputs: [],
333
+ outputs: [
334
+ {
335
+ name: "",
89
336
  type: "tuple[]",
337
+ internalType: "struct MerkleLT.TrancheWithPercentage[]",
338
+ components: [
339
+ {
340
+ name: "unlockPercentage",
341
+ type: "uint64",
342
+ internalType: "UD2x18",
343
+ },
344
+ {
345
+ name: "duration",
346
+ type: "uint40",
347
+ internalType: "uint40",
348
+ },
349
+ ],
90
350
  },
91
351
  ],
352
+ stateMutability: "view",
353
+ },
354
+ {
355
+ type: "function",
356
+ name: "hasClaimed",
357
+ inputs: [
358
+ {
359
+ name: "index",
360
+ type: "uint256",
361
+ internalType: "uint256",
362
+ },
363
+ ],
364
+ outputs: [
365
+ {
366
+ name: "",
367
+ type: "bool",
368
+ internalType: "bool",
369
+ },
370
+ ],
371
+ stateMutability: "view",
372
+ },
373
+ {
374
+ type: "function",
375
+ name: "hasExpired",
376
+ inputs: [],
377
+ outputs: [
378
+ {
379
+ name: "",
380
+ type: "bool",
381
+ internalType: "bool",
382
+ },
383
+ ],
384
+ stateMutability: "view",
385
+ },
386
+ {
387
+ type: "function",
388
+ name: "ipfsCID",
389
+ inputs: [],
390
+ outputs: [
391
+ {
392
+ name: "",
393
+ type: "string",
394
+ internalType: "string",
395
+ },
396
+ ],
397
+ stateMutability: "view",
398
+ },
399
+ {
400
+ type: "function",
401
+ name: "shape",
402
+ inputs: [],
403
+ outputs: [
404
+ {
405
+ name: "",
406
+ type: "string",
407
+ internalType: "string",
408
+ },
409
+ ],
410
+ stateMutability: "view",
411
+ },
412
+ {
413
+ type: "function",
414
+ name: "transferAdmin",
415
+ inputs: [
416
+ {
417
+ name: "newAdmin",
418
+ type: "address",
419
+ internalType: "address",
420
+ },
421
+ ],
422
+ outputs: [],
92
423
  stateMutability: "nonpayable",
93
- type: "constructor",
424
+ },
425
+ {
426
+ type: "event",
427
+ name: "Claim",
428
+ inputs: [
429
+ {
430
+ name: "index",
431
+ type: "uint256",
432
+ indexed: false,
433
+ internalType: "uint256",
434
+ },
435
+ {
436
+ name: "recipient",
437
+ type: "address",
438
+ indexed: true,
439
+ internalType: "address",
440
+ },
441
+ {
442
+ name: "amount",
443
+ type: "uint128",
444
+ indexed: false,
445
+ internalType: "uint128",
446
+ },
447
+ {
448
+ name: "streamId",
449
+ type: "uint256",
450
+ indexed: true,
451
+ internalType: "uint256",
452
+ },
453
+ ],
454
+ anonymous: false,
455
+ },
456
+ {
457
+ type: "event",
458
+ name: "Clawback",
459
+ inputs: [
460
+ {
461
+ name: "admin",
462
+ type: "address",
463
+ indexed: true,
464
+ internalType: "address",
465
+ },
466
+ {
467
+ name: "to",
468
+ type: "address",
469
+ indexed: true,
470
+ internalType: "address",
471
+ },
472
+ {
473
+ name: "amount",
474
+ type: "uint128",
475
+ indexed: false,
476
+ internalType: "uint128",
477
+ },
478
+ ],
479
+ anonymous: false,
480
+ },
481
+ {
482
+ type: "event",
483
+ name: "TransferAdmin",
484
+ inputs: [
485
+ {
486
+ name: "oldAdmin",
487
+ type: "address",
488
+ indexed: true,
489
+ internalType: "address",
490
+ },
491
+ {
492
+ name: "newAdmin",
493
+ type: "address",
494
+ indexed: true,
495
+ internalType: "address",
496
+ },
497
+ ],
498
+ anonymous: false,
499
+ },
500
+ {
501
+ type: "error",
502
+ name: "AddressEmptyCode",
503
+ inputs: [
504
+ {
505
+ name: "target",
506
+ type: "address",
507
+ internalType: "address",
508
+ },
509
+ ],
510
+ },
511
+ {
512
+ type: "error",
513
+ name: "AddressInsufficientBalance",
514
+ inputs: [
515
+ {
516
+ name: "account",
517
+ type: "address",
518
+ internalType: "address",
519
+ },
520
+ ],
521
+ },
522
+ {
523
+ type: "error",
524
+ name: "CallerNotAdmin",
525
+ inputs: [
526
+ {
527
+ name: "admin",
528
+ type: "address",
529
+ internalType: "address",
530
+ },
531
+ {
532
+ name: "caller",
533
+ type: "address",
534
+ internalType: "address",
535
+ },
536
+ ],
537
+ },
538
+ {
539
+ type: "error",
540
+ name: "FailedInnerCall",
541
+ inputs: [],
542
+ },
543
+ {
544
+ type: "error",
545
+ name: "PRBMath_MulDiv18_Overflow",
546
+ inputs: [
547
+ {
548
+ name: "x",
549
+ type: "uint256",
550
+ internalType: "uint256",
551
+ },
552
+ {
553
+ name: "y",
554
+ type: "uint256",
555
+ internalType: "uint256",
556
+ },
557
+ ],
558
+ },
559
+ {
560
+ type: "error",
561
+ name: "PRBMath_UD60x18_IntoUint128_Overflow",
562
+ inputs: [
563
+ {
564
+ name: "x",
565
+ type: "uint256",
566
+ internalType: "UD60x18",
567
+ },
568
+ ],
569
+ },
570
+ {
571
+ type: "error",
572
+ name: "SablierMerkleBase_CallerNotFactory",
573
+ inputs: [
574
+ {
575
+ name: "factory",
576
+ type: "address",
577
+ internalType: "address",
578
+ },
579
+ {
580
+ name: "caller",
581
+ type: "address",
582
+ internalType: "address",
583
+ },
584
+ ],
585
+ },
586
+ {
587
+ type: "error",
588
+ name: "SablierMerkleBase_CampaignExpired",
589
+ inputs: [
590
+ {
591
+ name: "blockTimestamp",
592
+ type: "uint256",
593
+ internalType: "uint256",
594
+ },
595
+ {
596
+ name: "expiration",
597
+ type: "uint40",
598
+ internalType: "uint40",
599
+ },
600
+ ],
601
+ },
602
+ {
603
+ type: "error",
604
+ name: "SablierMerkleBase_ClawbackNotAllowed",
605
+ inputs: [
606
+ {
607
+ name: "blockTimestamp",
608
+ type: "uint256",
609
+ internalType: "uint256",
610
+ },
611
+ {
612
+ name: "expiration",
613
+ type: "uint40",
614
+ internalType: "uint40",
615
+ },
616
+ {
617
+ name: "firstClaimTime",
618
+ type: "uint40",
619
+ internalType: "uint40",
620
+ },
621
+ ],
622
+ },
623
+ {
624
+ type: "error",
625
+ name: "SablierMerkleBase_FeeTransferFail",
626
+ inputs: [
627
+ {
628
+ name: "factoryAdmin",
629
+ type: "address",
630
+ internalType: "address",
631
+ },
632
+ {
633
+ name: "feeAmount",
634
+ type: "uint256",
635
+ internalType: "uint256",
636
+ },
637
+ ],
638
+ },
639
+ {
640
+ type: "error",
641
+ name: "SablierMerkleBase_InsufficientFeePayment",
642
+ inputs: [
643
+ {
644
+ name: "feePaid",
645
+ type: "uint256",
646
+ internalType: "uint256",
647
+ },
648
+ {
649
+ name: "fee",
650
+ type: "uint256",
651
+ internalType: "uint256",
652
+ },
653
+ ],
654
+ },
655
+ {
656
+ type: "error",
657
+ name: "SablierMerkleBase_InvalidProof",
658
+ inputs: [],
659
+ },
660
+ {
661
+ type: "error",
662
+ name: "SablierMerkleBase_StreamClaimed",
663
+ inputs: [
664
+ {
665
+ name: "index",
666
+ type: "uint256",
667
+ internalType: "uint256",
668
+ },
669
+ ],
670
+ },
671
+ {
672
+ type: "error",
673
+ name: "SablierMerkleLT_TotalPercentageNotOneHundred",
674
+ inputs: [
675
+ {
676
+ name: "totalPercentage",
677
+ type: "uint64",
678
+ internalType: "uint64",
679
+ },
680
+ ],
681
+ },
682
+ {
683
+ type: "error",
684
+ name: "SafeERC20FailedOperation",
685
+ inputs: [
686
+ {
687
+ name: "token",
688
+ type: "address",
689
+ internalType: "address",
690
+ },
691
+ ],
94
692
  },
95
693
  ];
96
694
  //# sourceMappingURL=SablierMerkleLT.js.map