-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92abb08
commit ed5986c
Showing
8 changed files
with
103 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ | |
}, | ||
"resolutions": { | ||
"ganache": "npm:@celo/[email protected]", | ||
"bip39": "https://github.com/bitcoinjs/bip39#a7ecbfe2e60d0214ce17163d610cad9f7b23140c", | ||
"blind-threshold-bls": "npm:@celo/[email protected]", | ||
"@types/bn.js": "4.11.6", | ||
"bignumber.js": "9.0.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { MnemonicLanguages } from '@celo/base/lib/account' | ||
|
||
import { wordlist as english } from '@scure/bip39/wordlists/english' | ||
import { wordlist as french } from '@scure/bip39/wordlists/french' | ||
import { wordlist as italian } from '@scure/bip39/wordlists/italian' | ||
import { wordlist as japanese } from '@scure/bip39/wordlists/japanese' | ||
import { wordlist as korean } from '@scure/bip39/wordlists/korean' | ||
import { wordlist as portuguese } from '@scure/bip39/wordlists/portuguese' | ||
import { wordlist as chinese_simplified } from '@scure/bip39/wordlists/simplified-chinese' | ||
import { wordlist as spanish } from '@scure/bip39/wordlists/spanish' | ||
import { wordlist as chinese_traditional } from '@scure/bip39/wordlists/traditional-chinese' | ||
|
||
const wordlists: Record<MnemonicLanguages, string[]> = { | ||
[MnemonicLanguages.english]: english, | ||
[MnemonicLanguages.french]: french, | ||
[MnemonicLanguages.italian]: italian, | ||
[MnemonicLanguages.japanese]: japanese, | ||
[MnemonicLanguages.korean]: korean, | ||
[MnemonicLanguages.portuguese]: portuguese, | ||
[MnemonicLanguages.chinese_simplified]: chinese_simplified, | ||
[MnemonicLanguages.spanish]: spanish, | ||
[MnemonicLanguages.chinese_traditional]: chinese_traditional, | ||
} as const | ||
|
||
export default wordlists |
Oops, something went wrong.