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: 168d5e088edd48f9f0c1a877e888592ca4cfdf38
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: e1567abf41c5746f00ccd18c52021b9d6c566bb9
Choose a head ref

Commits on Nov 25, 2021

  1. chore: bump typedoc from 0.22.8 to 0.22.10 in /web3.js (#21425)

    Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.8 to 0.22.10.
    - [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
    - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
    - [Commits](TypeStrong/typedoc@v0.22.8...v0.22.10)
    
    ---
    updated-dependencies:
    - dependency-name: typedoc
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    00a7252 View commit details
  2. chore: bump @babel/preset-env from 7.16.0 to 7.16.4 in /web3.js (#21428)

    Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.16.0 to 7.16.4.
    - [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.16.4/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>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    8177dd7 View commit details
  3. chore: bump @types/node from 16.11.7 to 16.11.10 in /web3.js (#21430)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.7 to 16.11.10.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    b231d1a View commit details
  4. chore: bump @commitlint/travis-cli from 14.1.0 to 15.0.0 in /web3.js …

    …(#21431)
    
    Bumps [@commitlint/travis-cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/travis-cli) from 14.1.0 to 15.0.0.
    - [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/v15.0.0/@commitlint/travis-cli)
    
    ---
    updated-dependencies:
    - dependency-name: "@commitlint/travis-cli"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    67d799a View commit details
  5. chore: bump @babel/plugin-transform-runtime in /web3.js (#21432)

    Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.16.0 to 7.16.4.
    - [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.16.4/packages/babel-plugin-transform-runtime)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/plugin-transform-runtime"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    760a3c1 View commit details
  6. chore: bump prettier from 2.4.1 to 2.5.0 in /web3.js (#21434)

    Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.0.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@2.4.1...2.5.0)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    04e5733 View commit details
  7. Copy the full SHA
    a871789 View commit details
  8. chore: bump flowgen from 1.15.0 to 1.16.0 in /web3.js (#21435)

    Bumps [flowgen](https://github.com/joarwilk/flowgen) from 1.15.0 to 1.16.0.
    - [Release notes](https://github.com/joarwilk/flowgen/releases)
    - [Commits](https://github.com/joarwilk/flowgen/commits)
    
    ---
    updated-dependencies:
    - dependency-name: flowgen
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    4875fc4 View commit details
  9. chore: bump semantic-release from 18.0.0 to 18.0.1 in /web3.js (#21436)

    Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 18.0.0 to 18.0.1.
    - [Release notes](https://github.com/semantic-release/semantic-release/releases)
    - [Commits](semantic-release/semantic-release@v18.0.0...v18.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: semantic-release
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    ad43f38 View commit details
  10. chore: bump @commitlint/config-conventional in /web3.js (#21438)

    Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) from 14.1.0 to 15.0.0.
    - [Release notes](https://github.com/conventional-changelog/commitlint/releases)
    - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
    - [Commits](https://github.com/conventional-changelog/commitlint/commits/v15.0.0/@commitlint/config-conventional)
    
    ---
    updated-dependencies:
    - dependency-name: "@commitlint/config-conventional"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    9c00e9d View commit details
  11. chore: bump rollup from 2.60.0 to 2.60.1 in /web3.js (#21439)

    Bumps [rollup](https://github.com/rollup/rollup) from 2.60.0 to 2.60.1.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.60.0...v2.60.1)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 25, 2021
    Copy the full SHA
    e900c5b View commit details

Commits on Nov 29, 2021

  1. fix: refine stacktrace attribution of errors thrown from middleware (…

    …#21470)
    
    * Refine middleware types to include the method signature and to express the nullability of the middleware.
    
    * Make sure that the stacktrace does not involve middleware unless the error originated from the middleware itself.
    
    Co-authored-by: steveluscher <github@steveluscher.com>
    steveluscher and steveluscher authored Nov 29, 2021
    Copy the full SHA
    45923ca View commit details
  2. chore: bump puppeteer from 11.0.0 to 12.0.0 in /web3.js (#21482)

    Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 11.0.0 to 12.0.0.
    - [Release notes](https://github.com/puppeteer/puppeteer/releases)
    - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
    - [Commits](puppeteer/puppeteer@v11.0.0...v12.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: puppeteer
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 29, 2021
    Copy the full SHA
    523d41d View commit details

Commits on Nov 30, 2021

  1. chore: bump puppeteer from 12.0.0 to 12.0.1 in /web3.js (#21505)

    Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 12.0.0 to 12.0.1.
    - [Release notes](https://github.com/puppeteer/puppeteer/releases)
    - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
    - [Commits](puppeteer/puppeteer@v12.0.0...v12.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: puppeteer
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 30, 2021
    Copy the full SHA
    aee5ffb View commit details
  2. chore: bump @types/express-serve-static-core in /web3.js (#21510)

    Bumps [@types/express-serve-static-core](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express-serve-static-core) from 4.17.25 to 4.17.26.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express-serve-static-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/express-serve-static-core"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 30, 2021
    Copy the full SHA
    4967230 View commit details
  3. chore: bump @types/node from 16.11.10 to 16.11.11 in /web3.js (#21511)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.10 to 16.11.11.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 30, 2021
    Copy the full SHA
    c9db75a View commit details
  4. chore: bump rollup from 2.60.1 to 2.60.2 in /web3.js (#21512)

    Bumps [rollup](https://github.com/rollup/rollup) from 2.60.1 to 2.60.2.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.60.1...v2.60.2)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 30, 2021
    Copy the full SHA
    28c0510 View commit details
  5. fix(web3.js): VoteAccount.fromAccountData() throws range error (#21091)

    * fix(vote-account): rangeError [ERR_OUT_OF_RANGE] error
    
    The web3 buffer layout is out-of-date with the current `VoteState` implementation. The buffer layout
    is updated to match the structure in
    https://github.com/solana-labs/solana/blob/master/account-decoder/src/parse_vote.rs
    
    fix #20786
    
    * docs(vote account): update reference to match new payload
    
    * fix(vote-account): update buffer layout for prior voters
    
    Update buffer layout for prior voters to match serialized data
    
    * fix(vote-account): response showing buffers instead of public keys
    
    transform buffers into public keys
    
    * refactor(vote account): extract parsing into function calls
    
    * feat(vote account): address PR comments
    
    * fix(web3.js vote account): start prior voters array from given index
    
    * fix(web3.js vote account): incorrect data for prior voters array
    
    * Update web3.js/src/vote-account.ts
    
    Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
    
    Co-authored-by: Justin Starry <justin.m.starry@gmail.com>
    cogoo and jstarry authored Nov 30, 2021
    Copy the full SHA
    addccdc View commit details

Commits on Dec 1, 2021

  1. chore: upgrade to Rust 2021

    mvines committed Dec 1, 2021
    Copy the full SHA
    8d18805 View commit details

Commits on Dec 8, 2021

  1. chore: bump prettier from 2.5.0 to 2.5.1 in /web3.js (#21685)

    Bumps [prettier](https://github.com/prettier/prettier) from 2.5.0 to 2.5.1.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@2.5.0...2.5.1)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 8, 2021
    Copy the full SHA
    0e9615b View commit details
  2. chore: bump @types/node from 16.11.11 to 16.11.12 in /web3.js (#21689)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.11.11 to 16.11.12.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 8, 2021
    Copy the full SHA
    31c4052 View commit details

Commits on Dec 20, 2021

  1. Copy the full SHA
    32dbd62 View commit details

Commits on Dec 29, 2021

  1. fix: add Sysvar PubKeys

    * web3.js: Add Sysvar PubKeys
    
    * remove fees sysvar
    fanatid authored Dec 29, 2021
    Copy the full SHA
    5e7f643 View commit details

Commits on Dec 30, 2021

  1. chore: fix typo in AccountInfo docs (#22196)

    Victor Wu authored Dec 30, 2021
    Copy the full SHA
    fee44e5 View commit details

Commits on Jan 4, 2022

  1. Copy the full SHA
    deaf95e View commit details
  2. fix: add owner to token balance type

    vpontis authored and mvines committed Jan 4, 2022
    Copy the full SHA
    2cb7c1f View commit details

Commits on Jan 8, 2022

  1. Copy the full SHA
    410780a View commit details

Commits on Jan 11, 2022

  1. feat: add Connection.getFeeForMessage (#22128)

    * web3.js: add Connection.getFeeForMessage
    
    * throw if value is null
    
    * fix null value
    
    * fix types
    fanatid authored Jan 11, 2022
    Copy the full SHA
    03268b6 View commit details

Commits on Jan 21, 2022

  1. Copy the full SHA
    308962c View commit details
  2. Copy the full SHA
    46aa013 View commit details
  3. chore: add test timeouts

    mvines committed Jan 21, 2022
    Copy the full SHA
    51948b9 View commit details
  4. shellcheck

    mvines committed Jan 21, 2022
    Copy the full SHA
    6a00eab View commit details

Commits on Jan 22, 2022

  1. Copy the full SHA
    fc5b447 View commit details
  2. Copy the full SHA
    6d1c701 View commit details

Commits on Jan 24, 2022

  1. Copy the full SHA
    7d92227 View commit details

Commits on Jan 27, 2022

  1. chore: update Connection to non-deprecated endpoints (#22800)

    * chore: remove usage of `getConfirmedTransaction`
    
    * chore: use `getBlock` instead of `getConfirmedBlock`
    
    * chore: add `getLatestBlockhash` and test
    joncinque authored Jan 27, 2022
    Copy the full SHA
    c2e5fd9 View commit details

Commits on Jan 31, 2022

  1. chore: fixes typo (#22830)

    mkarots authored Jan 31, 2022
    Copy the full SHA
    db54ebb View commit details

Commits on Feb 3, 2022

  1. fix: enable maxRetries option to SendOptions (#22893)

    * Web3.js - enable maxRetries option to SendOptions
    
    * Prettier
    hareeshnagaraj authored Feb 3, 2022
    Copy the full SHA
    237ee3e View commit details

Commits on Feb 4, 2022

  1. fix: swallow error if socket has already been closed (#22934)

    * Swallow error if socket has already been closed
    
    * fix: log error
    marty-mcflai authored Feb 4, 2022
    Copy the full SHA
    21e29f0 View commit details
  2. Copy the full SHA
    2652c54 View commit details

Commits on Feb 8, 2022

  1. Copy the full SHA
    a3602ec View commit details

Commits on Feb 9, 2022

  1. Copy the full SHA
    829cf65 View commit details

Commits on Feb 15, 2022

  1. chore: bump vm2 from 3.9.5 to 3.9.7 in /web3.js (#23125)

    Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.7.
    - [Release notes](https://github.com/patriksimek/vm2/releases)
    - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
    - [Commits](patriksimek/vm2@3.9.5...3.9.7)
    
    ---
    updated-dependencies:
    - dependency-name: vm2
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 15, 2022
    Copy the full SHA
    f947609 View commit details

Commits on Feb 17, 2022

  1. Copy the full SHA
    834f1ff View commit details

Commits on Feb 21, 2022

  1. fix: simulateTransaction accounts items can be null (#23229)

    * fix: simulated accounts can be null
    
    * Use Missing rather than token program id
    
    Co-authored-by: Arrowana <8245419+Arrowana@users.noreply.github.com>
    Arrowana and Arrowana authored Feb 21, 2022
    Copy the full SHA
    7970c03 View commit details

Commits on Feb 22, 2022

  1. Add script for running nightly rustfmt on all workspaces (#23244)

    * Add script for running nightly rustfmt on all workspaces
    
    * invalidate ci cache
    jstarry authored Feb 22, 2022
    Copy the full SHA
    ebcfe5e View commit details

Commits on Mar 2, 2022

  1. 5
    Copy the full SHA
    dfda2cc View commit details
  2. feat: add getMultipleAccountsInfoAndContext method to Connection

    Similar to `getAccountInfoAndContext`.
    kklas authored and mvines committed Mar 2, 2022
    Copy the full SHA
    8ee1be4 View commit details

Commits on Mar 8, 2022

  1. fix: update 'borsh' dependency to v0.7.0 (#22425)

    Fixes issue with usage of 'global' when used in the browser.
    
    Currently the web3.js distributable is built with a commonJS rollup, but if you
    use the npm package with another packager, it will fail when it hits the call
    to 'global' inside the browser. Borsh fixed this in v0.7.0
    mdp authored Mar 8, 2022
    Copy the full SHA
    8853e2a View commit details

Commits on Mar 9, 2022

  1. chore: bump follow-redirects from 1.13.1 to 1.14.8 in /web3.js (#23122)

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.1 to 1.14.8.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.13.1...v1.14.8)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 9, 2022
    Copy the full SHA
    881471b View commit details
Showing with 19,606 additions and 25,512 deletions.
  1. +0 −1 .eslintignore
  2. +1 −8 .eslintrc.js
  3. +0 −11 .flowconfig
  4. +48 −0 .github/workflows/cicd.yml
  5. +0 −6 .mocharc.js
  6. +0 −1 .prettierignore
  7. +15 −8 .travis/before_install.sh
  8. +1 −3 .travis/script.sh
  9. +8 −14 README.md
  10. +0 −25 examples/get_account_info.js
  11. +0 −37 examples/send_sol.js
  12. +0 −21 mocha.html
  13. +3,589 −23,452 package-lock.json
  14. +30 −32 package.json
  15. +90 −32 rollup.config.js
  16. +6 −3 scripts/typegen.sh
  17. +4 −0 src/__forks__/browser/fetch-impl.ts
  18. +4 −0 src/__forks__/react-native/fetch-impl.ts
  19. +433 −0 src/address-lookup-table-program.ts
  20. +278 −0 src/compute-budget.ts
  21. +1,722 −793 src/connection.ts
  22. +21 −4 src/ed25519-program.ts
  23. +41 −0 src/errors.ts
  24. +13 −0 src/fetch-impl.ts
  25. +5 −0 src/index.ts
  26. +15 −5 src/instruction.ts
  27. +89 −22 src/layout.ts
  28. +18 −4 src/loader.ts
  29. +22 −5 src/message.ts
  30. +15 −2 src/nonce-account.ts
  31. +35 −7 src/publickey.ts
  32. +15 −1 src/secp256k1-program.ts
  33. +150 −38 src/stake-program.ts
  34. +145 −44 src/system-program.ts
  35. +16 −4 src/sysvar.ts
  36. +10 −0 src/transaction-constants.ts
  37. +199 −43 src/transaction.ts
  38. +2 −0 src/util/__forks__/react-native/url-impl.ts
  39. +43 −0 src/util/bigint.ts
  40. +2 −2 src/util/cluster.ts
  41. +2 −0 src/util/{url.ts → makeWebsocketUrl.ts}
  42. +53 −7 src/util/send-and-confirm-raw-transaction.ts
  43. +21 −6 src/util/send-and-confirm-transaction.ts
  44. +35 −0 src/util/tx-expiry-custom-errors.ts
  45. +2 −0 src/util/url-impl.ts
  46. +137 −36 src/vote-account.ts
  47. +413 −0 src/vote-program.ts
  48. +266 −0 test/address-lookup-table-program.test.ts
  49. +22 −3 test/bpf-loader.test.ts
  50. +220 −0 test/compute-budget.test.ts
  51. +951 −0 test/connection-subscriptions.test.ts
  52. +1,547 −647 test/connection.test.ts
  53. +1 −1 test/fixtures/noop-program/Cargo.toml
  54. +0 −2 test/fixtures/noop-program/Xargo.toml
  55. BIN test/fixtures/noop-program/solana_bpf_rust_noop.so
  56. +10 −4 test/fixtures/noop-program/src/lib.rs
  57. +77 −22 test/mocks/rpc-http.ts
  58. +25 −6 test/mocks/rpc-websockets.ts
  59. +24 −0 test/publickey.test.ts
  60. +0 −61 test/rollup.config.js
  61. +113 −31 test/stake-program.test.ts
  62. +12 −2 test/system-program.test.ts
  63. +1 −1 test/transaction-payer.test.ts
  64. +488 −54 test/transaction.test.ts
  65. +265 −0 test/vote-program.test.ts
  66. +3 −0 test/websocket.test.ts
  67. +3 −1 tsconfig.json
  68. +1 −0 typedoc.json
  69. +7,829 −0 yarn.lock
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
/deploy
/doc
/lib
/module.flow.js
/.eslintrc.js
/test/.eslintrc.js
/test/dist
9 changes: 1 addition & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -31,17 +31,10 @@ module.exports = {
'newlines-between': 'always',
},
],
indent: [
'error',
2,
{
MemberExpression: 1,
SwitchCase: 1,
},
],
'linebreak-style': ['error', 'unix'],
'no-console': [0],
'no-trailing-spaces': ['error'],
'no-undef': 'off',
'no-unused-vars': 'off',
quotes: [
'error',
11 changes: 0 additions & 11 deletions .flowconfig

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI/CD

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "npm"

- name: Build
run: |
sh -c "$(curl -sSfL https://release.solana.com/edge/install)"
PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
solana --version
npm install -g npm@7
npm install
npm run build
ls -l lib
test -r lib/index.iife.js
test -r lib/index.cjs.js
test -r lib/index.esm.js
npm run ok
npm run codecov
npm run test:live-with-test-validator
- name: Publish NPM
run: |
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Deploy Github Page
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc
6 changes: 0 additions & 6 deletions .mocharc.js

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
test/dist
module.flow.js
declarations
23 changes: 15 additions & 8 deletions .travis/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# |source| this file

wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
sudo apt-get update
sudo apt-get install -y clang-7 --allow-unauthenticated
sudo apt-get install -y openssl --allow-unauthenticated
sudo apt-get install -y libssl-dev --allow-unauthenticated
sudo apt-get install -y libssl1.1 --allow-unauthenticated
clang-7 --version
if [[ -n $TRAVIS ]]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
sudo apt-get update
sudo apt-get install -y clang-7 --allow-unauthenticated
sudo apt-get install -y openssl --allow-unauthenticated
sudo apt-get install -y libssl-dev --allow-unauthenticated
sudo apt-get install -y libssl1.1 --allow-unauthenticated
clang-7 --version
fi

sh -c "$(curl -sSfL https://release.solana.com/edge/install)"
PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
solana --version

if [[ -n $GITHUB_ACTIONS ]]; then
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
npm install -g npm@7
fi
4 changes: 1 addition & 3 deletions .travis/script.sh
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@ ls -l lib
test -r lib/index.iife.js
test -r lib/index.cjs.js
test -r lib/index.esm.js
npm run doc
npm run lint
npm run ok
npm run codecov
npm run test:live-with-test-validator
npm run test:browser-with-test-validator
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,10 @@

This is the Solana Javascript API built on the Solana [JSON RPC API](https://docs.solana.com/apps/jsonrpc-api)

[Latest API Documentation](https://solana-labs.github.io/solana-web3.js/)
## Documentation and examples

- [The Solana Cookbook](https://solanacookbook.com/) has extensive task-based documentation using this library.
- For more detail on individual functions, see the [latest API Documentation](https://solana-labs.github.io/solana-web3.js/)

## Installation

@@ -84,20 +87,11 @@ console.log(solanaWeb3);
console.log(solanaWeb3);
```

## Examples

Example scripts for the web3.js repo and native programs:

- [Web3 Examples](https://github.com/solana-labs/solana/tree/master/web3.js/examples)

Example scripts for the Solana Program Library:

- [Token Program Examples](https://github.com/solana-labs/solana-program-library/tree/master/token/js/examples)

## Flow
## Flow Support (Discontinued)

A [Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
https://unpkg.com/@solana/web3.js@latest/module.flow.js.
Flow types are no longer supported in new releases. The last release with Flow support is v1.37.2 and its
[Flow library definition](https://flow.org/en/docs/libdefs/) is provided at
https://unpkg.com/@solana/web3.js@v1.37.2/module.flow.js.
Download the file and add the following line under the [libs] section of your project's `.flowconfig` to
activate it:

25 changes: 0 additions & 25 deletions examples/get_account_info.js

This file was deleted.

37 changes: 0 additions & 37 deletions examples/send_sol.js

This file was deleted.

21 changes: 0 additions & 21 deletions mocha.html

This file was deleted.

Loading