@streamflow/stream 4.1.0-beta.0 → 4.1.0-beta.1

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.
package/dist/evm/abi.js CHANGED
@@ -3,40 +3,77 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = [
4
4
  {
5
5
  anonymous: false,
6
- inputs: [{ indexed: false, internalType: "address", name: "", type: "address" }],
6
+ inputs: [
7
+ {
8
+ indexed: false,
9
+ internalType: "address",
10
+ name: "",
11
+ type: "address",
12
+ },
13
+ ],
7
14
  name: "ContractCreated",
8
15
  type: "event",
9
16
  },
10
17
  {
11
- inputs: [{ internalType: "address", name: "_stream_id", type: "address" }],
18
+ inputs: [
19
+ {
20
+ internalType: "address",
21
+ name: "_stream_id",
22
+ type: "address",
23
+ },
24
+ ],
12
25
  name: "cancel",
13
26
  outputs: [],
14
27
  stateMutability: "nonpayable",
15
28
  type: "function",
16
29
  },
17
30
  {
18
- inputs: [{ internalType: "uint256", name: "_new_fees", type: "uint256" }],
31
+ inputs: [
32
+ {
33
+ internalType: "uint256",
34
+ name: "_new_fees",
35
+ type: "uint256",
36
+ },
37
+ ],
19
38
  name: "changeStreamflowFees",
20
39
  outputs: [],
21
40
  stateMutability: "nonpayable",
22
41
  type: "function",
23
42
  },
24
43
  {
25
- inputs: [{ internalType: "address payable", name: "_new_treasury", type: "address" }],
44
+ inputs: [
45
+ {
46
+ internalType: "address payable",
47
+ name: "_new_treasury",
48
+ type: "address",
49
+ },
50
+ ],
26
51
  name: "changeTreasury",
27
52
  outputs: [],
28
53
  stateMutability: "nonpayable",
29
54
  type: "function",
30
55
  },
31
56
  {
32
- inputs: [{ internalType: "uint256", name: "_new_fee", type: "uint256" }],
57
+ inputs: [
58
+ {
59
+ internalType: "uint256",
60
+ name: "_new_fee",
61
+ type: "uint256",
62
+ },
63
+ ],
33
64
  name: "changeTxFee",
34
65
  outputs: [],
35
66
  stateMutability: "nonpayable",
36
67
  type: "function",
37
68
  },
38
69
  {
39
- inputs: [{ internalType: "address payable", name: "_new_withdawor", type: "address" }],
70
+ inputs: [
71
+ {
72
+ internalType: "address payable",
73
+ name: "_new_withdawor",
74
+ type: "address",
75
+ },
76
+ ],
40
77
  name: "changeWithdrawor",
41
78
  outputs: [],
42
79
  stateMutability: "nonpayable",
@@ -46,41 +83,134 @@ exports.default = [
46
83
  inputs: [],
47
84
  name: "config",
48
85
  outputs: [
49
- { internalType: "address", name: "admin", type: "address" },
50
- { internalType: "uint256", name: "streamflow_fees", type: "uint256" },
51
- { internalType: "address payable", name: "treasury", type: "address" },
52
- { internalType: "address payable", name: "withdrawor", type: "address" },
53
- { internalType: "uint256", name: "tx_fee", type: "uint256" },
86
+ {
87
+ internalType: "address",
88
+ name: "admin",
89
+ type: "address",
90
+ },
91
+ {
92
+ internalType: "uint256",
93
+ name: "streamflow_fees",
94
+ type: "uint256",
95
+ },
96
+ {
97
+ internalType: "address payable",
98
+ name: "treasury",
99
+ type: "address",
100
+ },
101
+ {
102
+ internalType: "address payable",
103
+ name: "withdrawor",
104
+ type: "address",
105
+ },
106
+ {
107
+ internalType: "uint256",
108
+ name: "tx_fee",
109
+ type: "uint256",
110
+ },
54
111
  ],
55
112
  stateMutability: "view",
56
113
  type: "function",
57
114
  },
58
115
  {
59
116
  inputs: [
60
- { internalType: "contract IERC20", name: "_token", type: "address" },
61
- { internalType: "uint256", name: "_amount", type: "uint256" },
62
- { internalType: "uint256", name: "_period", type: "uint256" },
63
- { internalType: "uint256", name: "_amount_per_period", type: "uint256" },
64
- { internalType: "uint256", name: "_start", type: "uint256" },
65
- { internalType: "uint256", name: "_cliff_amount", type: "uint256" },
117
+ {
118
+ internalType: "contract IERC20",
119
+ name: "_token",
120
+ type: "address",
121
+ },
122
+ {
123
+ internalType: "uint256",
124
+ name: "_amount",
125
+ type: "uint256",
126
+ },
127
+ {
128
+ internalType: "uint256",
129
+ name: "_period",
130
+ type: "uint256",
131
+ },
132
+ {
133
+ internalType: "uint256",
134
+ name: "_amount_per_period",
135
+ type: "uint256",
136
+ },
137
+ {
138
+ internalType: "uint256",
139
+ name: "_start",
140
+ type: "uint256",
141
+ },
142
+ {
143
+ internalType: "uint256",
144
+ name: "_cliff_amount",
145
+ type: "uint256",
146
+ },
66
147
  {
67
148
  components: [
68
- { internalType: "bool", name: "cancelable_by_sender", type: "bool" },
69
- { internalType: "bool", name: "cancelable_by_recipient", type: "bool" },
70
- { internalType: "bool", name: "transferable_by_sender", type: "bool" },
71
- { internalType: "bool", name: "transferable_by_recipient", type: "bool" },
72
- { internalType: "bool", name: "can_topup", type: "bool" },
73
- { internalType: "bool", name: "pausable", type: "bool" },
74
- { internalType: "bool", name: "can_update_rate", type: "bool" },
75
- { internalType: "bool", name: "automatic_withdrawal", type: "bool" },
76
- { internalType: "uint256", name: "withdrawal_frequency", type: "uint256" },
77
- { internalType: "string", name: "contract_name", type: "string" },
149
+ {
150
+ internalType: "bool",
151
+ name: "cancelable_by_sender",
152
+ type: "bool",
153
+ },
154
+ {
155
+ internalType: "bool",
156
+ name: "cancelable_by_recipient",
157
+ type: "bool",
158
+ },
159
+ {
160
+ internalType: "bool",
161
+ name: "transferable_by_sender",
162
+ type: "bool",
163
+ },
164
+ {
165
+ internalType: "bool",
166
+ name: "transferable_by_recipient",
167
+ type: "bool",
168
+ },
169
+ {
170
+ internalType: "bool",
171
+ name: "can_topup",
172
+ type: "bool",
173
+ },
174
+ {
175
+ internalType: "bool",
176
+ name: "pausable",
177
+ type: "bool",
178
+ },
179
+ {
180
+ internalType: "bool",
181
+ name: "can_update_rate",
182
+ type: "bool",
183
+ },
184
+ {
185
+ internalType: "bool",
186
+ name: "automatic_withdrawal",
187
+ type: "bool",
188
+ },
189
+ {
190
+ internalType: "uint256",
191
+ name: "withdrawal_frequency",
192
+ type: "uint256",
193
+ },
194
+ {
195
+ internalType: "string",
196
+ name: "contract_name",
197
+ type: "string",
198
+ },
78
199
  ],
79
200
  internalType: "struct ContractMeta",
80
201
  name: "_meta",
81
202
  type: "tuple",
82
203
  },
83
- { internalType: "address", name: "_recipient", type: "address" },
204
+ {
205
+ internalType: "address",
206
+ name: "_recipient",
207
+ type: "address",
208
+ },
209
+ {
210
+ internalType: "address",
211
+ name: "_partner",
212
+ type: "address",
213
+ },
84
214
  ],
85
215
  name: "create",
86
216
  outputs: [],
@@ -88,7 +218,13 @@ exports.default = [
88
218
  type: "function",
89
219
  },
90
220
  {
91
- inputs: [{ internalType: "address", name: "_address", type: "address" }],
221
+ inputs: [
222
+ {
223
+ internalType: "address",
224
+ name: "_address",
225
+ type: "address",
226
+ },
227
+ ],
92
228
  name: "feesRemove",
93
229
  outputs: [],
94
230
  stateMutability: "nonpayable",
@@ -96,8 +232,21 @@ exports.default = [
96
232
  },
97
233
  {
98
234
  inputs: [
99
- { internalType: "address", name: "_address", type: "address" },
100
- { internalType: "uint256", name: "fees", type: "uint256" },
235
+ {
236
+ internalType: "address",
237
+ name: "_address",
238
+ type: "address",
239
+ },
240
+ {
241
+ internalType: "uint256",
242
+ name: "streamflow_fee",
243
+ type: "uint256",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "partner_fee",
248
+ type: "uint256",
249
+ },
101
250
  ],
102
251
  name: "feesWrite",
103
252
  outputs: [],
@@ -107,7 +256,13 @@ exports.default = [
107
256
  {
108
257
  inputs: [],
109
258
  name: "getAdmin",
110
- outputs: [{ internalType: "address", name: "", type: "address" }],
259
+ outputs: [
260
+ {
261
+ internalType: "address",
262
+ name: "",
263
+ type: "address",
264
+ },
265
+ ],
111
266
  stateMutability: "view",
112
267
  type: "function",
113
268
  },
@@ -115,55 +270,207 @@ exports.default = [
115
270
  inputs: [],
116
271
  name: "getAll",
117
272
  outputs: [
118
- { internalType: "address[]", name: "", type: "address[]" },
273
+ {
274
+ internalType: "address[]",
275
+ name: "",
276
+ type: "address[]",
277
+ },
119
278
  {
120
279
  components: [
121
- { internalType: "contract IERC20", name: "token", type: "address" },
280
+ {
281
+ internalType: "contract IERC20",
282
+ name: "token",
283
+ type: "address",
284
+ },
122
285
  {
123
286
  components: [
124
- { internalType: "bool", name: "cancelable_by_sender", type: "bool" },
125
- { internalType: "bool", name: "cancelable_by_recipient", type: "bool" },
126
- { internalType: "bool", name: "transferable_by_sender", type: "bool" },
127
- { internalType: "bool", name: "transferable_by_recipient", type: "bool" },
128
- { internalType: "bool", name: "can_topup", type: "bool" },
129
- { internalType: "bool", name: "pausable", type: "bool" },
130
- { internalType: "bool", name: "can_update_rate", type: "bool" },
131
- { internalType: "bool", name: "automatic_withdrawal", type: "bool" },
132
- { internalType: "uint256", name: "withdrawal_frequency", type: "uint256" },
133
- { internalType: "string", name: "contract_name", type: "string" },
287
+ {
288
+ internalType: "bool",
289
+ name: "cancelable_by_sender",
290
+ type: "bool",
291
+ },
292
+ {
293
+ internalType: "bool",
294
+ name: "cancelable_by_recipient",
295
+ type: "bool",
296
+ },
297
+ {
298
+ internalType: "bool",
299
+ name: "transferable_by_sender",
300
+ type: "bool",
301
+ },
302
+ {
303
+ internalType: "bool",
304
+ name: "transferable_by_recipient",
305
+ type: "bool",
306
+ },
307
+ {
308
+ internalType: "bool",
309
+ name: "can_topup",
310
+ type: "bool",
311
+ },
312
+ {
313
+ internalType: "bool",
314
+ name: "pausable",
315
+ type: "bool",
316
+ },
317
+ {
318
+ internalType: "bool",
319
+ name: "can_update_rate",
320
+ type: "bool",
321
+ },
322
+ {
323
+ internalType: "bool",
324
+ name: "automatic_withdrawal",
325
+ type: "bool",
326
+ },
327
+ {
328
+ internalType: "uint256",
329
+ name: "withdrawal_frequency",
330
+ type: "uint256",
331
+ },
332
+ {
333
+ internalType: "string",
334
+ name: "contract_name",
335
+ type: "string",
336
+ },
134
337
  ],
135
338
  internalType: "struct ContractMeta",
136
339
  name: "meta",
137
340
  type: "tuple",
138
341
  },
139
- { internalType: "uint256", name: "amount", type: "uint256" },
140
- { internalType: "uint256", name: "period", type: "uint256" },
141
- { internalType: "uint256", name: "amount_per_period", type: "uint256" },
142
- { internalType: "uint256", name: "start", type: "uint256" },
143
- { internalType: "uint256", name: "end", type: "uint256" },
144
- { internalType: "uint256", name: "cliff_amount", type: "uint256" },
145
- { internalType: "uint256", name: "withdrawn", type: "uint256" },
146
- { internalType: "uint256", name: "last_withdrawn_at", type: "uint256" },
147
- { internalType: "uint256", name: "created", type: "uint256" },
148
- { internalType: "uint256", name: "canceled_at", type: "uint256" },
149
- { internalType: "address", name: "recipient", type: "address" },
150
- { internalType: "address", name: "sender", type: "address" },
342
+ {
343
+ internalType: "uint256",
344
+ name: "amount",
345
+ type: "uint256",
346
+ },
347
+ {
348
+ internalType: "uint256",
349
+ name: "period",
350
+ type: "uint256",
351
+ },
352
+ {
353
+ internalType: "uint256",
354
+ name: "amount_per_period",
355
+ type: "uint256",
356
+ },
357
+ {
358
+ internalType: "uint256",
359
+ name: "start",
360
+ type: "uint256",
361
+ },
362
+ {
363
+ internalType: "uint256",
364
+ name: "end",
365
+ type: "uint256",
366
+ },
367
+ {
368
+ internalType: "uint256",
369
+ name: "cliff_amount",
370
+ type: "uint256",
371
+ },
372
+ {
373
+ internalType: "uint256",
374
+ name: "withdrawn",
375
+ type: "uint256",
376
+ },
377
+ {
378
+ internalType: "uint256",
379
+ name: "last_withdrawn_at",
380
+ type: "uint256",
381
+ },
382
+ {
383
+ internalType: "uint256",
384
+ name: "created",
385
+ type: "uint256",
386
+ },
387
+ {
388
+ internalType: "uint256",
389
+ name: "canceled_at",
390
+ type: "uint256",
391
+ },
392
+ {
393
+ internalType: "address",
394
+ name: "recipient",
395
+ type: "address",
396
+ },
397
+ {
398
+ internalType: "address",
399
+ name: "sender",
400
+ type: "address",
401
+ },
402
+ {
403
+ internalType: "address",
404
+ name: "partner",
405
+ type: "address",
406
+ },
151
407
  {
152
408
  components: [
153
- { internalType: "uint256", name: "streamflow_fee_percentage", type: "uint256" },
154
- { internalType: "uint256", name: "streamflow_fee", type: "uint256" },
155
- { internalType: "uint256", name: "streamflow_fee_withdrawn", type: "uint256" },
156
- { internalType: "uint256", name: "tx_fee", type: "uint256" },
409
+ {
410
+ internalType: "uint256",
411
+ name: "streamflow_fee_percentage",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ internalType: "uint256",
416
+ name: "streamflow_fee",
417
+ type: "uint256",
418
+ },
419
+ {
420
+ internalType: "uint256",
421
+ name: "streamflow_fee_withdrawn",
422
+ type: "uint256",
423
+ },
424
+ {
425
+ internalType: "uint256",
426
+ name: "partner_fee_percentage",
427
+ type: "uint256",
428
+ },
429
+ {
430
+ internalType: "uint256",
431
+ name: "partner_fee",
432
+ type: "uint256",
433
+ },
434
+ {
435
+ internalType: "uint256",
436
+ name: "partner_fee_withdrawn",
437
+ type: "uint256",
438
+ },
439
+ {
440
+ internalType: "uint256",
441
+ name: "tx_fee",
442
+ type: "uint256",
443
+ },
157
444
  ],
158
445
  internalType: "struct FeesData",
159
446
  name: "fees",
160
447
  type: "tuple",
161
448
  },
162
- { internalType: "bool", name: "closed", type: "bool" },
163
- { internalType: "uint256", name: "current_pause_start", type: "uint256" },
164
- { internalType: "uint256", name: "pause_cumulative", type: "uint256" },
165
- { internalType: "uint256", name: "last_rate_change_time", type: "uint256" },
166
- { internalType: "uint256", name: "funds_unlocked_at_last_rate_change", type: "uint256" },
449
+ {
450
+ internalType: "bool",
451
+ name: "closed",
452
+ type: "bool",
453
+ },
454
+ {
455
+ internalType: "uint256",
456
+ name: "current_pause_start",
457
+ type: "uint256",
458
+ },
459
+ {
460
+ internalType: "uint256",
461
+ name: "pause_cumulative",
462
+ type: "uint256",
463
+ },
464
+ {
465
+ internalType: "uint256",
466
+ name: "last_rate_change_time",
467
+ type: "uint256",
468
+ },
469
+ {
470
+ internalType: "uint256",
471
+ name: "funds_unlocked_at_last_rate_change",
472
+ type: "uint256",
473
+ },
167
474
  ],
168
475
  internalType: "struct Contract[]",
169
476
  name: "",
@@ -174,57 +481,211 @@ exports.default = [
174
481
  type: "function",
175
482
  },
176
483
  {
177
- inputs: [{ internalType: "address", name: "_id", type: "address" }],
484
+ inputs: [
485
+ {
486
+ internalType: "address",
487
+ name: "_id",
488
+ type: "address",
489
+ },
490
+ ],
178
491
  name: "getById",
179
492
  outputs: [
180
493
  {
181
494
  components: [
182
- { internalType: "contract IERC20", name: "token", type: "address" },
495
+ {
496
+ internalType: "contract IERC20",
497
+ name: "token",
498
+ type: "address",
499
+ },
183
500
  {
184
501
  components: [
185
- { internalType: "bool", name: "cancelable_by_sender", type: "bool" },
186
- { internalType: "bool", name: "cancelable_by_recipient", type: "bool" },
187
- { internalType: "bool", name: "transferable_by_sender", type: "bool" },
188
- { internalType: "bool", name: "transferable_by_recipient", type: "bool" },
189
- { internalType: "bool", name: "can_topup", type: "bool" },
190
- { internalType: "bool", name: "pausable", type: "bool" },
191
- { internalType: "bool", name: "can_update_rate", type: "bool" },
192
- { internalType: "bool", name: "automatic_withdrawal", type: "bool" },
193
- { internalType: "uint256", name: "withdrawal_frequency", type: "uint256" },
194
- { internalType: "string", name: "contract_name", type: "string" },
502
+ {
503
+ internalType: "bool",
504
+ name: "cancelable_by_sender",
505
+ type: "bool",
506
+ },
507
+ {
508
+ internalType: "bool",
509
+ name: "cancelable_by_recipient",
510
+ type: "bool",
511
+ },
512
+ {
513
+ internalType: "bool",
514
+ name: "transferable_by_sender",
515
+ type: "bool",
516
+ },
517
+ {
518
+ internalType: "bool",
519
+ name: "transferable_by_recipient",
520
+ type: "bool",
521
+ },
522
+ {
523
+ internalType: "bool",
524
+ name: "can_topup",
525
+ type: "bool",
526
+ },
527
+ {
528
+ internalType: "bool",
529
+ name: "pausable",
530
+ type: "bool",
531
+ },
532
+ {
533
+ internalType: "bool",
534
+ name: "can_update_rate",
535
+ type: "bool",
536
+ },
537
+ {
538
+ internalType: "bool",
539
+ name: "automatic_withdrawal",
540
+ type: "bool",
541
+ },
542
+ {
543
+ internalType: "uint256",
544
+ name: "withdrawal_frequency",
545
+ type: "uint256",
546
+ },
547
+ {
548
+ internalType: "string",
549
+ name: "contract_name",
550
+ type: "string",
551
+ },
195
552
  ],
196
553
  internalType: "struct ContractMeta",
197
554
  name: "meta",
198
555
  type: "tuple",
199
556
  },
200
- { internalType: "uint256", name: "amount", type: "uint256" },
201
- { internalType: "uint256", name: "period", type: "uint256" },
202
- { internalType: "uint256", name: "amount_per_period", type: "uint256" },
203
- { internalType: "uint256", name: "start", type: "uint256" },
204
- { internalType: "uint256", name: "end", type: "uint256" },
205
- { internalType: "uint256", name: "cliff_amount", type: "uint256" },
206
- { internalType: "uint256", name: "withdrawn", type: "uint256" },
207
- { internalType: "uint256", name: "last_withdrawn_at", type: "uint256" },
208
- { internalType: "uint256", name: "created", type: "uint256" },
209
- { internalType: "uint256", name: "canceled_at", type: "uint256" },
210
- { internalType: "address", name: "recipient", type: "address" },
211
- { internalType: "address", name: "sender", type: "address" },
557
+ {
558
+ internalType: "uint256",
559
+ name: "amount",
560
+ type: "uint256",
561
+ },
562
+ {
563
+ internalType: "uint256",
564
+ name: "period",
565
+ type: "uint256",
566
+ },
567
+ {
568
+ internalType: "uint256",
569
+ name: "amount_per_period",
570
+ type: "uint256",
571
+ },
572
+ {
573
+ internalType: "uint256",
574
+ name: "start",
575
+ type: "uint256",
576
+ },
577
+ {
578
+ internalType: "uint256",
579
+ name: "end",
580
+ type: "uint256",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "cliff_amount",
585
+ type: "uint256",
586
+ },
587
+ {
588
+ internalType: "uint256",
589
+ name: "withdrawn",
590
+ type: "uint256",
591
+ },
592
+ {
593
+ internalType: "uint256",
594
+ name: "last_withdrawn_at",
595
+ type: "uint256",
596
+ },
597
+ {
598
+ internalType: "uint256",
599
+ name: "created",
600
+ type: "uint256",
601
+ },
602
+ {
603
+ internalType: "uint256",
604
+ name: "canceled_at",
605
+ type: "uint256",
606
+ },
607
+ {
608
+ internalType: "address",
609
+ name: "recipient",
610
+ type: "address",
611
+ },
612
+ {
613
+ internalType: "address",
614
+ name: "sender",
615
+ type: "address",
616
+ },
617
+ {
618
+ internalType: "address",
619
+ name: "partner",
620
+ type: "address",
621
+ },
212
622
  {
213
623
  components: [
214
- { internalType: "uint256", name: "streamflow_fee_percentage", type: "uint256" },
215
- { internalType: "uint256", name: "streamflow_fee", type: "uint256" },
216
- { internalType: "uint256", name: "streamflow_fee_withdrawn", type: "uint256" },
217
- { internalType: "uint256", name: "tx_fee", type: "uint256" },
624
+ {
625
+ internalType: "uint256",
626
+ name: "streamflow_fee_percentage",
627
+ type: "uint256",
628
+ },
629
+ {
630
+ internalType: "uint256",
631
+ name: "streamflow_fee",
632
+ type: "uint256",
633
+ },
634
+ {
635
+ internalType: "uint256",
636
+ name: "streamflow_fee_withdrawn",
637
+ type: "uint256",
638
+ },
639
+ {
640
+ internalType: "uint256",
641
+ name: "partner_fee_percentage",
642
+ type: "uint256",
643
+ },
644
+ {
645
+ internalType: "uint256",
646
+ name: "partner_fee",
647
+ type: "uint256",
648
+ },
649
+ {
650
+ internalType: "uint256",
651
+ name: "partner_fee_withdrawn",
652
+ type: "uint256",
653
+ },
654
+ {
655
+ internalType: "uint256",
656
+ name: "tx_fee",
657
+ type: "uint256",
658
+ },
218
659
  ],
219
660
  internalType: "struct FeesData",
220
661
  name: "fees",
221
662
  type: "tuple",
222
663
  },
223
- { internalType: "bool", name: "closed", type: "bool" },
224
- { internalType: "uint256", name: "current_pause_start", type: "uint256" },
225
- { internalType: "uint256", name: "pause_cumulative", type: "uint256" },
226
- { internalType: "uint256", name: "last_rate_change_time", type: "uint256" },
227
- { internalType: "uint256", name: "funds_unlocked_at_last_rate_change", type: "uint256" },
664
+ {
665
+ internalType: "bool",
666
+ name: "closed",
667
+ type: "bool",
668
+ },
669
+ {
670
+ internalType: "uint256",
671
+ name: "current_pause_start",
672
+ type: "uint256",
673
+ },
674
+ {
675
+ internalType: "uint256",
676
+ name: "pause_cumulative",
677
+ type: "uint256",
678
+ },
679
+ {
680
+ internalType: "uint256",
681
+ name: "last_rate_change_time",
682
+ type: "uint256",
683
+ },
684
+ {
685
+ internalType: "uint256",
686
+ name: "funds_unlocked_at_last_rate_change",
687
+ type: "uint256",
688
+ },
228
689
  ],
229
690
  internalType: "struct Contract",
230
691
  name: "",
@@ -235,78 +696,285 @@ exports.default = [
235
696
  type: "function",
236
697
  },
237
698
  {
238
- inputs: [{ internalType: "address", name: "_recipient", type: "address" }],
699
+ inputs: [
700
+ {
701
+ internalType: "address",
702
+ name: "_recipient",
703
+ type: "address",
704
+ },
705
+ ],
239
706
  name: "getByRecipient",
240
- outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
707
+ outputs: [
708
+ {
709
+ internalType: "address[]",
710
+ name: "",
711
+ type: "address[]",
712
+ },
713
+ ],
241
714
  stateMutability: "view",
242
715
  type: "function",
243
716
  },
244
717
  {
245
- inputs: [{ internalType: "address", name: "_sender", type: "address" }],
718
+ inputs: [
719
+ {
720
+ internalType: "address",
721
+ name: "_sender",
722
+ type: "address",
723
+ },
724
+ ],
246
725
  name: "getBySender",
247
- outputs: [{ internalType: "address[]", name: "", type: "address[]" }],
726
+ outputs: [
727
+ {
728
+ internalType: "address[]",
729
+ name: "",
730
+ type: "address[]",
731
+ },
732
+ ],
248
733
  stateMutability: "view",
249
734
  type: "function",
250
735
  },
251
736
  {
252
- inputs: [{ internalType: "address", name: "_address", type: "address" }],
737
+ inputs: [
738
+ {
739
+ internalType: "address",
740
+ name: "_address",
741
+ type: "address",
742
+ },
743
+ ],
253
744
  name: "getFees",
254
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
745
+ outputs: [
746
+ {
747
+ components: [
748
+ {
749
+ internalType: "bool",
750
+ name: "exists",
751
+ type: "bool",
752
+ },
753
+ {
754
+ internalType: "uint256",
755
+ name: "streamflow_fee",
756
+ type: "uint256",
757
+ },
758
+ {
759
+ internalType: "uint256",
760
+ name: "partner_fee",
761
+ type: "uint256",
762
+ },
763
+ ],
764
+ internalType: "struct StreamflowFeeManager.FeeValue",
765
+ name: "",
766
+ type: "tuple",
767
+ },
768
+ ],
255
769
  stateMutability: "view",
256
770
  type: "function",
257
771
  },
258
772
  {
259
- inputs: [{ internalType: "address[]", name: "_ids", type: "address[]" }],
773
+ inputs: [
774
+ {
775
+ internalType: "address[]",
776
+ name: "_ids",
777
+ type: "address[]",
778
+ },
779
+ ],
260
780
  name: "getMultiple",
261
781
  outputs: [
262
782
  {
263
783
  components: [
264
- { internalType: "contract IERC20", name: "token", type: "address" },
784
+ {
785
+ internalType: "contract IERC20",
786
+ name: "token",
787
+ type: "address",
788
+ },
265
789
  {
266
790
  components: [
267
- { internalType: "bool", name: "cancelable_by_sender", type: "bool" },
268
- { internalType: "bool", name: "cancelable_by_recipient", type: "bool" },
269
- { internalType: "bool", name: "transferable_by_sender", type: "bool" },
270
- { internalType: "bool", name: "transferable_by_recipient", type: "bool" },
271
- { internalType: "bool", name: "can_topup", type: "bool" },
272
- { internalType: "bool", name: "pausable", type: "bool" },
273
- { internalType: "bool", name: "can_update_rate", type: "bool" },
274
- { internalType: "bool", name: "automatic_withdrawal", type: "bool" },
275
- { internalType: "uint256", name: "withdrawal_frequency", type: "uint256" },
276
- { internalType: "string", name: "contract_name", type: "string" },
791
+ {
792
+ internalType: "bool",
793
+ name: "cancelable_by_sender",
794
+ type: "bool",
795
+ },
796
+ {
797
+ internalType: "bool",
798
+ name: "cancelable_by_recipient",
799
+ type: "bool",
800
+ },
801
+ {
802
+ internalType: "bool",
803
+ name: "transferable_by_sender",
804
+ type: "bool",
805
+ },
806
+ {
807
+ internalType: "bool",
808
+ name: "transferable_by_recipient",
809
+ type: "bool",
810
+ },
811
+ {
812
+ internalType: "bool",
813
+ name: "can_topup",
814
+ type: "bool",
815
+ },
816
+ {
817
+ internalType: "bool",
818
+ name: "pausable",
819
+ type: "bool",
820
+ },
821
+ {
822
+ internalType: "bool",
823
+ name: "can_update_rate",
824
+ type: "bool",
825
+ },
826
+ {
827
+ internalType: "bool",
828
+ name: "automatic_withdrawal",
829
+ type: "bool",
830
+ },
831
+ {
832
+ internalType: "uint256",
833
+ name: "withdrawal_frequency",
834
+ type: "uint256",
835
+ },
836
+ {
837
+ internalType: "string",
838
+ name: "contract_name",
839
+ type: "string",
840
+ },
277
841
  ],
278
842
  internalType: "struct ContractMeta",
279
843
  name: "meta",
280
844
  type: "tuple",
281
845
  },
282
- { internalType: "uint256", name: "amount", type: "uint256" },
283
- { internalType: "uint256", name: "period", type: "uint256" },
284
- { internalType: "uint256", name: "amount_per_period", type: "uint256" },
285
- { internalType: "uint256", name: "start", type: "uint256" },
286
- { internalType: "uint256", name: "end", type: "uint256" },
287
- { internalType: "uint256", name: "cliff_amount", type: "uint256" },
288
- { internalType: "uint256", name: "withdrawn", type: "uint256" },
289
- { internalType: "uint256", name: "last_withdrawn_at", type: "uint256" },
290
- { internalType: "uint256", name: "created", type: "uint256" },
291
- { internalType: "uint256", name: "canceled_at", type: "uint256" },
292
- { internalType: "address", name: "recipient", type: "address" },
293
- { internalType: "address", name: "sender", type: "address" },
846
+ {
847
+ internalType: "uint256",
848
+ name: "amount",
849
+ type: "uint256",
850
+ },
851
+ {
852
+ internalType: "uint256",
853
+ name: "period",
854
+ type: "uint256",
855
+ },
856
+ {
857
+ internalType: "uint256",
858
+ name: "amount_per_period",
859
+ type: "uint256",
860
+ },
861
+ {
862
+ internalType: "uint256",
863
+ name: "start",
864
+ type: "uint256",
865
+ },
866
+ {
867
+ internalType: "uint256",
868
+ name: "end",
869
+ type: "uint256",
870
+ },
871
+ {
872
+ internalType: "uint256",
873
+ name: "cliff_amount",
874
+ type: "uint256",
875
+ },
876
+ {
877
+ internalType: "uint256",
878
+ name: "withdrawn",
879
+ type: "uint256",
880
+ },
881
+ {
882
+ internalType: "uint256",
883
+ name: "last_withdrawn_at",
884
+ type: "uint256",
885
+ },
886
+ {
887
+ internalType: "uint256",
888
+ name: "created",
889
+ type: "uint256",
890
+ },
891
+ {
892
+ internalType: "uint256",
893
+ name: "canceled_at",
894
+ type: "uint256",
895
+ },
896
+ {
897
+ internalType: "address",
898
+ name: "recipient",
899
+ type: "address",
900
+ },
901
+ {
902
+ internalType: "address",
903
+ name: "sender",
904
+ type: "address",
905
+ },
906
+ {
907
+ internalType: "address",
908
+ name: "partner",
909
+ type: "address",
910
+ },
294
911
  {
295
912
  components: [
296
- { internalType: "uint256", name: "streamflow_fee_percentage", type: "uint256" },
297
- { internalType: "uint256", name: "streamflow_fee", type: "uint256" },
298
- { internalType: "uint256", name: "streamflow_fee_withdrawn", type: "uint256" },
299
- { internalType: "uint256", name: "tx_fee", type: "uint256" },
913
+ {
914
+ internalType: "uint256",
915
+ name: "streamflow_fee_percentage",
916
+ type: "uint256",
917
+ },
918
+ {
919
+ internalType: "uint256",
920
+ name: "streamflow_fee",
921
+ type: "uint256",
922
+ },
923
+ {
924
+ internalType: "uint256",
925
+ name: "streamflow_fee_withdrawn",
926
+ type: "uint256",
927
+ },
928
+ {
929
+ internalType: "uint256",
930
+ name: "partner_fee_percentage",
931
+ type: "uint256",
932
+ },
933
+ {
934
+ internalType: "uint256",
935
+ name: "partner_fee",
936
+ type: "uint256",
937
+ },
938
+ {
939
+ internalType: "uint256",
940
+ name: "partner_fee_withdrawn",
941
+ type: "uint256",
942
+ },
943
+ {
944
+ internalType: "uint256",
945
+ name: "tx_fee",
946
+ type: "uint256",
947
+ },
300
948
  ],
301
949
  internalType: "struct FeesData",
302
950
  name: "fees",
303
951
  type: "tuple",
304
952
  },
305
- { internalType: "bool", name: "closed", type: "bool" },
306
- { internalType: "uint256", name: "current_pause_start", type: "uint256" },
307
- { internalType: "uint256", name: "pause_cumulative", type: "uint256" },
308
- { internalType: "uint256", name: "last_rate_change_time", type: "uint256" },
309
- { internalType: "uint256", name: "funds_unlocked_at_last_rate_change", type: "uint256" },
953
+ {
954
+ internalType: "bool",
955
+ name: "closed",
956
+ type: "bool",
957
+ },
958
+ {
959
+ internalType: "uint256",
960
+ name: "current_pause_start",
961
+ type: "uint256",
962
+ },
963
+ {
964
+ internalType: "uint256",
965
+ name: "pause_cumulative",
966
+ type: "uint256",
967
+ },
968
+ {
969
+ internalType: "uint256",
970
+ name: "last_rate_change_time",
971
+ type: "uint256",
972
+ },
973
+ {
974
+ internalType: "uint256",
975
+ name: "funds_unlocked_at_last_rate_change",
976
+ type: "uint256",
977
+ },
310
978
  ],
311
979
  internalType: "struct Contract[]",
312
980
  name: "",
@@ -316,24 +984,65 @@ exports.default = [
316
984
  stateMutability: "view",
317
985
  type: "function",
318
986
  },
987
+ {
988
+ inputs: [
989
+ {
990
+ internalType: "address",
991
+ name: "_address",
992
+ type: "address",
993
+ },
994
+ ],
995
+ name: "getStreamflowFee",
996
+ outputs: [
997
+ {
998
+ internalType: "uint256",
999
+ name: "",
1000
+ type: "uint256",
1001
+ },
1002
+ ],
1003
+ stateMutability: "view",
1004
+ type: "function",
1005
+ },
319
1006
  {
320
1007
  inputs: [],
321
1008
  name: "getStreamflowFees",
322
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1009
+ outputs: [
1010
+ {
1011
+ internalType: "uint256",
1012
+ name: "",
1013
+ type: "uint256",
1014
+ },
1015
+ ],
323
1016
  stateMutability: "view",
324
1017
  type: "function",
325
1018
  },
326
1019
  {
327
1020
  inputs: [
328
- { internalType: "address", name: "_stream_id", type: "address" },
329
- { internalType: "uint256", name: "_amount", type: "uint256" },
1021
+ {
1022
+ internalType: "address",
1023
+ name: "_stream_id",
1024
+ type: "address",
1025
+ },
1026
+ {
1027
+ internalType: "uint256",
1028
+ name: "_amount",
1029
+ type: "uint256",
1030
+ },
330
1031
  ],
331
1032
  name: "getTopUpWithdrawalFees",
332
1033
  outputs: [
333
1034
  {
334
1035
  components: [
335
- { internalType: "uint256", name: "value", type: "uint256" },
336
- { internalType: "uint256", name: "tx_fee", type: "uint256" },
1036
+ {
1037
+ internalType: "uint256",
1038
+ name: "value",
1039
+ type: "uint256",
1040
+ },
1041
+ {
1042
+ internalType: "uint256",
1043
+ name: "tx_fee",
1044
+ type: "uint256",
1045
+ },
337
1046
  ],
338
1047
  internalType: "struct WithdrawalFeesData",
339
1048
  name: "",
@@ -346,33 +1055,81 @@ exports.default = [
346
1055
  {
347
1056
  inputs: [],
348
1057
  name: "getTreasuryAddress",
349
- outputs: [{ internalType: "address payable", name: "", type: "address" }],
1058
+ outputs: [
1059
+ {
1060
+ internalType: "address payable",
1061
+ name: "",
1062
+ type: "address",
1063
+ },
1064
+ ],
350
1065
  stateMutability: "view",
351
1066
  type: "function",
352
1067
  },
353
1068
  {
354
1069
  inputs: [],
355
1070
  name: "getTxFee",
356
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1071
+ outputs: [
1072
+ {
1073
+ internalType: "uint256",
1074
+ name: "",
1075
+ type: "uint256",
1076
+ },
1077
+ ],
357
1078
  stateMutability: "view",
358
1079
  type: "function",
359
1080
  },
360
1081
  {
361
1082
  inputs: [
362
- { internalType: "uint256", name: "_amount", type: "uint256" },
363
- { internalType: "uint256", name: "_period", type: "uint256" },
364
- { internalType: "uint256", name: "_amount_per_period", type: "uint256" },
365
- { internalType: "uint256", name: "_start", type: "uint256" },
366
- { internalType: "uint256", name: "_cliff_amount", type: "uint256" },
367
- { internalType: "bool", name: "_automatic_withdrawal", type: "bool" },
368
- { internalType: "uint256", name: "_withdrawal_frequency", type: "uint256" },
1083
+ {
1084
+ internalType: "uint256",
1085
+ name: "_amount",
1086
+ type: "uint256",
1087
+ },
1088
+ {
1089
+ internalType: "uint256",
1090
+ name: "_period",
1091
+ type: "uint256",
1092
+ },
1093
+ {
1094
+ internalType: "uint256",
1095
+ name: "_amount_per_period",
1096
+ type: "uint256",
1097
+ },
1098
+ {
1099
+ internalType: "uint256",
1100
+ name: "_start",
1101
+ type: "uint256",
1102
+ },
1103
+ {
1104
+ internalType: "uint256",
1105
+ name: "_cliff_amount",
1106
+ type: "uint256",
1107
+ },
1108
+ {
1109
+ internalType: "bool",
1110
+ name: "_automatic_withdrawal",
1111
+ type: "bool",
1112
+ },
1113
+ {
1114
+ internalType: "uint256",
1115
+ name: "_withdrawal_frequency",
1116
+ type: "uint256",
1117
+ },
369
1118
  ],
370
1119
  name: "getWithdrawalFees",
371
1120
  outputs: [
372
1121
  {
373
1122
  components: [
374
- { internalType: "uint256", name: "value", type: "uint256" },
375
- { internalType: "uint256", name: "tx_fee", type: "uint256" },
1123
+ {
1124
+ internalType: "uint256",
1125
+ name: "value",
1126
+ type: "uint256",
1127
+ },
1128
+ {
1129
+ internalType: "uint256",
1130
+ name: "tx_fee",
1131
+ type: "uint256",
1132
+ },
376
1133
  ],
377
1134
  internalType: "struct WithdrawalFeesData",
378
1135
  name: "",
@@ -385,15 +1142,35 @@ exports.default = [
385
1142
  {
386
1143
  inputs: [],
387
1144
  name: "getWithdraworAddress",
388
- outputs: [{ internalType: "address payable", name: "", type: "address" }],
1145
+ outputs: [
1146
+ {
1147
+ internalType: "address payable",
1148
+ name: "",
1149
+ type: "address",
1150
+ },
1151
+ ],
389
1152
  stateMutability: "view",
390
1153
  type: "function",
391
1154
  },
392
- { inputs: [], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" },
1155
+ {
1156
+ inputs: [],
1157
+ name: "initialize",
1158
+ outputs: [],
1159
+ stateMutability: "nonpayable",
1160
+ type: "function",
1161
+ },
393
1162
  {
394
1163
  inputs: [
395
- { internalType: "address", name: "_stream_id", type: "address" },
396
- { internalType: "uint256", name: "_amount", type: "uint256" },
1164
+ {
1165
+ internalType: "address",
1166
+ name: "_stream_id",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ internalType: "uint256",
1171
+ name: "_amount",
1172
+ type: "uint256",
1173
+ },
397
1174
  ],
398
1175
  name: "topUp",
399
1176
  outputs: [],
@@ -402,8 +1179,16 @@ exports.default = [
402
1179
  },
403
1180
  {
404
1181
  inputs: [
405
- { internalType: "address", name: "_stream_id", type: "address" },
406
- { internalType: "address", name: "new_recipient", type: "address" },
1182
+ {
1183
+ internalType: "address",
1184
+ name: "_stream_id",
1185
+ type: "address",
1186
+ },
1187
+ {
1188
+ internalType: "address",
1189
+ name: "new_recipient",
1190
+ type: "address",
1191
+ },
407
1192
  ],
408
1193
  name: "transfer",
409
1194
  outputs: [],
@@ -411,7 +1196,13 @@ exports.default = [
411
1196
  type: "function",
412
1197
  },
413
1198
  {
414
- inputs: [{ internalType: "address", name: "_new_admin", type: "address" }],
1199
+ inputs: [
1200
+ {
1201
+ internalType: "address",
1202
+ name: "_new_admin",
1203
+ type: "address",
1204
+ },
1205
+ ],
415
1206
  name: "transferAdmin",
416
1207
  outputs: [],
417
1208
  stateMutability: "nonpayable",
@@ -419,10 +1210,26 @@ exports.default = [
419
1210
  },
420
1211
  {
421
1212
  inputs: [
422
- { internalType: "address", name: "_stream_id", type: "address" },
423
- { internalType: "bool[]", name: "_automatic_withdrawal", type: "bool[]" },
424
- { internalType: "uint256[]", name: "_withdrawal_frequency", type: "uint256[]" },
425
- { internalType: "uint256[]", name: "_amount_per_period", type: "uint256[]" },
1213
+ {
1214
+ internalType: "address",
1215
+ name: "_stream_id",
1216
+ type: "address",
1217
+ },
1218
+ {
1219
+ internalType: "bool[]",
1220
+ name: "_automatic_withdrawal",
1221
+ type: "bool[]",
1222
+ },
1223
+ {
1224
+ internalType: "uint256[]",
1225
+ name: "_withdrawal_frequency",
1226
+ type: "uint256[]",
1227
+ },
1228
+ {
1229
+ internalType: "uint256[]",
1230
+ name: "_amount_per_period",
1231
+ type: "uint256[]",
1232
+ },
426
1233
  ],
427
1234
  name: "update",
428
1235
  outputs: [],
@@ -431,8 +1238,16 @@ exports.default = [
431
1238
  },
432
1239
  {
433
1240
  inputs: [
434
- { internalType: "address", name: "_stream_id", type: "address" },
435
- { internalType: "uint256", name: "_amount", type: "uint256" },
1241
+ {
1242
+ internalType: "address",
1243
+ name: "_stream_id",
1244
+ type: "address",
1245
+ },
1246
+ {
1247
+ internalType: "uint256",
1248
+ name: "_amount",
1249
+ type: "uint256",
1250
+ },
436
1251
  ],
437
1252
  name: "withdraw",
438
1253
  outputs: [],