@streamflow/common 12.1.1 → 12.2.1-alpha.p361.abedd84

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.
@@ -1,8 +1,8 @@
1
1
  import * as _solana_web3_js from '@solana/web3.js';
2
- import { PublicKey, MemcmpFilter, Connection, TransactionInstruction, VersionedTransaction, AccountInfo, BlockhashWithExpiryBlockHeight, Context, Commitment, Keypair, Transaction, AddressLookupTableAccount, RpcResponseAndContext, SimulatedTransactionResponse, SignatureStatus } from '@solana/web3.js';
2
+ import { PublicKey, MemcmpFilter, Connection, TransactionInstruction, AccountInfo, VersionedTransaction, BlockhashWithExpiryBlockHeight, Context, Commitment, SignatureStatus, Keypair, AddressLookupTableAccount, Transaction, RpcResponseAndContext, SimulatedTransactionResponse } from '@solana/web3.js';
3
3
  import BN from 'bn.js';
4
4
  import PQueue from 'p-queue';
5
- import { Idl, Program, IdlTypes, IdlAccounts } from '@coral-xyz/anchor';
5
+ import { Idl, Program, IdlAccounts, IdlTypes } from '@coral-xyz/anchor';
6
6
  import { Mint } from '@solana/spl-token';
7
7
  import { SignerWalletAdapter } from '@solana/wallet-adapter-base';
8
8
 
@@ -1178,12 +1178,10 @@ declare function executeTransaction(connection: Connection, tx: Transaction | Ve
1178
1178
  * @param connection - Solana client connection
1179
1179
  * @param txs - Transactions
1180
1180
  * @param confirmationParams - Confirmation Params that will be used for execution
1181
- * @param throttleParams - rate or throttler instance to throttle TX sending - to not spam the blockchain too much
1182
- * @param throttleParams.sendRate - rate
1183
- * @param throttleParams.sendThrottler - throttler instance
1181
+ * @param params - execution params: sendRate, sendThrottler, skipSimulation
1184
1182
  * @returns Raw Promise Results - should be handled by the consumer and unwrapped accordingly
1185
1183
  */
1186
- declare function executeMultipleTransactions(connection: Connection, txs: (Transaction | VersionedTransaction)[], confirmationParams: ConfirmationParams, { sendRate, sendThrottler, ...throttlingParams }: ThrottleParams): Promise<PromiseSettledResult<string>[]>;
1184
+ declare function executeMultipleTransactions(connection: Connection, txs: (Transaction | VersionedTransaction)[], confirmationParams: ConfirmationParams, { sendRate, sendThrottler, skipSimulation, ...throttlingParams }: TransactionExecutionParams): Promise<PromiseSettledResult<string>[]>;
1187
1185
  /**
1188
1186
  * Sends and confirm transaction in a loop, constantly re-broadcsting the tx until Blockheight expires.
1189
1187
  * - we add additional 30 bocks to account for validators in an PRC pool divergence
@@ -51,7 +51,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
51
51
 
52
52
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
53
53
  var require_eventemitter3 = __commonJS({
54
- "../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
54
+ "../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports$1, module) {
55
55
  var has = Object.prototype.hasOwnProperty;
56
56
  var prefix2 = "~";
57
57
  function Events() {
@@ -1794,7 +1794,7 @@ async function executeTransaction(connection, tx, confirmationParams, transactio
1794
1794
  }
1795
1795
  return sendAndConfirmTransaction(connection, tx, confirmationParams, transactionExecutionParams);
1796
1796
  }
1797
- async function executeMultipleTransactions(connection, txs, confirmationParams, { sendRate = 1, sendThrottler, ...throttlingParams }) {
1797
+ async function executeMultipleTransactions(connection, txs, confirmationParams, { sendRate = 1, sendThrottler, skipSimulation, ...throttlingParams }) {
1798
1798
  if (!sendThrottler) {
1799
1799
  sendThrottler = buildSendThrottler(sendRate);
1800
1800
  }
@@ -1803,7 +1803,8 @@ async function executeMultipleTransactions(connection, txs, confirmationParams,
1803
1803
  (tx) => executeTransaction(connection, tx, confirmationParams, {
1804
1804
  ...throttlingParams,
1805
1805
  sendRate,
1806
- sendThrottler
1806
+ sendThrottler,
1807
+ skipSimulation
1807
1808
  })
1808
1809
  )
1809
1810
  );