@vela-ventures/aosync-sdk-react 1.0.4 → 1.0.5
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/README.md +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,18 +14,18 @@ A lightweight React hook and context provider for integrating the Beacon Wallet
|
|
|
14
14
|
Install the package via npm:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install @vela-ventures/
|
|
17
|
+
npm install @vela-ventures/aosync-sdk-react
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
22
|
### 1: Wrap Your App with WalletProvider
|
|
23
23
|
|
|
24
|
-
To enable wallet functionality across your app, wrap your application with the
|
|
24
|
+
To enable wallet functionality across your app, wrap your application with the AOSyncProvider:
|
|
25
25
|
|
|
26
26
|
```javascript
|
|
27
27
|
import React from "react";
|
|
28
|
-
import { AOSyncProvider } from "@vela-ventures/
|
|
28
|
+
import { AOSyncProvider } from "@vela-ventures/aosync-sdk-react";
|
|
29
29
|
|
|
30
30
|
const App = () => {
|
|
31
31
|
return (
|
|
@@ -49,7 +49,7 @@ Access wallet functionality in any component with the useWallet hook:
|
|
|
49
49
|
|
|
50
50
|
```javascript
|
|
51
51
|
import React from "react";
|
|
52
|
-
import { useWallet } from "@vela-ventures/
|
|
52
|
+
import { useWallet } from "@vela-ventures/aosync-sdk-react";
|
|
53
53
|
|
|
54
54
|
const WalletComponent = () => {
|
|
55
55
|
const { isConnected, connect, disconnect, getAddress, sendAR } = useWallet();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vela-ventures/aosync-sdk-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"react": "^18.2.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@vela-ventures/ao-sync-sdk": "^1.1.
|
|
68
|
+
"@vela-ventures/ao-sync-sdk": "^1.1.11"
|
|
69
69
|
}
|
|
70
70
|
}
|