@vechain/vechain-kit 1.5.7 → 1.5.8
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 +59 -138
- package/dist/{Constants-CUrs_fy0.d.cts → Constants-aAc8EZtG.d.cts} +9 -1
- package/dist/{Constants-CUrs_fy0.d.ts → Constants-aAc8EZtG.d.ts} +9 -1
- package/dist/assets/index.cjs +26 -22
- package/dist/assets/index.d.cts +40 -34
- package/dist/assets/index.d.ts +40 -34
- package/dist/assets/index.js +1 -1
- package/dist/{chunk-DYI6ON4O.js → chunk-3CI2FPCB.js} +56 -8
- package/dist/chunk-3CI2FPCB.js.map +1 -0
- package/dist/{chunk-RUIC653T.cjs → chunk-5YN7CZ5H.cjs} +27 -9
- package/dist/chunk-5YN7CZ5H.cjs.map +1 -0
- package/dist/{chunk-FID67WC3.cjs → chunk-A4NZ5AVL.cjs} +56 -7
- package/dist/chunk-A4NZ5AVL.cjs.map +1 -0
- package/dist/{chunk-EUQRNI5E.js → chunk-USAHFGIQ.js} +24 -7
- package/dist/chunk-USAHFGIQ.js.map +1 -0
- package/dist/index.cjs +848 -586
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -9
- package/dist/index.d.ts +41 -9
- package/dist/index.js +654 -395
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/utils/index.cjs +35 -31
- package/dist/utils/index.d.cts +3 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DYI6ON4O.js.map +0 -1
- package/dist/chunk-EUQRNI5E.js.map +0 -1
- package/dist/chunk-FID67WC3.cjs.map +0 -1
- package/dist/chunk-RUIC653T.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#### An all-in-one library for building VeChain applications.
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
|
-
<img src="https://i.ibb.co/
|
|
4
|
+
<img src="https://i.ibb.co/NgDN6XD3/kit-preview.png" alt="VeChain Kit Banner">
|
|
5
5
|
</div>
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
@@ -41,14 +41,36 @@ yarn add @tanstack/react-query@"^5.64.2" @chakra-ui/react@"^2.8.2" @vechain/dapp
|
|
|
41
41
|
'use client';
|
|
42
42
|
|
|
43
43
|
import VeChainKitProvider from '@vechain/vechain-kit';
|
|
44
|
+
|
|
44
45
|
export function VeChainKitProviderWrapper({ children }: Props) {
|
|
45
46
|
return (
|
|
46
47
|
<VechainKitProvider
|
|
47
48
|
feeDelegation={{
|
|
48
49
|
delegatorUrl: process.env.NEXT_PUBLIC_DELEGATOR_URL!,
|
|
50
|
+
// set to false if you want to delegate ONLY social login transactions
|
|
51
|
+
delegateAllTransactions: true,
|
|
49
52
|
}}
|
|
53
|
+
loginMethods={[
|
|
54
|
+
{ method: 'vechain', gridColumn: 4 },
|
|
55
|
+
{ method: 'dappkit', gridColumn: 4 },
|
|
56
|
+
]}
|
|
50
57
|
dappKit={{
|
|
51
|
-
allowedWallets: ['veworld', 'sync2'],
|
|
58
|
+
allowedWallets: ['veworld', 'wallet-connect', 'sync2'],
|
|
59
|
+
walletConnectOptions: {
|
|
60
|
+
projectId:
|
|
61
|
+
// Get this on https://cloud.reown.com/sign-in
|
|
62
|
+
process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID!,
|
|
63
|
+
metadata: {
|
|
64
|
+
name: 'Your App Name',
|
|
65
|
+
description:
|
|
66
|
+
'This is the description of your app visible in VeWorld upon connection request.',
|
|
67
|
+
url:
|
|
68
|
+
typeof window !== 'undefined'
|
|
69
|
+
? window.location.origin
|
|
70
|
+
: '',
|
|
71
|
+
icons: ['https://path-to-logo.png'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
52
74
|
}}
|
|
53
75
|
darkMode={true}
|
|
54
76
|
language="en"
|
|
@@ -66,7 +88,7 @@ On Next.js you will need to dynamically load the import
|
|
|
66
88
|
|
|
67
89
|
```typescript
|
|
68
90
|
import dynamic from 'next/dynamic';
|
|
69
|
-
const
|
|
91
|
+
const VeChainKitProvider = dynamic(
|
|
70
92
|
async () => (await import('@vechain/vechain-kit')).VeChainKitProvider,
|
|
71
93
|
{
|
|
72
94
|
ssr: false,
|
|
@@ -77,18 +99,7 @@ interface Props {
|
|
|
77
99
|
}
|
|
78
100
|
```
|
|
79
101
|
|
|
80
|
-
###
|
|
81
|
-
|
|
82
|
-
The modal supports several authentication methods:
|
|
83
|
-
|
|
84
|
-
- Social Login - Email and Google authentication through Privy (only available for self hosted Privy)
|
|
85
|
-
- VeChain Login - Direct VeChain wallet authentication
|
|
86
|
-
- Passkey - Biometric/device-based authentication (only available for self hosted Privy)
|
|
87
|
-
- DappKit - Connection through VeWorld or other VeChain wallets
|
|
88
|
-
- Ecosystem - Cross-app authentication within the VeChain ecosystem
|
|
89
|
-
- More Options - Additional Privy-supported login methods (only available for self hosted Privy)
|
|
90
|
-
|
|
91
|
-
#### Configuration
|
|
102
|
+
### Login Methods
|
|
92
103
|
|
|
93
104
|
The modal implements a dynamic grid layout system that can be customized through the `loginMethods` configuration.
|
|
94
105
|
|
|
@@ -102,96 +113,28 @@ The modal can be configured through the `VeChainKitProvider` props.
|
|
|
102
113
|
}}
|
|
103
114
|
loginMethods={[
|
|
104
115
|
{ method: 'vechain', gridColumn: 4 },
|
|
105
|
-
{ method: '
|
|
106
|
-
{ method: '
|
|
116
|
+
{ method: 'dappkit', gridColumn: 4 }, // VeChain wallets, always available
|
|
117
|
+
{ method: 'ecosystem', gridColumn: 4 }, // Mugshot, Cleanify, Greencart, ...
|
|
118
|
+
{ method: 'email', gridColumn: 2 }, // only available with your own Privy
|
|
119
|
+
{ method: 'passkey', gridColumn: 2 }, // only available with your own Privy
|
|
120
|
+
{ method: 'google', gridColumn: 4 }, // only available with your own Privy
|
|
121
|
+
{ method: 'more', gridColumn: 2 }, // will open your own Privy login, only available with your own Privy
|
|
107
122
|
]}
|
|
123
|
+
allowCustomTokens={false} // allow the user to manage custom tokens
|
|
108
124
|
>
|
|
109
125
|
{children}
|
|
110
126
|
</VeChainKitProvider>
|
|
111
127
|
```
|
|
112
128
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
The ways to show the ecosystem login button are:
|
|
116
|
-
|
|
117
|
-
1. You define "ecosystem" in the loginMethods in the config
|
|
118
|
-
2. You do not define the loginMethods in the config, so we default to showing the ecosystem login button
|
|
129
|
+
### Setup Fee Delegation (mandatory if allowing social login)
|
|
119
130
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
By default we have a list of default apps that will be shown as ecosystem login options. If you want to customize this list you can pass the `allowedApps` array prop. You can find the app ids in the [Ecosystem](https://dashboard.privy.io/) tab in the Privy dashboard.
|
|
123
|
-
|
|
124
|
-
### Setup Fee Delegation (mandatory)
|
|
125
|
-
|
|
126
|
-
Fee delegation is mandatory in order to use this kit. Learn how to setup fee delegation in the following guide:
|
|
131
|
+
Fee delegation is mandatory if you want to use this kit with social login. Learn how to setup fee delegation in the following guide:
|
|
127
132
|
|
|
128
133
|
[Fee Delegation](https://docs.vechainkit.vechain.org/vechain-kit/fee-delegation)
|
|
129
134
|
|
|
130
|
-
###
|
|
131
|
-
|
|
132
|
-
If you already use Privy you can pass an additional prop with you settings and you will be able to access Privy SDK, customizing the login modal based on your needs.
|
|
133
|
-
|
|
134
|
-
Pros of self hosting Privy:
|
|
135
|
-
|
|
136
|
-
- No UI confirmations on users transactions
|
|
137
|
-
- Allow your users to backup their keys and update security settings directly in your app
|
|
138
|
-
- Targetted social login methods
|
|
139
|
-
|
|
140
|
-
Cons:
|
|
135
|
+
### Show the login button
|
|
141
136
|
|
|
142
|
-
|
|
143
|
-
- Responsibilities to correctly secure your Privy account, since it contains access to user's wallet settings
|
|
144
|
-
- Your users will need to login into other apps through ecosystem mode
|
|
145
|
-
|
|
146
|
-
To setup Privy you need to add the following parameters:
|
|
147
|
-
|
|
148
|
-
```typescript
|
|
149
|
-
import { VechainKitProvider } from '@vechain/vechain-kit';
|
|
150
|
-
|
|
151
|
-
export default function App({ Component, pageProps }: AppProps) {
|
|
152
|
-
return (
|
|
153
|
-
<VechainKitProvider
|
|
154
|
-
privy={{
|
|
155
|
-
appId: process.env.NEXT_PUBLIC_PRIVY_APP_ID!,
|
|
156
|
-
clientId: process.env.NEXT_PUBLIC_PRIVY_CLIENT_ID!,
|
|
157
|
-
loginMethods: ['google', 'twitter', 'sms', 'email', 'metamask'],
|
|
158
|
-
appearance: {
|
|
159
|
-
accentColor: '#696FFD',
|
|
160
|
-
loginMessage: 'Select a social media profile',
|
|
161
|
-
logo: 'https://i.ibb.co/ZHGmq3y/image-21.png',
|
|
162
|
-
},
|
|
163
|
-
embeddedWallets: {
|
|
164
|
-
createOnLogin: 'all-users',
|
|
165
|
-
},
|
|
166
|
-
}}
|
|
167
|
-
...
|
|
168
|
-
//other props
|
|
169
|
-
>
|
|
170
|
-
{children}
|
|
171
|
-
</VechainKitProvider>
|
|
172
|
-
);
|
|
173
|
-
}
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Go to privy.io and create an app. You will find the APP ID and the CLIENT ID in the App Settings tab.
|
|
177
|
-
For further information on how to implement Privy SDK please refer to their [docs](https://docs.privy.io/)
|
|
178
|
-
|
|
179
|
-
This project uses:
|
|
180
|
-
|
|
181
|
-
- `@privy-io/react-auth` for Privy connection type
|
|
182
|
-
- `@privy-io/cross-app-connect` for ecosystem cross app connection
|
|
183
|
-
|
|
184
|
-
You can import privy from the kit as
|
|
185
|
-
|
|
186
|
-
```typescript
|
|
187
|
-
import { usePrivy } from '@vechain/vechain-kit';
|
|
188
|
-
|
|
189
|
-
const { user } = usePrivy();
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Use the kit
|
|
193
|
-
|
|
194
|
-
Once you setup the kit provider and created your fee delegation service you are good to go and you can allow your users to login.
|
|
137
|
+
Once you set up the kit provider, you are good to go, and you can allow your users to login, customizing the login experience based on your needs.
|
|
195
138
|
|
|
196
139
|
#### Wallet Button
|
|
197
140
|
|
|
@@ -243,12 +186,17 @@ export function Page() {
|
|
|
243
186
|
}
|
|
244
187
|
```
|
|
245
188
|
|
|
246
|
-
#
|
|
189
|
+
# Hooks
|
|
190
|
+
|
|
191
|
+
The kit provides hooks for developers to interact with smart contracts like VeBetterDAO, VePassport, veDelegate, and price oracles.
|
|
192
|
+
|
|
193
|
+
The hooks in this package provide a standardized way to interact with various blockchain and web services. All hooks are built using TanStack Query (formerly React Query), which provides powerful data-fetching and caching capabilities.
|
|
194
|
+
|
|
195
|
+
## Main Hooks
|
|
247
196
|
|
|
248
|
-
|
|
197
|
+
### useWallet
|
|
249
198
|
|
|
250
|
-
The `useWallet` hook
|
|
251
|
-
This will be the hook you will use more frequently and it provides quite a few useful informations.
|
|
199
|
+
The `useWallet` hook will be the one you will use more frequently and it provides quite a few useful informations like the connected account, the connected wallet, the smart account, the dappkit wallet, the embedded wallet, the cross app wallet, the privy user and the connection status.
|
|
252
200
|
|
|
253
201
|
```typescript
|
|
254
202
|
import { useWallet } from "@vechain/vechain-kit";
|
|
@@ -258,10 +206,6 @@ function MyComponent = () => {
|
|
|
258
206
|
account,
|
|
259
207
|
connectedWallet,
|
|
260
208
|
smartAccount,
|
|
261
|
-
dappKitWallet,
|
|
262
|
-
embeddedWallet,
|
|
263
|
-
crossAppWallet,
|
|
264
|
-
privyUser,
|
|
265
209
|
connection,
|
|
266
210
|
disconnect
|
|
267
211
|
} = useWallet();
|
|
@@ -270,9 +214,7 @@ function MyComponent = () => {
|
|
|
270
214
|
}
|
|
271
215
|
```
|
|
272
216
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
You need to use the `useSendTransaction` hook to send transactions to the blockchain, all you will need is to build the clause and pass it to the hook.
|
|
217
|
+
### useSendTransaction
|
|
276
218
|
|
|
277
219
|
This hook will take care of checking your connection type and handle the transaction submission between privy, cross-app and wallet connections.
|
|
278
220
|
When implementing VeChain Kit it is mandatory to use this hook to send transaction.
|
|
@@ -283,8 +225,6 @@ When implementing VeChain Kit it is mandatory to use this hook to send transacti
|
|
|
283
225
|
import {
|
|
284
226
|
useWallet,
|
|
285
227
|
useSendTransaction,
|
|
286
|
-
useTransactionModal,
|
|
287
|
-
TransactionModal,
|
|
288
228
|
getConfig
|
|
289
229
|
} from '@vechain/vechain-kit';
|
|
290
230
|
import { IB3TR__factory } from '@vechain/vechain-kit/contracts';
|
|
@@ -324,23 +264,12 @@ export function TransactionExamples() {
|
|
|
324
264
|
signerAccountAddress: account?.address ?? '',
|
|
325
265
|
});
|
|
326
266
|
|
|
327
|
-
const {
|
|
328
|
-
open: openTransactionModal,
|
|
329
|
-
close: closeTransactionModal,
|
|
330
|
-
isOpen: isTransactionModalOpen,
|
|
331
|
-
} = useTransactionModal();
|
|
332
|
-
|
|
333
267
|
// This is the function triggering the transaction and opening the modal
|
|
334
268
|
const handleTransaction = useCallback(async () => {
|
|
335
269
|
openTransactionModal();
|
|
336
270
|
await sendTransaction(clauses);
|
|
337
271
|
}, [sendTransaction, clauses, openTransactionModal]);
|
|
338
272
|
|
|
339
|
-
const handleTryAgain = useCallback(async () => {
|
|
340
|
-
resetStatus();
|
|
341
|
-
await sendTransaction(clauses);
|
|
342
|
-
}, [sendTransaction, clauses, resetStatus]);
|
|
343
|
-
|
|
344
273
|
return (
|
|
345
274
|
<>
|
|
346
275
|
<button
|
|
@@ -350,31 +279,11 @@ export function TransactionExamples() {
|
|
|
350
279
|
>
|
|
351
280
|
Send B3TR
|
|
352
281
|
</button>
|
|
353
|
-
|
|
354
|
-
<TransactionModal
|
|
355
|
-
isOpen={isTransactionModalOpen}
|
|
356
|
-
onClose={closeTransactionModal}
|
|
357
|
-
status={status}
|
|
358
|
-
txReceipt={txReceipt}
|
|
359
|
-
txError={error}
|
|
360
|
-
onTryAgain={handleTryAgain}
|
|
361
|
-
uiConfig={{
|
|
362
|
-
title: 'Test Transaction',
|
|
363
|
-
description: `This is a dummy transaction to test the transaction modal. Confirm to transfer ${0} B3TR to ${
|
|
364
|
-
account?.address
|
|
365
|
-
}`,
|
|
366
|
-
showShareOnSocials: true,
|
|
367
|
-
showExplorerButton: true,
|
|
368
|
-
isClosable: true,
|
|
369
|
-
}}
|
|
370
|
-
/>
|
|
371
282
|
</>
|
|
372
283
|
);
|
|
373
284
|
}
|
|
374
285
|
```
|
|
375
286
|
|
|
376
|
-
You can also use `useSignMessage` and `useSignTypedData` hooks to sign messages and typed data.
|
|
377
|
-
|
|
378
287
|
## Blockchain Data Reading
|
|
379
288
|
|
|
380
289
|
The kit provides hooks for developers to interact with smart contracts like VeBetterDAO, VePassport, veDelegate, and price oracles. These hooks work with react-query, improving query capabilities by caching responses and offering real-time states like isLoading and isError. This helps developers manage and update user interfaces effectively, ensuring a responsive experience.
|
|
@@ -388,3 +297,15 @@ const { data: balance, isLoading, isError } = useGetB3trBalance('0x.....');
|
|
|
388
297
|
|
|
389
298
|
console.log(balance.formatted, balance.original, balance.scaled);
|
|
390
299
|
```
|
|
300
|
+
|
|
301
|
+
# Resources
|
|
302
|
+
|
|
303
|
+
Read the complete documentation on [VeChain Kit Docs](https://docs.vechainkit.vechain.org/)
|
|
304
|
+
|
|
305
|
+
Are you having issues using the kit? Join our discord server to receive support from our devs or open an issue on our Github!
|
|
306
|
+
|
|
307
|
+
Check our [Troubleshooting](https://docs.vechainkit.vechain.org/vechain-kit/troubleshooting) section.
|
|
308
|
+
|
|
309
|
+
Contact us on [Discord](https://discord.gg/wGkQnPpRVq)
|
|
310
|
+
|
|
311
|
+
Open an issue on [Github](https://github.com/vechain/vechain-kit/issues)
|
|
@@ -120,6 +120,7 @@ type PrivyAppInfo = {
|
|
|
120
120
|
google_oauth: boolean;
|
|
121
121
|
twitter_oauth: boolean;
|
|
122
122
|
url: string;
|
|
123
|
+
website?: string;
|
|
123
124
|
};
|
|
124
125
|
type PrivyLoginMethod = LoginMethodOrderOption;
|
|
125
126
|
interface CrossAppConnectionCache {
|
|
@@ -128,6 +129,7 @@ interface CrossAppConnectionCache {
|
|
|
128
129
|
name: string;
|
|
129
130
|
logoUrl?: string;
|
|
130
131
|
appId: string;
|
|
132
|
+
website?: string;
|
|
131
133
|
};
|
|
132
134
|
}
|
|
133
135
|
declare enum NFTMediaType {
|
|
@@ -186,5 +188,11 @@ declare enum TogglePassportCheck {
|
|
|
186
188
|
ParticipationScoreCheck = 4,
|
|
187
189
|
GmOwnershipCheck = 5
|
|
188
190
|
}
|
|
191
|
+
type PrivyEcosystemApp = {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
website: string;
|
|
195
|
+
};
|
|
196
|
+
declare const DEFAULT_PRIVY_ECOSYSTEM_APPS: PrivyEcosystemApp[];
|
|
189
197
|
|
|
190
|
-
export { type ConnectionSource as C, type EnhancedClause as E, type NETWORK_TYPE as N, type PrivyLoginMethod as P, type SmartAccount as S, TogglePassportCheck as T, VePassportUserStatus as V, type Wallet as W, type Network as a, type PrivyAppInfo as b, type TransactionStatus as c, type TransactionStatusErrorType as d, type ENSRecords as e, NFTMediaType as f, type CrossAppConnectionCache as g, type ExecuteWithAuthorizationSignData as h, type ExecuteBatchWithAuthorizationSignData as i, TOKEN_LOGOS as j, TOKEN_LOGO_COMPONENTS as k, VECHAIN_PRIVY_APP_ID as l, notFoundImage as n };
|
|
198
|
+
export { type ConnectionSource as C, DEFAULT_PRIVY_ECOSYSTEM_APPS as D, type EnhancedClause as E, type NETWORK_TYPE as N, type PrivyLoginMethod as P, type SmartAccount as S, TogglePassportCheck as T, VePassportUserStatus as V, type Wallet as W, type Network as a, type PrivyAppInfo as b, type TransactionStatus as c, type TransactionStatusErrorType as d, type ENSRecords as e, NFTMediaType as f, type CrossAppConnectionCache as g, type ExecuteWithAuthorizationSignData as h, type ExecuteBatchWithAuthorizationSignData as i, TOKEN_LOGOS as j, TOKEN_LOGO_COMPONENTS as k, VECHAIN_PRIVY_APP_ID as l, type PrivyEcosystemApp as m, notFoundImage as n };
|
|
@@ -120,6 +120,7 @@ type PrivyAppInfo = {
|
|
|
120
120
|
google_oauth: boolean;
|
|
121
121
|
twitter_oauth: boolean;
|
|
122
122
|
url: string;
|
|
123
|
+
website?: string;
|
|
123
124
|
};
|
|
124
125
|
type PrivyLoginMethod = LoginMethodOrderOption;
|
|
125
126
|
interface CrossAppConnectionCache {
|
|
@@ -128,6 +129,7 @@ interface CrossAppConnectionCache {
|
|
|
128
129
|
name: string;
|
|
129
130
|
logoUrl?: string;
|
|
130
131
|
appId: string;
|
|
132
|
+
website?: string;
|
|
131
133
|
};
|
|
132
134
|
}
|
|
133
135
|
declare enum NFTMediaType {
|
|
@@ -186,5 +188,11 @@ declare enum TogglePassportCheck {
|
|
|
186
188
|
ParticipationScoreCheck = 4,
|
|
187
189
|
GmOwnershipCheck = 5
|
|
188
190
|
}
|
|
191
|
+
type PrivyEcosystemApp = {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
website: string;
|
|
195
|
+
};
|
|
196
|
+
declare const DEFAULT_PRIVY_ECOSYSTEM_APPS: PrivyEcosystemApp[];
|
|
189
197
|
|
|
190
|
-
export { type ConnectionSource as C, type EnhancedClause as E, type NETWORK_TYPE as N, type PrivyLoginMethod as P, type SmartAccount as S, TogglePassportCheck as T, VePassportUserStatus as V, type Wallet as W, type Network as a, type PrivyAppInfo as b, type TransactionStatus as c, type TransactionStatusErrorType as d, type ENSRecords as e, NFTMediaType as f, type CrossAppConnectionCache as g, type ExecuteWithAuthorizationSignData as h, type ExecuteBatchWithAuthorizationSignData as i, TOKEN_LOGOS as j, TOKEN_LOGO_COMPONENTS as k, VECHAIN_PRIVY_APP_ID as l, notFoundImage as n };
|
|
198
|
+
export { type ConnectionSource as C, DEFAULT_PRIVY_ECOSYSTEM_APPS as D, type EnhancedClause as E, type NETWORK_TYPE as N, type PrivyLoginMethod as P, type SmartAccount as S, TogglePassportCheck as T, VePassportUserStatus as V, type Wallet as W, type Network as a, type PrivyAppInfo as b, type TransactionStatus as c, type TransactionStatusErrorType as d, type ENSRecords as e, NFTMediaType as f, type CrossAppConnectionCache as g, type ExecuteWithAuthorizationSignData as h, type ExecuteBatchWithAuthorizationSignData as i, TOKEN_LOGOS as j, TOKEN_LOGO_COMPONENTS as k, VECHAIN_PRIVY_APP_ID as l, type PrivyEcosystemApp as m, notFoundImage as n };
|
package/dist/assets/index.cjs
CHANGED
|
@@ -1,93 +1,97 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA4NZ5AVL_cjs = require('../chunk-A4NZ5AVL.cjs');
|
|
4
4
|
require('../chunk-Q7SFCCGT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "GoogleLogo", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkA4NZ5AVL_cjs.GoogleLogo; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "PrivyLogo", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkA4NZ5AVL_cjs.PrivyLogo; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "SimpleAccountABI", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkA4NZ5AVL_cjs.SimpleAccountABI; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "SimpleAccountFactoryABI", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkA4NZ5AVL_cjs.SimpleAccountFactoryABI; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "TwitterLogo", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkA4NZ5AVL_cjs.TwitterLogo; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "VETLogo", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkA4NZ5AVL_cjs.VETLogo; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "VTHOLogo", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkA4NZ5AVL_cjs.VTHOLogo; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "VeBetterIcon", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkA4NZ5AVL_cjs.VeBetterIcon; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "VeBetterIconDark", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkA4NZ5AVL_cjs.VeBetterIconDark; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "VeBetterIconLight", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkA4NZ5AVL_cjs.VeBetterIconLight; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "VeBetterLogo", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkA4NZ5AVL_cjs.VeBetterLogo; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "VeBetterLogoDark", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkA4NZ5AVL_cjs.VeBetterLogoDark; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "VeBetterLogoLight", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkA4NZ5AVL_cjs.VeBetterLogoLight; }
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "VechainEnergy", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainEnergy; }
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(exports, "VechainIcon", {
|
|
61
65
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainIcon; }
|
|
63
67
|
});
|
|
64
68
|
Object.defineProperty(exports, "VechainIconDark", {
|
|
65
69
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainIconDark; }
|
|
67
71
|
});
|
|
68
72
|
Object.defineProperty(exports, "VechainIconLight", {
|
|
69
73
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainIconLight; }
|
|
71
75
|
});
|
|
72
76
|
Object.defineProperty(exports, "VechainLogo", {
|
|
73
77
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainLogo; }
|
|
75
79
|
});
|
|
76
80
|
Object.defineProperty(exports, "VechainLogoDark", {
|
|
77
81
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainLogoDark; }
|
|
79
83
|
});
|
|
80
84
|
Object.defineProperty(exports, "VechainLogoHorizontalDark", {
|
|
81
85
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainLogoHorizontalDark; }
|
|
83
87
|
});
|
|
84
88
|
Object.defineProperty(exports, "VechainLogoHorizontalLight", {
|
|
85
89
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainLogoHorizontalLight; }
|
|
87
91
|
});
|
|
88
92
|
Object.defineProperty(exports, "VechainLogoLight", {
|
|
89
93
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkA4NZ5AVL_cjs.VechainLogoLight; }
|
|
91
95
|
});
|
|
92
96
|
//# sourceMappingURL=index.cjs.map
|
|
93
97
|
//# sourceMappingURL=index.cjs.map
|
package/dist/assets/index.d.cts
CHANGED
|
@@ -1071,76 +1071,82 @@ declare const SimpleAccountFactoryABI: readonly [{
|
|
|
1071
1071
|
readonly type: "function";
|
|
1072
1072
|
}];
|
|
1073
1073
|
|
|
1074
|
-
type Props$
|
|
1074
|
+
type Props$j = {
|
|
1075
1075
|
boxSize?: string | number;
|
|
1076
1076
|
} & Omit<BoxProps, 'dangerouslySetInnerHTML'>;
|
|
1077
|
-
declare const GoogleLogo: React__default.FC<Props$
|
|
1077
|
+
declare const GoogleLogo: React__default.FC<Props$j>;
|
|
1078
1078
|
|
|
1079
|
-
type Props$
|
|
1079
|
+
type Props$i = {
|
|
1080
1080
|
isDark?: boolean;
|
|
1081
1081
|
boxSize?: string | number;
|
|
1082
1082
|
} & Omit<BoxProps, 'dangerouslySetInnerHTML'>;
|
|
1083
|
-
declare const TwitterLogo: React__default.FC<Props$
|
|
1083
|
+
declare const TwitterLogo: React__default.FC<Props$i>;
|
|
1084
1084
|
|
|
1085
|
-
type Props$
|
|
1085
|
+
type Props$h = {
|
|
1086
1086
|
isDark?: boolean;
|
|
1087
1087
|
} & Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1088
|
-
declare const VechainLogo: React__default.FC<Props$
|
|
1088
|
+
declare const VechainLogo: React__default.FC<Props$h>;
|
|
1089
|
+
|
|
1090
|
+
type Props$g = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1091
|
+
declare const VechainLogoDark: React__default.FC<Props$g>;
|
|
1089
1092
|
|
|
1090
1093
|
type Props$f = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1091
|
-
declare const
|
|
1094
|
+
declare const VechainLogoLight: React__default.FC<Props$f>;
|
|
1092
1095
|
|
|
1093
1096
|
type Props$e = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1094
|
-
declare const
|
|
1097
|
+
declare const VechainLogoHorizontalDark: React__default.FC<Props$e>;
|
|
1095
1098
|
|
|
1096
1099
|
type Props$d = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1097
|
-
declare const
|
|
1098
|
-
|
|
1099
|
-
type Props$c = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1100
|
-
declare const VechainLogoHorizontalLight: React__default.FC<Props$c>;
|
|
1100
|
+
declare const VechainLogoHorizontalLight: React__default.FC<Props$d>;
|
|
1101
1101
|
|
|
1102
|
-
type Props$
|
|
1102
|
+
type Props$c = {
|
|
1103
1103
|
isDark?: boolean;
|
|
1104
1104
|
} & Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1105
|
-
declare const VechainIcon: React__default.FC<Props$
|
|
1105
|
+
declare const VechainIcon: React__default.FC<Props$c>;
|
|
1106
1106
|
|
|
1107
|
-
type Props$
|
|
1108
|
-
declare const VechainIconLight: React__default.FC<Props$
|
|
1107
|
+
type Props$b = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1108
|
+
declare const VechainIconLight: React__default.FC<Props$b>;
|
|
1109
1109
|
|
|
1110
|
-
type Props$
|
|
1111
|
-
declare const VechainIconDark: React__default.FC<Props$
|
|
1110
|
+
type Props$a = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1111
|
+
declare const VechainIconDark: React__default.FC<Props$a>;
|
|
1112
1112
|
|
|
1113
|
-
type Props$
|
|
1113
|
+
type Props$9 = {
|
|
1114
1114
|
isDark?: boolean;
|
|
1115
1115
|
} & Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1116
|
-
declare const VeBetterLogo: React__default.FC<Props$
|
|
1116
|
+
declare const VeBetterLogo: React__default.FC<Props$9>;
|
|
1117
1117
|
|
|
1118
|
-
type Props$
|
|
1119
|
-
declare const VeBetterLogoLight: React__default.FC<Props$
|
|
1118
|
+
type Props$8 = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1119
|
+
declare const VeBetterLogoLight: React__default.FC<Props$8>;
|
|
1120
1120
|
|
|
1121
|
-
type Props$
|
|
1122
|
-
declare const VeBetterLogoDark: React__default.FC<Props$
|
|
1121
|
+
type Props$7 = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1122
|
+
declare const VeBetterLogoDark: React__default.FC<Props$7>;
|
|
1123
1123
|
|
|
1124
|
-
type Props$
|
|
1124
|
+
type Props$6 = {
|
|
1125
1125
|
isDark?: boolean;
|
|
1126
1126
|
} & Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1127
|
-
declare const VeBetterIcon: React__default.FC<Props$
|
|
1127
|
+
declare const VeBetterIcon: React__default.FC<Props$6>;
|
|
1128
|
+
|
|
1129
|
+
type Props$5 = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1130
|
+
declare const VeBetterIconLight: React__default.FC<Props$5>;
|
|
1128
1131
|
|
|
1129
1132
|
type Props$4 = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1130
|
-
declare const
|
|
1133
|
+
declare const VeBetterIconDark: React__default.FC<Props$4>;
|
|
1131
1134
|
|
|
1132
1135
|
type Props$3 = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1133
|
-
declare const
|
|
1136
|
+
declare const VETLogo: React__default.FC<Props$3>;
|
|
1134
1137
|
|
|
1135
1138
|
type Props$2 = Omit<IconProps, 'dangerouslySetInnerHTML'>;
|
|
1136
|
-
declare const
|
|
1139
|
+
declare const VTHOLogo: React__default.FC<Props$2>;
|
|
1137
1140
|
|
|
1138
|
-
type Props$1 =
|
|
1139
|
-
|
|
1141
|
+
type Props$1 = {
|
|
1142
|
+
isDark?: boolean;
|
|
1143
|
+
} & Omit<ImageProps, 'dangerouslySetInnerHTML'>;
|
|
1144
|
+
declare const PrivyLogo: React__default.FC<Props$1>;
|
|
1140
1145
|
|
|
1141
1146
|
type Props = {
|
|
1142
1147
|
isDark?: boolean;
|
|
1143
|
-
|
|
1144
|
-
|
|
1148
|
+
boxSize?: string | number;
|
|
1149
|
+
} & Omit<BoxProps, 'dangerouslySetInnerHTML'>;
|
|
1150
|
+
declare const VechainEnergy: React__default.FC<Props>;
|
|
1145
1151
|
|
|
1146
|
-
export { GoogleLogo, PrivyLogo, SimpleAccountABI, SimpleAccountFactoryABI, TwitterLogo, VETLogo, VTHOLogo, VeBetterIcon, VeBetterIconDark, VeBetterIconLight, VeBetterLogo, VeBetterLogoDark, VeBetterLogoLight, VechainIcon, VechainIconDark, VechainIconLight, VechainLogo, VechainLogoDark, VechainLogoHorizontalDark, VechainLogoHorizontalLight, VechainLogoLight };
|
|
1152
|
+
export { GoogleLogo, PrivyLogo, SimpleAccountABI, SimpleAccountFactoryABI, TwitterLogo, VETLogo, VTHOLogo, VeBetterIcon, VeBetterIconDark, VeBetterIconLight, VeBetterLogo, VeBetterLogoDark, VeBetterLogoLight, VechainEnergy, VechainIcon, VechainIconDark, VechainIconLight, VechainLogo, VechainLogoDark, VechainLogoHorizontalDark, VechainLogoHorizontalLight, VechainLogoLight };
|