@streamflow/stream 12.5.0-alpha.p366.24de361 → 13.0.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.
@@ -1,5 +1,5 @@
1
- import { D as DecodedStream, B as BatchItem, a as BatchItemResult, I as IUpdateData, S as StreamType, b as Stream, A as AlignedStream, c as ICreateStreamData, d as ICreateAlignedStreamData, e as ISearchStreams } from '../index-CjMTLhxa.cjs';
2
- export { f as Account, g as AlignedContract, h as AlignedProxyErrorCode, i as AlignedStreamData, j as AlignedUnlocksContract, k as BatchCreationItem, l as BatchExecuteResult, m as BatchInstructionResult, n as BatchItemError, o as BatchItemSuccess, p as BuildTransactionFn, q as BuildTransactionOptions, r as BuiltTransaction, C as CancelFn, s as ChangeOracleParams, t as ClientCreationOptions, u as Contract, v as ContractErrorCode, w as CreateBatchFn, x as CreateFn, y as CreateInstructionResult, z as CreateParams, E as CreateTestOracleParams, F as Env, G as ExecuteBatchFn, H as ExecuteBatchSequentialFn, J as ExecuteFn, K as ExecutionEnv, L as IAlignedStreamConfig, M as IBaseStreamConfig, N as ICancelData, O as ICreateExt, P as ICreateLinearStreamData, Q as ICreateLockBatchParams, R as ICreateLockParams, T as ICreateMultiError, U as ICreateMultipleAlignedStreamData, V as ICreateMultipleLinearStreamData, W as ICreateMultipleStreamData, X as ICreateResult, Y as ICreateStreamExt, Z as ICreateStreamInstructions, _ as ICreateVestingBatchParams, $ as ICreateVestingParams, a0 as IFees, a1 as IGetAllData, a2 as IGetFeesData, a3 as IGetOneData, a4 as IInteractData, a5 as IInteractStreamExt, a6 as ILockBatchRecipient, a7 as IMultiTransactionResult, a8 as IPrepareCreateStreamExt, a9 as IPrepareStreamExt, aa as IPrepareTopUpstreamExt, ab as IRecipient, ac as IRequestCancelData, ad as ITopUpData, ae as ITopUpStreamExt, af as ITransactionExtWithInstructions, ag as ITransactionResult, ah as ITransferData, ai as IVestingBatchRecipient, aj as IWithdrawCancelRequestData, ak as IWithdrawData, al as InstructionGenerator, am as InstructionResult, an as Invoker, ao as LinearStream, ap as MetadataRecipientHashMap, aq as NativeOptions, ar as OracleType, as as OracleTypeName, at as SignFn, au as SolanaStreamClient, av as StreamClientOptions, aw as StreamClientOptionsWithConnection, ax as StreamDirection, ay as TestOracle, az as TopupFn, aA as TransactionSchedulingOptions, aB as TransferFn, aC as UpdateFn, aD as UpdateTestOracleParams, aE as WithdrawFn, aF as buildLockBatchParams, aG as buildLockParams, aH as buildTransaction, aI as buildVestingBatchParams, aJ as buildVestingParams, aK as cancel, aL as computeAmountPerPeriod, aM as create, aN as createBatch, aO as createClientFromEnv, aP as createLock, aQ as createLockBatch, aR as createVesting, aS as createVestingBatch, aT as execute, aU as executeBatch, aV as executeBatchSequential, aW as resolveConnection, aX as resolveDuration, aY as sign, aZ as topup, a_ as transfer, a$ as update, b0 as withdraw } from '../index-CjMTLhxa.cjs';
1
+ import { D as DecodedStream, B as BatchItem, a as BatchItemResult, R as RoutedFeeDestination, I as IUpdateData, S as StreamType, b as Stream, A as AlignedStream, c as ICreateStreamData, d as ICreateAlignedStreamData, e as ISearchStreams } from '../index-80Zw9SxQ.cjs';
2
+ export { f as Account, g as AlignedContract, h as AlignedProxyErrorCode, i as AlignedStreamData, j as AlignedUnlocksContract, k as BatchCreationItem, l as BatchExecuteResult, m as BatchInstructionResult, n as BatchItemError, o as BatchItemSuccess, p as BuildTransactionFn, q as BuildTransactionOptions, r as BuiltTransaction, C as CancelFn, s as ChangeOracleParams, t as ClientCreationOptions, u as Contract, v as ContractErrorCode, w as CreateBatchFn, x as CreateFn, y as CreateInstructionResult, z as CreateParams, E as CreateTestOracleParams, F as Env, G as ExecuteBatchFn, H as ExecuteBatchSequentialFn, J as ExecuteFn, K as ExecutionEnv, L as IAlignedStreamConfig, M as IBaseStreamConfig, N as ICancelData, O as IClaimRoutedFeeData, P as ICreateExt, Q as ICreateLinearStreamData, T as ICreateLockBatchParams, U as ICreateLockParams, V as ICreateMultiError, W as ICreateMultipleAlignedStreamData, X as ICreateMultipleLinearStreamData, Y as ICreateMultipleStreamData, Z as ICreateResult, _ as ICreateStreamExt, $ as ICreateStreamInstructions, a0 as ICreateVestingBatchParams, a1 as ICreateVestingParams, a2 as IFees, a3 as IGetAllData, a4 as IGetFeesData, a5 as IGetOneData, a6 as IInteractData, a7 as IInteractStreamExt, a8 as ILockBatchRecipient, a9 as IMultiTransactionResult, aa as IPrepareCreateStreamExt, ab as IPrepareStreamExt, ac as IPrepareTopUpstreamExt, ad as IRecipient, ae as ITopUpData, af as ITopUpStreamExt, ag as ITransactionExtWithInstructions, ah as ITransactionResult, ai as ITransferData, aj as IVestingBatchRecipient, ak as IWithdrawData, al as InstructionGenerator, am as InstructionResult, an as Invoker, ao as LinearStream, ap as MetadataRecipientHashMap, aq as NativeOptions, ar as OracleType, as as OracleTypeName, at as SignFn, au as SolanaStreamClient, av as StreamClientOptions, aw as StreamClientOptionsWithConnection, ax as StreamDirection, ay as TestOracle, az as TopupFn, aA as TransactionSchedulingOptions, aB as TransferFn, aC as UpdateFn, aD as UpdateTestOracleParams, aE as WithdrawFn, aF as buildLockBatchParams, aG as buildLockParams, aH as buildTransaction, aI as buildVestingBatchParams, aJ as buildVestingParams, aK as cancel, aL as computeAmountPerPeriod, aM as create, aN as createBatch, aO as createClientFromEnv, aP as createLock, aQ as createLockBatch, aR as createVesting, aS as createVestingBatch, aT as execute, aU as executeBatch, aV as executeBatchSequential, aW as resolveConnection, aX as resolveDuration, aY as sign, aZ as topup, a_ as transfer, a$ as update, b0 as withdraw } from '../index-80Zw9SxQ.cjs';
3
3
  import { ConfirmationParams, ThrottleParams } from '@streamflow/common';
