Skip to content

Commit

Permalink
fix: resolves #2069
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Sep 10, 2024
1 parent 18ff679 commit a5c56b8
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 13 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@
"limit": "20 kB",
"import": "{ privateKeyToAccount }"
},
{
"name": "import { mnemonicToAccount } from 'viem/accounts'",
"path": "./src/_esm/accounts/index.js",
"limit": "30 kB",
"import": "{ mnemonicToAccount }"
},
{
"name": "import * from 'viem/actions'",
"path": "./src/_esm/actions/index.js",
Expand Down
13 changes: 10 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions src/accounts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ export type { Address } from 'abitype'

// biome-ignore lint/performance/noBarrelFile: entrypoint module
export { HDKey } from '@scure/bip32'
export { wordlist as czech } from '@scure/bip39/wordlists/czech'
export { wordlist as english } from '@scure/bip39/wordlists/english'
export { wordlist as french } from '@scure/bip39/wordlists/french'
export { wordlist as italian } from '@scure/bip39/wordlists/italian'
export { wordlist as japanese } from '@scure/bip39/wordlists/japanese'
export { wordlist as korean } from '@scure/bip39/wordlists/korean'
export { wordlist as portuguese } from '@scure/bip39/wordlists/portuguese'
export { wordlist as simplifiedChinese } from '@scure/bip39/wordlists/simplified-chinese'
export { wordlist as spanish } from '@scure/bip39/wordlists/spanish'
export { wordlist as traditionalChinese } from '@scure/bip39/wordlists/traditional-chinese'

export {
czech,
english,
french,
italian,
japanese,
korean,
portuguese,
simplifiedChinese,
spanish,
traditionalChinese,
} from './wordlists.js'

export {
type GenerateMnemonicErrorType,
Expand Down
11 changes: 11 additions & 0 deletions src/accounts/wordlists.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// biome-ignore lint/performance/noBarrelFile:
export { wordlist as czech } from '@scure/bip39/wordlists/czech'
export { wordlist as english } from '@scure/bip39/wordlists/english'
export { wordlist as french } from '@scure/bip39/wordlists/french'
export { wordlist as italian } from '@scure/bip39/wordlists/italian'
export { wordlist as japanese } from '@scure/bip39/wordlists/japanese'
export { wordlist as korean } from '@scure/bip39/wordlists/korean'
export { wordlist as portuguese } from '@scure/bip39/wordlists/portuguese'
export { wordlist as simplifiedChinese } from '@scure/bip39/wordlists/simplified-chinese'
export { wordlist as spanish } from '@scure/bip39/wordlists/spanish'
export { wordlist as traditionalChinese } from '@scure/bip39/wordlists/traditional-chinese'

0 comments on commit a5c56b8

Please sign in to comment.