@solana/web3.js 1.51.0 → 1.52.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.browser.cjs.js +9 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +9 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +9 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +8 -2
- package/lib/index.esm.js +9 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +9 -2
- 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 +9 -2
- 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
|
/**
|
|
@@ -6296,8 +6298,13 @@ class Connection {
|
|
|
6296
6298
|
*/
|
|
6297
6299
|
|
|
6298
6300
|
|
|
6299
|
-
async getParsedAccountInfo(publicKey,
|
|
6300
|
-
const
|
|
6301
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
6302
|
+
const {
|
|
6303
|
+
commitment,
|
|
6304
|
+
config
|
|
6305
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
6306
|
+
|
|
6307
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
6301
6308
|
|
|
6302
6309
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
6303
6310
|
const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(ParsedAccountInfoResult)));
|