@streamflow/stream 8.3.1 → 8.4.0
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-uzoqllcf.d.cts → BaseStreamClient-DOyJqO7R.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-ehppV5TW.d.cts → index-BAZFUaQL.d.cts} +2 -1
- package/dist/cjs/{index-DM9lJY7y.d.cts → index-BMZATAYa.d.cts} +1 -1
- package/dist/cjs/{index-BpvTuTHx.d.cts → index-DYIamO0j.d.cts} +1 -1
- package/dist/cjs/{index-CA72ko5B.d.cts → index-Y0HH2ugY.d.cts} +1 -1
- package/dist/cjs/index.cjs +35 -8
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +10 -10
- package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.d.cts +26 -2
- package/dist/cjs/solana/index.cjs +35 -8
- 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-uzoqllcf.d.ts → BaseStreamClient-DOyJqO7R.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-DvlYnKNo.d.ts → index-D54wSYym.d.ts} +1 -1
- package/dist/esm/{index-C_tXt0ti.d.ts → index-DKkJbavt.d.ts} +2 -1
- package/dist/esm/{index-BLMg_CgS.d.ts → index-DrzqsoIB.d.ts} +1 -1
- package/dist/esm/{index-DJNjOKR0.d.ts → index-elpYUBph.d.ts} +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +35 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/descriptor/idl/streamflow_aligned_unlocks.json +26 -2
- package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.d.ts +26 -2
- package/dist/esm/solana/index.d.ts +2 -2
- package/dist/esm/solana/index.js +35 -8
- 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-BAZFUaQL.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-DOyJqO7R.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-Y0HH2ugY.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-DOyJqO7R.cjs';
|
|
3
3
|
import '@streamflow/common';
|
|
4
4
|
import '@mysten/sui/client';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
@@ -207,6 +207,7 @@ type IAlignedStreamConfig = {
|
|
|
207
207
|
tickSize?: number;
|
|
208
208
|
expiryTime?: number;
|
|
209
209
|
expiryPercentage?: number | BN;
|
|
210
|
+
floorPrice?: number | BN;
|
|
210
211
|
};
|
|
211
212
|
type ICreateLinearStreamData = IBaseStreamConfig & IRecipient;
|
|
212
213
|
type ICreateAlignedStreamData = ICreateLinearStreamData & IAlignedStreamConfig;
|
|
@@ -382,6 +383,7 @@ type AlignedStreamData = {
|
|
|
382
383
|
initialNetAmount: BN;
|
|
383
384
|
expiryTime: number;
|
|
384
385
|
expiryPercentage: number;
|
|
386
|
+
floorPrice: number;
|
|
385
387
|
};
|
|
386
388
|
type AlignedStream = LinearStream & AlignedStreamData;
|
|
387
389
|
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-D54wSYym.js';
|
|
2
|
+
import '../BaseStreamClient-DOyJqO7R.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-elpYUBph.js';
|
|
2
2
|
import 'ethers';
|
|
3
3
|
import 'bn.js';
|
|
4
|
-
import '../BaseStreamClient-
|
|
4
|
+
import '../BaseStreamClient-DOyJqO7R.js';
|
|
5
5
|
import '@coral-xyz/anchor';
|
|
6
6
|
import '@solana/web3.js';
|
|
7
7
|
import '@streamflow/common';
|
|
@@ -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-DOyJqO7R.js';
|
|
2
2
|
import { WalletContextState } from '@manahippo/aptos-wallet-adapter';
|
|
3
3
|
import BN from 'bn.js';
|
|
4
4
|
import { AptosAccount } from 'aptos';
|
|
@@ -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-DOyJqO7R.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';
|
|
@@ -119,6 +119,7 @@ declare class AlignedContract extends Contract implements AlignedStream {
|
|
|
119
119
|
initialNetAmount: BN;
|
|
120
120
|
expiryTime: number;
|
|
121
121
|
expiryPercentage: number;
|
|
122
|
+
floorPrice: number;
|
|
122
123
|
constructor(stream: DecodedStream, alignedProxy: AlignedUnlocksContract);
|
|
123
124
|
}
|
|
124
125
|
interface DecodedStream {
|
|
@@ -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-DOyJqO7R.js';
|
|
2
2
|
import { ICluster } from '@streamflow/common';
|
|
3
3
|
import { SuiClient, GetTransactionBlockParams, SuiTransactionBlockResponse } from '@mysten/sui/client';
|
|
4
4
|
|
|
@@ -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-DOyJqO7R.js';
|
|
4
4
|
import { IChain, ICluster } from '@streamflow/common';
|
|
5
5
|
|
|
6
6
|
declare class EvmStreamClient extends BaseStreamClient {
|
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-D54wSYym.js';
|
|
2
|
+
export { i as StreamflowAptos } from './index-D54wSYym.js';
|
|
3
|
+
import { E as EvmStreamClient } from './index-elpYUBph.js';
|
|
4
|
+
export { i as StreamflowEVM } from './index-elpYUBph.js';
|
|
5
|
+
import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-DKkJbavt.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-DKkJbavt.js';
|
|
7
|
+
import { S as SuiStreamClient } from './index-DrzqsoIB.js';
|
|
8
|
+
export { i as StreamflowSui } from './index-DrzqsoIB.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-DOyJqO7R.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-DOyJqO7R.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
|
@@ -2890,6 +2890,7 @@ var AlignedContract = class extends Contract2 {
|
|
|
2890
2890
|
this.initialNetAmount = alignedProxy.initialNetAmount;
|
|
2891
2891
|
this.expiryTime = alignedProxy.expiryTime.toNumber();
|
|
2892
2892
|
this.expiryPercentage = getNumberFromBN(alignedProxy.expiryPercentage, ALIGNED_PRECISION_FACTOR_POW);
|
|
2893
|
+
this.floorPrice = getNumberFromBN(alignedProxy.floorPrice, ALIGNED_PRECISION_FACTOR_POW);
|
|
2893
2894
|
this.type = buildStreamType(this);
|
|
2894
2895
|
this.isAligned = true;
|
|
2895
2896
|
}
|
|
@@ -3467,7 +3468,7 @@ var streamflow_aligned_unlocks_default = {
|
|
|
3467
3468
|
address: "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH",
|
|
3468
3469
|
metadata: {
|
|
3469
3470
|
name: "streamflow_aligned_unlocks",
|
|
3470
|
-
version: "1.
|
|
3471
|
+
version: "1.3.0",
|
|
3471
3472
|
spec: "0.1.0",
|
|
3472
3473
|
description: "Proxy to update unlock amount within Streamflow vesting protocol according to Token performance and other metrics"
|
|
3473
3474
|
},
|
|
@@ -4479,6 +4480,16 @@ var streamflow_aligned_unlocks_default = {
|
|
|
4479
4480
|
code: 6014,
|
|
4480
4481
|
name: "DynamicScheduleExpired",
|
|
4481
4482
|
msg: "Dynamic schedule expired, updates are not allowed"
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
code: 6015,
|
|
4486
|
+
name: "FloorPriceReached",
|
|
4487
|
+
msg: "Floor price has already been reached, updates are not allowed"
|
|
4488
|
+
},
|
|
4489
|
+
{
|
|
4490
|
+
code: 6016,
|
|
4491
|
+
name: "InvalidFloorPrice",
|
|
4492
|
+
msg: "Provided floor price is invalid, should be less than minimum price"
|
|
4482
4493
|
}
|
|
4483
4494
|
],
|
|
4484
4495
|
types: [
|
|
@@ -4668,6 +4679,13 @@ var streamflow_aligned_unlocks_default = {
|
|
|
4668
4679
|
],
|
|
4669
4680
|
type: "u64"
|
|
4670
4681
|
},
|
|
4682
|
+
{
|
|
4683
|
+
name: "floor_price",
|
|
4684
|
+
docs: [
|
|
4685
|
+
"Floor price boundary, if the price is below this boundary, the contract will be unlocked"
|
|
4686
|
+
],
|
|
4687
|
+
type: "u64"
|
|
4688
|
+
},
|
|
4671
4689
|
{
|
|
4672
4690
|
name: "buffer",
|
|
4673
4691
|
docs: [
|
|
@@ -4676,7 +4694,7 @@ var streamflow_aligned_unlocks_default = {
|
|
|
4676
4694
|
type: {
|
|
4677
4695
|
array: [
|
|
4678
4696
|
"u8",
|
|
4679
|
-
|
|
4697
|
+
8
|
|
4680
4698
|
]
|
|
4681
4699
|
}
|
|
4682
4700
|
}
|
|
@@ -4828,6 +4846,13 @@ var streamflow_aligned_unlocks_default = {
|
|
|
4828
4846
|
"Percentage to set when contract expires, won't be updated after it"
|
|
4829
4847
|
],
|
|
4830
4848
|
type: "u64"
|
|
4849
|
+
},
|
|
4850
|
+
{
|
|
4851
|
+
name: "floor_price",
|
|
4852
|
+
docs: [
|
|
4853
|
+
"Floor price boundary, if the price is below this boundary, the contract will be unlocked"
|
|
4854
|
+
],
|
|
4855
|
+
type: "u64"
|
|
4831
4856
|
}
|
|
4832
4857
|
]
|
|
4833
4858
|
}
|
|
@@ -5073,7 +5098,8 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
5073
5098
|
oracleType,
|
|
5074
5099
|
tokenProgramId: streamTokenProgramId,
|
|
5075
5100
|
expiryTime,
|
|
5076
|
-
expiryPercentage
|
|
5101
|
+
expiryPercentage,
|
|
5102
|
+
floorPrice
|
|
5077
5103
|
} = streamParams;
|
|
5078
5104
|
const { isNative, sender, computeLimit, computePrice, metadataPubKeys } = extParams;
|
|
5079
5105
|
if (!sender.publicKey) {
|
|
@@ -5120,14 +5146,15 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
5120
5146
|
canTopup,
|
|
5121
5147
|
oracleType: !!oracleType ? { [oracleType]: {} } : { none: {} },
|
|
5122
5148
|
streamName: streamNameArray,
|
|
5123
|
-
minPrice: minPrice
|
|
5124
|
-
maxPrice: maxPrice
|
|
5125
|
-
minPercentage: minPercentage
|
|
5126
|
-
maxPercentage: maxPercentage
|
|
5149
|
+
minPrice: typeof minPrice === "number" ? getBN$1(minPrice, ALIGNED_PRECISION_FACTOR_POW) : minPrice,
|
|
5150
|
+
maxPrice: typeof maxPrice === "number" ? getBN$1(maxPrice, ALIGNED_PRECISION_FACTOR_POW) : maxPrice,
|
|
5151
|
+
minPercentage: typeof minPercentage === "number" ? getBN$1(minPercentage, ALIGNED_PRECISION_FACTOR_POW) : minPercentage,
|
|
5152
|
+
maxPercentage: typeof maxPercentage === "number" ? getBN$1(maxPercentage, ALIGNED_PRECISION_FACTOR_POW) : maxPercentage,
|
|
5127
5153
|
tickSize: new BN7(tickSize || 1),
|
|
5128
5154
|
skipInitial: skipInitial ?? false,
|
|
5129
5155
|
expiryTime: new BN7(expiryTime ?? 0),
|
|
5130
|
-
expiryPercentage: expiryPercentage
|
|
5156
|
+
expiryPercentage: typeof expiryPercentage === "number" ? getBN$1(expiryPercentage, ALIGNED_PRECISION_FACTOR_POW) : expiryPercentage ?? new BN7(0),
|
|
5157
|
+
floorPrice: typeof floorPrice === "number" ? getBN$1(floorPrice, ALIGNED_PRECISION_FACTOR_POW) : floorPrice ?? new BN7(0)
|
|
5131
5158
|
}).accountsPartial({
|
|
5132
5159
|
payer: sender.publicKey,
|
|
5133
5160
|
sender: sender.publicKey,
|