@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-ehppV5TW.cjs';
|
|
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.cjs';
|
|
10
10
|
import 'ethers';
|
|
11
11
|
import 'aptos';
|
|
12
12
|
import '@mysten/sui/cryptography';
|
package/dist/cjs/sui/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { S as SuiStreamClient, c as constants, e as extractSuiErrorInfo, g as getTransactionBlock } from '../index-
|
|
2
|
-
export { R as ClassResource, P as Contract, T as FeeTableResource, U as FeeValueResource, V as IContractCreated, W as IContractWithdrawn, f as ICreateStreamSuiExt, N as ISuiIdParameters, k as ITransactionSuiExt, X as StreamResource, Q as SuiErrorInfo, Y as SuiParsedError, Z as SuiSignAndExecuteTransactionBlockInput } from '../BaseStreamClient-
|
|
1
|
+
export { S as SuiStreamClient, c as constants, e as extractSuiErrorInfo, g as getTransactionBlock } from '../index-CA72ko5B.cjs';
|
|
2
|
+
export { R as ClassResource, P as Contract, T as FeeTableResource, U as FeeValueResource, V as IContractCreated, W as IContractWithdrawn, f as ICreateStreamSuiExt, N as ISuiIdParameters, k as ITransactionSuiExt, X as StreamResource, Q as SuiErrorInfo, Y as SuiParsedError, Z as SuiSignAndExecuteTransactionBlockInput } from '../BaseStreamClient-uzoqllcf.cjs';
|
|
3
3
|
import '@streamflow/common';
|
|
4
4
|
import '@mysten/sui/client';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
@@ -380,6 +380,8 @@ type AlignedStreamData = {
|
|
|
380
380
|
lastPrice: number;
|
|
381
381
|
lastAmountUpdateTime: number;
|
|
382
382
|
initialNetAmount: BN;
|
|
383
|
+
expiryTime: number;
|
|
384
|
+
expiryPercentage: number;
|
|
383
385
|
};
|
|
384
386
|
type AlignedStream = LinearStream & AlignedStreamData;
|
|
385
387
|
type Stream = LinearStream | AlignedStream;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AptosStreamClient, C as ConfigResource, b as Contract, F as FeeTableResource, I as ICreateStreamAptosExt, a as ITransactionAptosExt, S as StreamResource, c as constants, A as default, e as extractAptosErrorCode, n as normalizeAptosAddress } from '../index-
|
|
2
|
-
import '../BaseStreamClient-
|
|
1
|
+
export { A as AptosStreamClient, C as ConfigResource, b as Contract, F as FeeTableResource, I as ICreateStreamAptosExt, a as ITransactionAptosExt, S as StreamResource, c as constants, A as default, e as extractAptosErrorCode, n as normalizeAptosAddress } from '../index-DvlYnKNo.js';
|
|
2
|
+
import '../BaseStreamClient-uzoqllcf.js';
|
|
3
3
|
import '@coral-xyz/anchor';
|
|
4
4
|
import '@solana/web3.js';
|
|
5
5
|
import '@streamflow/common';
|
package/dist/esm/evm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as EvmContract, E as EvmStreamClient, F as FeesAbiResult, S as StreamAbiResult, c as constants, E as default, _ as ercAbi, e as extractEvmErrorCode } from '../index-
|
|
1
|
+
export { a as EvmContract, E as EvmStreamClient, F as FeesAbiResult, S as StreamAbiResult, c as constants, E as default, _ as ercAbi, e as extractEvmErrorCode } from '../index-DJNjOKR0.js';
|
|
2
2
|
import 'ethers';
|
|
3
3
|
import 'bn.js';
|
|
4
|
-
import '../BaseStreamClient-
|
|
4
|
+
import '../BaseStreamClient-uzoqllcf.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import '@solana/web3.js';
|
|
7
7
|
import '@streamflow/common';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseStreamClient, N as ISuiIdParameters, I as ICreateStreamData, 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, P as Contract, r as IUpdateData, s as IGetFeesData, t as IFees, Q as SuiErrorInfo, R as ClassResource, T as FeeTableResource, U as FeeValueResource, V as IContractCreated, W as IContractWithdrawn, X as StreamResource, Y as SuiParsedError, Z as SuiSignAndExecuteTransactionBlockInput } from './BaseStreamClient-
|
|
1
|
+
import { B as BaseStreamClient, N as ISuiIdParameters, I as ICreateStreamData, 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, P as Contract, r as IUpdateData, s as IGetFeesData, t as IFees, Q as SuiErrorInfo, R as ClassResource, T as FeeTableResource, U as FeeValueResource, V as IContractCreated, W as IContractWithdrawn, X as StreamResource, Y as SuiParsedError, Z as SuiSignAndExecuteTransactionBlockInput } from './BaseStreamClient-uzoqllcf.js';
|
|
2
2
|
import { ICluster } from '@streamflow/common';
|
|
3
3
|
import { SuiClient, GetTransactionBlockParams, SuiTransactionBlockResponse } from '@mysten/sui/client';
|
|
4
4
|
|
|
@@ -4,7 +4,7 @@ import { ITransactionSolanaExt, IProgramAccount, ConfirmationParams, ThrottlePar
|
|
|
4
4
|
import { IdlAccounts, IdlTypes, Program } from '@coral-xyz/anchor';
|
|
5
5
|
import { SignerWalletAdapter } from '@solana/wallet-adapter-base';
|
|
6
6
|
import BN from 'bn.js';
|
|
7
|
-
import { L as LinearStream, b as StreamType, A as AlignedStream, O as OracleTypeName, u as IRecipient, c as SolanaStreamClientOptions, B as BaseStreamClient, I as ICreateStreamData, g as ICreateResult, a as ICreateAlignedStreamData, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, p as IGetOneData, S as Stream, q as IGetAllData, r as IUpdateData, s as IGetFeesData, t as IFees } from './BaseStreamClient-
|
|
7
|
+
import { L as LinearStream, b as StreamType, A as AlignedStream, O as OracleTypeName, u as IRecipient, c as SolanaStreamClientOptions, B as BaseStreamClient, I as ICreateStreamData, g as ICreateResult, a as ICreateAlignedStreamData, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, p as IGetOneData, S as Stream, q as IGetAllData, r as IUpdateData, s as IGetFeesData, t as IFees } from './BaseStreamClient-uzoqllcf.js';
|
|
8
8
|
import { StreamflowAlignedUnlocks } from './solana/descriptor/streamflow_aligned_unlocks.js';
|
|
9
9
|
import { ICluster, ContractError, IChain } from '@streamflow/common';
|
|
10
10
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
@@ -117,6 +117,8 @@ declare class AlignedContract extends Contract implements AlignedStream {
|
|
|
117
117
|
lastPrice: number;
|
|
118
118
|
lastAmountUpdateTime: number;
|
|
119
119
|
initialNetAmount: BN;
|
|
120
|
+
expiryTime: number;
|
|
121
|
+
expiryPercentage: number;
|
|
120
122
|
constructor(stream: DecodedStream, alignedProxy: AlignedUnlocksContract);
|
|
121
123
|
}
|
|
122
124
|
interface DecodedStream {
|
|
@@ -137,10 +139,10 @@ interface DecodedStream {
|
|
|
137
139
|
streamflowTreasuryTokens: PublicKey;
|
|
138
140
|
streamflowFeeTotal: BN;
|
|
139
141
|
streamflowFeeWithdrawn: BN;
|
|
140
|
-
streamflowFeePercent:
|
|
142
|
+
streamflowFeePercent: number;
|
|
141
143
|
partnerFeeTotal: BN;
|
|
142
144
|
partnerFeeWithdrawn: BN;
|
|
143
|
-
partnerFeePercent:
|
|
145
|
+
partnerFeePercent: number;
|
|
144
146
|
partner: PublicKey;
|
|
145
147
|
partnerTokens: PublicKey;
|
|
146
148
|
start: BN;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ethers, BigNumber } from 'ethers';
|
|
2
2
|
import BN from 'bn.js';
|
|
3
|
-
import { B as BaseStreamClient, I as ICreateStreamData, g as ICreateResult, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, r as IUpdateData, p as IGetOneData, S as Stream, q as IGetAllData, s as IGetFeesData, t as IFees, L as LinearStream, b as StreamType, G as ContractErrorCode } from './BaseStreamClient-
|
|
3
|
+
import { B as BaseStreamClient, I as ICreateStreamData, g as ICreateResult, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, r as IUpdateData, p as IGetOneData, S as Stream, q as IGetAllData, s as IGetFeesData, t as IFees, L as LinearStream, b as StreamType, G as ContractErrorCode } from './BaseStreamClient-uzoqllcf.js';
|
|
4
4
|
import { IChain, ICluster } from '@streamflow/common';
|
|
5
5
|
|
|
6
6
|
declare class EvmStreamClient extends BaseStreamClient {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LinearStream, b as StreamType, B as BaseStreamClient, I as ICreateStreamData, g as ICreateResult, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, p as IGetOneData, r as IUpdateData, s as IGetFeesData, t as IFees } from './BaseStreamClient-
|
|
1
|
+
import { L as LinearStream, b as StreamType, B as BaseStreamClient, I as ICreateStreamData, g as ICreateResult, h as ICreateMultipleStreamData, i as IMultiTransactionResult, j as IWithdrawData, l as ITransactionResult, m as ICancelData, n as ITransferData, o as ITopUpData, p as IGetOneData, r as IUpdateData, s as IGetFeesData, t as IFees } from './BaseStreamClient-uzoqllcf.js';
|
|
2
2
|
import { WalletContextState } from '@manahippo/aptos-wallet-adapter';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
4
|
import { AptosAccount } from 'aptos';
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as AptosStreamClient, I as ICreateStreamAptosExt, a as ITransactionAptosExt } from './index-
|
|
2
|
-
export { i as StreamflowAptos } from './index-
|
|
3
|
-
import { E as EvmStreamClient } from './index-
|
|
4
|
-
export { i as StreamflowEVM } from './index-
|
|
5
|
-
import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-
|
|
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-
|
|
7
|
-
import { S as SuiStreamClient } from './index-
|
|
8
|
-
export { i as StreamflowSui } from './index-
|
|
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-
|
|
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-
|
|
1
|
+
import { A as AptosStreamClient, I as ICreateStreamAptosExt, a as ITransactionAptosExt } from './index-DvlYnKNo.js';
|
|
2
|
+
export { i as StreamflowAptos } from './index-DvlYnKNo.js';
|
|
3
|
+
import { E as EvmStreamClient } from './index-DJNjOKR0.js';
|
|
4
|
+
export { i as StreamflowEVM } from './index-DJNjOKR0.js';
|
|
5
|
+
import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-C_tXt0ti.js';
|
|
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-C_tXt0ti.js';
|
|
7
|
+
import { S as SuiStreamClient } from './index-BLMg_CgS.js';
|
|
8
|
+
export { i as StreamflowSui } from './index-BLMg_CgS.js';
|
|
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.js';
|
|
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.js';
|
|
11
11
|
import BN from 'bn.js';
|
|
12
12
|
import { IChain } from '@streamflow/common';
|
|
13
13
|
export { ContractError, IChain, ICluster } from '@streamflow/common';
|
package/dist/esm/index.js
CHANGED
|
@@ -2832,10 +2832,10 @@ var Contract2 = class {
|
|
|
2832
2832
|
this.streamflowTreasuryTokens = stream.streamflowTreasuryTokens.toBase58();
|
|
2833
2833
|
this.streamflowFeeTotal = stream.streamflowFeeTotal;
|
|
2834
2834
|
this.streamflowFeeWithdrawn = stream.streamflowFeeWithdrawn;
|
|
2835
|
-
this.streamflowFeePercent = stream.streamflowFeePercent
|
|
2835
|
+
this.streamflowFeePercent = stream.streamflowFeePercent;
|
|
2836
2836
|
this.partnerFeeTotal = stream.partnerFeeTotal;
|
|
2837
2837
|
this.partnerFeeWithdrawn = stream.partnerFeeWithdrawn;
|
|
2838
|
-
this.partnerFeePercent = stream.partnerFeePercent
|
|
2838
|
+
this.partnerFeePercent = stream.partnerFeePercent;
|
|
2839
2839
|
this.partner = stream.partner.toBase58();
|
|
2840
2840
|
this.partnerTokens = stream.partnerTokens?.toBase58();
|
|
2841
2841
|
this.start = stream.start.toNumber();
|
|
@@ -2888,6 +2888,8 @@ var AlignedContract = class extends Contract2 {
|
|
|
2888
2888
|
this.lastPrice = getNumberFromBN(alignedProxy.lastPrice, ALIGNED_PRECISION_FACTOR_POW);
|
|
2889
2889
|
this.lastAmountUpdateTime = alignedProxy.lastAmountUpdateTime.toNumber();
|
|
2890
2890
|
this.initialNetAmount = alignedProxy.initialNetAmount;
|
|
2891
|
+
this.expiryTime = alignedProxy.expiryTime.toNumber();
|
|
2892
|
+
this.expiryPercentage = getNumberFromBN(alignedProxy.expiryPercentage, ALIGNED_PRECISION_FACTOR_POW);
|
|
2891
2893
|
this.type = buildStreamType(this);
|
|
2892
2894
|
this.isAligned = true;
|
|
2893
2895
|
}
|
|
@@ -3075,10 +3077,10 @@ var decodeStream = (buf) => {
|
|
|
3075
3077
|
streamflowTreasuryTokens: new PublicKey(raw.streamflow_treasury_tokens),
|
|
3076
3078
|
streamflowFeeTotal: new BN7(raw.streamflow_fee_total, LE),
|
|
3077
3079
|
streamflowFeeWithdrawn: new BN7(raw.streamflow_fee_withdrawn, LE),
|
|
3078
|
-
streamflowFeePercent:
|
|
3080
|
+
streamflowFeePercent: raw.streamflow_fee_percent,
|
|
3079
3081
|
partnerFeeTotal: new BN7(raw.partner_fee_total, LE),
|
|
3080
3082
|
partnerFeeWithdrawn: new BN7(raw.partner_fee_withdrawn, LE),
|
|
3081
|
-
partnerFeePercent:
|
|
3083
|
+
partnerFeePercent: raw.partner_fee_percent,
|
|
3082
3084
|
partner: new PublicKey(raw.partner),
|
|
3083
3085
|
partnerTokens: new PublicKey(raw.partner_tokens),
|
|
3084
3086
|
start: new BN7(raw.start_time, LE),
|