Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: solana-labs/solana-web3.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 85a6a3f89a951d55916319dc6ba2e0e7d9a0e8aa
Choose a base ref
...
head repository: solana-labs/solana-web3.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 71419862c876c1672a2d452684eb388d182b7294
Choose a head ref

Commits on Jul 25, 2022

  1. fix: (web3.js) clear the idle timer whenever the websocket closes (#2…

    …6734)
    
    fix: clear the idle timer whenever the websocket closes
    steveluscher authored Jul 25, 2022
    Copy the full SHA
    091faf5 View commit details

Commits on Aug 1, 2022

  1. chore: Update web3.js README to ask that contributions and issues reg…

    …arding web3.js be filed against the monorepo and not the mirror
    steveluscher authored Aug 1, 2022
    Copy the full SHA
    2dc0551 View commit details

Commits on Aug 3, 2022

  1. Copy the full SHA
    3708ea1 View commit details

Commits on Aug 10, 2022

  1. feat: handle loadedAddresses field in tx meta responses (#27065)

    feat: handle loadedAddresses field in tx meta responses
    jstarry authored Aug 10, 2022
    Copy the full SHA
    bbfd5d3 View commit details
  2. Copy the full SHA
    d7ed86a View commit details

Commits on Aug 11, 2022

  1. Copy the full SHA
    7d05857 View commit details

Commits on Aug 12, 2022

  1. Copy the full SHA
    9823da7 View commit details
  2. Copy the full SHA
    53dd609 View commit details
  3. Copy the full SHA
    81a1d2c View commit details
  4. chore: restructure utils code

    jstarry committed Aug 12, 2022
    Copy the full SHA
    732f8aa View commit details

Commits on Aug 14, 2022

  1. Copy the full SHA
    895de4c View commit details
  2. Copy the full SHA
    659067b View commit details

Commits on Aug 15, 2022

  1. chore: bump @babel/preset-env from 7.18.0 to 7.18.10 in /web3.js (#27…

    …138)
    
    Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.18.0 to 7.18.10.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.18.10/packages/babel-preset-env)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/preset-env"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 15, 2022
    Copy the full SHA
    55652a0 View commit details

