@streamflow/stream 8.1.1 → 8.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 (32) hide show
  1. package/dist/cjs/{BaseStreamClient-t7I4NOSm.d.cts → BaseStreamClient-CrOrYUEv.d.cts} +2 -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-Bfl2ORyG.d.cts} +1 -1
  5. package/dist/cjs/{index-kcFtmz7O.d.cts → index-CEGRqEY6.d.cts} +1 -1
  6. package/dist/cjs/{index-DU0JxxIj.d.cts → index-CGiXzafU.d.cts} +1 -1
  7. package/dist/cjs/{index-IHOpuPSg.d.cts → index-h2__-B-1.d.cts} +1 -1
  8. package/dist/cjs/index.cjs +318 -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 +318 -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-CrOrYUEv.d.ts} +2 -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-BGOG6wUc.d.ts → index-5ngU1FTN.d.ts} +1 -1
  20. package/dist/esm/{index-C81Z69-K.d.ts → index-DWj7zoqD.d.ts} +1 -1
  21. package/dist/esm/{index-BfQ0dUgG.d.ts → index-DZXjfaVc.d.ts} +1 -1
  22. package/dist/esm/{index-B2txI-oF.d.ts → index-DoPKUkBc.d.ts} +1 -1
  23. package/dist/esm/index.d.ts +10 -10
  24. package/dist/esm/index.js +318 -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 +318 -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
