-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
80 lines (69 loc) · 1.62 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
export {EthereumProvider} from './src/connectors/ethereumProvider'
export {CoinbaseProvider} from './src/connectors/coinbaseProvider'
export {Web3Wallets} from './src'
export type {
LimitedCallSpec,
WalletInfo,
ChainConfig,
RpcInfo,
TokenSchemaNames,
WalletNames,
ContractInterface,
TransactionRequest,
TransactionResponse,
ExternalProvider
} from './src/types'
export {
ethers, Contract, Wallet, providers, BaseContract,
Web3Provider,
JsonRpcSigner,
} from './src/types'
export type {
EIP712TypedData,
EIP712Types,
EIP712TypedDataField,
EIP712Domain,
EIP712Message,
EIP712MessageValue,
ECSignature,
Signature
} from "./src/utils/eip712TypeData"
export {
createEIP712TypedData,
getEIP712Hash,
getEIP712TypeHash,
getEIP712DomainHash,
getEIP712StructHash,
signMessage,
ecSignMessage,
ecSignHash,
joinECSignature,
splitECSignature,
privateKeyToAddress,
privateKeysToAddress,
EIP712_DOMAIN_TYPEHASH
} from "./src/utils/eip712TypeData"
export {hexUtils} from "./src/utils/hexUtils"
export {
objectClone,
itemsIsEquality,
sleep,
checkURL,
isCoinBase,
isMetaMask,
isBitKeep,
isOneKey,
isImToken,
isMathWallet,
isTokenPocket
} from './src/utils/hepler'
export {
ethSend,
getEstimateGas,
getChainRpcUrl,
getChainInfo
} from './src/utils/rpc'
export {getWalletInfo, getProvider, detectWallets, getWalletName} from './src/utils/provider'
export {
CHAIN_NAME, CHAIN_CONFIG, NULL_ADDRESS, NULL_BLOCK_HASH, ETH_TOKEN_ADDRESS, MAX_UINT_256
} from './src/constants'