@streamflow/stream 8.1.1 → 8.2.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.
Files changed (32) hide show
  1. package/dist/cjs/{BaseStreamClient-t7I4NOSm.d.cts → BaseStreamClient-uzoqllcf.d.cts} +4 -0
  2. package/dist/cjs/aptos/index.d.cts +2 -2
  3. package/dist/cjs/evm/index.d.cts +2 -2
  4. package/dist/cjs/{index-BRL3w_PW.d.cts → index-BEQUqMyR.d.cts} +3 -1
  5. package/dist/cjs/{index-kcFtmz7O.d.cts → index-BpvTuTHx.d.cts} +1 -1
  6. package/dist/cjs/{index-DU0JxxIj.d.cts → index-CA72ko5B.d.cts} +1 -1
  7. package/dist/cjs/{index-IHOpuPSg.d.cts → index-DM9lJY7y.d.cts} +1 -1
  8. package/dist/cjs/index.cjs +320 -65
  9. package/dist/cjs/index.cjs.map +1 -1
  10. package/dist/cjs/index.d.cts +10 -10
  11. package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.d.cts +766 -517
  12. package/dist/cjs/solana/index.cjs +320 -65
  13. package/dist/cjs/solana/index.cjs.map +1 -1
  14. package/dist/cjs/solana/index.d.cts +2 -2
  15. package/dist/cjs/sui/index.d.cts +2 -2
  16. package/dist/esm/{BaseStreamClient-t7I4NOSm.d.ts → BaseStreamClient-uzoqllcf.d.ts} +4 -0
  17. package/dist/esm/aptos/index.d.ts +2 -2
  18. package/dist/esm/evm/index.d.ts +2 -2
  19. package/dist/esm/{index-B2txI-oF.d.ts → index-0fL5gH5R.d.ts} +3 -1
  20. package/dist/esm/{index-BfQ0dUgG.d.ts → index-BLMg_CgS.d.ts} +1 -1
  21. package/dist/esm/{index-C81Z69-K.d.ts → index-DJNjOKR0.d.ts} +1 -1
  22. package/dist/esm/{index-BGOG6wUc.d.ts → index-DvlYnKNo.d.ts} +1 -1
  23. package/dist/esm/index.d.ts +10 -10
  24. package/dist/esm/index.js +320 -65
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/solana/descriptor/idl/streamflow_aligned_unlocks.json +569 -80
  27. package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.d.ts +766 -517
  28. package/dist/esm/solana/index.d.ts +2 -2
  29. package/dist/esm/solana/index.js +320 -65
  30. package/dist/esm/solana/index.js.map +1 -1
  31. package/dist/esm/sui/index.d.ts +2 -2
  32. package/package.json +4 -4
@@ -2,14 +2,23 @@
2
2
  "address": "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH",
3
3
  "metadata": {
4
4
  "name": "streamflow_aligned_unlocks",
5
- "version": "1.1.1",
5
+ "version": "1.2.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics"
8
8
  },
