@streamflow/stream 8.2.0 → 8.2.2

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,13 +1,13 @@
1
- import { A as AptosStreamClient, I as ICreateStreamAptosExt, a as ITransactionAptosExt } from './index-CEGRqEY6.cjs';
2
- export { i as StreamflowAptos } from './index-CEGRqEY6.cjs';
3
- import { E as EvmStreamClient } from './index-h2__-B-1.cjs';
4
- export { i as StreamflowEVM } from './index-h2__-B-1.cjs';
5
- import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-Bfl2ORyG.cjs';
6
- export { s as AIRDROP_AMOUNT, q as AIRDROP_TEST_TOKEN, j as ALIGNED_COMPUTE_LIMIT, A as ALIGNED_PRECISION_FACTOR_POW, h as ALIGNED_UNLOCKS_PROGRAM_ID, k as CONTRACT_DISCRIMINATOR, m as CONTRACT_SEED, C as CREATE_PARAMS_PADDING, D as DEFAULT_STREAMFLOW_FEE, E as ESCROW_SEED, r as FEES_METADATA_SEED, F as FEE_ORACLE_PUBLIC_KEY, O as ORIGINAL_CONTRACT_SENDER_OFFSET, u as PARTNERS_SCHEMA, o as PARTNER_ORACLE_PROGRAM_ID, t as PARTNER_SCHEMA, P as PROGRAM_ID, w as SOLANA_ERROR_MAP, v as SOLANA_ERROR_MATCH_REGEX, p as STREAMFLOW_TREASURY_PUBLIC_KEY, g as STREAM_STRUCT_OFFSETS, f as STREAM_STRUCT_OFFSET_CLOSED, e as STREAM_STRUCT_OFFSET_MINT, d as STREAM_STRUCT_OFFSET_RECIPIENT, c as STREAM_STRUCT_OFFSET_SENDER, i as StreamflowSolana, l as TEST_ORACLE_DISCRIMINATOR, n as TEST_ORACLE_SEED, T as TX_FINALITY_CONFIRMED, W as WITHDRAWOR_PUBLIC_KEY } from './index-Bfl2ORyG.cjs';
7
- import { S as SuiStreamClient } from './index-CGiXzafU.cjs';
8
- export { i as StreamflowSui } from './index-CGiXzafU.cjs';
9
- import { S as Stream, A as AlignedStream, I as ICreateStreamData, a as ICreateAlignedStreamData, b as StreamType, B as BaseStreamClient, c as SolanaStreamClientOptions, d as AptosStreamClientOptions, e as SuiStreamClientOptions, E as EvmStreamClientOptions, f as ICreateStreamSuiExt, g as ICreateResult, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, k as ITransactionSuiExt, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, p as IGetOneData, q as IGetAllData, r as IUpdateData, s as IGetFeesData, t as IFees } from './BaseStreamClient-CrOrYUEv.cjs';
10
- export { H as AlignedStreamData, G as ContractErrorCode, w as IAlignedStreamConfig, v as IBaseStreamConfig, x as ICreateLinearStreamData, D as ICreateMultiError, z as ICreateMultipleAlignedStreamData, y as ICreateMultipleLinearStreamData, C as IInteractData, u as IRecipient, L as LinearStream, O as OracleTypeName, K as SolanaAlignedProxyErrorCode, J as SolanaContractErrorCode, M as SolanaTransactionSchedulingOptions, F as StreamDirection } from './BaseStreamClient-CrOrYUEv.cjs';
1
+ import { A as AptosStreamClient, I as ICreateStreamAptosExt, a as ITransactionAptosExt } from './index-BpvTuTHx.cjs';
2
+ export { i as StreamflowAptos } from './index-BpvTuTHx.cjs';
3
+ import { E as EvmStreamClient } from './index-DM9lJY7y.cjs';
4
+ export { i as StreamflowEVM } from './index-DM9lJY7y.cjs';
5
+ import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-ehppV5TW.cjs';
6
+ export { s as AIRDROP_AMOUNT, q as AIRDROP_TEST_TOKEN, j as ALIGNED_COMPUTE_LIMIT, A as ALIGNED_PRECISION_FACTOR_POW, h as ALIGNED_UNLOCKS_PROGRAM_ID, k as CONTRACT_DISCRIMINATOR, m as CONTRACT_SEED, C as CREATE_PARAMS_PADDING, D as DEFAULT_STREAMFLOW_FEE, E as ESCROW_SEED, r as FEES_METADATA_SEED, F as FEE_ORACLE_PUBLIC_KEY, O as ORIGINAL_CONTRACT_SENDER_OFFSET, u as PARTNERS_SCHEMA, o as PARTNER_ORACLE_PROGRAM_ID, t as PARTNER_SCHEMA, P as PROGRAM_ID, w as SOLANA_ERROR_MAP, v as SOLANA_ERROR_MATCH_REGEX, p as STREAMFLOW_TREASURY_PUBLIC_KEY, g as STREAM_STRUCT_OFFSETS, f as STREAM_STRUCT_OFFSET_CLOSED, e as STREAM_STRUCT_OFFSET_MINT, d as STREAM_STRUCT_OFFSET_RECIPIENT, c as STREAM_STRUCT_OFFSET_SENDER, i as StreamflowSolana, l as TEST_ORACLE_DISCRIMINATOR, n as TEST_ORACLE_SEED, T as TX_FINALITY_CONFIRMED, W as WITHDRAWOR_PUBLIC_KEY } from './index-ehppV5TW.cjs';
7
+ import { S as SuiStreamClient } from './index-CA72ko5B.cjs';
8
+ export { i as StreamflowSui } from './index-CA72ko5B.cjs';
9
+ import { S as Stream, A as AlignedStream, I as ICreateStreamData, a as ICreateAlignedStreamData, b as StreamType, B as BaseStreamClient, c as SolanaStreamClientOptions, d as AptosStreamClientOptions, e as SuiStreamClientOptions, E as EvmStreamClientOptions, f as ICreateStreamSuiExt, g as ICreateResult, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, k as ITransactionSuiExt, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, p as IGetOneData, q as IGetAllData, r as IUpdateData, s as IGetFeesData, t as IFees } from './BaseStreamClient-uzoqllcf.cjs';
10
+ export { H as AlignedStreamData, G as ContractErrorCode, w as IAlignedStreamConfig, v as IBaseStreamConfig, x as ICreateLinearStreamData, D as ICreateMultiError, z as ICreateMultipleAlignedStreamData, y as ICreateMultipleLinearStreamData, C as IInteractData, u as IRecipient, L as LinearStream, O as OracleTypeName, K as SolanaAlignedProxyErrorCode, J as SolanaContractErrorCode, M as SolanaTransactionSchedulingOptions, F as StreamDirection } from './BaseStreamClient-uzoqllcf.cjs';
11
11
  import BN from 'bn.js';
