@solana/web3.js 1.70.1 → 1.70.3
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 +6 -6
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -6
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2451 -71
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +12 -8
- package/lib/index.esm.js +2444 -69
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -6
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +6 -6
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -1
- package/src/connection.ts +35 -28
- package/src/publickey.ts +4 -3
- package/src/utils/send-and-confirm-raw-transaction.ts +5 -8
- package/src/agent-manager.ts +0 -44
package/lib/index.browser.esm.js
CHANGED
|
@@ -189,15 +189,16 @@ class PublicKey extends Struct {
|
|
|
189
189
|
return this.toBase58();
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
* Return the byte array representation of the public key
|
|
192
|
+
* Return the byte array representation of the public key in big endian
|
|
193
193
|
*/
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
toBytes() {
|
|
197
|
-
|
|
197
|
+
const buf = this.toBuffer();
|
|
198
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
198
199
|
}
|
|
199
200
|
/**
|
|
200
|
-
* Return the Buffer representation of the public key
|
|
201
|
+
* Return the Buffer representation of the public key in big endian
|
|
201
202
|
*/
|
|
202
203
|
|
|
203
204
|
|
|
@@ -3869,6 +3870,7 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(type({
|
|
|
3869
3870
|
|
|
3870
3871
|
function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
|
|
3871
3872
|
const fetch = customFetch ? customFetch : fetchImpl;
|
|
3873
|
+
let agent;
|
|
3872
3874
|
|
|
3873
3875
|
{
|
|
3874
3876
|
if (httpAgent != null) {
|
|
@@ -3892,7 +3894,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
3892
3894
|
}
|
|
3893
3895
|
|
|
3894
3896
|
const clientBrowser = new RpcClient(async (request, callback) => {
|
|
3895
|
-
const agent = undefined;
|
|
3896
3897
|
const options = {
|
|
3897
3898
|
method: 'POST',
|
|
3898
3899
|
body: request,
|
|
@@ -3944,7 +3945,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
3944
3945
|
}
|
|
3945
3946
|
} catch (err) {
|
|
3946
3947
|
if (err instanceof Error) callback(err);
|
|
3947
|
-
} finally {
|
|
3948
3948
|
}
|
|
3949
3949
|
}, {});
|
|
3950
3950
|
return clientBrowser;
|
|
@@ -10258,7 +10258,7 @@ function clusterApiUrl(cluster, tls) {
|
|
|
10258
10258
|
*
|
|
10259
10259
|
* @param {Connection} connection
|
|
10260
10260
|
* @param {Buffer} rawTransaction
|
|
10261
|
-
* @param {
|
|
10261
|
+
* @param {TransactionConfirmationStrategy} confirmationStrategy
|
|
10262
10262
|
* @param {ConfirmOptions} [options]
|
|
10263
10263
|
* @returns {Promise<TransactionSignature>}
|
|
10264
10264
|
*/
|