@solana/web3.js 1.42.0 → 1.43.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
@@ -14480,8 +14480,6 @@ var solanaWeb3 = (function (exports) {
14480
14480
  const message = this._compile();
14481
14481
 
14482
14482
  this._partialSign(message, ...uniqueSigners);
14483
-
14484
- this._verifySignatures(message.serialize(), true);
14485
14483
  }
14486
14484
  /**
14487
14485
  * Partially sign a transaction with the specified accounts. All accounts must
@@ -24131,6 +24129,34 @@ var solanaWeb3 = (function (exports) {
24131
24129
  bytes
24132
24130
  };
24133
24131
  }
24132
+ /**
24133
+ * Decode set compute unit limit compute budget instruction and retrieve the instruction params.
24134
+ */
24135
+
24136
+
24137
+ static decodeSetComputeUnitLimit(instruction) {
24138
+ this.checkProgramId(instruction.programId);
24139
+ const {
24140
+ units
24141
+ } = decodeData(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit, instruction.data);
24142
+ return {
24143
+ units
24144
+ };
24145
+ }
24146
+ /**
24147
+ * Decode set compute unit price compute budget instruction and retrieve the instruction params.
24148
+ */
24149
+
24150
+
24151
+ static decodeSetComputeUnitPrice(instruction) {
24152
+ this.checkProgramId(instruction.programId);
24153
+ const {
24154
+ microLamports
24155
+ } = decodeData(COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice, instruction.data);
24156
+ return {
24157
+ microLamports
24158
+ };
24159
+ }
24134
24160
  /**
24135
24161
  * @internal
24136
24162
  */
@@ -24159,6 +24185,14 @@ var solanaWeb3 = (function (exports) {
24159
24185
  RequestHeapFrame: {
24160
24186
  index: 1,
24161
24187
  layout: struct([u8('instruction'), u32('bytes')])
24188
+ },
24189
+ SetComputeUnitLimit: {
24190
+ index: 2,
24191
+ layout: struct([u8('instruction'), u32('units')])
24192
+ },
24193
+ SetComputeUnitPrice: {
24194
+ index: 3,
24195
+ layout: struct([u8('instruction'), u64('microLamports')])
24162
24196
  }
24163
24197
  });
24164
24198
  /**
@@ -24195,6 +24229,28 @@ var solanaWeb3 = (function (exports) {
24195
24229
  });
24196
24230
  }
24197
24231
 
24232
+ static setComputeUnitLimit(params) {
24233
+ const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitLimit;
24234
+ const data = encodeData(type, params);
24235
+ return new TransactionInstruction({
24236
+ keys: [],
24237
+ programId: this.programId,
24238
+ data
24239
+ });
24240
+ }
24241
+
24242
+ static setComputeUnitPrice(params) {
24243
+ const type = COMPUTE_BUDGET_INSTRUCTION_LAYOUTS.SetComputeUnitPrice;
24244
+ const data = encodeData(type, {
24245
+ microLamports: BigInt(params.microLamports)
24246
+ });
24247
+ return new TransactionInstruction({
24248
+ keys: [],
24249
+ programId: this.programId,
24250
+ data
24251
+ });
24252
+ }
24253
+
24198
24254
  }
24199
24255
  ComputeBudgetProgram.programId = new PublicKey('ComputeBudget111111111111111111111111111111');
24200
24256
 
@@ -30142,7 +30198,7 @@ var solanaWeb3 = (function (exports) {
30142
30198
  *
30143
30199
  * @param {Connection} connection
30144
30200
  * @param {Buffer} rawTransaction
30145
- * @param {BlockheightBasedTransactionConfimationStrategy} confirmationStrategy
30201
+ * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
30146
30202
  * @param {ConfirmOptions} [options]
30147
30203
  * @returns {Promise<TransactionSignature>}
30148
30204
  */