steveluscher
21a64db140
test: refactor notification tests on the basis of promises rather than polling
2022-04-09 19:43:15 -07:00
steveluscher
db50893fa1
test: reenable account change subscription test
2022-04-09 19:43:15 -07:00
steveluscher
35ee38b0f1
test: reenable log subscription test
2022-04-09 19:43:15 -07:00
steveluscher
4dd3987451
Reset onLogs subscriptions when websocket disconnects
2022-04-07 15:45:35 -07:00
Bryon M
04158ee455
fix: stop logging to console when send tx fails ( #23511 )
...
There is no need to log the error to the console. Developers can simply catch the error and handle it themselves without it cluttering production logs.
2022-04-04 19:11:20 +08:00
dependabot[bot]
2a5764ef79
chore: bump @rollup/plugin-commonjs from 21.0.2 to 21.0.3 in /web3.js ( #23962 )
...
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs ) from 21.0.2 to 21.0.3.
- [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-v21.0.3/packages/commonjs )
---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
dependency-type: direct:development
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>
2022-03-28 08:16:45 +00:00
stellaw1
c08cfafd6c
feat: adds getBlockProduction RPC call
2022-03-26 18:31:40 -07:00
steveluscher
9cf7720922
fix: when there is no instruction index, default to the current instruction by supplying u16:MAX
2022-03-24 22:55:52 -07:00
steveluscher
c73cdfd6ce
fix: add TypeScript buffer type to nonce-account.ts
2022-03-24 22:55:52 -07:00
steveluscher
477355df3b
fix: add TypeScript buffer type to stake-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
6686b7c534
fix: add TypeScript buffer type to message.ts
2022-03-24 22:55:52 -07:00
steveluscher
741c85ca7c
fix: add TypeScript buffer type to loader.ts
2022-03-24 22:55:52 -07:00
steveluscher
6bb02cdcc1
fix: add TypeScript buffer type to secp256k1-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
96361295aa
fix: add TypeScript buffer type to ed25519-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
3333f37e88
fix: add TypeScript buffer type to vote-account.ts
2022-03-24 22:55:52 -07:00
steveluscher
b2f2a68b86
fix: fix spelling of timestamp in BlockTimestamp type
2022-03-24 22:55:52 -07:00
steveluscher
c227b8ca4d
fix: add TypeScript buffer type to vote-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
607a5c05de
fix: add TypeScript buffer type to system-program.ts
2022-03-24 22:55:52 -07:00
steveluscher
807f88e547
fix: add TypeScript types to the rustString buffer layout helper
2022-03-24 22:55:52 -07:00
steveluscher
d34fe3dba3
fix: add TypeScript buffer type to layout.ts
2022-03-24 22:55:52 -07:00
steveluscher
b516a25132
fix: add TypeScript buffer type to instruction.ts
2022-03-24 22:55:52 -07:00
steveluscher
023fc028bc
chore: Upgrade buffer-layout to v4.0.0
2022-03-24 22:55:52 -07:00
Steven Luscher
412d9be445
fix: repair web3 connection tests by making fewer assumptions about the existence of particular blocks ( #23921 )
...
* fix: repair 'get confirmed signatures for address' test in web3.js
* fix: repair 'get signatures for address' test in web3.js
* fix: repair 'get parsed confirmed transactions' test in web3.js
* fix: repair 'get transaction' test in web3.js
* fix: repair 'get confirmed transaction' test in web3.js
* fix: repair 'get block' test in web3.js
* fix: repair 'get confirmed block' test in web3.js
* fix: repair 'get block signatures' test in web3.js
* fix: repair 'get block time' test in web3.js
Co-authored-by: steveluscher <[email protected] >
2022-03-24 22:21:14 -07:00
steveluscher
260fdf7ba3
Revert "chore: Upgrade buffer-layout package in web3.js ( #23897 )"
...
Fixing up the types is going to take me a bit longer than I anticipated, so I'll back this out for now.
2022-03-23 18:34:01 -07:00
Steven Luscher
0c0db9308b
chore: Upgrade buffer-layout package in web3.js ( #23897 )
2022-03-23 14:56:13 -07:00
Andrey Frolov
59290c08aa
fix: add type-check script to web3.js package ( #23109 )
2022-03-23 12:58:42 -07:00
Sammy
26da64184a
feat(web3.js): expose rpcEndpoint in client for web3.js ( #23719 )
...
Adds a getter to the commitment class to expose the rpcEndpoint property.
2022-03-23 11:05:37 -07:00
Ashwin Ramaswami
accc64ebcf
chore: fix typo retring -> retrying ( #23630 )
2022-03-13 23:25:27 -06:00
Jordan Sexton
3cf31fa9b8
fix: web3.js browser cjs build ( #23500 )
2022-03-11 14:35:15 -07:00
Marc Jaramillo
2bff36dfba
feat: add getEstimatedFee to Transaction ( #23579 )
2022-03-11 10:05:22 -07:00
dependabot[bot]
26ef6111bb
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](https://github.com/follow-redirects/follow-redirects/compare/v1.13.1...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 14:09:06 -08:00
Mark Percival
8438366d1b
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
2022-03-08 15:07:33 -08:00
Krešimir Klas
41ab690a61
feat: add getMultipleAccountsInfoAndContext method to Connection
...
Similar to `getAccountInfoAndContext`.
2022-03-02 20:39:48 +01:00
Jordan Sexton
8eefe60c44
chore: web3.js: fix cjs file reference in package.json ( #21940 )
2022-03-02 10:00:55 -07:00
Justin Starry
c97f34a0fd
Add script for running nightly rustfmt on all workspaces ( #23244 )
...
* Add script for running nightly rustfmt on all workspaces
* invalidate ci cache
2022-02-22 11:59:06 +08:00
Pierre
ebe3d2d59d
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 <[email protected] >
2022-02-21 14:20:11 +08:00
mooori
5726f42a7c
feat(stake-program): support `splitWithSeed` ( #23213 )
2022-02-17 12:21:07 -07:00
dependabot[bot]
21656c26e7
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](https://github.com/patriksimek/vm2/compare/3.9.5...3.9.7 )
---
updated-dependencies:
- dependency-name: vm2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 00:56:42 +00:00
mooori
ae175a026b
feat(vote-program): support VoteInstruction::Authorize ( #22978 )
2022-02-09 11:29:49 -07:00
Tyera Eulberg
c899685cb2
chore: make Connection block tests less brittle ( #23015 )
2022-02-08 14:58:50 -07:00
mooori
4d877567dd
feat(web3.js): support withdraw from Vote account ( #22932 )
2022-02-04 13:37:28 -07:00
marty-mcflai
f73b470ec0
fix: swallow error if socket has already been closed ( #22934 )
...
* Swallow error if socket has already been closed
* fix: log error
2022-02-04 19:21:58 +08:00
Hareesh Nagaraj
28442aa922
fix: enable maxRetries option to SendOptions ( #22893 )
...
* Web3.js - enable maxRetries option to SendOptions
* Prettier
2022-02-03 11:54:43 -07:00
@mkarots
6a0c45fa2e
chore: fixes typo ( #22830 )
2022-01-31 09:43:46 -07:00
Jon Cinque
fa51e5b704
chore: update Connection to non-deprecated endpoints ( #22800 )
...
* chore: remove usage of `getConfirmedTransaction`
* chore: use `getBlock` instead of `getConfirmedBlock`
* chore: add `getLatestBlockhash` and test
2022-01-28 00:43:01 +01:00
Dmitri Makarov
52045c761c
chore: remove remaining unused Xargo.toml files
2022-01-24 15:35:54 -08:00
joeaba
8cb0b1ce9a
reverse mainnet-beta endpoint changes
2022-01-22 15:56:45 -05:00
joeaba
e42316ba5a
change mainnet-beta endpoint
2022-01-22 15:36:00 -05:00
Michael Vines
4d00995d2d
shellcheck
2022-01-21 14:06:53 -08:00
Michael Vines
ae95540387
chore: add test timeouts
2022-01-21 13:16:42 -08:00