solariskit 1.3.0 → 1.5.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/dist/{WalletButton-B-bj9FNL.d.ts → ChainSelectButton-COIW5SBO.d.ts} +9 -134
- package/dist/RainbowKitProvider-CKy7nmFG.js +271 -0
- package/dist/WalletButton-B3e-uEwx.d.ts +126 -0
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +3 -2
- package/dist/index.css +47 -47
- package/dist/index.d.ts +9 -4
- package/dist/index.js +4 -3
- package/dist/{injectedWallet-Bq0gF2WF.js → injectedWallet-CnP8-uv5.js} +19 -1
- package/dist/solana/index.d.ts +156 -0
- package/dist/solana/index.js +601 -0
- package/dist/{WalletButton-DpDL4qfh.js → useFingerprint-BoVxC_1f.js} +4199 -4184
- package/dist/{walletConnectors-C02JPPxf.js → walletConnectors-DwPMzHor.js} +1 -1
- package/dist/wallets/walletConnectors/index.js +1 -1
- package/package.json +30 -15
package/dist/index.css
CHANGED
|
@@ -1966,6 +1966,20 @@
|
|
|
1966
1966
|
display: inline;
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
+
[data-rk] ._1c95jmh0 {
|
|
1970
|
+
background: white;
|
|
1971
|
+
color: black;
|
|
1972
|
+
}
|
|
1973
|
+
[data-rk] ._1c95jmh2 {
|
|
1974
|
+
max-height: 454px;
|
|
1975
|
+
overflow-y: auto;
|
|
1976
|
+
}
|
|
1977
|
+
[data-rk] ._1c95jmh3 {
|
|
1978
|
+
min-width: 287px;
|
|
1979
|
+
}
|
|
1980
|
+
[data-rk] ._1c95jmh4 {
|
|
1981
|
+
min-width: 100%;
|
|
1982
|
+
}
|
|
1969
1983
|
[data-rk] ._1uzxtia3,[data-rk] ._1uzxtia3::after {
|
|
1970
1984
|
--_1uzxtia0: 1;
|
|
1971
1985
|
--_1uzxtia1: 1;
|
|
@@ -2021,22 +2035,41 @@
|
|
|
2021
2035
|
max-width: -moz-fit-content;
|
|
2022
2036
|
max-width: fit-content;
|
|
2023
2037
|
}
|
|
2024
|
-
[data-rk] .
|
|
2025
|
-
|
|
2038
|
+
[data-rk] ._1rjgdy20:hover {
|
|
2039
|
+
background: unset;
|
|
2026
2040
|
}
|
|
2027
|
-
[data-rk] .
|
|
2028
|
-
|
|
2029
|
-
|
|
2041
|
+
[data-rk] ._5a0qia0 {
|
|
2042
|
+
max-height: 456px;
|
|
2043
|
+
overflow-y: auto;
|
|
2044
|
+
overflow-x: hidden;
|
|
2030
2045
|
}
|
|
2031
|
-
[data-rk] .
|
|
2032
|
-
max-height:
|
|
2046
|
+
[data-rk] ._5a0qia1 {
|
|
2047
|
+
max-height: 456px;
|
|
2033
2048
|
overflow-y: auto;
|
|
2049
|
+
overflow-x: hidden;
|
|
2050
|
+
scrollbar-width: none;
|
|
2034
2051
|
}
|
|
2035
|
-
[data-rk] .
|
|
2036
|
-
|
|
2052
|
+
[data-rk] ._5a0qia1::-webkit-scrollbar {
|
|
2053
|
+
display: none;
|
|
2037
2054
|
}
|
|
2038
|
-
[data-rk] .
|
|
2039
|
-
|
|
2055
|
+
[data-rk] ._5a0qia2 {
|
|
2056
|
+
width: 100%;
|
|
2057
|
+
height: 40px;
|
|
2058
|
+
border-radius: var(--rk-radii-menuButton);
|
|
2059
|
+
border: 1px solid var(--rk-colors-generalBorder);
|
|
2060
|
+
background: var(--rk-colors-menuItemBackground);
|
|
2061
|
+
color: var(--rk-colors-modalText);
|
|
2062
|
+
font: inherit;
|
|
2063
|
+
padding: 0 14px;
|
|
2064
|
+
}
|
|
2065
|
+
[data-rk] ._5a0qia2::-moz-placeholder {
|
|
2066
|
+
color: var(--rk-colors-modalTextSecondary);
|
|
2067
|
+
}
|
|
2068
|
+
[data-rk] ._5a0qia2::placeholder {
|
|
2069
|
+
color: var(--rk-colors-modalTextSecondary);
|
|
2070
|
+
}
|
|
2071
|
+
[data-rk] ._5a0qia2:focus {
|
|
2072
|
+
border-color: var(--rk-colors-selectedOptionBorder);
|
|
2040
2073
|
}
|
|
2041
2074
|
@keyframes _1vod5wo1 {
|
|
2042
2075
|
0% {
|
|
@@ -2064,6 +2097,9 @@
|
|
|
2064
2097
|
[data-rk] ._1vod5wo3 {
|
|
2065
2098
|
position: absolute;
|
|
2066
2099
|
}
|
|
2100
|
+
[data-rk] ._3p9bxw0 {
|
|
2101
|
+
border-color: transparent;
|
|
2102
|
+
}
|
|
2067
2103
|
@keyframes _1enlt0o0 {
|
|
2068
2104
|
0% {
|
|
2069
2105
|
transform: translateY(100%);
|
|
@@ -2135,40 +2171,4 @@
|
|
|
2135
2171
|
padding-bottom: 200px;
|
|
2136
2172
|
top: 200px;
|
|
2137
2173
|
}
|
|
2138
|
-
}
|
|
2139
|
-
[data-rk] ._1rjgdy20:hover {
|
|
2140
|
-
background: unset;
|
|
2141
|
-
}
|
|
2142
|
-
[data-rk] ._5a0qia0 {
|
|
2143
|
-
max-height: 456px;
|
|
2144
|
-
overflow-y: auto;
|
|
2145
|
-
overflow-x: hidden;
|
|
2146
|
-
}
|
|
2147
|
-
[data-rk] ._5a0qia1 {
|
|
2148
|
-
max-height: 456px;
|
|
2149
|
-
overflow-y: auto;
|
|
2150
|
-
overflow-x: hidden;
|
|
2151
|
-
scrollbar-width: none;
|
|
2152
|
-
}
|
|
2153
|
-
[data-rk] ._5a0qia1::-webkit-scrollbar {
|
|
2154
|
-
display: none;
|
|
2155
|
-
}
|
|
2156
|
-
[data-rk] ._5a0qia2 {
|
|
2157
|
-
width: 100%;
|
|
2158
|
-
height: 40px;
|
|
2159
|
-
border-radius: var(--rk-radii-menuButton);
|
|
2160
|
-
border: 1px solid var(--rk-colors-generalBorder);
|
|
2161
|
-
background: var(--rk-colors-menuItemBackground);
|
|
2162
|
-
color: var(--rk-colors-modalText);
|
|
2163
|
-
font: inherit;
|
|
2164
|
-
padding: 0 14px;
|
|
2165
|
-
}
|
|
2166
|
-
[data-rk] ._5a0qia2::-moz-placeholder {
|
|
2167
|
-
color: var(--rk-colors-modalTextSecondary);
|
|
2168
|
-
}
|
|
2169
|
-
[data-rk] ._5a0qia2::placeholder {
|
|
2170
|
-
color: var(--rk-colors-modalTextSecondary);
|
|
2171
|
-
}
|
|
2172
|
-
[data-rk] ._5a0qia2:focus {
|
|
2173
|
-
border-color: var(--rk-colors-selectedOptionBorder);
|
|
2174
2174
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { a as RainbowKitProvider, d as DisclaimerComponent, l as AvatarComponent, n as ChainSelectButtonProps, o as RainbowKitProviderProps, p as ThemeVars, r as ChainStatus, s as Theme, t as ChainSelectButton } from "./ChainSelectButton-COIW5SBO.js";
|
|
3
|
+
import { c as RainbowKitAuthenticationProvider, i as ConnectButton, l as createAuthenticationAdapter, o as AuthenticationConfig, r as WalletButtonRendererProps, s as AuthenticationStatus, t as WalletButton } from "./WalletButton-B3e-uEwx.js";
|
|
3
4
|
import { a as WalletDetailsParams, i as Wallet, r as RainbowKitWalletConnectParameters, s as WalletList, t as CreateConnector } from "./Wallet-epUweMuA.js";
|
|
4
5
|
import React, { ReactNode } from "react";
|
|
5
6
|
import { CreateConfigParameters, CreateConnectorFn } from "wagmi";
|
|
@@ -330,16 +331,20 @@ declare function cssObjectFromTheme(theme: ThemeVars | (() => ThemeVars), {
|
|
|
330
331
|
//#endregion
|
|
331
332
|
//#region src/components/ConnectOptions/DesktopOptions.d.ts
|
|
332
333
|
declare function DesktopOptions({
|
|
333
|
-
onClose
|
|
334
|
+
onClose,
|
|
335
|
+
titleId
|
|
334
336
|
}: {
|
|
335
337
|
onClose: () => void;
|
|
338
|
+
titleId: string;
|
|
336
339
|
}): React.JSX.Element;
|
|
337
340
|
//#endregion
|
|
338
341
|
//#region src/components/ConnectOptions/MobileOptions.d.ts
|
|
339
342
|
declare function MobileOptions({
|
|
340
|
-
onClose
|
|
343
|
+
onClose,
|
|
344
|
+
titleId
|
|
341
345
|
}: {
|
|
342
346
|
onClose: () => void;
|
|
347
|
+
titleId: string;
|
|
343
348
|
}): React.JSX.Element;
|
|
344
349
|
//#endregion
|
|
345
350
|
//#region src/__private__/index.d.ts
|
|
@@ -350,4 +355,4 @@ declare const __private__: {
|
|
|
350
355
|
MobileOptions: typeof MobileOptions;
|
|
351
356
|
};
|
|
352
357
|
//#endregion
|
|
353
|
-
export { type AuthenticationConfig, type AuthenticationStatus, type AvatarComponent, type RainbowKitChain as Chain, ConnectButton, type DisclaimerComponent, RainbowKitAuthenticationProvider, RainbowKitProvider, type RainbowKitProviderProps, type RainbowKitWalletConnectParameters, type Theme, type Wallet, WalletButton, type WalletButtonRendererProps, type WalletDetailsParams, type WalletList, __private__, connectorsForWallets, createAuthenticationAdapter, cssObjectFromTheme, cssStringFromTheme, darkTheme, getDefaultConfig, getDefaultWallets, getWalletConnectConnector, lightTheme, midnightTheme, useAccountModal, useAddRecentTransaction, useChainModal, useConnectModal };
|
|
358
|
+
export { type AuthenticationConfig, type AuthenticationStatus, type AvatarComponent, type RainbowKitChain as Chain, ChainSelectButton, type ChainSelectButtonProps, type ChainStatus, ConnectButton, type DisclaimerComponent, RainbowKitAuthenticationProvider, RainbowKitProvider, type RainbowKitProviderProps, type RainbowKitWalletConnectParameters, type Theme, type Wallet, WalletButton, type WalletButtonRendererProps, type WalletDetailsParams, type WalletList, __private__, connectorsForWallets, createAuthenticationAdapter, cssObjectFromTheme, cssStringFromTheme, darkTheme, getDefaultConfig, getDefaultWallets, getWalletConnectConnector, lightTheme, midnightTheme, useAccountModal, useAddRecentTransaction, useChainModal, useConnectModal };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { $ as dialogContent, Mt as RainbowKitAuthenticationProvider, Nt as createAuthenticationAdapter, _ as MobileOptions, d as useAccountModal, dt as cssObjectFromTheme, et as dialogContentMobile, f as useChainModal, n as lightTheme, p as useConnectModal, r as baseTheme, ut as cssStringFromTheme, vt as useTransactionStore, x as DesktopOptions, yt as useChainId$1 } from "./useFingerprint-BoVxC_1f.js";
|
|
3
|
+
import { i as ConnectButton, n as WalletButton, r as ChainSelectButton, t as RainbowKitProvider } from "./RainbowKitProvider-CKy7nmFG.js";
|
|
4
|
+
import { a as injectedWallet, i as getWalletConnectConnector, n as safeWallet, o as base, r as metaMaskWallet, t as walletConnectWallet } from "./walletConnectors-DwPMzHor.js";
|
|
4
5
|
import { useCallback } from "react";
|
|
5
6
|
import { createConfig, http, useConnection } from "wagmi";
|
|
6
7
|
|
|
@@ -337,4 +338,4 @@ const __private__ = {
|
|
|
337
338
|
};
|
|
338
339
|
|
|
339
340
|
//#endregion
|
|
340
|
-
export { ConnectButton, RainbowKitAuthenticationProvider, RainbowKitProvider, WalletButton, __private__, connectorsForWallets, createAuthenticationAdapter, cssObjectFromTheme, cssStringFromTheme, darkTheme, getDefaultConfig, getDefaultWallets, getWalletConnectConnector, lightTheme, midnightTheme, useAccountModal, useAddRecentTransaction, useChainModal, useConnectModal };
|
|
341
|
+
export { ChainSelectButton, ConnectButton, RainbowKitAuthenticationProvider, RainbowKitProvider, WalletButton, __private__, connectorsForWallets, createAuthenticationAdapter, cssObjectFromTheme, cssStringFromTheme, darkTheme, getDefaultConfig, getDefaultWallets, getWalletConnectConnector, lightTheme, midnightTheme, useAccountModal, useAddRecentTransaction, useChainModal, useConnectModal };
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __exportAll = (all, no_symbols) => {
|
|
5
|
+
let target = {};
|
|
6
|
+
for (var name in all) {
|
|
7
|
+
__defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
if (!no_symbols) {
|
|
13
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
14
|
+
}
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
2
19
|
//#region src/wallets/walletConnectors/injectedWallet/injectedWallet.svg
|
|
20
|
+
var injectedWallet_exports = /* @__PURE__ */ __exportAll({ default: () => injectedWallet_default });
|
|
3
21
|
var injectedWallet_default = "data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" fill=\"none\"><path fill=\"%23fff\" d=\"M0 0h28v28H0z\"/><rect width=\"20\" height=\"16\" x=\"4\" y=\"6\" fill=\"url(%23a)\" rx=\"3.5\"/><path fill=\"%230E76FD\" d=\"M16 14a3 3 0 0 1 3-3h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C25 11.76 25 12.04 25 12.6v2.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C24.24 17 23.96 17 23.4 17H19a3 3 0 0 1-3-3Z\"/><circle cx=\"19\" cy=\"14\" r=\"1.25\" fill=\"%23A3D7FF\"/><defs><linearGradient id=\"a\" x1=\"14\" x2=\"14\" y1=\"6\" y2=\"22\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"%23174299\"/><stop offset=\"1\" stop-color=\"%23001E59\"/></linearGradient></defs></svg>";
|
|
4
22
|
|
|
5
23
|
//#endregion
|
|
6
|
-
export { injectedWallet_default as
|
|
24
|
+
export { injectedWallet_exports as n, injectedWallet_default as t };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
|
|
2
|
+
import { c as ModalSizes, d as DisclaimerComponent, f as ResponsiveValue, i as AccountStatus, l as AvatarComponent, r as ChainStatus, s as Theme } from "../ChainSelectButton-COIW5SBO.js";
|
|
3
|
+
import React, { JSX, ReactNode } from "react";
|
|
4
|
+
import { AppProviderProps, TokenBalance as SolanaTokenBalance, UseBalanceOptions as SolanaBalanceOptions, UseBalanceReturn as SolanaBalanceReturn, UseClusterReturn as SolanaClusterReturn, UseDisconnectWalletReturn as SolanaDisconnectWalletReturn, UseKitTransactionSignerReturn as SolanaKitTransactionSignerReturn, UseSolanaClientReturn as SolanaClientReturn } from "@solana/connector/react";
|
|
5
|
+
import { DefaultConfigOptions } from "@solana/connector/headless";
|
|
6
|
+
import { ClusterType as SolanaClusterType, CoinGeckoConfig as SolanaCoinGeckoConfig, ConnectOptions as SolanaConnectOptions, ConnectorConfig, ExtendedConnectorConfig, MobileWalletAdapterConfig as SolanaMobileWalletAdapterConfig, SolanaClient, SolanaCluster, SolanaClusterId, StorageAdapter as SolanaStorageAdapter, WalletDisplayConfig as SolanaWalletDisplayConfig } from "@solana/connector";
|
|
7
|
+
|
|
8
|
+
//#region src/solana/types.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Network names the config surface accepts (includes the legacy
|
|
11
|
+
* "mainnet-beta" alias, unlike the library's normalized SolanaNetwork).
|
|
12
|
+
*/
|
|
13
|
+
type SolanaNetwork = NonNullable<ExtendedConnectorConfig["network"]>;
|
|
14
|
+
/** ConnectorKit configuration, minus WalletConnect (unsupported here). */
|
|
15
|
+
type SolanaConnectorConfig = Omit<ConnectorConfig, "walletConnect"> & {
|
|
16
|
+
walletConnect?: never;
|
|
17
|
+
};
|
|
18
|
+
type SolanaKitConfig = Omit<ExtendedConnectorConfig, "walletConnect"> & {
|
|
19
|
+
mobile?: NonNullable<AppProviderProps["mobile"]>;
|
|
20
|
+
walletConnect?: never;
|
|
21
|
+
};
|
|
22
|
+
/** Wallet Standard connector surfaced with plain-string ids. */
|
|
23
|
+
interface SolanaWalletConnector {
|
|
24
|
+
chains: readonly string[];
|
|
25
|
+
features: readonly string[];
|
|
26
|
+
icon: string;
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
ready: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface SolanaKitProviderProps {
|
|
32
|
+
appInfo?: {
|
|
33
|
+
appName?: string;
|
|
34
|
+
learnMoreUrl?: string;
|
|
35
|
+
disclaimer?: DisclaimerComponent;
|
|
36
|
+
};
|
|
37
|
+
avatar?: AvatarComponent;
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
config?: SolanaKitConfig;
|
|
40
|
+
id?: string;
|
|
41
|
+
modalSize?: ModalSizes;
|
|
42
|
+
theme?: Theme | null;
|
|
43
|
+
}
|
|
44
|
+
interface SolanaConnectButtonProps {
|
|
45
|
+
accountStatus?: ResponsiveValue<AccountStatus>;
|
|
46
|
+
label?: string;
|
|
47
|
+
showBalance?: ResponsiveValue<boolean>;
|
|
48
|
+
}
|
|
49
|
+
type SolanaChainStatus = ChainStatus;
|
|
50
|
+
interface SolanaChainSelectButtonProps {
|
|
51
|
+
chainStatus?: ResponsiveValue<SolanaChainStatus>;
|
|
52
|
+
}
|
|
53
|
+
interface SolanaWalletButtonProps {
|
|
54
|
+
connectorId?: string;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/solana/components/SolanaKitProvider/SolanaKitProvider.d.ts
|
|
58
|
+
declare function SolanaKitProvider({
|
|
59
|
+
appInfo,
|
|
60
|
+
avatar,
|
|
61
|
+
children,
|
|
62
|
+
config,
|
|
63
|
+
id,
|
|
64
|
+
modalSize,
|
|
65
|
+
theme
|
|
66
|
+
}: SolanaKitProviderProps): React.JSX.Element;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/solana/components/SolanaConnectButton/SolanaConnectButton.d.ts
|
|
69
|
+
declare function SolanaConnectButton({
|
|
70
|
+
accountStatus,
|
|
71
|
+
label,
|
|
72
|
+
showBalance
|
|
73
|
+
}: SolanaConnectButtonProps): React.JSX.Element | null;
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/solana/components/SolanaChainSelectButton/SolanaChainSelectButton.d.ts
|
|
76
|
+
declare function SolanaChainSelectButton({
|
|
77
|
+
chainStatus
|
|
78
|
+
}: SolanaChainSelectButtonProps): React.JSX.Element | null;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/solana/components/SolanaWalletButton/SolanaWalletButton.d.ts
|
|
81
|
+
interface SolanaWalletButtonRendererProps {
|
|
82
|
+
connectorId?: string;
|
|
83
|
+
children: (renderProps: {
|
|
84
|
+
connected: boolean;
|
|
85
|
+
connector: {
|
|
86
|
+
iconBackground?: string;
|
|
87
|
+
iconUrl?: string;
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
ready: boolean;
|
|
91
|
+
};
|
|
92
|
+
connect: () => Promise<void>;
|
|
93
|
+
error: boolean;
|
|
94
|
+
loading: boolean;
|
|
95
|
+
mounted: boolean;
|
|
96
|
+
ready: boolean;
|
|
97
|
+
}) => ReactNode;
|
|
98
|
+
}
|
|
99
|
+
declare const SolanaWalletButton: {
|
|
100
|
+
(props: SolanaWalletButtonProps): JSX.Element;
|
|
101
|
+
Custom: (props: SolanaWalletButtonRendererProps) => ReactNode;
|
|
102
|
+
};
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/solana/components/SolanaKitProvider/SolanaModalContext.d.ts
|
|
105
|
+
declare function useSolanaAccountModal(): {
|
|
106
|
+
accountModalOpen: boolean;
|
|
107
|
+
openAccountModal: (() => void) | undefined;
|
|
108
|
+
};
|
|
109
|
+
declare function useSolanaChainModal(): {
|
|
110
|
+
chainModalOpen: boolean;
|
|
111
|
+
openChainModal: (() => void) | undefined;
|
|
112
|
+
};
|
|
113
|
+
declare function useSolanaConnectModal(): {
|
|
114
|
+
connectModalOpen: boolean;
|
|
115
|
+
openConnectModal: (() => void) | undefined;
|
|
116
|
+
};
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/solana/config/getDefaultSolanaConfig.d.ts
|
|
119
|
+
/** ConnectorKit's default-config options, minus WalletConnect (unsupported here). */
|
|
120
|
+
type SolanaDefaultConfigOptions = Omit<DefaultConfigOptions, "walletConnect"> & {
|
|
121
|
+
walletConnect?: never;
|
|
122
|
+
};
|
|
123
|
+
type SolanaDefaultConfig = SolanaKitConfig;
|
|
124
|
+
type SolanaDefaultConnectorConfig = SolanaDefaultConfig;
|
|
125
|
+
declare function getDefaultSolanaConfig(options: SolanaDefaultConfigOptions): SolanaDefaultConfig;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/solana/hooks.d.ts
|
|
128
|
+
interface SolanaWalletAccount {
|
|
129
|
+
address: string;
|
|
130
|
+
label?: string;
|
|
131
|
+
}
|
|
132
|
+
interface SolanaWalletState {
|
|
133
|
+
account: string | null;
|
|
134
|
+
accounts: SolanaWalletAccount[];
|
|
135
|
+
connectorId: string | null;
|
|
136
|
+
error: Error | null;
|
|
137
|
+
isConnected: boolean;
|
|
138
|
+
isConnecting: boolean;
|
|
139
|
+
isError: boolean;
|
|
140
|
+
status: "disconnected" | "connecting" | "connected" | "error";
|
|
141
|
+
}
|
|
142
|
+
declare function useSolanaWallet(): SolanaWalletState;
|
|
143
|
+
declare function useSolanaWalletConnectors(): SolanaWalletConnector[];
|
|
144
|
+
declare function useSolanaConnectWallet(): {
|
|
145
|
+
connect: (connectorId: string, options?: SolanaConnectOptions) => Promise<void>;
|
|
146
|
+
error: Error | null;
|
|
147
|
+
isConnecting: boolean;
|
|
148
|
+
resetError: () => void;
|
|
149
|
+
};
|
|
150
|
+
declare function useSolanaDisconnectWallet(): SolanaDisconnectWalletReturn;
|
|
151
|
+
declare function useSolanaCluster(): SolanaClusterReturn;
|
|
152
|
+
declare function useSolanaBalance(options?: SolanaBalanceOptions): SolanaBalanceReturn;
|
|
153
|
+
declare function useSolanaClient(): SolanaClientReturn;
|
|
154
|
+
declare function useSolanaKitTransactionSigner(): SolanaKitTransactionSignerReturn;
|
|
155
|
+
//#endregion
|
|
156
|
+
export { type SolanaBalanceOptions, type SolanaBalanceReturn, SolanaChainSelectButton, type SolanaChainSelectButtonProps, type SolanaChainStatus, type SolanaClient, type SolanaClientReturn, type SolanaCluster, type SolanaClusterId, type SolanaClusterReturn, type SolanaClusterType, type SolanaCoinGeckoConfig, SolanaConnectButton, type SolanaConnectButtonProps, type SolanaConnectOptions, type SolanaConnectorConfig, type SolanaDefaultConfig, type SolanaDefaultConfigOptions, type SolanaDefaultConnectorConfig, type SolanaDisconnectWalletReturn, type SolanaKitConfig, SolanaKitProvider, type SolanaKitProviderProps, type SolanaKitTransactionSignerReturn, type SolanaMobileWalletAdapterConfig, type SolanaNetwork, type SolanaStorageAdapter, type SolanaTokenBalance, SolanaWalletButton, type SolanaWalletButtonProps, type SolanaWalletButtonRendererProps, type SolanaWalletConnector, type SolanaWalletDisplayConfig, getDefaultSolanaConfig, useSolanaAccountModal, useSolanaBalance, useSolanaChainModal, useSolanaClient, useSolanaCluster, useSolanaConnectModal, useSolanaConnectWallet, useSolanaDisconnectWallet, useSolanaKitTransactionSigner, useSolanaWallet, useSolanaWalletConnectors };
|