Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit b886b1c

Browse files
committed
chore: reexport signature types, add changelogs
1 parent 6919860 commit b886b1c

File tree

7 files changed

+31
-2
lines changed

7 files changed

+31
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2803,3 +2803,9 @@ If there are any bugs, improvements, optimizations or any new feature proposal f
28032803
- Fix Contract methods input param type any[] (#7340)
28042804

28052805
## [Unreleased]
2806+
2807+
### Fixed
2808+
2809+
#### web3
2810+
2811+
- Export Web3Account, Wallet and signature related types. (#7374)

packages/web3-eth-accounts/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,7 @@ Documentation:
190190
- `hashMessage` now has a new optional param `skipPrefix` with a default value of `false`. A new function `signRaw` was added to sign a message without prefix. (#7346)
191191

192192
## [Unreleased]
193+
194+
### Removed
195+
196+
- Move signature related types to web3-types. Re-export them for backwards compatibility. (#7374)

packages/web3-eth-accounts/src/types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@ You should have received a copy of the GNU Lesser General Public License
1515
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
import { Web3BaseWalletAccount, HexString } from 'web3-types';
18+
import {
19+
HexString,
20+
SignatureObject,
21+
SignResult,
22+
SignTransactionResult,
23+
Web3BaseWalletAccount,
24+
} from 'web3-types';
1925
import { AccessListEIP2930Transaction, FeeMarketEIP1559Transaction, Transaction } from './tx';
2026

27+
export { SignatureObject, SignResult, SignTransactionResult };
28+
2129
export interface Web3Account extends Web3BaseWalletAccount {
2230
address: HexString;
2331
privateKey: HexString;

packages/web3-types/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,7 @@ Documentation:
221221
- `FilterParams` type added (#7353)
222222

223223
## [Unreleased]
224+
225+
#### Added
226+
227+
- Add signature related types. (#7374)

packages/web3/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,3 +561,9 @@ Documentation:
561561
- Fix Contract methods input param type any[] (#7340)
562562

563563
## [Unreleased]
564+
565+
### Fixed
566+
567+
#### web3
568+
569+
- Export Web3Account, Wallet and signature related types. (#7374)

packages/web3/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,3 @@ export * as validator from 'web3-validator';
364364
*/
365365
export * from 'web3-errors';
366366
export * from 'web3-types';
367-
export type { Web3Account, Wallet } from 'web3-eth-accounts';

packages/web3/src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import { Net } from 'web3-net';
4242
import { Iban } from 'web3-eth-iban';
4343
import { Personal } from 'web3-eth-personal';
4444

45+
export type { Web3Account, Wallet } from 'web3-eth-accounts';
46+
4547
/**
4648
* The Ethereum interface for main web3 object. It provides extra methods in addition to `web3-eth` interface.
4749
*

0 commit comments

Comments
 (0)