@omnisat/lasereyes 0.0.121 → 0.0.123

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 CHANGED
@@ -24,7 +24,7 @@ This package exports two core packages:
24
24
  To install the `@omnisat/lasereyes` package:
25
25
 
26
26
  ```bash
27
- pnpm add @omnisat/lasereyes
27
+ yarn add @omnisat/lasereyes
28
28
  ```
29
29
 
30
30
  ## Usage
@@ -34,25 +34,25 @@ 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, MAINNET } from '@omnisat/lasereyes-react';
38
38
 
39
39
  function App() {
40
40
  return (
41
- <LaserEyesProvider network="mainnet">
41
+ <LaserEyesProvider config={{network: MAINNET}}>
42
42
  <WalletInfo />
43
43
  </LaserEyesProvider>
44
44
  );
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
  );