@solana/web3.js 1.51.1 → 1.52.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.browser.cjs.js +10 -3
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +10 -3
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +10 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +8 -2
- package/lib/index.esm.js +10 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +10 -3
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +10 -3
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +9 -2
- package/src/fee-calculator.ts +2 -0
package/lib/index.browser.esm.js
CHANGED
|
@@ -2230,6 +2230,8 @@ function decodeData(type, buffer) {
|
|
|
2230
2230
|
const FeeCalculatorLayout = BufferLayout.nu64('lamportsPerSignature');
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Calculator for transaction fees.
|
|
2233
|
+
*
|
|
2234
|
+
* @deprecated Deprecated since Solana v1.8.0.
|
|
2233
2235
|
*/
|
|
2234
2236
|
|
|
2235
2237
|
/**
|
|
@@ -5853,7 +5855,7 @@ const LogsNotificationResult = type({
|
|
|
5853
5855
|
|
|
5854
5856
|
/** @internal */
|
|
5855
5857
|
const COMMON_HTTP_HEADERS = {
|
|
5856
|
-
'solana-client': `js/${(_process$env$npm_pack = "1.
|
|
5858
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.52.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5857
5859
|
};
|
|
5858
5860
|
/**
|
|
5859
5861
|
* A connection to a fullnode JSON RPC endpoint
|
|
@@ -6294,8 +6296,13 @@ class Connection {
|
|
|
6294
6296
|
*/
|
|
6295
6297
|
|
|
6296
6298
|
|
|
6297
|
-
async getParsedAccountInfo(publicKey,
|
|
6298
|
-
const
|
|
6299
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
6300
|
+
const {
|
|
6301
|
+
commitment,
|
|
6302
|
+
config
|
|
6303
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
6304
|
+
|
|
6305
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
6299
6306
|
|
|
6300
6307
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
6301
6308
|
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));
|