@streamflow/stream 11.1.0-alpha.p335.b571df3 → 11.2.0-alpha.p342.ccd18cf

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.
@@ -14,6 +14,7 @@ interface IRecipient {
14
14
  name: string;
15
15
  cliffAmount: BN;
16
16
  amountPerPeriod: BN;
17
+ nonce?: number;
17
18
  }
18
19
  interface IBaseStreamConfig {
19
20
  period: number;
@@ -82,6 +83,9 @@ interface IGetAllData {
82
83
  address: string;
83
84
  type?: StreamType;
84
85
  direction?: StreamDirection;
86
+ filters?: {
87
+ closed?: boolean;
88
+ };
85
89
  }
86
90
  interface ICreateMultiError {
87
91
  recipient: string;
@@ -161,12 +165,16 @@ interface LinearStream {
161
165
  canTopup: boolean;
162
166
  name: string;
163
167
  withdrawalFrequency: number;
168
+ isPda: boolean;
169
+ nonce: number;
164
170
  closed: boolean;
165
171
  currentPauseStart: number;
166
172
  pauseCumulative: BN;
167
173
  lastRateChangeTime: number;
168
174
  fundsUnlockedAtLastRateChange: BN;
169
175
  oldMetadata: PublicKey;
176
+ payer: string;
177
+ bump: number;
170
178
  type: StreamType;
171
179
  unlocked(currentTimestamp: number): BN;
172
180
  remaining(decimals: number): number;
@@ -391,12 +399,16 @@ declare class Contract implements LinearStream {
391
399
  canTopup: boolean;
392
400
  name: string;
393
401
  withdrawalFrequency: number;
402
+ isPda: boolean;
403
+ nonce: number;
394
404
  closed: boolean;
395
405
  currentPauseStart: number;
396
406
  pauseCumulative: BN;
397
407
  lastRateChangeTime: number;
398
408
  fundsUnlockedAtLastRateChange: BN;
399
409
  oldMetadata: PublicKey;
410
+ payer: string;
411
+ bump: number;
400
412
  type: StreamType;
401
413
  isAligned: boolean;
402
414
  constructor(stream: DecodedStream);
@@ -460,12 +472,16 @@ interface DecodedStream {
460
472
  canTopup: boolean;
461
473
  name: string;
462
474
  withdrawFrequency: BN;
475
+ isPda: boolean;
476
+ nonce: number;
463
477
  closed: boolean;
464
478
  currentPauseStart: BN;
465
479
  pauseCumulative: BN;
466
480
  lastRateChangeTime: BN;
467
481
  fundsUnlockedAtLastRateChange: BN;
468
482
  oldMetadata: PublicKey;
483
+ payer: PublicKey;
484
+ bump: number;
469
485
  }
470
486
  interface MetadataRecipientHashMap {
471
487
  [metadataPubKey: string]: IRecipient;
@@ -501,6 +517,7 @@ declare class SolanaStreamClient {
501
517
  private readonly commitment;
502
518
  readonly alignedProxyProgram: Program<StreamflowAlignedUnlocks>;
503
519
  private readonly schedulingParams;
520
+ private readonly apiClient;
504
521
  /**
505
522
  * Create Stream instance with flat arguments
506
523
  */
@@ -564,7 +581,7 @@ declare class SolanaStreamClient {
564
581
  * @param {IPrepareCreateStreamExt} extParams - Transaction configuration including sender wallet, metadata keys, and compute settings
565
582
  * @returns Create stream instructions
566
583
  */
567
- 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>;
584
+ prepareCreateLinearStreamInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canPause, canUpdateRate, canTopup, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, tokenProgramId: streamTokenProgramId, nonce, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamExt): Promise<ICreateStreamInstructions>;
568
585
  /**
569
586
  * Creates a new stream/vesting contract using unchecked instruction.
570
587
  *
@@ -582,7 +599,7 @@ declare class SolanaStreamClient {
582
599
  /**
583
600
  * Create Transaction instructions for `createUnchecked`
584
601
  */
585
- prepareCreateUncheckedInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canTopup, canUpdateRate, canPause, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamExt): Promise<{
602
+ prepareCreateUncheckedInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canTopup, canUpdateRate, canPause, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, nonce, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamExt): Promise<{
586
603
  ixs: TransactionInstruction[];
587
604
  metadata: Keypair | undefined;
588
605
  metadataPubKey: PublicKey;
@@ -750,7 +767,7 @@ declare class SolanaStreamClient {
750
767
  * @param {IGetAllData} getData - Query parameters including address, stream type filter, and direction filter
751
768
  * @returns Record of stream data
752
769
  */
753
- get({ address, type, direction, }: IGetAllData): Promise<[string, Stream][]>;
770
+ get({ address, type, direction, filters, }: IGetAllData): Promise<[string, Stream][]>;
754
771
  /**
755
772
  * Searches for streams/contracts by providing filters.
756
773
  * @param {ISearchStreams} data - Search by mint, sender, recipient or closed status
@@ -808,8 +825,15 @@ declare class SolanaStreamClient {
808
825
  * Utility function that checks whether the associated stream address is an aligned unlock contract, indicated by whether the sender/creator is a PDA.
809
826
  * For migrated streams, the PDA was derived from the old metadata key.
810
827
  */
811
- isAlignedUnlock(streamPublicKey: PublicKey, senderPublicKey: PublicKey, oldMetadata?: PublicKey): boolean;
828
+ isAlignedUnlock(streamPublicKey: PublicKey, senderPublicKey: PublicKey): boolean;
812
829
  private flatBuildCreateMultipleTransactionInstructions;
830
+ /**
831
+ * Gets closed streams for a given owner and direction
832
+ * @param owner - Owner address
833
+ * @param direction - Stream direction
834
+ * @returns Record of closed streams
835
+ */
836
+ getClosedStreams(owner: string, direction?: StreamDirection): Promise<Record<string, Stream>>;
813
837
  /**
814
838
  * Utility function to generate metadata for a Contract or return existing Pubkey
815
839
  */
@@ -866,6 +890,7 @@ declare function extractSolanaErrorCode(errorText: string, logs?: string[]): str
866
890
  declare const deriveContractPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
867
891
  declare const deriveEscrowPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
868
892
  declare const deriveTestOraclePDA: (programId: PublicKey, mint: PublicKey, creator: PublicKey) => PublicKey;
893
+ declare const deriveStreamMetadataPDA: (programId: PublicKey, mint: PublicKey, sender: PublicKey, nonce: number) => [PublicKey, number];
869
894
  declare const deriveRepopulatedMetadataPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
870
895
 
871
896
  interface CreateStreamData {
@@ -942,6 +967,48 @@ interface CreateUncheckedStreamAccounts {
942
967
  systemProgram: PublicKey;
943
968
  }
944
969
  declare const createUncheckedStreamInstruction: (data: CreateUncheckedStreamData, programId: PublicKey, accounts: CreateUncheckedStreamAccounts) => Promise<TransactionInstruction>;
970
+ interface CreateStreamV2Data {
971
+ start: BN;
972
+ depositedAmount: BN;
973
+ period: BN;
974
+ amountPerPeriod: BN;
975
+ cliff: BN;
976
+ cliffAmount: BN;
977
+ cancelableBySender: boolean;
978
+ cancelableByRecipient: boolean;
979
+ automaticWithdrawal: boolean;
980
+ transferableBySender: boolean;
981
+ transferableByRecipient: boolean;
982
+ canTopup: boolean;
983
+ canUpdateRate: boolean;
984
+ canPause: boolean;
985
+ name: string;
986
+ withdrawFrequency: BN;
987
+ nonce: number;
988
+ }
989
+ declare const createStreamV2Instruction: (data: CreateStreamV2Data, programId: PublicKey, accounts: CreateStreamAccounts) => Promise<TransactionInstruction>;
990
+ interface CreateUncheckedStreamV2Data {
991
+ start: BN;
992
+ depositedAmount: BN;
993
+ period: BN;
994
+ amountPerPeriod: BN;
995
+ cliff: BN;
996
+ cliffAmount: BN;
997
+ cancelableBySender: boolean;
998
+ cancelableByRecipient: boolean;
999
+ automaticWithdrawal: boolean;
1000
+ transferableBySender: boolean;
1001
+ transferableByRecipient: boolean;
1002
+ canTopup: boolean;
1003
+ canUpdateRate: boolean;
1004
+ canPause: boolean;
1005
+ name: string;
1006
+ withdrawFrequency: BN;
1007
+ recipient: PublicKey;
1008
+ partner: PublicKey;
1009
+ nonce: number;
1010
+ }
1011
+ declare const createUncheckedStreamV2Instruction: (data: CreateUncheckedStreamV2Data, programId: PublicKey, accounts: CreateUncheckedStreamAccounts) => Promise<TransactionInstruction>;
945
1012
  interface WithdrawAccounts {
946
1013
  authority: PublicKey;
947
1014
  recipient: PublicKey;
@@ -1075,7 +1142,7 @@ declare const MAX_SAFE_UNIX_TIME_VALUE = 8640000000000;
1075
1142
  declare const WITHDRAW_AVAILABLE_AMOUNT: BN;
1076
1143
  declare const ALIGNED_PRECISION_FACTOR_POW = 9;
1077
1144
  declare const STREAM_STRUCT_OFFSETS: Record<keyof ISearchStreams, number>;
1078
- declare const CREATE_PARAMS_PADDING = 126;
1145
+ declare const CREATE_PARAMS_PADDING = 121;
1079
1146
  declare const PROGRAM_ID: {
1080
1147
  devnet: string;
1081
1148
  mainnet: string;
@@ -1106,6 +1173,7 @@ declare const TEST_ORACLE_DISCRIMINATOR: number[];
1106
1173
  declare const CONTRACT_SEED: Buffer$1;
1107
1174
  declare const ESCROW_SEED: Buffer$1;
1108
1175
  declare const TEST_ORACLE_SEED: Buffer$1;
1176
+ declare const METADATA_SEED: Buffer$1;
1109
1177
  declare const REPOPULATED_METADATA_SEED: Buffer$1;
1110
1178
  declare const STREAMFLOW_TREASURY_PUBLIC_KEY: PublicKey;
1111
1179
  declare const WITHDRAWOR = "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u";
@@ -1185,4 +1253,173 @@ declare const _default: {
1185
1253
  }[];
1186
1254
  };
1187
1255
 
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, 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 TestOracle, type TransactionSchedulingOptions, type UpdateTestOracleParams, WITHDRAWOR, WITHDRAWOR_PUBLIC_KEY, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, _default as timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction };
1256
+ /**
1257
+ * Chain identifiers supported by Streamflow protocol
1258
+ */
1259
+ type Chain = "SOLANA" | "APTOS" | "ETHEREUM" | "BNB" | "POLYGON" | "SUI";
1260
+ /**
1261
+ * Contract types supported by Streamflow protocol
1262
+ */
1263
+ type ContractType = "VESTING" | "PAYMENT" | "TOKEN_LOCK" | "DYNAMIC_VESTING" | "DYNAMIC_LOCK";
1264
+ /**
1265
+ * Price oracle types for dynamic contracts
1266
+ */
1267
+ type PriceOracleType = "TEST" | "SWITCHBOARD" | "PYTH";
1268
+ /**
1269
+ * Contract schema matching OpenAPI specification
1270
+ * Used for API responses
1271
+ */
1272
+ interface ContractSchema {
1273
+ chain: Chain;
1274
+ programId: string;
1275
+ address: string;
1276
+ oldAddress: string | null;
1277
+ name: string;
1278
+ contractType: ContractType;
1279
+ sender: string;
1280
+ recipient: string;
1281
+ partner: string | null;
1282
+ mint: string;
1283
+ escrow: string | null;
1284
+ amount: string;
1285
+ cliffAmount: string;
1286
+ amountPerPeriod: string;
1287
+ claimedAmount: string;
1288
+ amountUnlockedAtLastRateUpdate: string;
1289
+ period: number;
1290
+ autoClaimPeriod: number;
1291
+ createdDt: string;
1292
+ startDt: string;
1293
+ endDt: string;
1294
+ canceledDt: string | null;
1295
+ pausedDt: string | null;
1296
+ lastClaimedDt: string | null;
1297
+ lastRateUpdateDt: string | null;
1298
+ isClosed: boolean;
1299
+ isFucked: boolean;
1300
+ isPausable: boolean;
1301
+ canTopup: boolean;
1302
+ hasAutoClaim: boolean;
1303
+ isCancelableBySender: boolean;
1304
+ isCancelableByRecipient: boolean;
1305
+ isTransferableBySender: boolean;
1306
+ isTransferableByRecipient: boolean;
1307
+ canUpdateRate: boolean | null;
1308
+ streamflowFee: string;
1309
+ streamflowFeeWithdrawn: string;
1310
+ streamflowFeePercentage: string;
1311
+ partnerFee: string;
1312
+ partnerFeeWithdrawn: string;
1313
+ partnerFeePercentage: string;
1314
+ txFee: string;
1315
+ pauseCumulative: number;
1316
+ creationFee: number | null;
1317
+ creationFeeClaimed: boolean | null;
1318
+ autoClaimFee: number | null;
1319
+ autoClaimFeeClaimed: boolean | null;
1320
+ lastUpdateSlot: number | null;
1321
+ isPda: boolean;
1322
+ nonce: number | null;
1323
+ payer: string | null;
1324
+ bump: number | null;
1325
+ dynamicContract: DynamicContractSchema | null;
1326
+ }
1327
+ /**
1328
+ * Dynamic contract schema for aligned stream data
1329
+ * Used for API responses with price-based streams
1330
+ */
1331
+ interface DynamicContractSchema {
1332
+ chain: Chain;
1333
+ programId: string;
1334
+ address: string;
1335
+ contractAddress: string;
1336
+ sender: string;
1337
+ priceOracleType: PriceOracleType | null;
1338
+ priceOracleAddress: string | null;
1339
+ minPrice: string;
1340
+ maxPrice: string;
1341
+ minPercentage: string;
1342
+ maxPercentage: string;
1343
+ tickSize: string;
1344
+ expiryDt: string | null;
1345
+ expiryPercentage: string;
1346
+ floorPrice: string;
1347
+ lastPrice: string;
1348
+ initialAmountPerPeriod: string;
1349
+ initialPrice: string;
1350
+ initialAmount: string;
1351
+ lastUpdateSlot: number | null;
1352
+ streamCanceledTime: string | number | null;
1353
+ }
1354
+ /**
1355
+ * TabulariumContract interface
1356
+ * Mirrors LinearStream with primitive types for API/public usage
1357
+ * All addresses are strings, timestamps are numbers, amounts are BN
1358
+ */
1359
+ interface TabulariumContract {
1360
+ address: string;
1361
+ sender: string;
1362
+ senderTokens: string;
1363
+ recipient: string;
1364
+ recipientTokens: string;
1365
+ partner: string;
1366
+ partnerTokens: string;
1367
+ mint: string;
1368
+ escrowTokens: string;
1369
+ streamflowTreasury: string;
1370
+ streamflowTreasuryTokens: string;
1371
+ depositedAmount: BN;
1372
+ withdrawnAmount: BN;
1373
+ cliffAmount: BN;
1374
+ amountPerPeriod: BN;
1375
+ streamflowFeeTotal: BN;
1376
+ streamflowFeeWithdrawn: BN;
1377
+ partnerFeeTotal: BN;
1378
+ partnerFeeWithdrawn: BN;
1379
+ pauseCumulative: BN;
1380
+ fundsUnlockedAtLastRateChange: BN;
1381
+ start: number;
1382
+ end: number;
1383
+ cliff: number;
1384
+ createdAt: number;
1385
+ canceledAt: number;
1386
+ lastWithdrawnAt: number;
1387
+ lastRateChangeTime: number;
1388
+ currentPauseStart: number;
1389
+ period: number;
1390
+ withdrawalFrequency: number;
1391
+ streamflowFeePercent: number;
1392
+ partnerFeePercent: number;
1393
+ cancelableBySender: boolean;
1394
+ cancelableByRecipient: boolean;
1395
+ transferableBySender: boolean;
1396
+ transferableByRecipient: boolean;
1397
+ canTopup: boolean;
1398
+ automaticWithdrawal: boolean;
1399
+ closed: boolean;
1400
+ name: string;
1401
+ type: StreamType;
1402
+ isAligned: boolean;
1403
+ magic: number;
1404
+ version: number;
1405
+ oldMetadata: string;
1406
+ }
1407
+
1408
+ interface ApiClientOptions {
1409
+ apiUrl?: string;
1410
+ cluster?: "mainnet" | "devnet";
1411
+ fetchFn?: typeof fetch;
1412
+ }
1413
+ interface GetContractsOptions {
1414
+ sender?: string;
1415
+ recipient?: string;
1416
+ }
1417
+ interface ApiClient {
1418
+ getContracts: (opts?: GetContractsOptions) => Promise<ContractSchema[]>;
1419
+ getContract: (address: string) => Promise<ContractSchema>;
1420
+ }
1421
+ declare const createClient: (options?: ApiClientOptions) => ApiClient;
1422
+
1423
+ declare const transformContract: (schema: ContractSchema) => Promise<Stream>;
1424
+
1425
+ 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, METADATA_SEED, 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, 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 };