@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,4 +1,4 @@
1
- export { Z as Account, a3 as AlignedContract, M as AlignedUnlocksContract, a6 as BatchItem, a8 as BatchItemError, a9 as BatchItemResult, a7 as BatchItemSuccess, U as ChangeOracleParams, y as ClientCreationOptions, a2 as Contract, R as CreateParams, V as CreateTestOracleParams, a4 as DecodedStream, $ as ICreateSolanaExt, a1 as ICreateStreamInstructions, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, Y as ISearchStreams, b as ITopUpStreamSolanaExt, a0 as ITransactionSolanaExtWithInstructions, aa as InstructionGenerator, a5 as MetadataRecipientHashMap, N as OracleType, S as SolanaStreamClient, Q as TestOracle, X as UpdateTestOracleParams, af as cancelStreamInstruction, x as constants, ab as createStreamInstruction, ac as createUncheckedStreamInstruction, z as decodeStream, J as deriveContractPDA, K as deriveEscrowPDA, L as deriveTestOraclePDA, H as extractSolanaErrorCode, G as sendAndConfirmStreamRawTransaction, B as signAllTransactionWithRecipients, _ as timelockIDL, ah as topupStreamInstruction, ag as transferStreamInstruction, ae as updateStreamInstruction, ad as withdrawStreamInstruction } from '../index-DoPKUkBc.js';
1
+ export { Z as Account, a3 as AlignedContract, M as AlignedUnlocksContract, a6 as BatchItem, a8 as BatchItemError, a9 as BatchItemResult, a7 as BatchItemSuccess, U as ChangeOracleParams, y as ClientCreationOptions, a2 as Contract, R as CreateParams, V as CreateTestOracleParams, a4 as DecodedStream, $ as ICreateSolanaExt, a1 as ICreateStreamInstructions, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, Y as ISearchStreams, b as ITopUpStreamSolanaExt, a0 as ITransactionSolanaExtWithInstructions, aa as InstructionGenerator, a5 as MetadataRecipientHashMap, N as OracleType, S as SolanaStreamClient, Q as TestOracle, X as UpdateTestOracleParams, af as cancelStreamInstruction, x as constants, ab as createStreamInstruction, ac as createUncheckedStreamInstruction, z as decodeStream, J as deriveContractPDA, K as deriveEscrowPDA, L as deriveTestOraclePDA, H as extractSolanaErrorCode, G as sendAndConfirmStreamRawTransaction, B as signAllTransactionWithRecipients, _ as timelockIDL, ah as topupStreamInstruction, ag as transferStreamInstruction, ae as updateStreamInstruction, ad as withdrawStreamInstruction } from '../index-C_tXt0ti.js';
2
2
  export { ContractError, IChain, ICluster } from '@streamflow/common';
3
3
  import 'p-queue';
4
4
  import '@solana/web3.js';
@@ -6,7 +6,7 @@ import '@streamflow/common/solana';
6
6
  import '@coral-xyz/anchor';
7
7
  import '@solana/wallet-adapter-base';
8
8
  import 'bn.js';
9
- import '../BaseStreamClient-CrOrYUEv.js';
9
+ import '../BaseStreamClient-uzoqllcf.js';
10
10
  import 'ethers';
11
11
  import 'aptos';
12
12
  import '@mysten/sui/cryptography';
@@ -216,10 +216,10 @@ var Contract = class {
216
216
  this.streamflowTreasuryTokens = stream.streamflowTreasuryTokens.toBase58();
217
217
  this.streamflowFeeTotal = stream.streamflowFeeTotal;
218
218
  this.streamflowFeeWithdrawn = stream.streamflowFeeWithdrawn;
219
- this.streamflowFeePercent = stream.streamflowFeePercent.toNumber();
219
+ this.streamflowFeePercent = stream.streamflowFeePercent;
220
220
  this.partnerFeeTotal = stream.partnerFeeTotal;
221
221
  this.partnerFeeWithdrawn = stream.partnerFeeWithdrawn;
222
- this.partnerFeePercent = stream.partnerFeePercent.toNumber();
222
+ this.partnerFeePercent = stream.partnerFeePercent;
223
223
  this.partner = stream.partner.toBase58();
224
224
  this.partnerTokens = stream.partnerTokens?.toBase58();
225
225
  this.start = stream.start.toNumber();
@@ -272,6 +272,8 @@ var AlignedContract = class extends Contract {
272
272
  this.lastPrice = getNumberFromBN(alignedProxy.lastPrice, ALIGNED_PRECISION_FACTOR_POW);
273
273
  this.lastAmountUpdateTime = alignedProxy.lastAmountUpdateTime.toNumber();
274
274
  this.initialNetAmount = alignedProxy.initialNetAmount;
275
+ this.expiryTime = alignedProxy.expiryTime.toNumber();
276
+ this.expiryPercentage = getNumberFromBN(alignedProxy.expiryPercentage, ALIGNED_PRECISION_FACTOR_POW);
275
277
  this.type = buildStreamType(this);
276
278
  this.isAligned = true;
277
279
  }
@@ -459,10 +461,10 @@ var decodeStream = (buf) => {
459
461
  streamflowTreasuryTokens: new PublicKey(raw.streamflow_treasury_tokens),
460
462
  streamflowFeeTotal: new BN4(raw.streamflow_fee_total, LE),
461
463
  streamflowFeeWithdrawn: new BN4(raw.streamflow_fee_withdrawn, LE),
462
- streamflowFeePercent: new BN4(raw.streamflow_fee_percent, LE),
464
+ streamflowFeePercent: raw.streamflow_fee_percent,
463
465
  partnerFeeTotal: new BN4(raw.partner_fee_total, LE),
464
466
  partnerFeeWithdrawn: new BN4(raw.partner_fee_withdrawn, LE),
465
- partnerFeePercent: new BN4(raw.partner_fee_percent, LE),
467
+ partnerFeePercent: raw.partner_fee_percent,
466
468
  partner: new PublicKey(raw.partner),
467
469
  partnerTokens: new PublicKey(raw.partner_tokens),
468
470
  start: new BN4(raw.start_time, LE),