@solana/web3.js 0.0.0-development → 0.0.0-pr-29130

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.
Files changed (47) hide show
  1. package/README.md +18 -16
  2. package/lib/index.browser.cjs.js +1955 -1660
  3. package/lib/index.browser.cjs.js.map +1 -1
  4. package/lib/index.browser.esm.js +2058 -1770
  5. package/lib/index.browser.esm.js.map +1 -1
  6. package/lib/index.cjs.js +4733 -1870
  7. package/lib/index.cjs.js.map +1 -1
  8. package/lib/index.d.ts +3451 -2821
  9. package/lib/index.esm.js +4761 -1909
  10. package/lib/index.esm.js.map +1 -1
  11. package/lib/index.iife.js +5212 -5553
  12. package/lib/index.iife.js.map +1 -1
  13. package/lib/index.iife.min.js +7 -14
  14. package/lib/index.iife.min.js.map +1 -1
  15. package/lib/index.native.js +1955 -1660
  16. package/lib/index.native.js.map +1 -1
  17. package/package.json +18 -21
  18. package/src/account.ts +19 -10
  19. package/src/bpf-loader.ts +2 -2
  20. package/src/connection.ts +1377 -185
  21. package/src/epoch-schedule.ts +1 -1
  22. package/src/keypair.ts +20 -25
  23. package/src/layout.ts +29 -0
  24. package/src/message/account-keys.ts +79 -0
  25. package/src/message/compiled-keys.ts +165 -0
  26. package/src/message/index.ts +21 -6
  27. package/src/message/legacy.ts +103 -16
  28. package/src/message/v0.ts +496 -0
  29. package/src/message/versioned.ts +36 -0
  30. package/src/nonce-account.ts +7 -3
  31. package/src/programs/address-lookup-table/state.ts +1 -1
  32. package/src/programs/compute-budget.ts +3 -0
  33. package/src/programs/ed25519.ts +2 -2
  34. package/src/programs/secp256k1.ts +5 -7
  35. package/src/programs/vote.ts +109 -2
  36. package/src/publickey.ts +25 -73
  37. package/src/transaction/constants.ts +2 -0
  38. package/src/transaction/expiry-custom-errors.ts +13 -0
  39. package/src/transaction/index.ts +2 -0
  40. package/src/transaction/legacy.ts +46 -9
  41. package/src/transaction/message.ts +140 -0
  42. package/src/transaction/versioned.ts +126 -0
  43. package/src/utils/ed25519.ts +46 -0
  44. package/src/utils/index.ts +1 -0
  45. package/src/utils/send-and-confirm-raw-transaction.ts +13 -0
  46. package/src/utils/send-and-confirm-transaction.ts +53 -19
  47. package/src/agent-manager.ts +0 -44
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
- [![Build status][travis-image]][travis-url]
2
1
  [![codecov][codecov-image]][codecov-url]
3
2
  <br>
4
3
  [![npm][npm-image]][npm-url]
@@ -7,8 +6,6 @@
7
6
  [![semantic-release][semantic-release-image]][semantic-release-url]
8
7
  [![code-style-prettier][code-style-prettier-image]][code-style-prettier-url]
9
8
 
10
- [travis-image]: https://api.travis-ci.org/solana-labs/solana-web3.js.svg?branch=master
11
- [travis-url]: https://travis-ci.org/solana-labs/solana-web3.js
12
9
  [codecov-image]: https://codecov.io/gh/solana-labs/solana-web3.js/branch/master/graph/badge.svg
13
10
  [codecov-url]: https://codecov.io/gh/solana-labs/solana-web3.js
14
11
  [npm-image]: https://img.shields.io/npm/v/@solana/web3.js.svg?style=flat
@@ -60,7 +57,7 @@ Install the latest Solana release from https://docs.solana.com/cli/install-solan
60
57
 
61
58
  **Use `solana-test-validator` from the latest Solana release**
62
59
 
63
- ### BPF program development
60
+ ### SBF program development
64
61
 
65
62
  **Use `cargo build-bpf` from the latest Solana release**
66
63
 
@@ -87,18 +84,23 @@ console.log(solanaWeb3);
87
84
  console.log(solanaWeb3);
88
85
  ```
89
86
 
90
- ## Flow Support (Discontinued)
91
-
92
- Flow types are no longer supported in new releases. The last release with Flow support is v1.37.2 and its
93
- [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
94
- https://unpkg.com/@solana/web3.js@v1.37.2/module.flow.js.
95
- Download the file and add the following line under the [libs] section of your project's `.flowconfig` to
96
- activate it:
97
-
98
- ```ini
99
- [libs]
100
- node_modules/@solana/web3.js/module.flow.js
101
- ```
87
+ ## Compatibility
88
+
89
+ This library requires a JavaScript runtime that supports [`BigInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) and the [exponentiation operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation). Both are supported in the following runtimes:
90
+
91
+ - Browsers, by [release date](https://caniuse.com/bigint):
92
+ - Chrome: May 2018
93
+ - Firefox: July 2019
94
+ - Safari: September 2020
95
+ - Mobile Safari: September 2020
96
+ - Edge: January 2020
97
+ - Opera: June 2018
98
+ - Samsung Internet: April 2019
99
+ - Runtimes, [by version](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt):
100
+ - Deno: >=1.0
101
+ - Node: >=10.4.0
102
+ - React Native:
103
+ - \>=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)):
102
104
 
103
105
  ## Releases
104
106