@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.
- package/dist/cjs/{BaseStreamClient-CrOrYUEv.d.cts → BaseStreamClient-uzoqllcf.d.cts} +2 -0
- package/dist/cjs/aptos/index.d.cts +2 -2
- package/dist/cjs/evm/index.d.cts +2 -2
- package/dist/cjs/{index-CEGRqEY6.d.cts → index-BpvTuTHx.d.cts} +1 -1
- package/dist/cjs/{index-CGiXzafU.d.cts → index-CA72ko5B.d.cts} +1 -1
- package/dist/cjs/{index-h2__-B-1.d.cts → index-DM9lJY7y.d.cts} +1 -1
- package/dist/cjs/{index-Bfl2ORyG.d.cts → index-ehppV5TW.d.cts} +5 -3
- package/dist/cjs/index.cjs +6 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +10 -10
- package/dist/cjs/solana/index.cjs +6 -4
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +2 -2
- package/dist/cjs/sui/index.d.cts +2 -2
- package/dist/esm/{BaseStreamClient-CrOrYUEv.d.ts → BaseStreamClient-uzoqllcf.d.ts} +2 -0
- package/dist/esm/aptos/index.d.ts +2 -2
- package/dist/esm/evm/index.d.ts +2 -2
- package/dist/esm/{index-DZXjfaVc.d.ts → index-BLMg_CgS.d.ts} +1 -1
- package/dist/esm/{index-DoPKUkBc.d.ts → index-C_tXt0ti.d.ts} +5 -3
- package/dist/esm/{index-DWj7zoqD.d.ts → index-DJNjOKR0.d.ts} +1 -1
- package/dist/esm/{index-5ngU1FTN.d.ts → index-DvlYnKNo.d.ts} +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.d.ts +2 -2
- package/dist/esm/solana/index.js +6 -4
- package/dist/esm/solana/index.js.map +1 -1
- package/dist/esm/sui/index.d.ts +2 -2
- package/package.json +4 -4
|
@@ -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-
|
|
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-
|
|
9
|
+
import '../BaseStreamClient-uzoqllcf.js';
|
|
10
10
|
import 'ethers';
|
|
11
11
|
import 'aptos';
|
|
12
12
|
import '@mysten/sui/cryptography';
|
package/dist/esm/solana/index.js
CHANGED
|
@@ -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
|
|
219
|
+
this.streamflowFeePercent = stream.streamflowFeePercent;
|
|
220
220
|
this.partnerFeeTotal = stream.partnerFeeTotal;
|
|
221
221
|
this.partnerFeeWithdrawn = stream.partnerFeeWithdrawn;
|
|
222
|
-
this.partnerFeePercent = stream.partnerFeePercent
|
|
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:
|
|
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:
|
|
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),
|