@solana/web3.js 1.91.7 → 1.91.9
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 -12
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +10 -12
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +10 -12
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +10 -12
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +1192 -2397
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +7 -8
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +10 -12
- package/lib/index.native.js.map +1 -1
- package/package.json +6 -6
- package/src/__forks__/browser/rpc-websocket-factory.ts +1 -1
- package/src/__forks__/react-native/rpc-websocket-factory.ts +1 -1
- package/src/rpc-websocket-factory.ts +2 -2
- package/src/rpc-websocket.ts +6 -6
- package/src/utils/makeWebsocketUrl.ts +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -14,8 +14,8 @@ var require$$0$2 = require('https');
|
|
|
14
14
|
var superstruct = require('superstruct');
|
|
15
15
|
var RpcClient = require('jayson/lib/client/browser');
|
|
16
16
|
var nodeFetch = require('node-fetch');
|
|
17
|
-
var RpcWebSocketCommonClient = require('rpc-websockets/dist/lib/client');
|
|
18
|
-
var WebsocketFactory = require('rpc-websockets/dist/lib/client/websocket');
|
|
17
|
+
var RpcWebSocketCommonClient = require('rpc-websockets/dist/lib/client.cjs');
|
|
18
|
+
var WebsocketFactory = require('rpc-websockets/dist/lib/client/websocket.cjs');
|
|
19
19
|
var sha3 = require('@noble/hashes/sha3');
|
|
20
20
|
var secp256k1 = require('@noble/curves/secp256k1');
|
|
21
21
|
|
|
@@ -126,8 +126,7 @@ class Enum extends Struct {
|
|
|
126
126
|
}
|
|
127
127
|
const SOLANA_SCHEMA = new Map();
|
|
128
128
|
|
|
129
|
-
var
|
|
130
|
-
let _Symbol$toStringTag;
|
|
129
|
+
var _PublicKey;
|
|
131
130
|
|
|
132
131
|
/**
|
|
133
132
|
* Maximum length of derived pubkey seed
|
|
@@ -157,7 +156,6 @@ let uniquePublicKeyCounter = 1;
|
|
|
157
156
|
/**
|
|
158
157
|
* A public key
|
|
159
158
|
*/
|
|
160
|
-
_Symbol$toStringTag = Symbol.toStringTag;
|
|
161
159
|
class PublicKey extends Struct {
|
|
162
160
|
/**
|
|
163
161
|
* Create a new PublicKey object
|
|
@@ -237,7 +235,7 @@ class PublicKey extends Struct {
|
|
|
237
235
|
b.copy(zeroPad, 32 - b.length);
|
|
238
236
|
return zeroPad;
|
|
239
237
|
}
|
|
240
|
-
get [
|
|
238
|
+
get [Symbol.toStringTag]() {
|
|
241
239
|
return `PublicKey(${this.toString()})`;
|
|
242
240
|
}
|
|
243
241
|
|
|
@@ -335,8 +333,8 @@ class PublicKey extends Struct {
|
|
|
335
333
|
return isOnCurve(pubkey.toBytes());
|
|
336
334
|
}
|
|
337
335
|
}
|
|
338
|
-
|
|
339
|
-
PublicKey.default = new
|
|
336
|
+
_PublicKey = PublicKey;
|
|
337
|
+
PublicKey.default = new _PublicKey('11111111111111111111111111111111');
|
|
340
338
|
SOLANA_SCHEMA.set(PublicKey, {
|
|
341
339
|
kind: 'struct',
|
|
342
340
|
fields: [['_bn', 'u256']]
|
|
@@ -4282,7 +4280,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
4282
4280
|
const websocketPort =
|
|
4283
4281
|
// Only shift the port by +1 as a convention for ws(s) only if given endpoint
|
|
4284
4282
|
// is explicitly specifying the endpoint port (HTTP-based RPC), assuming
|
|
4285
|
-
// we're directly trying to connect to
|
|
4283
|
+
// we're directly trying to connect to agave-validator's ws listening port.
|
|
4286
4284
|
// When the endpoint omits the port, we're connecting to the protocol
|
|
4287
4285
|
// default ports: http(80) or https(443) and it's assumed we're behind a reverse
|
|
4288
4286
|
// proxy which manages WebSocket upgrade and backend port redirection.
|
|
@@ -9541,7 +9539,7 @@ class Secp256k1Program {
|
|
|
9541
9539
|
}
|
|
9542
9540
|
Secp256k1Program.programId = new PublicKey('KeccakSecp256k11111111111111111111111111111');
|
|
9543
9541
|
|
|
9544
|
-
var
|
|
9542
|
+
var _Lockup;
|
|
9545
9543
|
|
|
9546
9544
|
/**
|
|
9547
9545
|
* Address of the stake config account which configures the rate
|
|
@@ -9590,8 +9588,8 @@ class Lockup {
|
|
|
9590
9588
|
* Default, inactive Lockup value
|
|
9591
9589
|
*/
|
|
9592
9590
|
}
|
|
9593
|
-
|
|
9594
|
-
Lockup.default = new
|
|
9591
|
+
_Lockup = Lockup;
|
|
9592
|
+
Lockup.default = new _Lockup(0, 0, PublicKey.default);
|
|
9595
9593
|
/**
|
|
9596
9594
|
* Create stake account transaction params
|
|
9597
9595
|
*/
|