@zeni-wallet/react 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +47 -2
- package/dist/index.d.ts +21 -0
- package/dist/index.js +56 -0
- package/dist/useBrowserWallet.d.ts +21 -0
- package/dist/useBrowserWallet.js +173 -0
- package/package.json +54 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zeni Wallet Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @zeni-wallet/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React 18/19 bindings and a locally rendered QR connect button for Zeni's mobile wallet.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @zeni-wallet/react @zeni-wallet/connect
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This package is ESM and includes TypeScript declarations. React 18 and 19 are supported. In Next.js, import hooks and wallet components from a client component (`"use client"`).
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { ZeniConnectProvider, ZeniConnectButton, useZeni } from '@zeni-wallet/react';
|
|
15
|
+
|
|
16
|
+
export function App() {
|
|
17
|
+
return (
|
|
18
|
+
<ZeniConnectProvider relayUrl="https://zeni-wallet.onrender.com" name="Your application">
|
|
19
|
+
<ZeniConnectButton />
|
|
20
|
+
<WalletActions />
|
|
21
|
+
</ZeniConnectProvider>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function WalletActions() {
|
|
26
|
+
const { provider, account, error } = useZeni();
|
|
27
|
+
async function sign() {
|
|
28
|
+
try {
|
|
29
|
+
const signature = await provider.request({
|
|
30
|
+
method: 'personal_sign', params: ['0x68656c6c6f', account],
|
|
31
|
+
});
|
|
32
|
+
// Verify the signature for your server-issued challenge before authenticating.
|
|
33
|
+
} catch (error) {
|
|
34
|
+
// Display the wallet's rejection/error in your UI.
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return <button disabled={!account} onClick={sign}>Sign in with Zeni</button>;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`useZeni()` exposes `provider`, `account`, `uri`, `connecting`, `error`, `connect()` and `disconnect()`. Use the hook for custom UI or `ZeniConnectButton` for the QR panel and same-device deep link. `connect()` reports errors through hook state; direct `provider.request()` calls reject with wallet error codes.
|
|
42
|
+
|
|
43
|
+
Follow the method and security limits in `@zeni-wallet/connect`: Diana testnet only, reviewed QOR transfers and readable message signing. This package uses Zeni Connect, not WalletConnect. The QR renderer is local and never uploads pairing secrets.
|
|
44
|
+
|
|
45
|
+
The examples use Zeni’s hosted relay. Your web app’s exact origin must be added to its allowlist, or you can supply your own public HTTPS relay URL.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Browser extension connections use `useBrowserWallet()` from `@zeni-wallet/react`. It discovers Zeni through EIP-6963 or `window.zeni`, requests accounts only when `connect()` is called, checks Diana (9800), and follows account/network changes. It returns `account`, `provider`, `detected`, `connecting`, `error`, `connect`, and `disconnect`. Call `provider.request(...)` for approved requests. This hook does not use a relay; its disconnect clears the local connection, not stored extension website permissions. Mobile connections continue to use `ZeniConnectProvider` and `useZeni`.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { ZeniProvider, type ZeniProviderOptions } from '@zeni-wallet/connect';
|
|
3
|
+
export { ZeniProvider, ZeniError, CHAIN_ID } from '@zeni-wallet/connect';
|
|
4
|
+
interface ConnectState {
|
|
5
|
+
provider: ZeniProvider;
|
|
6
|
+
account: string | null;
|
|
7
|
+
uri: string | null;
|
|
8
|
+
connecting: boolean;
|
|
9
|
+
error: string | null;
|
|
10
|
+
connect: () => Promise<void>;
|
|
11
|
+
disconnect: () => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export declare function ZeniConnectProvider({ children, relayUrl, name }: ZeniProviderOptions & {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export declare function useZeni(): ConnectState;
|
|
17
|
+
/** All QR rendering is local; the pairing secret never goes to an image/analytics service. */
|
|
18
|
+
export declare function ZeniConnectButton({ className }: {
|
|
19
|
+
className?: string;
|
|
20
|
+
}): import("react").JSX.Element;
|
|
21
|
+
export { useBrowserWallet, type BrowserProvider } from './useBrowserWallet.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import QRCode from 'qrcode';
|
|
4
|
+
import { ZeniProvider } from '@zeni-wallet/connect';
|
|
5
|
+
export { ZeniProvider, ZeniError, CHAIN_ID } from '@zeni-wallet/connect';
|
|
6
|
+
const Context = createContext(null);
|
|
7
|
+
export function ZeniConnectProvider({ children, relayUrl, name }) {
|
|
8
|
+
const provider = useMemo(() => new ZeniProvider({ relayUrl, name }), [relayUrl, name]);
|
|
9
|
+
const [account, setAccount] = useState(null), [uri, setURI] = useState(null);
|
|
10
|
+
const [connecting, setConnecting] = useState(false), [error, setError] = useState(null);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const display = (value) => setURI(value);
|
|
13
|
+
const accounts = (values) => { setAccount(values[0] || null); if (values.length)
|
|
14
|
+
setURI(null); };
|
|
15
|
+
const disconnected = () => { setURI(null); setAccount(null); setConnecting(false); };
|
|
16
|
+
provider.on('display_uri', display).on('accountsChanged', accounts).on('disconnect', disconnected);
|
|
17
|
+
return () => { provider.removeListener('display_uri', display).removeListener('accountsChanged', accounts).removeListener('disconnect', disconnected); void provider.disconnect(); };
|
|
18
|
+
}, [provider]);
|
|
19
|
+
const connect = async () => {
|
|
20
|
+
setError(null);
|
|
21
|
+
setConnecting(true);
|
|
22
|
+
try {
|
|
23
|
+
await provider.connect();
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
setError(error instanceof Error ? error.message : 'Connection failed');
|
|
27
|
+
setURI(null);
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
setConnecting(false);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const disconnect = async () => { setURI(null); setConnecting(false); await provider.disconnect(); };
|
|
34
|
+
return _jsx(Context.Provider, { value: { provider, account, uri, connecting, error, connect, disconnect }, children: children });
|
|
35
|
+
}
|
|
36
|
+
export function useZeni() {
|
|
37
|
+
const value = useContext(Context);
|
|
38
|
+
if (!value)
|
|
39
|
+
throw new Error('useZeni must be used inside ZeniConnectProvider');
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
/** All QR rendering is local; the pairing secret never goes to an image/analytics service. */
|
|
43
|
+
export function ZeniConnectButton({ className }) {
|
|
44
|
+
const { account, connect, disconnect, uri, connecting, error } = useZeni();
|
|
45
|
+
const [image, setImage] = useState(null);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
let cancelled = false;
|
|
48
|
+
setImage(null);
|
|
49
|
+
if (uri)
|
|
50
|
+
void QRCode.toDataURL(uri, { width: 320, margin: 2, errorCorrectionLevel: 'M' }).then(value => { if (!cancelled)
|
|
51
|
+
setImage(value); }).catch(() => { });
|
|
52
|
+
return () => { cancelled = true; };
|
|
53
|
+
}, [uri]);
|
|
54
|
+
return _jsxs("div", { className: className, children: [_jsx("button", { type: "button", onClick: () => void (account ? disconnect() : connect()), disabled: connecting, children: account ? `Disconnect ${account.slice(0, 6)}…${account.slice(-4)}` : connecting ? 'Waiting for Zeni…' : 'Connect Zeni Wallet' }), account && _jsx("p", { children: _jsx("a", { href: "zeni://request", children: "Open Zeni to approve requests" }) }), uri && _jsxs("div", { role: "dialog", "aria-modal": "false", "aria-label": "Connect your Zeni mobile wallet", style: { background: '#fff', color: '#171717', padding: 24, border: '1px solid #ddd', borderRadius: 16, maxWidth: 360 }, children: [_jsx("h2", { children: "Connect with Zeni" }), _jsx("p", { children: "In Zeni, open Connect and scan this QR code. Check the website address before approving." }), image && _jsx("img", { src: image, width: 280, height: 280, alt: "Scan with the Zeni wallet to connect", style: { maxWidth: '100%', height: 'auto' } }), _jsx("p", { children: _jsx("a", { href: uri, referrerPolicy: "no-referrer", children: "Open Zeni on this device" }) }), _jsx("button", { type: "button", onClick: () => void disconnect(), children: "Cancel connection" })] }), error && _jsx("p", { role: "alert", children: error })] });
|
|
55
|
+
}
|
|
56
|
+
export { useBrowserWallet } from './useBrowserWallet.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type Listener = (...values: unknown[]) => void;
|
|
2
|
+
export interface BrowserProvider {
|
|
3
|
+
isZeni?: boolean;
|
|
4
|
+
request(args: {
|
|
5
|
+
method: string;
|
|
6
|
+
params?: unknown[];
|
|
7
|
+
}): Promise<unknown>;
|
|
8
|
+
on?: (event: string, listener: Listener) => void;
|
|
9
|
+
removeListener?: (event: string, listener: Listener) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function useBrowserWallet(): {
|
|
12
|
+
account: string | null;
|
|
13
|
+
detected: boolean;
|
|
14
|
+
connecting: boolean;
|
|
15
|
+
error: string | null;
|
|
16
|
+
connect: () => Promise<void>;
|
|
17
|
+
disconnect: () => void;
|
|
18
|
+
detect: () => BrowserProvider | null;
|
|
19
|
+
provider: BrowserProvider | null;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { getAddress } from 'ethers';
|
|
3
|
+
function zeniProvider(value) {
|
|
4
|
+
return !!value && typeof value === 'object' && value.isZeni === true && typeof value.request === 'function';
|
|
5
|
+
}
|
|
6
|
+
function firstAccount(value) {
|
|
7
|
+
if (!Array.isArray(value) || value.length === 0)
|
|
8
|
+
return null;
|
|
9
|
+
if (typeof value[0] !== 'string')
|
|
10
|
+
throw new Error('Zeni returned an invalid account.');
|
|
11
|
+
return getAddress(value[0]);
|
|
12
|
+
}
|
|
13
|
+
function isDiana(value) {
|
|
14
|
+
try {
|
|
15
|
+
return typeof value === 'string' && /^0x[0-9a-f]+$/i.test(value) && BigInt(value) === 9800n;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export function useBrowserWallet() {
|
|
22
|
+
const provider = useRef(null);
|
|
23
|
+
const operation = useRef(0);
|
|
24
|
+
const pending = useRef(false);
|
|
25
|
+
const [detected, setDetected] = useState(false);
|
|
26
|
+
const [active, setActive] = useState(null);
|
|
27
|
+
const [account, setAccount] = useState(null);
|
|
28
|
+
const [connecting, setConnecting] = useState(false);
|
|
29
|
+
const [error, setError] = useState(null);
|
|
30
|
+
const detect = useCallback(() => {
|
|
31
|
+
const injected = window.zeni;
|
|
32
|
+
if (zeniProvider(injected)) {
|
|
33
|
+
provider.current = injected;
|
|
34
|
+
setDetected(true);
|
|
35
|
+
}
|
|
36
|
+
window.dispatchEvent(new Event('eip6963:requestProvider'));
|
|
37
|
+
return provider.current;
|
|
38
|
+
}, []);
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
const announce = (event) => {
|
|
41
|
+
const detail = event.detail;
|
|
42
|
+
if (detail?.info?.rdns === 'io.qorechain.zeni' && zeniProvider(detail.provider)) {
|
|
43
|
+
provider.current = detail.provider;
|
|
44
|
+
setDetected(true);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
window.addEventListener('eip6963:announceProvider', announce);
|
|
48
|
+
window.addEventListener('focus', detect);
|
|
49
|
+
detect();
|
|
50
|
+
// Content-script injection may complete after the first discovery event.
|
|
51
|
+
const timer = setTimeout(detect, 500);
|
|
52
|
+
return () => {
|
|
53
|
+
clearTimeout(timer);
|
|
54
|
+
++operation.current;
|
|
55
|
+
window.removeEventListener('eip6963:announceProvider', announce);
|
|
56
|
+
window.removeEventListener('focus', detect);
|
|
57
|
+
};
|
|
58
|
+
}, [detect]);
|
|
59
|
+
const disconnect = useCallback(() => {
|
|
60
|
+
++operation.current;
|
|
61
|
+
pending.current = false;
|
|
62
|
+
setAccount(null);
|
|
63
|
+
setActive(null);
|
|
64
|
+
setConnecting(false);
|
|
65
|
+
setError(null);
|
|
66
|
+
// The current extension has no permission-revocation RPC. This only clears the local connection.
|
|
67
|
+
}, []);
|
|
68
|
+
async function connect() {
|
|
69
|
+
if (pending.current)
|
|
70
|
+
return;
|
|
71
|
+
const wallet = detect();
|
|
72
|
+
if (!wallet) {
|
|
73
|
+
setError('Zeni extension not detected. Install it in this browser, then reload this page.');
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const version = ++operation.current;
|
|
77
|
+
pending.current = true;
|
|
78
|
+
setConnecting(true);
|
|
79
|
+
setError(null);
|
|
80
|
+
try {
|
|
81
|
+
const accounts = await wallet.request({ method: 'eth_requestAccounts' });
|
|
82
|
+
if (version !== operation.current)
|
|
83
|
+
return;
|
|
84
|
+
const address = firstAccount(accounts);
|
|
85
|
+
if (!address)
|
|
86
|
+
throw new Error('No account was approved. Unlock Zeni and try again.');
|
|
87
|
+
if (!isDiana(await wallet.request({ method: 'eth_chainId' })))
|
|
88
|
+
throw new Error('Use QoreChain Diana testnet (chain 9800) in Zeni.');
|
|
89
|
+
if (version !== operation.current)
|
|
90
|
+
return;
|
|
91
|
+
setAccount(address);
|
|
92
|
+
setActive(wallet);
|
|
93
|
+
}
|
|
94
|
+
catch (failure) {
|
|
95
|
+
if (version === operation.current)
|
|
96
|
+
setError(failure instanceof Error ? failure.message : 'Could not connect to the Zeni extension.');
|
|
97
|
+
}
|
|
98
|
+
finally {
|
|
99
|
+
if (version === operation.current) {
|
|
100
|
+
pending.current = false;
|
|
101
|
+
setConnecting(false);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
useEffect(() => {
|
|
106
|
+
if (!active)
|
|
107
|
+
return;
|
|
108
|
+
let disposed = false, checking = false;
|
|
109
|
+
const version = operation.current;
|
|
110
|
+
const current = () => !disposed && version === operation.current;
|
|
111
|
+
const end = (message) => {
|
|
112
|
+
if (!current())
|
|
113
|
+
return;
|
|
114
|
+
++operation.current;
|
|
115
|
+
setAccount(null);
|
|
116
|
+
setActive(null);
|
|
117
|
+
setError(message);
|
|
118
|
+
};
|
|
119
|
+
const accountsChanged = value => {
|
|
120
|
+
if (!current())
|
|
121
|
+
return;
|
|
122
|
+
try {
|
|
123
|
+
const address = firstAccount(value);
|
|
124
|
+
if (address)
|
|
125
|
+
setAccount(address);
|
|
126
|
+
else
|
|
127
|
+
end('Zeni is locked or disconnected. Unlock the extension and connect again.');
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
end('Zeni returned an invalid account. Connect again.');
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
const chainChanged = value => { if (!isDiana(value))
|
|
134
|
+
end('The wallet network changed. Connect on Diana testnet again.'); };
|
|
135
|
+
const disconnected = () => end('The Zeni extension disconnected.');
|
|
136
|
+
const check = async () => {
|
|
137
|
+
if (checking || document.hidden || !current())
|
|
138
|
+
return;
|
|
139
|
+
checking = true;
|
|
140
|
+
try {
|
|
141
|
+
const [accounts, chain] = await Promise.all([active.request({ method: 'eth_accounts' }), active.request({ method: 'eth_chainId' })]);
|
|
142
|
+
if (!current())
|
|
143
|
+
return;
|
|
144
|
+
if (!isDiana(chain))
|
|
145
|
+
chainChanged(chain);
|
|
146
|
+
else
|
|
147
|
+
accountsChanged(accounts);
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
end('The Zeni extension is unavailable. Connect again.');
|
|
151
|
+
}
|
|
152
|
+
finally {
|
|
153
|
+
checking = false;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
active.on?.('accountsChanged', accountsChanged);
|
|
157
|
+
active.on?.('chainChanged', chainChanged);
|
|
158
|
+
active.on?.('disconnect', disconnected);
|
|
159
|
+
const timer = setInterval(() => void check(), 5000);
|
|
160
|
+
window.addEventListener('focus', check);
|
|
161
|
+
document.addEventListener('visibilitychange', check);
|
|
162
|
+
return () => {
|
|
163
|
+
disposed = true;
|
|
164
|
+
clearInterval(timer);
|
|
165
|
+
window.removeEventListener('focus', check);
|
|
166
|
+
document.removeEventListener('visibilitychange', check);
|
|
167
|
+
active.removeListener?.('accountsChanged', accountsChanged);
|
|
168
|
+
active.removeListener?.('chainChanged', chainChanged);
|
|
169
|
+
active.removeListener?.('disconnect', disconnected);
|
|
170
|
+
};
|
|
171
|
+
}, [active]);
|
|
172
|
+
return { account, detected, connecting, error, connect, disconnect, detect, provider: active };
|
|
173
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeni-wallet/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"description": "React hooks and connect button for Zeni Connect",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"qrcode": "^1.5.4",
|
|
22
|
+
"ethers": "^6.13.0",
|
|
23
|
+
"@zeni-wallet/connect": "^0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": ">=18 <20"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"react": "^18.3.1",
|
|
30
|
+
"@types/react": "^18.3.2",
|
|
31
|
+
"@types/qrcode": "^1.5.6",
|
|
32
|
+
"typescript": "^5.4.5"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://zeni-wallet.vercel.app/docs",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/Trymbakmahant/zeni-wallet.git",
|
|
38
|
+
"directory": "packages/react"
|
|
39
|
+
},
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/Trymbakmahant/zeni-wallet/issues"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"zeni",
|
|
45
|
+
"wallet",
|
|
46
|
+
"qorechain",
|
|
47
|
+
"sdk",
|
|
48
|
+
"react"
|
|
49
|
+
],
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public",
|
|
52
|
+
"registry": "https://registry.npmjs.org/"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsc"
|
|
56
|
+
}
|
|
6
57
|
}
|