-
-
Notifications
You must be signed in to change notification settings - Fork 567
/
index.ts
87 lines (86 loc) · 2.6 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
export type { Address } from 'abitype'
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 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 {
type GenerateMnemonicErrorType,
generateMnemonic,
} from './generateMnemonic.js'
export {
type GeneratePrivateKeyErrorType,
generatePrivateKey,
} from './generatePrivateKey.js'
export {
type HDKeyToAccountErrorType,
hdKeyToAccount,
} from './hdKeyToAccount.js'
export {
type MnemonicToAccountErrorType,
mnemonicToAccount,
} from './mnemonicToAccount.js'
export {
type PrivateKeyToAccountErrorType,
privateKeyToAccount,
} from './privateKeyToAccount.js'
export { type ToAccountErrorType, toAccount } from './toAccount.js'
export type {
Account,
AccountSource,
CustomSource,
HDOptions,
JsonRpcAccount,
LocalAccount,
HDAccount,
PrivateKeyAccount,
} from './types.js'
export {
type SignErrorType,
type SignParameters,
type SignReturnType,
sign,
} from './utils/sign.js'
export {
/** @deprecated Use `SignatureToHexErrorType` instead. */
type SerializeSignatureErrorType as SignatureToHexErrorType,
/** @deprecated Use `serializeSignature` instead. */
serializeSignature as signatureToHex,
type SerializeSignatureErrorType,
serializeSignature,
} from '../utils/signature/serializeSignature.js'
export {
type SignMessageErrorType,
type SignMessageParameters,
type SignMessageReturnType,
signMessage,
} from './utils/signMessage.js'
export {
type SignTransactionErrorType,
type SignTransactionParameters,
type SignTransactionReturnType,
signTransaction,
} from './utils/signTransaction.js'
export {
type SignTypedDataErrorType,
type SignTypedDataParameters,
type SignTypedDataReturnType,
signTypedData,
} from './utils/signTypedData.js'
export {
type ParseAccountErrorType,
parseAccount,
} from './utils/parseAccount.js'
export {
type PublicKeyToAddressErrorType,
publicKeyToAddress,
} from './utils/publicKeyToAddress.js'
export {
type PrivateKeyToAddressErrorType,
privateKeyToAddress,
} from './utils/privateKeyToAddress.js'