Commits on Aug 16, 2022

  1. VoteProgram.safeWithdraw function to safeguard against accidental vot…

    …e account closures (#26586)
    
    feat: safe withdraw function
    
    Co-authored-by: aschonfeld <andrew@proofofalpha.io>
    aschonfeld and aschonfeld authored Aug 16, 2022
    Copy the full SHA
    2cc39ab View commit details

Commits on Aug 23, 2022

  1. chore: bump @babel/core from 7.18.0 to 7.18.13 in /web3.js (#27329)

    Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.18.0 to 7.18.13.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.18.13/packages/babel-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/core"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 23, 2022
    Copy the full SHA
    9abf36c View commit details
  2. chore: bump @babel/register from 7.17.7 to 7.18.9 in /web3.js (#27330)

    Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register) from 7.17.7 to 7.18.9.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.18.9/packages/babel-register)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/register"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 23, 2022
    Copy the full SHA
    eaa318d View commit details
  3. chore: bump @commitlint/travis-cli from 17.0.0 to 17.0.3 in /web3.js …

    …(#27331)
    
    Bumps [@commitlint/travis-cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/travis-cli) from 17.0.0 to 17.0.3.
    - [Release notes](https://github.com/conventional-changelog/commitlint/releases)
    - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/travis-cli/CHANGELOG.md)
    - [Commits](https://github.com/conventional-changelog/commitlint/commits/v17.0.3/@commitlint/travis-cli)
    
    ---
    updated-dependencies:
    - dependency-name: "@commitlint/travis-cli"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 23, 2022
    Copy the full SHA
    40022a3 View commit details
  4. chore: bump eslint-plugin-mocha from 10.0.4 to 10.1.0 in /web3.js (#2…

    …7332)
    
    Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha) from 10.0.4 to 10.1.0.
    - [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases)
    - [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/CHANGELOG.md)
    - [Commits](lo1tuma/eslint-plugin-mocha@10.0.4...10.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: eslint-plugin-mocha
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 23, 2022
    Copy the full SHA
    8d5e263 View commit details

Commits on Aug 24, 2022

  1. [web3.js] Eliminate dependency on URL class (#27349)

    * fix: `makeWebsocketUrl` no longer depends on the `URL` class
    * fix: `Connection` no longer relies on the `URL` class
    * fix: remove dependency on `react-native-url-polyfill`
    steveluscher authored Aug 24, 2022
    Copy the full SHA
    4f2d052 View commit details

Commits on Aug 25, 2022

  1. feat: add support for creating version 0 transactions (#27142)

    * feat: add support for version 0 transactions
    
    * chore: feedback
    
    * chore: update VersionedMessage type
    
    * chore: use literals for version getter
    
    * chore: fix lint error
    
    * chore: switch to VersionedMessage.deserialize
    jstarry authored Aug 25, 2022
    Copy the full SHA
    8e30e66 View commit details
  2. [web3.js] Replace sha256 and secp256k1 impls (#27390)

    * fix: replace `@ethersproject/sha2` with `@noble/hashes/sha256`
    
    * fix: replace `secp256k1` with `@noble/secp256k1`
    steveluscher authored Aug 25, 2022
    Copy the full SHA
    f8b5608 View commit details

Commits on Aug 26, 2022

  1. Update rollup script to exclude new secp256k1 and hmac/sha256 depende…

    …ncies (#27428)
    
    * fix: repair build script, not to bundle @noble libraries but to keep them as external deps
    
    * chore: remove secp256k1 Typescript types
    steveluscher authored Aug 26, 2022
    Copy the full SHA
    ef5a6da View commit details

Commits on Aug 28, 2022

  1. fix: replace tweetnacl impl

    * Install `@noble/ed25519` and create a shim
    
    * Replace `tweetnacl` with `@noble/ed25519` in `Account` class
    
    * Replace `tweetnacl` with `@noble/ed25519` in `Keypair` class
    
    * Replace `tweetnacl` with `@noble/ed25519` in `PublicKey` class
    
    * Replace `tweetnacl` with `@noble/ed25519` in `Ed25519Program` class
    
    * Replace `tweetnacl` with `@noble/ed25519` in `Transaction` class
    
    * Replace `tweetnacl` with `@noble/ed25519` in versioned `Transaction` class
    
    * Remove `tweetnacl` from project
    
    * Damnit, typedoc.
    steveluscher authored Aug 28, 2022
    Copy the full SHA
    7141986 View commit details
Showing with 21,006 additions and 1,898 deletions.
  1. +4 −0 README.md
  2. +17,715 −663 package-lock.json
  3. +4 −6 package.json
  4. +10 −9 rollup.config.js
  5. +39 −0 src/account-data.ts
  6. +19 −10 src/account.ts
  7. +70 −16 src/connection.ts
  8. +2 −0 src/fee-calculator.ts
  9. +3 −14 src/index.ts
  10. +19 −24 src/keypair.ts
  11. +7 −0 src/layout.ts
  12. +4 −5 src/loader.ts
  13. +45 −0 src/message/index.ts
  14. +46 −27 src/{message.ts → message/legacy.ts}
  15. +324 −0 src/message/v0.ts
  16. +27 −0 src/message/versioned.ts
  17. +1 −1 src/nonce-account.ts
  18. +8 −6 src/{address-lookup-table-program.ts → programs/address-lookup-table/index.ts}
  19. +84 −0 src/programs/address-lookup-table/state.ts
  20. +4 −4 src/{ → programs}/compute-budget.ts
  21. +6 −6 src/{ed25519-program.ts → programs/ed25519.ts}
  22. +7 −0 src/programs/index.ts
  23. +10 −9 src/{secp256k1-program.ts → programs/secp256k1.ts}
  24. +7 −7 src/{stake-program.ts → programs/stake.ts}
  25. +8 −8 src/{system-program.ts → programs/system.ts}
  26. +28 −7 src/{vote-program.ts → programs/vote.ts}
  27. +16 −75 src/publickey.ts
  28. +2 −0 src/{transaction-constants.ts → transaction/constants.ts}
  29. 0 src/{util/tx-expiry-custom-errors.ts → transaction/expiry-custom-errors.ts}
  30. +4 −0 src/transaction/index.ts
  31. +13 −18 src/{transaction.ts → transaction/legacy.ts}
  32. +105 −0 src/transaction/versioned.ts
  33. +0 −2 src/util/__forks__/react-native/url-impl.ts
  34. +0 −20 src/util/makeWebsocketUrl.ts
  35. +0 −2 src/util/url-impl.ts
  36. 0 src/{util → utils}/assert.ts
  37. 0 src/{util → utils}/bigint.ts
  38. 0 src/{util → utils}/borsh-schema.ts
  39. 0 src/{util → utils}/cluster.ts
  40. +46 −0 src/utils/ed25519.ts
  41. +5 −0 src/utils/index.ts
  42. +26 −0 src/utils/makeWebsocketUrl.ts
  43. 0 src/{util → utils}/promise-timeout.ts
  44. +18 −0 src/utils/secp256k1.ts
  45. 0 src/{util → utils}/send-and-confirm-raw-transaction.ts
  46. 0 src/{util → utils}/send-and-confirm-transaction.ts
  47. 0 src/{util → utils}/shortvec-encoding.ts
  48. 0 src/{util → utils}/sleep.ts
  49. 0 src/{util → utils}/to-buffer.ts
  50. +4 −6 src/validator-info.ts
  51. +1 −1 src/vote-account.ts
  52. +1 −1 test/agent-manager.test.ts
  53. +1 −1 test/cluster.test.ts
  54. +214 −7 test/connection.test.ts
  55. +52 −0 test/makeWebsocketUrl.test.ts
  56. +56 −0 test/message-tests/v0.test.ts
  57. +1 −1 test/mocks/rpc-http.ts
  58. +4 −4 test/{address-lookup-table-program.test.ts → program-tests/address-lookup-table.test.ts}
  59. +3 −3 test/{ → program-tests}/compute-budget.test.ts
  60. +4 −4 test/{ed25519-program.test.ts → program-tests/ed25519.test.ts}
  61. +16 −9 test/{secp256k1-program.test.ts → program-tests/secp256k1.test.ts}
  62. +3 −3 test/{stake-program.test.ts → program-tests/stake.test.ts}
  63. +5 −5 test/{system-program.test.ts → program-tests/system.test.ts}
  64. +18 −3 test/{vote-program.test.ts → program-tests/vote.test.ts}
  65. +1 −1 test/shortvec-encoding.test.ts
  66. +1 −1 test/transaction-payer.test.ts
  67. +31 −8 test/transaction.test.ts
  68. +2 −4 test/validator-info.test.ts
  69. +1 −1 test/websocket.test.ts
  70. +1,851 −896 yarn.lock
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -109,6 +109,10 @@ Each Github release features a tarball containing API documentation and a
minified version of the module suitable for direct use in a browser environment
(`<script>` tag)

## Contributing

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.

## Disclaimer

All claims, content, designs, algorithms, estimates, roadmaps,
Loading