@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.iife.js
CHANGED
|
@@ -13985,6 +13985,8 @@ var solanaWeb3 = (function (exports) {
|
|
|
13985
13985
|
const FeeCalculatorLayout = nu64('lamportsPerSignature');
|
|
13986
13986
|
/**
|
|
13987
13987
|
* Calculator for transaction fees.
|
|
13988
|
+
*
|
|
13989
|
+
* @deprecated Deprecated since Solana v1.8.0.
|
|
13988
13990
|
*/
|
|
13989
13991
|
|
|
13990
13992
|
/**
|
|
@@ -21121,8 +21123,13 @@ var solanaWeb3 = (function (exports) {
|
|
|
21121
21123
|
*/
|
|
21122
21124
|
|
|
21123
21125
|
|
|
21124
|
-
async getParsedAccountInfo(publicKey,
|
|
21125
|
-
const
|
|
21126
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
21127
|
+
const {
|
|
21128
|
+
commitment,
|
|
21129
|
+
config
|
|
21130
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
21131
|
+
|
|
21132
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
21126
21133
|
|
|
21127
21134
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
21128
21135
|
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));
|