@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.cjs.js
CHANGED
|
@@ -2261,6 +2261,8 @@ function decodeData(type, buffer) {
|
|
|
2261
2261
|
const FeeCalculatorLayout = BufferLayout__namespace.nu64('lamportsPerSignature');
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Calculator for transaction fees.
|
|
2264
|
+
*
|
|
2265
|
+
* @deprecated Deprecated since Solana v1.8.0.
|
|
2264
2266
|
*/
|
|
2265
2267
|
|
|
2266
2268
|
/**
|
|
@@ -5884,7 +5886,7 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5884
5886
|
|
|
5885
5887
|
/** @internal */
|
|
5886
5888
|
const COMMON_HTTP_HEADERS = {
|
|
5887
|
-
'solana-client': `js/${(_process$env$npm_pack = "1.
|
|
5889
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.52.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5888
5890
|
};
|
|
5889
5891
|
/**
|
|
5890
5892
|
* A connection to a fullnode JSON RPC endpoint
|
|
@@ -6325,8 +6327,13 @@ class Connection {
|
|
|
6325
6327
|
*/
|
|
6326
6328
|
|
|
6327
6329
|
|
|
6328
|
-
async getParsedAccountInfo(publicKey,
|
|
6329
|
-
const
|
|
6330
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
6331
|
+
const {
|
|
6332
|
+
commitment,
|
|
6333
|
+
config
|
|
6334
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
6335
|
+
|
|
6336
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
6330
6337
|
|
|
6331
6338
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
6332
6339
|
const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(ParsedAccountInfoResult)));
|