Releases: streamflow-finance/js-sdk
v9.2.0
Using public APIs for public endpoints
Note
Switches SDK to public API endpoints for token price and airdrop fees, and bumps all packages to 9.2.0.
- API usage:
packages/common/lib/fetch-token-price.ts: switch token price endpoint tohttps://token-api-public.streamflow.finance.packages/distributor/solana/fetchAirdropFee.ts: use public base URLshttps://api-public.streamflow.financeandhttps://staging-api-public.streamflow.finance.
- Release/version:
- Bump versions to
9.2.0inlerna.jsonand@streamflow/{common,distributor,eslint-config,launchpad,staking,stream}.
- Bump versions to
Written by Cursor Bugbot for commit 3817272. This will update automatically on new commits. Configure here.
v9.1.0
- feat: support
updateexposed by price based program to change contract mutability params;
v9.0.4
Note
Enhances searchStreams to detect aligned unlocks and return AlignedContract instances; bumps packages to 9.0.4.
- SDK (Solana
StreamClient):searchStreams: Detects aligned unlock contracts viaisAlignedUnlock, fetches proxy withderiveContractPDA, and returnsAlignedContract; otherwise returnsContract.
- Version:
- Bump all packages and
lerna.jsonfrom9.0.3to9.0.4.
- Bump all packages and
Written by Cursor Bugbot for commit b00d4bc. This will update automatically on new commits. Configure here.
v9.0.3
v9.0.3
v9.0.2
v9.0.1
Note
Exports the fees API from the Solana distributor entrypoint and bumps all package versions to 9.0.1.
- Distributor (Solana):
- Export
feesmodule viapackages/distributor/solana/index.ts(export * from "./fees.js").
- Export
- Release:
- Bump versions to
9.0.1inlerna.jsonand affectedpackage.jsonfiles (common,distributor,eslint-config,launchpad,staking,stream).
- Bump versions to
Written by Cursor Bugbot for commit ec9345c. This will update automatically on new commits. Configure here.
v9.0.0
Migrating Dynamic airdrop fees from app to the SDK
Note
Implements dynamic airdrop claim fees resolved via backend fee params and token/SOL prices, adds token price fetching and bigint math utilities, updates types/exports, and bumps packages to v9.0.0.
- Distributor (Solana):
- Dynamic claim fee resolution: Compute lamport fee via
resolveAirdropFeeLamportsUsingApiusingfetchAirdropFee,fetchTokenPrice, and price-based calculators with min/max clamping and fallbacks; default to minimum on errors. - BaseDistributorClient: Store
cluster; duringprepareClaimInstructionsderiveclaimableAmount(with legacy fallback), fetch mint, resolve fee, and pass toprepareClaimFeeInstruction. - New modules:
solana/fees.ts(fee constants, calculators, conversions) andsolana/fetchAirdropFee.ts; re-exportfetchAirdropFeeinsolana/index.ts. - Types:
IClaimDatanow includesclaimableAmount.
- Dynamic claim fee resolution: Compute lamport fee via
- Common:
- New token price util:
lib/fetch-token-price.ts+ export inindex.ts. - Math util:
multiplyBigIntByNumberadded tolib/utils.ts.
- New token price util:
- Repo:
- Version bump to
9.0.0across packages andlerna.json.
- Version bump to
Written by Cursor Bugbot for commit 791571f. This will update automatically on new commits. Configure here.
v8.9.0
- Updated READMEs for
distributorandstreampackage with examples - Removed unnecessary
Signer | Keypairtypes in some of the methods and requirePublicKeyinstead
v8.8.1
v8.8.1
v8.8.0
- add new stake pool boundaries - expiry, max stake, auto unstake;
- support create v2 in stake pools if new options are provided;
- update idls to support new options in accounts;
- expose governor idl;
This is an alpha-version, as changes are only on devnet for now.