Releases: streamflow-finance/js-sdk
v11.4.0
v11.3.1
transaction simulatiosn were failing due to SOL wrapping being in different transactions - moved these instructions to be together with creation
v11.3.0
- feat: expoe reward pool clawback for reward pools with fixed reward distribution;
v11.2.2
for some reason we had the wrong staging api url defined
v11.2.1
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
- feat: support vesting pdas (use v2 create if nonce provided)
v11.1.0
- 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
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
v11.0.3
v11.0.3