@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
@@ -897,14 +897,23 @@ var streamflow_aligned_unlocks_default = {
897
897
  address: "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH",
898
898
  metadata: {
899
899
  name: "streamflow_aligned_unlocks",
900
- version: "1.1.1",
900
+ version: "1.2.0",
901
901
  spec: "0.1.0",
902
902
  description: "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics"
903
903
  },
904
904
  instructions: [
905
905
  {
906
906
  name: "cancel",
907
- discriminator: [232, 219, 223, 41, 219, 236, 220, 190],
907
+ discriminator: [
908
+ 232,
909
+ 219,
910
+ 223,
911
+ 41,
912
+ 219,
913
+ 236,
914
+ 220,
915
+ 190
916
+ ],
908
917
  accounts: [
909
918
  {
910
919
  name: "sender",
@@ -913,7 +922,9 @@ var streamflow_aligned_unlocks_default = {
913
922
  },
914
923
  {
915
924
  name: "sender_tokens",
916
- docs: ["Associated token account address of `sender`."],
925
+ docs: [
926
+ "Associated token account address of `sender`."
927
+ ],
917
928
  writable: true,
918
929
  pda: {
919
930
  seeds: [
@@ -975,7 +986,9 @@ var streamflow_aligned_unlocks_default = {
975
986
  },
976
987
  {
977
988
  name: "recipient_tokens",
978
- docs: ["CHECK; Associated token account address of `recipient`."],
989
+ docs: [
990
+ "CHECK; Associated token account address of `recipient`."
991
+ ],
979
992
  writable: true,
980
993
  pda: {
981
994
  seeds: [
@@ -1033,13 +1046,24 @@ var streamflow_aligned_unlocks_default = {
1033
1046
  },
1034
1047
  {
1035
1048
  name: "proxy_metadata",
1036
- docs: ["Proxy Contract"],
1049
+ docs: [
1050
+ "Proxy Contract"
1051
+ ],
1037
1052
  writable: true,
1038
1053
  pda: {
1039
1054
  seeds: [
1040
1055
  {
1041
1056
  kind: "const",
1042
- value: [99, 111, 110, 116, 114, 97, 99, 116]
1057
+ value: [
1058
+ 99,
1059
+ 111,
1060
+ 110,
1061
+ 116,
1062
+ 114,
1063
+ 97,
1064
+ 99,
1065
+ 116
1066
+ ]
1043
1067
  },
1044
1068
  {
1045
1069
  kind: "account",
@@ -1237,7 +1261,9 @@ var streamflow_aligned_unlocks_default = {
1237
1261
  },
1238
1262
  {
1239
1263
  name: "mint",
1240
- docs: ["The SPL token mint account."],
1264
+ docs: [
1265
+ "The SPL token mint account."
1266
+ ],
1241
1267
  writable: true
1242
1268
  },
1243
1269
  {
@@ -1246,14 +1272,26 @@ var streamflow_aligned_unlocks_default = {
1246
1272
  },
1247
1273
  {
1248
1274
  name: "token_program",
1249
- docs: ["The SPL program needed in case an associated account", "for the new recipient is being created."]
1275
+ docs: [
1276
+ "The SPL program needed in case an associated account",
1277
+ "for the new recipient is being created."
1278
+ ]
1250
1279
  }
1251
1280
  ],
1252
1281
  args: []
1253
1282
  },
1254
1283
  {
1255
1284
  name: "change_oracle",
1256
- discriminator: [177, 227, 230, 103, 13, 72, 141, 248],
1285
+ discriminator: [
1286
+ 177,
1287
+ 227,
1288
+ 230,
1289
+ 103,
1290
+ 13,
1291
+ 72,
1292
+ 141,
1293
+ 248
1294
+ ],
1257
1295
  accounts: [
1258
1296
  {
1259
1297
  name: "sender",
@@ -1262,7 +1300,9 @@ var streamflow_aligned_unlocks_default = {
1262
1300
  },
1263
1301
  {
1264
1302
  name: "proxy_metadata",
1265
- docs: ["Proxy Contract"],
1303
+ docs: [
1304
+ "Proxy Contract"
1305
+ ],
1266
1306
  writable: true
1267
1307
  },
1268
1308
  {
@@ -1282,11 +1322,22 @@ var streamflow_aligned_unlocks_default = {
1282
1322
  },
1283
1323
  {
1284
1324
  name: "create",
1285
- discriminator: [24, 30, 200, 40, 5, 28, 7, 119],
1325
+ discriminator: [
1326
+ 24,
1327
+ 30,
1328
+ 200,
1329
+ 40,
1330
+ 5,
1331
+ 28,
1332
+ 7,
1333
+ 119
1334
+ ],
1286
1335
  accounts: [
1287
1336
  {
1288
1337
  name: "payer",
1289
- docs: ["Rent payer"],
1338
+ docs: [
1339
+ "Rent payer"
1340
+ ],
1290
1341
  writable: true,
1291
1342
  signer: true
1292
1343
  },
@@ -1297,7 +1348,9 @@ var streamflow_aligned_unlocks_default = {
1297
1348
  },
1298
1349
  {
1299
1350
  name: "sender_tokens",
1300
- docs: ["Associated token account address of `payer`."],
1351
+ docs: [
1352
+ "Associated token account address of `payer`."
1353
+ ],
1301
1354
  writable: true,
1302
1355
  pda: {
1303
1356
  seeds: [
@@ -1419,7 +1472,16 @@ var streamflow_aligned_unlocks_default = {
1419
1472
  seeds: [
1420
1473
  {
1421
1474
  kind: "const",
1422
- value: [99, 111, 110, 116, 114, 97, 99, 116]
1475
+ value: [
1476
+ 99,
1477
+ 111,
1478
+ 110,
1479
+ 116,
1480
+ 114,
1481
+ 97,
1482
+ 99,
1483
+ 116
1484
+ ]
1423
1485
  },
1424
1486
  {
1425
1487
  kind: "account",
@@ -1543,7 +1605,16 @@ var streamflow_aligned_unlocks_default = {
1543
1605
  },
1544
1606
  {
1545
1607
  name: "create_test_oracle",
1546
- discriminator: [183, 110, 4, 11, 131, 220, 84, 12],
1608
+ discriminator: [
1609
+ 183,
1610
+ 110,
1611
+ 4,
1612
+ 11,
1613
+ 131,
1614
+ 220,
1615
+ 84,
1616
+ 12
1617
+ ],
1547
1618
  accounts: [
1548
1619
  {
1549
1620
  name: "creator",
@@ -1560,7 +1631,19 @@ var streamflow_aligned_unlocks_default = {
1560
1631
  seeds: [
1561
1632
  {
1562
1633
  kind: "const",
1563
- value: [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
1634
+ value: [
1635
+ 116,
1636
+ 101,
1637
+ 115,
1638
+ 116,
1639
+ 45,
1640
+ 111,
1641
+ 114,
1642
+ 97,
1643
+ 99,
1644
+ 108,
1645
+ 101
1646
+ ]
1564
1647
  },
1565
1648
  {
1566
1649
  kind: "account",
@@ -1591,7 +1674,16 @@ var streamflow_aligned_unlocks_default = {
1591
1674
  },
1592
1675
  {
1593
1676
  name: "set_test_oracle_authority",
1594
- discriminator: [26, 66, 233, 99, 38, 118, 181, 247],
1677
+ discriminator: [
1678
+ 26,
1679
+ 66,
1680
+ 233,
1681
+ 99,
1682
+ 38,
1683
+ 118,
1684
+ 181,
1685
+ 247
1686
+ ],
1595
1687
  accounts: [
1596
1688
  {
1597
1689
  name: "authority",
@@ -1610,11 +1702,22 @@ var streamflow_aligned_unlocks_default = {
1610
1702
  },
1611
1703
  {
1612
1704
  name: "update_amount",
1613
- discriminator: [212, 178, 69, 133, 251, 180, 212, 71],
1705
+ discriminator: [
1706
+ 212,
1707
+ 178,
1708
+ 69,
1709
+ 133,
1710
+ 251,
1711
+ 180,
1712
+ 212,
1713
+ 71
1714
+ ],
1614
1715
  accounts: [
1615
1716
  {
1616
1717
  name: "authority",
1617
- docs: ["Wallet authorised to call this method"],
1718
+ docs: [
1719
+ "Wallet authorised to call this method"
1720
+ ],
1618
1721
  writable: true,
1619
1722
  signer: true
1620
1723
  },
@@ -1625,7 +1728,16 @@ var streamflow_aligned_unlocks_default = {
1625
1728
  seeds: [
1626
1729
  {
1627
1730
  kind: "const",
1628
- value: [99, 111, 110, 116, 114, 97, 99, 116]
1731
+ value: [
1732
+ 99,
1733
+ 111,
1734
+ 110,
1735
+ 116,
1736
+ 114,
1737
+ 97,
1738
+ 99,
1739
+ 116
1740
+ ]
1629
1741
  },
1630
1742
  {
1631
1743
  kind: "account",
@@ -1644,7 +1756,9 @@ var streamflow_aligned_unlocks_default = {
1644
1756
  },
1645
1757
  {
1646
1758
  name: "price_oracle",
1647
- relations: ["proxy_metadata"]
1759
+ relations: [
1760
+ "proxy_metadata"
1761
+ ]
1648
1762
  },
1649
1763
  {
1650
1764
  name: "streamflow_program",
@@ -1659,7 +1773,16 @@ var streamflow_aligned_unlocks_default = {
1659
1773
  },
1660
1774
  {
1661
1775
  name: "update_test_oracle",
1662
- discriminator: [158, 147, 215, 74, 34, 123, 80, 76],
1776
+ discriminator: [
1777
+ 158,
1778
+ 147,
1779
+ 215,
1780
+ 74,
1781
+ 34,
1782
+ 123,
1783
+ 80,
1784
+ 76
1785
+ ],
1663
1786
  accounts: [
1664
1787
  {
1665
1788
  name: "authority",
@@ -1686,11 +1809,29 @@ var streamflow_aligned_unlocks_default = {
1686
1809
  accounts: [
1687
1810
  {
1688
1811
  name: "Contract",
1689
- discriminator: [172, 138, 115, 242, 121, 67, 183, 26]
1812
+ discriminator: [
1813
+ 172,
1814
+ 138,
1815
+ 115,
1816
+ 242,
1817
+ 121,
1818
+ 67,
1819
+ 183,
1820
+ 26
1821
+ ]
1690
1822
  },
1691
1823
  {
1692
1824
  name: "TestOracle",
1693
- discriminator: [198, 49, 63, 134, 232, 251, 168, 28]
1825
+ discriminator: [
1826
+ 198,
1827
+ 49,
1828
+ 63,
1829
+ 134,
1830
+ 232,
1831
+ 251,
1832
+ 168,
1833
+ 28
1834
+ ]
1694
1835
  }
1695
1836
  ],
1696
1837
  errors: [
@@ -1731,33 +1872,43 @@ var streamflow_aligned_unlocks_default = {
1731
1872
  },
1732
1873
  {
1733
1874
  code: 6007,
1875
+ name: "InvalidExpiryDuration",
1876
+ msg: "Provided expiry time/percentage configuration is invalid"
1877
+ },
1878
+ {
1879
+ code: 6008,
1734
1880
  name: "UnsupportedOracle",
1735
1881
  msg: "Unsupported price oracle"
1736
1882
  },
1737
1883
  {
1738
- code: 6008,
1884
+ code: 6009,
1739
1885
  name: "InvalidOracleAccount",
1740
1886
  msg: "Invalid oracle account"
1741
1887
  },
1742
1888
  {
1743
- code: 6009,
1889
+ code: 6010,
1744
1890
  name: "InvalidOraclePrice",
1745
1891
  msg: "Invalid oracle price"
1746
1892
  },
1747
1893
  {
1748
- code: 6010,
1894
+ code: 6011,
1749
1895
  name: "InvalidStreamMetadata",
1750
1896
  msg: "Invalid Stream Metadata"
1751
1897
  },
1752
1898
  {
1753
- code: 6011,
1899
+ code: 6012,
1754
1900
  name: "AmountAlreadyUpdated",
1755
1901
  msg: "Release amount has already been updated in this period"
1756
1902
  },
1757
1903
  {
1758
- code: 6012,
1904
+ code: 6013,
1759
1905
  name: "AllFundsUnlocked",
1760
1906
  msg: "All funds are already unlocked"
1907
+ },
1908
+ {
1909
+ code: 6014,
1910
+ name: "DynamicScheduleExpired",
1911
+ msg: "Dynamic schedule expired, updates are not allowed"
1761
1912
  }
1762
1913
  ],
1763
1914
  types: [
@@ -1784,27 +1935,37 @@ var streamflow_aligned_unlocks_default = {
1784
1935
  fields: [
1785
1936
  {
1786
1937
  name: "bump",
1787
- docs: ["Bump Seed used to sign transactions"],
1938
+ docs: [
1939
+ "Bump Seed used to sign transactions"
1940
+ ],
1788
1941
  type: "u8"
1789
1942
  },
1790
1943
  {
1791
1944
  name: "sender",
1792
- docs: ["Original Contract sender"],
1945
+ docs: [
1946
+ "Original Contract sender"
1947
+ ],
1793
1948
  type: "pubkey"
1794
1949
  },
1795
1950
  {
1796
1951
  name: "sender_tokens",
1797
- docs: ["Original Contract sender tokens address"],
1952
+ docs: [
1953
+ "Original Contract sender tokens address"
1954
+ ],
1798
1955
  type: "pubkey"
1799
1956
  },
1800
1957
  {
1801
1958
  name: "stream",
1802
- docs: ["Vesting Stream address"],
1959
+ docs: [
1960
+ "Vesting Stream address"
1961
+ ],
1803
1962
  type: "pubkey"
1804
1963
  },
1805
1964
  {
1806
1965
  name: "price_oracle_type",
1807
- docs: ["Type of the Oracle used to derive Token Price"],
1966
+ docs: [
1967
+ "Type of the Oracle used to derive Token Price"
1968
+ ],
1808
1969
  type: {
1809
1970
  defined: {
1810
1971
  name: "OracleType"
@@ -1813,32 +1974,44 @@ var streamflow_aligned_unlocks_default = {
1813
1974
  },
1814
1975
  {
1815
1976
  name: "price_oracle",
1816
- docs: ["Address of the Price Oracle"],
1977
+ docs: [
1978
+ "Address of the Price Oracle"
1979
+ ],
1817
1980
  type: "pubkey"
1818
1981
  },
1819
1982
  {
1820
1983
  name: "min_price",
1821
- docs: ["Min price boundary"],
1984
+ docs: [
1985
+ "Min price boundary"
1986
+ ],
1822
1987
  type: "u64"
1823
1988
  },
1824
1989
  {
1825
1990
  name: "max_price",
1826
- docs: ["Max price boundary"],
1991
+ docs: [
1992
+ "Max price boundary"
1993
+ ],
1827
1994
  type: "u64"
1828
1995
  },
1829
1996
  {
1830
1997
  name: "min_percentage",
1831
- docs: ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
1998
+ docs: [
1999
+ "Min percentage boundary, can be 0 that equals 1 Raw Token"
2000
+ ],
1832
2001
  type: "u64"
1833
2002
  },
1834
2003
  {
1835
2004
  name: "max_percentage",
1836
- docs: ["Max percentage boundary"],
2005
+ docs: [
2006
+ "Max percentage boundary"
2007
+ ],
1837
2008
  type: "u64"
1838
2009
  },
1839
2010
  {
1840
2011
  name: "tick_size",
1841
- docs: ["Ticket size for percentage boundaries"],
2012
+ docs: [
2013
+ "Ticket size for percentage boundaries"
2014
+ ],
1842
2015
  type: "u64"
1843
2016
  },
1844
2017
  {
@@ -1871,39 +2044,70 @@ var streamflow_aligned_unlocks_default = {
1871
2044
  },
1872
2045
  {
1873
2046
  name: "last_price",
1874
- docs: ["Price used on last amount calculation"],
2047
+ docs: [
2048
+ "Price used on last amount calculation"
2049
+ ],
1875
2050
  type: "u64"
1876
2051
  },
1877
2052
  {
1878
2053
  name: "stream_canceled_time",
1879
- docs: ["Timestamp when stream was cancelled"],
2054
+ docs: [
2055
+ "Timestamp when stream was cancelled"
2056
+ ],
1880
2057
  type: "u64"
1881
2058
  },
1882
2059
  {
1883
2060
  name: "initial_amount_per_period",
1884
- docs: ["Amount per period to use as base for calculations"],
2061
+ docs: [
2062
+ "Amount per period to use as base for calculations"
2063
+ ],
1885
2064
  type: "u64"
1886
2065
  },
1887
2066
  {
1888
2067
  name: "initial_price",
1889
- docs: ["Initial token price at the time of Contract creation"],
2068
+ docs: [
2069
+ "Initial token price at the time of Contract creation"
2070
+ ],
1890
2071
  type: "u64"
1891
2072
  },
1892
2073
  {
1893
2074
  name: "initial_net_amount",
1894
- docs: ["Initial deposited amount"],
2075
+ docs: [
2076
+ "Initial deposited amount"
2077
+ ],
1895
2078
  type: "u64"
1896
2079
  },
1897
2080
  {
1898
2081
  name: "mint",
1899
- docs: ["Mint for which the contract was created"],
2082
+ docs: [
2083
+ "Mint for which the contract was created"
2084
+ ],
1900
2085
  type: "pubkey"
1901
2086
  },
2087
+ {
2088
+ name: "expiry_time",
2089
+ docs: [
2090
+ "Time when contract expires, `expiry_percentage` will be set in this case"
2091
+ ],
2092
+ type: "u64"
2093
+ },
2094
+ {
2095
+ name: "expiry_percentage",
2096
+ docs: [
2097
+ "Percentage to set when contract expires, won't be updated after it"
2098
+ ],
2099
+ type: "u64"
2100
+ },
1902
2101
  {
1903
2102
  name: "buffer",
1904
- docs: ["Buffer for additional fields"],
2103
+ docs: [
2104
+ "Buffer for additional fields"
2105
+ ],
1905
2106
  type: {
1906
- array: ["u8", 32]
2107
+ array: [
2108
+ "u8",
2109
+ 16
2110
+ ]
1907
2111
  }
1908
2112
  }
1909
2113
  ]
@@ -1916,64 +2120,91 @@ var streamflow_aligned_unlocks_default = {
1916
2120
  fields: [
1917
2121
  {
1918
2122
  name: "start_time",
1919
- docs: ["Timestamp when the tokens start vesting"],
2123
+ docs: [
2124
+ "Timestamp when the tokens start vesting"
2125
+ ],
1920
2126
  type: "u64"
1921
2127
  },
1922
2128
  {
1923
2129
  name: "net_amount_deposited",
1924
- docs: ["Deposited amount of tokens"],
2130
+ docs: [
2131
+ "Deposited amount of tokens"
2132
+ ],
1925
2133
  type: "u64"
1926
2134
  },
1927
2135
  {
1928
2136
  name: "period",
1929
- docs: ["Time step (period) in seconds per which the vesting/release occurs"],
2137
+ docs: [
2138
+ "Time step (period) in seconds per which the vesting/release occurs"
2139
+ ],
1930
2140
  type: "u64"
1931
2141
  },
1932
2142
  {
1933
2143
  name: "amount_per_period",
1934
- docs: ["Base Amount released per period. Combined with `period`, we get a release rate."],
2144
+ docs: [
2145
+ "Base Amount released per period. Combined with `period`, we get a release rate."
2146
+ ],
1935
2147
  type: "u64"
1936
2148
  },
1937
2149
  {
1938
2150
  name: "cliff",
1939
- docs: ['Vesting contract "cliff" timestamp'],
2151
+ docs: [
2152
+ 'Vesting contract "cliff" timestamp'
2153
+ ],
1940
2154
  type: "u64"
1941
2155
  },
1942
2156
  {
1943
2157
  name: "cliff_amount",
1944
- docs: ['Amount unlocked at the "cliff" timestamp'],
2158
+ docs: [
2159
+ 'Amount unlocked at the "cliff" timestamp'
2160
+ ],
1945
2161
  type: "u64"
1946
2162
  },
1947
2163
  {
1948
2164
  name: "cancelable_by_sender",
1949
- docs: ["Whether a stream can be canceled by a sender"],
2165
+ docs: [
2166
+ "Whether a stream can be canceled by a sender"
2167
+ ],
1950
2168
  type: "bool"
1951
2169
  },
1952
2170
  {
1953
2171
  name: "cancelable_by_recipient",
1954
- docs: ["Whether a stream can be canceled by a recipient"],
2172
+ docs: [
2173
+ "Whether a stream can be canceled by a recipient"
2174
+ ],
1955
2175
  type: "bool"
1956
2176
  },
1957
2177
  {
1958
2178
  name: "transferable_by_sender",
1959
- docs: ["Whether the sender can transfer the stream"],
2179
+ docs: [
2180
+ "Whether the sender can transfer the stream"
2181
+ ],
1960
2182
  type: "bool"
1961
2183
  },
1962
2184
  {
1963
2185
  name: "transferable_by_recipient",
1964
- docs: ["Whether the recipient can transfer the stream"],
2186
+ docs: [
2187
+ "Whether the recipient can transfer the stream"
2188
+ ],
1965
2189
  type: "bool"
1966
2190
  },
1967
2191
  {
1968
2192
  name: "can_topup",
1969
- docs: ["Whether topup is enabled"],
2193
+ docs: [
2194
+ "Whether topup is enabled"
2195
+ ],
1970
2196
  type: "bool"
1971
2197
  },
1972
2198
  {
1973
2199
  name: "stream_name",
1974
- docs: ["The name of this stream"],
2200
+ docs: [
2201
+ "The name of this stream"
2202
+ ],
1975
2203
  type: {
1976
- array: ["u8", 64]
2204
+ array: [
2205
+ "u8",
2206
+ 64
2207
+ ]
1977
2208
  }
1978
2209
  },
1979
2210
  {
@@ -1998,17 +2229,35 @@ var streamflow_aligned_unlocks_default = {
1998
2229
  },
1999
2230
  {
2000
2231
  name: "skip_initial",
2001
- docs: ["Whether to skip initial calculation of amount per period"],
2232
+ docs: [
2233
+ "Whether to skip initial calculation of amount per period"
2234
+ ],
2002
2235
  type: "bool"
2003
2236
  },
2004
2237
  {
2005
2238
  name: "oracle_type",
2006
- docs: ["Type of Oracle to use to derive Token Price"],
2239
+ docs: [
2240
+ "Type of Oracle to use to derive Token Price"
2241
+ ],
2007
2242
  type: {
2008
2243
  defined: {
2009
2244
  name: "OracleType"
2010
2245
  }
2011
2246
  }
2247
+ },
2248
+ {
2249
+ name: "expiry_time",
2250
+ docs: [
2251
+ "Time when contract expires, `expiry_percentage` will be set in this case"
2252
+ ],
2253
+ type: "u64"
2254
+ },
2255
+ {
2256
+ name: "expiry_percentage",
2257
+ docs: [
2258
+ "Percentage to set when contract expires, won't be updated after it"
2259
+ ],
2260
+ type: "u64"
2012
2261
  }
2013
2262
  ]
2014
2263
  }
@@ -2252,7 +2501,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
2252
2501
  tickSize,
2253
2502
  priceOracle,
2254
2503
  oracleType,
2255
- tokenProgramId: streamTokenProgramId
2504
+ tokenProgramId: streamTokenProgramId,
2505
+ expiryTime,
2506
+ expiryPercentage
2256
2507
  } = streamParams;
2257
2508
  const { isNative, sender, computeLimit, computePrice, metadataPubKeys } = extParams;
2258
2509
  if (!sender.publicKey) {
@@ -2304,7 +2555,9 @@ var SolanaStreamClient = class extends BaseStreamClient {
2304
2555
  minPercentage: minPercentage instanceof BN4__default.default ? minPercentage : common.getBN(minPercentage, ALIGNED_PRECISION_FACTOR_POW),
2305
2556
  maxPercentage: maxPercentage instanceof BN4__default.default ? maxPercentage : common.getBN(maxPercentage, ALIGNED_PRECISION_FACTOR_POW),
2306
2557
  tickSize: new BN4__default.default(tickSize || 1),
2307
- skipInitial: skipInitial ?? false
2558
+ skipInitial: skipInitial ?? false,
2559
+ expiryTime: new BN4__default.default(expiryTime ?? 0),
2560
+ expiryPercentage: expiryPercentage instanceof BN4__default.default ? expiryPercentage : common.getBN(expiryPercentage ?? 0, ALIGNED_PRECISION_FACTOR_POW)
2308
2561
  }).accountsPartial({
2309
2562
  payer: sender.publicKey,
2310
2563
  sender: sender.publicKey,