@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.cjs.js
CHANGED
|
@@ -2288,6 +2288,8 @@ function decodeData(type, buffer) {
|
|
|
2288
2288
|
const FeeCalculatorLayout = BufferLayout__namespace.nu64('lamportsPerSignature');
|
|
2289
2289
|
/**
|
|
2290
2290
|
* Calculator for transaction fees.
|
|
2291
|
+
*
|
|
2292
|
+
* @deprecated Deprecated since Solana v1.8.0.
|
|
2291
2293
|
*/
|
|
2292
2294
|
|
|
2293
2295
|
/**
|
|
@@ -5969,7 +5971,7 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5969
5971
|
|
|
5970
5972
|
/** @internal */
|
|
5971
5973
|
const COMMON_HTTP_HEADERS = {
|
|
5972
|
-
'solana-client': `js/${(_process$env$npm_pack = "1.
|
|
5974
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.52.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5973
5975
|
};
|
|
5974
5976
|
/**
|
|
5975
5977
|
* A connection to a fullnode JSON RPC endpoint
|
|
@@ -6410,8 +6412,13 @@ class Connection {
|
|
|
6410
6412
|
*/
|
|
6411
6413
|
|
|
6412
6414
|
|
|
6413
|
-
async getParsedAccountInfo(publicKey,
|
|
6414
|
-
const
|
|
6415
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
6416
|
+
const {
|
|
6417
|
+
commitment,
|
|
6418
|
+
config
|
|
6419
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
6420
|
+
|
|
6421
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
6415
6422
|
|
|
6416
6423
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
6417
6424
|
const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(ParsedAccountInfoResult)));
|