Skip to content

Commit

Permalink
Merge branch '4.x' into wyatt/4.x/5670-contract-method-error-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevcs committed Jun 20, 2023
2 parents ff38941 + 023f02d commit 95f9a3e
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1603,3 +1603,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
#### web3-eth-contract

- Event filtering using non-indexed and indexed string event arguments (#6167)

#### web3-eth-types

- Receive fragment type added (#6204)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@cypress/webpack-preprocessor": "^5.12.0",
"@droppedcode/typedoc-plugin-relative-includes": "^1.0.2",
"@openzeppelin/contracts": "^4.7.1",
"@types/node": "^17.0.40",
"@types/node": "^18.11.9",
"@types/webpack": "^5.28.0",
"assert": "^2.0.0",
"buffer": "^6.0.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/web3-eth-ens/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,7 @@ Documentation:
[Migration Guide from 1.x](https://docs.web3js.org/guides/web3_upgrade_guide/x/)

## [Unreleased]

### Fixed

- Fixed bug #6185, now web3.js compiles on typescript v5 (#6195)
4 changes: 4 additions & 0 deletions packages/web3-providers-ws/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,7 @@ Documentation:
[Migration Guide from 1.x](https://docs.web3js.org/guides/web3_upgrade_guide/x/)

## [Unreleased]

### Fixed

- Fixed #6162 @types/ws issue (#6205)
4 changes: 2 additions & 2 deletions packages/web3-providers-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"@types/express": "^4.17.13",
"@types/jest": "^28.1.6",
"@types/morgan": "^1.9.3",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
Expand All @@ -66,6 +65,7 @@
"web3-errors": "^1.0.0",
"web3-types": "^1.0.0",
"web3-utils": "^4.0.1",
"ws": "^8.8.1"
"ws": "^8.8.1",
"@types/ws": "^8.5.3"
}
}
4 changes: 4 additions & 0 deletions packages/web3-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ Documentation:
[Migration Guide from 1.x](https://docs.web3js.org/guides/web3_upgrade_guide/x/)

## [Unreleased]

### Fixed

- Fixed bug #6185, now web3.js compiles on typescript v5 (#6195)
6 changes: 3 additions & 3 deletions packages/web3-types/src/eth_abi_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type AbiParameter = {
readonly internalType?: string;
};

type FragmentTypes = 'constructor' | 'event' | 'function' | 'fallback';
type FragmentTypes = 'constructor' | 'event' | 'function' | 'fallback' | 'receive';

export type AbiBaseFragment = {
// type will default to string if passed ABI is declared without "as const"
Expand Down Expand Up @@ -220,7 +220,7 @@ export type PrimitiveBytesType<Type extends string> = Type extends `bytes${strin

export type PrimitiveTupleType<
Type extends string,
TypeComponents extends ReadonlyArray<AbiParameter> | undefined = [],
TypeComponents extends ReadonlyArray<AbiParameter> | undefined | unknown = [],
> = TypeComponents extends ReadonlyArray<AbiParameter>
? Type extends 'tuple'
? {
Expand Down Expand Up @@ -251,7 +251,7 @@ type ArrToObjectWithFunctions<T extends unknown[]> = Array<unknown> & ObjectToAr

export type MatchPrimitiveType<
Type extends string,
TypeComponents extends ReadonlyArray<AbiParameter> | undefined,
TypeComponents extends ReadonlyArray<AbiParameter> | undefined | unknown,
> =
| PrimitiveAddressType<Type>
| PrimitiveStringType<Type>
Expand Down
5 changes: 5 additions & 0 deletions packages/web3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,8 @@ Documentation:
### Added

- Exported `Web3Context`, `Web3PluginBase`, `Web3EthPluginBase` from `'web3-core'`, and `Web3Validator` from `'web3-validator'` (#6165)

### Fixed

- Fixed bug #6185, now web3.js compiles on typescript v5 (#6195)
- Fixed #6162 @types/ws issue (#6205)
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2114,10 +2114,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.6.tgz#31743bc5772b6ac223845e18c3fc26f042713c83"
integrity sha512-EdxgKRXgYsNITy5mjjXjVE/CS8YENSdhiagGrLqjG0pvA2owgJ6i4l7wy/PFZGC0B1/H20lWKN7ONVDNYDZm7A==

"@types/node@^17.0.40":
version "17.0.45"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190"
integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==
"@types/node@^18.11.9":
version "18.16.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.18.tgz#85da09bafb66d4bc14f7c899185336d0c1736390"
integrity sha512-/aNaQZD0+iSBAGnvvN2Cx92HqE5sZCPZtx2TsK+4nvV23fFe09jVDvpArXr2j9DnYlzuU9WuoykDDc6wqvpNcw==

"@types/normalize-package-data@^2.4.0":
version "2.4.1"
Expand Down

0 comments on commit 95f9a3e

Please sign in to comment.