sablier 1.2.0-beta.5 → 1.2.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 (39) hide show
  1. package/package.json +4 -2
  2. package/dist/abi/airdrops/v1.1/SablierV2MerkleStreamer.json +0 -263
  3. package/dist/abi/airdrops/v1.1/SablierV2MerkleStreamerFactory.json +0 -174
  4. package/dist/abi/airdrops/v1.1/SablierV2MerkleStreamerLL.json +0 -423
  5. package/dist/abi/airdrops/v1.2/SablierV2MerkleLL.json +0 -520
  6. package/dist/abi/airdrops/v1.2/SablierV2MerkleLT.json +0 -578
  7. package/dist/abi/airdrops/v1.2/SablierV2MerkleLockup.json +0 -348
  8. package/dist/abi/airdrops/v1.2/SablierV2MerkleLockupFactory.json +0 -419
  9. package/dist/abi/airdrops/v1.3/SablierMerkleBase.json +0 -441
  10. package/dist/abi/airdrops/v1.3/SablierMerkleFactory.json +0 -364
  11. package/dist/abi/airdrops/v1.3/SablierMerkleInstant.json +0 -519
  12. package/dist/abi/airdrops/v1.3/SablierMerkleLL.json +0 -678
  13. package/dist/abi/airdrops/v1.3/SablierMerkleLT.json +0 -690
  14. package/dist/abi/airdrops/v1.3/SablierMerkleLockup.json +0 -651
  15. package/dist/abi/airdrops/v2.0/SablierFactoryMerkleInstant.json +0 -400
  16. package/dist/abi/airdrops/v2.0/SablierFactoryMerkleLL.json +0 -535
  17. package/dist/abi/airdrops/v2.0/SablierFactoryMerkleLT.json +0 -574
  18. package/dist/abi/airdrops/v2.0/SablierFactoryMerkleVCA.json +0 -498
  19. package/dist/abi/airdrops/v2.0/SablierMerkleInstant.json +0 -696
  20. package/dist/abi/airdrops/v2.0/SablierMerkleLL.json +0 -947
  21. package/dist/abi/airdrops/v2.0/SablierMerkleLT.json +0 -917
  22. package/dist/abi/airdrops/v2.0/SablierMerkleVCA.json +0 -843
  23. package/dist/abi/flow/v1.0/SablierFlow.json +0 -2356
  24. package/dist/abi/flow/v1.1/SablierFlow.json +0 -2393
  25. package/dist/abi/flow/v2.0/SablierFlow.json +0 -961
  26. package/dist/abi/lockup/v1.0/SablierV2Lockup.json +0 -1288
  27. package/dist/abi/lockup/v1.0/SablierV2LockupDynamic.json +0 -916
  28. package/dist/abi/lockup/v1.0/SablierV2LockupLinear.json +0 -829
  29. package/dist/abi/lockup/v1.1/SablierV2Lockup.json +0 -1351
  30. package/dist/abi/lockup/v1.1/SablierV2LockupDynamic.json +0 -934
  31. package/dist/abi/lockup/v1.1/SablierV2LockupLinear.json +0 -847
  32. package/dist/abi/lockup/v1.2/SablierV2Lockup.json +0 -1494
  33. package/dist/abi/lockup/v1.2/SablierV2LockupDynamic.json +0 -974
  34. package/dist/abi/lockup/v1.2/SablierV2LockupLinear.json +0 -895
  35. package/dist/abi/lockup/v1.2/SablierV2LockupTranched.json +0 -927
  36. package/dist/abi/lockup/v2.0/SablierBatchLockup.json +0 -570
  37. package/dist/abi/lockup/v2.0/SablierLockup.json +0 -1220
  38. package/dist/abi/lockup/v3.0/SablierBatchLockup.json +0 -674
  39. package/dist/abi/lockup/v3.0/SablierLockup.json +0 -1168
