@tronweb3/tronwallet-adapter-react-hooks 1.1.7 → 1.1.8
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/LICENSE +1 -1
- package/README.md +4 -4
- package/package.json +12 -10
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ Used to specify what wallet adapters are supported. All wallet adapters can be i
|
|
|
92
92
|
- Type: `(error: WalletError): void`
|
|
93
93
|
- Default: `function(error) { console.error(error); }`
|
|
94
94
|
|
|
95
|
-
Used to handle errors occured when use wallet. Developers can use the callback to tell users what happened according to the `error` type. All error types can be found [here](https://github.com/
|
|
95
|
+
Used to handle errors occured when use wallet. Developers can use the callback to tell users what happened according to the `error` type. All error types can be found [here](https://github.com/web3-geek/tronwallet-adapter/blob/main/packages/adapters/abstract-adapter/src/errors.ts).
|
|
96
96
|
|
|
97
97
|
- Example
|
|
98
98
|
```jsx
|
|
@@ -229,7 +229,7 @@ enum AdapterState {
|
|
|
229
229
|
#### select
|
|
230
230
|
|
|
231
231
|
- Type: `(walletAdapterName: AdapterName) => void`
|
|
232
|
-
Select a wallet by walletAdapterName. Valid adapters can be found [here](https://github.com/
|
|
232
|
+
Select a wallet by walletAdapterName. Valid adapters can be found [here](https://github.com/web3-geek/tronwallet-adapter/tree/main/packages/adapters/adapters)
|
|
233
233
|
|
|
234
234
|
#### connect
|
|
235
235
|
|
|
@@ -241,12 +241,12 @@ enum AdapterState {
|
|
|
241
241
|
- Type: `() => Promise<void>`
|
|
242
242
|
Disconnect from current selected wallet.
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
#### signTransaction
|
|
245
245
|
|
|
246
246
|
- Type: `(transaction: Transaction) => Promise<SignedTransaction>`
|
|
247
247
|
Sign a unsigned transaction. This method is the same as TronWeb API.
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
#### signMessage
|
|
250
250
|
|
|
251
251
|
- Type: `(message: string) => Promise<string>`
|
|
252
252
|
Sign a message.
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tronweb3/tronwallet-adapter-react-hooks",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "A `useWallet()` hook to make it easy to interact with Tron wallets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TRON",
|
|
7
7
|
"TronWeb",
|
|
8
8
|
"adapter"
|
|
9
9
|
],
|
|
10
|
-
"author": "
|
|
10
|
+
"author": "web3-geek",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/web3-geek/tronwallet-adapter"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"type": "module",
|
|
@@ -40,16 +40,18 @@
|
|
|
40
40
|
"react-dom": "*"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tronweb3/tronwallet-abstract-adapter": "^1.1.
|
|
44
|
-
"@tronweb3/tronwallet-adapter-tronlink": "^1.1.
|
|
43
|
+
"@tronweb3/tronwallet-abstract-adapter": "^1.1.7",
|
|
44
|
+
"@tronweb3/tronwallet-adapter-tronlink": "^1.1.10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@types/
|
|
48
|
-
"@types/react
|
|
47
|
+
"@types/jest": "^27.5.2",
|
|
48
|
+
"@types/react": "^18.3.3",
|
|
49
|
+
"@types/react-dom": "^18.3.0",
|
|
49
50
|
"jest-localstorage-mock": "^2.4.22",
|
|
50
|
-
"react": "^18.
|
|
51
|
-
"react-dom": "^18.
|
|
52
|
-
"shx": "^0.3.4"
|
|
51
|
+
"react": "^18.3.1",
|
|
52
|
+
"react-dom": "^18.3.1",
|
|
53
|
+
"shx": "^0.3.4",
|
|
54
|
+
"typescript": "^5.5.4"
|
|
53
55
|
},
|
|
54
56
|
"scripts": {
|
|
55
57
|
"clean": "shx mkdir -p lib && shx rm -rf lib",
|