@omnisat/lasereyes 0.0.120 → 0.0.122

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -34,7 +34,7 @@ pnpm add @omnisat/lasereyes
34
34
  ### Example Usage (React)
35
35
 
36
36
  ```typescript
37
- import { LaserEyesProvider, useWallet } from '@omnisat/lasereyes-react';
37
+ import { LaserEyesProvider, useLaserEyes, UNISAT } from '@omnisat/lasereyes-react';
38
38
 
39
39
  function App() {
40
40
  return (
@@ -45,14 +45,14 @@ function App() {
45
45
  }
46
46
 
47
47
  function WalletInfo() {
48
- const { wallet, connect } = useWallet();
48
+ const { address, connect } = useLaserEyes();
49
49
 
50
50
  return (
51
51
  <div>
52
- {wallet ? (
53
- <p>Connected: {wallet.address}</p>
52
+ {address ? (
53
+ <p>Connected: {address}</p>
54
54
  ) : (
55
- <button onClick={connect}>Connect Wallet</button>
55
+ <button onClick={() => connect(UNISAT)}>Connect Wallet</button>
56
56
  )}
57
57
  </div>
58
58
  );
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/omnisat/lasereyes-mono.git"
21
21
  },
22
22
  "private": false,
23
- "version": "0.0.120",
23
+ "version": "0.0.122",
24
24
  "type": "module",
25
25
  "main": "./dist/index.umd.cjs",
26
26
  "module": "./dist/index.js",
@@ -41,8 +41,8 @@
41
41
  "vite-plugin-dts": "^4.2.1"
42
42
  },
43
43
  "dependencies": {
44
- "@omnisat/lasereyes-core": "0.0.45-rc.1",
45
- "@omnisat/lasereyes-react": "0.0.37",
44
+ "@omnisat/lasereyes-core": "0.0.45",
45
+ "@omnisat/lasereyes-react": "0.0.39",
46
46
  "bip39": "^3.1.0"
47
47
  },
48
48
  "license": "MIT",