@streamflow/stream 7.5.3 → 8.0.0-alpha.p284.726ba98
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-CQOC8m8V.d.cts +542 -0
- package/dist/cjs/aptos/index.cjs +456 -0
- package/dist/cjs/aptos/index.cjs.map +1 -0
- package/dist/cjs/aptos/index.d.cts +14 -0
- package/dist/cjs/evm/index.cjs +1915 -0
- package/dist/cjs/evm/index.cjs.map +1 -0
- package/dist/cjs/evm/index.d.cts +13 -0
- package/dist/cjs/index-CYu6i--S.d.cts +136 -0
- package/dist/cjs/index-DUVcpIhD.d.cts +203 -0
- package/dist/cjs/index-b7Qo5mCj.d.cts +664 -0
- package/dist/cjs/index-fNLnPKzv.d.cts +213 -0
- package/dist/cjs/index.cjs +7202 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +192 -0
- package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.cjs +4 -0
- package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.cjs.map +1 -0
- package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.d.cts +1234 -0
- package/dist/cjs/solana/index.cjs +3762 -0
- package/dist/cjs/solana/index.cjs.map +1 -0
- package/dist/cjs/solana/index.d.cts +17 -0
- package/dist/cjs/sui/index.cjs +1021 -0
- package/dist/cjs/sui/index.cjs.map +1 -0
- package/dist/cjs/sui/index.d.cts +13 -0
- package/dist/esm/BaseStreamClient-CQOC8m8V.d.ts +542 -0
- package/dist/esm/aptos/index.d.ts +14 -4
- package/dist/esm/aptos/index.js +443 -4
- package/dist/esm/aptos/index.js.map +1 -0
- package/dist/esm/evm/index.d.ts +13 -5
- package/dist/esm/evm/index.js +1902 -5
- package/dist/esm/evm/index.js.map +1 -0
- package/dist/esm/index-BEo0O2IG.d.ts +664 -0
- package/dist/esm/index-CWmb3-x9.d.ts +136 -0
- package/dist/esm/index-Cgv37xlG.d.ts +213 -0
- package/dist/esm/index-D6QYg8hn.d.ts +203 -0
- package/dist/esm/index.d.ts +192 -10
- package/dist/esm/index.js +7109 -10
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/solana/descriptor/idl/streamflow_aligned_unlocks.json +917 -1368
- package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.d.ts +3 -1
- package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.js +3 -1
- package/dist/esm/solana/descriptor/streamflow_aligned_unlocks.js.map +1 -0
- package/dist/esm/solana/index.d.ts +17 -7
- package/dist/esm/solana/index.js +3706 -7
- package/dist/esm/solana/index.js.map +1 -0
- package/dist/esm/sui/index.d.ts +13 -4
- package/dist/esm/sui/index.js +1011 -4
- package/dist/esm/sui/index.js.map +1 -0
- package/package.json +57 -27
- package/dist/cjs/__tests__/aptos/streamClient.spec.js +0 -111
- package/dist/cjs/__tests__/common/GenericStreamClient.spec.js +0 -45
- package/dist/cjs/aptos/StreamClient.js +0 -226
- package/dist/cjs/aptos/constants.js +0 -27
- package/dist/cjs/aptos/index.js +0 -38
- package/dist/cjs/aptos/types.js +0 -69
- package/dist/cjs/aptos/utils.js +0 -34
- package/dist/cjs/aptos/wallet.js +0 -34
- package/dist/cjs/common/BaseStreamClient.js +0 -23
- package/dist/cjs/common/GenericStreamClient.js +0 -102
- package/dist/cjs/common/constants.js +0 -10
- package/dist/cjs/common/contractUtils.js +0 -77
- package/dist/cjs/common/types.js +0 -141
- package/dist/cjs/common/utils.js +0 -69
- package/dist/cjs/evm/StreamClient.js +0 -238
- package/dist/cjs/evm/abi.js +0 -1257
- package/dist/cjs/evm/constants.js +0 -38
- package/dist/cjs/evm/ercAbi.js +0 -224
- package/dist/cjs/evm/index.js +0 -40
- package/dist/cjs/evm/types.js +0 -66
- package/dist/cjs/evm/utils.js +0 -11
- package/dist/cjs/index.js +0 -43
- package/dist/cjs/solana/StreamClient.js +0 -1042
- package/dist/cjs/solana/constants.js +0 -95
- package/dist/cjs/solana/descriptor/idl/streamflow_aligned_unlocks.json +0 -1437
- package/dist/cjs/solana/descriptor/streamflow_aligned_unlocks.js +0 -2
- package/dist/cjs/solana/index.js +0 -40
- package/dist/cjs/solana/instructionTypes.js +0 -2
- package/dist/cjs/solana/instructions.js +0 -298
- package/dist/cjs/solana/layout.js +0 -182
- package/dist/cjs/solana/lib/derive-accounts.js +0 -17
- package/dist/cjs/solana/lib/utils.js +0 -127
- package/dist/cjs/solana/timelockIDL.js +0 -422
- package/dist/cjs/solana/types.js +0 -93
- package/dist/cjs/sui/StreamClient.js +0 -416
- package/dist/cjs/sui/constants.js +0 -42
- package/dist/cjs/sui/index.js +0 -37
- package/dist/cjs/sui/types.js +0 -68
- package/dist/cjs/sui/utils.js +0 -46
- package/dist/cjs/sui/wallet.js +0 -40
- package/dist/esm/__tests__/aptos/streamClient.spec.d.ts +0 -1
- package/dist/esm/__tests__/aptos/streamClient.spec.js +0 -106
- package/dist/esm/__tests__/common/GenericStreamClient.spec.d.ts +0 -1
- package/dist/esm/__tests__/common/GenericStreamClient.spec.js +0 -40
- package/dist/esm/aptos/StreamClient.d.ts +0 -53
- package/dist/esm/aptos/StreamClient.js +0 -226
- package/dist/esm/aptos/constants.d.ts +0 -8
- package/dist/esm/aptos/constants.js +0 -24
- package/dist/esm/aptos/types.d.ts +0 -109
- package/dist/esm/aptos/types.js +0 -105
- package/dist/esm/aptos/utils.d.ts +0 -7
- package/dist/esm/aptos/utils.js +0 -30
- package/dist/esm/aptos/wallet.d.ts +0 -9
- package/dist/esm/aptos/wallet.js +0 -33
- package/dist/esm/common/BaseStreamClient.d.ts +0 -22
- package/dist/esm/common/BaseStreamClient.js +0 -19
- package/dist/esm/common/GenericStreamClient.d.ts +0 -72
- package/dist/esm/common/GenericStreamClient.js +0 -101
- package/dist/esm/common/constants.d.ts +0 -4
- package/dist/esm/common/constants.js +0 -4
- package/dist/esm/common/contractUtils.d.ts +0 -63
- package/dist/esm/common/contractUtils.js +0 -61
- package/dist/esm/common/types.d.ts +0 -353
- package/dist/esm/common/types.js +0 -135
- package/dist/esm/common/utils.d.ts +0 -32
- package/dist/esm/common/utils.js +0 -59
- package/dist/esm/evm/StreamClient.d.ts +0 -32
- package/dist/esm/evm/StreamClient.js +0 -237
- package/dist/esm/evm/abi.d.ts +0 -111
- package/dist/esm/evm/abi.js +0 -1255
- package/dist/esm/evm/constants.d.ts +0 -20
- package/dist/esm/evm/constants.js +0 -35
- package/dist/esm/evm/ercAbi.d.ts +0 -39
- package/dist/esm/evm/ercAbi.js +0 -222
- package/dist/esm/evm/types.d.ts +0 -98
- package/dist/esm/evm/types.js +0 -102
- package/dist/esm/evm/utils.d.ts +0 -1
- package/dist/esm/evm/utils.js +0 -8
- package/dist/esm/solana/StreamClient.d.ts +0 -150
- package/dist/esm/solana/StreamClient.js +0 -1017
- package/dist/esm/solana/constants.d.ts +0 -70
- package/dist/esm/solana/constants.js +0 -92
- package/dist/esm/solana/instructionTypes.d.ts +0 -101
- package/dist/esm/solana/instructionTypes.js +0 -1
- package/dist/esm/solana/instructions.d.ts +0 -142
- package/dist/esm/solana/instructions.js +0 -265
- package/dist/esm/solana/layout.d.ts +0 -27
- package/dist/esm/solana/layout.js +0 -155
- package/dist/esm/solana/lib/derive-accounts.d.ts +0 -4
- package/dist/esm/solana/lib/derive-accounts.js +0 -11
- package/dist/esm/solana/lib/utils.d.ts +0 -22
- package/dist/esm/solana/lib/utils.js +0 -117
- package/dist/esm/solana/timelockIDL.d.ts +0 -22
- package/dist/esm/solana/timelockIDL.js +0 -420
- package/dist/esm/solana/types.d.ts +0 -180
- package/dist/esm/solana/types.js +0 -142
- package/dist/esm/sui/StreamClient.d.ts +0 -82
- package/dist/esm/sui/StreamClient.js +0 -417
- package/dist/esm/sui/constants.d.ts +0 -10
- package/dist/esm/sui/constants.js +0 -39
- package/dist/esm/sui/types.d.ts +0 -167
- package/dist/esm/sui/types.js +0 -104
- package/dist/esm/sui/utils.d.ts +0 -11
- package/dist/esm/sui/utils.js +0 -39
- package/dist/esm/sui/wallet.d.ts +0 -17
- package/dist/esm/sui/wallet.js +0 -38
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { A as AptosStreamClient, I as ICreateStreamAptosExt, a as ITransactionAptosExt } from './index-DUVcpIhD.cjs';
|
|
2
|
+
export { i as StreamflowAptos } from './index-DUVcpIhD.cjs';
|
|
3
|
+
import { E as EvmStreamClient } from './index-fNLnPKzv.cjs';
|
|
4
|
+
export { i as StreamflowEVM } from './index-fNLnPKzv.cjs';
|
|
5
|
+
import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-b7Qo5mCj.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-b7Qo5mCj.cjs';
|
|
7
|
+
import { S as SuiStreamClient } from './index-CYu6i--S.cjs';
|
|
8
|
+
export { i as StreamflowSui } from './index-CYu6i--S.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-CQOC8m8V.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-CQOC8m8V.cjs';
|
|
11
|
+
import BN from 'bn.js';
|
|
12
|
+
import { IChain } from '@streamflow/common';
|
|
13
|
+
export { ContractError, IChain, ICluster } from '@streamflow/common';
|
|
14
|
+
import '@manahippo/aptos-wallet-adapter';
|
|
15
|
+
import 'aptos';
|
|
16
|
+
import 'ethers';
|
|
17
|
+
import 'p-queue';
|
|
18
|
+
import '@solana/web3.js';
|
|
19
|
+
import '@streamflow/common/solana';
|
|
20
|
+
import '@coral-xyz/anchor';
|
|
21
|
+
import '@solana/wallet-adapter-base';
|
|
22
|
+
import './solana/descriptor/streamflow_aligned_unlocks.cjs';
|
|
23
|
+
import 'buffer';
|
|
24
|
+
import '@mysten/sui/client';
|
|
25
|
+
import '@mysten/sui/cryptography';
|
|
26
|
+
import '@mysten/sui/transactions';
|
|
27
|
+
import '@suiet/wallet-kit';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Used for conversion of token amounts to their Big Number representation.
|
|
31
|
+
* Get Big Number representation in the smallest units from the same value in the highest units.
|
|
32
|
+
* @param {number} value - Number of tokens you want to convert to its BN representation.
|
|
33
|
+
* @param {number} decimals - Number of decimals the token has.
|
|
34
|
+
*/
|
|
35
|
+
declare const getBN: (value: number, decimals: number) => BN;
|
|
36
|
+
/**
|
|
37
|
+
* Used for token amounts conversion from their Big Number representation to number.
|
|
38
|
+
* Get value in the highest units from BN representation of the same value in the smallest units.
|
|
39
|
+
* @param {BN} value - Big Number representation of value in the smallest units.
|
|
40
|
+
* @param {number} decimals - Number of decimals the token has.
|
|
41
|
+
*/
|
|
42
|
+
declare const getNumberFromBN: (value: BN, decimals: number) => number;
|
|
43
|
+
/**
|
|
44
|
+
* Calculate total amount of a Contract including all fees.
|
|
45
|
+
* - first we convert fee floating to a BN with up to 4 decimals precision
|
|
46
|
+
* - then we reverse the fee with `FEE_MULTIPLIER` to safely multiply it by depositedAmount
|
|
47
|
+
* to receive a total number and not percentage of depositedAmount
|
|
48
|
+
* @param depositedAmount deposited raw tokens
|
|
49
|
+
* @param totalFee sum of all fees in percentage as floating number, e.g. 0.99% should be supplied as 0.99
|
|
50
|
+
* @returns total tokens amount that Contract will retrieve from the Sender
|
|
51
|
+
*/
|
|
52
|
+
declare const calculateTotalAmountToDeposit: (depositedAmount: BN, totalFee: number) => BN;
|
|
53
|
+
/**
|
|
54
|
+
* Used to make on chain calls to the contract and wrap raised errors if any
|
|
55
|
+
* @param func function that interacts with the contract
|
|
56
|
+
* @param callback callback that may be used to extract error code
|
|
57
|
+
* @returns {T}
|
|
58
|
+
*/
|
|
59
|
+
declare function handleContractError<T>(func: () => Promise<T>, callback?: (err: Error) => string | null): Promise<T>;
|
|
60
|
+
|
|
61
|
+
declare const MAX_SAFE_UNIX_TIME_VALUE = 8640000000000;
|
|
62
|
+
declare const BASE_FEE = 1009900;
|
|
63
|
+
declare const WITHDRAW_AVAILABLE_AMOUNT: BN;
|
|
64
|
+
|
|
65
|
+
interface ICalculateUnlockedAmount {
|
|
66
|
+
depositedAmount: BN;
|
|
67
|
+
cliff: number;
|
|
68
|
+
cliffAmount: BN;
|
|
69
|
+
end: number;
|
|
70
|
+
currentTimestamp: number;
|
|
71
|
+
lastRateChangeTime: number;
|
|
72
|
+
period: number;
|
|
73
|
+
amountPerPeriod: BN;
|
|
74
|
+
fundsUnlockedAtLastRateChange: BN;
|
|
75
|
+
}
|
|
76
|
+
declare const calculateUnlockedAmount: ({ depositedAmount, cliff, cliffAmount, end, currentTimestamp, lastRateChangeTime, period, amountPerPeriod, fundsUnlockedAtLastRateChange, }: ICalculateUnlockedAmount) => BN;
|
|
77
|
+
declare const isCliffCloseToDepositedAmount: (streamData: {
|
|
78
|
+
depositedAmount: BN;
|
|
79
|
+
cliffAmount: BN;
|
|
80
|
+
}) => boolean;
|
|
81
|
+
declare const isPayment: (streamData: {
|
|
82
|
+
canTopup: boolean;
|
|
83
|
+
}) => boolean;
|
|
84
|
+
declare const isVesting: (streamData: {
|
|
85
|
+
canTopup: boolean;
|
|
86
|
+
depositedAmount: BN;
|
|
87
|
+
cliffAmount: BN;
|
|
88
|
+
minPrice?: number;
|
|
89
|
+
maxPrice?: number;
|
|
90
|
+
minPercentage?: number;
|
|
91
|
+
maxPercentage?: number;
|
|
92
|
+
}) => boolean;
|
|
93
|
+
declare const isAligned: (stream: Stream) => stream is AlignedStream;
|
|
94
|
+
declare const isCreateAlignedStreamData: (obj: ICreateStreamData) => obj is ICreateAlignedStreamData;
|
|
95
|
+
declare const isDynamicLock: (minPrice?: number, maxPrice?: number, minPercentage?: number, maxPercentage?: number) => boolean;
|
|
96
|
+
declare const isTokenLock: (streamData: {
|
|
97
|
+
canTopup: boolean;
|
|
98
|
+
automaticWithdrawal: boolean;
|
|
99
|
+
cancelableBySender: boolean;
|
|
100
|
+
cancelableByRecipient: boolean;
|
|
101
|
+
transferableBySender: boolean;
|
|
102
|
+
transferableByRecipient: boolean;
|
|
103
|
+
depositedAmount: BN;
|
|
104
|
+
cliffAmount: BN;
|
|
105
|
+
minPrice?: number;
|
|
106
|
+
maxPrice?: number;
|
|
107
|
+
minPercentage?: number;
|
|
108
|
+
maxPercentage?: number;
|
|
109
|
+
}) => boolean;
|
|
110
|
+
declare const buildStreamType: (streamData: {
|
|
111
|
+
canTopup: boolean;
|
|
112
|
+
automaticWithdrawal: boolean;
|
|
113
|
+
cancelableBySender: boolean;
|
|
114
|
+
cancelableByRecipient: boolean;
|
|
115
|
+
transferableBySender: boolean;
|
|
116
|
+
transferableByRecipient: boolean;
|
|
117
|
+
depositedAmount: BN;
|
|
118
|
+
cliffAmount: BN;
|
|
119
|
+
minPrice?: number;
|
|
120
|
+
maxPrice?: number;
|
|
121
|
+
minPercentage?: number;
|
|
122
|
+
maxPercentage?: number;
|
|
123
|
+
}) => StreamType;
|
|
124
|
+
declare const decodeEndTime: (endTime: BN) => number;
|
|
125
|
+
|
|
126
|
+
/** Type referencing options for specific Chain Client */
|
|
127
|
+
type StreamClientOptions<T extends IChain> = T extends IChain.Solana ? SolanaStreamClientOptions : T extends IChain.Aptos ? AptosStreamClientOptions : T extends IChain.Sui ? SuiStreamClientOptions : EvmStreamClientOptions;
|
|
128
|
+
/** Type referencing Chain Client implementation */
|
|
129
|
+
type StreamClientType<T extends IChain> = T extends IChain.Solana ? SolanaStreamClient : T extends IChain.Aptos ? AptosStreamClient : T extends IChain.Sui ? SuiStreamClient : EvmStreamClient;
|
|
130
|
+
/** Type referencing additional parameters used by a Chain Client */
|
|
131
|
+
type ChainSpecificParams<T, SolanaExt, AptosExt, SuiExt> = T extends SolanaStreamClient ? SolanaExt : T extends AptosStreamClient ? AptosExt : T extends SuiStreamClient ? SuiExt : undefined;
|
|
132
|
+
/** Type referencing additional parameters used on Create by a Chain Client */
|
|
133
|
+
type CreateSpecificParams<T extends IChain> = ChainSpecificParams<StreamClientType<T>, ICreateStreamSolanaExt, ICreateStreamAptosExt, ICreateStreamSuiExt>;
|
|
134
|
+
/** Type referencing additional parameters used on Topup by a Chain Client */
|
|
135
|
+
type TopupSpecificParams<T extends IChain> = ChainSpecificParams<StreamClientType<T>, ITopUpStreamSolanaExt, ITransactionAptosExt, ITransactionSuiExt>;
|
|
136
|
+
/** Type referencing additional parameters used on other interactions by a Chain Client */
|
|
137
|
+
type InteractSpecificParams<T extends IChain> = ChainSpecificParams<StreamClientType<T>, IInteractStreamSolanaExt, ITransactionAptosExt, ITransactionSuiExt>;
|
|
138
|
+
/** Generic Stream Client implementation that wrap Chain Client methods and enriches error messages if possible
|
|
139
|
+
* @property {StreamClientType} - Chain Client implementation
|
|
140
|
+
* @property {chain} - Chain
|
|
141
|
+
*/
|
|
142
|
+
declare class GenericStreamClient<T extends IChain> extends BaseStreamClient {
|
|
143
|
+
nativeStreamClient: StreamClientType<T>;
|
|
144
|
+
chain: IChain;
|
|
145
|
+
constructor(options: StreamClientOptions<T>);
|
|
146
|
+
/**
|
|
147
|
+
* Creates a new stream/vesting contract.
|
|
148
|
+
*/
|
|
149
|
+
create(streamData: ICreateStreamData, chainSpecificParams?: CreateSpecificParams<T>): Promise<ICreateResult>;
|
|
150
|
+
/**
|
|
151
|
+
* Creates multiple stream/vesting contracts.
|
|
152
|
+
*/
|
|
153
|
+
createMultiple(multipleStreamData: ICreateMultipleStreamData, chainSpecificParams?: CreateSpecificParams<T>): Promise<IMultiTransactionResult>;
|
|
154
|
+
/**
|
|
155
|
+
* Attempts withdrawing from the specified stream.
|
|
156
|
+
*/
|
|
157
|
+
withdraw({ id, amount }: IWithdrawData, chainSpecificParams?: InteractSpecificParams<T>): Promise<ITransactionResult>;
|
|
158
|
+
/**
|
|
159
|
+
* Attempts canceling the specified stream.
|
|
160
|
+
*/
|
|
161
|
+
cancel(cancelData: ICancelData, chainSpecificParams?: InteractSpecificParams<T>): Promise<ITransactionResult>;
|
|
162
|
+
/**
|
|
163
|
+
* Attempts changing the stream/vesting contract's recipient (effectively transferring the stream/vesting contract).
|
|
164
|
+
*/
|
|
165
|
+
transfer(transferData: ITransferData, chainSpecificParams?: InteractSpecificParams<T>): Promise<ITransactionResult>;
|
|
166
|
+
/**
|
|
167
|
+
* Tops up stream account with specified amount.
|
|
168
|
+
*/
|
|
169
|
+
topup(topupData: ITopUpData, chainSpecificParams?: TopupSpecificParams<T>): Promise<ITransactionResult>;
|
|
170
|
+
/**
|
|
171
|
+
* Fetch stream data by its id (address).
|
|
172
|
+
*/
|
|
173
|
+
getOne(getOneData: IGetOneData): Promise<Stream>;
|
|
174
|
+
/**
|
|
175
|
+
* Fetch streams by sender or recipient address.
|
|
176
|
+
*/
|
|
177
|
+
get(getAllData: IGetAllData): Promise<[string, Stream][]>;
|
|
178
|
+
/**
|
|
179
|
+
* Attempts updating the stream auto withdrawal params and amount per period
|
|
180
|
+
*/
|
|
181
|
+
update(updateData: IUpdateData, chainSpecificParams?: InteractSpecificParams<T>): Promise<ITransactionResult>;
|
|
182
|
+
/**
|
|
183
|
+
* Returns streamflow and partner fees for the specific wallet in %
|
|
184
|
+
*/
|
|
185
|
+
getFees(getFeesData: IGetFeesData): Promise<IFees | null>;
|
|
186
|
+
/**
|
|
187
|
+
* Returns default Streamflow Fee in %
|
|
188
|
+
*/
|
|
189
|
+
getDefaultStreamflowFee(): Promise<number>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export { AlignedStream, AptosStreamClientOptions, BASE_FEE, EvmStreamClientOptions, GenericStreamClient, ICancelData, ICreateAlignedStreamData, ICreateMultipleStreamData, ICreateResult, ICreateStreamData, IFees, IGetAllData, IGetFeesData, IGetOneData, IMultiTransactionResult, ITopUpData, ITransactionResult, ITransferData, IUpdateData, IWithdrawData, MAX_SAFE_UNIX_TIME_VALUE, SolanaStreamClientOptions, Stream, StreamType, SuiStreamClientOptions, WITHDRAW_AVAILABLE_AMOUNT, buildStreamType, calculateTotalAmountToDeposit, calculateUnlockedAmount, decodeEndTime, getBN, getNumberFromBN, handleContractError, isAligned, isCliffCloseToDepositedAmount, isCreateAlignedStreamData, isDynamicLock, isPayment, isTokenLock, isVesting };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"streamflow_aligned_unlocks.cjs"}
|