@streamflow/stream 5.6.2 → 5.6.4-alpha.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 (75) hide show
  1. package/dist/__tests__/aptos/streamClient.spec.d.ts +1 -0
  2. package/dist/__tests__/aptos/streamClient.spec.js +161 -0
  3. package/dist/__tests__/common/GenericStreamClient.spec.d.ts +1 -0
  4. package/dist/__tests__/common/GenericStreamClient.spec.js +44 -0
  5. package/dist/aptos/StreamClient.d.ts +51 -0
  6. package/dist/aptos/StreamClient.js +391 -0
  7. package/dist/aptos/constants.d.ts +8 -0
  8. package/dist/aptos/constants.js +28 -0
  9. package/dist/aptos/index.d.ts +2 -0
  10. package/dist/aptos/index.js +24 -0
  11. package/dist/aptos/types.d.ts +97 -0
  12. package/dist/aptos/types.js +76 -0
  13. package/dist/aptos/utils.d.ts +1 -0
  14. package/dist/aptos/utils.js +12 -0
  15. package/dist/aptos/wallet.d.ts +9 -0
  16. package/dist/aptos/wallet.js +89 -0
  17. package/dist/common/BaseStreamClient.d.ts +13 -0
  18. package/dist/common/BaseStreamClient.js +13 -0
  19. package/dist/common/GenericStreamClient.d.ts +93 -0
  20. package/dist/common/GenericStreamClient.js +114 -0
  21. package/dist/common/constants.d.ts +1 -0
  22. package/dist/common/constants.js +4 -0
  23. package/dist/common/contractUtils.d.ts +47 -0
  24. package/dist/common/contractUtils.js +55 -0
  25. package/dist/common/types.d.ts +252 -0
  26. package/dist/common/types.js +165 -0
  27. package/dist/common/utils.d.ts +22 -0
  28. package/dist/common/utils.js +101 -0
  29. package/dist/evm/StreamClient.d.ts +30 -0
  30. package/dist/evm/StreamClient.js +461 -0
  31. package/dist/evm/abi.d.ts +111 -0
  32. package/dist/evm/abi.js +1257 -0
  33. package/dist/evm/constants.d.ts +20 -0
  34. package/dist/evm/constants.js +39 -0
  35. package/dist/evm/ercAbi.d.ts +39 -0
  36. package/dist/evm/ercAbi.js +224 -0
  37. package/dist/evm/index.d.ts +2 -0
  38. package/dist/evm/index.js +24 -0
  39. package/dist/evm/types.d.ts +93 -0
  40. package/dist/evm/types.js +75 -0
  41. package/dist/evm/utils.d.ts +1 -0
  42. package/dist/evm/utils.js +12 -0
  43. package/dist/index.d.ts +8 -0
  44. package/dist/index.js +41 -0
  45. package/dist/solana/StreamClient.d.ts +72 -0
  46. package/dist/solana/StreamClient.js +927 -0
  47. package/dist/solana/constants.d.ts +22 -0
  48. package/dist/solana/constants.js +50 -0
  49. package/dist/solana/index.d.ts +7 -0
  50. package/dist/solana/index.js +43 -0
  51. package/dist/solana/instructionTypes.d.ts +96 -0
  52. package/dist/solana/instructionTypes.js +2 -0
  53. package/dist/solana/instructions.d.ts +139 -0
  54. package/dist/solana/instructions.js +407 -0
  55. package/dist/solana/layout.d.ts +27 -0
  56. package/dist/solana/layout.js +170 -0
  57. package/dist/solana/timelockIDL.d.ts +22 -0
  58. package/dist/solana/timelockIDL.js +422 -0
  59. package/dist/solana/types.d.ts +292 -0
  60. package/dist/solana/types.js +81 -0
  61. package/dist/solana/utils.d.ts +44 -0
  62. package/dist/solana/utils.js +313 -0
  63. package/dist/sui/StreamClient.d.ts +79 -0
  64. package/dist/sui/StreamClient.js +571 -0
  65. package/dist/sui/constants.d.ts +10 -0
  66. package/dist/sui/constants.js +43 -0
  67. package/dist/sui/index.d.ts +2 -0
  68. package/dist/sui/index.js +23 -0
  69. package/dist/sui/types.d.ts +141 -0
  70. package/dist/sui/types.js +102 -0
  71. package/dist/sui/utils.d.ts +2 -0
  72. package/dist/sui/utils.js +29 -0
  73. package/dist/sui/wallet.d.ts +11 -0
  74. package/dist/sui/wallet.js +75 -0
  75. package/package.json +2 -2