12
12
  import { IChain } from '@streamflow/common';
13
13
  export { ContractError, IChain, ICluster } from '@streamflow/common';
@@ -242,10 +242,10 @@ var Contract = class {
242
242
  this.streamflowTreasuryTokens = stream.streamflowTreasuryTokens.toBase58();
243
243
  this.streamflowFeeTotal = stream.streamflowFeeTotal;
244
244
  this.streamflowFeeWithdrawn = stream.streamflowFeeWithdrawn;
245
- this.streamflowFeePercent = stream.streamflowFeePercent.toNumber();
245
+ this.streamflowFeePercent = stream.streamflowFeePercent;
246
246
  this.partnerFeeTotal = stream.partnerFeeTotal;
247
247
  this.partnerFeeWithdrawn = stream.partnerFeeWithdrawn;
248
- this.partnerFeePercent = stream.partnerFeePercent.toNumber();
248
+ this.partnerFeePercent = stream.partnerFeePercent;
249
249
  this.partner = stream.partner.toBase58();
250
250
  this.partnerTokens = stream.partnerTokens?.toBase58();
251
251
  this.start = stream.start.toNumber();
@@ -298,6 +298,8 @@ var AlignedContract = class extends Contract {
298
298
  this.lastPrice = getNumberFromBN(alignedProxy.lastPrice, ALIGNED_PRECISION_FACTOR_POW);
299
299
  this.lastAmountUpdateTime = alignedProxy.lastAmountUpdateTime.toNumber();
300
300
  this.initialNetAmount = alignedProxy.initialNetAmount;
301
+ this.expiryTime = alignedProxy.expiryTime.toNumber();
302
+ this.expiryPercentage = getNumberFromBN(alignedProxy.expiryPercentage, ALIGNED_PRECISION_FACTOR_POW);
301
303
  this.type = buildStreamType(this);
302
304
  this.isAligned = true;
303
305
  }
@@ -485,10 +487,10 @@ var decodeStream = (buf) => {
485
487
  streamflowTreasuryTokens: new web3_js.PublicKey(raw.streamflow_treasury_tokens),
486
488
  streamflowFeeTotal: new BN4__default.default(raw.streamflow_fee_total, LE),
487
489
  streamflowFeeWithdrawn: new BN4__default.default(raw.streamflow_fee_withdrawn, LE),
488
- streamflowFeePercent: new BN4__default.default(raw.streamflow_fee_percent, LE),
490
+ streamflowFeePercent: raw.streamflow_fee_percent,
489
491
  partnerFeeTotal: new BN4__default.default(raw.partner_fee_total, LE),
490
492
  partnerFeeWithdrawn: new BN4__default.default(raw.partner_fee_withdrawn, LE),
491
- partnerFeePercent: new BN4__default.default(raw.partner_fee_percent, LE),
493
+ partnerFeePercent: raw.partner_fee_percent,
492
494
  partner: new web3_js.PublicKey(raw.partner),
493
495
  partnerTokens: new web3_js.PublicKey(raw.partner_tokens),
494
496
  start: new BN4__default.default(raw.start_time, LE),