@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.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
|
/**
|
|
@@ -6265,8 +6267,13 @@ class Connection {
|
|
|
6265
6267
|
*/
|
|
6266
6268
|
|
|
6267
6269
|
|
|
6268
|
-
async getParsedAccountInfo(publicKey,
|
|
6269
|
-
const
|
|
6270
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
6271
|
+
const {
|
|
6272
|
+
commitment,
|
|
6273
|
+
config
|
|
6274
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
6275
|
+
|
|
6276
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
6270
6277
|
|
|
6271
6278
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
6272
6279
|
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));
|