@solana/web3.js 1.70.3 → 1.72.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
@@ -12324,12 +12324,14 @@ var solanaWeb3 = (function (exports) {
12324
12324
  this.signatures[index].signature = buffer.Buffer.from(signature);
12325
12325
  }
12326
12326
  /**
12327
- * Verify signatures of a complete, signed Transaction
12327
+ * Verify signatures of a Transaction
12328
+ * Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
12329
+ * If no boolean is provided, we expect a fully signed Transaction by default.
12328
12330
  */
12329
12331
 
12330
12332
 
12331
- verifySignatures() {
12332
- return this._verifySignatures(this.serializeMessage(), true);
12333
+ verifySignatures(requireAllSignatures) {
12334
+ return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
12333
12335
  }
12334
12336
  /**
12335
12337
  * @internal
@@ -17440,6 +17442,16 @@ var solanaWeb3 = (function (exports) {
17440
17442
  amount: number(),
17441
17443
  postBalance: number()
17442
17444
  }))));
17445
+
17446
+ /**
17447
+ * Expected JSON RPC response for the "getInflationRate" message
17448
+ */
17449
+ const GetInflationRateResult = type({
17450
+ total: number(),
17451
+ validator: number(),
17452
+ foundation: number(),
17453
+ epoch: number()
17454
+ });
17443
17455
  /**
17444
17456
  * Information about the current epoch
17445
17457
  */
@@ -17643,6 +17655,11 @@ var solanaWeb3 = (function (exports) {
17643
17655
 
17644
17656
 
17645
17657
  const GetInflationGovernorRpcResult = jsonRpcResult(GetInflationGovernorResult);
17658
+ /**
17659
+ * Expected JSON RPC response for the "getInflationRate" message
17660
+ */
17661
+
17662
+ const GetInflationRateRpcResult = jsonRpcResult(GetInflationRateResult);
17646
17663
  /**
17647
17664
  * Expected JSON RPC response for the "getEpochInfo" message
17648
17665
  */
@@ -19593,6 +19610,21 @@ var solanaWeb3 = (function (exports) {
19593
19610
 
19594
19611
  return res.result;
19595
19612
  }
19613
+ /**
19614
+ * Fetch the specific inflation values for the current epoch
19615
+ */
19616
+
19617
+
19618
+ async getInflationRate() {
19619
+ const unsafeRes = await this._rpcRequest('getInflationRate', []);
19620
+ const res = create(unsafeRes, GetInflationRateRpcResult);
19621
+
19622
+ if ('error' in res) {
19623
+ throw new SolanaJSONRPCError(res.error, 'failed to get inflation rate');
19624
+ }
19625
+
19626
+ return res.result;
19627
+ }
19596
19628
  /**
19597
19629
  * Fetch the Epoch Info parameters
19598
19630
  */