@0xsquid/react-hooks 8.8.1-beta-canton.4 → 8.8.1-beta-wallet-verification.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/core/client/index.d.ts +0 -1
- package/dist/core/connectors/bitcoin/wallets/keplr.d.ts +2 -1
- package/dist/core/connectors/bitcoin/wallets/unisat.d.ts +3 -0
- package/dist/core/connectors/xrpl/CrossMark.d.ts +12 -0
- package/dist/core/connectors/xrpl/Xaman.d.ts +14 -0
- package/dist/core/connectors/xrpl/XamanQr.d.ts +20 -0
- package/dist/core/connectors/xrpl/XrplMetamaskSnap.d.ts +12 -0
- package/dist/core/connectors/xrpl/walletVerification.d.ts +2 -0
- package/dist/core/constants.d.ts +0 -2
- package/dist/core/types/bitcoin.d.ts +1 -0
- package/dist/core/types/config.d.ts +1 -0
- package/dist/core/types/event.d.ts +4 -1
- package/dist/core/types/index.d.ts +3 -2
- package/dist/core/types/solana.d.ts +11 -1
- package/dist/core/types/sui.d.ts +2 -1
- package/dist/core/types/wallet.d.ts +6 -9
- package/dist/core/types/walletVerificationSignature/bitcoin.d.ts +10 -0
- package/dist/core/types/walletVerificationSignature/chainTypes.d.ts +19 -0
- package/dist/core/types/walletVerificationSignature/cosmos.d.ts +10 -0
- package/dist/core/types/walletVerificationSignature/evm.d.ts +10 -0
- package/dist/core/types/walletVerificationSignature/index.d.ts +18 -0
- package/dist/core/types/walletVerificationSignature/request.d.ts +3 -0
- package/dist/core/types/walletVerificationSignature/sharedResult.d.ts +20 -0
- package/dist/core/types/walletVerificationSignature/solana.d.ts +10 -0
- package/dist/core/types/walletVerificationSignature/stellar.d.ts +10 -0
- package/dist/core/types/walletVerificationSignature/sui.d.ts +10 -0
- package/dist/core/types/walletVerificationSignature/types.d.ts +69 -0
- package/dist/core/types/walletVerificationSignature/xrpl.d.ts +12 -0
- package/dist/core/types/walletVerificationSignature.d.ts +1 -0
- package/dist/core/types/xrpl.d.ts +14 -0
- package/dist/hooks/chains/useSquidChains.d.ts +0 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/store/useDepositAddressStore.d.ts +5 -23
- package/dist/hooks/store/useWalletStore.d.ts +1 -0
- package/dist/hooks/swap/useDepositAddress.d.ts +7 -6
- package/dist/hooks/tokens/useSquidTokens.d.ts +0 -1
- package/dist/hooks/wallet/useMultiChainWallet.d.ts +18 -44
- package/dist/hooks/wallet/useSigner.d.ts +1 -1
- package/dist/hooks/wallet/useWallet.d.ts +18 -48
- package/dist/hooks/wallet/useWalletVerificationSignature.d.ts +22 -0
- package/dist/hooks/wallet/useWalletVerificationSignature.test.d.ts +1 -0
- package/dist/hooks/wallet/walletVerification/signers/bitcoin.d.ts +2 -0
- package/dist/hooks/wallet/walletVerification/signers/cosmos.d.ts +2 -0
- package/dist/hooks/wallet/walletVerification/signers/evm.d.ts +2 -0
- package/dist/hooks/wallet/walletVerification/signers/index.d.ts +3 -0
- package/dist/hooks/wallet/walletVerification/signers/solana.d.ts +2 -0
- package/dist/hooks/wallet/walletVerification/signers/stellar.d.ts +2 -0
- package/dist/hooks/wallet/walletVerification/signers/sui.d.ts +2 -0
- package/dist/hooks/wallet/walletVerification/signers/types.d.ts +33 -0
- package/dist/hooks/wallet/walletVerification/signers/xrpl.d.ts +2 -0
- package/dist/{index-D5QOR7JT.js → index-CtXS5uny.js} +1424 -560
- package/dist/index-CtXS5uny.js.map +1 -0
- package/dist/{index-mgE1SeE-.js → index-z1nGQX9p.js} +1440 -560
- package/dist/index-z1nGQX9p.js.map +1 -0
- package/dist/{index.es-Cq4mUT_n.js → index.es-CBWh71yD.js} +2 -2
- package/dist/{index.es-Cq4mUT_n.js.map → index.es-CBWh71yD.js.map} +1 -1
- package/dist/{index.es-3JPbTFKq.js → index.es-D8CAnRf1.js} +2 -2
- package/dist/{index.es-3JPbTFKq.js.map → index.es-D8CAnRf1.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +30 -6
- package/dist/index.js.map +1 -1
- package/dist/{secretService-DOOg6zVn.js → secretService-B2i6U8uo.js} +2 -2
- package/dist/{secretService-DOOg6zVn.js.map → secretService-B2i6U8uo.js.map} +1 -1
- package/dist/{secretService-DWq78rM5.js → secretService-BFehLMb_.js} +2 -2
- package/dist/{secretService-DWq78rM5.js.map → secretService-BFehLMb_.js.map} +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.esm.js +1 -8
- package/dist/server.esm.js.map +1 -1
- package/dist/server.js +0 -8
- package/dist/server.js.map +1 -1
- package/dist/services/external/index.d.ts +1 -1
- package/dist/services/external/xaman.d.ts +31 -11
- package/dist/services/external/xaman.test.d.ts +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/internal/assetsService.d.ts +1 -10
- package/dist/services/internal/encodingService.d.ts +8 -0
- package/dist/services/internal/encodingService.test.d.ts +1 -0
- package/dist/services/internal/eventService.d.ts +3 -3
- package/dist/services/internal/evmService.d.ts +1 -0
- package/dist/services/internal/transactionService.d.ts +1 -5
- package/dist/{stellarService.client-C-pOt34O.js → stellarService.client-D20h9JPG.js} +2 -2
- package/dist/{stellarService.client-C-pOt34O.js.map → stellarService.client-D20h9JPG.js.map} +1 -1
- package/dist/{stellarService.client-DBROJ4yf.js → stellarService.client-yWCDuq6S.js} +2 -2
- package/dist/{stellarService.client-DBROJ4yf.js.map → stellarService.client-yWCDuq6S.js.map} +1 -1
- package/package.json +2 -2
- package/dist/core/types/canton.d.ts +0 -2
- package/dist/core/types/cosmos.d.ts +0 -5
- package/dist/hooks/transaction/useDepositTransactionStatus.d.ts +0 -25
- package/dist/hooks/transaction/useSwapStatusQuery.d.ts +0 -26
- package/dist/index-D5QOR7JT.js.map +0 -1
- package/dist/index-mgE1SeE-.js.map +0 -1
- package/dist/services/internal/cantonService.d.ts +0 -2
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { RouteResponse } from "@0xsquid/squid-types";
|
|
2
|
-
import { PaymentMethod } from "../store/useDepositAddressStore";
|
|
3
2
|
export declare function useDepositAddress(squidRoute?: RouteResponse["route"]): {
|
|
4
|
-
|
|
5
|
-
isDepositAddressActive: boolean;
|
|
3
|
+
isEnabled: boolean;
|
|
6
4
|
isAvailableAsPaymentMethod: boolean;
|
|
7
5
|
swapWillGenerateDepositAddress: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
enable: () => void;
|
|
7
|
+
disable: () => void;
|
|
8
|
+
getRouteWithDeposit: import("@tanstack/react-query").UseMutationResult<{
|
|
9
|
+
depositAddress: import("@0xsquid/squid-types").ChainflipDepositAddressResponse;
|
|
10
|
+
}, unknown, {
|
|
10
11
|
route: RouteResponse["route"];
|
|
11
12
|
}, unknown>;
|
|
12
13
|
depositAddress: string | undefined;
|
|
13
14
|
closeDepositChannel: () => void;
|
|
14
|
-
depositData: import("
|
|
15
|
+
depositData: import("@0xsquid/squid-types").ChainflipDepositAddressResponse | null;
|
|
15
16
|
};
|
|
@@ -65,7 +65,11 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
|
|
|
65
65
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
66
66
|
} & {
|
|
67
67
|
type: ChainType.COSMOS;
|
|
68
|
-
connector:
|
|
68
|
+
connector: () => {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
provider: any;
|
|
72
|
+
};
|
|
69
73
|
}) | ({
|
|
70
74
|
name: string;
|
|
71
75
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -82,10 +86,18 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
|
|
|
82
86
|
isMultiChain?: false | undefined;
|
|
83
87
|
} & {
|
|
84
88
|
type: ChainType.COSMOS;
|
|
85
|
-
connector:
|
|
89
|
+
connector: () => {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
provider: any;
|
|
93
|
+
};
|
|
86
94
|
} & {
|
|
87
95
|
type: ChainType.COSMOS;
|
|
88
|
-
connector:
|
|
96
|
+
connector: () => {
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
provider: any;
|
|
100
|
+
};
|
|
89
101
|
}) | ({
|
|
90
102
|
name: string;
|
|
91
103
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -103,7 +115,7 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
|
|
|
103
115
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
104
116
|
} & {
|
|
105
117
|
type: ChainType.SOLANA;
|
|
106
|
-
connector: import("
|
|
118
|
+
connector: import("../../core/types/solana").SolanaConnector;
|
|
107
119
|
}) | ({
|
|
108
120
|
name: string;
|
|
109
121
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -120,10 +132,10 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
|
|
|
120
132
|
isMultiChain?: false | undefined;
|
|
121
133
|
} & {
|
|
122
134
|
type: ChainType.SOLANA;
|
|
123
|
-
connector: import("
|
|
135
|
+
connector: import("../../core/types/solana").SolanaConnector;
|
|
124
136
|
} & {
|
|
125
137
|
type: ChainType.SOLANA;
|
|
126
|
-
connector: import("
|
|
138
|
+
connector: import("../../core/types/solana").SolanaConnector;
|
|
127
139
|
}) | ({
|
|
128
140
|
name: string;
|
|
129
141
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -276,43 +288,5 @@ export declare const useMultiChainWallet: (chain: ChainData | undefined) => {
|
|
|
276
288
|
} & {
|
|
277
289
|
type: ChainType.STELLAR;
|
|
278
290
|
connector: import("../../core/types/stellar").StellarConnector;
|
|
279
|
-
}) | ({
|
|
280
|
-
name: string;
|
|
281
|
-
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
282
|
-
connectorName: string;
|
|
283
|
-
icon: string | undefined;
|
|
284
|
-
windowFlag: import("../../core/types/wallet").WindowWalletFlag;
|
|
285
|
-
isMobile?: boolean | undefined;
|
|
286
|
-
isQrWallet?: boolean | undefined;
|
|
287
|
-
isInstalled?: (() => boolean) | undefined;
|
|
288
|
-
skipInstallCheck?: boolean | undefined;
|
|
289
|
-
rdns?: string | undefined;
|
|
290
|
-
url?: string | undefined;
|
|
291
|
-
} & {
|
|
292
|
-
isMultiChain: true;
|
|
293
|
-
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
294
|
-
} & {
|
|
295
|
-
type: ChainType.CANTON;
|
|
296
|
-
connector: import("../../core/types/canton").CantonConnector;
|
|
297
|
-
}) | ({
|
|
298
|
-
name: string;
|
|
299
|
-
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
300
|
-
connectorName: string;
|
|
301
|
-
icon: string | undefined;
|
|
302
|
-
windowFlag: import("../../core/types/wallet").WindowWalletFlag;
|
|
303
|
-
isMobile?: boolean | undefined;
|
|
304
|
-
isQrWallet?: boolean | undefined;
|
|
305
|
-
isInstalled?: (() => boolean) | undefined;
|
|
306
|
-
skipInstallCheck?: boolean | undefined;
|
|
307
|
-
rdns?: string | undefined;
|
|
308
|
-
url?: string | undefined;
|
|
309
|
-
} & {
|
|
310
|
-
isMultiChain?: false | undefined;
|
|
311
|
-
} & {
|
|
312
|
-
type: ChainType.CANTON;
|
|
313
|
-
connector: import("../../core/types/canton").CantonConnector;
|
|
314
|
-
} & {
|
|
315
|
-
type: ChainType.CANTON;
|
|
316
|
-
connector: import("../../core/types/canton").CantonConnector;
|
|
317
291
|
}) | undefined;
|
|
318
292
|
};
|
|
@@ -7,7 +7,7 @@ export declare const useSigner: ({ chain }: {
|
|
|
7
7
|
evmSigner: JsonRpcSigner | undefined;
|
|
8
8
|
cosmosSigner: import("@cosmjs/proto-signing").OfflineSigner | undefined;
|
|
9
9
|
bitcoinSigner: import("../../core/types/bitcoin").BitcoinConnector | undefined;
|
|
10
|
-
solanaSigner: import("
|
|
10
|
+
solanaSigner: import("../../core/types/solana").SolanaConnector | undefined;
|
|
11
11
|
suiSigner: import("../../core/types/sui").SuiConnector | undefined;
|
|
12
12
|
xrplSigner: import("../../core/types/xrpl").XrplConnector | undefined;
|
|
13
13
|
stellarSigner: import("../../core/types/stellar").StellarConnector | undefined;
|
|
@@ -65,7 +65,11 @@ export declare const useWallet: () => {
|
|
|
65
65
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
66
66
|
} & {
|
|
67
67
|
type: ChainType.COSMOS;
|
|
68
|
-
connector:
|
|
68
|
+
connector: () => {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
provider: any;
|
|
72
|
+
};
|
|
69
73
|
}) | ({
|
|
70
74
|
name: string;
|
|
71
75
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -82,10 +86,18 @@ export declare const useWallet: () => {
|
|
|
82
86
|
isMultiChain?: false | undefined;
|
|
83
87
|
} & {
|
|
84
88
|
type: ChainType.COSMOS;
|
|
85
|
-
connector:
|
|
89
|
+
connector: () => {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
provider: any;
|
|
93
|
+
};
|
|
86
94
|
} & {
|
|
87
95
|
type: ChainType.COSMOS;
|
|
88
|
-
connector:
|
|
96
|
+
connector: () => {
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
provider: any;
|
|
100
|
+
};
|
|
89
101
|
});
|
|
90
102
|
address: string;
|
|
91
103
|
}>;
|
|
@@ -107,7 +119,7 @@ export declare const useWallet: () => {
|
|
|
107
119
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
108
120
|
} & {
|
|
109
121
|
type: ChainType.SOLANA;
|
|
110
|
-
connector: import("
|
|
122
|
+
connector: import("../../core/types/solana").SolanaConnector;
|
|
111
123
|
}) | ({
|
|
112
124
|
name: string;
|
|
113
125
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -124,10 +136,10 @@ export declare const useWallet: () => {
|
|
|
124
136
|
isMultiChain?: false | undefined;
|
|
125
137
|
} & {
|
|
126
138
|
type: ChainType.SOLANA;
|
|
127
|
-
connector: import("
|
|
139
|
+
connector: import("../../core/types/solana").SolanaConnector;
|
|
128
140
|
} & {
|
|
129
141
|
type: ChainType.SOLANA;
|
|
130
|
-
connector: import("
|
|
142
|
+
connector: import("../../core/types/solana").SolanaConnector;
|
|
131
143
|
});
|
|
132
144
|
address: string;
|
|
133
145
|
}>;
|
|
@@ -299,48 +311,6 @@ export declare const useWallet: () => {
|
|
|
299
311
|
});
|
|
300
312
|
address: string;
|
|
301
313
|
}>;
|
|
302
|
-
canton: Partial<{
|
|
303
|
-
wallet: ({
|
|
304
|
-
name: string;
|
|
305
|
-
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
306
|
-
connectorName: string;
|
|
307
|
-
icon: string | undefined;
|
|
308
|
-
windowFlag: import("../../core/types/wallet").WindowWalletFlag;
|
|
309
|
-
isMobile?: boolean | undefined;
|
|
310
|
-
isQrWallet?: boolean | undefined;
|
|
311
|
-
isInstalled?: (() => boolean) | undefined;
|
|
312
|
-
skipInstallCheck?: boolean | undefined;
|
|
313
|
-
rdns?: string | undefined;
|
|
314
|
-
url?: string | undefined;
|
|
315
|
-
} & {
|
|
316
|
-
isMultiChain: true;
|
|
317
|
-
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
318
|
-
} & {
|
|
319
|
-
type: ChainType.CANTON;
|
|
320
|
-
connector: import("../../core/types/canton").CantonConnector;
|
|
321
|
-
}) | ({
|
|
322
|
-
name: string;
|
|
323
|
-
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
324
|
-
connectorName: string;
|
|
325
|
-
icon: string | undefined;
|
|
326
|
-
windowFlag: import("../../core/types/wallet").WindowWalletFlag;
|
|
327
|
-
isMobile?: boolean | undefined;
|
|
328
|
-
isQrWallet?: boolean | undefined;
|
|
329
|
-
isInstalled?: (() => boolean) | undefined;
|
|
330
|
-
skipInstallCheck?: boolean | undefined;
|
|
331
|
-
rdns?: string | undefined;
|
|
332
|
-
url?: string | undefined;
|
|
333
|
-
} & {
|
|
334
|
-
isMultiChain?: false | undefined;
|
|
335
|
-
} & {
|
|
336
|
-
type: ChainType.CANTON;
|
|
337
|
-
connector: import("../../core/types/canton").CantonConnector;
|
|
338
|
-
} & {
|
|
339
|
-
type: ChainType.CANTON;
|
|
340
|
-
connector: import("../../core/types/canton").CantonConnector;
|
|
341
|
-
});
|
|
342
|
-
address: string;
|
|
343
|
-
}>;
|
|
344
314
|
};
|
|
345
315
|
connectedAddresses: Record<ChainType, string | undefined>;
|
|
346
316
|
connectingWalletState: import("../store/useWalletStore").ConnectingWalletState;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChainType } from "@0xsquid/squid-types";
|
|
2
|
+
import { type WalletVerificationSignatureRequest } from "../../core/types/walletVerificationSignature";
|
|
3
|
+
export { WALLET_VERIFICATION_SIGNATURE_TYPE_BY_CHAIN_TYPE, WalletVerificationSignatureError, WalletVerificationSignatureErrorCode, WalletVerificationSignatureType, buildBitcoinWalletVerificationSignatureResult, buildCosmosWalletVerificationSignatureResult, buildSolanaWalletVerificationSignatureResult, buildStellarWalletVerificationSignatureResult, buildSuiWalletVerificationSignatureResult, buildWalletVerificationSignatureResult, buildXrplWalletVerificationSignatureResult, type WalletVerificationSignatureRequest, type WalletVerificationSignatureResult, } from "../../core/types/walletVerificationSignature";
|
|
4
|
+
export declare const useWalletVerificationSignature: () => {
|
|
5
|
+
signatureTypes: {
|
|
6
|
+
readonly evm: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.EVM;
|
|
7
|
+
readonly cosmos: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.COSMOS;
|
|
8
|
+
readonly bitcoin: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.BITCOIN;
|
|
9
|
+
readonly solana: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.SOLANA;
|
|
10
|
+
readonly sui: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.SUI;
|
|
11
|
+
readonly xrpl: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.XRPL;
|
|
12
|
+
readonly stellar: import("../../core/types/walletVerificationSignature").WalletVerificationSignatureType.STELLAR;
|
|
13
|
+
};
|
|
14
|
+
supportedChainTypes: ChainType[];
|
|
15
|
+
signVerificationMessage: import("@tanstack/react-query").UseMutateAsyncFunction<import("../../core/types/walletVerificationSignature").WalletVerificationSignatureResult, unknown, WalletVerificationSignatureRequest, unknown>;
|
|
16
|
+
cancelSignVerificationMessage: ({ chainType }?: {
|
|
17
|
+
chainType?: ChainType | undefined;
|
|
18
|
+
}) => void;
|
|
19
|
+
isSigning: boolean;
|
|
20
|
+
error: unknown;
|
|
21
|
+
reset: () => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CreateWalletVerificationSignersParams, WalletVerificationSigners } from "./types";
|
|
2
|
+
export type { CreateWalletVerificationSignersParams, WalletVerificationSigner, WalletVerificationSigners, } from "./types";
|
|
3
|
+
export declare function createWalletVerificationSigners(params: CreateWalletVerificationSignersParams): WalletVerificationSigners;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChainType } from "@0xsquid/squid-types";
|
|
2
|
+
import type { ChainTypeToWalletState } from "../../../../core/types/wallet";
|
|
3
|
+
import { type WalletVerificationSignatureRequest, type WalletVerificationSignatureResult } from "../../../../core/types/walletVerificationSignature";
|
|
4
|
+
export type ConnectedWalletsByChainType = {
|
|
5
|
+
[K in keyof ChainTypeToWalletState]: Partial<ChainTypeToWalletState[K]>;
|
|
6
|
+
};
|
|
7
|
+
export type EvmWalletClient = {
|
|
8
|
+
account?: {
|
|
9
|
+
address?: string;
|
|
10
|
+
};
|
|
11
|
+
signMessage?: (_: {
|
|
12
|
+
account: `0x${string}`;
|
|
13
|
+
message: string;
|
|
14
|
+
}) => Promise<string>;
|
|
15
|
+
};
|
|
16
|
+
export type WalletVerificationSigner = {
|
|
17
|
+
sign: (request: WalletVerificationSignatureRequest & {
|
|
18
|
+
message: string;
|
|
19
|
+
}) => Promise<WalletVerificationSignatureResult>;
|
|
20
|
+
cancel?: () => void;
|
|
21
|
+
};
|
|
22
|
+
export type WalletVerificationSigners = Partial<Record<ChainType, WalletVerificationSigner>>;
|
|
23
|
+
export type CreateWalletVerificationSignersParams = {
|
|
24
|
+
connectedWallets: ConnectedWalletsByChainType;
|
|
25
|
+
walletClient?: EvmWalletClient;
|
|
26
|
+
wagmiAddress?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function wrapSignatureError({ chainType, message, error, }: {
|
|
29
|
+
chainType: ChainType;
|
|
30
|
+
message: string;
|
|
31
|
+
error: unknown;
|
|
32
|
+
}): never;
|
|
33
|
+
export declare function getEvmAddress({ connectedWallets, walletClient, wagmiAddress, }: Pick<CreateWalletVerificationSignersParams, "connectedWallets" | "walletClient" | "wagmiAddress">): string | undefined;
|