@solana/web3.js 1.95.0 → 1.95.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 +20 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +20 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +20 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +7 -1
- package/lib/index.esm.js +20 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +20 -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 +20 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +3 -3
- package/src/connection.ts +42 -5
package/lib/index.iife.js
CHANGED
|
@@ -17112,6 +17112,19 @@ var solanaWeb3 = (function (exports) {
|
|
|
17112
17112
|
};
|
|
17113
17113
|
}
|
|
17114
17114
|
|
|
17115
|
+
/**
|
|
17116
|
+
* @internal
|
|
17117
|
+
*/
|
|
17118
|
+
function applyDefaultMemcmpEncodingToFilters(filters) {
|
|
17119
|
+
return filters.map(filter => 'memcmp' in filter ? {
|
|
17120
|
+
...filter,
|
|
17121
|
+
memcmp: {
|
|
17122
|
+
...filter.memcmp,
|
|
17123
|
+
encoding: filter.memcmp.encoding ?? 'base58'
|
|
17124
|
+
}
|
|
17125
|
+
} : filter);
|
|
17126
|
+
}
|
|
17127
|
+
|
|
17115
17128
|
/**
|
|
17116
17129
|
* @internal
|
|
17117
17130
|
*/
|
|
@@ -19019,7 +19032,12 @@ var solanaWeb3 = (function (exports) {
|
|
|
19019
19032
|
encoding,
|
|
19020
19033
|
...configWithoutEncoding
|
|
19021
19034
|
} = config || {};
|
|
19022
|
-
const args = this._buildArgs([programId.toBase58()], commitment, encoding || 'base64',
|
|
19035
|
+
const args = this._buildArgs([programId.toBase58()], commitment, encoding || 'base64', {
|
|
19036
|
+
...configWithoutEncoding,
|
|
19037
|
+
...(configWithoutEncoding.filters ? {
|
|
19038
|
+
filters: applyDefaultMemcmpEncodingToFilters(configWithoutEncoding.filters)
|
|
19039
|
+
} : null)
|
|
19040
|
+
});
|
|
19023
19041
|
const unsafeRes = await this._rpcRequest('getProgramAccounts', args);
|
|
19024
19042
|
const baseSchema = array(KeyedAccountInfoResult);
|
|
19025
19043
|
const res = configWithoutEncoding.withContext === true ? create(unsafeRes, jsonRpcResultAndContext(baseSchema)) : create(unsafeRes, jsonRpcResult(baseSchema));
|
|
@@ -21168,7 +21186,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
21168
21186
|
const args = this._buildArgs([programId.toBase58()], commitment || this._commitment || 'finalized',
|
|
21169
21187
|
// Apply connection/server default.
|
|
21170
21188
|
'base64' /* encoding */, config ? config : maybeFilters ? {
|
|
21171
|
-
filters: maybeFilters
|
|
21189
|
+
filters: applyDefaultMemcmpEncodingToFilters(maybeFilters)
|
|
21172
21190
|
} : undefined /* extra */);
|
|
21173
21191
|
return this._makeSubscription({
|
|
21174
21192
|
callback,
|