@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.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
|
/**
|
|
@@ -20709,7 +20711,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20709
20711
|
|
|
20710
20712
|
/** @internal */
|
|
20711
20713
|
const COMMON_HTTP_HEADERS = {
|
|
20712
|
-
'solana-client': `js/${(_process$env$npm_pack = "1.
|
|
20714
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.52.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
20713
20715
|
};
|
|
20714
20716
|
/**
|
|
20715
20717
|
* A connection to a fullnode JSON RPC endpoint
|
|
@@ -21150,8 +21152,13 @@ var solanaWeb3 = (function (exports) {
|
|
|
21150
21152
|
*/
|
|
21151
21153
|
|
|
21152
21154
|
|
|
21153
|
-
async getParsedAccountInfo(publicKey,
|
|
21154
|
-
const
|
|
21155
|
+
async getParsedAccountInfo(publicKey, commitmentOrConfig) {
|
|
21156
|
+
const {
|
|
21157
|
+
commitment,
|
|
21158
|
+
config
|
|
21159
|
+
} = extractCommitmentFromConfig(commitmentOrConfig);
|
|
21160
|
+
|
|
21161
|
+
const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
|
|
21155
21162
|
|
|
21156
21163
|
const unsafeRes = await this._rpcRequest('getAccountInfo', args);
|
|
21157
21164
|
const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));
|