@solana/web3.js 1.73.2 → 1.73.4

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 CHANGED
@@ -1,45 +1,30 @@
1
- [![codecov][codecov-image]][codecov-url]
2
- <br>
3
1
  [![npm][npm-image]][npm-url]
4
2
  [![npm-downloads][npm-downloads-image]][npm-url]
5
- <br>
6
3
  [![semantic-release][semantic-release-image]][semantic-release-url]
4
+ <br />
7
5
  [![code-style-prettier][code-style-prettier-image]][code-style-prettier-url]
8
6
 
9
- [codecov-image]: https://codecov.io/gh/solana-labs/solana-web3.js/branch/master/graph/badge.svg
10
- [codecov-url]: https://codecov.io/gh/solana-labs/solana-web3.js
11
- [npm-image]: https://img.shields.io/npm/v/@solana/web3.js.svg?style=flat
7
+ [code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
8
+ [code-style-prettier-url]: https://github.com/prettier/prettier
12
9
  [npm-downloads-image]: https://img.shields.io/npm/dm/@solana/web3.js.svg?style=flat
10
+ [npm-image]: https://img.shields.io/npm/v/@solana/web3.js.svg?style=flat
13
11
  [npm-url]: https://www.npmjs.com/package/@solana/web3.js
14
12
  [semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
15
13
  [semantic-release-url]: https://github.com/semantic-release/semantic-release
16
- [code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
17
- [code-style-prettier-url]: https://github.com/prettier/prettier
18
-
19
- # Solana JavaScript API
20
14
 
21
- This is the Solana Javascript API built on the Solana [JSON RPC API](https://docs.solana.com/apps/jsonrpc-api)
15
+ # Solana JavaScript SDK
22
16
 
23
- ## Documentation and examples
24
-
25
- - [The Solana Cookbook](https://solanacookbook.com/) has extensive task-based documentation using this library.
26
- - For more detail on individual functions, see the [latest API Documentation](https://solana-labs.github.io/solana-web3.js/)
17
+ Use this to interact with accounts and programs on the Solana network through the Solana [JSON RPC API](https://docs.solana.com/apps/jsonrpc-api).
27
18
 
28
19
  ## Installation
29
20
 
30
- ### Yarn
31
-
32
- ```
33
- $ yarn add @solana/web3.js
34
- ```
35
-
36
- ### npm
21
+ ### For use in Node.js or a web application
37
22
 
38
23
  ```
39
24
  $ npm install --save @solana/web3.js
40
25
  ```
41
26
 
42
- ### Browser bundle
27
+ ### For use in a browser, without a build system
43
28
 
44
29
  ```html
45
30
  <!-- Development (un-minified) -->
@@ -49,40 +34,20 @@ $ npm install --save @solana/web3.js
49
34
  <script src="https://unpkg.com/@solana/web3.js@latest/lib/index.iife.min.js"></script>
50
35
  ```
51
36
 
52
- ## Development Environment Setup
53
-
54
- Install the latest Solana release from https://docs.solana.com/cli/install-solana-cli-tools
55
-
56
- ### Run test validator
57
-
58
- **Use `solana-test-validator` from the latest Solana release**
59
-
60
- ### SBF program development
61
-
62
- **Use `cargo build-bpf` from the latest Solana release**
63
-
64
- ## Usage
37
+ ## Documentation and examples
65
38
 
66
- ### Javascript
39
+ - [The Solana Cookbook](https://solanacookbook.com/) has extensive task-based documentation using this library.
40
+ - For more detail on individual functions, see the [latest API Documentation](https://solana-labs.github.io/solana-web3.js)
67
41
 
68
- ```js
69
- const solanaWeb3 = require('@solana/web3.js');
70
- console.log(solanaWeb3);
71
- ```
42
+ ## Getting help
72
43
 
73
- ### ES6
44
+ Have a question or a problem? Check the [Solana Stack Exchange](https://solana.stackexchange.com) to see if anyone else is having the same one. If not, [post a new question](https://solana.stackexchange.com/questions/ask).
74
45
 
75
- ```js
76
- import * as solanaWeb3 from '@solana/web3.js';
77
- console.log(solanaWeb3);
78
- ```
46
+ Include:
79
47
 
80
- ### Browser bundle
81
-
82
- ```js
83
- // `solanaWeb3` is provided in the global namespace by the `solanaWeb3.min.js` script bundle.
84
- console.log(solanaWeb3);
85
- ```
48
+ - A detailed description of what you're trying to achieve
49
+ - Source code, if possible
50
+ - The text of any errors you encountered, with stacktraces if available
86
51
 
87
52
  ## Compatibility
88
53
 
@@ -102,18 +67,51 @@ This library requires a JavaScript runtime that supports [`BigInt`](https://deve
102
67
  - React Native:
103
68
  - \>=0.7.0 using the [Hermes](https://reactnative.dev/blog/2022/07/08/hermes-as-the-default) engine ([integration guide](https://solanacookbook.com/integrations/react-native.html#how-to-use-solana-web3-js-in-a-react-native-app)):
104
69
 
105
- ## Releases
70
+ ## Development environment setup
71
+
72
+ ### Testing
73
+
74
+ #### Unit tests
75
+
76
+ To run the full suite of unit tests, excute the following in the root:
77
+
78
+ ```shell
79
+ $ npm test
80
+ ```
81
+
82
+ #### Integration tests
83
+
84
+ Integration tests require a validator client running on your machine.
85
+
86
+ To install a test validator:
87
+
88
+ ```shell
89
+ $ npm run test:live-with-test-validator:setup
90
+ ```
91
+
92
+ To start the test validator and run all of the integration tests in live mode:
93
+
94
+ ```shell
95
+ $ cd packages/library-legacy
96
+ $ npm run test:live-with-test-validator
97
+ ```
98
+
99
+ ### Speed up build times with remote caching
106
100
 
107
- Releases are available on [Github](https://github.com/solana-labs/solana-web3.js/releases)
108
- and [npmjs.com](https://www.npmjs.com/package/@solana/web3.js)
101
+ Cache build artifacts remotely so that you, others, and the CI server can take advantage of each others' build efforts.
109
102
 
110
- Each Github release features a tarball containing API documentation and a
111
- minified version of the module suitable for direct use in a browser environment
112
- (`<script>` tag)
103
+ 1. Log the Turborepo CLI into the Solana Vercel account
104
+ ```shell
105
+ pnpm turbo login
106
+ ```
107
+ 2. Link the repository to the remote cache
108
+ ```shell
109
+ pnpm turbo link
110
+ ```
113
111
 
114
112
  ## Contributing
115
113
 
116
- If you have an issue to report or would like to contribute a pull request, please do so against the monorepo at https://github.com/solana-labs/solana. We are not able to merge pull requests into the mirror repo https://github.com/solana-labs/solana-web3.js and issues filed there may go unnoticed.
114
+ If you found a bug or would like to request a feature, please [file an issue](https://github.com/solana-labs/solana-web3.js/issues/new). If, based on the discussion on an issue you would like to offer a code change, please make a [pull request](https://github.com/solana-labs/solana-web3.js/compare). If neither of these describes what you would like to contribute, read the [getting help](#getting-help) section above.
117
115
 
118
116
  ## Disclaimer
119
117