diff --git a/CHANGELOG.md b/CHANGELOG.md index c7ca239e669..c6d65b40333 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2226,6 +2226,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f - Dependencies updated ## [4.2.2] + ### Added #### web3-core @@ -2253,4 +2254,39 @@ If there are any bugs, improvements, optimizations or any new feature proposal f - Will populate `data` for transactions in contract for metamask provider instead of `input` (#6534) +## [4.3.0] + +### Changed + +#### web3-core + +- Web3config `contractDataInputFill` has been defaulted to `data`, istead of `input`. (#6622) + +#### web3-eth-contracts + +- By default, contracts will fill `data` instead of `input` within method calls (#6622) + +### Added + + +#### web3-utils + +- `SocketProvider` now contains public function `getPendingRequestQueueSize`, `getSentRequestsQueueSize` and `clearQueues` (#6479) +- Added `safeDisconnect` as a `SocketProvider` method to disconnect only when request queue size and send request queue size is 0 (#6479) +- Add `isContractInitOptions` method (#6555) + +#### web3 + +- Added methods (privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey) to web3.eth.accounts (#6620) + +### Fixed + +#### web3-rpc-methods + +- Fix web3-types import #6590 (#6589) + +#### web3-utils + +- Fix unecessary array copy when pack encoding (#6553) + ## [Unreleased] diff --git a/packages/web3-core/CHANGELOG.md b/packages/web3-core/CHANGELOG.md index 2c782c67f4d..39d574bcd43 100644 --- a/packages/web3-core/CHANGELOG.md +++ b/packages/web3-core/CHANGELOG.md @@ -201,8 +201,10 @@ Documentation: - Added `isMetaMaskProvider` function to check if provider is metamask (#6534) -## [Unreleased] +## [4.3.2] ### Changed -- Web3config `contractDataInputFill` has been defaulted to `data`, istead of `input`. (#6622) \ No newline at end of file +- Web3config `contractDataInputFill` has been defaulted to `data`, istead of `input`. (#6622) + +## [Unreleased] \ No newline at end of file diff --git a/packages/web3-core/package.json b/packages/web3-core/package.json index 72ba5ee3cd8..1865d56d8e6 100644 --- a/packages/web3-core/package.json +++ b/packages/web3-core/package.json @@ -1,6 +1,6 @@ { "name": "web3-core", - "version": "4.3.1", + "version": "4.3.2", "description": "Web3 core tools for sub-packages. This is an internal package.", "main": "./lib/commonjs/index.js", "module": "./lib/esm/index.js", @@ -48,7 +48,7 @@ "web3-providers-http": "^4.1.0", "web3-providers-ws": "^4.0.7", "web3-types": "^1.3.1", - "web3-utils": "^4.0.7", + "web3-utils": "^4.1.0", "web3-validator": "^2.0.3" }, "optionalDependencies": { diff --git a/packages/web3-eth-contract/CHANGELOG.md b/packages/web3-eth-contract/CHANGELOG.md index d34fa85d053..324fdc99879 100644 --- a/packages/web3-eth-contract/CHANGELOG.md +++ b/packages/web3-eth-contract/CHANGELOG.md @@ -347,8 +347,10 @@ Documentation: - Will populate `data` for transactions in contract for metamask provider instead of `input` (#6534) -## [Unreleased] +## [4.1.4] ### Changed -- `contractDataInputFill` has been defaulted to `data`, istead of `input`. (#6622) \ No newline at end of file +- By default, contracts will fill `data` instead of `input` within method calls (#6622) + +## [Unreleased] \ No newline at end of file diff --git a/packages/web3-eth-contract/package.json b/packages/web3-eth-contract/package.json index b905e8500ce..873bbc78ec8 100644 --- a/packages/web3-eth-contract/package.json +++ b/packages/web3-eth-contract/package.json @@ -1,6 +1,6 @@ { "name": "web3-eth-contract", - "version": "4.1.3", + "version": "4.1.4", "description": "Web3 module to interact with Ethereum smart contracts.", "main": "./lib/commonjs/index.js", "module": "./lib/esm/index.js", @@ -45,12 +45,12 @@ "test:e2e:firefox": "npx cypress run --headless --browser firefox --env grep='ignore',invert=true" }, "dependencies": { - "web3-core": "^4.3.1", + "web3-core": "^4.3.2", "web3-errors": "^1.1.4", "web3-eth": "^4.3.1", "web3-eth-abi": "^4.1.4", "web3-types": "^1.3.1", - "web3-utils": "^4.0.7", + "web3-utils": "^4.1.0", "web3-validator": "^2.0.3" }, "devDependencies": { diff --git a/packages/web3-eth-ens/CHANGELOG.md b/packages/web3-eth-ens/CHANGELOG.md index f47355882dd..c1fb717c2a8 100644 --- a/packages/web3-eth-ens/CHANGELOG.md +++ b/packages/web3-eth-ens/CHANGELOG.md @@ -141,4 +141,4 @@ Documentation: - Dependencies updated -## [Unreleased] \ No newline at end of file +## [Unreleased] diff --git a/packages/web3-rpc-methods/CHANGELOG.md b/packages/web3-rpc-methods/CHANGELOG.md index 59757e0e5ac..29de022b81c 100644 --- a/packages/web3-rpc-methods/CHANGELOG.md +++ b/packages/web3-rpc-methods/CHANGELOG.md @@ -126,8 +126,11 @@ Documentation: - Dependencies updated -## [Unreleased] +## [1.1.4] ### Fixed - Fix web3-types import #6590 (#6589) + +## [Unreleased] + diff --git a/packages/web3-rpc-methods/package.json b/packages/web3-rpc-methods/package.json index 25cc30c36ae..53b4a9a61dd 100644 --- a/packages/web3-rpc-methods/package.json +++ b/packages/web3-rpc-methods/package.json @@ -1,6 +1,6 @@ { "name": "web3-rpc-methods", - "version": "1.1.3", + "version": "1.1.4", "description": "Ethereum RPC methods for Web3 4.x.x", "main": "./lib/commonjs/index.js", "module": "./lib/esm/index.js", @@ -56,8 +56,8 @@ "typescript": "^4.7.4" }, "dependencies": { - "web3-core": "^4.3.0", - "web3-types": "^1.3.0", + "web3-core": "^4.3.2", + "web3-types": "^1.3.1", "web3-validator": "^2.0.3" } } diff --git a/packages/web3-utils/CHANGELOG.md b/packages/web3-utils/CHANGELOG.md index bd385bdf0c5..953d1ff035a 100644 --- a/packages/web3-utils/CHANGELOG.md +++ b/packages/web3-utils/CHANGELOG.md @@ -169,7 +169,7 @@ Documentation: - Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #6187" (#6506) - Fixed bug in chunks processing logic (#6496) -## [Unreleased] +## [4.1.0] ### Added @@ -180,3 +180,5 @@ Documentation: ### Fixed - Fix unecessary array copy when pack encoding (#6553) + +## [Unreleased] diff --git a/packages/web3-utils/package.json b/packages/web3-utils/package.json index a4d48ca5cf4..e8630b147f9 100644 --- a/packages/web3-utils/package.json +++ b/packages/web3-utils/package.json @@ -1,7 +1,7 @@ { "name": "web3-utils", "sideEffects": false, - "version": "4.0.7", + "version": "4.1.0", "description": "Collection of utility functions used in web3.js.", "main": "./lib/commonjs/index.js", "module": "./lib/esm/index.js", @@ -64,8 +64,8 @@ }, "dependencies": { "ethereum-cryptography": "^2.0.0", - "web3-errors": "^1.1.3", - "web3-types": "^1.3.0", + "web3-errors": "^1.1.4", + "web3-types": "^1.3.1", "web3-validator": "^2.0.3" } } diff --git a/packages/web3/CHANGELOG.md b/packages/web3/CHANGELOG.md index 934a794cc30..b0bf8840826 100644 --- a/packages/web3/CHANGELOG.md +++ b/packages/web3/CHANGELOG.md @@ -173,8 +173,15 @@ Documentation: - Dependencies updated ( details are in root changelog ) -## [Unreleased] +## [4.3.0] ### Added - Added methods (privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey) to web3.eth.accounts (#6620) + +### Changed + +- Dependencies updated + +## [Unreleased] + diff --git a/packages/web3/package.json b/packages/web3/package.json index 675264fdbfd..e09c3dd5ecd 100644 --- a/packages/web3/package.json +++ b/packages/web3/package.json @@ -1,6 +1,6 @@ { "name": "web3", - "version": "4.2.2", + "version": "4.3.0", "description": "Ethereum JavaScript API", "main": "./lib/commonjs/index.js", "module": "./lib/esm/index.js", @@ -60,7 +60,7 @@ "test:blackbox:geth:ws": "./scripts/black_box_test.sh geth ws", "test:blackbox:infura:http": "./scripts/black_box_test.sh infura http", "test:blackbox:infura:ws": "./scripts/black_box_test.sh infura ws", - "test:e2e:chrome:stress": "npx cypress run --headless --browser chrome" + "test:e2e:chrome:stress": "npx cypress run --headless --browser chrome" }, "devDependencies": { "@truffle/hdwallet-provider": "^2.0.12", @@ -83,21 +83,21 @@ "web3-providers-ipc": "^4.0.7" }, "dependencies": { - "web3-core": "^4.3.1", + "web3-core": "^4.3.2", "web3-errors": "^1.1.4", "web3-eth": "^4.3.1", "web3-eth-abi": "^4.1.4", "web3-eth-accounts": "^4.1.0", - "web3-eth-contract": "^4.1.3", + "web3-eth-contract": "^4.1.4", "web3-eth-ens": "^4.0.8", "web3-eth-iban": "^4.0.7", "web3-eth-personal": "^4.0.8", "web3-net": "^4.0.7", "web3-providers-http": "^4.1.0", "web3-providers-ws": "^4.0.7", - "web3-rpc-methods": "^1.1.3", + "web3-rpc-methods": "^1.1.4", "web3-types": "^1.3.1", - "web3-utils": "^4.0.7", + "web3-utils": "^4.1.0", "web3-validator": "^2.0.3" } } diff --git a/packages/web3/src/version.ts b/packages/web3/src/version.ts index c0c7faf90d7..b90de9000b7 100644 --- a/packages/web3/src/version.ts +++ b/packages/web3/src/version.ts @@ -1 +1 @@ -/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.2.2' }; +/* eslint-disable header/header */ export const Web3PkgInfo = { version: '4.3.0' }; diff --git a/packages/web3/test/e2e/get_proof.test.ts b/packages/web3/test/e2e/get_proof.test.ts index 73e1e1ba7f2..a80f6d6f1f4 100644 --- a/packages/web3/test/e2e/get_proof.test.ts +++ b/packages/web3/test/e2e/get_proof.test.ts @@ -68,7 +68,17 @@ describe(`${getSystemTestBackend()} tests - getProof`, () => { if (block === 'blockHash' || block === 'blockNumber') { expect(result).toEqual(expectedProof); - } else { + } + else if(block === 'pending') { + expect(result).toMatchObject({ + balance: expect.any(BigInt), + codeHash: expect.any(String), + nonce: expect.any(BigInt), + storageHash: expect.any(String), + storageProof: expect.any(Array), + }); + } + else { expect(result).toMatchObject({ accountProof: expect.any(Array), balance: expect.any(BigInt), diff --git a/tools/web3-plugin-example/package.json b/tools/web3-plugin-example/package.json index 6e5782e9f3d..97389677d65 100644 --- a/tools/web3-plugin-example/package.json +++ b/tools/web3-plugin-example/package.json @@ -45,12 +45,12 @@ "prettier": "^2.7.1", "ts-jest": "^28.0.7", "typescript": "^4.7.4", - "web3": "^4.2.1", - "web3-core": "^4.3.0", + "web3": "^4.3.0", + "web3-core": "^4.3.2", "web3-eth-abi": "^4.1.4", - "web3-eth-contract": "^4.1.2", - "web3-types": "^1.3.0", - "web3-utils": "^4.0.7" + "web3-eth-contract": "^4.1.4", + "web3-types": "^1.3.1", + "web3-utils": "^4.1.0" }, "peerDependencies": { "web3-core": ">= 4.1.1 < 5",