@volr/react-ui 0.1.53 → 0.1.54
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 +9 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
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,
|
|
73
|
+
const { evm, 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: {address}</p>
|
|
92
|
+
<p className="text-sm text-gray-600">Wallet: {evm.address}</p>
|
|
93
93
|
<div className="flex gap-2">
|
|
94
94
|
<button onClick={handleTransfer} className="bg-blue-500 text-white rounded">
|
|
95
95
|
Transfer
|
|
@@ -136,8 +136,7 @@ function Example() {
|
|
|
136
136
|
import { useVolr } from '@volr/react-ui';
|
|
137
137
|
|
|
138
138
|
const {
|
|
139
|
-
evm, //
|
|
140
|
-
address, // `0x${string}` | undefined
|
|
139
|
+
evm, // EvmNamespace - chain client factory + address
|
|
141
140
|
email, // string | undefined
|
|
142
141
|
isLoggedIn, // boolean
|
|
143
142
|
signerType, // 'passkey' | 'external_wallet' | 'mpc' | undefined
|
|
@@ -145,6 +144,12 @@ const {
|
|
|
145
144
|
isLoading, // boolean
|
|
146
145
|
error, // Error | null
|
|
147
146
|
} = useVolr();
|
|
147
|
+
|
|
148
|
+
// Get EVM address
|
|
149
|
+
const address = evm.address;
|
|
150
|
+
|
|
151
|
+
// Get chain client
|
|
152
|
+
const client = evm(8453);
|
|
148
153
|
```
|
|
149
154
|
|
|
150
155
|
### EvmClient
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
import { KeyStorageType, VolrConfig } from '@volr/react';
|
|
3
|
-
export { EvmClient, KeyStorageType, SendBatchOverloads, SignerType, VolrClient, VolrConfig, VolrProvider, VolrUser, useDepositListener, usePasskeyEnrollment, useVolr, useVolrLogin } from '@volr/react';
|
|
3
|
+
export { EvmClient, EvmNamespace, KeyStorageType, SendBatchOverloads, SignerType, VolrClient, VolrConfig, VolrProvider, VolrUser, useDepositListener, usePasskeyEnrollment, useVolr, useVolrLogin } from '@volr/react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
interface BrandingConfig {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
import { KeyStorageType, VolrConfig } from '@volr/react';
|
|
3
|
-
export { EvmClient, KeyStorageType, SendBatchOverloads, SignerType, VolrClient, VolrConfig, VolrProvider, VolrUser, useDepositListener, usePasskeyEnrollment, useVolr, useVolrLogin } from '@volr/react';
|
|
3
|
+
export { EvmClient, EvmNamespace, KeyStorageType, SendBatchOverloads, SignerType, VolrClient, VolrConfig, VolrProvider, VolrUser, useDepositListener, usePasskeyEnrollment, useVolr, useVolrLogin } from '@volr/react';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
interface BrandingConfig {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volr/react-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
4
4
|
"description": "Volr React UI - UI components for Volr built on top of @volr/react",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@noble/hashes": "^2.0.1",
|
|
78
|
-
"@volr/react": "0.1.
|
|
79
|
-
"@volr/sdk-core": "0.1.
|
|
78
|
+
"@volr/react": "0.1.54",
|
|
79
|
+
"@volr/sdk-core": "0.1.54",
|
|
80
80
|
"axios": "^1.13.2",
|
|
81
81
|
"class-variance-authority": "^0.7.1",
|
|
82
82
|
"clsx": "^2.1.1",
|