@solana/web3.js 1.95.8 → 1.97.0
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/README.md +2 -1
- 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 +6 -6
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +6 -6
- 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 +1 -1
- 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 +20 -19
- package/src/connection.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.0",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -36,23 +36,6 @@
|
|
|
36
36
|
"/lib",
|
|
37
37
|
"/src"
|
|
38
38
|
],
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"@babel/runtime": "^7.25.0",
|
|
41
|
-
"@noble/curves": "^1.4.2",
|
|
42
|
-
"@noble/hashes": "^1.4.0",
|
|
43
|
-
"@solana/buffer-layout": "^4.0.1",
|
|
44
|
-
"agentkeepalive": "^4.5.0",
|
|
45
|
-
"bigint-buffer": "^1.1.5",
|
|
46
|
-
"bn.js": "^5.2.1",
|
|
47
|
-
"borsh": "^0.7.0",
|
|
48
|
-
"bs58": "^4.0.1",
|
|
49
|
-
"buffer": "6.0.3",
|
|
50
|
-
"fast-stable-stringify": "^1.0.0",
|
|
51
|
-
"jayson": "^4.1.1",
|
|
52
|
-
"node-fetch": "^2.7.0",
|
|
53
|
-
"rpc-websockets": "^9.0.2",
|
|
54
|
-
"superstruct": "^2.0.2"
|
|
55
|
-
},
|
|
56
39
|
"scripts": {
|
|
57
40
|
"compile:docs": "typedoc --treatWarningsAsErrors",
|
|
58
41
|
"compile:js": "cross-env NODE_ENV=production rollup -c",
|
|
@@ -60,6 +43,7 @@
|
|
|
60
43
|
"build:fixtures": "set -ex; ./test/fixtures/noop-program/build.sh",
|
|
61
44
|
"clean": "rimraf ./doc ./declarations ./lib",
|
|
62
45
|
"dev": "cross-env NODE_ENV=development rollup -c --watch",
|
|
46
|
+
"prepublishOnly": "pnpm pkg delete devDependencies",
|
|
63
47
|
"publish-packages": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
|
64
48
|
"test:lint": "eslint src/ test/ --ext .js,.ts",
|
|
65
49
|
"test:lint:fix": "eslint src/ test/ --fix --ext .js,.ts",
|
|
@@ -70,5 +54,22 @@
|
|
|
70
54
|
"test:prettier:fix": "pnpm prettier --write '{,{src,test}/**/}*.{j,t}s'",
|
|
71
55
|
"test:typecheck": "tsc --noEmit",
|
|
72
56
|
"test:unit": "cross-env NODE_ENV=test NODE_OPTIONS='--import tsx' mocha './test/**/*.test.ts'"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@babel/runtime": "^7.25.0",
|
|
60
|
+
"@noble/curves": "^1.4.2",
|
|
61
|
+
"@noble/hashes": "^1.4.0",
|
|
62
|
+
"@solana/buffer-layout": "^4.0.1",
|
|
63
|
+
"agentkeepalive": "^4.5.0",
|
|
64
|
+
"bigint-buffer": "^1.1.5",
|
|
65
|
+
"bn.js": "^5.2.1",
|
|
66
|
+
"borsh": "^0.7.0",
|
|
67
|
+
"bs58": "^4.0.1",
|
|
68
|
+
"buffer": "6.0.3",
|
|
69
|
+
"fast-stable-stringify": "^1.0.0",
|
|
70
|
+
"jayson": "^4.1.1",
|
|
71
|
+
"node-fetch": "^2.7.0",
|
|
72
|
+
"rpc-websockets": "^9.0.2",
|
|
73
|
+
"superstruct": "^2.0.2"
|
|
73
74
|
}
|
|
74
|
-
}
|
|
75
|
+
}
|
package/src/connection.ts
CHANGED
|
@@ -5225,7 +5225,7 @@ export class Connection {
|
|
|
5225
5225
|
commitment?: Finality,
|
|
5226
5226
|
): Promise<ConfirmedBlock> {
|
|
5227
5227
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
5228
|
-
const unsafeRes = await this._rpcRequest('
|
|
5228
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
5229
5229
|
const res = create(unsafeRes, GetConfirmedBlockRpcResult);
|
|
5230
5230
|
|
|
5231
5231
|
if ('error' in res) {
|
|
@@ -5331,7 +5331,7 @@ export class Connection {
|
|
|
5331
5331
|
rewards: false,
|
|
5332
5332
|
},
|
|
5333
5333
|
);
|
|
5334
|
-
const unsafeRes = await this._rpcRequest('
|
|
5334
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
5335
5335
|
const res = create(unsafeRes, GetBlockSignaturesRpcResult);
|
|
5336
5336
|
if ('error' in res) {
|
|
5337
5337
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -5353,7 +5353,7 @@ export class Connection {
|
|
|
5353
5353
|
commitment?: Finality,
|
|
5354
5354
|
): Promise<ConfirmedTransaction | null> {
|
|
5355
5355
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
5356
|
-
const unsafeRes = await this._rpcRequest('
|
|
5356
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
5357
5357
|
const res = create(unsafeRes, GetTransactionRpcResult);
|
|
5358
5358
|
if ('error' in res) {
|
|
5359
5359
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -5384,7 +5384,7 @@ export class Connection {
|
|
|
5384
5384
|
commitment,
|
|
5385
5385
|
'jsonParsed',
|
|
5386
5386
|
);
|
|
5387
|
-
const unsafeRes = await this._rpcRequest('
|
|
5387
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
5388
5388
|
const res = create(unsafeRes, GetParsedTransactionRpcResult);
|
|
5389
5389
|
if ('error' in res) {
|
|
5390
5390
|
throw new SolanaJSONRPCError(
|
|
@@ -5411,7 +5411,7 @@ export class Connection {
|
|
|
5411
5411
|
'jsonParsed',
|
|
5412
5412
|
);
|
|
5413
5413
|
return {
|
|
5414
|
-
methodName: '
|
|
5414
|
+
methodName: 'getTransaction',
|
|
5415
5415
|
args,
|
|
5416
5416
|
};
|
|
5417
5417
|
});
|