@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.esm.js
CHANGED
|
@@ -13,8 +13,8 @@ import require$$0$2, { Agent as Agent$1 } from 'https';
|
|
|
13
13
|
import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
|
|
14
14
|
import RpcClient from 'jayson/lib/client/browser';
|
|
15
15
|
import * as nodeFetch from 'node-fetch';
|
|
16
|
-
import RpcWebSocketCommonClient from 'rpc-websockets/dist/lib/client';
|
|
17
|
-
import WebsocketFactory from 'rpc-websockets/dist/lib/client/websocket';
|
|
16
|
+
import RpcWebSocketCommonClient from 'rpc-websockets/dist/lib/client.cjs';
|
|
17
|
+
import WebsocketFactory from 'rpc-websockets/dist/lib/client/websocket.cjs';
|
|
18
18
|
import { keccak_256 } from '@noble/hashes/sha3';
|
|
19
19
|
import { secp256k1 } from '@noble/curves/secp256k1';
|
|
20
20
|
|
|
@@ -94,8 +94,7 @@ class Enum extends Struct {
|
|
|
94
94
|
}
|
|
95
95
|
const SOLANA_SCHEMA = new Map();
|
|
96
96
|
|
|
97
|
-
var
|
|
98
|
-
let _Symbol$toStringTag;
|
|
97
|
+
var _PublicKey;
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
100
|
* Maximum length of derived pubkey seed
|
|
@@ -125,7 +124,6 @@ let uniquePublicKeyCounter = 1;
|
|
|
125
124
|
/**
|
|
126
125
|
* A public key
|
|
127
126
|
*/
|
|
128
|
-
_Symbol$toStringTag = Symbol.toStringTag;
|
|
129
127
|
class PublicKey extends Struct {
|
|
130
128
|
/**
|
|
131
129
|
* Create a new PublicKey object
|
|
@@ -205,7 +203,7 @@ class PublicKey extends Struct {
|
|
|
205
203
|
b.copy(zeroPad, 32 - b.length);
|
|
206
204
|
return zeroPad;
|
|
207
205
|
}
|
|
208
|
-
get [
|
|
206
|
+
get [Symbol.toStringTag]() {
|
|
209
207
|
return `PublicKey(${this.toString()})`;
|
|
210
208
|
}
|
|
211
209
|
|
|
@@ -303,8 +301,8 @@ class PublicKey extends Struct {
|
|
|
303
301
|
return isOnCurve(pubkey.toBytes());
|
|
304
302
|
}
|
|
305
303
|
}
|
|
306
|
-
|
|
307
|
-
PublicKey.default = new
|
|
304
|
+
_PublicKey = PublicKey;
|
|
305
|
+
PublicKey.default = new _PublicKey('11111111111111111111111111111111');
|
|
308
306
|
SOLANA_SCHEMA.set(PublicKey, {
|
|
309
307
|
kind: 'struct',
|
|
310
308
|
fields: [['_bn', 'u256']]
|
|
@@ -4250,7 +4248,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
4250
4248
|
const websocketPort =
|
|
4251
4249
|
// Only shift the port by +1 as a convention for ws(s) only if given endpoint
|
|
4252
4250
|
// is explicitly specifying the endpoint port (HTTP-based RPC), assuming
|
|
4253
|
-
// we're directly trying to connect to
|
|
4251
|
+
// we're directly trying to connect to agave-validator's ws listening port.
|
|
4254
4252
|
// When the endpoint omits the port, we're connecting to the protocol
|
|
4255
4253
|
// default ports: http(80) or https(443) and it's assumed we're behind a reverse
|
|
4256
4254
|
// proxy which manages WebSocket upgrade and backend port redirection.
|
|
@@ -9509,7 +9507,7 @@ class Secp256k1Program {
|
|
|
9509
9507
|
}
|
|
9510
9508
|
Secp256k1Program.programId = new PublicKey('KeccakSecp256k11111111111111111111111111111');
|
|
9511
9509
|
|
|
9512
|
-
var
|
|
9510
|
+
var _Lockup;
|
|
9513
9511
|
|
|
9514
9512
|
/**
|
|
9515
9513
|
* Address of the stake config account which configures the rate
|
|
@@ -9558,8 +9556,8 @@ class Lockup {
|
|
|
9558
9556
|
* Default, inactive Lockup value
|
|
9559
9557
|
*/
|
|
9560
9558
|
}
|
|
9561
|
-
|
|
9562
|
-
Lockup.default = new
|
|
9559
|
+
_Lockup = Lockup;
|
|
9560
|
+
Lockup.default = new _Lockup(0, 0, PublicKey.default);
|
|
9563
9561
|
/**
|
|
9564
9562
|
* Create stake account transaction params
|
|
9565
9563
|
*/
|