@solana/web3.js 1.88.0 → 1.89.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/lib/index.iife.js CHANGED
@@ -12405,20 +12405,25 @@ var solanaWeb3 = (function (exports) {
12405
12405
  // For backward compatibility; an unfortunate consequence of being
12406
12406
  // forced to over-export types by the documentation generator.
12407
12407
  // See https://github.com/solana-labs/solana/pull/25820
12408
+
12408
12409
  /**
12409
12410
  * Blockhash-based transactions have a lifetime that are defined by
12410
12411
  * the blockhash they include. Any transaction whose blockhash is
12411
12412
  * too old will be rejected.
12412
12413
  */
12414
+
12413
12415
  /**
12414
12416
  * Use these options to construct a durable nonce transaction.
12415
12417
  */
12418
+
12416
12419
  /**
12417
12420
  * Nonce information to be used to build an offline Transaction.
12418
12421
  */
12422
+
12419
12423
  /**
12420
12424
  * @internal
12421
12425
  */
12426
+
12422
12427
  /**
12423
12428
  * Transaction class
12424
12429
  */
@@ -18051,6 +18056,7 @@ var solanaWeb3 = (function (exports) {
18051
18056
  */
18052
18057
 
18053
18058
  // Deprecated as of v1.5.5
18059
+
18054
18060
  /**
18055
18061
  * A subset of Commitment levels, which are at least optimistically confirmed
18056
18062
  * <pre>
@@ -18058,6 +18064,7 @@ var solanaWeb3 = (function (exports) {
18058
18064
  * 'finalized': Query the most recent block which has been finalized by the cluster
18059
18065
  * </pre>
18060
18066
  */
18067
+
18061
18068
  /**
18062
18069
  * Filter for largest accounts query
18063
18070
  * <pre>
@@ -18065,70 +18072,92 @@ var solanaWeb3 = (function (exports) {
18065
18072
  * 'nonCirculating': Return the largest accounts that are not part of the circulating supply
18066
18073
  * </pre>
18067
18074
  */
18075
+
18068
18076
  /**
18069
18077
  * Configuration object for changing `getAccountInfo` query behavior
18070
18078
  */
18079
+
18071
18080
  /**
18072
18081
  * Configuration object for changing `getBalance` query behavior
18073
18082
  */
18083
+
18074
18084
  /**
18075
18085
  * Configuration object for changing `getBlock` query behavior
18076
18086
  */
18087
+
18077
18088
  /**
18078
18089
  * Configuration object for changing `getBlock` query behavior
18079
18090
  */
18091
+
18080
18092
  /**
18081
18093
  * Configuration object for changing `getStakeMinimumDelegation` query behavior
18082
18094
  */
18095
+
18083
18096
  /**
18084
18097
  * Configuration object for changing `getBlockHeight` query behavior
18085
18098
  */
18099
+
18086
18100
  /**
18087
18101
  * Configuration object for changing `getEpochInfo` query behavior
18088
18102
  */
18103
+
18089
18104
  /**
18090
18105
  * Configuration object for changing `getInflationReward` query behavior
18091
18106
  */
18107
+
18092
18108
  /**
18093
18109
  * Configuration object for changing `getLatestBlockhash` query behavior
18094
18110
  */
18111
+
18095
18112
  /**
18096
18113
  * Configuration object for changing `isBlockhashValid` query behavior
18097
18114
  */
18115
+
18098
18116
  /**
18099
18117
  * Configuration object for changing `getSlot` query behavior
18100
18118
  */
18119
+
18101
18120
  /**
18102
18121
  * Configuration object for changing `getSlotLeader` query behavior
18103
18122
  */
18123
+
18104
18124
  /**
18105
18125
  * Configuration object for changing `getTransaction` query behavior
18106
18126
  */
18127
+
18107
18128
  /**
18108
18129
  * Configuration object for changing `getTransaction` query behavior
18109
18130
  */
18131
+
18110
18132
  /**
18111
18133
  * Configuration object for changing `getLargestAccounts` query behavior
18112
18134
  */
18135
+
18113
18136
  /**
18114
18137
  * Configuration object for changing `getSupply` request behavior
18115
18138
  */
18139
+
18116
18140
  /**
18117
18141
  * Configuration object for changing query behavior
18118
18142
  */
18143
+
18119
18144
  /**
18120
18145
  * Information describing a cluster node
18121
18146
  */
18147
+
18122
18148
  /**
18123
18149
  * Information describing a vote account
18124
18150
  */
18151
+
18125
18152
  /**
18126
18153
  * A collection of cluster vote accounts
18127
18154
  */
18155
+
18128
18156
  /**
18129
18157
  * Network Inflation
18130
18158
  * (see https://docs.solana.com/implemented-proposals/ed_overview)
18131
18159
  */
18160
+
18132
18161
  const GetInflationGovernorResult = type({
18133
18162
  foundation: number(),
18134
18163
  foundationTerm: number(),
@@ -19856,7 +19885,9 @@ var solanaWeb3 = (function (exports) {
19856
19885
  return res.result;
19857
19886
  }
19858
19887
 
19859
- /** @deprecated Instead, call `confirmTransaction` and pass in {@link TransactionConfirmationStrategy} */ // eslint-disable-next-line no-dupe-class-members
19888
+ /** @deprecated Instead, call `confirmTransaction` and pass in {@link TransactionConfirmationStrategy} */
19889
+ // eslint-disable-next-line no-dupe-class-members
19890
+
19860
19891
  // eslint-disable-next-line no-dupe-class-members
19861
19892
  async confirmTransaction(strategy, commitment) {
19862
19893
  let rawSignature;
@@ -20651,21 +20682,28 @@ var solanaWeb3 = (function (exports) {
20651
20682
  /**
20652
20683
  * @deprecated Instead, call `getBlock` using a `GetVersionedBlockConfig` by
20653
20684
  * setting the `maxSupportedTransactionVersion` property.
20654
- */ // eslint-disable-next-line no-dupe-class-members
20685
+ */
20686
+ // eslint-disable-next-line no-dupe-class-members
20687
+
20655
20688
  /**
20656
20689
  * @deprecated Instead, call `getBlock` using a `GetVersionedBlockConfig` by
20657
20690
  * setting the `maxSupportedTransactionVersion` property.
20658
20691
  */
20659
20692
  // eslint-disable-next-line no-dupe-class-members
20693
+
20660
20694
  /**
20661
20695
  * Fetch a processed block from the cluster.
20662
20696
  */
20663
20697
  // eslint-disable-next-line no-dupe-class-members
20698
+
20664
20699
  // eslint-disable-next-line no-dupe-class-members
20700
+
20665
20701
  // eslint-disable-next-line no-dupe-class-members
20702
+
20666
20703
  /**
20667
20704
  * Fetch a processed block from the cluster.
20668
- */ // eslint-disable-next-line no-dupe-class-members
20705
+ */
20706
+ // eslint-disable-next-line no-dupe-class-members
20669
20707
  async getBlock(slot, rawConfig) {
20670
20708
  const {
20671
20709
  commitment,
@@ -20804,10 +20842,13 @@ var solanaWeb3 = (function (exports) {
20804
20842
 
20805
20843
  /**
20806
20844
  * Fetch a confirmed or finalized transaction from the cluster.
20807
- */ // eslint-disable-next-line no-dupe-class-members
20845
+ */
20846
+ // eslint-disable-next-line no-dupe-class-members
20847
+
20808
20848
  /**
20809
20849
  * Fetch a confirmed or finalized transaction from the cluster.
20810
- */ // eslint-disable-next-line no-dupe-class-members
20850
+ */
20851
+ // eslint-disable-next-line no-dupe-class-members
20811
20852
  async getTransaction(signature, rawConfig) {
20812
20853
  const {
20813
20854
  commitment,
@@ -20886,12 +20927,15 @@ var solanaWeb3 = (function (exports) {
20886
20927
  * Fetch transaction details for a batch of confirmed transactions.
20887
20928
  * Similar to {@link getParsedTransactions} but returns a {@link
20888
20929
  * VersionedTransactionResponse}.
20889
- */ // eslint-disable-next-line no-dupe-class-members
20930
+ */
20931
+ // eslint-disable-next-line no-dupe-class-members
20932
+
20890
20933
  /**
20891
20934
  * Fetch transaction details for a batch of confirmed transactions.
20892
20935
  * Similar to {@link getParsedTransactions} but returns a {@link
20893
20936
  * VersionedTransactionResponse}.
20894
- */ // eslint-disable-next-line no-dupe-class-members
20937
+ */
20938
+ // eslint-disable-next-line no-dupe-class-members
20895
20939
  async getTransactions(signatures, commitmentOrConfig) {
20896
20940
  const {
20897
20941
  commitment,
@@ -21317,10 +21361,13 @@ var solanaWeb3 = (function (exports) {
21317
21361
 
21318
21362
  /**
21319
21363
  * Simulate a transaction
21320
- */ // eslint-disable-next-line no-dupe-class-members
21364
+ */
21365
+ // eslint-disable-next-line no-dupe-class-members
21366
+
21321
21367
  /**
21322
21368
  * Simulate a transaction
21323
- */ // eslint-disable-next-line no-dupe-class-members
21369
+ */
21370
+ // eslint-disable-next-line no-dupe-class-members
21324
21371
  async simulateTransaction(transactionOrMessage, configOrSigners, includeAccounts) {
21325
21372
  if ('message' in transactionOrMessage) {
21326
21373
  const versionedTx = transactionOrMessage;
@@ -21372,7 +21419,6 @@ var solanaWeb3 = (function (exports) {
21372
21419
  if (!transaction.signature) {
21373
21420
  throw new Error('!signature'); // should never happen
21374
21421
  }
21375
-
21376
21422
  const signature = transaction.signature.toString('base64');
21377
21423
  if (!this._blockhashInfo.simulatedSignatures.includes(signature) && !this._blockhashInfo.transactionSignatures.includes(signature)) {
21378
21424
  // The signature of this transaction has not been seen before with the
@@ -21433,10 +21479,13 @@ var solanaWeb3 = (function (exports) {
21433
21479
 
21434
21480
  /**
21435
21481
  * Send a signed transaction
21436
- */ // eslint-disable-next-line no-dupe-class-members
21482
+ */
21483
+ // eslint-disable-next-line no-dupe-class-members
21484
+
21437
21485
  /**
21438
21486
  * Sign and send a transaction
21439
- */ // eslint-disable-next-line no-dupe-class-members
21487
+ */
21488
+ // eslint-disable-next-line no-dupe-class-members
21440
21489
  async sendTransaction(transaction, signersOrOptions, options) {
21441
21490
  if ('version' in transaction) {
21442
21491
  if (signersOrOptions && Array.isArray(signersOrOptions)) {
@@ -21461,7 +21510,6 @@ var solanaWeb3 = (function (exports) {
21461
21510
  if (!transaction.signature) {
21462
21511
  throw new Error('!signature'); // should never happen
21463
21512
  }
21464
-
21465
21513
  const signature = transaction.signature.toString('base64');
21466
21514
  if (!this._blockhashInfo.transactionSignatures.includes(signature)) {
21467
21515
  // The signature of this transaction has not been seen before with the
@@ -21845,7 +21893,6 @@ var solanaWeb3 = (function (exports) {
21845
21893
  args) {
21846
21894
  const clientSubscriptionId = this._nextClientSubscriptionId++;
21847
21895
  const hash = fastStableStringify$1([subscriptionConfig.method, args], true /* isArrayProp */);
21848
-
21849
21896
  const existingSubscription = this._subscriptionsByHash[hash];
21850
21897
  if (existingSubscription === undefined) {
21851
21898
  this._subscriptionsByHash[hash] = {
@@ -21928,7 +21975,6 @@ var solanaWeb3 = (function (exports) {
21928
21975
  'base64' /* encoding */, filters ? {
21929
21976
  filters: filters
21930
21977
  } : undefined /* extra */);
21931
-
21932
21978
  return this._makeSubscription({
21933
21979
  callback,
21934
21980
  method: 'programSubscribe',
@@ -21953,7 +21999,6 @@ var solanaWeb3 = (function (exports) {
21953
21999
  mentions: [filter.toString()]
21954
22000
  } : filter], commitment || this._commitment || 'finalized' // Apply connection/server default.
21955
22001
  );
21956
-
21957
22002
  return this._makeSubscription({
21958
22003
  callback,
21959
22004
  method: 'logsSubscribe',
@@ -22134,7 +22179,6 @@ var solanaWeb3 = (function (exports) {
22134
22179
  onSignature(signature, callback, commitment) {
22135
22180
  const args = this._buildArgs([signature], commitment || this._commitment || 'finalized' // Apply connection/server default.
22136
22181
  );
22137
-
22138
22182
  const clientSubscriptionId = this._makeSubscription({
22139
22183
  callback: (notification, context) => {
22140
22184
  if (notification.type === 'status') {
@@ -22173,7 +22217,6 @@ var solanaWeb3 = (function (exports) {
22173
22217
  ...options,
22174
22218
  commitment: options && options.commitment || this._commitment || 'finalized' // Apply connection/server default.
22175
22219
  };
22176
-
22177
22220
  const args = this._buildArgs([signature], commitment, undefined /* encoding */, extra);
22178
22221
  const clientSubscriptionId = this._makeSubscription({
22179
22222
  callback: (notification, context) => {
@@ -25732,7 +25775,9 @@ var solanaWeb3 = (function (exports) {
25732
25775
  /**
25733
25776
  * @deprecated Calling `sendAndConfirmRawTransaction()` without a `confirmationStrategy`
25734
25777
  * is no longer supported and will be removed in a future version.
25735
- */ // eslint-disable-next-line no-redeclare
25778
+ */
25779
+ // eslint-disable-next-line no-redeclare
25780
+
25736
25781
  // eslint-disable-next-line no-redeclare
25737
25782
  async function sendAndConfirmRawTransaction(connection, rawTransaction, confirmationStrategyOrConfirmOptions, maybeConfirmOptions) {
25738
25783
  let confirmationStrategy;