@solana/web3.js 1.89.0 → 1.90.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/README.md +1 -1
- package/lib/index.browser.cjs.js +6 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +7 -1
- package/lib/index.esm.js +6 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -1
- 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 +6 -1
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -2
- package/src/bpf-loader.ts +5 -0
- package/src/connection.ts +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -2227,8 +2227,9 @@ type SimulateTransactionConfig = {
|
|
|
2227
2227
|
replaceRecentBlockhash?: boolean;
|
|
2228
2228
|
/** Optional parameter used to set the commitment level when selecting the latest block */
|
|
2229
2229
|
commitment?: Commitment;
|
|
2230
|
-
/** Optional parameter used to specify a list of account addresses to return post simulation state for */
|
|
2230
|
+
/** Optional parameter used to specify a list of base58-encoded account addresses to return post simulation state for */
|
|
2231
2231
|
accounts?: {
|
|
2232
|
+
/** The encoding of the returned account's data */
|
|
2232
2233
|
encoding: 'base64';
|
|
2233
2234
|
addresses: string[];
|
|
2234
2235
|
};
|
|
@@ -3709,9 +3710,14 @@ export class Connection {
|
|
|
3709
3710
|
removeRootChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
3710
3711
|
}
|
|
3711
3712
|
|
|
3713
|
+
/**
|
|
3714
|
+
* @deprecated Deprecated since Solana v1.17.20.
|
|
3715
|
+
*/
|
|
3712
3716
|
export const BPF_LOADER_PROGRAM_ID: PublicKey;
|
|
3713
3717
|
/**
|
|
3714
3718
|
* Factory class for transactions to interact with a program loader
|
|
3719
|
+
*
|
|
3720
|
+
* @deprecated Deprecated since Solana v1.17.20.
|
|
3715
3721
|
*/
|
|
3716
3722
|
export class BpfLoader {
|
|
3717
3723
|
/**
|
package/lib/index.esm.js
CHANGED
|
@@ -3210,10 +3210,15 @@ class Loader {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
Loader.chunkSize = CHUNK_SIZE;
|
|
3212
3212
|
|
|
3213
|
+
/**
|
|
3214
|
+
* @deprecated Deprecated since Solana v1.17.20.
|
|
3215
|
+
*/
|
|
3213
3216
|
const BPF_LOADER_PROGRAM_ID = new PublicKey('BPFLoader2111111111111111111111111111111111');
|
|
3214
3217
|
|
|
3215
3218
|
/**
|
|
3216
3219
|
* Factory class for transactions to interact with a program loader
|
|
3220
|
+
*
|
|
3221
|
+
* @deprecated Deprecated since Solana v1.17.20.
|
|
3217
3222
|
*/
|
|
3218
3223
|
class BpfLoader {
|
|
3219
3224
|
/**
|
|
@@ -4878,7 +4883,7 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
4878
4883
|
if (too_many_requests_retries === 0) {
|
|
4879
4884
|
break;
|
|
4880
4885
|
}
|
|
4881
|
-
console.
|
|
4886
|
+
console.error(`Server responded with ${res.status} ${res.statusText}. Retrying after ${waitTime}ms delay...`);
|
|
4882
4887
|
await sleep(waitTime);
|
|
4883
4888
|
waitTime *= 2;
|
|
4884
4889
|
}
|