@xyo-network/react-wallet 2.66.1 → 2.66.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/hooks/useWallet.d.cts +1 -2
- package/dist/browser/hooks/useWallet.d.cts.map +1 -1
- package/dist/browser/hooks/useWallet.d.mts +1 -2
- package/dist/browser/hooks/useWallet.d.mts.map +1 -1
- package/dist/browser/hooks/useWallet.d.ts +1 -2
- package/dist/browser/hooks/useWallet.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/hooks/useWallet.d.cts +1 -2
- package/dist/node/hooks/useWallet.d.cts.map +1 -1
- package/dist/node/hooks/useWallet.d.mts +1 -2
- package/dist/node/hooks/useWallet.d.mts.map +1 -1
- package/dist/node/hooks/useWallet.d.ts +1 -2
- package/dist/node/hooks/useWallet.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +23 -24
- package/src/hooks/useWallet.ts +1 -2
package/package.json
CHANGED
|
@@ -10,24 +10,23 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/eth-address": "^2.13.
|
|
14
|
-
"@xylabs/react-button": "^3.0.
|
|
15
|
-
"@xylabs/react-crypto": "^3.0.
|
|
16
|
-
"@xylabs/react-flexbox": "^3.0.
|
|
17
|
-
"@xylabs/react-identicon": "^3.0.
|
|
18
|
-
"@xylabs/react-number-status": "^3.0.
|
|
19
|
-
"@xylabs/react-promise": "^3.0.
|
|
20
|
-
"@xylabs/react-quick-tip-button": "^3.0.
|
|
21
|
-
"@xylabs/react-select": "^3.0.
|
|
22
|
-
"@xylabs/react-shared": "^3.0.
|
|
23
|
-
"@xyo-network/account": "^2.
|
|
24
|
-
"@xyo-network/account-model": "^2.
|
|
25
|
-
"@xyo-network/bip39": "^2.
|
|
26
|
-
"@xyo-network/
|
|
27
|
-
"@xyo-network/react-
|
|
28
|
-
"@xyo-network/react-
|
|
29
|
-
"@xyo-network/
|
|
30
|
-
"@xyo-network/wallet-model": "^2.81.6",
|
|
13
|
+
"@xylabs/eth-address": "^2.13.20",
|
|
14
|
+
"@xylabs/react-button": "^3.0.33",
|
|
15
|
+
"@xylabs/react-crypto": "^3.0.33",
|
|
16
|
+
"@xylabs/react-flexbox": "^3.0.33",
|
|
17
|
+
"@xylabs/react-identicon": "^3.0.33",
|
|
18
|
+
"@xylabs/react-number-status": "^3.0.33",
|
|
19
|
+
"@xylabs/react-promise": "^3.0.33",
|
|
20
|
+
"@xylabs/react-quick-tip-button": "^3.0.33",
|
|
21
|
+
"@xylabs/react-select": "^3.0.33",
|
|
22
|
+
"@xylabs/react-shared": "^3.0.33",
|
|
23
|
+
"@xyo-network/account": "^2.82.0",
|
|
24
|
+
"@xyo-network/account-model": "^2.82.0",
|
|
25
|
+
"@xyo-network/bip39": "^2.82.0",
|
|
26
|
+
"@xyo-network/react-address-render": "~2.66.3",
|
|
27
|
+
"@xyo-network/react-network": "~2.66.3",
|
|
28
|
+
"@xyo-network/react-shared": "~2.66.3",
|
|
29
|
+
"@xyo-network/wallet-model": "^2.82.0",
|
|
31
30
|
"async-mutex": "^0.4.0"
|
|
32
31
|
},
|
|
33
32
|
"peerDependencies": {
|
|
@@ -39,11 +38,11 @@
|
|
|
39
38
|
},
|
|
40
39
|
"description": "Common React library for all XYO projects that use React",
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@storybook/react": "^7.
|
|
43
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
44
|
-
"@xylabs/tsconfig-react": "^3.2.
|
|
45
|
-
"react-router-dom": "^6.
|
|
46
|
-
"typescript": "^5.
|
|
41
|
+
"@storybook/react": "^7.6.3",
|
|
42
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.10",
|
|
43
|
+
"@xylabs/tsconfig-react": "^3.2.10",
|
|
44
|
+
"react-router-dom": "^6.20.1",
|
|
45
|
+
"typescript": "^5.3.2"
|
|
47
46
|
},
|
|
48
47
|
"docs": "dist/docs.json",
|
|
49
48
|
"exports": {
|
|
@@ -95,6 +94,6 @@
|
|
|
95
94
|
},
|
|
96
95
|
"sideEffects": false,
|
|
97
96
|
"types": "dist/browser/index.d.ts",
|
|
98
|
-
"version": "2.66.
|
|
97
|
+
"version": "2.66.3",
|
|
99
98
|
"type": "module"
|
|
100
99
|
}
|
package/src/hooks/useWallet.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { usePromise } from '@xylabs/react-promise'
|
|
2
2
|
import { HDWallet } from '@xyo-network/account'
|
|
3
|
-
import { DataLike } from '@xyo-network/core'
|
|
4
3
|
import { WalletInstance } from '@xyo-network/wallet-model'
|
|
5
4
|
import { useState } from 'react'
|
|
6
5
|
|
|
@@ -10,7 +9,7 @@ export interface WalletHookParams {
|
|
|
10
9
|
mnemonic?: string
|
|
11
10
|
path?: string
|
|
12
11
|
required?: boolean
|
|
13
|
-
seed?:
|
|
12
|
+
seed?: Uint8Array | string
|
|
14
13
|
wallet?: WalletInstance | null
|
|
15
14
|
}
|
|
16
15
|
|