@volr/react 0.1.53 → 0.1.55
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 +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ function App() {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function YourApp() {
|
|
32
|
-
const { evm,
|
|
32
|
+
const { evm, evmAddress, isLoggedIn, logout } = useVolr();
|
|
33
33
|
|
|
34
34
|
if (!isLoggedIn) {
|
|
35
35
|
return <div>Please login</div>;
|
|
@@ -40,7 +40,7 @@ function YourApp() {
|
|
|
40
40
|
address: '0x...',
|
|
41
41
|
abi: erc20Abi,
|
|
42
42
|
functionName: 'balanceOf',
|
|
43
|
-
args: [
|
|
43
|
+
args: [evmAddress],
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
// Send transaction
|
|
@@ -70,7 +70,7 @@ Main hook for wallet operations.
|
|
|
70
70
|
```tsx
|
|
71
71
|
const {
|
|
72
72
|
evm, // (chainId: number) => EvmClient
|
|
73
|
-
|
|
73
|
+
evmAddress, // `0x${string}` | undefined
|
|
74
74
|
email, // string | undefined
|
|
75
75
|
isLoggedIn, // boolean
|
|
76
76
|
signerType, // 'passkey' | 'external_wallet' | 'mpc' | undefined
|
package/dist/index.cjs
CHANGED
|
@@ -18486,7 +18486,7 @@ function useVolr() {
|
|
|
18486
18486
|
);
|
|
18487
18487
|
return {
|
|
18488
18488
|
evm,
|
|
18489
|
-
|
|
18489
|
+
evmAddress: user?.evmAddress,
|
|
18490
18490
|
email: user?.email,
|
|
18491
18491
|
isLoggedIn: user !== null,
|
|
18492
18492
|
signerType: user?.signerType,
|