@vechain/vechain-kit 1.5.2 → 1.5.3
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/dist/index.cjs +132 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -28
- package/dist/index.d.ts +24 -28
- package/dist/index.js +133 -99
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2048,9 +2048,17 @@ declare const getNodeManagerQueryKey: (nodeId: string) => any[];
|
|
|
2048
2048
|
*/
|
|
2049
2049
|
declare const useGetNodeManager: (nodeId: string) => UseQueryResult<string, Error>;
|
|
2050
2050
|
|
|
2051
|
-
declare const getVeDelegateBalance: (thor: Connex.Thor, network: NETWORK_TYPE, address?: string) => Promise<
|
|
2051
|
+
declare const getVeDelegateBalance: (thor: Connex.Thor, network: NETWORK_TYPE, address?: string) => Promise<{
|
|
2052
|
+
original: string;
|
|
2053
|
+
scaled: string;
|
|
2054
|
+
formatted: string;
|
|
2055
|
+
}>;
|
|
2052
2056
|
declare const getVeDelegateBalanceQueryKey: (address?: string) => (string | undefined)[];
|
|
2053
|
-
declare const useGetVeDelegateBalance: (address?: string) => _tanstack_react_query.UseQueryResult<
|
|
2057
|
+
declare const useGetVeDelegateBalance: (address?: string) => _tanstack_react_query.UseQueryResult<{
|
|
2058
|
+
original: string;
|
|
2059
|
+
scaled: string;
|
|
2060
|
+
formatted: string;
|
|
2061
|
+
}, Error>;
|
|
2054
2062
|
|
|
2055
2063
|
declare const fetchPrivyAppInfo: (appId: string) => Promise<PrivyAppInfo>;
|
|
2056
2064
|
declare const getPrivyAppInfoQueryKey: (appIds: string | string[]) => string[];
|
|
@@ -2283,8 +2291,9 @@ declare const useBalances: ({ address }: UseBalancesProps) => {
|
|
|
2283
2291
|
isLoading: boolean;
|
|
2284
2292
|
balances: {
|
|
2285
2293
|
address: string;
|
|
2286
|
-
value:
|
|
2294
|
+
value: string;
|
|
2287
2295
|
symbol: string;
|
|
2296
|
+
priceAddress: string;
|
|
2288
2297
|
}[];
|
|
2289
2298
|
prices: {
|
|
2290
2299
|
address: string;
|
|
@@ -2293,7 +2302,7 @@ declare const useBalances: ({ address }: UseBalancesProps) => {
|
|
|
2293
2302
|
totalBalance: number;
|
|
2294
2303
|
tokens: Record<string, {
|
|
2295
2304
|
address: string;
|
|
2296
|
-
value:
|
|
2305
|
+
value: string;
|
|
2297
2306
|
symbol: string;
|
|
2298
2307
|
price: number;
|
|
2299
2308
|
usdValue: number;
|
|
@@ -3021,17 +3030,24 @@ type Props$i = {
|
|
|
3021
3030
|
};
|
|
3022
3031
|
declare const EmbeddedWalletContent: ({ setCurrentContent }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
3023
3032
|
|
|
3024
|
-
type Token
|
|
3033
|
+
type Token = {
|
|
3025
3034
|
symbol: string;
|
|
3026
3035
|
balance: string;
|
|
3027
3036
|
address: string;
|
|
3028
|
-
numericBalance:
|
|
3037
|
+
numericBalance: string;
|
|
3029
3038
|
price: number;
|
|
3030
3039
|
};
|
|
3040
|
+
type Props$h = {
|
|
3041
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3042
|
+
onSelectToken: (token: Token) => void;
|
|
3043
|
+
onBack: () => void;
|
|
3044
|
+
};
|
|
3045
|
+
declare const SelectTokenContent: ({ onSelectToken, onBack }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
3046
|
+
|
|
3031
3047
|
type SendTokenContentProps = {
|
|
3032
3048
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<AccountModalContentTypes>>;
|
|
3033
3049
|
isNavigatingFromMain?: boolean;
|
|
3034
|
-
preselectedToken?: Token
|
|
3050
|
+
preselectedToken?: Token;
|
|
3035
3051
|
onBack?: () => void;
|
|
3036
3052
|
};
|
|
3037
3053
|
declare const SendTokenContent: ({ setCurrentContent, isNavigatingFromMain, preselectedToken, onBack, }: SendTokenContentProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -3042,30 +3058,10 @@ type SendTokenSummaryContentProps = {
|
|
|
3042
3058
|
resolvedDomain?: string;
|
|
3043
3059
|
resolvedAddress?: string;
|
|
3044
3060
|
amount: string;
|
|
3045
|
-
selectedToken:
|
|
3046
|
-
symbol: string;
|
|
3047
|
-
balance: string;
|
|
3048
|
-
address: string;
|
|
3049
|
-
numericBalance: number;
|
|
3050
|
-
price: number;
|
|
3051
|
-
};
|
|
3061
|
+
selectedToken: Token;
|
|
3052
3062
|
};
|
|
3053
3063
|
declare const SendTokenSummaryContent: ({ setCurrentContent, toAddressOrDomain, resolvedDomain, resolvedAddress, amount, selectedToken, }: SendTokenSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
3054
3064
|
|
|
3055
|
-
type Token = {
|
|
3056
|
-
symbol: string;
|
|
3057
|
-
balance: string;
|
|
3058
|
-
address: string;
|
|
3059
|
-
numericBalance: number;
|
|
3060
|
-
price: number;
|
|
3061
|
-
};
|
|
3062
|
-
type Props$h = {
|
|
3063
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3064
|
-
onSelectToken: (token: Token) => void;
|
|
3065
|
-
onBack: () => void;
|
|
3066
|
-
};
|
|
3067
|
-
declare const SelectTokenContent: ({ onSelectToken, onBack }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
3068
|
-
|
|
3069
3065
|
type Props$g = {
|
|
3070
3066
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3071
3067
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2048,9 +2048,17 @@ declare const getNodeManagerQueryKey: (nodeId: string) => any[];
|
|
|
2048
2048
|
*/
|
|
2049
2049
|
declare const useGetNodeManager: (nodeId: string) => UseQueryResult<string, Error>;
|
|
2050
2050
|
|
|
2051
|
-
declare const getVeDelegateBalance: (thor: Connex.Thor, network: NETWORK_TYPE, address?: string) => Promise<
|
|
2051
|
+
declare const getVeDelegateBalance: (thor: Connex.Thor, network: NETWORK_TYPE, address?: string) => Promise<{
|
|
2052
|
+
original: string;
|
|
2053
|
+
scaled: string;
|
|
2054
|
+
formatted: string;
|
|
2055
|
+
}>;
|
|
2052
2056
|
declare const getVeDelegateBalanceQueryKey: (address?: string) => (string | undefined)[];
|
|
2053
|
-
declare const useGetVeDelegateBalance: (address?: string) => _tanstack_react_query.UseQueryResult<
|
|
2057
|
+
declare const useGetVeDelegateBalance: (address?: string) => _tanstack_react_query.UseQueryResult<{
|
|
2058
|
+
original: string;
|
|
2059
|
+
scaled: string;
|
|
2060
|
+
formatted: string;
|
|
2061
|
+
}, Error>;
|
|
2054
2062
|
|
|
2055
2063
|
declare const fetchPrivyAppInfo: (appId: string) => Promise<PrivyAppInfo>;
|
|
2056
2064
|
declare const getPrivyAppInfoQueryKey: (appIds: string | string[]) => string[];
|
|
@@ -2283,8 +2291,9 @@ declare const useBalances: ({ address }: UseBalancesProps) => {
|
|
|
2283
2291
|
isLoading: boolean;
|
|
2284
2292
|
balances: {
|
|
2285
2293
|
address: string;
|
|
2286
|
-
value:
|
|
2294
|
+
value: string;
|
|
2287
2295
|
symbol: string;
|
|
2296
|
+
priceAddress: string;
|
|
2288
2297
|
}[];
|
|
2289
2298
|
prices: {
|
|
2290
2299
|
address: string;
|
|
@@ -2293,7 +2302,7 @@ declare const useBalances: ({ address }: UseBalancesProps) => {
|
|
|
2293
2302
|
totalBalance: number;
|
|
2294
2303
|
tokens: Record<string, {
|
|
2295
2304
|
address: string;
|
|
2296
|
-
value:
|
|
2305
|
+
value: string;
|
|
2297
2306
|
symbol: string;
|
|
2298
2307
|
price: number;
|
|
2299
2308
|
usdValue: number;
|
|
@@ -3021,17 +3030,24 @@ type Props$i = {
|
|
|
3021
3030
|
};
|
|
3022
3031
|
declare const EmbeddedWalletContent: ({ setCurrentContent }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
3023
3032
|
|
|
3024
|
-
type Token
|
|
3033
|
+
type Token = {
|
|
3025
3034
|
symbol: string;
|
|
3026
3035
|
balance: string;
|
|
3027
3036
|
address: string;
|
|
3028
|
-
numericBalance:
|
|
3037
|
+
numericBalance: string;
|
|
3029
3038
|
price: number;
|
|
3030
3039
|
};
|
|
3040
|
+
type Props$h = {
|
|
3041
|
+
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3042
|
+
onSelectToken: (token: Token) => void;
|
|
3043
|
+
onBack: () => void;
|
|
3044
|
+
};
|
|
3045
|
+
declare const SelectTokenContent: ({ onSelectToken, onBack }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
3046
|
+
|
|
3031
3047
|
type SendTokenContentProps = {
|
|
3032
3048
|
setCurrentContent: React__default.Dispatch<React__default.SetStateAction<AccountModalContentTypes>>;
|
|
3033
3049
|
isNavigatingFromMain?: boolean;
|
|
3034
|
-
preselectedToken?: Token
|
|
3050
|
+
preselectedToken?: Token;
|
|
3035
3051
|
onBack?: () => void;
|
|
3036
3052
|
};
|
|
3037
3053
|
declare const SendTokenContent: ({ setCurrentContent, isNavigatingFromMain, preselectedToken, onBack, }: SendTokenContentProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -3042,30 +3058,10 @@ type SendTokenSummaryContentProps = {
|
|
|
3042
3058
|
resolvedDomain?: string;
|
|
3043
3059
|
resolvedAddress?: string;
|
|
3044
3060
|
amount: string;
|
|
3045
|
-
selectedToken:
|
|
3046
|
-
symbol: string;
|
|
3047
|
-
balance: string;
|
|
3048
|
-
address: string;
|
|
3049
|
-
numericBalance: number;
|
|
3050
|
-
price: number;
|
|
3051
|
-
};
|
|
3061
|
+
selectedToken: Token;
|
|
3052
3062
|
};
|
|
3053
3063
|
declare const SendTokenSummaryContent: ({ setCurrentContent, toAddressOrDomain, resolvedDomain, resolvedAddress, amount, selectedToken, }: SendTokenSummaryContentProps) => react_jsx_runtime.JSX.Element;
|
|
3054
3064
|
|
|
3055
|
-
type Token = {
|
|
3056
|
-
symbol: string;
|
|
3057
|
-
balance: string;
|
|
3058
|
-
address: string;
|
|
3059
|
-
numericBalance: number;
|
|
3060
|
-
price: number;
|
|
3061
|
-
};
|
|
3062
|
-
type Props$h = {
|
|
3063
|
-
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3064
|
-
onSelectToken: (token: Token) => void;
|
|
3065
|
-
onBack: () => void;
|
|
3066
|
-
};
|
|
3067
|
-
declare const SelectTokenContent: ({ onSelectToken, onBack }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
3068
|
-
|
|
3069
3065
|
type Props$g = {
|
|
3070
3066
|
setCurrentContent: React.Dispatch<React.SetStateAction<AccountModalContentTypes>>;
|
|
3071
3067
|
};
|