Commit Graph

2275 Commits

Author SHA1 Message Date
Jordan Sexton 18c22c7cef
Add link to new web3.js repo (#30096) 2023-02-27 10:23:54 -06:00
Steven Luscher a2cf25153f
Fuck this whole web3.js thing (#30062) 2023-02-01 14:34:23 -08:00
dependabot[bot] 776ec1682e
chore: bump @typescript-eslint/eslint-plugin from 5.40.1 to 5.50.0 in /web3.js (#30048)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 09:32:43 +00:00
dependabot[bot] cd75252e04
chore: bump mocha from 10.1.0 to 10.2.0 in /web3.js (#30046)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 09:16:25 +00:00
dependabot[bot] fc047a5ee0
chore: bump @babel/preset-env from 7.18.10 to 7.20.2 in /web3.js (#30043)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 09:09:07 +00:00
Steven Luscher 8921b0a35a
fix: [web3] only ever send RPC socket messages when the socket is open (#29195) 2023-01-31 09:03:40 -08:00
joeaba a12bf8c003
Update maintainers references (#29997)
* update maintainers references

* chore: update maintainers reference
2023-01-31 08:07:13 -05:00
dependabot[bot] 376cd588c8
chore: bump rollup from 2.70.2 to 2.79.1 in /web3.js (#30016)
Bumps [rollup](https://github.com/rollup/rollup) from 2.70.2 to 2.79.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.70.2...v2.79.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:34:02 +00:00
dependabot[bot] 3a90c1ab9b
chore: bump @noble/ed25519 from 1.7.0 to 1.7.1 in /web3.js (#30015)
Bumps [@noble/ed25519](https://github.com/paulmillr/noble-ed25519) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/paulmillr/noble-ed25519/releases)
- [Commits](https://github.com/paulmillr/noble-ed25519/compare/1.7.0...1.7.1)

---
updated-dependencies:
- dependency-name: "@noble/ed25519"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:26:26 +00:00
dependabot[bot] 725d27eba9
chore: bump start-server-and-test from 1.14.0 to 1.15.3 in /web3.js (#30013)
Bumps [start-server-and-test](https://github.com/bahmutov/start-server-and-test) from 1.14.0 to 1.15.3.
- [Release notes](https://github.com/bahmutov/start-server-and-test/releases)
- [Commits](https://github.com/bahmutov/start-server-and-test/compare/v1.14.0...v1.15.3)

---
updated-dependencies:
- dependency-name: start-server-and-test
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:19:53 +00:00
dependabot[bot] 48443f4315
chore: bump @rollup/plugin-alias from 3.1.9 to 4.0.3 in /web3.js (#30012)
Bumps [@rollup/plugin-alias](https://github.com/rollup/plugins/tree/HEAD/packages/alias) from 3.1.9 to 4.0.3.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/alias/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/json-v4.0.3/packages/alias)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-alias"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:15:49 +00:00
dependabot[bot] c1d0c0686b
chore: bump @noble/hashes from 1.1.2 to 1.1.5 in /web3.js (#30011)
Bumps [@noble/hashes](https://github.com/paulmillr/noble-hashes) from 1.1.2 to 1.1.5.
- [Release notes](https://github.com/paulmillr/noble-hashes/releases)
- [Commits](https://github.com/paulmillr/noble-hashes/compare/1.1.2...1.1.5)

---
updated-dependencies:
- dependency-name: "@noble/hashes"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:13:59 +00:00
dependabot[bot] c2f7f1f5a4
chore: bump @babel/runtime from 7.20.7 to 7.20.13 in /web3.js (#30008)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.20.7 to 7.20.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.20.13/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:09:02 +00:00
dependabot[bot] c07a7fff14
chore: bump @typescript-eslint/parser from 5.47.1 to 5.49.0 in /web3.js (#30007)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.47.1 to 5.49.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.49.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-31 09:08:14 +00:00
dependabot[bot] ea0a744454
chore: bump json5 from 1.0.1 to 1.0.2 in /web3.js (#29500)
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Luscher <[email protected]>
2023-01-31 07:32:03 +00:00
dependabot[bot] b23b71e234
chore: bump @noble/secp256k1 from 1.6.3 to 1.7.1 in /web3.js (#29850)
Bumps [@noble/secp256k1](https://github.com/paulmillr/noble-secp256k1) from 1.6.3 to 1.7.1.
- [Release notes](https://github.com/paulmillr/noble-secp256k1/releases)
- [Commits](https://github.com/paulmillr/noble-secp256k1/compare/1.6.3...1.7.1)

---
updated-dependencies:
- dependency-name: "@noble/secp256k1"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Luscher <[email protected]>
2023-01-31 07:31:33 +00:00
dependabot[bot] fab62ee180
chore: bump @rollup/plugin-commonjs from 22.0.0 to 24.0.1 in /web3.js (#29824)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 22.0.0 to 24.0.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v24.0.1/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steven Luscher <[email protected]>
2023-01-31 07:30:38 +00:00
Steven Luscher 1064bcbf72
fix: correct return type of getFeeForMessage (#30004)
* fix: correct return type of getFeeForMessage

* chore: get rid of useless typecast
2023-01-31 07:10:38 +00:00
Yihau Chen 6489c20de5
test: fix rentEpoch value (#29999) 2023-01-31 13:14:28 +08:00
dependabot[bot] 3c71e9df1c
chore: bump @typescript-eslint/parser from 5.40.1 to 5.47.1 in /web3.js (#29453)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.40.1 to 5.47.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 09:13:50 +00:00
dependabot[bot] 6de947a7e0
chore: bump @rollup/plugin-json from 4.1.0 to 6.0.0 in /web3.js (#29452)
Bumps [@rollup/plugin-json](https://github.com/rollup/plugins/tree/HEAD/packages/json) from 4.1.0 to 6.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/json/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/url-v6.0.0/packages/json)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-json"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 09:08:08 +00:00
dependabot[bot] 1d456a82a9
chore: bump bn.js from 5.2.0 to 5.2.1 in /web3.js (#29443)
Bumps [bn.js](https://github.com/indutny/bn.js) from 5.2.0 to 5.2.1.
- [Release notes](https://github.com/indutny/bn.js/releases)
- [Changelog](https://github.com/indutny/bn.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/indutny/bn.js/compare/v5.2.0...v5.2.1)

---
updated-dependencies:
- dependency-name: bn.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 09:27:35 +00:00
dependabot[bot] f553579a60
chore: bump @babel/plugin-transform-runtime from 7.17.0 to 7.19.6 in /web3.js (#29442)
chore: bump @babel/plugin-transform-runtime in /web3.js

Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.17.0 to 7.19.6.
- [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.19.6/packages/babel-plugin-transform-runtime)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 09:20:53 +00:00
dependabot[bot] 8e14aee1ba
chore: bump @solana/buffer-layout from 4.0.0 to 4.0.1 in /web3.js (#29441)
Bumps [@solana/buffer-layout](https://github.com/solana-labs/buffer-layout) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/solana-labs/buffer-layout/releases)
- [Changelog](https://github.com/solana-labs/buffer-layout/blob/master/CHANGELOG.md)
- [Commits](https://github.com/solana-labs/buffer-layout/commits)

---
updated-dependencies:
- dependency-name: "@solana/buffer-layout"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 09:14:34 +00:00
dependabot[bot] c2d6c1b55e
chore: bump @babel/runtime from 7.18.0 to 7.20.7 in /web3.js (#29439)
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.18.0 to 7.20.7.
- [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.20.7/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 09:08:19 +00:00
Kollan House a2db104edb
feat: add commission fields matching RPC spec to web3.js client (#29435)
* fix: adds commission field matching RPC spec

* fix: update optional to follow type pattern
2022-12-29 20:22:56 -08:00
TJDawson10 9679bc6d1f
chore: typecheck web3.js tests (#29422)
* fix: web3.js test typescript errors

Fixes the typescript errors throughout the
web3.js test suite

* fix: node14 test

AbortController is a default in node16 but needs
to be imported for node14

* fix: additional typescript errors

Adds the tests to the tsconfig to auto-include mocha
and fixes remaining typescript errors

* fix: graphql-tools to work with typescript

version of graphql-tools initially installed has incompatible
types preventing ./scripts/typegen.sh from passing when tests
are added to the include path of tsconfig.json

* Don't build typedefs for tests

Co-authored-by: steveluscher <[email protected]>
2022-12-29 15:02:21 -08:00
Yihau Chen d39237891b
ci: fix web3-commit-lint (#29414)
chore: update web3 package-lock.json
2022-12-24 19:37:27 +00:00
Yihau Chen 3cfd1b244d
test: fix get inflation rate test failed at test:live (#29413) 2022-12-25 02:24:49 +08:00
TJDawson10 c0e6065ac9
feat: add getInflationRate RPC call to web3.js (#29377)
* Add getInflationRate RPC call

* Fix code formatting

Co-authored-by: steveluscher <[email protected]>
2022-12-23 22:08:23 -08:00
Nico Schapeler 5f4752a29e
feat: Allow for verifying the sigs of partially signed txs in web3.js (#29249)
* feat: allow for verifying the sigs of partially signed txs

* fix: make comment ab verifying sigs more specific

Co-authored-by: Steven Luscher <[email protected]>

* feat: add tests for partial signed tx verification

* fix: revert lockfile changes

* fix: make tests more modular

* fix: run linter

Co-authored-by: Steven Luscher <[email protected]>
2022-12-23 21:50:53 -08:00
Nico Schapeler 0b479066b3
fix: make toBytes actually return the type it's typehint claims (#29313) 2022-12-19 22:43:53 -08:00
Eric Su 710ac01ef7
docs: make the comments on using the new confirmTransaction clearer (#29251)
* docs: make the comments on using the new connection.confirmTransaction clearer

* docs: add TransactionConfirmataionStrategy type

* refactor: change param type in sendAndConfirmRawTransaction

* docs: fix typo
2022-12-19 12:23:38 -08:00
Steven Luscher 456a81982e
fix: reduce Connection keep-alive timeout to 1 second fewer than the Solana RPC's keep-alive timeout (#29130)
* Delete `AgentManager`

* Replace custom `http.Agent` implementation with `agentkeepalive` package

* Set the default free socket timeout to 1s less than the Solana RPC's default timeout

* Add link to particular issue comment

* Create the correct flavor of default agent for http/https
2022-12-19 10:22:25 -08:00
Nico Schapeler 7be57d661f
docs: add endianess for pubkey byte/buffer functions (#29079) 2022-12-10 20:36:57 -08:00
Steven Luscher ffcebbbd9b
fix: pretty print PublicKey objects in node and in the browser (#29062) 2022-12-09 11:27:14 -08:00
Steven Luscher f1427dd90c
feat: you can now supply your own HTTP agent to a web3.js Connection (#29125)
* You can now supply your own `https?.Agent` when creating a `Connection` object

* Don't use HTTP agents in test mode

* Tests that assert the behaviour of the `agentOverride` config of `Connection`

* s/agentOverride/httpAgent/ is less confusing when the value is `false`
2022-12-06 14:57:13 -08:00
Steven Luscher fcde8c8366
chore: remove last references to Flow types in web3.js (#29061) 2022-12-02 16:56:34 -08:00
Steven Luscher 35f3c18aa8
feat: you can now abort transaction confirmations in web3.js (#29057)
* Upgrade Typescript, `@types/node`, and `typedoc` to versions that play well together

In this instance it means they:

* understand `AbortSignal`
* don't cause build errors

* You can now abort transaction confirmation using an `AbortSignal`

* Pipe an `AbortSignal` down through `sendAndConfirmTransaction()`

* Add `AbortController` polyfill to test so that test works in Node 14
2022-12-02 16:36:09 -08:00
Steven Luscher 9725a4552e
fix: prevent the first-ever signature subscription from leaking (#29056) 2022-12-02 15:09:42 -08:00
Steven Luscher b112d01a5d
feat: the web3.js getBlock APIs now accept `rewards` and `transactionDetails` config (#29000)
* Add `transactionDetails` and `rewards` params to `getBlock` API of web3.js

* Add the same content to the legacy call

…because it's such a PITA to share config between two methods and not have Typedoc throw a fit.

* Add tests to exercise block deserialization in the case that `transactionDetails` is `none` or `accounts`

* Extract the annotated account key parser into a separate struct

* Parse the `getBlock()` responses differently depending on the mode
2022-12-01 22:04:47 -08:00
Jon Cinque 337621d031
fix: support `VersionedMessage` in `getFeeForMessage` (#28996) 2022-11-30 10:06:43 -08:00
Steven Luscher 491d4f3331
fix: TransactionMessage.decompile() now counts the correct number of unsigned, writable accounts (#28990)
* Test that `TransactionMessage.decompile()` can decompile a legacy `Message`

* `TransactionMessage.decompile()` now correctly accounts for the number of writable unsigned accounts
2022-11-30 09:57:54 -08:00
steveluscher 45291a5001 chore: remove @babel/register dependency from web3.js 2022-11-29 08:04:19 +00:00
steveluscher 85e6b80347 chore: remove unused http-server dependency from web3.js 2022-11-29 08:00:06 +00:00
dependabot[bot] cc296839da
chore: bump http-server from 14.1.0 to 14.1.1 in /web3.js (#27333)
Bumps [http-server](https://github.com/http-party/http-server) from 14.1.0 to 14.1.1.
- [Release notes](https://github.com/http-party/http-server/releases)
- [Commits](https://github.com/http-party/http-server/compare/v14.1.0...v14.1.1)

---
updated-dependencies:
- dependency-name: http-server
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 23:48:26 -08:00
Ian Macalinao f53aa5f12b
chore: remove redundant 'Buffer' from 'Account' class (#27865) 2022-11-28 23:42:58 -08:00
Ian Macalinao 0e70275b07
chore: use constant for PUBLIC_KEY_LENGTH for checking length of input (#27876) 2022-11-28 23:29:40 -08:00
Ian Macalinao 61803b914f
chore: add deprecation notice for createProgramAddress (#27879) 2022-11-28 23:29:06 -08:00
Ian Macalinao ac8ddc841c
chore: deprecate PublicKey.findProgramAddress (#27882) 2022-11-28 23:28:35 -08:00