@solana/web3.js 1.71.1 → 1.72.1

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
@@ -17467,6 +17467,16 @@ var solanaWeb3 = (function (exports) {
17467
17467
  amount: number(),
17468
17468
  postBalance: number()
17469
17469
  }))));
17470
+
17471
+ /**
17472
+ * Expected JSON RPC response for the "getInflationRate" message
17473
+ */
17474
+ const GetInflationRateResult = type({
17475
+ total: number(),
17476
+ validator: number(),
17477
+ foundation: number(),
17478
+ epoch: number()
17479
+ });
17470
17480
  /**
17471
17481
  * Information about the current epoch
17472
17482
  */
@@ -17670,6 +17680,11 @@ var solanaWeb3 = (function (exports) {
17670
17680
 
17671
17681
 
17672
17682
  const GetInflationGovernorRpcResult = jsonRpcResult(GetInflationGovernorResult);
17683
+ /**
17684
+ * Expected JSON RPC response for the "getInflationRate" message
17685
+ */
17686
+
17687
+ const GetInflationRateRpcResult = jsonRpcResult(GetInflationRateResult);
17673
17688
  /**
17674
17689
  * Expected JSON RPC response for the "getEpochInfo" message
17675
17690
  */
@@ -18352,7 +18367,7 @@ var solanaWeb3 = (function (exports) {
18352
18367
 
18353
18368
  /** @internal */
18354
18369
  const COMMON_HTTP_HEADERS = {
18355
- 'solana-client': `js/${(_process$env$npm_pack = "1.71.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
18370
+ 'solana-client': `js/${(_process$env$npm_pack = "1.72.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
18356
18371
  };
18357
18372
  /**
18358
18373
  * A connection to a fullnode JSON RPC endpoint
@@ -19620,6 +19635,21 @@ var solanaWeb3 = (function (exports) {
19620
19635
 
19621
19636
  return res.result;
19622
19637
  }
19638
+ /**
19639
+ * Fetch the specific inflation values for the current epoch
19640
+ */
19641
+
19642
+
19643
+ async getInflationRate() {
19644
+ const unsafeRes = await this._rpcRequest('getInflationRate', []);
19645
+ const res = create(unsafeRes, GetInflationRateRpcResult);
19646
+
19647
+ if ('error' in res) {
19648
+ throw new SolanaJSONRPCError(res.error, 'failed to get inflation rate');
19649
+ }
19650
+
19651
+ return res.result;
19652
+ }
19623
19653
  /**
19624
19654
  * Fetch the Epoch Info parameters
19625
19655
  */