@streamflow/stream 11.0.2 → 11.0.4-alpha.p341.d4e1f95

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.
@@ -82,6 +82,9 @@ interface IGetAllData {
82
82
  address: string;
83
83
  type?: StreamType;
84
84
  direction?: StreamDirection;
85
+ filters?: {
86
+ closed?: boolean;
87
+ };
85
88
  }
86
89
  interface ICreateMultiError {
87
90
  recipient: string;
@@ -167,7 +170,6 @@ interface LinearStream {
167
170
  lastRateChangeTime: number;
168
171
  fundsUnlockedAtLastRateChange: BN;
169
172
  oldMetadata: PublicKey;
170
- metadata: PublicKey;
171
173
  type: StreamType;
172
174
  unlocked(currentTimestamp: number): BN;
173
175
  remaining(decimals: number): number;
@@ -398,10 +400,9 @@ declare class Contract implements LinearStream {
398
400
  lastRateChangeTime: number;
399
401
  fundsUnlockedAtLastRateChange: BN;
400
402
  oldMetadata: PublicKey;
401
- metadata: PublicKey;
402
403
  type: StreamType;
403
404
  isAligned: boolean;
404
- constructor(stream: DecodedStream, metadata: PublicKey);
405
+ constructor(stream: DecodedStream);
405
406
  unlocked(currentTimestamp: number): BN;
406
407
  remaining(decimals: number): number;
407
408
  }
@@ -422,7 +423,7 @@ declare class AlignedContract extends Contract implements AlignedStream {
422
423
  expiryTime: number;
423
424
  expiryPercentage: number;
424
425
  floorPrice: number;
425
- constructor(stream: DecodedStream, metadata: PublicKey, alignedProxy: AlignedUnlocksContract);
426
+ constructor(stream: DecodedStream, alignedProxy: AlignedUnlocksContract);
426
427
  }
427
428
  interface DecodedStream {
428
429
  magic: BN;
@@ -503,6 +504,7 @@ declare class SolanaStreamClient {
503
504
  private readonly commitment;
504
505
  readonly alignedProxyProgram: Program<StreamflowAlignedUnlocks>;
505
506
  private readonly schedulingParams;
507
+ private readonly apiClient;
506
508
  /**
507
509
  * Create Stream instance with flat arguments
508
510
  */
@@ -752,7 +754,7 @@ declare class SolanaStreamClient {
752
754
  * @param {IGetAllData} getData - Query parameters including address, stream type filter, and direction filter
753
755
  * @returns Record of stream data
754
756
  */
755
- get({ address, type, direction, }: IGetAllData): Promise<[string, Stream][]>;
757
+ get({ address, type, direction, filters, }: IGetAllData): Promise<[string, Stream][]>;
756
758
  /**
757
759
  * Searches for streams/contracts by providing filters.
758
760
  * @param {ISearchStreams} data - Search by mint, sender, recipient or closed status
@@ -812,6 +814,13 @@ declare class SolanaStreamClient {
812
814
  */
813
815
  isAlignedUnlock(streamPublicKey: PublicKey, senderPublicKey: PublicKey, oldMetadata?: PublicKey): boolean;
814
816
  private flatBuildCreateMultipleTransactionInstructions;
817
+ /**
818
+ * Gets closed streams for a given owner and direction
819
+ * @param owner - Owner address
820
+ * @param direction - Stream direction
821
+ * @returns Record of closed streams
822
+ */
823
+ getClosedStreams(owner: string, direction?: StreamDirection): Promise<Record<string, Stream>>;
815
824
  /**
816
825
  * Utility function to generate metadata for a Contract or return existing Pubkey
817
826
  */
@@ -828,7 +837,7 @@ declare class SolanaStreamClient {
828
837
  * For migrated streams, the aligned proxy PDA was derived from the original (old) metadata key,
829
838
  * so we need to use that instead of the current stream pubkey.
830
839
  */
831
- declare const getOriginalMetadataKey: (streamPubkey: PublicKey, oldMetadata: PublicKey) => PublicKey;
840
+ declare const getMetadataKey: (streamPubkey: PublicKey, oldMetadata: PublicKey) => PublicKey;
832
841
  /**
833
842
  * Calculate total amount of a Contract including all fees.
834
843
  * - first we convert fee floating to a BN with up to 4 decimals precision
@@ -868,6 +877,7 @@ declare function extractSolanaErrorCode(errorText: string, logs?: string[]): str
868
877
  declare const deriveContractPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
869
878
  declare const deriveEscrowPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
870
879
  declare const deriveTestOraclePDA: (programId: PublicKey, mint: PublicKey, creator: PublicKey) => PublicKey;
880
+ declare const deriveRepopulatedMetadataPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
871
881
 
872
882
  interface CreateStreamData {
873
883
  start: BN;
@@ -1107,6 +1117,7 @@ declare const TEST_ORACLE_DISCRIMINATOR: number[];
1107
1117
  declare const CONTRACT_SEED: Buffer$1;
1108
1118
  declare const ESCROW_SEED: Buffer$1;
1109
1119
  declare const TEST_ORACLE_SEED: Buffer$1;
1120
+ declare const REPOPULATED_METADATA_SEED: Buffer$1;
1110
1121
  declare const STREAMFLOW_TREASURY_PUBLIC_KEY: PublicKey;
1111
1122
  declare const WITHDRAWOR = "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u";
1112
1123
  declare const WITHDRAWOR_PUBLIC_KEY: PublicKey;
@@ -1185,4 +1196,169 @@ declare const _default: {
1185
1196
  }[];
1186
1197
  };
1187
1198
 
1188
- 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_OLD_METADATA_KEY, 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, getOriginalMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction };
1199
+ /**
1200
+ * Chain identifiers supported by Streamflow protocol
1201
+ */
1202
+ type Chain = "SOLANA" | "APTOS" | "ETHEREUM" | "BNB" | "POLYGON" | "SUI";
1203
+ /**
1204
+ * Contract types supported by Streamflow protocol
1205
+ */
1206
+ type ContractType = "VESTING" | "PAYMENT" | "TOKEN_LOCK" | "DYNAMIC_VESTING" | "DYNAMIC_LOCK";
1207
+ /**
1208
+ * Price oracle types for dynamic contracts
1209
+ */
1210
+ type PriceOracleType = "TEST" | "SWITCHBOARD" | "PYTH";
1211
+ /**
1212
+ * Contract schema matching OpenAPI specification
1213
+ * Used for API responses
1214
+ */
1215
+ interface ContractSchema {
1216
+ chain: Chain;
1217
+ programId: string;
1218
+ address: string;
1219
+ oldAddress: string | null;
1220
+ name: string;
1221
+ contractType: ContractType;
1222
+ sender: string;
1223
+ recipient: string;
1224
+ partner: string | null;
1225
+ mint: string;
1226
+ escrow: string | null;
1227
+ amount: string;
1228
+ cliffAmount: string;
1229
+ amountPerPeriod: string;
1230
+ claimedAmount: string;
1231
+ amountUnlockedAtLastRateUpdate: string;
1232
+ period: number;
1233
+ autoClaimPeriod: number;
1234
+ createdDt: string;
1235
+ startDt: string;
1236
+ endDt: string;
1237
+ canceledDt: string | null;
1238
+ pausedDt: string | null;
1239
+ lastClaimedDt: string | null;
1240
+ lastRateUpdateDt: string | null;
1241
+ isClosed: boolean;
1242
+ isFucked: boolean;
1243
+ isPausable: boolean;
1244
+ canTopup: boolean;
1245
+ hasAutoClaim: boolean;
1246
+ isCancelableBySender: boolean;
1247
+ isCancelableByRecipient: boolean;
1248
+ isTransferableBySender: boolean;
1249
+ isTransferableByRecipient: boolean;
1250
+ canUpdateRate: boolean | null;
1251
+ streamflowFee: string;
1252
+ streamflowFeeWithdrawn: string;
1253
+ streamflowFeePercentage: string;
1254
+ partnerFee: string;
1255
+ partnerFeeWithdrawn: string;
1256
+ partnerFeePercentage: string;
1257
+ txFee: string;
1258
+ pauseCumulative: number;
1259
+ creationFee: number | null;
1260
+ creationFeeClaimed: boolean | null;
1261
+ autoClaimFee: number | null;
1262
+ autoClaimFeeClaimed: boolean | null;
1263
+ lastUpdateSlot: number | null;
1264
+ dynamicContract: DynamicContractSchema | null;
1265
+ }
1266
+ /**
1267
+ * Dynamic contract schema for aligned stream data
1268
+ * Used for API responses with price-based streams
1269
+ */
1270
+ interface DynamicContractSchema {
1271
+ chain: Chain;
1272
+ programId: string;
1273
+ address: string;
1274
+ contractAddress: string;
1275
+ sender: string;
1276
+ priceOracleType: PriceOracleType | null;
1277
+ priceOracleAddress: string | null;
1278
+ minPrice: string;
1279
+ maxPrice: string;
1280
+ minPercentage: string;
1281
+ maxPercentage: string;
1282
+ tickSize: string;
1283
+ expiryDt: string | null;
1284
+ expiryPercentage: string;
1285
+ floorPrice: string;
1286
+ lastPrice: string;
1287
+ initialAmountPerPeriod: string;
1288
+ initialPrice: string;
1289
+ initialAmount: string;
1290
+ lastUpdateSlot: number | null;
1291
+ streamCanceledTime: string | number | null;
1292
+ }
1293
+ /**
1294
+ * TabulariumContract interface
1295
+ * Mirrors LinearStream with primitive types for API/public usage
1296
+ * All addresses are strings, timestamps are numbers, amounts are BN
1297
+ */
1298
+ interface TabulariumContract {
1299
+ address: string;
1300
+ sender: string;
1301
+ senderTokens: string;
1302
+ recipient: string;
1303
+ recipientTokens: string;
1304
+ partner: string;
1305
+ partnerTokens: string;
1306
+ mint: string;
1307
+ escrowTokens: string;
1308
+ streamflowTreasury: string;
1309
+ streamflowTreasuryTokens: string;
1310
+ depositedAmount: BN;
1311
+ withdrawnAmount: BN;
1312
+ cliffAmount: BN;
1313
+ amountPerPeriod: BN;
1314
+ streamflowFeeTotal: BN;
1315
+ streamflowFeeWithdrawn: BN;
1316
+ partnerFeeTotal: BN;
1317
+ partnerFeeWithdrawn: BN;
1318
+ pauseCumulative: BN;
1319
+ fundsUnlockedAtLastRateChange: BN;
1320
+ start: number;
1321
+ end: number;
1322
+ cliff: number;
1323
+ createdAt: number;
1324
+ canceledAt: number;
1325
+ lastWithdrawnAt: number;
1326
+ lastRateChangeTime: number;
1327
+ currentPauseStart: number;
1328
+ period: number;
1329
+ withdrawalFrequency: number;
1330
+ streamflowFeePercent: number;
1331
+ partnerFeePercent: number;
1332
+ cancelableBySender: boolean;
1333
+ cancelableByRecipient: boolean;
1334
+ transferableBySender: boolean;
1335
+ transferableByRecipient: boolean;
1336
+ canTopup: boolean;
1337
+ automaticWithdrawal: boolean;
1338
+ closed: boolean;
1339
+ name: string;
1340
+ type: StreamType;
1341
+ isAligned: boolean;
1342
+ magic: number;
1343
+ version: number;
1344
+ oldMetadata: string;
1345
+ }
1346
+
1347
+ interface ApiClientOptions {
1348
+ apiUrl?: string;
1349
+ cluster?: "mainnet" | "devnet";
1350
+ fetchFn?: typeof fetch;
1351
+ }
1352
+ interface GetContractsOptions {
1353
+ sender?: string;
1354
+ recipient?: string;
1355
+ }
1356
+ interface ApiClient {
1357
+ getContracts: (opts?: GetContractsOptions) => Promise<ContractSchema[]>;
1358
+ getContract: (address: string) => Promise<ContractSchema>;
1359
+ }
1360
+ declare const createClient: (options?: ApiClientOptions) => ApiClient;
1361
+
1362
+ declare const transformContract: (schema: ContractSchema) => Promise<Stream>;
1363
+
1364
+ 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 ApiClient, type ApiClientOptions, type BatchItem, type BatchItemError, type BatchItemResult, type BatchItemSuccess, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, type Chain, type ChangeOracleParams, type ClientCreationOptions, Contract, ContractErrorCode, type ContractSchema, type ContractType, type CreateParams, type CreateTestOracleParams, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, type DecodedStream, type DynamicContractSchema, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, type GetContractsOptions, 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, 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, SolanaStreamClient, type Stream, type StreamClientOptions, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, type TabulariumContract, type TestOracle, type TransactionSchedulingOptions, type UpdateTestOracleParams, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createClient, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, transformContract, 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_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_OLD_METADATA_KEY, 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, getOriginalMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, 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, ApiClient, ApiClientOptions, BatchItem, BatchItemError, BatchItemResult, BatchItemSuccess, CONTRACT_DISCRIMINATOR, CONTRACT_SEED, CREATE_PARAMS_PADDING, Chain, ChangeOracleParams, ClientCreationOptions, Contract, ContractErrorCode, ContractSchema, ContractType, CreateParams, CreateTestOracleParams, DEFAULT_AUTO_CLAIM_FEE_SOL, DEFAULT_CREATION_FEE_SOL, DEFAULT_STREAMFLOW_FEE, DecodedStream, DynamicContractSchema, ESCROW_SEED, FEES_METADATA_SEED, FEE_ORACLE_PUBLIC_KEY, GetContractsOptions, 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, 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, SolanaStreamClient, Stream, StreamClientOptions, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, TabulariumContract, TestOracle, TransactionSchedulingOptions, UpdateTestOracleParams, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createClient, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, timelockIDL, topupStreamInstruction, transferStreamInstruction, transformContract, 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';