@streamflow/stream 10.0.0-alpha.p313.3ce4d29 → 10.0.0-alpha.p313.43acc5b

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.
@@ -93,7 +93,12 @@ interface ITransactionResult {
93
93
  ixs: TransactionInstruction[];
94
94
  txId: string;
95
95
  }
96
+ /**
97
+ * Schema outlining vesting protocol fees.
98
+ */
96
99
  interface IFees {
100
+ creationFeeSol?: number;
101
+ autoClaimFeeSol?: number;
97
102
  streamflowFee: number;
98
103
  partnerFee: number;
99
104
  }
@@ -114,11 +119,11 @@ declare enum StreamDirection {
114
119
  }
115
120
  declare enum StreamType {
116
121
  All = "all",
117
- Payment = "payment",
118
122
  Vesting = "vesting",
119
123
  Lock = "lock"
120
124
  }
121
125
  interface LinearStream {
126
+ isAligned: boolean;
122
127
  magic: number;
123
128
  version: number;
124
129
  createdAt: number;
@@ -391,7 +396,7 @@ declare class Contract implements LinearStream {
391
396
  lastRateChangeTime: number;
392
397
  fundsUnlockedAtLastRateChange: BN;
393
398
  type: StreamType;
394
- isAligned?: boolean;
399
+ isAligned: boolean;
395
400
  constructor(stream: DecodedStream);
396
401
  unlocked(currentTimestamp: number): BN;
397
402
  remaining(decimals: number): number;
@@ -488,6 +493,8 @@ type ClientCreationOptions = Omit<StreamClientOptions, "sendRate" | "sendThrottl
488
493
  declare class SolanaStreamClient {
489
494
  private readonly connection;
490
495
  private readonly programId;
496
+ private readonly partnerOracleProgramId;
497
+ private readonly feeOraclePublicKey;
491
498
  private readonly commitment;
492
499
  readonly alignedProxyProgram: Program<StreamflowAlignedUnlocks>;
493
500
  private readonly schedulingParams;
@@ -554,7 +561,7 @@ declare class SolanaStreamClient {
554
561
  * @param {IPrepareCreateStreamExt} extParams - Transaction configuration including sender wallet, metadata keys, and compute settings
555
562
  * @returns Create stream instructions
556
563
  */
557
- prepareCreateStreamInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canPause, canUpdateRate, canTopup, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, tokenProgramId: streamTokenProgramId, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamExt): Promise<ICreateStreamInstructions>;
564
+ prepareCreateLinearStreamInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canPause, canUpdateRate, canTopup, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, tokenProgramId: streamTokenProgramId, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamExt): Promise<ICreateStreamInstructions>;
558
565
  /**
559
566
  * Creates a new stream/vesting contract using unchecked instruction.
560
567
  *
@@ -584,7 +591,7 @@ declare class SolanaStreamClient {
584
591
  * @param {IPrepareCreateStreamExt} extParams - Transaction configuration including sender public key, native token handling, and custom instructions
585
592
  * @returns Create multiple transaction instructions
586
593
  */
587
- buildCreateMultipleTransactionInstructions(data: ICreateMultipleStreamData, extParams: IPrepareCreateStreamExt): Promise<{
594
+ buildCreateMultipleTransactionInstructions(data: ICreateMultipleStreamData, extParams: IPrepareCreateStreamExt, applyCustomAfterInstructions?: boolean): Promise<{
588
595
  instructionsBatch: {
589
596
  ixs: TransactionInstruction[];
590
597
  metadata: Keypair | undefined;
@@ -620,7 +627,7 @@ declare class SolanaStreamClient {
620
627
  * @param {IPrepareCreateStreamExt} extParams - Transaction configuration including sender public key, native token handling, and custom instructions
621
628
  * @returns Multiple transaction information
622
629
  */
623
- buildCreateMultipleTransactions(data: ICreateMultipleStreamData, extParams: IPrepareCreateStreamExt): Promise<{
630
+ buildCreateMultipleTransactions(data: ICreateMultipleStreamData, extParams: IPrepareCreateStreamExt, applyCustomAfterInstructions?: boolean): Promise<{
624
631
  transactions: BatchItem[];
625
632
  metadatas: string[];
626
633
  metadataToRecipient: MetadataRecipientHashMap;
@@ -638,7 +645,7 @@ declare class SolanaStreamClient {
638
645
  * @param {ICreateStreamExt} extParams - Transaction configuration including sender wallet, metadata keys, and compute settings
639
646
  * @returns Multiple transaction information
640
647
  */
641
- createMultiple(data: ICreateMultipleStreamData, extParams: ICreateStreamExt): Promise<IMultiTransactionResult>;
648
+ createMultiple(data: ICreateMultipleStreamData[] | ICreateMultipleStreamData, extParams: ICreateStreamExt): Promise<IMultiTransactionResult>;
642
649
  /**
643
650
  * Creates multiple stream/vesting contracts, and send all transactions sequentially.
644
651
  * All fees are paid by sender (escrow metadata account rent, escrow token account rent, recipient's associated token account rent, Streamflow's service fee).
@@ -647,7 +654,7 @@ declare class SolanaStreamClient {
647
654
  * @param {ICreateStreamExt} extParams - Transaction configuration including sender wallet, metadata keys, and compute settings
648
655
  * @returns Multiple transaction information
649
656
  */
650
- createMultipleSequential(data: ICreateMultipleStreamData, extParams: ICreateStreamExt): Promise<IMultiTransactionResult>;
657
+ createMultipleSequential(data: ICreateMultipleStreamData[] | ICreateMultipleStreamData, extParams: ICreateStreamExt): Promise<IMultiTransactionResult>;
651
658
  /**
652
659
  * Attempts withdrawing from the specified stream.
653
660
  * @param {IWithdrawData} withdrawData - Withdrawal parameters including stream ID and amount to withdraw
@@ -689,7 +696,7 @@ declare class SolanaStreamClient {
689
696
  * @param {IPrepareStreamExt} extParams - Transaction configuration including invoker wallet, token account validation, and compute settings
690
697
  * @returns Transaction instructions
691
698
  */
692
- prepareCancelStreamInstructions({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamExt): Promise<TransactionInstruction[]>;
699
+ prepareCancelLinearStream({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamExt): Promise<TransactionInstruction[]>;
693
700
  /**
694
701
  * Attempts changing the stream/vesting contract's recipient (effectively transferring the stream/vesting contract).
695
702
  * Potential associated token account rent fee (to make it rent-exempt) is paid by the transaction initiator.
@@ -746,6 +753,10 @@ declare class SolanaStreamClient {
746
753
  * @returns Record of stream data
747
754
  */
748
755
  searchStreams(data: ISearchStreams): Promise<IProgramAccount<Stream>[]>;
756
+ private decodeStreamsFromAccounts;
757
+ private collectAlignedEntries;
758
+ private fetchAlignedProxiesByEntries;
759
+ private mapDecodedToProgramAccounts;
749
760
  /**
750
761
  * Attempts updating the stream auto withdrawal params and amount per period
751
762
  * @param {IUpdateData} data - Update parameters including stream ID and new settings
@@ -771,10 +782,15 @@ declare class SolanaStreamClient {
771
782
  * @returns Default streamflow fee
772
783
  */
773
784
  getDefaultStreamflowFee(): Promise<number>;
785
+ /**
786
+ * Get all defaults fees applied by the protocol.
787
+ *
788
+ * Protocol will use fees set for WITHDRAWOR as default if they are set.
789
+ */
790
+ getDefaultFees(): Promise<IFees>;
774
791
  /**
775
792
  * Returns total fee percent, streamflow fees + partner fees
776
793
  * @param getFeesData structure with address for which we need to derive fee, either sender or partner usually
777
- * @param chainSpecificParams additional parameters required by chain client
778
794
  * @returns fee as floating number, so if fee is 0.99%, it will return 0.99
779
795
  */
780
796
  getTotalFee(getFeesData: IGetFeesData): Promise<number>;
@@ -785,9 +801,10 @@ declare class SolanaStreamClient {
785
801
  */
786
802
  extractErrorCode(err: Error): string | null;
787
803
  /**
788
- * Utility function that checks whether the associated stream address is an aligned unlock contract, indicated by whether the sender/creator is a PDA
789
- */
804
+ * Utility function that checks whether the associated stream address is an aligned unlock contract, indicated by whether the sender/creator is a PDA
805
+ */
790
806
  isAlignedUnlock(streamPublicKey: PublicKey, senderPublicKey: PublicKey): boolean;
807
+ private flatBuildCreateMultipleTransactionInstructions;
791
808
  /**
792
809
  * Utility function to generate metadata for a Contract or return existing Pubkey
793
810
  */
@@ -994,11 +1011,7 @@ declare const isCliffCloseToDepositedAmount: (streamData: {
994
1011
  depositedAmount: BN;
995
1012
  cliffAmount: BN;
996
1013
  }) => boolean;
997
- declare const isPayment: (streamData: {
998
- canTopup: boolean;
999
- }) => boolean;
1000
1014
  declare const isVesting: (streamData: {
1001
- canTopup: boolean;
1002
1015
  depositedAmount: BN;
1003
1016
  cliffAmount: BN;
1004
1017
  minPrice?: number;
@@ -1062,19 +1075,32 @@ declare const ALIGNED_UNLOCKS_PROGRAM_ID: {
1062
1075
  testnet: string;
1063
1076
  local: string;
1064
1077
  };
1078
+ declare const PARTNER_ORACLE_PROGRAM_ID: {
1079
+ devnet: string;
1080
+ mainnet: string;
1081
+ testnet: string;
1082
+ local: string;
1083
+ };
1084
+ declare const FEE_ORACLE_PUBLIC_KEY: {
1085
+ devnet: string;
1086
+ mainnet: string;
1087
+ testnet: string;
1088
+ local: string;
1089
+ };
1065
1090
  declare const ALIGNED_COMPUTE_LIMIT = 300000;
1066
1091
  declare const CONTRACT_DISCRIMINATOR: number[];
1067
1092
  declare const TEST_ORACLE_DISCRIMINATOR: number[];
1068
1093
  declare const CONTRACT_SEED: Buffer$1;
1069
1094
  declare const ESCROW_SEED: Buffer$1;
1070
1095
  declare const TEST_ORACLE_SEED: Buffer$1;
1071
- declare const PARTNER_ORACLE_PROGRAM_ID = "pardpVtPjC8nLj1Dwncew62mUzfChdCX1EaoZe8oCAa";
1072
1096
  declare const STREAMFLOW_TREASURY_PUBLIC_KEY: PublicKey;
1097
+ declare const WITHDRAWOR = "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u";
1073
1098
  declare const WITHDRAWOR_PUBLIC_KEY: PublicKey;
1074
- declare const FEE_ORACLE_PUBLIC_KEY: PublicKey;
1075
1099
  declare const AIRDROP_TEST_TOKEN = "Gssm3vfi8s65R31SBdmQRq6cKeYojGgup7whkw4VCiQj";
1076
1100
  declare const FEES_METADATA_SEED: Buffer$1;
1077
- declare const DEFAULT_STREAMFLOW_FEE = 0.99;
1101
+ declare const DEFAULT_CREATION_FEE_SOL = 90000000;
1102
+ declare const DEFAULT_AUTO_CLAIM_FEE_SOL = 190000000;
1103
+ declare const DEFAULT_STREAMFLOW_FEE = 0.19;
1078
1104
  declare const AIRDROP_AMOUNT = 1;
1079
1105
  declare const PARTNER_SCHEMA: {
1080
1106
  struct: {
@@ -1084,8 +1110,15 @@ declare const PARTNER_SCHEMA: {
1084
1110
  len: number;
1085
1111
  };
1086
1112
  };
1087
- partner_fee: string;
1088
- strm_fee: string;
1113
+ creation_fee: string;
1114
+ auto_claim_fee: string;
1115
+ token_fee_percent: string;
1116
+ buffer: {
1117
+ array: {
1118
+ type: string;
1119
+ len: number;
1120
+ };
1121
+ };
1089
1122
  };
1090
1123
  };
1091
1124
  declare const PARTNERS_SCHEMA: {
@@ -1098,8 +1131,15 @@ declare const PARTNERS_SCHEMA: {
1098
1131
  len: number;
1099
1132
  };
1100
1133
  };
1101
- partner_fee: string;
1102
- strm_fee: string;
1134
+ creation_fee: string;
1135
+ auto_claim_fee: string;
1136
+ token_fee_percent: string;
1137
+ buffer: {
1138
+ array: {
1139
+ type: string;
1140
+ len: number;
1141
+ };
1142
+ };
1103
1143
  };
1104
1144
  };
1105
1145
  };
@@ -1131,4 +1171,4 @@ declare const _default: {
1131
1171
  }[];
1132
1172
  };
1133
1173
 
1134
- export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, type Account, AlignedContract, AlignedProxyErrorCode, type AlignedStream, type AlignedStreamData, type AlignedUnlocksContract, type BatchItem, type BatchItemError, type BatchItemResult, type BatchItemSuccess, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, type ChangeOracleParams, type ClientCreationOptions, Contract, ContractErrorCode, type CreateParams, type CreateTestOracleParams, DEFAULT_STREAMFLOW_FEE, type DecodedStream, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, type IAlignedStreamConfig, type IBaseStreamConfig, type ICancelData, type ICreateAlignedStreamData, type ICreateExt, type ICreateLinearStreamData, type ICreateMultiError, type ICreateMultipleAlignedStreamData, type ICreateMultipleLinearStreamData, type ICreateMultipleStreamData, type ICreateResult, type ICreateStreamData, type ICreateStreamExt, type ICreateStreamInstructions, type IFees, type IGetAllData, type IGetFeesData, type IGetOneData, type IInteractData, type IInteractStreamExt, type IMultiTransactionResult, type IPrepareCreateStreamExt, type IPrepareStreamExt, type IRecipient, type ISearchStreams, type ITopUpData, type ITopUpStreamExt, type ITransactionExtWithInstructions, type ITransactionResult, type ITransferData, type IUpdateData, type IWithdrawData, type InstructionGenerator, type LinearStream, MAX_SAFE_UNIX_TIME_VALUE, type MetadataRecipientHashMap, ORIGINAL_CONTRACT_SENDER_OFFSET, type OracleType, type OracleTypeName, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, 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_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, SolanaStreamClient, type Stream, type StreamClientOptions, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, type TestOracle, type TransactionSchedulingOptions, type UpdateTestOracleParams, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveTestOraclePDA, extractSolanaErrorCode, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isPayment, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction };
1174
+ export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, type Account, AlignedContract, AlignedProxyErrorCode, type AlignedStream, type AlignedStreamData, type AlignedUnlocksContract, type BatchItem, type BatchItemError, type BatchItemResult, type BatchItemSuccess, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, type ChangeOracleParams, type ClientCreationOptions, Contract, ContractErrorCode, type CreateParams, type CreateTestOracleParams, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, type DecodedStream, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, type IAlignedStreamConfig, type IBaseStreamConfig, type ICancelData, type ICreateAlignedStreamData, type ICreateExt, type ICreateLinearStreamData, type ICreateMultiError, type ICreateMultipleAlignedStreamData, type ICreateMultipleLinearStreamData, type ICreateMultipleStreamData, type ICreateResult, type ICreateStreamData, type ICreateStreamExt, type ICreateStreamInstructions, type IFees, type IGetAllData, type IGetFeesData, type IGetOneData, type IInteractData, type IInteractStreamExt, type IMultiTransactionResult, type IPrepareCreateStreamExt, type IPrepareStreamExt, type IRecipient, type ISearchStreams, type ITopUpData, type ITopUpStreamExt, type ITransactionExtWithInstructions, type ITransactionResult, type ITransferData, type IUpdateData, type IWithdrawData, type InstructionGenerator, type LinearStream, MAX_SAFE_UNIX_TIME_VALUE, type MetadataRecipientHashMap, ORIGINAL_CONTRACT_SENDER_OFFSET, type OracleType, type OracleTypeName, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, 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_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, SolanaStreamClient, type Stream, type StreamClientOptions, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, type TestOracle, type TransactionSchedulingOptions, type UpdateTestOracleParams, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveTestOraclePDA, extractSolanaErrorCode, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction };
@@ -1,4 +1,4 @@
1
- export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, Account, AlignedContract, AlignedProxyErrorCode, AlignedStream, AlignedStreamData, AlignedUnlocksContract, BatchItem, BatchItemError, BatchItemResult, BatchItemSuccess, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, ChangeOracleParams, ClientCreationOptions, Contract, ContractErrorCode, CreateParams, CreateTestOracleParams, DEFAULT_STREAMFLOW_FEE, DecodedStream, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, IAlignedStreamConfig, IBaseStreamConfig, ICancelData, ICreateAlignedStreamData, ICreateExt, ICreateLinearStreamData, ICreateMultiError, ICreateMultipleAlignedStreamData, ICreateMultipleLinearStreamData, ICreateMultipleStreamData, ICreateResult, ICreateStreamData, ICreateStreamExt, ICreateStreamInstructions, IFees, IGetAllData, IGetFeesData, IGetOneData, IInteractData, IInteractStreamExt, IMultiTransactionResult, IPrepareCreateStreamExt, IPrepareStreamExt, IRecipient, ISearchStreams, ITopUpData, ITopUpStreamExt, ITransactionExtWithInstructions, ITransactionResult, ITransferData, IUpdateData, IWithdrawData, InstructionGenerator, LinearStream, MAX_SAFE_UNIX_TIME_VALUE, MetadataRecipientHashMap, ORIGINAL_CONTRACT_SENDER_OFFSET, OracleType, OracleTypeName, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, 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_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, SolanaStreamClient, Stream, StreamClientOptions, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, TestOracle, TransactionSchedulingOptions, UpdateTestOracleParams, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveTestOraclePDA, extractSolanaErrorCode, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isPayment, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction } from './solana/index.js';
1
+ export { AIRDROP_AMOUNT, AIRDROP_TEST_TOKEN, ALIGNED_COMPUTE_LIMIT, ALIGNED_PRECISION_FACTOR_POW, ALIGNED_UNLOCKS_PROGRAM_ID, Account, AlignedContract, AlignedProxyErrorCode, AlignedStream, AlignedStreamData, AlignedUnlocksContract, BatchItem, BatchItemError, BatchItemResult, BatchItemSuccess, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, ChangeOracleParams, ClientCreationOptions, Contract, ContractErrorCode, CreateParams, CreateTestOracleParams, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, DecodedStream, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, IAlignedStreamConfig, IBaseStreamConfig, ICancelData, ICreateAlignedStreamData, ICreateExt, ICreateLinearStreamData, ICreateMultiError, ICreateMultipleAlignedStreamData, ICreateMultipleLinearStreamData, ICreateMultipleStreamData, ICreateResult, ICreateStreamData, ICreateStreamExt, ICreateStreamInstructions, IFees, IGetAllData, IGetFeesData, IGetOneData, IInteractData, IInteractStreamExt, IMultiTransactionResult, IPrepareCreateStreamExt, IPrepareStreamExt, IRecipient, ISearchStreams, ITopUpData, ITopUpStreamExt, ITransactionExtWithInstructions, ITransactionResult, ITransferData, IUpdateData, IWithdrawData, InstructionGenerator, LinearStream, MAX_SAFE_UNIX_TIME_VALUE, MetadataRecipientHashMap, ORIGINAL_CONTRACT_SENDER_OFFSET, OracleType, OracleTypeName, PARTNERS_SCHEMA, PARTNER_ORACLE_PROGRAM_ID, PARTNER_SCHEMA, PROGRAM_ID, 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_RECIPIENT, STREAM_STRUCT_OFFSET_SENDER, SolanaStreamClient, Stream, StreamClientOptions, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, TestOracle, TransactionSchedulingOptions, UpdateTestOracleParams, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveTestOraclePDA, extractSolanaErrorCode, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction } from './solana/index.js';
2
2
  export { ContractError, ICluster, getBN, getNumberFromBN } from '@streamflow/common';
3
3
  import 'p-queue';
4
4
  import '@solana/web3.js';