4
4
  export { ContractError, ICluster, getBN, getNumberFromBN } from '@streamflow/common';
5
5
  import { SignerWalletAdapter } from '@solana/wallet-adapter-base';
@@ -231,16 +231,17 @@ interface TransferAccounts {
231
231
  systemProgram: PublicKey;
232
232
  }
233
233
  declare const transferStreamInstruction: (programId: PublicKey, { authority, newRecipient, newRecipientTokens, metadata, mint, rent, tokenProgram, associatedTokenProgram, systemProgram, }: TransferAccounts) => Promise<TransactionInstruction>;
234
- interface RequestCancelAccounts {
235
- authority: PublicKey;
236
- metadata: PublicKey;
237
- }
238
- declare const requestCancelStreamInstruction: (programId: PublicKey, { authority, metadata }: RequestCancelAccounts) => Promise<TransactionInstruction>;
239
- interface WithdrawCancelRequestAccounts {
234
+ interface ClaimRoutedFeeAccounts {
240
235
  authority: PublicKey;
241
236
  metadata: PublicKey;
237
+ escrowTokens: PublicKey;
238
+ streamflowTreasury: PublicKey;
239
+ streamflowTreasuryTokens: PublicKey;
240
+ senderTokens: PublicKey;
241
+ mint: PublicKey;
242
+ tokenProgram: PublicKey;
242
243
  }
243
- declare const withdrawCancelRequestInstruction: (programId: PublicKey, { authority, metadata }: WithdrawCancelRequestAccounts) => Promise<TransactionInstruction>;
244
+ declare const claimRoutedFeeStreamInstruction: (destination: RoutedFeeDestination, programId: PublicKey, { authority, metadata, escrowTokens, streamflowTreasury, streamflowTreasuryTokens, senderTokens, mint, tokenProgram, }: ClaimRoutedFeeAccounts) => Promise<TransactionInstruction>;
244
245
  interface TopupAccounts {
245
246
  sender: PublicKey;
246
247
  senderTokens: PublicKey;
@@ -611,4 +612,4 @@ declare const createClient: (options?: ApiClientOptions) => ApiClient;
611
612
 
612
613
  declare const transformContract: (schema: ContractSchema) => Promise<Stream>;
613
614
 
614
- export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, AlignedStream, type ApiClient, type ApiClientOptions, BatchItem, BatchItemResult, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, type Chain, type ContractSchema, type ContractType, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, DecodedStream, type DynamicContractSchema, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, type GetContractsOptions, ICreateAlignedStreamData, ICreateStreamData, ISearchStreams, IUpdateData, MAX_SAFE_UNIX_TIME_VALUE, METADATA_SEED, ORIGINAL_CONTRACT_SENDER_OFFSET, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, type PriceOracleType, REPOPULATED_METADATA_SEED, SOLANA_ERROR_MAP, SOLANA_ERROR_MATCH_REGEX, STREAMFLOW_TREASURY_PUBLIC_KEY, STREAM_STRUCT_OFFSETS, STREAM_STRUCT_OFFSET_CLOSED, STREAM_STRUCT_OFFSET_MINT, STREAM_STRUCT_OFFSET_OLD_METADATA_KEY, STREAM_STRUCT_OFFSET_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, Stream, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, type TabulariumContract, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createClient, createStreamInstruction, createStreamV2Instruction, createUncheckedStreamInstruction, createUncheckedStreamV2Instruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveStreamMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, requestCancelStreamInstruction, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, transformContract, updateStreamInstruction, withdrawCancelRequestInstruction, withdrawStreamInstruction };
615
+ export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, AlignedStream, type ApiClient, type ApiClientOptions, BatchItem, BatchItemResult, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, type Chain, type ContractSchema, type ContractType, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, DecodedStream, type DynamicContractSchema, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, type GetContractsOptions, ICreateAlignedStreamData, ICreateStreamData, ISearchStreams, IUpdateData, MAX_SAFE_UNIX_TIME_VALUE, METADATA_SEED, ORIGINAL_CONTRACT_SENDER_OFFSET, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, type PriceOracleType, REPOPULATED_METADATA_SEED, RoutedFeeDestination, SOLANA_ERROR_MAP, SOLANA_ERROR_MATCH_REGEX, STREAMFLOW_TREASURY_PUBLIC_KEY, STREAM_STRUCT_OFFSETS, STREAM_STRUCT_OFFSET_CLOSED, STREAM_STRUCT_OFFSET_MINT, STREAM_STRUCT_OFFSET_OLD_METADATA_KEY, STREAM_STRUCT_OFFSET_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, Stream, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, type TabulariumContract, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, claimRoutedFeeStreamInstruction, createClient, createStreamInstruction, createStreamV2Instruction, createUncheckedStreamInstruction, createUncheckedStreamV2Instruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveStreamMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, transformContract, updateStreamInstruction, withdrawStreamInstruction };
@@ -71,8 +71,10 @@ interface IUpdateData extends IInteractData {
71
71
  cancelableBySender?: boolean;
72
72
  }
