@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.browser.esm.js
CHANGED
|
@@ -9,8 +9,8 @@ import { blob } from '@solana/buffer-layout';
|
|
|
9
9
|
import { toBigIntLE, toBufferLE } from 'bigint-buffer';
|
|
10
10
|
import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
|
|
11
11
|
import RpcClient from 'jayson/lib/client/browser';
|
|
12
|
-
import RpcWebSocketCommonClient from 'rpc-websockets/dist/lib/client';
|
|
13
|
-
import createRpc from 'rpc-websockets/dist/lib/client/websocket.browser';
|
|
12
|
+
import RpcWebSocketCommonClient from 'rpc-websockets/dist/lib/client.cjs';
|
|
13
|
+
import createRpc from 'rpc-websockets/dist/lib/client/websocket.browser.cjs';
|
|
14
14
|
import { keccak_256 } from '@noble/hashes/sha3';
|
|
15
15
|
import { secp256k1 } from '@noble/curves/secp256k1';
|
|
16
16
|
|
|
@@ -90,8 +90,7 @@ class Enum extends Struct {
|
|
|
90
90
|
}
|
|
91
91
|
const SOLANA_SCHEMA = new Map();
|
|
92
92
|
|
|
93
|
-
var
|
|
94
|
-
let _Symbol$toStringTag;
|
|
93
|
+
var _PublicKey;
|
|
95
94
|
|
|
96
95
|
/**
|
|
97
96
|
* Maximum length of derived pubkey seed
|
|
@@ -121,7 +120,6 @@ let uniquePublicKeyCounter = 1;
|
|
|
121
120
|
/**
|
|
122
121
|
* A public key
|
|
123
122
|
*/
|
|
124
|
-
_Symbol$toStringTag = Symbol.toStringTag;
|
|
125
123
|
class PublicKey extends Struct {
|
|
126
124
|
/**
|
|
127
125
|
* Create a new PublicKey object
|
|
@@ -201,7 +199,7 @@ class PublicKey extends Struct {
|
|
|
201
199
|
b.copy(zeroPad, 32 - b.length);
|
|
202
200
|
return zeroPad;
|
|
203
201
|
}
|
|
204
|
-
get [
|
|
202
|
+
get [Symbol.toStringTag]() {
|
|
205
203
|
return `PublicKey(${this.toString()})`;
|
|
206
204
|
}
|
|
207
205
|
|
|
@@ -299,8 +297,8 @@ class PublicKey extends Struct {
|
|
|
299
297
|
return isOnCurve(pubkey.toBytes());
|
|
300
298
|
}
|
|
301
299
|
}
|
|
302
|
-
|
|
303
|
-
PublicKey.default = new
|
|
300
|
+
_PublicKey = PublicKey;
|
|
301
|
+
PublicKey.default = new _PublicKey('11111111111111111111111111111111');
|
|
304
302
|
SOLANA_SCHEMA.set(PublicKey, {
|
|
305
303
|
kind: 'struct',
|
|
306
304
|
fields: [['_bn', 'u256']]
|
|
@@ -3580,7 +3578,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
3580
3578
|
const websocketPort =
|
|
3581
3579
|
// Only shift the port by +1 as a convention for ws(s) only if given endpoint
|
|
3582
3580
|
// is explicitly specifying the endpoint port (HTTP-based RPC), assuming
|
|
3583
|
-
// we're directly trying to connect to
|
|
3581
|
+
// we're directly trying to connect to agave-validator's ws listening port.
|
|
3584
3582
|
// When the endpoint omits the port, we're connecting to the protocol
|
|
3585
3583
|
// default ports: http(80) or https(443) and it's assumed we're behind a reverse
|
|
3586
3584
|
// proxy which manages WebSocket upgrade and backend port redirection.
|
|
@@ -8816,7 +8814,7 @@ class Secp256k1Program {
|
|
|
8816
8814
|
}
|
|
8817
8815
|
Secp256k1Program.programId = new PublicKey('KeccakSecp256k11111111111111111111111111111');
|
|
8818
8816
|
|
|
8819
|
-
var
|
|
8817
|
+
var _Lockup;
|
|
8820
8818
|
|
|
8821
8819
|
/**
|
|
8822
8820
|
* Address of the stake config account which configures the rate
|
|
@@ -8865,8 +8863,8 @@ class Lockup {
|
|
|
8865
8863
|
* Default, inactive Lockup value
|
|
8866
8864
|
*/
|
|
8867
8865
|
}
|
|
8868
|
-
|
|
8869
|
-
Lockup.default = new
|
|
8866
|
+
_Lockup = Lockup;
|
|
8867
|
+
Lockup.default = new _Lockup(0, 0, PublicKey.default);
|
|
8870
8868
|
/**
|
|
8871
8869
|
* Create stake account transaction params
|
|
8872
8870
|
*/
|