9
9
  "instructions": [
10
10
  {
11
11
  "name": "cancel",
12
- "discriminator": [232, 219, 223, 41, 219, 236, 220, 190],
12
+ "discriminator": [
13
+ 232,
14
+ 219,
15
+ 223,
16
+ 41,
17
+ 219,
18
+ 236,
19
+ 220,
20
+ 190
21
+ ],
13
22
  "accounts": [
14
23
  {
15
24
  "name": "sender",
@@ -18,7 +27,9 @@
18
27
  },
19
28
  {
20
29
  "name": "sender_tokens",
21
- "docs": ["Associated token account address of `sender`."],
30
+ "docs": [
31
+ "Associated token account address of `sender`."
32
+ ],
22
33
  "writable": true,
23
34
  "pda": {
24
35
  "seeds": [
@@ -38,8 +49,38 @@
38
49
  "program": {
39
50
  "kind": "const",
40
51
  "value": [
41
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
42
- 132, 4, 142, 123, 216, 219, 233, 248, 89
52
+ 140,
53
+ 151,
54
+ 37,
55
+ 143,
56
+ 78,
57
+ 36,
58
+ 137,
59
+ 241,
60
+ 187,
61
+ 61,
62
+ 16,
63
+ 41,
64
+ 20,
65
+ 142,
66
+ 13,
67
+ 131,
68
+ 11,
69
+ 90,
70
+ 19,
71
+ 153,
72
+ 218,
73
+ 255,
74
+ 16,
75
+ 132,
76
+ 4,
77
+ 142,
78
+ 123,
79
+ 216,
80
+ 219,
81
+ 233,
82
+ 248,
83
+ 89
43
84
  ]
44
85
  }
45
86
  }
@@ -50,7 +91,9 @@
50
91
  },
51
92
  {
52
93
  "name": "recipient_tokens",
53
- "docs": ["CHECK; Associated token account address of `recipient`."],
94
+ "docs": [
95
+ "CHECK; Associated token account address of `recipient`."
96
+ ],
54
97
  "writable": true,
55
98
  "pda": {
56
99
  "seeds": [
@@ -70,21 +113,62 @@
70
113
  "program": {
71
114
  "kind": "const",
72
115
  "value": [
73
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
74
- 132, 4, 142, 123, 216, 219, 233, 248, 89
116
+ 140,
117
+ 151,
118
+ 37,
119
+ 143,
120
+ 78,
121
+ 36,
122
+ 137,
123
+ 241,
124
+ 187,
125
+ 61,
126
+ 16,
127
+ 41,
128
+ 20,
129
+ 142,
130
+ 13,
131
+ 131,
132
+ 11,
133
+ 90,
134
+ 19,
135
+ 153,
136
+ 218,
137
+ 255,
138
+ 16,
139
+ 132,
140
+ 4,
141
+ 142,
142
+ 123,
143
+ 216,
144
+ 219,
145
+ 233,
146
+ 248,
147
+ 89
75
148
  ]
76
149
  }
77
150
  }
78
151
  },
79
152
  {
80
153
  "name": "proxy_metadata",
81
- "docs": ["Proxy Contract"],
154
+ "docs": [
155
+ "Proxy Contract"
156
+ ],
82
157
  "writable": true,
83
158
  "pda": {
84
159
  "seeds": [
85
160
  {
86
161
  "kind": "const",
87
- "value": [99, 111, 110, 116, 114, 97, 99, 116]
162
+ "value": [
163
+ 99,
164
+ 111,
165
+ 110,
166
+ 116,
167
+ 114,
168
+ 97,
169
+ 99,
170
+ 116
171
+ ]
88
172
  },
89
173
  {
90
174
  "kind": "account",
@@ -114,8 +198,38 @@
114
198
  "program": {
115
199
  "kind": "const",
116
200
  "value": [
117
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
118
- 132, 4, 142, 123, 216, 219, 233, 248, 89
201
+ 140,
202
+ 151,
203
+ 37,
204
+ 143,
205
+ 78,
206
+ 36,
207
+ 137,
208
+ 241,
209
+ 187,
210
+ 61,
211
+ 16,
212
+ 41,
213
+ 20,
214
+ 142,
215
+ 13,
216
+ 131,
217
+ 11,
218
+ 90,
219
+ 19,
220
+ 153,
221
+ 218,
222
+ 255,
223
+ 16,
224
+ 132,
225
+ 4,
226
+ 142,
227
+ 123,
228
+ 216,
229
+ 219,
230
+ 233,
231
+ 248,
232
+ 89
119
233
  ]
120
234
  }
121
235
  }
@@ -153,8 +267,38 @@
153
267
  "program": {
154
268
  "kind": "const",
155
269
  "value": [
156
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
157
- 132, 4, 142, 123, 216, 219, 233, 248, 89
270
+ 140,
271
+ 151,
272
+ 37,
273
+ 143,
274
+ 78,
275
+ 36,
276
+ 137,
277
+ 241,
278
+ 187,
279
+ 61,
280
+ 16,
281
+ 41,
282
+ 20,
283
+ 142,
284
+ 13,
285
+ 131,
286
+ 11,
287
+ 90,
288
+ 19,
289
+ 153,
290
+ 218,
291
+ 255,
292
+ 16,
293
+ 132,
294
+ 4,
295
+ 142,
296
+ 123,
297
+ 216,
298
+ 219,
299
+ 233,
300
+ 248,
301
+ 89
158
302
  ]
159
303
  }
160
304
  }
@@ -184,15 +328,47 @@
184
328
  "program": {
185
329
  "kind": "const",
186
330
  "value": [
187
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
188
- 132, 4, 142, 123, 216, 219, 233, 248, 89
331
+ 140,
332
+ 151,
333
+ 37,
334
+ 143,
335
+ 78,
336
+ 36,
337
+ 137,
338
+ 241,
339
+ 187,
340
+ 61,
341
+ 16,
342
+ 41,
343
+ 20,
344
+ 142,
345
+ 13,
346
+ 131,
347
+ 11,
348
+ 90,
349
+ 19,
350
+ 153,
351
+ 218,
352
+ 255,
353
+ 16,
354
+ 132,
355
+ 4,
356
+ 142,
357
+ 123,
358
+ 216,
359
+ 219,
360
+ 233,
361
+ 248,
362
+ 89
189
363
  ]
190
364
  }
191
365
  }
192
366
  },
193
367
  {
194
368
  "name": "mint",
195
- "docs": ["The SPL token mint account."],
369
+ "docs": [
370
+ "The SPL token mint account."
371
+ ],
196
372
  "writable": true
197
373
  },
198
374
  {
@@ -201,14 +377,26 @@
201
377
  },
202
378
  {
203
379
  "name": "token_program",
204
- "docs": ["The SPL program needed in case an associated account", "for the new recipient is being created."]
380
+ "docs": [
381
+ "The SPL program needed in case an associated account",
382
+ "for the new recipient is being created."
383
+ ]
205
384
  }
206
385
  ],
207
386
  "args": []
208
387
  },
209
388
  {
210
389
  "name": "change_oracle",
211
- "discriminator": [177, 227, 230, 103, 13, 72, 141, 248],
390
+ "discriminator": [
391
+ 177,
392
+ 227,
393
+ 230,
394
+ 103,
395
+ 13,
396
+ 72,
397
+ 141,
398
+ 248
399
+ ],
212
400
  "accounts": [
213
401
  {
214
402
  "name": "sender",
@@ -217,7 +405,9 @@
217
405
  },
218
406
  {
219
407
  "name": "proxy_metadata",
220
- "docs": ["Proxy Contract"],
408
+ "docs": [
409
+ "Proxy Contract"
410
+ ],
221
411
  "writable": true
222
412
  },
223
413
  {
@@ -237,11 +427,22 @@
237
427
  },
238
428
  {
239
429
  "name": "create",
240
- "discriminator": [24, 30, 200, 40, 5, 28, 7, 119],
430
+ "discriminator": [
431
+ 24,
432
+ 30,
433
+ 200,
434
+ 40,
435
+ 5,
436
+ 28,
437
+ 7,
438
+ 119
439
+ ],
241
440
  "accounts": [
242
441
  {
243
442
  "name": "payer",
244
- "docs": ["Rent payer"],
443
+ "docs": [
444
+ "Rent payer"
445
+ ],
245
446
  "writable": true,
246
447
  "signer": true
247
448
  },
@@ -252,7 +453,9 @@
252
453
  },
253
454
  {
254
455
  "name": "sender_tokens",
255
- "docs": ["Associated token account address of `payer`."],
456
+ "docs": [
457
+ "Associated token account address of `payer`."
458
+ ],
256
459
  "writable": true,
257
460
  "pda": {
258
461
  "seeds": [
@@ -272,8 +475,38 @@
272
475
  "program": {
273
476
  "kind": "const",
274
477
  "value": [
275
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
276
- 132, 4, 142, 123, 216, 219, 233, 248, 89
478
+ 140,
479
+ 151,
480
+ 37,
481
+ 143,
482
+ 78,
483
+ 36,
484
+ 137,
485
+ 241,
486
+ 187,
487
+ 61,
488
+ 16,
489
+ 41,
490
+ 20,
491
+ 142,
492
+ 13,
493
+ 131,
494
+ 11,
495
+ 90,
496
+ 19,
497
+ 153,
498
+ 218,
499
+ 255,
500
+ 16,
501
+ 132,
502
+ 4,
503
+ 142,
504
+ 123,
505
+ 216,
506
+ 219,
507
+ 233,
508
+ 248,
509
+ 89
277
510
  ]
278
511
  }
279
512
  }
@@ -301,8 +534,38 @@
301
534
  "program": {
302
535
  "kind": "const",
303
536
  "value": [
304
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
305
- 132, 4, 142, 123, 216, 219, 233, 248, 89
537
+ 140,
538
+ 151,
539
+ 37,
540
+ 143,
541
+ 78,
542
+ 36,
543
+ 137,
544
+ 241,
545
+ 187,
546
+ 61,
547
+ 16,
548
+ 41,
549
+ 20,
550
+ 142,
551
+ 13,
552
+ 131,
553
+ 11,
554
+ 90,
555
+ 19,
556
+ 153,
557
+ 218,
558
+ 255,
559
+ 16,
560
+ 132,
561
+ 4,
562
+ 142,
563
+ 123,
564
+ 216,
565
+ 219,
566
+ 233,
567
+ 248,
568
+ 89
306
569
  ]
307
570
  }
308
571
  }
@@ -314,7 +577,16 @@
314
577
  "seeds": [
315
578
  {
316
579
  "kind": "const",
317
- "value": [99, 111, 110, 116, 114, 97, 99, 116]
580
+ "value": [
581
+ 99,
582
+ 111,
583
+ 110,
584
+ 116,
585
+ 114,
586
+ 97,
587
+ 99,
588
+ 116
589
+ ]
318
590
  },
319
591
  {
320
592
  "kind": "account",
@@ -344,8 +616,38 @@
344
616
  "program": {
345
617
  "kind": "const",
346
618
  "value": [
347
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
348
- 132, 4, 142, 123, 216, 219, 233, 248, 89
619
+ 140,
620
+ 151,
621
+ 37,
622
+ 143,
623
+ 78,
624
+ 36,
625
+ 137,
626
+ 241,
627
+ 187,
628
+ 61,
629
+ 16,
630
+ 41,
631
+ 20,
632
+ 142,
633
+ 13,
634
+ 131,
635
+ 11,
636
+ 90,
637
+ 19,
638
+ 153,
639
+ 218,
640
+ 255,
641
+ 16,
642
+ 132,
643
+ 4,
644
+ 142,
645
+ 123,
646
+ 216,
647
+ 219,
648
+ 233,
649
+ 248,
650
+ 89
349
651
  ]
350
652
  }
351
653
  }
@@ -408,7 +710,16 @@
408
710
  },
409
711
  {
410
712
  "name": "create_test_oracle",
411
- "discriminator": [183, 110, 4, 11, 131, 220, 84, 12],
713
+ "discriminator": [
714
+ 183,
715
+ 110,
716
+ 4,
717
+ 11,
718
+ 131,
719
+ 220,
720
+ 84,
721
+ 12
722
+ ],
412
723
  "accounts": [
413
724
  {
414
725
  "name": "creator",
@@ -425,7 +736,19 @@
425
736
  "seeds": [
426
737
  {
427
738
  "kind": "const",
428
- "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
739
+ "value": [
740
+ 116,
741
+ 101,
742
+ 115,
743
+ 116,
744
+ 45,
745
+ 111,
746
+ 114,
747
+ 97,
748
+ 99,
749
+ 108,
750
+ 101
751
+ ]
429
752
  },
430
753
  {
431
754
  "kind": "account",
@@ -456,7 +779,16 @@
456
779
  },
457
780
  {
458
781
  "name": "set_test_oracle_authority",
459
- "discriminator": [26, 66, 233, 99, 38, 118, 181, 247],
782
+ "discriminator": [
783
+ 26,
784
+ 66,
785
+ 233,
786
+ 99,
787
+ 38,
788
+ 118,
789
+ 181,
790
+ 247
791
+ ],
460
792
  "accounts": [
461
793
  {
462
794
  "name": "authority",
@@ -475,11 +807,22 @@
475
807
  },
476
808
  {
477
809
  "name": "update_amount",
478
- "discriminator": [212, 178, 69, 133, 251, 180, 212, 71],
810
+ "discriminator": [
811
+ 212,
812
+ 178,
813
+ 69,
814
+ 133,
815
+ 251,
816
+ 180,
817
+ 212,
818
+ 71
819
+ ],
479
820
  "accounts": [
480
821
  {
481
822
  "name": "authority",
482
- "docs": ["Wallet authorised to call this method"],
823
+ "docs": [
824
+ "Wallet authorised to call this method"
825
+ ],
483
826
  "writable": true,
484
827
  "signer": true
485
828
  },
@@ -490,7 +833,16 @@
490
833
  "seeds": [
491
834
  {
492
835
  "kind": "const",
493
- "value": [99, 111, 110, 116, 114, 97, 99, 116]
836
+ "value": [
837
+ 99,
838
+ 111,
839
+ 110,
840
+ 116,
841
+ 114,
842
+ 97,
843
+ 99,
844
+ 116
845
+ ]
494
846
  },
495
847
  {
496
848
  "kind": "account",
@@ -509,7 +861,9 @@
509
861
  },
510
862
  {
511
863
  "name": "price_oracle",
512
- "relations": ["proxy_metadata"]
864
+ "relations": [
865
+ "proxy_metadata"
866
+ ]
513
867
  },
514
868
  {
515
869
  "name": "streamflow_program",
@@ -524,7 +878,16 @@
524
878
  },
525
879
  {
526
880
  "name": "update_test_oracle",
527
- "discriminator": [158, 147, 215, 74, 34, 123, 80, 76],
881
+ "discriminator": [
882
+ 158,
883
+ 147,
884
+ 215,
885
+ 74,
886
+ 34,
887
+ 123,
888
+ 80,
889
+ 76
890
+ ],
528
891
  "accounts": [
529
892
  {
530
893
  "name": "authority",
@@ -551,11 +914,29 @@
551
914
  "accounts": [
552
915
  {
553
916
  "name": "Contract",
554
- "discriminator": [172, 138, 115, 242, 121, 67, 183, 26]
917
+ "discriminator": [
918
+ 172,
919
+ 138,
920
+ 115,
921
+ 242,
922
+ 121,
923
+ 67,
924
+ 183,
925
+ 26
926
+ ]
555
927
  },
556
928
  {
557
929
  "name": "TestOracle",
558
- "discriminator": [198, 49, 63, 134, 232, 251, 168, 28]
930
+ "discriminator": [
931
+ 198,
932
+ 49,
933
+ 63,
934
+ 134,
935
+ 232,
936
+ 251,
937
+ 168,
938
+ 28
939
+ ]
559
940
  }
560
941
  ],
561
942
  "errors": [
@@ -596,33 +977,43 @@
596
977
  },
597
978
  {
598
979
  "code": 6007,
980
+ "name": "InvalidExpiryDuration",
981
+ "msg": "Provided expiry time/percentage configuration is invalid"
982
+ },
983
+ {
984
+ "code": 6008,
599
985
  "name": "UnsupportedOracle",
600
986
  "msg": "Unsupported price oracle"
601
987
  },
602
988
  {
603
- "code": 6008,
989
+ "code": 6009,
604
990
  "name": "InvalidOracleAccount",
605
991
  "msg": "Invalid oracle account"
606
992
  },
607
993
  {
608
- "code": 6009,
994
+ "code": 6010,
609
995
  "name": "InvalidOraclePrice",
610
996
  "msg": "Invalid oracle price"
611
997
  },
612
998
  {
613
- "code": 6010,
999
+ "code": 6011,
614
1000
  "name": "InvalidStreamMetadata",
615
1001
  "msg": "Invalid Stream Metadata"
616
1002
  },
617
1003
  {
618
- "code": 6011,
1004
+ "code": 6012,
619
1005
  "name": "AmountAlreadyUpdated",
620
1006
  "msg": "Release amount has already been updated in this period"
621
1007
  },
622
1008
  {
623
- "code": 6012,
1009
+ "code": 6013,
624
1010
  "name": "AllFundsUnlocked",
625
1011
  "msg": "All funds are already unlocked"
1012
+ },
1013
+ {
1014
+ "code": 6014,
1015
+ "name": "DynamicScheduleExpired",
1016
+ "msg": "Dynamic schedule expired, updates are not allowed"
626
1017
  }
627
1018
  ],
628
1019
  "types": [
@@ -649,27 +1040,37 @@
649
1040
  "fields": [
650
1041
  {
651
1042
  "name": "bump",
652
- "docs": ["Bump Seed used to sign transactions"],
1043
+ "docs": [
1044
+ "Bump Seed used to sign transactions"
1045
+ ],
653
1046
  "type": "u8"
654
1047
  },
655
1048
  {
656
1049
  "name": "sender",
657
- "docs": ["Original Contract sender"],
1050
+ "docs": [
1051
+ "Original Contract sender"
1052
+ ],
658
1053
  "type": "pubkey"
659
1054
  },
660
1055
  {
661
1056
  "name": "sender_tokens",
662
- "docs": ["Original Contract sender tokens address"],
1057
+ "docs": [
1058
+ "Original Contract sender tokens address"
1059
+ ],
663
1060
  "type": "pubkey"
664
1061
  },
665
1062
  {
666
1063
  "name": "stream",
667
- "docs": ["Vesting Stream address"],
1064
+ "docs": [
1065
+ "Vesting Stream address"
1066
+ ],
668
1067
  "type": "pubkey"
669
1068
  },
670
1069
  {
671
1070
  "name": "price_oracle_type",
672
- "docs": ["Type of the Oracle used to derive Token Price"],
1071
+ "docs": [
1072
+ "Type of the Oracle used to derive Token Price"
1073
+ ],
673
1074
  "type": {
674
1075
  "defined": {
675
1076
  "name": "OracleType"
@@ -678,32 +1079,44 @@
678
1079
  },
679
1080
  {
680
1081
  "name": "price_oracle",
681
- "docs": ["Address of the Price Oracle"],
1082
+ "docs": [
1083
+ "Address of the Price Oracle"
1084
+ ],
682
1085
  "type": "pubkey"
683
1086
  },
684
1087
  {
685
1088
  "name": "min_price",
686
- "docs": ["Min price boundary"],
1089
+ "docs": [
1090
+ "Min price boundary"
1091
+ ],
687
1092
  "type": "u64"
688
1093
  },
689
1094
  {
690
1095
  "name": "max_price",
691
- "docs": ["Max price boundary"],
1096
+ "docs": [
1097
+ "Max price boundary"
1098
+ ],
692
1099
  "type": "u64"
693
1100
  },
694
1101
  {
695
1102
  "name": "min_percentage",
696
- "docs": ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
1103
+ "docs": [
1104
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
1105
+ ],
697
1106
  "type": "u64"
698
1107
  },
699
1108
  {
700
1109
  "name": "max_percentage",
701
- "docs": ["Max percentage boundary"],
1110
+ "docs": [
1111
+ "Max percentage boundary"
1112
+ ],
702
1113
  "type": "u64"
703
1114
  },
704
1115
  {
705
1116
  "name": "tick_size",
706
- "docs": ["Ticket size for percentage boundaries"],
1117
+ "docs": [
1118
+ "Ticket size for percentage boundaries"
1119
+ ],
707
1120
  "type": "u64"
708
1121
  },
709
1122
  {
@@ -736,39 +1149,70 @@
736
1149
  },
737
1150
  {
738
1151
  "name": "last_price",
739
- "docs": ["Price used on last amount calculation"],
1152
+ "docs": [
1153
+ "Price used on last amount calculation"
1154
+ ],
740
1155
  "type": "u64"
741
1156
  },
742
1157
  {
743
1158
  "name": "stream_canceled_time",
744
- "docs": ["Timestamp when stream was cancelled"],
1159
+ "docs": [
1160
+ "Timestamp when stream was cancelled"
1161
+ ],
745
1162
  "type": "u64"
746
1163
  },
747
1164
  {
748
1165
  "name": "initial_amount_per_period",
749
- "docs": ["Amount per period to use as base for calculations"],
1166
+ "docs": [
1167
+ "Amount per period to use as base for calculations"
1168
+ ],
750
1169
  "type": "u64"
751
1170
  },
752
1171
  {
753
1172
  "name": "initial_price",
754
- "docs": ["Initial token price at the time of Contract creation"],
1173
+ "docs": [
1174
+ "Initial token price at the time of Contract creation"
1175
+ ],
755
1176
  "type": "u64"
756
1177
  },
757
1178
  {
758
1179
  "name": "initial_net_amount",
759
- "docs": ["Initial deposited amount"],
1180
+ "docs": [
1181
+ "Initial deposited amount"
1182
+ ],
760
1183
  "type": "u64"
761
1184
  },
762
1185
  {
763
1186
  "name": "mint",
764
- "docs": ["Mint for which the contract was created"],
1187
+ "docs": [
1188
+ "Mint for which the contract was created"
1189
+ ],
765
1190
  "type": "pubkey"
766
1191
  },
1192
+ {
1193
+ "name": "expiry_time",
1194
+ "docs": [
1195
+ "Time when contract expires, `expiry_percentage` will be set in this case"
1196
+ ],
1197
+ "type": "u64"
1198
+ },
1199
+ {
1200
+ "name": "expiry_percentage",
1201
+ "docs": [
1202
+ "Percentage to set when contract expires, won't be updated after it"
1203
+ ],
1204
+ "type": "u64"
1205
+ },
767
1206
  {
768
1207
  "name": "buffer",
769
- "docs": ["Buffer for additional fields"],
1208
+ "docs": [
1209
+ "Buffer for additional fields"
1210
+ ],
770
1211
  "type": {
771
- "array": ["u8", 32]
1212
+ "array": [
1213
+ "u8",
1214
+ 16
1215
+ ]
772
1216
  }
773
1217
  }
774
1218
  ]
@@ -781,64 +1225,91 @@
781
1225
  "fields": [
782
1226
  {
783
1227
  "name": "start_time",
784
- "docs": ["Timestamp when the tokens start vesting"],
1228
+ "docs": [
1229
+ "Timestamp when the tokens start vesting"
1230
+ ],
785
1231
  "type": "u64"
786
1232
  },
787
1233
  {
788
1234
  "name": "net_amount_deposited",
789
- "docs": ["Deposited amount of tokens"],
1235
+ "docs": [
1236
+ "Deposited amount of tokens"
1237
+ ],
790
1238
  "type": "u64"
791
1239
  },
792
1240
  {
793
1241
  "name": "period",
794
- "docs": ["Time step (period) in seconds per which the vesting/release occurs"],
1242
+ "docs": [
1243
+ "Time step (period) in seconds per which the vesting/release occurs"
1244
+ ],
795
1245
  "type": "u64"
796
1246
  },
797
1247
  {
798
1248
  "name": "amount_per_period",
799
- "docs": ["Base Amount released per period. Combined with `period`, we get a release rate."],
1249
+ "docs": [
1250
+ "Base Amount released per period. Combined with `period`, we get a release rate."
1251
+ ],
800
1252
  "type": "u64"
801
1253
  },
802
1254
  {
803
1255
  "name": "cliff",
804
- "docs": ["Vesting contract \"cliff\" timestamp"],
1256
+ "docs": [
1257
+ "Vesting contract \"cliff\" timestamp"
1258
+ ],
805
1259
  "type": "u64"
806
1260
  },
807
1261
  {
808
1262
  "name": "cliff_amount",
809
- "docs": ["Amount unlocked at the \"cliff\" timestamp"],
1263
+ "docs": [
1264
+ "Amount unlocked at the \"cliff\" timestamp"
1265
+ ],
810
1266
  "type": "u64"
811
1267
  },
812
1268
  {
813
1269
  "name": "cancelable_by_sender",
814
- "docs": ["Whether a stream can be canceled by a sender"],
1270
+ "docs": [
1271
+ "Whether a stream can be canceled by a sender"
1272
+ ],
815
1273
  "type": "bool"
816
1274
  },
817
1275
  {
818
1276
  "name": "cancelable_by_recipient",
819
- "docs": ["Whether a stream can be canceled by a recipient"],
1277
+ "docs": [
1278
+ "Whether a stream can be canceled by a recipient"
1279
+ ],
820
1280
  "type": "bool"
821
1281
  },
822
1282
  {
823
1283
  "name": "transferable_by_sender",
824
- "docs": ["Whether the sender can transfer the stream"],
1284
+ "docs": [
1285
+ "Whether the sender can transfer the stream"
1286
+ ],
825
1287
  "type": "bool"
826
1288
  },
827
1289
  {
828
1290
  "name": "transferable_by_recipient",
829
- "docs": ["Whether the recipient can transfer the stream"],
1291
+ "docs": [
1292
+ "Whether the recipient can transfer the stream"
1293
+ ],
830
1294
  "type": "bool"
831
1295
  },
832
1296
  {
833
1297
  "name": "can_topup",
834
- "docs": ["Whether topup is enabled"],
1298
+ "docs": [
1299
+ "Whether topup is enabled"
1300
+ ],
835
1301
  "type": "bool"
836
1302
  },
837
1303
  {
838
1304
  "name": "stream_name",
839
- "docs": ["The name of this stream"],
1305
+ "docs": [
1306
+ "The name of this stream"
1307
+ ],
840
1308
  "type": {
841
- "array": ["u8", 64]
1309
+ "array": [
1310
+ "u8",
1311
+ 64
1312
+ ]
842
1313
  }
843
1314
  },
844
1315
  {
@@ -863,17 +1334,35 @@
863
1334
  },
864
1335
  {
865
1336
  "name": "skip_initial",
866
- "docs": ["Whether to skip initial calculation of amount per period"],
1337
+ "docs": [
1338
+ "Whether to skip initial calculation of amount per period"
1339
+ ],
867
1340
  "type": "bool"
868
1341
  },
869
1342
  {
870
1343
  "name": "oracle_type",
871
- "docs": ["Type of Oracle to use to derive Token Price"],
1344
+ "docs": [
1345
+ "Type of Oracle to use to derive Token Price"
1346
+ ],
872
1347
  "type": {
873
1348
  "defined": {
874
1349
  "name": "OracleType"
875
1350
  }
876
1351
  }
1352
+ },
1353
+ {
1354
+ "name": "expiry_time",
1355
+ "docs": [
1356
+ "Time when contract expires, `expiry_percentage` will be set in this case"
1357
+ ],
1358
+ "type": "u64"
1359
+ },
1360
+ {
1361
+ "name": "expiry_percentage",
1362
+ "docs": [
1363
+ "Percentage to set when contract expires, won't be updated after it"
1364
+ ],
1365
+ "type": "u64"
877
1366
  }
878
1367
  ]
879
1368
  }
@@ -983,4 +1472,4 @@
983
1472
  }
984
1473
  }
985
1474
  ]
986
- }
1475
+ }