Skip to content

Releases: streamflow-finance/js-sdk

v11.4.0

20 Apr 02:11
bd43795

Choose a tag to compare

feat: support transfer hook, partner link

v11.3.1

07 Apr 15:01
cb3cd50

Choose a tag to compare

transaction simulatiosn were failing due to SOL wrapping being in different transactions - moved these instructions to be together with creation

v11.3.0

30 Mar 17:17
5e14fe3

Choose a tag to compare

  • feat: expoe reward pool clawback for reward pools with fixed reward distribution;

v11.2.2

18 Mar 11:59
135ed31

Choose a tag to compare

for some reason we had the wrong staging api url defined

v11.2.1

09 Mar 17:55
d37680d

Choose a tag to compare

The root cause was that isTokenLock in the SDK only checked the cliff amount (if it is close to the deposited amount) but never checked the cliff  time (if it is close to the end date). So a contract that unlocks 100% of tokens at creation but has an end date a year later still passed the lock check.
The fix adds a time based validation to isTokenLock and buildStreamType in packages/stream/solana/contractUtils.ts. When a contract is identified as a lock via the cliff-amount path, it now also verifies that the gap between the cliff timestamp and end timestamp is no more than 1 second. Legitimate locks created through our app have a gap of 1 second, so this threshold has wide margin. If the gap exceeds 1 second, the contract is reclassified as vesting - which means the UI will show the correct unlock schedule instead of a misleading lock date.
The cliff and end fields were added as optional parameters to keep backward compatibility - external callers that don't pass them get the same behavior as before. Dynamic locks (classified via the price/percentage path) are completely unaffected.

v11.2.0

27 Feb 03:13
011fc46

Choose a tag to compare

  • feat: support vesting pdas (use v2 create if nonce provided)

v11.1.0

25 Feb 04:37
64a538f

Choose a tag to compare

  • feat: export createFundDelegate - allows periodical automated top ups for reward pools with Dynamic APY;
  • chore: update README to outline auto-unstake and fund-delegate features;

v11.0.5

20 Feb 13:07
5ff1599

Choose a tag to compare

Add api-public module with client for Streamflow's public API:

  • createClient() for mainnet/devnet with configurable fetch
  • getContracts() with optional sender/recipient filters
  • getContract() for single contract by address
  • transformContract() to map API schema to SDK Stream/Contract types

Wire API client into StreamClient for getStream and getStreamHistory. Expose api-public from stream package exports.

Infra: env helpers, tsup config updates, package deps.

v11.0.4

18 Feb 19:33
fc480b8

Choose a tag to compare

v11.0.3

18 Feb 19:13
a5380e7

Choose a tag to compare

v11.0.3