73
73
  type ICancelData = IInteractData;
74
- type IRequestCancelData = IInteractData;
75
- type IWithdrawCancelRequestData = IInteractData;
74
+ type RoutedFeeDestination = "treasury" | "sender";
75
+ interface IClaimRoutedFeeData extends IInteractData {
76
+ destination: RoutedFeeDestination;
77
+ }
76
78
  interface ITransferData extends IInteractData {
77
79
  newRecipient: string;
78
80
  }
@@ -749,33 +751,19 @@ declare class SolanaStreamClient {
749
751
  */
750
752
  prepareCancelLinearStream({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamExt): Promise<TransactionInstruction[]>;
751
753
  /**
752
- * Requests cancellation of a stream by the fee partner authority.
753
- * @param {IRequestCancelData} data - Request cancel parameters including stream ID
754
- * @param {IInteractStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
755
- * @returns Transaction result
756
- */
757
- requestCancel(data: IRequestCancelData, extParams: IInteractStreamExt): Promise<ITransactionResult>;
758
- /**
759
- * Creates Transaction Instructions for request_cancel
760
- * @param {IRequestCancelData} data - Request cancel parameters including stream ID
761
- * @param {IPrepareStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
762
- * @returns Transaction instructions
763
- */
764
- prepareRequestCancelInstructions({ id }: IRequestCancelData, { invoker, computePrice, computeLimit }: IPrepareStreamExt): Promise<TransactionInstruction[]>;
765
- /**
766
- * Withdraws a previously submitted cancel request.
767
- * @param {IWithdrawCancelRequestData} data - Withdraw cancel request parameters including stream ID
754
+ * Claims routed fee from the stream and routes it to the requested destination.
755
+ * @param {IClaimRoutedFeeData} data - Routed fee claim parameters including stream ID and destination
768
756
  * @param {IInteractStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
769
757
  * @returns Transaction result
770
758
  */
771
- withdrawCancelRequest(data: IWithdrawCancelRequestData, extParams: IInteractStreamExt): Promise<ITransactionResult>;
759
+ claimRoutedFee(data: IClaimRoutedFeeData, extParams: IInteractStreamExt): Promise<ITransactionResult>;
772
760
  /**
773
- * Creates Transaction Instructions for withdraw_cancel_request
774
- * @param {IWithdrawCancelRequestData} data - Withdraw cancel request parameters including stream ID
761
+ * Creates transaction instructions for claim_routed_fee.
762
+ * @param {IClaimRoutedFeeData} data - Routed fee claim parameters including stream ID and destination
775
763
  * @param {IPrepareStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
776
764
  * @returns Transaction instructions
777
765
  */
778
- prepareWithdrawCancelRequestInstructions({ id }: IWithdrawCancelRequestData, { invoker, computePrice, computeLimit }: IPrepareStreamExt): Promise<TransactionInstruction[]>;
766
+ prepareClaimRoutedFeeInstructions({ id, destination }: IClaimRoutedFeeData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamExt): Promise<TransactionInstruction[]>;
779
767
  /**
780
768
  * Attempts changing the stream/vesting contract's recipient (effectively transferring the stream/vesting contract).
781
769
  * Potential associated token account rent fee (to make it rent-exempt) is paid by the transaction initiator.
@@ -1111,4 +1099,4 @@ declare function execute(builtTx: BuiltTransaction, env: ExecutionEnv): Promise<
1111
1099
  declare function executeBatch(builtTransactions: BuiltTransaction[], env: ExecutionEnv): Promise<BatchExecuteResult>;
1112
1100
  declare function executeBatchSequential(builtTransactions: BuiltTransaction[], env: ExecutionEnv): Promise<BatchExecuteResult>;
1113
1101
 
1114
- export { type ICreateVestingParams as $, type AlignedStream as A, type BatchItem as B, type CancelFn as C, type DecodedStream as D, type CreateTestOracleParams as E, type Env as F, type ExecuteBatchFn as G, type ExecuteBatchSequentialFn as H, type IUpdateData as I, type ExecuteFn as J, type ExecutionEnv as K, type IAlignedStreamConfig as L, type IBaseStreamConfig as M, type ICancelData as N, type ICreateExt as O, type ICreateLinearStreamData as P, type ICreateLockBatchParams as Q, type ICreateLockParams as R, StreamType as S, type ICreateMultiError as T, type ICreateMultipleAlignedStreamData as U, type ICreateMultipleLinearStreamData as V, type ICreateMultipleStreamData as W, type ICreateResult as X, type ICreateStreamExt as Y, type ICreateStreamInstructions as Z, type ICreateVestingBatchParams as _, type BatchItemResult as a, update as a$, type IFees as a0, type IGetAllData as a1, type IGetFeesData as a2, type IGetOneData as a3, type IInteractData as a4, type IInteractStreamExt as a5, type ILockBatchRecipient as a6, type IMultiTransactionResult as a7, type IPrepareCreateStreamExt as a8, type IPrepareStreamExt as a9, type TransactionSchedulingOptions as aA, type TransferFn as aB, type UpdateFn as aC, type UpdateTestOracleParams as aD, type WithdrawFn as aE, buildLockBatchParams as aF, buildLockParams as aG, buildTransaction as aH, buildVestingBatchParams as aI, buildVestingParams as aJ, cancel as aK, computeAmountPerPeriod as aL, create as aM, createBatch as aN, createClientFromEnv as aO, createLock as aP, createLockBatch as aQ, createVesting as aR, createVestingBatch as aS, execute as aT, executeBatch as aU, executeBatchSequential as aV, resolveConnection as aW, resolveDuration as aX, sign as aY, topup as aZ, transfer as a_, type IPrepareTopUpstreamExt as aa, type IRecipient as ab, type IRequestCancelData as ac, type ITopUpData as ad, type ITopUpStreamExt as ae, type ITransactionExtWithInstructions as af, type ITransactionResult as ag, type ITransferData as ah, type IVestingBatchRecipient as ai, type IWithdrawCancelRequestData as aj, type IWithdrawData as ak, type InstructionGenerator as al, type InstructionResult as am, type Invoker as an, type LinearStream as ao, type MetadataRecipientHashMap as ap, type NativeOptions as aq, type OracleType as ar, type OracleTypeName as as, type SignFn as at, SolanaStreamClient as au, type StreamClientOptions as av, type StreamClientOptionsWithConnection as aw, StreamDirection as ax, type TestOracle as ay, type TopupFn as az, type Stream as b, withdraw as b0, type ICreateStreamData as c, type ICreateAlignedStreamData as d, type ISearchStreams as e, type Account as f, AlignedContract as g, AlignedProxyErrorCode as h, type AlignedStreamData as i, type AlignedUnlocksContract as j, type BatchCreationItem as k, type BatchExecuteResult as l, type BatchInstructionResult as m, type BatchItemError as n, type BatchItemSuccess as o, type BuildTransactionFn as p, type BuildTransactionOptions as q, type BuiltTransaction as r, type ChangeOracleParams as s, type ClientCreationOptions as t, Contract as u, ContractErrorCode as v, type CreateBatchFn as w, type CreateFn as x, type CreateInstructionResult as y, type CreateParams as z };
1102
+ export { type ICreateStreamInstructions as $, type AlignedStream as A, type BatchItem as B, type CancelFn as C, type DecodedStream as D, type CreateTestOracleParams as E, type Env as F, type ExecuteBatchFn as G, type ExecuteBatchSequentialFn as H, type IUpdateData as I, type ExecuteFn as J, type ExecutionEnv as K, type IAlignedStreamConfig as L, type IBaseStreamConfig as M, type ICancelData as N, type IClaimRoutedFeeData as O, type ICreateExt as P, type ICreateLinearStreamData as Q, type RoutedFeeDestination as R, StreamType as S, type ICreateLockBatchParams as T, type ICreateLockParams as U, type ICreateMultiError as V, type ICreateMultipleAlignedStreamData as W, type ICreateMultipleLinearStreamData as X, type ICreateMultipleStreamData as Y, type ICreateResult as Z, type ICreateStreamExt as _, type BatchItemResult as a, update as a$, type ICreateVestingBatchParams as a0, type ICreateVestingParams as a1, type IFees as a2, type IGetAllData as a3, type IGetFeesData as a4, type IGetOneData as a5, type IInteractData as a6, type IInteractStreamExt as a7, type ILockBatchRecipient as a8, type IMultiTransactionResult as a9, type TransactionSchedulingOptions as aA, type TransferFn as aB, type UpdateFn as aC, type UpdateTestOracleParams as aD, type WithdrawFn as aE, buildLockBatchParams as aF, buildLockParams as aG, buildTransaction as aH, buildVestingBatchParams as aI, buildVestingParams as aJ, cancel as aK, computeAmountPerPeriod as aL, create as aM, createBatch as aN, createClientFromEnv as aO, createLock as aP, createLockBatch as aQ, createVesting as aR, createVestingBatch as aS, execute as aT, executeBatch as aU, executeBatchSequential as aV, resolveConnection as aW, resolveDuration as aX, sign as aY, topup as aZ, transfer as a_, type IPrepareCreateStreamExt as aa, type IPrepareStreamExt as ab, type IPrepareTopUpstreamExt as ac, type IRecipient as ad, type ITopUpData as ae, type ITopUpStreamExt as af, type ITransactionExtWithInstructions as ag, type ITransactionResult as ah, type ITransferData as ai, type IVestingBatchRecipient as aj, type IWithdrawData as ak, type InstructionGenerator as al, type InstructionResult as am, type Invoker as an, type LinearStream as ao, type MetadataRecipientHashMap as ap, type NativeOptions as aq, type OracleType as ar, type OracleTypeName as as, type SignFn as at, SolanaStreamClient as au, type StreamClientOptions as av, type StreamClientOptionsWithConnection as aw, StreamDirection as ax, type TestOracle as ay, type TopupFn as az, type Stream as b, withdraw as b0, type ICreateStreamData as c, type ICreateAlignedStreamData as d, type ISearchStreams as e, type Account as f, AlignedContract as g, AlignedProxyErrorCode as h, type AlignedStreamData as i, type AlignedUnlocksContract as j, type BatchCreationItem as k, type BatchExecuteResult as l, type BatchInstructionResult as m, type BatchItemError as n, type BatchItemSuccess as o, type BuildTransactionFn as p, type BuildTransactionOptions as q, type BuiltTransaction as r, type ChangeOracleParams as s, type ClientCreationOptions as t, Contract as u, ContractErrorCode as v, type CreateBatchFn as w, type CreateFn as x, type CreateInstructionResult as y, type CreateParams as z };
@@ -1,5 +1,5 @@
1
- export { f as Account, g as AlignedContract, h as AlignedProxyErrorCode, A as AlignedStream, i as AlignedStreamData, j as AlignedUnlocksContract, k as BatchCreationItem, l as BatchExecuteResult, m as BatchInstructionResult, B as BatchItem, n as BatchItemError, a as BatchItemResult, o as BatchItemSuccess, p as BuildTransactionFn, q as BuildTransactionOptions, r as BuiltTransaction, C as CancelFn, s as ChangeOracleParams, t as ClientCreationOptions, u as Contract, v as ContractErrorCode, w as CreateBatchFn, x as CreateFn, y as CreateInstructionResult, z as CreateParams, E as CreateTestOracleParams, D as DecodedStream, F as Env, G as ExecuteBatchFn, H as ExecuteBatchSequentialFn, J as ExecuteFn, K as ExecutionEnv, L as IAlignedStreamConfig, M as IBaseStreamConfig, N as ICancelData, d as ICreateAlignedStreamData, O as ICreateExt, P as ICreateLinearStreamData, Q as ICreateLockBatchParams, R as ICreateLockParams, T as ICreateMultiError, U as ICreateMultipleAlignedStreamData, V as ICreateMultipleLinearStreamData, W as ICreateMultipleStreamData, X as ICreateResult, c as ICreateStreamData, Y as ICreateStreamExt, Z as ICreateStreamInstructions, _ as ICreateVestingBatchParams, $ as ICreateVestingParams, a0 as IFees, a1 as IGetAllData, a2 as IGetFeesData, a3 as IGetOneData, a4 as IInteractData, a5 as IInteractStreamExt, a6 as ILockBatchRecipient, a7 as IMultiTransactionResult, a8 as IPrepareCreateStreamExt, a9 as IPrepareStreamExt, aa as IPrepareTopUpstreamExt, ab as IRecipient, ac as IRequestCancelData, e as ISearchStreams, ad as ITopUpData, ae as ITopUpStreamExt, af as ITransactionExtWithInstructions, ag as ITransactionResult, ah as ITransferData, I as IUpdateData, ai as IVestingBatchRecipient, aj as IWithdrawCancelRequestData, ak as IWithdrawData, al as InstructionGenerator, am as InstructionResult, an as Invoker, ao as LinearStream, ap as MetadataRecipientHashMap, aq as NativeOptions, ar as OracleType, as as OracleTypeName, at as SignFn, au as SolanaStreamClient, b as Stream, av as StreamClientOptions, aw as StreamClientOptionsWithConnection, ax as StreamDirection, S as StreamType, ay as TestOracle, az as TopupFn, aA as TransactionSchedulingOptions, aB as TransferFn, aC as UpdateFn, aD as UpdateTestOracleParams, aE as WithdrawFn, aF as buildLockBatchParams, aG as buildLockParams, aH as buildTransaction, aI as buildVestingBatchParams, aJ as buildVestingParams, aK as cancel, aL as computeAmountPerPeriod, aM as create, aN as createBatch, aO as createClientFromEnv, aP as createLock, aQ as createLockBatch, aR as createVesting, aS as createVestingBatch, aT as execute, aU as executeBatch, aV as executeBatchSequential, aW as resolveConnection, aX as resolveDuration, aY as sign, aZ as topup, a_ as transfer, a$ as update, b0 as withdraw } from './index-Cu0If4Dd.js';
2
- export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, ApiClient, ApiClientOptions, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, Chain, ContractSchema, ContractType, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, DynamicContractSchema, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, GetContractsOptions, MAX_SAFE_UNIX_TIME_VALUE, METADATA_SEED, ORIGINAL_CONTRACT_SENDER_OFFSET, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, PriceOracleType, REPOPULATED_METADATA_SEED, SOLANA_ERROR_MAP, SOLANA_ERROR_MATCH_REGEX, STREAMFLOW_TREASURY_PUBLIC_KEY, STREAM_STRUCT_OFFSETS, STREAM_STRUCT_OFFSET_CLOSED, STREAM_STRUCT_OFFSET_MINT, STREAM_STRUCT_OFFSET_OLD_METADATA_KEY, STREAM_STRUCT_OFFSET_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, TabulariumContract, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createClient, createStreamInstruction, createStreamV2Instruction, createUncheckedStreamInstruction, createUncheckedStreamV2Instruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveStreamMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, requestCancelStreamInstruction, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, timelockIDL, topupStreamInstruction, transferStreamInstruction, transformContract, updateStreamInstruction, withdrawCancelRequestInstruction, withdrawStreamInstruction } from './solana/index.js';
1
+ export { f as Account, g as AlignedContract, h as AlignedProxyErrorCode, A as AlignedStream, i as AlignedStreamData, j as AlignedUnlocksContract, k as BatchCreationItem, l as BatchExecuteResult, m as BatchInstructionResult, B as BatchItem, n as BatchItemError, a as BatchItemResult, o as BatchItemSuccess, p as BuildTransactionFn, q as BuildTransactionOptions, r as BuiltTransaction, C as CancelFn, s as ChangeOracleParams, t as ClientCreationOptions, u as Contract, v as ContractErrorCode, w as CreateBatchFn, x as CreateFn, y as CreateInstructionResult, z as CreateParams, E as CreateTestOracleParams, D as DecodedStream, F as Env, G as ExecuteBatchFn, H as ExecuteBatchSequentialFn, J as ExecuteFn, K as ExecutionEnv, L as IAlignedStreamConfig, M as IBaseStreamConfig, N as ICancelData, O as IClaimRoutedFeeData, d as ICreateAlignedStreamData, P as ICreateExt, Q as ICreateLinearStreamData, T as ICreateLockBatchParams, U as ICreateLockParams, V as ICreateMultiError, W as ICreateMultipleAlignedStreamData, X as ICreateMultipleLinearStreamData, Y as ICreateMultipleStreamData, Z as ICreateResult, c as ICreateStreamData, _ as ICreateStreamExt, $ as ICreateStreamInstructions, a0 as ICreateVestingBatchParams, a1 as ICreateVestingParams, a2 as IFees, a3 as IGetAllData, a4 as IGetFeesData, a5 as IGetOneData, a6 as IInteractData, a7 as IInteractStreamExt, a8 as ILockBatchRecipient, a9 as IMultiTransactionResult, aa as IPrepareCreateStreamExt, ab as IPrepareStreamExt, ac as IPrepareTopUpstreamExt, ad as IRecipient, e as ISearchStreams, ae as ITopUpData, af as ITopUpStreamExt, ag as ITransactionExtWithInstructions, ah as ITransactionResult, ai as ITransferData, I as IUpdateData, aj as IVestingBatchRecipient, ak as IWithdrawData, al as InstructionGenerator, am as InstructionResult, an as Invoker, ao as LinearStream, ap as MetadataRecipientHashMap, aq as NativeOptions, ar as OracleType, as as OracleTypeName, R as RoutedFeeDestination, at as SignFn, au as SolanaStreamClient, b as Stream, av as StreamClientOptions, aw as StreamClientOptionsWithConnection, ax as StreamDirection, S as StreamType, ay as TestOracle, az as TopupFn, aA as TransactionSchedulingOptions, aB as TransferFn, aC as UpdateFn, aD as UpdateTestOracleParams, aE as WithdrawFn, aF as buildLockBatchParams, aG as buildLockParams, aH as buildTransaction, aI as buildVestingBatchParams, aJ as buildVestingParams, aK as cancel, aL as computeAmountPerPeriod, aM as create, aN as createBatch, aO as createClientFromEnv, aP as createLock, aQ as createLockBatch, aR as createVesting, aS as createVestingBatch, aT as execute, aU as executeBatch, aV as executeBatchSequential, aW as resolveConnection, aX as resolveDuration, aY as sign, aZ as topup, a_ as transfer, a$ as update, b0 as withdraw } from './index-CroMeFk7.js';
2
+ export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, ApiClient, ApiClientOptions, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, Chain, ContractSchema, ContractType, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, DynamicContractSchema, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, GetContractsOptions, MAX_SAFE_UNIX_TIME_VALUE, METADATA_SEED, ORIGINAL_CONTRACT_SENDER_OFFSET, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, PriceOracleType, REPOPULATED_METADATA_SEED, SOLANA_ERROR_MAP, SOLANA_ERROR_MATCH_REGEX, STREAMFLOW_TREASURY_PUBLIC_KEY, STREAM_STRUCT_OFFSETS, STREAM_STRUCT_OFFSET_CLOSED, STREAM_STRUCT_OFFSET_MINT, STREAM_STRUCT_OFFSET_OLD_METADATA_KEY, STREAM_STRUCT_OFFSET_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, TabulariumContract, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, claimRoutedFeeStreamInstruction, createClient, createStreamInstruction, createStreamV2Instruction, createUncheckedStreamInstruction, createUncheckedStreamV2Instruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveStreamMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, timelockIDL, topupStreamInstruction, transferStreamInstruction, transformContract, updateStreamInstruction, withdrawStreamInstruction } from './solana/index.js';
3
3
  export { ContractError, ICluster, getBN, getNumberFromBN } from '@streamflow/common';
4
4
  import '@solana/wallet-adapter-base';
5
5
  import '@solana/web3.js';
package/dist/esm/index.js CHANGED
@@ -1071,25 +1071,29 @@ var transferStreamInstruction = async (programId, {
1071
1071
  data
1072
1072
  });
1073
1073
  };
1074
- var requestCancelStreamInstruction = async (programId, { authority, metadata }) => {
1075
- const keys = [
1076
- { pubkey: authority, isSigner: true, isWritable: false },
1077
- { pubkey: metadata, isSigner: false, isWritable: true }
1078
- ];
1079
- const data = Buffer.concat([Buffer.from(await sha256.digest("global:request_cancel")).slice(0, 8), Buffer.alloc(10)]);
1080
- return new TransactionInstruction({
1081
- keys,
1082
- programId,
1083
- data
1084
- });
1085
- };
1086
- var withdrawCancelRequestInstruction = async (programId, { authority, metadata }) => {
1074
+ var claimRoutedFeeStreamInstruction = async (destination, programId, {
1075
+ authority,
1076
+ metadata,
1077
+ escrowTokens,
1078
+ streamflowTreasury,
1079
+ streamflowTreasuryTokens,
1080
+ senderTokens,
1081
+ mint,
1082
+ tokenProgram
1083
+ }) => {
1087
1084
  const keys = [
1088
1085
  { pubkey: authority, isSigner: true, isWritable: false },
1089
- { pubkey: metadata, isSigner: false, isWritable: true }
1086
+ { pubkey: metadata, isSigner: false, isWritable: true },
1087
+ { pubkey: escrowTokens, isSigner: false, isWritable: true },
1088
+ { pubkey: streamflowTreasury, isSigner: false, isWritable: true },
1089
+ { pubkey: streamflowTreasuryTokens, isSigner: false, isWritable: true },
1090
+ { pubkey: senderTokens, isSigner: false, isWritable: true },
1091
+ { pubkey: mint, isSigner: false, isWritable: true },
1092
+ { pubkey: tokenProgram, isSigner: false, isWritable: false }
1090
1093
  ];
1091
1094
  const data = Buffer.concat([
1092
- Buffer.from(await sha256.digest("global:withdraw_cancel_request")).slice(0, 8),
1095
+ Buffer.from(await sha256.digest("global:claim_routed_fee")).slice(0, 8),
1096
+ Buffer.from([destination === "treasury" ? 0 : 1]),
1093
1097
  Buffer.alloc(10)
1094
1098
  ]);
1095
1099
  return new TransactionInstruction({
@@ -4331,13 +4335,13 @@ var SolanaStreamClient = class {
4331
4335
  return ixs;
4332
4336
  }
4333
4337
  /**
4334
- * Requests cancellation of a stream by the fee partner authority.
4335
- * @param {IRequestCancelData} data - Request cancel parameters including stream ID
4338
+ * Claims routed fee from the stream and routes it to the requested destination.
4339
+ * @param {IClaimRoutedFeeData} data - Routed fee claim parameters including stream ID and destination
4336
4340
  * @param {IInteractStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
4337
4341
  * @returns Transaction result
4338
4342
  */
4339
- async requestCancel(data, extParams) {
4340
- const ixs = await this.prepareRequestCancelInstructions(data, extParams);
4343
+ async claimRoutedFee(data, extParams) {
4344
+ const ixs = await this.prepareClaimRoutedFeeInstructions(data, extParams);
4341
4345
  const { tx, hash, context } = await prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
4342
4346
  const signature = await signAndExecuteTransaction(
4343
4347
  this.connection,
@@ -4353,65 +4357,51 @@ var SolanaStreamClient = class {
4353
4357
  return { ixs, txId: signature };
4354
4358
  }
4355
4359
  /**
4356
- * Creates Transaction Instructions for request_cancel
4357
- * @param {IRequestCancelData} data - Request cancel parameters including stream ID
4360
+ * Creates transaction instructions for claim_routed_fee.
4361
+ * @param {IClaimRoutedFeeData} data - Routed fee claim parameters including stream ID and destination
4358
4362
  * @param {IPrepareStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
4359
4363
  * @returns Transaction instructions
4360
4364
  */
4361
- async prepareRequestCancelInstructions({ id }, { invoker, computePrice, computeLimit }) {
4365
+ async prepareClaimRoutedFeeInstructions({ id, destination }, { invoker, checkTokenAccounts, computePrice, computeLimit }) {
4362
4366
  assertHasPublicKey(invoker, "Invoker's PublicKey is not available, check passed wallet adapter!");
4363
4367
  const ixs = prepareBaseInstructions(this.connection, {
4364
4368
  computePrice,
4365
4369
  computeLimit
4366
4370
  });
4367
- ixs.push(
4368
- await requestCancelStreamInstruction(this.programId, {
4369
- authority: invoker.publicKey,
4370
- metadata: new PublicKey(id)
4371
- })
4372
- );
4373
- return ixs;
4374
- }
4375
- /**
4376
- * Withdraws a previously submitted cancel request.
4377
- * @param {IWithdrawCancelRequestData} data - Withdraw cancel request parameters including stream ID
4378
- * @param {IInteractStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
4379
- * @returns Transaction result
4380
- */
4381
- async withdrawCancelRequest(data, extParams) {
4382
- const ixs = await this.prepareWithdrawCancelRequestInstructions(data, extParams);
4383
- const { tx, hash, context } = await prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
4384
- const signature = await signAndExecuteTransaction(
4385
- this.connection,
4386
- extParams.invoker,
4387
- tx,
4388
- {
4389
- hash,
4390
- context,
4391
- commitment: this.getCommitment()
4392
- },
4393
- this.schedulingParams
4371
+ const streamPublicKey = new PublicKey(id);
4372
+ const streamAccount = await this.connection.getAccountInfo(streamPublicKey);
4373
+ invariant(streamAccount?.data, "Couldn't get account info");
4374
+ const { sender, mint, escrowTokens } = decodeStream(streamAccount.data);
4375
+ const { mint: mintAccount, tokenProgramId } = await getMintAndProgram(this.connection, mint);
4376
+ const streamflowTreasuryTokens = await ata(mint, STREAMFLOW_TREASURY_PUBLIC_KEY, tokenProgramId);
4377
+ const senderTokens = await ata(mint, sender, tokenProgramId);
4378
+ const ataIxs = await this.getCreateATAInstructions(
4379
+ [sender, STREAMFLOW_TREASURY_PUBLIC_KEY],
4380
+ mint,
4381
+ invoker,
4382
+ checkTokenAccounts,
4383
+ tokenProgramId
4394
4384
  );
4395
- return { ixs, txId: signature };
4396
- }
4397
- /**
4398
- * Creates Transaction Instructions for withdraw_cancel_request
4399
- * @param {IWithdrawCancelRequestData} data - Withdraw cancel request parameters including stream ID
4400
- * @param {IPrepareStreamExt} extParams - Transaction configuration including invoker wallet and compute settings
4401
- * @returns Transaction instructions
4402
- */
4403
- async prepareWithdrawCancelRequestInstructions({ id }, { invoker, computePrice, computeLimit }) {
4404
- assertHasPublicKey(invoker, "Invoker's PublicKey is not available, check passed wallet adapter!");
4405
- const ixs = prepareBaseInstructions(this.connection, {
4406
- computePrice,
4407
- computeLimit
4385
+ const claimRoutedFeeIx = await claimRoutedFeeStreamInstruction(destination, this.programId, {
4386
+ authority: invoker.publicKey,
4387
+ metadata: streamPublicKey,
4388
+ escrowTokens,
4389
+ streamflowTreasury: STREAMFLOW_TREASURY_PUBLIC_KEY,
4390
+ streamflowTreasuryTokens,
4391
+ senderTokens,
4392
+ mint,
4393
+ tokenProgram: tokenProgramId
4408
4394
  });
4409
- ixs.push(
4410
- await withdrawCancelRequestInstruction(this.programId, {
4411
- authority: invoker.publicKey,
4412
- metadata: new PublicKey(id)
4413
- })
4414
- );
4395
+ await this.addTransferHookAccounts(claimRoutedFeeIx, {
4396
+ mint,
4397
+ mintAccount,
4398
+ tokenProgramId,
4399
+ potentialTransfers: [
4400
+ { source: escrowTokens, destination: streamflowTreasuryTokens, owner: escrowTokens },
4401
+ { source: escrowTokens, destination: senderTokens, owner: escrowTokens }
4402
+ ]
4403
+ });
4404
+ ixs.push(...ataIxs, claimRoutedFeeIx);
4415
4405
  return ixs;
4416
4406
  }
4417
4407
  /**
@@ -5855,6 +5845,6 @@ async function executeBatchSequential(builtTransactions, env) {
5855
5845
  return { signatures, errors };
5856
5846
  }
5857
5847
 
5858
- export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW2 as ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, AlignedContract, AlignedProxyErrorCode, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, Contract, ContractErrorCode, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, MAX_SAFE_UNIX_TIME_VALUE2 as MAX_SAFE_UNIX_TIME_VALUE, METADATA_SEED, ORIGINAL_CONTRACT_SENDER_OFFSET, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, REPOPULATED_METADATA_SEED, SOLANA_ERROR_MAP, SOLANA_ERROR_MATCH_REGEX, STREAMFLOW_TREASURY_PUBLIC_KEY, STREAM_STRUCT_OFFSETS, STREAM_STRUCT_OFFSET_CLOSED, STREAM_STRUCT_OFFSET_MINT, STREAM_STRUCT_OFFSET_OLD_METADATA_KEY, STREAM_STRUCT_OFFSET_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, SolanaStreamClient, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildLockBatchParams, buildLockParams, buildStreamType, buildTransaction, buildVestingBatchParams, buildVestingParams, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancel, cancelStreamInstruction, computeAmountPerPeriod, create, createBatch, createClient, createClientFromEnv, createLock, createLockBatch, createStreamInstruction, createStreamV2Instruction, createUncheckedStreamInstruction, createUncheckedStreamV2Instruction, createVesting, createVestingBatch, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveStreamMetadataPDA, deriveTestOraclePDA, execute, executeBatch, executeBatchSequential, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, requestCancelStreamInstruction, resolveConnection, resolveDuration, sendAndConfirmStreamRawTransaction, sign, signAllTransactionWithRecipients, timelockIDL_default as timelockIDL, topup, topupStreamInstruction, transfer, transferStreamInstruction, transformContract, update, updateStreamInstruction, withdraw, withdrawCancelRequestInstruction, withdrawStreamInstruction };
5848
+ export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW2 as ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, AlignedContract, AlignedProxyErrorCode, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, Contract, ContractErrorCode, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, MAX_SAFE_UNIX_TIME_VALUE2 as MAX_SAFE_UNIX_TIME_VALUE, METADATA_SEED, ORIGINAL_CONTRACT_SENDER_OFFSET, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, REPOPULATED_METADATA_SEED, SOLANA_ERROR_MAP, SOLANA_ERROR_MATCH_REGEX, STREAMFLOW_TREASURY_PUBLIC_KEY, STREAM_STRUCT_OFFSETS, STREAM_STRUCT_OFFSET_CLOSED, STREAM_STRUCT_OFFSET_MINT, STREAM_STRUCT_OFFSET_OLD_METADATA_KEY, STREAM_STRUCT_OFFSET_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, SolanaStreamClient, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildLockBatchParams, buildLockParams, buildStreamType, buildTransaction, buildVestingBatchParams, buildVestingParams, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancel, cancelStreamInstruction, claimRoutedFeeStreamInstruction, computeAmountPerPeriod, create, createBatch, createClient, createClientFromEnv, createLock, createLockBatch, createStreamInstruction, createStreamV2Instruction, createUncheckedStreamInstruction, createUncheckedStreamV2Instruction, createVesting, createVestingBatch, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveStreamMetadataPDA, deriveTestOraclePDA, execute, executeBatch, executeBatchSequential, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, resolveConnection, resolveDuration, sendAndConfirmStreamRawTransaction, sign, signAllTransactionWithRecipients, timelockIDL_default as timelockIDL, topup, topupStreamInstruction, transfer, transferStreamInstruction, transformContract, update, updateStreamInstruction, withdraw, withdrawStreamInstruction };
5859
5849
  //# sourceMappingURL=index.js.map
5860
5850
  //# sourceMappingURL=index.js.map