Steven Luscher
5d172151a2
fix: wrap _rpcWebSocketGeneration around when about to overflow ( #28428 )
2022-10-16 23:33:28 -07:00
Justin Starry
831ed96730
feat: add getMultipleParsedAccounts method ( #28414 )
2022-10-16 07:26:08 +00:00
Justin Starry
36e5f33e67
feat: add dataSlice param to account fetching config ( #28389 )
2022-10-14 03:28:00 +00:00
Dmitri Makarov
d6813b98d2
chore: move programs/bpf to programs/sbf
2022-10-13 11:40:40 -04:00
Peter Piekarczyk
759dc80fb6
chore: improve default PublicKey docs ( #28372 )
...
* docs: replace zeros comments with ones
* Update comment around docs
2022-10-12 20:04:22 -06:00
Justin Starry
33a328e589
feat: add getParsedBlock method to Connection ( #28345 )
...
* feat: add getParsedBlock method to Connection
* Update web3.js/src/connection.ts
Co-authored-by: Yihau Chen <[email protected] >
Co-authored-by: Yihau Chen <[email protected] >
2022-10-11 16:13:10 +08:00
Justin Starry
7810387b00
fix: improve `MessageV0.getAccountKeys` API ergonomics ( #28042 )
...
fix: improve MessageV0.getAccountKeys API flexibility
2022-09-24 05:37:58 +00:00
Varga-Somogyi Ákos
e15a5c010e
feat: implement addSignature in VersionedTransaction ( #27945 )
...
* Implement addSignature in VersionedTransaction
* Update asserts
* VersionedTransaction.addSignature test
* Update VersionedTransaction tests
2022-09-21 17:22:40 -07:00
Steven Luscher
d466799871
fix: replace bigint literals with `BigInt` constructors ( #27930 )
...
This makes web3.js compatible with runtimes that don't understand bigint literals but _do_ understand `BigInt` constructors.
For whatever that's worth.
2022-09-19 18:31:16 -07:00
Ian Macalinao
98dfc2b7d1
chore: remove Buffer from PublicKeyInitData ( #27888 )
2022-09-17 17:16:45 -07:00
Justin Starry
07a83e0fbb
feat: add isAccountWritable and isAccountSigner to MessageV0 ( #27808 )
2022-09-15 18:31:43 +00:00
Justin Starry
e6687b89e6
chore: fix flakey partialSign test ( #27770 )
2022-09-13 20:16:30 +00:00
Justin Starry
afe1cfe94a
fix: replace computed max u64 constant with literal ( #27765 )
2022-09-13 19:37:40 +00:00
Justin Starry
d9b1ebece7
feat: add version getter to VersionedTransaction class ( #27734 )
2022-09-13 00:22:12 +00:00
Justin Starry
8bb0acc4c6
chore: remove failing request units test ( #27735 )
2022-09-12 23:18:29 +00:00
Steven Luscher
a98f58f0dc
chore: update the README for web3.js with compatibility notes ( #27706 )
2022-09-09 14:42:36 -07:00
Justin Starry
e42a39024d
feat: add source field to parsed account key responses ( #27702 )
2022-09-09 21:06:54 +00:00
Justin Starry
080f085cb8
fix: ensure that Keypair.secretKey is a Uint8Array ( #27700 )
2022-09-09 16:31:18 -04:00
Justin Starry
f8b5b517d2
fix: replace `TransactionMessage` `accountKeys` field with `payerKey` ( #27653 )
...
fix: replace TransactionMessage accountKeys field with payerKey
2022-09-07 18:11:24 -04:00
Steven Luscher
6bc04b5e3a
fix: replace js-sha3 with `@noble/hashes/sha3` ( #27630 )
2022-09-06 22:38:11 -07:00
Steven Luscher
466e9948bf
feat: added `authorizeWithSeed` to the vote program in web3.js ( #27627 )
...
* fix: recursively size variable size structs in your buffer layouts
* feat: added `authorizeWithSeed` to the vote program in web3.js
2022-09-06 22:37:43 -07:00
Steven Luscher
a94ada8b3e
fix: recursively size variable size structs in your buffer layouts ( #27624 )
2022-09-06 22:37:27 -07:00
Justin Starry
204f272412
feat: support versioned txs in `sendTransaction` and `simulateTransaction` ( #27528 )
...
* feat: support versioned txs in sendTransaction and simulateTransaction
* chore: add docs for simulation config parameters
2022-09-06 23:53:42 -04:00
Justin Starry
9f81d27db8
feat: add `TransactionMessage` class ( #27526 )
...
feat: implement message v0 decompilation
2022-09-07 03:51:52 +00:00
Justin Starry
3374f41201
feat: implement message v0 compilation ( #27524 )
...
* feat: add PublicKey.unique method for tests
* feat: add MessageAccountKeys class
* feat: add CompiledKeys class for message compilation
* feat: implement message compilation using CompiledKeys
2022-09-06 23:43:22 -04:00
Justin Starry
da7e88fc41
fix: add compute units to jsonrpc parser ( #27554 )
2022-09-01 18:18:43 +00:00
Justin Starry
31087b8aba
Revert "fix: add compute units to jsonrpc parser" ( #27553 )
...
Revert "fix: add compute units to jsonrpc parser (#27466 )"
This reverts commit b34cab46d6
.
2022-09-01 13:30:22 -04:00
Maximilian Schneider
b34cab46d6
fix: add compute units to jsonrpc parser ( #27466 )
...
add compute units to jsonrpc parser
2022-09-01 09:34:10 -07:00
Justin Starry
292b2a1bfe
feat: update `Connection` to support versioned transactions ( #27068 )
...
feat: update Connection to support versioned transactions
2022-08-31 08:46:24 -04:00
Justin Starry
ada493f607
feat: add VersionedMessage.deserializeMessageVersion utility function ( #27415 )
2022-08-29 21:20:16 +01:00
Steven Luscher
60f3dc5f72
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.
2022-08-28 12:11:34 -07:00
Steven Luscher
713e86e877
Update rollup script to exclude new secp256k1 and hmac/sha256 dependencies ( #27428 )
...
* fix: repair build script, not to bundle @noble libraries but to keep them as external deps
* chore: remove secp256k1 Typescript types
2022-08-26 12:33:29 -07:00
Steven Luscher
1a836ab4af
[web3.js] Replace sha256 and secp256k1 impls ( #27390 )
...
* fix: replace `@ethersproject/sha2` with `@noble/hashes/sha256`
* fix: replace `secp256k1` with `@noble/secp256k1`
2022-08-25 13:34:11 -07:00
Justin Starry
1ccfc65a52
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
2022-08-25 15:42:54 +02:00
Steven Luscher
5975176af7
[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`
2022-08-24 11:02:40 -07:00
dependabot[bot]
9b157499ef
chore: bump eslint-plugin-mocha from 10.0.4 to 10.1.0 in /web3.js ( #27332 )
...
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](https://github.com/lo1tuma/eslint-plugin-mocha/compare/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] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 08:49:27 +00:00
dependabot[bot]
cb847a61ad
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] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 08:42:38 +00:00
dependabot[bot]
3a0fc00827
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] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 08:35:00 +00:00
dependabot[bot]
12693e83df
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] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 08:24:00 +00:00
Andrew Schonfeld
4b8ab4e65d
VoteProgram.safeWithdraw function to safeguard against accidental vote account closures ( #26586 )
...
feat: safe withdraw function
Co-authored-by: aschonfeld <[email protected] >
2022-08-17 00:22:38 +02:00
dependabot[bot]
e779032e4e
chore: bump @babel/preset-env from 7.18.0 to 7.18.10 in /web3.js ( #27138 )
...
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] <[email protected] >
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 08:14:19 +00:00
Justin Starry
a97346aec7
chore: add constant for pubkey byte length ( #27134 )
2022-08-14 16:19:06 +00:00
Justin Starry
dcef8ec100
feat: add getAddressLookupTable method to Connection ( #27127 )
2022-08-14 10:11:49 +00:00
Justin Starry
8e30dbbbf2
chore: restructure utils code
2022-08-12 17:11:51 +01:00
Justin Starry
52dc24abfb
chore: restructure program files
2022-08-12 17:11:51 +01:00
Justin Starry
1a1a7ce1cf
chore: restucture message files
2022-08-12 17:11:51 +01:00
Justin Starry
7ffcde7330
chore: restructure transaction files
2022-08-12 17:11:51 +01:00
Justin Starry
7e7785fc19
feat: support minContextSlot in getParsedAccountInfo method ( #27084 )
2022-08-11 14:28:54 +00:00
Justin Starry
9ab52e4260
chore: annotate more types as deprecated ( #27067 )
2022-08-10 20:35:30 +00:00
Justin Starry
369b6b1828
feat: handle `loadedAddresses` field in tx meta responses ( #27065 )
...
feat: handle loadedAddresses field in tx meta responses
2022-08-10 20:08:24 +00:00