@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.native.js
CHANGED
|
@@ -10,8 +10,8 @@ var BufferLayout = require('@solana/buffer-layout');
|
|
|
10
10
|
var bigintBuffer = require('bigint-buffer');
|
|
11
11
|
var superstruct = require('superstruct');
|
|
12
12
|
var RpcClient = require('jayson/lib/client/browser');
|
|
13
|
-
var RpcWebSocketCommonClient = require('rpc-websockets/dist/lib/client');
|
|
14
|
-
var createRpc = require('rpc-websockets/dist/lib/client/websocket.browser');
|
|
13
|
+
var RpcWebSocketCommonClient = require('rpc-websockets/dist/lib/client.cjs');
|
|
14
|
+
var createRpc = require('rpc-websockets/dist/lib/client/websocket.browser.cjs');
|
|
15
15
|
var sha3 = require('@noble/hashes/sha3');
|
|
16
16
|
var secp256k1 = require('@noble/curves/secp256k1');
|
|
17
17
|
|
|
@@ -118,8 +118,7 @@ class Enum extends Struct {
|
|
|
118
118
|
}
|
|
119
119
|
const SOLANA_SCHEMA = new Map();
|
|
120
120
|
|
|
121
|
-
var
|
|
122
|
-
let _Symbol$toStringTag;
|
|
121
|
+
var _PublicKey;
|
|
123
122
|
|
|
124
123
|
/**
|
|
125
124
|
* Maximum length of derived pubkey seed
|
|
@@ -149,7 +148,6 @@ let uniquePublicKeyCounter = 1;
|
|
|
149
148
|
/**
|
|
150
149
|
* A public key
|
|
151
150
|
*/
|
|
152
|
-
_Symbol$toStringTag = Symbol.toStringTag;
|
|
153
151
|
class PublicKey extends Struct {
|
|
154
152
|
/**
|
|
155
153
|
* Create a new PublicKey object
|
|
@@ -229,7 +227,7 @@ class PublicKey extends Struct {
|
|
|
229
227
|
b.copy(zeroPad, 32 - b.length);
|
|
230
228
|
return zeroPad;
|
|
231
229
|
}
|
|
232
|
-
get [
|
|
230
|
+
get [Symbol.toStringTag]() {
|
|
233
231
|
return `PublicKey(${this.toString()})`;
|
|
234
232
|
}
|
|
235
233
|
|
|
@@ -327,8 +325,8 @@ class PublicKey extends Struct {
|
|
|
327
325
|
return isOnCurve(pubkey.toBytes());
|
|
328
326
|
}
|
|
329
327
|
}
|
|
330
|
-
|
|
331
|
-
PublicKey.default = new
|
|
328
|
+
_PublicKey = PublicKey;
|
|
329
|
+
PublicKey.default = new _PublicKey('11111111111111111111111111111111');
|
|
332
330
|
SOLANA_SCHEMA.set(PublicKey, {
|
|
333
331
|
kind: 'struct',
|
|
334
332
|
fields: [['_bn', 'u256']]
|
|
@@ -3608,7 +3606,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
3608
3606
|
const websocketPort =
|
|
3609
3607
|
// Only shift the port by +1 as a convention for ws(s) only if given endpoint
|
|
3610
3608
|
// is explicitly specifying the endpoint port (HTTP-based RPC), assuming
|
|
3611
|
-
// we're directly trying to connect to
|
|
3609
|
+
// we're directly trying to connect to agave-validator's ws listening port.
|
|
3612
3610
|
// When the endpoint omits the port, we're connecting to the protocol
|
|
3613
3611
|
// default ports: http(80) or https(443) and it's assumed we're behind a reverse
|
|
3614
3612
|
// proxy which manages WebSocket upgrade and backend port redirection.
|
|
@@ -8844,7 +8842,7 @@ class Secp256k1Program {
|
|
|
8844
8842
|
}
|
|
8845
8843
|
Secp256k1Program.programId = new PublicKey('KeccakSecp256k11111111111111111111111111111');
|
|
8846
8844
|
|
|
8847
|
-
var
|
|
8845
|
+
var _Lockup;
|
|
8848
8846
|
|
|
8849
8847
|
/**
|
|
8850
8848
|
* Address of the stake config account which configures the rate
|
|
@@ -8893,8 +8891,8 @@ class Lockup {
|
|
|
8893
8891
|
* Default, inactive Lockup value
|
|
8894
8892
|
*/
|
|
8895
8893
|
}
|
|
8896
|
-
|
|
8897
|
-
Lockup.default = new
|
|
8894
|
+
_Lockup = Lockup;
|
|
8895
|
+
Lockup.default = new _Lockup(0, 0, PublicKey.default);
|
|
8898
8896
|
/**
|
|
8899
8897
|
* Create stake account transaction params
|
|
8900
8898
|
*/
|