@streamflow/stream 11.0.2 → 11.0.4

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.
@@ -167,7 +167,6 @@ interface LinearStream {
167
167
  lastRateChangeTime: number;
168
168
  fundsUnlockedAtLastRateChange: BN;
169
169
  oldMetadata: PublicKey;
170
- metadata: PublicKey;
171
170
  type: StreamType;
172
171
  unlocked(currentTimestamp: number): BN;
173
172
  remaining(decimals: number): number;
@@ -398,10 +397,9 @@ declare class Contract implements LinearStream {
398
397
  lastRateChangeTime: number;
399
398
  fundsUnlockedAtLastRateChange: BN;
400
399
  oldMetadata: PublicKey;
401
- metadata: PublicKey;
402
400
  type: StreamType;
403
401
  isAligned: boolean;
404
- constructor(stream: DecodedStream, metadata: PublicKey);
402
+ constructor(stream: DecodedStream);
405
403
  unlocked(currentTimestamp: number): BN;
406
404
  remaining(decimals: number): number;
407
405
  }
@@ -422,7 +420,7 @@ declare class AlignedContract extends Contract implements AlignedStream {
422
420
  expiryTime: number;
423
421
  expiryPercentage: number;
424
422
  floorPrice: number;
425
- constructor(stream: DecodedStream, metadata: PublicKey, alignedProxy: AlignedUnlocksContract);
423
+ constructor(stream: DecodedStream, alignedProxy: AlignedUnlocksContract);
426
424
  }
427
425
  interface DecodedStream {
428
426
  magic: BN;
@@ -828,7 +826,7 @@ declare class SolanaStreamClient {
828
826
  * For migrated streams, the aligned proxy PDA was derived from the original (old) metadata key,
829
827
  * so we need to use that instead of the current stream pubkey.
830
828
  */
831
- declare const getOriginalMetadataKey: (streamPubkey: PublicKey, oldMetadata: PublicKey) => PublicKey;
829
+ declare const getMetadataKey: (streamPubkey: PublicKey, oldMetadata: PublicKey) => PublicKey;
832
830
  /**
833
831
  * Calculate total amount of a Contract including all fees.
834
832
  * - first we convert fee floating to a BN with up to 4 decimals precision
@@ -868,6 +866,7 @@ declare function extractSolanaErrorCode(errorText: string, logs?: string[]): str
868
866
  declare const deriveContractPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
869
867
  declare const deriveEscrowPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
870
868
  declare const deriveTestOraclePDA: (programId: PublicKey, mint: PublicKey, creator: PublicKey) => PublicKey;
869
+ declare const deriveRepopulatedMetadataPDA: (programId: PublicKey, streamMetadata: PublicKey) => PublicKey;
871
870
 
872
871
  interface CreateStreamData {
873
872
  start: BN;
@@ -1107,6 +1106,7 @@ declare const TEST_ORACLE_DISCRIMINATOR: number[];
1107
1106
  declare const CONTRACT_SEED: Buffer$1;
1108
1107
  declare const ESCROW_SEED: Buffer$1;
1109
1108
  declare const TEST_ORACLE_SEED: Buffer$1;
1109
+ declare const REPOPULATED_METADATA_SEED: Buffer$1;
1110
1110
  declare const STREAMFLOW_TREASURY_PUBLIC_KEY: PublicKey;
1111
1111
  declare const WITHDRAWOR = "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u";
1112
1112
  declare const WITHDRAWOR_PUBLIC_KEY: PublicKey;
@@ -1185,4 +1185,4 @@ declare const _default: {
1185
1185
  }[];
1186
1186
  };
1187
1187
 
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 };
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 };
@@ -3,7 +3,7 @@ import bs58 from 'bs58';
3
3
  import { Buffer } from 'buffer';
4
4
  import { NATIVE_MINT, ASSOCIATED_TOKEN_PROGRAM_ID } from '@solana/spl-token';
5
5
  import { PublicKey, TransactionInstruction, Connection, Keypair, SYSVAR_RENT_PUBKEY, SystemProgram, TransactionMessage, VersionedTransaction } from '@solana/web3.js';
6
- import { ICluster, getNumberFromBN, isSignerKeypair, isSignerWallet, executeTransaction, ContractError, buildSendThrottler, assertHasPublicKey, prepareWrappedAccount, prepareTransaction, signAndExecuteTransaction, invariant, getMintAndProgram, prepareBaseInstructions, getBN, ata, createVersionedTransaction, executeMultipleTransactions, pk, getMultipleAccountsInfoBatched, getProgramAccounts, checkOrCreateAtaBatch } from '@streamflow/common';
6
+ import { ICluster, getNumberFromBN, isSignerKeypair, isSignerWallet, executeTransaction, ContractError, buildSendThrottler, assertHasPublicKey, prepareWrappedAccount, prepareTransaction, signAndExecuteTransaction, invariant, getMintAndProgram, prepareBaseInstructions, getBN, ata, createVersionedTransaction, executeMultipleTransactions, getMultipleAccountsInfoBatched, getProgramAccounts, checkOrCreateAtaBatch } from '@streamflow/common';
7
7
  export { ContractError, ICluster, getBN, getNumberFromBN } from '@streamflow/common';
8
8
  import * as borsh from 'borsh';
9
9
  import { Program } from '@coral-xyz/anchor';
@@ -116,7 +116,7 @@ var AlignedProxyErrorCode = /* @__PURE__ */ ((AlignedProxyErrorCode2) => {
116
116
  return AlignedProxyErrorCode2;
117
117
  })(AlignedProxyErrorCode || {});
118
118
  var Contract = class {
119
- constructor(stream, metadata) {
119
+ constructor(stream) {
120
120
  this.magic = stream.magic.toNumber();
121
121
  this.version = stream.version.toNumber();
122
122
  this.createdAt = stream.createdAt.toNumber();
@@ -160,7 +160,6 @@ var Contract = class {
160
160
  this.lastRateChangeTime = stream.lastRateChangeTime.toNumber();
161
161
  this.fundsUnlockedAtLastRateChange = stream.fundsUnlockedAtLastRateChange;
162
162
  this.oldMetadata = stream.oldMetadata;
163
- this.metadata = metadata;
164
163
  this.type = buildStreamType(this);
165
164
  this.isAligned = false;
166
165
  }
@@ -175,8 +174,8 @@ var Contract = class {
175
174
  }
176
175
  };
177
176
  var AlignedContract = class extends Contract {
178
- constructor(stream, metadata, alignedProxy) {
179
- super(stream, metadata);
177
+ constructor(stream, alignedProxy) {
178
+ super(stream);
180
179
  this.minPrice = getNumberFromBN(alignedProxy.minPrice, ALIGNED_PRECISION_FACTOR_POW);
181
180
  this.maxPrice = getNumberFromBN(alignedProxy.maxPrice, ALIGNED_PRECISION_FACTOR_POW);
182
181
  this.minPercentage = getNumberFromBN(alignedProxy.minPercentage, ALIGNED_PRECISION_FACTOR_POW);
@@ -246,6 +245,7 @@ var TEST_ORACLE_DISCRIMINATOR = [198, 49, 63, 134, 232, 251, 168, 28];
246
245
  var CONTRACT_SEED = Buffer.from("contract", "utf-8");
247
246
  var ESCROW_SEED = Buffer.from("strm", "utf-8");
248
247
  var TEST_ORACLE_SEED = Buffer.from("test-oracle", "utf-8");
248
+ var REPOPULATED_METADATA_SEED = Buffer.from("strm-rep", "utf-8");
249
249
  var STREAMFLOW_TREASURY_PUBLIC_KEY = new PublicKey("5SEpbdjFK5FxwTvfsGMXVQTD2v4M2c5tyRTxhdsPkgDw");
250
250
  var WITHDRAWOR = "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u";
251
251
  var WITHDRAWOR_PUBLIC_KEY = new PublicKey(WITHDRAWOR);
@@ -470,7 +470,7 @@ var encodeUpdateStream = (values, data) => {
470
470
  var topupStreamLayout = BufferLayout.struct([
471
471
  BufferLayout.blob(8, "amount")
472
472
  ]);
473
- var getOriginalMetadataKey = (streamPubkey, oldMetadata) => {
473
+ var getMetadataKey = (streamPubkey, oldMetadata) => {
474
474
  if (PublicKey.default.equals(oldMetadata)) {
475
475
  return streamPubkey;
476
476
  }
@@ -2513,6 +2513,9 @@ var deriveEscrowPDA = (programId, streamMetadata) => {
2513
2513
  var deriveTestOraclePDA = (programId, mint, creator) => {
2514
2514
  return PublicKey.findProgramAddressSync([TEST_ORACLE_SEED, mint.toBuffer(), creator.toBuffer()], programId)[0];
2515
2515
  };
2516
+ var deriveRepopulatedMetadataPDA = (programId, streamMetadata) => {
2517
+ return PublicKey.findProgramAddressSync([REPOPULATED_METADATA_SEED, streamMetadata.toBuffer()], programId)[0];
2518
+ };
2516
2519
 
2517
2520
  // solana/StreamClient.ts
2518
2521
  var METADATA_ACC_SIZE = 1104;
@@ -3578,7 +3581,7 @@ var SolanaStreamClient = class {
3578
3581
  }
3579
3582
  async decodeStreamAccount(pubkey, data) {
3580
3583
  const stream = decodeStream(data);
3581
- const metadataKey = getOriginalMetadataKey(pubkey, stream.oldMetadata);
3584
+ const metadataKey = getMetadataKey(pubkey, stream.oldMetadata);
3582
3585
  if (this.isAlignedUnlock(pubkey, stream.sender, stream.oldMetadata)) {
3583
3586
  const alignedProxy = await this.alignedProxyProgram.account.contract.fetch(
3584
3587
  deriveContractPDA(this.alignedProxyProgram.programId, metadataKey)
@@ -3586,9 +3589,9 @@ var SolanaStreamClient = class {
3586
3589
  if (!alignedProxy) {
3587
3590
  throw new Error("Couldn't get proxy account info.");
3588
3591
  }
3589
- return new AlignedContract(stream, pk(pubkey), alignedProxy);
3592
+ return new AlignedContract(stream, alignedProxy);
3590
3593
  }
3591
- return new Contract(stream, pk(pubkey));
3594
+ return new Contract(stream);
3592
3595
  }
3593
3596
  /**
3594
3597
  * Fetch all aligned outgoing streams/contracts by the provided public key.
@@ -3613,7 +3616,7 @@ var SolanaStreamClient = class {
3613
3616
  streamAccounts.forEach((account, index) => {
3614
3617
  if (account) {
3615
3618
  const alignedData = alignedOutgoingProgramAccounts[index].account;
3616
- streams[streamPubKeys[index].toBase58()] = new AlignedContract(decodeStream(account.data), pk(streamPubKeys[index]), alignedData);
3619
+ streams[streamPubKeys[index].toBase58()] = new AlignedContract(decodeStream(account.data), alignedData);
3617
3620
  }
3618
3621
  });
3619
3622
  return streams;
@@ -3623,7 +3626,7 @@ var SolanaStreamClient = class {
3623
3626
  const alignedStreamsPubKeys = Object.keys(streamRecord);
3624
3627
  const alignedProxyPDAs = alignedStreamsPubKeys.map((streamPubKey) => {
3625
3628
  const pubkey = new PublicKey(streamPubKey);
3626
- const metadataKey = getOriginalMetadataKey(pubkey, streamRecord[streamPubKey].oldMetadata);
3629
+ const metadataKey = getMetadataKey(pubkey, streamRecord[streamPubKey].oldMetadata);
3627
3630
  return deriveContractPDA(this.alignedProxyProgram.programId, metadataKey);
3628
3631
  });
3629
3632
  const alignedProxyAccounts = await getMultipleAccountsInfoBatched(this.connection, alignedProxyPDAs);
@@ -3632,7 +3635,6 @@ var SolanaStreamClient = class {
3632
3635
  const alignedData = streamRecord[alignedStreamsPubKeys[index]];
3633
3636
  streams[alignedStreamsPubKeys[index]] = new AlignedContract(
3634
3637
  alignedData,
3635
- pk(alignedStreamsPubKeys[index]),
3636
3638
  this.alignedProxyProgram.account.contract.coder.accounts.decode("contract", account.data)
3637
3639
  );
3638
3640
  }
@@ -3661,7 +3663,7 @@ var SolanaStreamClient = class {
3661
3663
  this.programId
3662
3664
  );
3663
3665
  outgoingStreamAccounts.forEach((account) => {
3664
- streams[account.pubkey.toBase58()] = new Contract(decodeStream(account.account.data), pk(account.pubkey));
3666
+ streams[account.pubkey.toBase58()] = new Contract(decodeStream(account.account.data));
3665
3667
  });
3666
3668
  if (shouldFetchAligned) {
3667
3669
  const alignedStreams = await this.getOutgoingAlignedStreams(address);
@@ -3681,7 +3683,7 @@ var SolanaStreamClient = class {
3681
3683
  if (this.isAlignedUnlock(account.pubkey, allIncomingStreams[index].sender, allIncomingStreams[index].oldMetadata)) {
3682
3684
  alignedDecoded[account.pubkey.toBase58()] = allIncomingStreams[index];
3683
3685
  } else {
3684
- streams[account.pubkey.toBase58()] = new Contract(allIncomingStreams[index], pk(account.pubkey));
3686
+ streams[account.pubkey.toBase58()] = new Contract(allIncomingStreams[index]);
3685
3687
  }
3686
3688
  });
3687
3689
  if (shouldFetchAligned) {
@@ -3724,7 +3726,7 @@ var SolanaStreamClient = class {
3724
3726
  const entries = [];
3725
3727
  decoded.forEach(({ pubkey, stream }, index) => {
3726
3728
  if (this.isAlignedUnlock(pubkey, stream.sender, stream.oldMetadata)) {
3727
- const metadataKey = getOriginalMetadataKey(pubkey, stream.oldMetadata);
3729
+ const metadataKey = getMetadataKey(pubkey, stream.oldMetadata);
3728
3730
  entries.push({ index, pda: deriveContractPDA(this.alignedProxyProgram.programId, metadataKey) });
3729
3731
  }
3730
3732
  });
@@ -3741,9 +3743,9 @@ var SolanaStreamClient = class {
3741
3743
  if (alignedIdx !== -1) {
3742
3744
  const alignedProxy = alignedProxies[alignedIdx];
3743
3745
  invariant(alignedProxy, "Couldn't get aligned proxy account info");
3744
- return { publicKey: pubkey, account: new AlignedContract(stream, pk(pubkey), alignedProxy) };
3746
+ return { publicKey: pubkey, account: new AlignedContract(stream, alignedProxy) };
3745
3747
  }
3746
- return { publicKey: pubkey, account: new Contract(stream, pk(pubkey)) };
3748
+ return { publicKey: pubkey, account: new Contract(stream) };
3747
3749
  });
3748
3750
  }
3749
3751
  /**
@@ -3881,7 +3883,7 @@ var SolanaStreamClient = class {
3881
3883
  * For migrated streams, the PDA was derived from the old metadata key.
3882
3884
  */
3883
3885
  isAlignedUnlock(streamPublicKey, senderPublicKey, oldMetadata) {
3884
- const metadataKey = oldMetadata ? getOriginalMetadataKey(streamPublicKey, oldMetadata) : streamPublicKey;
3886
+ const metadataKey = oldMetadata ? getMetadataKey(streamPublicKey, oldMetadata) : streamPublicKey;
3885
3887
  const pda = deriveContractPDA(this.alignedProxyProgram.programId, metadataKey);
3886
3888
  return senderPublicKey.equals(pda);
3887
3889
  }
@@ -4359,6 +4361,6 @@ var timelockIDL_default = {
4359
4361
  ]
4360
4362
  };
4361
4363
 
4362
- 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, ORIGINAL_CONTRACT_SENDER_OFFSET, 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, StreamDirection, StreamType, TEST_ORACLE_DISCRIMINATOR, TEST_ORACLE_SEED, TX_FINALITY_CONFIRMED, 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_default as timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction };
4364
+ 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, 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, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, cancelStreamInstruction, createStreamInstruction, createUncheckedStreamInstruction, decodeEndTime, decodeStream, deriveContractPDA, deriveEscrowPDA, deriveRepopulatedMetadataPDA, deriveTestOraclePDA, extractSolanaErrorCode, getMetadataKey, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isTokenLock, isVesting, sendAndConfirmStreamRawTransaction, signAllTransactionWithRecipients, timelockIDL_default as timelockIDL, topupStreamInstruction, transferStreamInstruction, updateStreamInstruction, withdrawStreamInstruction };
4363
4365
  //# sourceMappingURL=index.js.map
4364
4366
  //# sourceMappingURL=index.js.map