@streamflow/stream 8.8.0 → 8.9.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/README.md +213 -175
- package/dist/cjs/{index-Bll7jg8V.d.cts → index-oCYfzJrc.d.cts} +37 -33
- package/dist/cjs/index.cjs +60 -90
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -2
- package/dist/cjs/solana/index.cjs +60 -90
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/cjs/solana/index.d.cts +1 -1
- package/dist/esm/{index-D-w3ZCyC.d.ts → index-BNQVJtIE.d.ts} +37 -33
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +61 -91
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.d.ts +1 -1
- package/dist/esm/solana/index.js +61 -91
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Z as Account,
|
|
1
|
+
export { Z as Account, a5 as AlignedContract, M as AlignedUnlocksContract, a8 as BatchItem, aa as BatchItemError, ab as BatchItemResult, a9 as BatchItemSuccess, U as ChangeOracleParams, y as ClientCreationOptions, a4 as Contract, R as CreateParams, V as CreateTestOracleParams, a6 as DecodedStream, $ as ICreateSolanaExt, a3 as ICreateStreamInstructions, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, a1 as IPrepareCreateStreamSolanaExt, a2 as IPrepareStreamSolanaExt, Y as ISearchStreams, b as ITopUpStreamSolanaExt, a0 as ITransactionSolanaExtWithInstructions, ac as InstructionGenerator, a7 as MetadataRecipientHashMap, N as OracleType, S as SolanaStreamClient, Q as TestOracle, X as UpdateTestOracleParams, ah as cancelStreamInstruction, x as constants, ad as createStreamInstruction, ae 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, aj as topupStreamInstruction, ai as transferStreamInstruction, ag as updateStreamInstruction, af as withdrawStreamInstruction } from '../index-oCYfzJrc.cjs';
|
|
2
2
|
export { ContractError, IChain, ICluster } from '@streamflow/common';
|
|
3
3
|
import 'p-queue';
|
|
4
4
|
import '@solana/web3.js';
|
|
@@ -41,10 +41,20 @@ interface ICreateStreamSolanaExt extends ICreateSolanaExt, ITransactionSolanaExt
|
|
|
41
41
|
metadataPubKeys?: PublicKey[];
|
|
42
42
|
partner?: string | null;
|
|
43
43
|
}
|
|
44
|
+
interface IPrepareCreateStreamSolanaExt extends Omit<ICreateStreamSolanaExt, "sender"> {
|
|
45
|
+
sender: {
|
|
46
|
+
publicKey: PublicKey | null;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
44
49
|
interface IInteractStreamSolanaExt extends ITransactionSolanaExtWithInstructions {
|
|
45
50
|
invoker: SignerWalletAdapter | Keypair;
|
|
46
51
|
checkTokenAccounts?: boolean;
|
|
47
52
|
}
|
|
53
|
+
interface IPrepareStreamSolanaExt extends Omit<IInteractStreamSolanaExt, "invoker"> {
|
|
54
|
+
invoker: {
|
|
55
|
+
publicKey: PublicKey | null;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
48
58
|
interface ITopUpStreamSolanaExt extends ITransactionSolanaExt {
|
|
49
59
|
invoker: SignerWalletAdapter | Keypair;
|
|
50
60
|
isNative?: boolean;
|
|
@@ -220,9 +230,7 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
220
230
|
* @param {Omit<ICreateStreamSolanaExt, "sender"> & { senderPublicKey: PublicKey }} extParams - Transaction configuration including sender public key, native token handling, and custom instructions
|
|
221
231
|
* @returns Transaction instructions and metadata ID
|
|
222
232
|
*/
|
|
223
|
-
buildCreateTransactionInstructions(data: ICreateStreamData, extParams:
|
|
224
|
-
senderPublicKey: PublicKey;
|
|
225
|
-
}): Promise<{
|
|
233
|
+
buildCreateTransactionInstructions(data: ICreateStreamData, extParams: IPrepareCreateStreamSolanaExt): Promise<{
|
|
226
234
|
ixs: TransactionInstruction[];
|
|
227
235
|
metadataId: string;
|
|
228
236
|
metadata?: Keypair;
|
|
@@ -238,9 +246,7 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
238
246
|
* @param {Omit<ICreateStreamSolanaExt, "sender"> & { senderPublicKey: PublicKey }} extParams - Transaction configuration including sender public key, native token handling, and custom instructions
|
|
239
247
|
* @returns Transaction and metadata information
|
|
240
248
|
*/
|
|
241
|
-
buildCreateTransaction(data: ICreateStreamData, extParams:
|
|
242
|
-
senderPublicKey: PublicKey;
|
|
243
|
-
}): Promise<{
|
|
249
|
+
buildCreateTransaction(data: ICreateStreamData, extParams: IPrepareCreateStreamSolanaExt): Promise<{
|
|
244
250
|
tx: VersionedTransaction;
|
|
245
251
|
metadataId: string;
|
|
246
252
|
metadata?: Keypair;
|
|
@@ -255,16 +261,16 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
255
261
|
* @returns Create result
|
|
256
262
|
*/
|
|
257
263
|
create(data: ICreateStreamData, extParams: ICreateStreamSolanaExt): Promise<ICreateResult>;
|
|
258
|
-
prepareCreateInstructions(streamParams: ICreateStreamData, extParams:
|
|
259
|
-
prepareCreateAlignedUnlockInstructions(streamParams: ICreateAlignedStreamData, extParams:
|
|
264
|
+
prepareCreateInstructions(streamParams: ICreateStreamData, extParams: IPrepareCreateStreamSolanaExt): Promise<ICreateStreamInstructions>;
|
|
265
|
+
prepareCreateAlignedUnlockInstructions(streamParams: ICreateAlignedStreamData, extParams: IPrepareCreateStreamSolanaExt): Promise<ICreateStreamInstructions>;
|
|
260
266
|
/**
|
|
261
267
|
* Creates a new stream/vesting contract.
|
|
262
268
|
* All fees are paid by sender (escrow metadata account rent, escrow token account rent, recipient's associated token account rent, Streamflow's service fee).
|
|
263
269
|
* @param {ICreateStreamData} data - Stream parameters including recipient, token, amount, schedule, and permissions
|
|
264
|
-
* @param {
|
|
270
|
+
* @param {IPrepareCreateStreamSolanaExt} extParams - Transaction configuration including sender wallet, metadata keys, and compute settings
|
|
265
271
|
* @returns Create stream instructions
|
|
266
272
|
*/
|
|
267
|
-
prepareCreateStreamInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canPause, canUpdateRate, canTopup, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, tokenProgramId: streamTokenProgramId, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }:
|
|
273
|
+
prepareCreateStreamInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canPause, canUpdateRate, canTopup, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, tokenProgramId: streamTokenProgramId, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamSolanaExt): Promise<ICreateStreamInstructions>;
|
|
268
274
|
/**
|
|
269
275
|
* Creates a new stream/vesting contract using unchecked instruction.
|
|
270
276
|
*
|
|
@@ -282,7 +288,7 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
282
288
|
/**
|
|
283
289
|
* Create Transaction instructions for `createUnchecked`
|
|
284
290
|
*/
|
|
285
|
-
prepareCreateUncheckedInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canTopup, canUpdateRate, canPause, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }:
|
|
291
|
+
prepareCreateUncheckedInstructions({ recipient, tokenId: mint, start, amount: depositedAmount, period, cliff, cliffAmount, amountPerPeriod, name, canTopup, canUpdateRate, canPause, cancelableBySender, cancelableByRecipient, transferableBySender, transferableByRecipient, automaticWithdrawal, withdrawalFrequency, partner, }: ICreateStreamData, { sender, metadataPubKeys, isNative, computePrice, computeLimit }: IPrepareCreateStreamSolanaExt): Promise<{
|
|
286
292
|
ixs: TransactionInstruction[];
|
|
287
293
|
metadata: Keypair | undefined;
|
|
288
294
|
metadataPubKey: PublicKey;
|
|
@@ -291,12 +297,10 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
291
297
|
* Builds transaction instructions for creating multiple stream/vesting contracts without creating transactions.
|
|
292
298
|
* All fees are paid by sender (escrow metadata account rent, escrow token account rent, recipient's associated token account rent, Streamflow's service fee).
|
|
293
299
|
* @param {ICreateMultipleStreamData} data - Stream base parameters and array of recipients with individual amounts and settings
|
|
294
|
-
* @param {
|
|
300
|
+
* @param {IPrepareCreateStreamSolanaExt} extParams - Transaction configuration including sender public key, native token handling, and custom instructions
|
|
295
301
|
* @returns Create multiple transaction instructions
|
|
296
302
|
*/
|
|
297
|
-
buildCreateMultipleTransactionInstructions(data: ICreateMultipleStreamData, extParams:
|
|
298
|
-
senderPublicKey: PublicKey;
|
|
299
|
-
}): Promise<{
|
|
303
|
+
buildCreateMultipleTransactionInstructions(data: ICreateMultipleStreamData, extParams: IPrepareCreateStreamSolanaExt): Promise<{
|
|
300
304
|
instructionsBatch: {
|
|
301
305
|
ixs: TransactionInstruction[];
|
|
302
306
|
metadata: Keypair | undefined;
|
|
@@ -329,12 +333,10 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
329
333
|
* ```
|
|
330
334
|
*
|
|
331
335
|
* @param {ICreateMultipleStreamData} data - Stream base parameters and array of recipients with individual amounts and settings
|
|
332
|
-
* @param {
|
|
336
|
+
* @param {IPrepareCreateStreamSolanaExt} extParams - Transaction configuration including sender public key, native token handling, and custom instructions
|
|
333
337
|
* @returns Multiple transaction information
|
|
334
338
|
*/
|
|
335
|
-
buildCreateMultipleTransactions(data: ICreateMultipleStreamData, extParams:
|
|
336
|
-
senderPublicKey: PublicKey;
|
|
337
|
-
}): Promise<{
|
|
339
|
+
buildCreateMultipleTransactions(data: ICreateMultipleStreamData, extParams: IPrepareCreateStreamSolanaExt): Promise<{
|
|
338
340
|
transactions: BatchItem[];
|
|
339
341
|
metadatas: string[];
|
|
340
342
|
metadataToRecipient: MetadataRecipientHashMap;
|
|
@@ -372,10 +374,10 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
372
374
|
/**
|
|
373
375
|
* Creates Transaction Instructions for withdrawal
|
|
374
376
|
* @param {IWithdrawData} withdrawData - Withdrawal parameters including stream ID and amount to withdraw
|
|
375
|
-
* @param {
|
|
377
|
+
* @param {IPrepareStreamSolanaExt} extParams - Transaction configuration including invoker wallet address, token account validation, and compute settings
|
|
376
378
|
* @returns Transaction instructions
|
|
377
379
|
*/
|
|
378
|
-
prepareWithdrawInstructions({ id, amount }: IWithdrawData, { invoker, checkTokenAccounts, computePrice, computeLimit }:
|
|
380
|
+
prepareWithdrawInstructions({ id, amount }: IWithdrawData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamSolanaExt): Promise<TransactionInstruction[]>;
|
|
379
381
|
/**
|
|
380
382
|
* Attempts canceling the specified stream.
|
|
381
383
|
* @param {ICancelData} cancelData - Cancellation parameters including stream ID
|
|
@@ -386,24 +388,24 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
386
388
|
/**
|
|
387
389
|
* Creates Transaction Instructions for cancel
|
|
388
390
|
* @param {ICancelData} cancelData - Cancellation parameters including stream ID
|
|
389
|
-
* @param {
|
|
391
|
+
* @param {IPrepareStreamSolanaExt} extParams - Transaction configuration including invoker wallet address, token account validation, and compute settings
|
|
390
392
|
* @returns Transaction instructions
|
|
391
393
|
*/
|
|
392
|
-
prepareCancelInstructions(cancelData: ICancelData, extParams:
|
|
394
|
+
prepareCancelInstructions(cancelData: ICancelData, extParams: IPrepareStreamSolanaExt): Promise<TransactionInstruction[]>;
|
|
393
395
|
/**
|
|
394
396
|
* Creates Transaction Instructions for cancel
|
|
395
397
|
* @param {ICancelData} cancelData - Cancellation parameters including stream ID
|
|
396
|
-
* @param {
|
|
398
|
+
* @param {IPrepareStreamSolanaExt} extParams - Transaction configuration including invoker wallet, token account validation, and compute settings
|
|
397
399
|
* @returns Transaction instructions
|
|
398
400
|
*/
|
|
399
|
-
prepareCancelAlignedUnlockInstructions({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }:
|
|
401
|
+
prepareCancelAlignedUnlockInstructions({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamSolanaExt): Promise<TransactionInstruction[]>;
|
|
400
402
|
/**
|
|
401
403
|
* Creates Transaction Instructions for cancel
|
|
402
404
|
* @param {ICancelData} cancelData - Cancellation parameters including stream ID
|
|
403
|
-
* @param {
|
|
405
|
+
* @param {IPrepareStreamSolanaExt} extParams - Transaction configuration including invoker wallet, token account validation, and compute settings
|
|
404
406
|
* @returns Transaction instructions
|
|
405
407
|
*/
|
|
406
|
-
prepareCancelStreamInstructions({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }:
|
|
408
|
+
prepareCancelStreamInstructions({ id }: ICancelData, { invoker, checkTokenAccounts, computePrice, computeLimit }: IPrepareStreamSolanaExt): Promise<TransactionInstruction[]>;
|
|
407
409
|
/**
|
|
408
410
|
* Attempts changing the stream/vesting contract's recipient (effectively transferring the stream/vesting contract).
|
|
409
411
|
* Potential associated token account rent fee (to make it rent-exempt) is paid by the transaction initiator.
|
|
@@ -416,10 +418,10 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
416
418
|
* Attempts changing the stream/vesting contract's recipient (effectively transferring the stream/vesting contract).
|
|
417
419
|
* Potential associated token account rent fee (to make it rent-exempt) is paid by the transaction initiator.
|
|
418
420
|
* @param {ITransferData} transferData - Transfer parameters including stream ID and new recipient address
|
|
419
|
-
* @param {
|
|
421
|
+
* @param {IPrepareStreamSolanaExt} extParams - Transaction configuration including invoker wallet and compute settings
|
|
420
422
|
* @returns Transaction instructions
|
|
421
423
|
*/
|
|
422
|
-
prepareTransferInstructions({ id, newRecipient }: ITransferData, { invoker, computePrice, computeLimit }:
|
|
424
|
+
prepareTransferInstructions({ id, newRecipient }: ITransferData, { invoker, computePrice, computeLimit }: IPrepareStreamSolanaExt): Promise<TransactionInstruction[]>;
|
|
423
425
|
/**
|
|
424
426
|
* Tops up stream account with specified amount.
|
|
425
427
|
* @param {ITopUpData} topupData - Top-up parameters including stream ID and amount to add
|
|
@@ -470,10 +472,10 @@ declare class SolanaStreamClient extends BaseStreamClient {
|
|
|
470
472
|
/**
|
|
471
473
|
* Create Transaction instructions for update
|
|
472
474
|
* @param {IUpdateData} data - Update parameters including stream ID and new settings
|
|
473
|
-
* @param {
|
|
475
|
+
* @param {IPrepareStreamSolanaExt} extParams - Transaction configuration including invoker wallet and compute settings
|
|
474
476
|
* @returns Transaction instructions
|
|
475
477
|
*/
|
|
476
|
-
prepareUpdateInstructions(data: IUpdateData, { invoker, computePrice, computeLimit }:
|
|
478
|
+
prepareUpdateInstructions(data: IUpdateData, { invoker, computePrice, computeLimit }: IPrepareStreamSolanaExt): Promise<TransactionInstruction[]>;
|
|
477
479
|
/**
|
|
478
480
|
* Gets fees for a given address
|
|
479
481
|
* @param {IGetFeesData} getData - Query parameters containing the partner address to check for custom fees
|
|
@@ -813,6 +815,8 @@ type index_ICreateSolanaExt = ICreateSolanaExt;
|
|
|
813
815
|
type index_ICreateStreamInstructions = ICreateStreamInstructions;
|
|
814
816
|
type index_ICreateStreamSolanaExt = ICreateStreamSolanaExt;
|
|
815
817
|
type index_IInteractStreamSolanaExt = IInteractStreamSolanaExt;
|
|
818
|
+
type index_IPrepareCreateStreamSolanaExt = IPrepareCreateStreamSolanaExt;
|
|
819
|
+
type index_IPrepareStreamSolanaExt = IPrepareStreamSolanaExt;
|
|
816
820
|
type index_ISearchStreams = ISearchStreams;
|
|
817
821
|
type index_ITopUpStreamSolanaExt = ITopUpStreamSolanaExt;
|
|
818
822
|
type index_ITransactionSolanaExtWithInstructions = ITransactionSolanaExtWithInstructions;
|
|
@@ -839,7 +843,7 @@ declare const index_transferStreamInstruction: typeof transferStreamInstruction;
|
|
|
839
843
|
declare const index_updateStreamInstruction: typeof updateStreamInstruction;
|
|
840
844
|
declare const index_withdrawStreamInstruction: typeof withdrawStreamInstruction;
|
|
841
845
|
declare namespace index {
|
|
842
|
-
export { type index_Account as Account, index_AlignedContract as AlignedContract, type index_AlignedUnlocksContract as AlignedUnlocksContract, type index_BatchItem as BatchItem, type index_BatchItemError as BatchItemError, type index_BatchItemResult as BatchItemResult, type index_BatchItemSuccess as BatchItemSuccess, type index_ChangeOracleParams as ChangeOracleParams, type index_ClientCreationOptions as ClientCreationOptions, index_Contract as Contract, index_ContractError as ContractError, type index_CreateParams as CreateParams, type index_CreateTestOracleParams as CreateTestOracleParams, type index_DecodedStream as DecodedStream, index_IChain as IChain, index_ICluster as ICluster, type index_ICreateSolanaExt as ICreateSolanaExt, type index_ICreateStreamInstructions as ICreateStreamInstructions, type index_ICreateStreamSolanaExt as ICreateStreamSolanaExt, type index_IInteractStreamSolanaExt as IInteractStreamSolanaExt, type index_ISearchStreams as ISearchStreams, type index_ITopUpStreamSolanaExt as ITopUpStreamSolanaExt, type index_ITransactionSolanaExtWithInstructions as ITransactionSolanaExtWithInstructions, type index_InstructionGenerator as InstructionGenerator, type index_MetadataRecipientHashMap as MetadataRecipientHashMap, type index_OracleType as OracleType, index_SolanaStreamClient as SolanaStreamClient, type index_TestOracle as TestOracle, type index_UpdateTestOracleParams as UpdateTestOracleParams, index_cancelStreamInstruction as cancelStreamInstruction, index_constants as constants, index_createStreamInstruction as createStreamInstruction, index_createUncheckedStreamInstruction as createUncheckedStreamInstruction, index_decodeStream as decodeStream, index_deriveContractPDA as deriveContractPDA, index_deriveEscrowPDA as deriveEscrowPDA, index_deriveTestOraclePDA as deriveTestOraclePDA, index_extractSolanaErrorCode as extractSolanaErrorCode, index_sendAndConfirmStreamRawTransaction as sendAndConfirmStreamRawTransaction, index_signAllTransactionWithRecipients as signAllTransactionWithRecipients, _default as timelockIDL, index_topupStreamInstruction as topupStreamInstruction, index_transferStreamInstruction as transferStreamInstruction, index_updateStreamInstruction as updateStreamInstruction, index_withdrawStreamInstruction as withdrawStreamInstruction };
|
|
846
|
+
export { type index_Account as Account, index_AlignedContract as AlignedContract, type index_AlignedUnlocksContract as AlignedUnlocksContract, type index_BatchItem as BatchItem, type index_BatchItemError as BatchItemError, type index_BatchItemResult as BatchItemResult, type index_BatchItemSuccess as BatchItemSuccess, type index_ChangeOracleParams as ChangeOracleParams, type index_ClientCreationOptions as ClientCreationOptions, index_Contract as Contract, index_ContractError as ContractError, type index_CreateParams as CreateParams, type index_CreateTestOracleParams as CreateTestOracleParams, type index_DecodedStream as DecodedStream, index_IChain as IChain, index_ICluster as ICluster, type index_ICreateSolanaExt as ICreateSolanaExt, type index_ICreateStreamInstructions as ICreateStreamInstructions, type index_ICreateStreamSolanaExt as ICreateStreamSolanaExt, type index_IInteractStreamSolanaExt as IInteractStreamSolanaExt, type index_IPrepareCreateStreamSolanaExt as IPrepareCreateStreamSolanaExt, type index_IPrepareStreamSolanaExt as IPrepareStreamSolanaExt, type index_ISearchStreams as ISearchStreams, type index_ITopUpStreamSolanaExt as ITopUpStreamSolanaExt, type index_ITransactionSolanaExtWithInstructions as ITransactionSolanaExtWithInstructions, type index_InstructionGenerator as InstructionGenerator, type index_MetadataRecipientHashMap as MetadataRecipientHashMap, type index_OracleType as OracleType, index_SolanaStreamClient as SolanaStreamClient, type index_TestOracle as TestOracle, type index_UpdateTestOracleParams as UpdateTestOracleParams, index_cancelStreamInstruction as cancelStreamInstruction, index_constants as constants, index_createStreamInstruction as createStreamInstruction, index_createUncheckedStreamInstruction as createUncheckedStreamInstruction, index_decodeStream as decodeStream, index_deriveContractPDA as deriveContractPDA, index_deriveEscrowPDA as deriveEscrowPDA, index_deriveTestOraclePDA as deriveTestOraclePDA, index_extractSolanaErrorCode as extractSolanaErrorCode, index_sendAndConfirmStreamRawTransaction as sendAndConfirmStreamRawTransaction, index_signAllTransactionWithRecipients as signAllTransactionWithRecipients, _default as timelockIDL, index_topupStreamInstruction as topupStreamInstruction, index_transferStreamInstruction as transferStreamInstruction, index_updateStreamInstruction as updateStreamInstruction, index_withdrawStreamInstruction as withdrawStreamInstruction };
|
|
843
847
|
}
|
|
844
848
|
|
|
845
|
-
export { type ICreateSolanaExt as $, ALIGNED_PRECISION_FACTOR_POW as A, signAllTransactionWithRecipients as B, CREATE_PARAMS_PADDING as C, DEFAULT_STREAMFLOW_FEE as D, ESCROW_SEED as E, FEE_ORACLE_PUBLIC_KEY as F, sendAndConfirmStreamRawTransaction as G, extractSolanaErrorCode as H, type ICreateStreamSolanaExt as I, deriveContractPDA as J, deriveEscrowPDA as K, deriveTestOraclePDA as L, type AlignedUnlocksContract as M, type OracleType as N, ORIGINAL_CONTRACT_SENDER_OFFSET as O, PROGRAM_ID as P, type TestOracle as Q, type CreateParams as R, SolanaStreamClient as S, TX_FINALITY_CONFIRMED as T, type ChangeOracleParams as U, type CreateTestOracleParams as V, WITHDRAWOR_PUBLIC_KEY as W, type UpdateTestOracleParams as X, type ISearchStreams as Y, type Account as Z, _default as _, type IInteractStreamSolanaExt as a, type ITransactionSolanaExtWithInstructions as a0, type
|
|
849
|
+
export { type ICreateSolanaExt as $, ALIGNED_PRECISION_FACTOR_POW as A, signAllTransactionWithRecipients as B, CREATE_PARAMS_PADDING as C, DEFAULT_STREAMFLOW_FEE as D, ESCROW_SEED as E, FEE_ORACLE_PUBLIC_KEY as F, sendAndConfirmStreamRawTransaction as G, extractSolanaErrorCode as H, type ICreateStreamSolanaExt as I, deriveContractPDA as J, deriveEscrowPDA as K, deriveTestOraclePDA as L, type AlignedUnlocksContract as M, type OracleType as N, ORIGINAL_CONTRACT_SENDER_OFFSET as O, PROGRAM_ID as P, type TestOracle as Q, type CreateParams as R, SolanaStreamClient as S, TX_FINALITY_CONFIRMED as T, type ChangeOracleParams as U, type CreateTestOracleParams as V, WITHDRAWOR_PUBLIC_KEY as W, type UpdateTestOracleParams as X, type ISearchStreams as Y, type Account as Z, _default as _, type IInteractStreamSolanaExt as a, type ITransactionSolanaExtWithInstructions as a0, type IPrepareCreateStreamSolanaExt as a1, type IPrepareStreamSolanaExt as a2, type ICreateStreamInstructions as a3, Contract as a4, AlignedContract as a5, type DecodedStream as a6, type MetadataRecipientHashMap as a7, type BatchItem as a8, type BatchItemSuccess as a9, type BatchItemError as aa, type BatchItemResult as ab, type InstructionGenerator as ac, createStreamInstruction as ad, createUncheckedStreamInstruction as ae, withdrawStreamInstruction as af, updateStreamInstruction as ag, cancelStreamInstruction as ah, transferStreamInstruction as ai, topupStreamInstruction as aj, type ITopUpStreamSolanaExt as b, STREAM_STRUCT_OFFSET_SENDER as c, STREAM_STRUCT_OFFSET_RECIPIENT as d, STREAM_STRUCT_OFFSET_MINT as e, STREAM_STRUCT_OFFSET_CLOSED as f, STREAM_STRUCT_OFFSETS as g, ALIGNED_UNLOCKS_PROGRAM_ID as h, index as i, ALIGNED_COMPUTE_LIMIT as j, CONTRACT_DISCRIMINATOR as k, TEST_ORACLE_DISCRIMINATOR as l, CONTRACT_SEED as m, TEST_ORACLE_SEED as n, PARTNER_ORACLE_PROGRAM_ID as o, STREAMFLOW_TREASURY_PUBLIC_KEY as p, AIRDROP_TEST_TOKEN as q, FEES_METADATA_SEED as r, AIRDROP_AMOUNT as s, PARTNER_SCHEMA as t, PARTNERS_SCHEMA as u, SOLANA_ERROR_MATCH_REGEX as v, SOLANA_ERROR_MAP as w, constants as x, type ClientCreationOptions as y, decodeStream as z };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { A as AptosStreamClient, I as ICreateStreamAptosExt, a as ITransactionAp
|
|
|
2
2
|
export { i as StreamflowAptos } from './index-D54wSYym.js';
|
|
3
3
|
import { E as EvmStreamClient } from './index-elpYUBph.js';
|
|
4
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-
|
|
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-
|
|
5
|
+
import { S as SolanaStreamClient, I as ICreateStreamSolanaExt, a as IInteractStreamSolanaExt, b as ITopUpStreamSolanaExt } from './index-BNQVJtIE.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-BNQVJtIE.js';
|
|
7
7
|
import { S as SuiStreamClient } from './index-DrzqsoIB.js';
|
|
8
8
|
export { i as StreamflowSui } from './index-DrzqsoIB.js';
|
|
9
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';
|