@@ -871,14 +871,23 @@ var streamflow_aligned_unlocks_default = {
871
871
  address: "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH",
872
872
  metadata: {
873
873
  name: "streamflow_aligned_unlocks",
874
- version: "1.1.1",
874
+ version: "1.2.0",
875
875
  spec: "0.1.0",
876
876
  description: "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics"
877
877
  },
878
878
  instructions: [
879
879
  {
880
880
  name: "cancel",
881
- discriminator: [232, 219, 223, 41, 219, 236, 220, 190],
881
+ discriminator: [
882
+ 232,
883
+ 219,
884
+ 223,
885
+ 41,
886
+ 219,
887
+ 236,
888
+ 220,
889
+ 190
890
+ ],
882
891
  accounts: [
883
892
  {
884
893
  name: "sender",
@@ -887,7 +896,9 @@ var streamflow_aligned_unlocks_default = {
887
896
  },
888
897
  {
889
898
  name: "sender_tokens",
890
- docs: ["Associated token account address of `sender`."],
899
+ docs: [
900
+ "Associated token account address of `sender`."
901
+ ],
891
902
  writable: true,
892
903
  pda: {
893
904
  seeds: [
@@ -949,7 +960,9 @@ var streamflow_aligned_unlocks_default = {
949
960
  },
950
961
  {
951
962
  name: "recipient_tokens",
952
- docs: ["CHECK; Associated token account address of `recipient`."],
963
+ docs: [
964
+ "CHECK; Associated token account address of `recipient`."
965
+ ],
953
966
  writable: true,
954
967
  pda: {
955
968
  seeds: [
@@ -1007,13 +1020,24 @@ var streamflow_aligned_unlocks_default = {
1007
1020
  },
1008
1021
  {
1009
1022
  name: "proxy_metadata",
1010
- docs: ["Proxy Contract"],
1023
+ docs: [
1024
+ "Proxy Contract"
1025
+ ],
1011
1026
  writable: true,
1012
1027
  pda: {
1013
1028
  seeds: [
1014
1029
  {
1015
1030
  kind: "const",
1016
- value: [99, 111, 110, 116, 114, 97, 99, 116]
1031
+ value: [
1032
+ 99,
1033
+ 111,
1034
+ 110,
1035
+ 116,
1036
+ 114,
1037
+ 97,
1038
+ 99,
1039
+ 116
1040
+ ]
1017
1041
  },
1018
1042
  {
1019
1043
  kind: "account",
@@ -1211,7 +1235,9 @@ var streamflow_aligned_unlocks_default = {
1211
1235
  },
1212
1236
  {
1213
1237
  name: "mint",
1214
- docs: ["The SPL token mint account."],
1238
+ docs: [
1239
+ "The SPL token mint account."
1240
+ ],
1215
1241
  writable: true
1216
1242
  },
1217
1243
  {
@@ -1220,14 +1246,26 @@ var streamflow_aligned_unlocks_default = {
1220
1246
  },
1221
1247
  {
1222
1248
  name: "token_program",
1223
- docs: ["The SPL program needed in case an associated account", "for the new recipient is being created."]
1249
+ docs: [
1250
+ "The SPL program needed in case an associated account",
1251
+ "for the new recipient is being created."
1252
+ ]
1224
1253
  }
1225
1254
  ],
1226
1255
  args: []
1227
1256
  },
1228
1257
  {
1229
1258
  name: "change_oracle",
1230
- discriminator: [177, 227, 230, 103, 13, 72, 141, 248],
1259
+ discriminator: [
1260
+ 177,
1261
+ 227,
1262
+ 230,
1263
+ 103,
1264
+ 13,
1265
+ 72,
1266
+ 141,
1267
+ 248
1268
+ ],
1231
1269
  accounts: [
1232
1270
  {
1233
1271
  name: "sender",
@@ -1236,7 +1274,9 @@ var streamflow_aligned_unlocks_default = {
1236
1274
  },
1237
1275
  {
1238
1276
  name: "proxy_metadata",
1239
- docs: ["Proxy Contract"],
1277
+ docs: [
1278
+ "Proxy Contract"
1279
+ ],
1240
1280
  writable: true
1241
1281
  },
1242
1282
  {
@@ -1256,11 +1296,22 @@ var streamflow_aligned_unlocks_default = {
1256
1296
  },
1257
1297
  {
1258
1298
  name: "create",
1259
- discriminator: [24, 30, 200, 40, 5, 28, 7, 119],
1299
+ discriminator: [
1300
+ 24,
1301
+ 30,
1302
+ 200,
1303
+ 40,
1304
+ 5,
1305
+ 28,
1306
+ 7,
1307
+ 119
1308
+ ],
1260
1309
  accounts: [
1261
1310
  {
1262
1311
  name: "payer",
1263
- docs: ["Rent payer"],
1312
+ docs: [
1313
+ "Rent payer"
1314
+ ],
1264
1315
  writable: true,
1265
1316
  signer: true
1266
1317
  },
@@ -1271,7 +1322,9 @@ var streamflow_aligned_unlocks_default = {
1271
1322
  },
1272
1323
  {
1273
1324
  name: "sender_tokens",
1274
- docs: ["Associated token account address of `payer`."],
1325
+ docs: [
1326
+ "Associated token account address of `payer`."
1327
+ ],
1275
1328
  writable: true,
1276
1329
  pda: {
1277
1330
  seeds: [
@@ -1393,7 +1446,16 @@ var streamflow_aligned_unlocks_default = {
1393
1446
  seeds: [
1394
1447
  {
1395
1448
  kind: "const",
1396
- value: [99, 111, 110, 116, 114, 97, 99, 116]
1449
+ value: [
1450
+ 99,
1451
+ 111,
1452
+ 110,
1453
+ 116,
1454
+ 114,
1455
+ 97,
1456
+ 99,
1457
+ 116
1458
+ ]
1397
1459
  },
1398
1460
  {
1399
1461
  kind: "account",
@@ -1517,7 +1579,16 @@ var streamflow_aligned_unlocks_default = {
1517
1579
  },
1518
1580
  {
1519
1581
  name: "create_test_oracle",
1520
- discriminator: [183, 110, 4, 11, 131, 220, 84, 12],
1582
+ discriminator: [
1583
+ 183,
1584
+ 110,
1585
+ 4,
1586
+ 11,
1587
+ 131,
1588
+ 220,
1589
+ 84,
1590
+ 12
1591
+ ],
1521
1592
  accounts: [
1522
1593
  {
1523
1594
  name: "creator",
@@ -1534,7 +1605,19 @@ var streamflow_aligned_unlocks_default = {
1534
1605
  seeds: [
1535
1606
  {
1536
1607
  kind: "const",
1537
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
1608
+ value: [
1609
+ 116,
1610
+ 101,
1611
+ 115,
1612
+ 116,
1613
+ 45,
1614
+ 111,
1615
+ 114,
1616
+ 97,
1617
+ 99,
1618
+ 108,
1619
+ 101
1620
+ ]
1538
1621
  },
1539
1622
  {
1540
1623
  kind: "account",
@@ -1565,7 +1648,16 @@ var streamflow_aligned_unlocks_default = {
1565
1648
  },
1566
1649
  {
1567
1650
  name: "set_test_oracle_authority",
1568
- discriminator: [26, 66, 233, 99, 38, 118, 181, 247],
1651
+ discriminator: [
1652
+ 26,
1653
+ 66,
1654
+ 233,
1655
+ 99,
1656
+ 38,
1657
+ 118,
1658
+ 181,
1659
+ 247
1660
+ ],
1569
1661
  accounts: [
1570
1662
  {
1571
1663
  name: "authority",
@@ -1584,11 +1676,22 @@ var streamflow_aligned_unlocks_default = {
1584
1676
  },
1585
1677
  {
1586
1678
  name: "update_amount",
1587
- discriminator: [212, 178, 69, 133, 251, 180, 212, 71],
1679
+ discriminator: [
1680
+ 212,
1681
+ 178,
1682
+ 69,
1683
+ 133,
1684
+ 251,
1685
+ 180,
1686
+ 212,
1687
+ 71
1688
+ ],
1588
1689
  accounts: [
1589
1690
  {
1590
1691
  name: "authority",
1591
- docs: ["Wallet authorised to call this method"],
1692
+ docs: [
1693
+ "Wallet authorised to call this method"
1694
+ ],
1592
1695
  writable: true,
1593
1696
  signer: true
1594
1697
  },
@@ -1599,7 +1702,16 @@ var streamflow_aligned_unlocks_default = {
1599
1702
  seeds: [
1600
1703
  {
1601
1704
  kind: "const",
1602
- value: [99, 111, 110, 116, 114, 97, 99, 116]
1705
+ value: [
1706
+ 99,
1707
+ 111,
1708
+ 110,
1709
+ 116,
1710
+ 114,
1711
+ 97,
1712
+ 99,
1713
+ 116
1714
+ ]
1603
1715
  },
1604
1716
  {
1605
1717
  kind: "account",
@@ -1618,7 +1730,9 @@ var streamflow_aligned_unlocks_default = {
1618
1730
  },
1619
1731
  {
1620
1732
  name: "price_oracle",
1621
- relations: ["proxy_metadata"]
1733
+ relations: [
1734
+ "proxy_metadata"
1735
+ ]
1622
1736
  },
1623
1737
  {
1624
1738
  name: "streamflow_program",
@@ -1633,7 +1747,16 @@ var streamflow_aligned_unlocks_default = {
1633
1747
  },
1634
1748
  {
1635
1749
  name: "update_test_oracle",
1636
- discriminator: [158, 147, 215, 74, 34, 123, 80, 76],
1750
+ discriminator: [
1751
+ 158,
1752
+ 147,
1753
+ 215,
1754
+ 74,
1755
+ 34,
1756
+ 123,
1757
+ 80,
1758
+ 76
1759
+ ],
1637
1760
  accounts: [
1638
1761
  {
1639
1762
  name: "authority",
@@ -1660,11 +1783,29 @@ var streamflow_aligned_unlocks_default = {
1660
1783
  accounts: [
1661
1784
  {
1662
1785
  name: "Contract",
1663
- discriminator: [172, 138, 115, 242, 121, 67, 183, 26]
1786
+ discriminator: [
1787
+ 172,
1788
+ 138,
1789
+ 115,
1790
+ 242,
1791
+ 121,
1792
+ 67,
1793
+ 183,
1794
+ 26
1795
+ ]
1664
1796
  },
1665
1797
  {
1666
1798
  name: "TestOracle",
1667
- discriminator: [198, 49, 63, 134, 232, 251, 168, 28]
1799
+ discriminator: [
1800
+ 198,
1801
+ 49,
1802
+ 63,
1803
+ 134,
1804
+ 232,
1805
+ 251,
1806
+ 168,
1807
+ 28
1808
+ ]
1668
1809
  }
1669
1810
  ],
1670
1811
  errors: [
@@ -1705,33 +1846,43 @@ var streamflow_aligned_unlocks_default = {
1705
1846
  },
1706
1847
  {
1707
1848
  code: 6007,
1849
+ name: "InvalidExpiryDuration",
1850
+ msg: "Provided expiry time/percentage configuration is invalid"
1851
+ },
1852
+ {
1853
+ code: 6008,
1708
1854
  name: "UnsupportedOracle",
1709
1855
  msg: "Unsupported price oracle"
1710
1856
  },
1711
1857
  {
1712
- code: 6008,
1858
+ code: 6009,
1713
1859
  name: "InvalidOracleAccount",
1714
1860
  msg: "Invalid oracle account"
1715
1861
  },
1716
1862
  {
1717
- code: 6009,
1863
+ code: 6010,
1718
1864
  name: "InvalidOraclePrice",
1719
1865
  msg: "Invalid oracle price"
1720
1866
  },
1721
1867
  {
1722
- code: 6010,
1868
+ code: 6011,
1723
1869
  name: "InvalidStreamMetadata",
1724
1870
  msg: "Invalid Stream Metadata"
1725
1871
  },
1726
1872
  {
1727
- code: 6011,
1873
+ code: 6012,
1728
1874
  name: "AmountAlreadyUpdated",
1729
1875
  msg: "Release amount has already been updated in this period"
1730
1876
  },
1731
1877
  {
1732
- code: 6012,
1878
+ code: 6013,
1733
1879
  name: "AllFundsUnlocked",
1734
1880
  msg: "All funds are already unlocked"
1881
+ },
1882
+ {
1883
+ code: 6014,
1884
+ name: "DynamicScheduleExpired",
1885
+ msg: "Dynamic schedule expired, updates are not allowed"
1735
1886
  }
1736
1887
  ],
1737
1888
  types: [
@@ -1758,27 +1909,37 @@ var streamflow_aligned_unlocks_default = {
1758
1909
  fields: [
1759
1910
  {
1760
1911
  name: "bump",
1761
- docs: ["Bump Seed used to sign transactions"],
1912
+ docs: [
1913
+ "Bump Seed used to sign transactions"
1914
+ ],
1762
1915
  type: "u8"
1763
1916
  },
1764
1917
  {
1765
1918
  name: "sender",
1766
- docs: ["Original Contract sender"],
1919
+ docs: [
1920
+ "Original Contract sender"
1921
+ ],
1767
1922
  type: "pubkey"
1768
1923
  },
1769
1924
  {
1770
1925
  name: "sender_tokens",
1771
- docs: ["Original Contract sender tokens address"],
1926
+ docs: [
1927
+ "Original Contract sender tokens address"
1928
+ ],
1772
1929
  type: "pubkey"
1773
1930
  },
1774
1931
  {
1775
1932
  name: "stream",
1776
- docs: ["Vesting Stream address"],
1933
+ docs: [
1934
+ "Vesting Stream address"
1935
+ ],
1777
1936
  type: "pubkey"
1778
1937
  },
1779
1938
  {
1780
1939
  name: "price_oracle_type",
1781
- docs: ["Type of the Oracle used to derive Token Price"],
1940
+ docs: [
1941
+ "Type of the Oracle used to derive Token Price"
1942
+ ],
1782
1943
  type: {
1783
1944
  defined: {
1784
1945
  name: "OracleType"
@@ -1787,32 +1948,44 @@ var streamflow_aligned_unlocks_default = {
1787
1948
  },
1788
1949
  {
1789
1950
  name: "price_oracle",
1790
- docs: ["Address of the Price Oracle"],
1951
+ docs: [
1952
+ "Address of the Price Oracle"
1953
+ ],
1791
1954
  type: "pubkey"
1792
1955
  },
1793
1956
  {
1794
1957
  name: "min_price",
1795
- docs: ["Min price boundary"],
1958
+ docs: [
1959
+ "Min price boundary"
1960
+ ],
1796
1961
  type: "u64"
1797
1962
  },
1798
1963
  {
1799
1964
  name: "max_price",
1800
- docs: ["Max price boundary"],
1965
+ docs: [
1966
+ "Max price boundary"
1967
+ ],
1801
1968
  type: "u64"
1802
1969
  },
1803
1970
  {
1804
1971
  name: "min_percentage",
1805
- docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
1972
+ docs: [
1973
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
1974
+ ],
1806
1975
  type: "u64"
1807
1976
  },
1808
1977
  {
1809
1978
  name: "max_percentage",
1810
- docs: ["Max percentage boundary"],
1979
+ docs: [
1980
+ "Max percentage boundary"
1981
+ ],
1811
1982
  type: "u64"
1812
1983
  },
1813
1984
  {
1814
1985
  name: "tick_size",
1815
- docs: ["Ticket size for percentage boundaries"],
1986
+ docs: [
1987
+ "Ticket size for percentage boundaries"
1988
+ ],
1816
1989
  type: "u64"
1817
1990
  },
1818
1991
  {
@@ -1845,39 +2018,70 @@ var streamflow_aligned_unlocks_default = {
1845
2018
  },
1846
2019
  {
1847
2020
  name: "last_price",
1848
- docs: ["Price used on last amount calculation"],
2021
+ docs: [
2022
+ "Price used on last amount calculation"
2023
+ ],
1849
2024
  type: "u64"
1850
2025
  },
1851
2026
  {
1852
2027
  name: "stream_canceled_time",
1853
- docs: ["Timestamp when stream was cancelled"],
2028
+ docs: [
2029
+ "Timestamp when stream was cancelled"
2030
+ ],
1854
2031
  type: "u64"
1855
2032
  },
1856
2033
  {
1857
2034
  name: "initial_amount_per_period",
1858
- docs: ["Amount per period to use as base for calculations"],
2035
+ docs: [
2036
+ "Amount per period to use as base for calculations"
2037
+ ],
1859
2038
  type: "u64"
1860
2039
  },
1861
2040
  {
1862
2041
  name: "initial_price",
1863
- docs: ["Initial token price at the time of Contract creation"],
2042
+ docs: [
2043
+ "Initial token price at the time of Contract creation"
2044
+ ],
1864
2045
  type: "u64"
1865
2046
  },
1866
2047
  {
1867
2048
  name: "initial_net_amount",
1868
- docs: ["Initial deposited amount"],
2049
+ docs: [
2050
+ "Initial deposited amount"
2051
+ ],
1869
2052
  type: "u64"
1870
2053
  },
1871
2054
  {
1872
2055
  name: "mint",
1873
- docs: ["Mint for which the contract was created"],
2056
+ docs: [
2057
+ "Mint for which the contract was created"
2058
+ ],
1874
2059
  type: "pubkey"
1875
2060
  },
2061
+ {
2062
+ name: "expiry_time",
2063
+ docs: [
2064
+ "Time when contract expires, `expiry_percentage` will be set in this case"
2065
+ ],
2066
+ type: "u64"
2067
+ },
2068
+ {
2069
+ name: "expiry_percentage",
2070
+ docs: [
2071
+ "Percentage to set when contract expires, won't be updated after it"
2072
+ ],
2073
+ type: "u64"
2074
+ },
1876
2075
  {
1877
2076
  name: "buffer",
1878
- docs: ["Buffer for additional fields"],
2077
+ docs: [
2078
+ "Buffer for additional fields"
2079
+ ],
1879
2080
  type: {
1880
- array: ["u8", 32]
2081
+ array: [
2082
+ "u8",
2083
+ 16
2084
+ ]
1881
2085
  }
1882
2086
  }
1883
2087
  ]
@@ -1890,64 +2094,91 @@ var streamflow_aligned_unlocks_default = {
1890
2094
  fields: [
1891
2095
  {
1892
2096
  name: "start_time",
1893
- docs: ["Timestamp when the tokens start vesting"],
2097
+ docs: [
2098
+ "Timestamp when the tokens start vesting"
2099
+ ],
1894
2100
  type: "u64"
1895
2101
  },
1896
2102
  {
1897
2103
  name: "net_amount_deposited",
1898
- docs: ["Deposited amount of tokens"],
2104
+ docs: [
2105
+ "Deposited amount of tokens"
2106
+ ],
1899
2107
  type: "u64"
1900
2108
  },
1901
2109
  {
1902
2110
  name: "period",
1903
- docs: ["Time step (period) in seconds per which the vesting/release occurs"],
2111
+ docs: [
2112
+ "Time step (period) in seconds per which the vesting/release occurs"
2113
+ ],
1904
2114
  type: "u64"
1905
2115
  },
1906
2116
  {
1907
2117
  name: "amount_per_period",
1908
- docs: ["Base Amount released per period. Combined with `period`, we get a release rate."],
2118
+ docs: [
2119
+ "Base Amount released per period. Combined with `period`, we get a release rate."
2120
+ ],
1909
2121
  type: "u64"
1910
2122
  },
1911
2123
  {
1912
2124
  name: "cliff",
1913
- docs: ['Vesting contract "cliff" timestamp'],
2125
+ docs: [
2126
+ 'Vesting contract "cliff" timestamp'
2127
+ ],
1914
2128
  type: "u64"
1915
2129
  },
1916
2130
  {
1917
2131
  name: "cliff_amount",
1918
- docs: ['Amount unlocked at the "cliff" timestamp'],
2132
+ docs: [
2133
+ 'Amount unlocked at the "cliff" timestamp'
2134
+ ],
1919
2135
  type: "u64"
1920
2136
  },
1921
2137
  {
1922
2138
  name: "cancelable_by_sender",
1923
- docs: ["Whether a stream can be canceled by a sender"],
2139
+ docs: [
2140
+ "Whether a stream can be canceled by a sender"
2141
+ ],
1924
2142
  type: "bool"
1925
2143
  },
1926
2144
  {
1927
2145
  name: "cancelable_by_recipient",
1928
- docs: ["Whether a stream can be canceled by a recipient"],
2146
+ docs: [
2147
+ "Whether a stream can be canceled by a recipient"
2148
+ ],
1929
2149
  type: "bool"
1930
2150
  },
1931
2151
  {
1932
2152
  name: "transferable_by_sender",
1933
- docs: ["Whether the sender can transfer the stream"],
2153
+ docs: [
2154
+ "Whether the sender can transfer the stream"
2155
+ ],
1934
2156
  type: "bool"
1935
2157
  },
1936
2158
  {
1937
2159
  name: "transferable_by_recipient",
1938
- docs: ["Whether the recipient can transfer the stream"],
2160
+ docs: [
2161
+ "Whether the recipient can transfer the stream"
2162
+ ],
1939
2163
  type: "bool"
1940
2164
  },
1941
2165
  {
1942
2166
  name: "can_topup",
1943
- docs: ["Whether topup is enabled"],
2167
+ docs: [
2168
+ "Whether topup is enabled"
2169
+ ],
1944
2170
  type: "bool"
1945
2171
  },
1946
2172
  {
1947
2173
  name: "stream_name",
1948
- docs: ["The name of this stream"],
2174
+ docs: [
2175
+ "The name of this stream"
2176
+ ],
1949
2177
  type: {
1950
- array: ["u8", 64]
2178
+ array: [
2179
+ "u8",
2180
+ 64
2181
+ ]
1951
2182
  }
1952
2183
  },
1953
2184
  {
@@ -1972,17 +2203,35 @@ var streamflow_aligned_unlocks_default = {
1972
2203
  },
1973
2204
  {
1974
2205
  name: "skip_initial",
1975
- docs: ["Whether to skip initial calculation of amount per period"],
2206
+ docs: [
2207
+ "Whether to skip initial calculation of amount per period"
2208
+ ],
1976
2209
  type: "bool"
1977
2210
  },
1978
2211
  {
1979
2212
  name: "oracle_type",
1980
- docs: ["Type of Oracle to use to derive Token Price"],
2213
+ docs: [
2214
+ "Type of Oracle to use to derive Token Price"
2215
+ ],
1981
2216
  type: {
1982
2217
  defined: {
1983
2218
  name: "OracleType"
1984
2219
  }
1985
2220
  }
2221
+ },
2222
+ {
2223
+ name: "expiry_time",
2224
+ docs: [
2225
+ "Time when contract expires, `expiry_percentage` will be set in this case"
2226
+ ],
2227
+ type: "u64"
2228
+ },
2229
+ {
2230
+ name: "expiry_percentage",
2231
+ docs: [
2232
+ "Percentage to set when contract expires, won't be updated after it"
2233
+ ],
2234
+ type: "u64"
1986
2235
  }
1987
2236
  ]
1988
2237
  }
@@ -2226,7 +2475,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
2226
2475
  tickSize,
2227
2476
  priceOracle,
2228
2477
  oracleType,
2229
- tokenProgramId: streamTokenProgramId
2478
+ tokenProgramId: streamTokenProgramId,
2479
+ expiryTime,
2480
+ expiryPercentage
2230
2481
  } = streamParams;
2231
2482
  const { isNative, sender, computeLimit, computePrice, metadataPubKeys } = extParams;
2232
2483
  if (!sender.publicKey) {
@@ -2278,7 +2529,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
2278
2529
  minPercentage: minPercentage instanceof BN4 ? minPercentage : getBN(minPercentage, ALIGNED_PRECISION_FACTOR_POW),
2279
2530
  maxPercentage: maxPercentage instanceof BN4 ? maxPercentage : getBN(maxPercentage, ALIGNED_PRECISION_FACTOR_POW),
2280
2531
  tickSize: new BN4(tickSize || 1),
2281
- skipInitial: skipInitial ?? false
2532
+ skipInitial: skipInitial ?? false,
2533
+ expiryTime: new BN4(expiryTime ?? 0),
2534
+ expiryPercentage: expiryPercentage instanceof BN4 ? expiryPercentage : getBN(expiryPercentage ?? 0, ALIGNED_PRECISION_FACTOR_POW)
2282
2535
  }).accountsPartial({
2283
2536
  payer: sender.publicKey,
2284
2537
  sender: sender.publicKey,