@volr/react-ui 0.1.54 → 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 +4 -9
- 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, 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: {
|
|
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, //
|
|
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
|
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,
|
|
3
|
+
export { EvmClient, 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,
|
|
3
|
+
export { EvmClient, 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.55",
|
|
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.55",
|
|
79
|
+
"@volr/sdk-core": "0.1.55",
|
|
80
80
|
"axios": "^1.13.2",
|
|
81
81
|
"class-variance-authority": "^0.7.1",
|
|
82
82
|
"clsx": "^2.1.1",
|