@@ -1,916 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- { "internalType": "address", "name": "initialAdmin", "type": "address" },
5
- { "internalType": "contract ISablierV2Comptroller", "name": "initialComptroller", "type": "address" },
6
- { "internalType": "contract ISablierV2NFTDescriptor", "name": "initialNFTDescriptor", "type": "address" },
7
- { "internalType": "uint256", "name": "maxSegmentCount", "type": "uint256" }
8
- ],
9
- "stateMutability": "nonpayable",
10
- "type": "constructor"
11
- },
12
- {
13
- "inputs": [
14
- { "internalType": "address", "name": "admin", "type": "address" },
15
- { "internalType": "address", "name": "caller", "type": "address" }
16
- ],
17
- "name": "CallerNotAdmin",
18
- "type": "error"
19
- },
20
- { "inputs": [], "name": "DelegateCall", "type": "error" },
21
- {
22
- "inputs": [
23
- { "internalType": "uint256", "name": "x", "type": "uint256" },
24
- { "internalType": "uint256", "name": "y", "type": "uint256" }
25
- ],
26
- "name": "PRBMath_MulDiv18_Overflow",
27
- "type": "error"
28
- },
29
- {
30
- "inputs": [
31
- { "internalType": "uint256", "name": "x", "type": "uint256" },
32
- { "internalType": "uint256", "name": "y", "type": "uint256" },
33
- { "internalType": "uint256", "name": "denominator", "type": "uint256" }
34
- ],
35
- "name": "PRBMath_MulDiv_Overflow",
36
- "type": "error"
37
- },
38
- { "inputs": [], "name": "PRBMath_SD59x18_Div_InputTooSmall", "type": "error" },
39
- {
40
- "inputs": [
41
- { "internalType": "SD59x18", "name": "x", "type": "int256" },
42
- { "internalType": "SD59x18", "name": "y", "type": "int256" }
43
- ],
44
- "name": "PRBMath_SD59x18_Div_Overflow",
45
- "type": "error"
46
- },
47
- {
48
- "inputs": [{ "internalType": "SD59x18", "name": "x", "type": "int256" }],
49
- "name": "PRBMath_SD59x18_Exp2_InputTooBig",
50
- "type": "error"
51
- },
52
- {
53
- "inputs": [{ "internalType": "SD59x18", "name": "x", "type": "int256" }],
54
- "name": "PRBMath_SD59x18_IntoUint256_Underflow",
55
- "type": "error"
56
- },
57
- {
58
- "inputs": [{ "internalType": "SD59x18", "name": "x", "type": "int256" }],
59
- "name": "PRBMath_SD59x18_Log_InputTooSmall",
60
- "type": "error"
61
- },
62
- { "inputs": [], "name": "PRBMath_SD59x18_Mul_InputTooSmall", "type": "error" },
63
- {
64
- "inputs": [
65
- { "internalType": "SD59x18", "name": "x", "type": "int256" },
66
- { "internalType": "SD59x18", "name": "y", "type": "int256" }
67
- ],
68
- "name": "PRBMath_SD59x18_Mul_Overflow",
69
- "type": "error"
70
- },
71
- {
72
- "inputs": [{ "internalType": "contract IERC20", "name": "asset", "type": "address" }],
73
- "name": "SablierV2Base_NoProtocolRevenues",
74
- "type": "error"
75
- },
76
- {
77
- "inputs": [
78
- { "internalType": "uint128", "name": "depositAmount", "type": "uint128" },
79
- { "internalType": "uint128", "name": "segmentAmountsSum", "type": "uint128" }
80
- ],
81
- "name": "SablierV2LockupDynamic_DepositAmountNotEqualToSegmentAmountsSum",
82
- "type": "error"
83
- },
84
- {
85
- "inputs": [{ "internalType": "uint256", "name": "count", "type": "uint256" }],
86
- "name": "SablierV2LockupDynamic_SegmentCountTooHigh",
87
- "type": "error"
88
- },
89
- { "inputs": [], "name": "SablierV2LockupDynamic_SegmentCountZero", "type": "error" },
90
- {
91
- "inputs": [
92
- { "internalType": "uint256", "name": "index", "type": "uint256" },
93
- { "internalType": "uint40", "name": "previousMilestone", "type": "uint40" },
94
- { "internalType": "uint40", "name": "currentMilestone", "type": "uint40" }
95
- ],
96
- "name": "SablierV2LockupDynamic_SegmentMilestonesNotOrdered",
97
- "type": "error"
98
- },
99
- {
100
- "inputs": [
101
- { "internalType": "uint40", "name": "startTime", "type": "uint40" },
102
- { "internalType": "uint40", "name": "firstSegmentMilestone", "type": "uint40" }
103
- ],
104
- "name": "SablierV2LockupDynamic_StartTimeNotLessThanFirstSegmentMilestone",
105
- "type": "error"
106
- },
107
- {
108
- "inputs": [
109
- { "internalType": "UD60x18", "name": "brokerFee", "type": "uint256" },
110
- { "internalType": "UD60x18", "name": "maxFee", "type": "uint256" }
111
- ],
112
- "name": "SablierV2Lockup_BrokerFeeTooHigh",
113
- "type": "error"
114
- },
115
- { "inputs": [], "name": "SablierV2Lockup_DepositAmountZero", "type": "error" },
116
- {
117
- "inputs": [
118
- { "internalType": "uint40", "name": "currentTime", "type": "uint40" },
119
- { "internalType": "uint40", "name": "endTime", "type": "uint40" }
120
- ],
121
- "name": "SablierV2Lockup_EndTimeNotInTheFuture",
122
- "type": "error"
123
- },
124
- {
125
- "inputs": [
126
- { "internalType": "uint256", "name": "streamId", "type": "uint256" },
127
- { "internalType": "address", "name": "sender", "type": "address" },
128
- { "internalType": "address", "name": "to", "type": "address" }
129
- ],
130
- "name": "SablierV2Lockup_InvalidSenderWithdrawal",
131
- "type": "error"
132
- },
133
- {
134
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
135
- "name": "SablierV2Lockup_Null",
136
- "type": "error"
137
- },
138
- {
139
- "inputs": [
140
- { "internalType": "uint256", "name": "streamId", "type": "uint256" },
141
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
142
- { "internalType": "uint128", "name": "withdrawableAmount", "type": "uint128" }
143
- ],
144
- "name": "SablierV2Lockup_Overdraw",
145
- "type": "error"
146
- },
147
- {
148
- "inputs": [
149
- { "internalType": "UD60x18", "name": "protocolFee", "type": "uint256" },
150
- { "internalType": "UD60x18", "name": "maxFee", "type": "uint256" }
151
- ],
152
- "name": "SablierV2Lockup_ProtocolFeeTooHigh",
153
- "type": "error"
154
- },
155
- {
156
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
157
- "name": "SablierV2Lockup_StreamCanceled",
158
- "type": "error"
159
- },
160
- {
161
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
162
- "name": "SablierV2Lockup_StreamDepleted",
163
- "type": "error"
164
- },
165
- {
166
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
167
- "name": "SablierV2Lockup_StreamNotCancelable",
168
- "type": "error"
169
- },
170
- {
171
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
172
- "name": "SablierV2Lockup_StreamNotDepleted",
173
- "type": "error"
174
- },
175
- {
176
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
177
- "name": "SablierV2Lockup_StreamSettled",
178
- "type": "error"
179
- },
180
- {
181
- "inputs": [
182
- { "internalType": "uint256", "name": "streamId", "type": "uint256" },
183
- { "internalType": "address", "name": "caller", "type": "address" }
184
- ],
185
- "name": "SablierV2Lockup_Unauthorized",
186
- "type": "error"
187
- },
188
- {
189
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
190
- "name": "SablierV2Lockup_WithdrawAmountZero",
191
- "type": "error"
192
- },
193
- {
194
- "inputs": [
195
- { "internalType": "uint256", "name": "streamIdsCount", "type": "uint256" },
196
- { "internalType": "uint256", "name": "amountsCount", "type": "uint256" }
197
- ],
198
- "name": "SablierV2Lockup_WithdrawArrayCountsNotEqual",
199
- "type": "error"
200
- },
201
- { "inputs": [], "name": "SablierV2Lockup_WithdrawToZeroAddress", "type": "error" },
202
- {
203
- "anonymous": false,
204
- "inputs": [
205
- { "indexed": true, "internalType": "address", "name": "owner", "type": "address" },
206
- { "indexed": true, "internalType": "address", "name": "approved", "type": "address" },
207
- { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }
208
- ],
209
- "name": "Approval",
210
- "type": "event"
211
- },
212
- {
213
- "anonymous": false,
214
- "inputs": [
215
- { "indexed": true, "internalType": "address", "name": "owner", "type": "address" },
216
- { "indexed": true, "internalType": "address", "name": "operator", "type": "address" },
217
- { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" }
218
- ],
219
- "name": "ApprovalForAll",
220
- "type": "event"
221
- },
222
- {
223
- "anonymous": false,
224
- "inputs": [
225
- { "indexed": false, "internalType": "uint256", "name": "_fromTokenId", "type": "uint256" },
226
- { "indexed": false, "internalType": "uint256", "name": "_toTokenId", "type": "uint256" }
227
- ],
228
- "name": "BatchMetadataUpdate",
229
- "type": "event"
230
- },
231
- {
232
- "anonymous": false,
233
- "inputs": [
234
- { "indexed": true, "internalType": "uint256", "name": "streamId", "type": "uint256" },
235
- { "indexed": true, "internalType": "address", "name": "sender", "type": "address" },
236
- { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" },
237
- { "indexed": false, "internalType": "uint128", "name": "senderAmount", "type": "uint128" },
238
- { "indexed": false, "internalType": "uint128", "name": "recipientAmount", "type": "uint128" }
239
- ],
240
- "name": "CancelLockupStream",
241
- "type": "event"
242
- },
243
- {
244
- "anonymous": false,
245
- "inputs": [
246
- { "indexed": true, "internalType": "address", "name": "admin", "type": "address" },
247
- { "indexed": true, "internalType": "contract IERC20", "name": "asset", "type": "address" },
248
- { "indexed": false, "internalType": "uint128", "name": "protocolRevenues", "type": "uint128" }
249
- ],
250
- "name": "ClaimProtocolRevenues",
251
- "type": "event"
252
- },
253
- {
254
- "anonymous": false,
255
- "inputs": [
256
- { "indexed": false, "internalType": "uint256", "name": "streamId", "type": "uint256" },
257
- { "indexed": false, "internalType": "address", "name": "funder", "type": "address" },
258
- { "indexed": true, "internalType": "address", "name": "sender", "type": "address" },
259
- { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" },
260
- {
261
- "components": [
262
- { "internalType": "uint128", "name": "deposit", "type": "uint128" },
263
- { "internalType": "uint128", "name": "protocolFee", "type": "uint128" },
264
- { "internalType": "uint128", "name": "brokerFee", "type": "uint128" }
265
- ],
266
- "indexed": false,
267
- "internalType": "struct Lockup.CreateAmounts",
268
- "name": "amounts",
269
- "type": "tuple"
270
- },
271
- { "indexed": true, "internalType": "contract IERC20", "name": "asset", "type": "address" },
272
- { "indexed": false, "internalType": "bool", "name": "cancelable", "type": "bool" },
273
- {
274
- "components": [
275
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
276
- { "internalType": "UD2x18", "name": "exponent", "type": "uint64" },
277
- { "internalType": "uint40", "name": "milestone", "type": "uint40" }
278
- ],
279
- "indexed": false,
280
- "internalType": "struct LockupDynamic.Segment[]",
281
- "name": "segments",
282
- "type": "tuple[]"
283
- },
284
- {
285
- "components": [
286
- { "internalType": "uint40", "name": "start", "type": "uint40" },
287
- { "internalType": "uint40", "name": "end", "type": "uint40" }
288
- ],
289
- "indexed": false,
290
- "internalType": "struct LockupDynamic.Range",
291
- "name": "range",
292
- "type": "tuple"
293
- },
294
- { "indexed": false, "internalType": "address", "name": "broker", "type": "address" }
295
- ],
296
- "name": "CreateLockupDynamicStream",
297
- "type": "event"
298
- },
299
- {
300
- "anonymous": false,
301
- "inputs": [{ "indexed": false, "internalType": "uint256", "name": "_tokenId", "type": "uint256" }],
302
- "name": "MetadataUpdate",
303
- "type": "event"
304
- },
305
- {
306
- "anonymous": false,
307
- "inputs": [{ "indexed": true, "internalType": "uint256", "name": "streamId", "type": "uint256" }],
308
- "name": "RenounceLockupStream",
309
- "type": "event"
310
- },
311
- {
312
- "anonymous": false,
313
- "inputs": [
314
- { "indexed": true, "internalType": "address", "name": "admin", "type": "address" },
315
- {
316
- "indexed": false,
317
- "internalType": "contract ISablierV2Comptroller",
318
- "name": "oldComptroller",
319
- "type": "address"
320
- },
321
- {
322
- "indexed": false,
323
- "internalType": "contract ISablierV2Comptroller",
324
- "name": "newComptroller",
325
- "type": "address"
326
- }
327
- ],
328
- "name": "SetComptroller",
329
- "type": "event"
330
- },
331
- {
332
- "anonymous": false,
333
- "inputs": [
334
- { "indexed": true, "internalType": "address", "name": "admin", "type": "address" },
335
- {
336
- "indexed": false,
337
- "internalType": "contract ISablierV2NFTDescriptor",
338
- "name": "oldNFTDescriptor",
339
- "type": "address"
340
- },
341
- {
342
- "indexed": false,
343
- "internalType": "contract ISablierV2NFTDescriptor",
344
- "name": "newNFTDescriptor",
345
- "type": "address"
346
- }
347
- ],
348
- "name": "SetNFTDescriptor",
349
- "type": "event"
350
- },
351
- {
352
- "anonymous": false,
353
- "inputs": [
354
- { "indexed": true, "internalType": "address", "name": "from", "type": "address" },
355
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" },
356
- { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }
357
- ],
358
- "name": "Transfer",
359
- "type": "event"
360
- },
361
- {
362
- "anonymous": false,
363
- "inputs": [
364
- { "indexed": true, "internalType": "address", "name": "oldAdmin", "type": "address" },
365
- { "indexed": true, "internalType": "address", "name": "newAdmin", "type": "address" }
366
- ],
367
- "name": "TransferAdmin",
368
- "type": "event"
369
- },
370
- {
371
- "anonymous": false,
372
- "inputs": [
373
- { "indexed": true, "internalType": "uint256", "name": "streamId", "type": "uint256" },
374
- { "indexed": true, "internalType": "address", "name": "to", "type": "address" },
375
- { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" }
376
- ],
377
- "name": "WithdrawFromLockupStream",
378
- "type": "event"
379
- },
380
- {
381
- "inputs": [],
382
- "name": "MAX_FEE",
383
- "outputs": [{ "internalType": "UD60x18", "name": "", "type": "uint256" }],
384
- "stateMutability": "view",
385
- "type": "function"
386
- },
387
- {
388
- "inputs": [],
389
- "name": "MAX_SEGMENT_COUNT",
390
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
391
- "stateMutability": "view",
392
- "type": "function"
393
- },
394
- {
395
- "inputs": [],
396
- "name": "admin",
397
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
398
- "stateMutability": "view",
399
- "type": "function"
400
- },
401
- {
402
- "inputs": [
403
- { "internalType": "address", "name": "to", "type": "address" },
404
- { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
405
- ],
406
- "name": "approve",
407
- "outputs": [],
408
- "stateMutability": "nonpayable",
409
- "type": "function"
410
- },
411
- {
412
- "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }],
413
- "name": "balanceOf",
414
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
415
- "stateMutability": "view",
416
- "type": "function"
417
- },
418
- {
419
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
420
- "name": "burn",
421
- "outputs": [],
422
- "stateMutability": "nonpayable",
423
- "type": "function"
424
- },
425
- {
426
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
427
- "name": "cancel",
428
- "outputs": [],
429
- "stateMutability": "nonpayable",
430
- "type": "function"
431
- },
432
- {
433
- "inputs": [{ "internalType": "uint256[]", "name": "streamIds", "type": "uint256[]" }],
434
- "name": "cancelMultiple",
435
- "outputs": [],
436
- "stateMutability": "nonpayable",
437
- "type": "function"
438
- },
439
- {
440
- "inputs": [{ "internalType": "contract IERC20", "name": "asset", "type": "address" }],
441
- "name": "claimProtocolRevenues",
442
- "outputs": [],
443
- "stateMutability": "nonpayable",
444
- "type": "function"
445
- },
446
- {
447
- "inputs": [],
448
- "name": "comptroller",
449
- "outputs": [{ "internalType": "contract ISablierV2Comptroller", "name": "", "type": "address" }],
450
- "stateMutability": "view",
451
- "type": "function"
452
- },
453
- {
454
- "inputs": [
455
- {
456
- "components": [
457
- { "internalType": "address", "name": "sender", "type": "address" },
458
- { "internalType": "bool", "name": "cancelable", "type": "bool" },
459
- { "internalType": "address", "name": "recipient", "type": "address" },
460
- { "internalType": "uint128", "name": "totalAmount", "type": "uint128" },
461
- { "internalType": "contract IERC20", "name": "asset", "type": "address" },
462
- {
463
- "components": [
464
- { "internalType": "address", "name": "account", "type": "address" },
465
- { "internalType": "UD60x18", "name": "fee", "type": "uint256" }
466
- ],
467
- "internalType": "struct Broker",
468
- "name": "broker",
469
- "type": "tuple"
470
- },
471
- {
472
- "components": [
473
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
474
- { "internalType": "UD2x18", "name": "exponent", "type": "uint64" },
475
- { "internalType": "uint40", "name": "delta", "type": "uint40" }
476
- ],
477
- "internalType": "struct LockupDynamic.SegmentWithDelta[]",
478
- "name": "segments",
479
- "type": "tuple[]"
480
- }
481
- ],
482
- "internalType": "struct LockupDynamic.CreateWithDeltas",
483
- "name": "params",
484
- "type": "tuple"
485
- }
486
- ],
487
- "name": "createWithDeltas",
488
- "outputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
489
- "stateMutability": "nonpayable",
490
- "type": "function"
491
- },
492
- {
493
- "inputs": [
494
- {
495
- "components": [
496
- { "internalType": "address", "name": "sender", "type": "address" },
497
- { "internalType": "uint40", "name": "startTime", "type": "uint40" },
498
- { "internalType": "bool", "name": "cancelable", "type": "bool" },
499
- { "internalType": "address", "name": "recipient", "type": "address" },
500
- { "internalType": "uint128", "name": "totalAmount", "type": "uint128" },
501
- { "internalType": "contract IERC20", "name": "asset", "type": "address" },
502
- {
503
- "components": [
504
- { "internalType": "address", "name": "account", "type": "address" },
505
- { "internalType": "UD60x18", "name": "fee", "type": "uint256" }
506
- ],
507
- "internalType": "struct Broker",
508
- "name": "broker",
509
- "type": "tuple"
510
- },
511
- {
512
- "components": [
513
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
514
- { "internalType": "UD2x18", "name": "exponent", "type": "uint64" },
515
- { "internalType": "uint40", "name": "milestone", "type": "uint40" }
516
- ],
517
- "internalType": "struct LockupDynamic.Segment[]",
518
- "name": "segments",
519
- "type": "tuple[]"
520
- }
521
- ],
522
- "internalType": "struct LockupDynamic.CreateWithMilestones",
523
- "name": "params",
524
- "type": "tuple"
525
- }
526
- ],
527
- "name": "createWithMilestones",
528
- "outputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
529
- "stateMutability": "nonpayable",
530
- "type": "function"
531
- },
532
- {
533
- "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }],
534
- "name": "getApproved",
535
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
536
- "stateMutability": "view",
537
- "type": "function"
538
- },
539
- {
540
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
541
- "name": "getAsset",
542
- "outputs": [{ "internalType": "contract IERC20", "name": "asset", "type": "address" }],
543
- "stateMutability": "view",
544
- "type": "function"
545
- },
546
- {
547
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
548
- "name": "getDepositedAmount",
549
- "outputs": [{ "internalType": "uint128", "name": "depositedAmount", "type": "uint128" }],
550
- "stateMutability": "view",
551
- "type": "function"
552
- },
553
- {
554
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
555
- "name": "getEndTime",
556
- "outputs": [{ "internalType": "uint40", "name": "endTime", "type": "uint40" }],
557
- "stateMutability": "view",
558
- "type": "function"
559
- },
560
- {
561
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
562
- "name": "getRange",
563
- "outputs": [
564
- {
565
- "components": [
566
- { "internalType": "uint40", "name": "start", "type": "uint40" },
567
- { "internalType": "uint40", "name": "end", "type": "uint40" }
568
- ],
569
- "internalType": "struct LockupDynamic.Range",
570
- "name": "range",
571
- "type": "tuple"
572
- }
573
- ],
574
- "stateMutability": "view",
575
- "type": "function"
576
- },
577
- {
578
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
579
- "name": "getRecipient",
580
- "outputs": [{ "internalType": "address", "name": "recipient", "type": "address" }],
581
- "stateMutability": "view",
582
- "type": "function"
583
- },
584
- {
585
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
586
- "name": "getRefundedAmount",
587
- "outputs": [{ "internalType": "uint128", "name": "refundedAmount", "type": "uint128" }],
588
- "stateMutability": "view",
589
- "type": "function"
590
- },
591
- {
592
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
593
- "name": "getSegments",
594
- "outputs": [
595
- {
596
- "components": [
597
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
598
- { "internalType": "UD2x18", "name": "exponent", "type": "uint64" },
599
- { "internalType": "uint40", "name": "milestone", "type": "uint40" }
600
- ],
601
- "internalType": "struct LockupDynamic.Segment[]",
602
- "name": "segments",
603
- "type": "tuple[]"
604
- }
605
- ],
606
- "stateMutability": "view",
607
- "type": "function"
608
- },
609
- {
610
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
611
- "name": "getSender",
612
- "outputs": [{ "internalType": "address", "name": "sender", "type": "address" }],
613
- "stateMutability": "view",
614
- "type": "function"
615
- },
616
- {
617
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
618
- "name": "getStartTime",
619
- "outputs": [{ "internalType": "uint40", "name": "startTime", "type": "uint40" }],
620
- "stateMutability": "view",
621
- "type": "function"
622
- },
623
- {
624
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
625
- "name": "getStream",
626
- "outputs": [
627
- {
628
- "components": [
629
- { "internalType": "address", "name": "sender", "type": "address" },
630
- { "internalType": "uint40", "name": "startTime", "type": "uint40" },
631
- { "internalType": "uint40", "name": "endTime", "type": "uint40" },
632
- { "internalType": "bool", "name": "isCancelable", "type": "bool" },
633
- { "internalType": "bool", "name": "wasCanceled", "type": "bool" },
634
- { "internalType": "contract IERC20", "name": "asset", "type": "address" },
635
- { "internalType": "bool", "name": "isDepleted", "type": "bool" },
636
- { "internalType": "bool", "name": "isStream", "type": "bool" },
637
- {
638
- "components": [
639
- { "internalType": "uint128", "name": "deposited", "type": "uint128" },
640
- { "internalType": "uint128", "name": "withdrawn", "type": "uint128" },
641
- { "internalType": "uint128", "name": "refunded", "type": "uint128" }
642
- ],
643
- "internalType": "struct Lockup.Amounts",
644
- "name": "amounts",
645
- "type": "tuple"
646
- },
647
- {
648
- "components": [
649
- { "internalType": "uint128", "name": "amount", "type": "uint128" },
650
- { "internalType": "UD2x18", "name": "exponent", "type": "uint64" },
651
- { "internalType": "uint40", "name": "milestone", "type": "uint40" }
652
- ],
653
- "internalType": "struct LockupDynamic.Segment[]",
654
- "name": "segments",
655
- "type": "tuple[]"
656
- }
657
- ],
658
- "internalType": "struct LockupDynamic.Stream",
659
- "name": "stream",
660
- "type": "tuple"
661
- }
662
- ],
663
- "stateMutability": "view",
664
- "type": "function"
665
- },
666
- {
667
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
668
- "name": "getWithdrawnAmount",
669
- "outputs": [{ "internalType": "uint128", "name": "withdrawnAmount", "type": "uint128" }],
670
- "stateMutability": "view",
671
- "type": "function"
672
- },
673
- {
674
- "inputs": [
675
- { "internalType": "address", "name": "owner", "type": "address" },
676
- { "internalType": "address", "name": "operator", "type": "address" }
677
- ],
678
- "name": "isApprovedForAll",
679
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
680
- "stateMutability": "view",
681
- "type": "function"
682
- },
683
- {
684
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
685
- "name": "isCancelable",
686
- "outputs": [{ "internalType": "bool", "name": "result", "type": "bool" }],
687
- "stateMutability": "view",
688
- "type": "function"
689
- },
690
- {
691
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
692
- "name": "isCold",
693
- "outputs": [{ "internalType": "bool", "name": "result", "type": "bool" }],
694
- "stateMutability": "view",
695
- "type": "function"
696
- },
697
- {
698
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
699
- "name": "isDepleted",
700
- "outputs": [{ "internalType": "bool", "name": "result", "type": "bool" }],
701
- "stateMutability": "view",
702
- "type": "function"
703
- },
704
- {
705
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
706
- "name": "isStream",
707
- "outputs": [{ "internalType": "bool", "name": "result", "type": "bool" }],
708
- "stateMutability": "view",
709
- "type": "function"
710
- },
711
- {
712
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
713
- "name": "isWarm",
714
- "outputs": [{ "internalType": "bool", "name": "result", "type": "bool" }],
715
- "stateMutability": "view",
716
- "type": "function"
717
- },
718
- {
719
- "inputs": [],
720
- "name": "name",
721
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
722
- "stateMutability": "view",
723
- "type": "function"
724
- },
725
- {
726
- "inputs": [],
727
- "name": "nextStreamId",
728
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
729
- "stateMutability": "view",
730
- "type": "function"
731
- },
732
- {
733
- "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }],
734
- "name": "ownerOf",
735
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
736
- "stateMutability": "view",
737
- "type": "function"
738
- },
739
- {
740
- "inputs": [{ "internalType": "contract IERC20", "name": "asset", "type": "address" }],
741
- "name": "protocolRevenues",
742
- "outputs": [{ "internalType": "uint128", "name": "revenues", "type": "uint128" }],
743
- "stateMutability": "view",
744
- "type": "function"
745
- },
746
- {
747
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
748
- "name": "refundableAmountOf",
749
- "outputs": [{ "internalType": "uint128", "name": "refundableAmount", "type": "uint128" }],
750
- "stateMutability": "view",
751
- "type": "function"
752
- },
753
- {
754
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
755
- "name": "renounce",
756
- "outputs": [],
757
- "stateMutability": "nonpayable",
758
- "type": "function"
759
- },
760
- {
761
- "inputs": [
762
- { "internalType": "address", "name": "from", "type": "address" },
763
- { "internalType": "address", "name": "to", "type": "address" },
764
- { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
765
- ],
766
- "name": "safeTransferFrom",
767
- "outputs": [],
768
- "stateMutability": "nonpayable",
769
- "type": "function"
770
- },
771
- {
772
- "inputs": [
773
- { "internalType": "address", "name": "from", "type": "address" },
774
- { "internalType": "address", "name": "to", "type": "address" },
775
- { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
776
- { "internalType": "bytes", "name": "data", "type": "bytes" }
777
- ],
778
- "name": "safeTransferFrom",
779
- "outputs": [],
780
- "stateMutability": "nonpayable",
781
- "type": "function"
782
- },
783
- {
784
- "inputs": [
785
- { "internalType": "address", "name": "operator", "type": "address" },
786
- { "internalType": "bool", "name": "approved", "type": "bool" }
787
- ],
788
- "name": "setApprovalForAll",
789
- "outputs": [],
790
- "stateMutability": "nonpayable",
791
- "type": "function"
792
- },
793
- {
794
- "inputs": [{ "internalType": "contract ISablierV2Comptroller", "name": "newComptroller", "type": "address" }],
795
- "name": "setComptroller",
796
- "outputs": [],
797
- "stateMutability": "nonpayable",
798
- "type": "function"
799
- },
800
- {
801
- "inputs": [{ "internalType": "contract ISablierV2NFTDescriptor", "name": "newNFTDescriptor", "type": "address" }],
802
- "name": "setNFTDescriptor",
803
- "outputs": [],
804
- "stateMutability": "nonpayable",
805
- "type": "function"
806
- },
807
- {
808
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
809
- "name": "statusOf",
810
- "outputs": [{ "internalType": "enum Lockup.Status", "name": "status", "type": "uint8" }],
811
- "stateMutability": "view",
812
- "type": "function"
813
- },
814
- {
815
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
816
- "name": "streamedAmountOf",
817
- "outputs": [{ "internalType": "uint128", "name": "streamedAmount", "type": "uint128" }],
818
- "stateMutability": "view",
819
- "type": "function"
820
- },
821
- {
822
- "inputs": [{ "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }],
823
- "name": "supportsInterface",
824
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
825
- "stateMutability": "view",
826
- "type": "function"
827
- },
828
- {
829
- "inputs": [],
830
- "name": "symbol",
831
- "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
832
- "stateMutability": "view",
833
- "type": "function"
834
- },
835
- {
836
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
837
- "name": "tokenURI",
838
- "outputs": [{ "internalType": "string", "name": "uri", "type": "string" }],
839
- "stateMutability": "view",
840
- "type": "function"
841
- },
842
- {
843
- "inputs": [{ "internalType": "address", "name": "newAdmin", "type": "address" }],
844
- "name": "transferAdmin",
845
- "outputs": [],
846
- "stateMutability": "nonpayable",
847
- "type": "function"
848
- },
849
- {
850
- "inputs": [
851
- { "internalType": "address", "name": "from", "type": "address" },
852
- { "internalType": "address", "name": "to", "type": "address" },
853
- { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
854
- ],
855
- "name": "transferFrom",
856
- "outputs": [],
857
- "stateMutability": "nonpayable",
858
- "type": "function"
859
- },
860
- {
861
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
862
- "name": "wasCanceled",
863
- "outputs": [{ "internalType": "bool", "name": "result", "type": "bool" }],
864
- "stateMutability": "view",
865
- "type": "function"
866
- },
867
- {
868
- "inputs": [
869
- { "internalType": "uint256", "name": "streamId", "type": "uint256" },
870
- { "internalType": "address", "name": "to", "type": "address" },
871
- { "internalType": "uint128", "name": "amount", "type": "uint128" }
872
- ],
873
- "name": "withdraw",
874
- "outputs": [],
875
- "stateMutability": "nonpayable",
876
- "type": "function"
877
- },
878
- {
879
- "inputs": [
880
- { "internalType": "uint256", "name": "streamId", "type": "uint256" },
881
- { "internalType": "address", "name": "to", "type": "address" }
882
- ],
883
- "name": "withdrawMax",
884
- "outputs": [],
885
- "stateMutability": "nonpayable",
886
- "type": "function"
887
- },
888
- {
889
- "inputs": [
890
- { "internalType": "uint256", "name": "streamId", "type": "uint256" },
891
- { "internalType": "address", "name": "newRecipient", "type": "address" }
892
- ],
893
- "name": "withdrawMaxAndTransfer",
894
- "outputs": [],
895
- "stateMutability": "nonpayable",
896
- "type": "function"
897
- },
898
- {
899
- "inputs": [
900
- { "internalType": "uint256[]", "name": "streamIds", "type": "uint256[]" },
901
- { "internalType": "address", "name": "to", "type": "address" },
902
- { "internalType": "uint128[]", "name": "amounts", "type": "uint128[]" }
903
- ],
904
- "name": "withdrawMultiple",
905
- "outputs": [],
906
- "stateMutability": "nonpayable",
907
- "type": "function"
908
- },
909
- {
910
- "inputs": [{ "internalType": "uint256", "name": "streamId", "type": "uint256" }],
911
- "name": "withdrawableAmountOf",
912
- "outputs": [{ "internalType": "uint128", "name": "withdrawableAmount", "type": "uint128" }],
913
- "stateMutability": "view",
914
- "type": "function"
915
- }
916
- ]