Skip to content

Commit

Permalink
chore: export account utils (#285)
Browse files Browse the repository at this point in the history
* chore: export account utils

* chore: changeset
  • Loading branch information
tmm authored Apr 3, 2023
1 parent be7d5e0 commit ab9fd12
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-jeans-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Exported `hdKeyToAccount` and `mnemonicToAccount`.
2 changes: 2 additions & 0 deletions src/accounts/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ test('exports utils', () => {
"HDKey",
"generateMnemonic",
"generatePrivateKey",
"hdKeyToAccount",
"mnemonicToAccount",
"privateKeyToAccount",
"toAccount",
"parseAccount",
Expand Down
5 changes: 4 additions & 1 deletion src/accounts/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { HDKey } from '@scure/bip32'

export { HDKey }

export { generateMnemonic } from './generateMnemonic'

export { generatePrivateKey } from './generatePrivateKey'

export { hdKeyToAccount } from './hdKeyToAccount'

export { mnemonicToAccount } from './mnemonicToAccount'

export { privateKeyToAccount } from './privateKeyToAccount'

export { toAccount } from './toAccount'
Expand Down

2 comments on commit ab9fd12

@vercel
Copy link

@vercel vercel bot commented on ab9fd12 Apr 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viem-playground – ./playgrounds/browser

viem-playground.vercel.app
viem-playground-git-main-wagmi-dev.vercel.app
viem-playground-wagmi-dev.vercel.app

@vercel
Copy link

@vercel vercel bot commented on ab9fd12 Apr 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.