@@ -0,0 +1,1257 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = [
4
+ {
5
+ anonymous: false,
6
+ inputs: [
7
+ {
8
+ indexed: false,
9
+ internalType: "address",
10
+ name: "",
11
+ type: "address",
12
+ },
13
+ ],
14
+ name: "ContractCreated",
15
+ type: "event",
16
+ },
17
+ {
18
+ inputs: [
19
+ {
20
+ internalType: "address",
21
+ name: "_stream_id",
22
+ type: "address",
23
+ },
24
+ ],
25
+ name: "cancel",
26
+ outputs: [],
27
+ stateMutability: "nonpayable",
28
+ type: "function",
29
+ },
30
+ {
31
+ inputs: [
32
+ {
33
+ internalType: "uint256",
34
+ name: "_new_fees",
35
+ type: "uint256",
36
+ },
37
+ ],
38
+ name: "changeStreamflowFees",
39
+ outputs: [],
40
+ stateMutability: "nonpayable",
41
+ type: "function",
42
+ },
43
+ {
44
+ inputs: [
45
+ {
46
+ internalType: "address payable",
47
+ name: "_new_treasury",
48
+ type: "address",
49
+ },
50
+ ],
51
+ name: "changeTreasury",
52
+ outputs: [],
53
+ stateMutability: "nonpayable",
54
+ type: "function",
55
+ },
56
+ {
57
+ inputs: [
58
+ {
59
+ internalType: "uint256",
60
+ name: "_new_fee",
61
+ type: "uint256",
62
+ },
63
+ ],
64
+ name: "changeTxFee",
65
+ outputs: [],
66
+ stateMutability: "nonpayable",
67
+ type: "function",
68
+ },
69
+ {
70
+ inputs: [
71
+ {
72
+ internalType: "address payable",
73
+ name: "_new_withdawor",
74
+ type: "address",
75
+ },
76
+ ],
77
+ name: "changeWithdrawor",
78
+ outputs: [],
79
+ stateMutability: "nonpayable",
80
+ type: "function",
81
+ },
82
+ {
83
+ inputs: [],
84
+ name: "config",
85
+ outputs: [
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
+ },
111
+ ],
112
+ stateMutability: "view",
113
+ type: "function",
114
+ },
115
+ {
116
+ inputs: [
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
+ },
147
+ {
148
+ components: [
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
+ },
199
+ ],
200
+ internalType: "struct ContractMeta",
201
+ name: "_meta",
202
+ type: "tuple",
203
+ },
204
+ {
205
+ internalType: "address",
206
+ name: "_recipient",
207
+ type: "address",
208
+ },
209
+ {
210
+ internalType: "address",
211
+ name: "_partner",
212
+ type: "address",
213
+ },
214
+ ],
215
+ name: "create",
216
+ outputs: [],
217
+ stateMutability: "payable",
218
+ type: "function",
219
+ },
220
+ {
221
+ inputs: [
222
+ {
223
+ internalType: "address",
224
+ name: "_address",
225
+ type: "address",
226
+ },
227
+ ],
228
+ name: "feesRemove",
229
+ outputs: [],
230
+ stateMutability: "nonpayable",
231
+ type: "function",
232
+ },
233
+ {
234
+ inputs: [
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
+ },
250
+ ],
251
+ name: "feesWrite",
252
+ outputs: [],
253
+ stateMutability: "nonpayable",
254
+ type: "function",
255
+ },
256
+ {
257
+ inputs: [],
258
+ name: "getAdmin",
259
+ outputs: [
260
+ {
261
+ internalType: "address",
262
+ name: "",
263
+ type: "address",
264
+ },
265
+ ],
266
+ stateMutability: "view",
267
+ type: "function",
268
+ },
269
+ {
270
+ inputs: [],
271
+ name: "getAll",
272
+ outputs: [
273
+ {
274
+ internalType: "address[]",
275
+ name: "",
276
+ type: "address[]",
277
+ },
278
+ {
279
+ components: [
280
+ {
281
+ internalType: "contract IERC20",
282
+ name: "token",
283
+ type: "address",
284
+ },
285
+ {
286
+ components: [
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
+ },
337
+ ],
338
+ internalType: "struct ContractMeta",
339
+ name: "meta",
340
+ type: "tuple",
341
+ },
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
+ },
407
+ {
408
+ components: [
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
+ },
444
+ ],
445
+ internalType: "struct FeesData",
446
+ name: "fees",
447
+ type: "tuple",
448
+ },
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
+ },
474
+ ],
475
+ internalType: "struct Contract[]",
476
+ name: "",
477
+ type: "tuple[]",
478
+ },
479
+ ],
480
+ stateMutability: "view",
481
+ type: "function",
482
+ },
483
+ {
484
+ inputs: [
485
+ {
486
+ internalType: "address",
487
+ name: "_id",
488
+ type: "address",
489
+ },
490
+ ],
491
+ name: "getById",
492
+ outputs: [
493
+ {
494
+ components: [
495
+ {
496
+ internalType: "contract IERC20",
497
+ name: "token",
498
+ type: "address",
499
+ },
500
+ {
501
+ components: [
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
+ },
552
+ ],
553
+ internalType: "struct ContractMeta",
554
+ name: "meta",
555
+ type: "tuple",
556
+ },
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
+ },
622
+ {
623
+ components: [
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
+ },
659
+ ],
660
+ internalType: "struct FeesData",
661
+ name: "fees",
662
+ type: "tuple",
663
+ },
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
+ },
689
+ ],
690
+ internalType: "struct Contract",
691
+ name: "",
692
+ type: "tuple",
693
+ },
694
+ ],
695
+ stateMutability: "view",
696
+ type: "function",
697
+ },
698
+ {
699
+ inputs: [
700
+ {
701
+ internalType: "address",
702
+ name: "_recipient",
703
+ type: "address",
704
+ },
705
+ ],
706
+ name: "getByRecipient",
707
+ outputs: [
708
+ {
709
+ internalType: "address[]",
710
+ name: "",
711
+ type: "address[]",
712
+ },
713
+ ],
714
+ stateMutability: "view",
715
+ type: "function",
716
+ },
717
+ {
718
+ inputs: [
719
+ {
720
+ internalType: "address",
721
+ name: "_sender",
722
+ type: "address",
723
+ },
724
+ ],
725
+ name: "getBySender",
726
+ outputs: [
727
+ {
728
+ internalType: "address[]",
729
+ name: "",
730
+ type: "address[]",
731
+ },
732
+ ],
733
+ stateMutability: "view",
734
+ type: "function",
735
+ },
736
+ {
737
+ inputs: [
738
+ {
739
+ internalType: "address",
740
+ name: "_address",
741
+ type: "address",
742
+ },
743
+ ],
744
+ name: "getFees",
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
+ ],
769
+ stateMutability: "view",
770
+ type: "function",
771
+ },
772
+ {
773
+ inputs: [
774
+ {
775
+ internalType: "address[]",
776
+ name: "_ids",
777
+ type: "address[]",
778
+ },
779
+ ],
780
+ name: "getMultiple",
781
+ outputs: [
782
+ {
783
+ components: [
784
+ {
785
+ internalType: "contract IERC20",
786
+ name: "token",
787
+ type: "address",
788
+ },
789
+ {
790
+ components: [
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
+ },
841
+ ],
842
+ internalType: "struct ContractMeta",
843
+ name: "meta",
844
+ type: "tuple",
845
+ },
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
+ },
911
+ {
912
+ components: [
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
+ },
948
+ ],
949
+ internalType: "struct FeesData",
950
+ name: "fees",
951
+ type: "tuple",
952
+ },
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
+ },
978
+ ],
979
+ internalType: "struct Contract[]",
980
+ name: "",
981
+ type: "tuple[]",
982
+ },
983
+ ],
984
+ stateMutability: "view",
985
+ type: "function",
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
+ },
1006
+ {
1007
+ inputs: [],
1008
+ name: "getStreamflowFees",
1009
+ outputs: [
1010
+ {
1011
+ internalType: "uint256",
1012
+ name: "",
1013
+ type: "uint256",
1014
+ },
1015
+ ],
1016
+ stateMutability: "view",
1017
+ type: "function",
1018
+ },
1019
+ {
1020
+ inputs: [
1021
+ {
1022
+ internalType: "address",
1023
+ name: "_stream_id",
1024
+ type: "address",
1025
+ },
1026
+ {
1027
+ internalType: "uint256",
1028
+ name: "_amount",
1029
+ type: "uint256",
1030
+ },
1031
+ ],
1032
+ name: "getTopUpWithdrawalFees",
1033
+ outputs: [
1034
+ {
1035
+ components: [
1036
+ {
1037
+ internalType: "uint256",
1038
+ name: "value",
1039
+ type: "uint256",
1040
+ },
1041
+ {
1042
+ internalType: "uint256",
1043
+ name: "tx_fee",
1044
+ type: "uint256",
1045
+ },
1046
+ ],
1047
+ internalType: "struct WithdrawalFeesData",
1048
+ name: "",
1049
+ type: "tuple",
1050
+ },
1051
+ ],
1052
+ stateMutability: "view",
1053
+ type: "function",
1054
+ },
1055
+ {
1056
+ inputs: [],
1057
+ name: "getTreasuryAddress",
1058
+ outputs: [
1059
+ {
1060
+ internalType: "address payable",
1061
+ name: "",
1062
+ type: "address",
1063
+ },
1064
+ ],
1065
+ stateMutability: "view",
1066
+ type: "function",
1067
+ },
1068
+ {
1069
+ inputs: [],
1070
+ name: "getTxFee",
1071
+ outputs: [
1072
+ {
1073
+ internalType: "uint256",
1074
+ name: "",
1075
+ type: "uint256",
1076
+ },
1077
+ ],
1078
+ stateMutability: "view",
1079
+ type: "function",
1080
+ },
1081
+ {
1082
+ inputs: [
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
+ },
1118
+ ],
1119
+ name: "getWithdrawalFees",
1120
+ outputs: [
1121
+ {
1122
+ components: [
1123
+ {
1124
+ internalType: "uint256",
1125
+ name: "value",
1126
+ type: "uint256",
1127
+ },
1128
+ {
1129
+ internalType: "uint256",
1130
+ name: "tx_fee",
1131
+ type: "uint256",
1132
+ },
1133
+ ],
1134
+ internalType: "struct WithdrawalFeesData",
1135
+ name: "",
1136
+ type: "tuple",
1137
+ },
1138
+ ],
1139
+ stateMutability: "view",
1140
+ type: "function",
1141
+ },
1142
+ {
1143
+ inputs: [],
1144
+ name: "getWithdraworAddress",
1145
+ outputs: [
1146
+ {
1147
+ internalType: "address payable",
1148
+ name: "",
1149
+ type: "address",
1150
+ },
1151
+ ],
1152
+ stateMutability: "view",
1153
+ type: "function",
1154
+ },
1155
+ {
1156
+ inputs: [],
1157
+ name: "initialize",
1158
+ outputs: [],
1159
+ stateMutability: "nonpayable",
1160
+ type: "function",
1161
+ },
1162
+ {
1163
+ inputs: [
1164
+ {
1165
+ internalType: "address",
1166
+ name: "_stream_id",
1167
+ type: "address",
1168
+ },
1169
+ {
1170
+ internalType: "uint256",
1171
+ name: "_amount",
1172
+ type: "uint256",
1173
+ },
1174
+ ],
1175
+ name: "topUp",
1176
+ outputs: [],
1177
+ stateMutability: "payable",
1178
+ type: "function",
1179
+ },
1180
+ {
1181
+ inputs: [
1182
+ {
1183
+ internalType: "address",
1184
+ name: "_stream_id",
1185
+ type: "address",
1186
+ },
1187
+ {
1188
+ internalType: "address",
1189
+ name: "new_recipient",
1190
+ type: "address",
1191
+ },
1192
+ ],
1193
+ name: "transfer",
1194
+ outputs: [],
1195
+ stateMutability: "nonpayable",
1196
+ type: "function",
1197
+ },
1198
+ {
1199
+ inputs: [
1200
+ {
1201
+ internalType: "address",
1202
+ name: "_new_admin",
1203
+ type: "address",
1204
+ },
1205
+ ],
1206
+ name: "transferAdmin",
1207
+ outputs: [],
1208
+ stateMutability: "nonpayable",
1209
+ type: "function",
1210
+ },
1211
+ {
1212
+ inputs: [
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
+ },
1233
+ ],
1234
+ name: "update",
1235
+ outputs: [],
1236
+ stateMutability: "payable",
1237
+ type: "function",
1238
+ },
1239
+ {
1240
+ inputs: [
1241
+ {
1242
+ internalType: "address",
1243
+ name: "_stream_id",
1244
+ type: "address",
1245
+ },
1246
+ {
1247
+ internalType: "uint256",
1248
+ name: "_amount",
1249
+ type: "uint256",
1250
+ },
1251
+ ],
1252
+ name: "withdraw",
1253
+ outputs: [],
1254
+ stateMutability: "nonpayable",
1255
+ type: "function",
1256
+ },
1257
+ ];