@volr/react-ui 0.1.54 → 0.1.57

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
@@ -70,7 +70,7 @@ After login, use `useVolr` to interact with the blockchain.
70
70
  import { useVolr } from '@volr/react-ui';
71
71
 
72
72
  function Example() {
73
- const { evm, isLoggedIn, logout } = useVolr();
73
+ const { evm, evmAddress, isLoggedIn, logout } = useVolr();
74
74
 
75
75
  if (!isLoggedIn) {
76
76
  return <LoginButton />;
@@ -89,7 +89,7 @@ function Example() {
89
89
 
90
90
  return (
91
91
  <div className="flex flex-col gap-4">
92
- <p className="text-sm text-gray-600">Wallet: {evm.address}</p>
92
+ <p className="text-sm text-gray-600">Wallet: {evmAddress}</p>
93
93
  <div className="flex gap-2">
94
94
  <button onClick={handleTransfer} className="bg-blue-500 text-white rounded">
95
95
  Transfer
@@ -136,7 +136,8 @@ function Example() {
136
136
  import { useVolr } from '@volr/react-ui';
137
137
 
138
138
  const {
139
- evm, // EvmNamespace - chain client factory + address
139
+ evm, // (chainId: number) => EvmClient
140
+ evmAddress, // `0x${string}` | undefined
140
141
  email, // string | undefined
141
142
  isLoggedIn, // boolean
142
143
  signerType, // 'passkey' | 'external_wallet' | 'mpc' | undefined
@@ -144,12 +145,6 @@ const {
144
145
  isLoading, // boolean
145
146
  error, // Error | null
146
147
  } = useVolr();
147
-
148
- // Get EVM address
149
- const address = evm.address;
150
-
151
- // Get chain client
152
- const client = evm(8453);
153
148
  ```
154
149
 
155
150
  ### EvmClient