@0xsquid/react-hooks 8.9.0 → 8.9.1-beta-canton-wallet-connection.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/canton/cantonConnector.d.ts +28 -0
- package/dist/core/canton/cip103Client.d.ts +20 -0
- package/dist/core/client/index.d.ts +1 -0
- package/dist/core/constants.d.ts +3 -0
- package/dist/core/fallbackWallets.d.ts +16 -0
- package/dist/core/providers/CantonProvider.d.ts +19 -0
- package/dist/core/types/canton.d.ts +58 -0
- package/dist/core/types/cosmos.d.ts +5 -0
- package/dist/core/types/wallet.d.ts +15 -7
- package/dist/core/wallets.d.ts +5 -0
- package/dist/hooks/canton/useCanton.d.ts +2 -0
- package/dist/hooks/canton/useCantonWallets.d.ts +8 -0
- package/dist/hooks/chains/useSquidChains.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/store/useDepositAddressStore.d.ts +18 -5
- package/dist/hooks/swap/useDepositAddress.d.ts +6 -7
- package/dist/hooks/tokens/useBalance.d.ts +1 -0
- package/dist/hooks/tokens/useNativeBalance.d.ts +1 -0
- package/dist/hooks/tokens/useSquidTokens.d.ts +1 -0
- package/dist/hooks/transaction/useDepositTransactionStatus.d.ts +20 -0
- package/dist/hooks/transaction/useSwapStatusQuery.d.ts +29 -0
- package/dist/hooks/wallet/useMultiChainWallet.d.ts +55 -29
- package/dist/hooks/wallet/useSigner.d.ts +1 -0
- package/dist/hooks/wallet/useWallet.d.ts +59 -29
- package/dist/hooks/xrpl/useXrplWallets.d.ts +2 -2
- package/dist/{index-BL_AUWQg.js → index-B8h1ypYK.js} +1364 -195
- package/dist/index-B8h1ypYK.js.map +1 -0
- package/dist/{index-DcBFug8t.js → index-doLvokYY.js} +1349 -177
- package/dist/index-doLvokYY.js.map +1 -0
- package/dist/{index.es-1XEAWjab.js → index.es-CuIvGVFi.js} +4 -3
- package/dist/index.es-CuIvGVFi.js.map +1 -0
- package/dist/{index.es-DSQHpime.js → index.es-reWGC10l.js} +4 -3
- package/dist/index.es-reWGC10l.js.map +1 -0
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/{secretService-B1SDXLS1.js → secretService-3g7QoMaM.js} +4 -3
- package/dist/{secretService-B1SDXLS1.js.map → secretService-3g7QoMaM.js.map} +1 -1
- package/dist/{secretService-DxQ78j5I.js → secretService-DMcFUD-e.js} +4 -3
- package/dist/{secretService-DxQ78j5I.js.map → secretService-DMcFUD-e.js.map} +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.esm.js +7 -1
- package/dist/server.esm.js.map +1 -1
- package/dist/server.js +7 -0
- package/dist/server.js.map +1 -1
- package/dist/services/external/onrampAdapter.d.ts +3 -4
- package/dist/services/external/rpcService.d.ts +17 -0
- package/dist/services/internal/assetsService.d.ts +10 -1
- package/dist/services/internal/cantonDamlValue.d.ts +75 -0
- package/dist/services/internal/cantonService.d.ts +64 -0
- package/dist/services/internal/cantonTransferService.d.ts +93 -0
- package/dist/services/internal/transactionService.d.ts +5 -1
- package/dist/services/internal/walletService.d.ts +3 -6
- package/dist/{stellarService.client-C4TLBEpm.js → stellarService.client-DLPxIX3n.js} +5 -4
- package/dist/{stellarService.client-C4TLBEpm.js.map → stellarService.client-DLPxIX3n.js.map} +1 -1
- package/dist/{stellarService.client-CkP5ng2n.js → stellarService.client-DMdUVPJ8.js} +5 -4
- package/dist/{stellarService.client-CkP5ng2n.js.map → stellarService.client-DMdUVPJ8.js.map} +1 -1
- package/dist/tests/cantonService.test.d.ts +1 -0
- package/dist/tests/cantonTransferService.test.d.ts +1 -0
- package/dist/tests/cip103Client.test.d.ts +1 -0
- package/dist/tests/fallbackWallets.test.d.ts +1 -0
- package/dist/tests/wallets.test.d.ts +1 -0
- package/package.json +3 -2
- package/dist/index-BL_AUWQg.js.map +0 -1
- package/dist/index-DcBFug8t.js.map +0 -1
- package/dist/index.es-1XEAWjab.js.map +0 -1
- package/dist/index.es-DSQHpime.js.map +0 -1
|
@@ -17,7 +17,7 @@ export declare const useWallet: () => {
|
|
|
17
17
|
isInstalled?: (() => boolean) | undefined;
|
|
18
18
|
skipInstallCheck?: boolean | undefined;
|
|
19
19
|
rdns?: string | undefined;
|
|
20
|
-
|
|
20
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
isMultiChain: true;
|
|
23
23
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -35,7 +35,7 @@ export declare const useWallet: () => {
|
|
|
35
35
|
isInstalled?: (() => boolean) | undefined;
|
|
36
36
|
skipInstallCheck?: boolean | undefined;
|
|
37
37
|
rdns?: string | undefined;
|
|
38
|
-
|
|
38
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
39
39
|
} & {
|
|
40
40
|
isMultiChain?: false | undefined;
|
|
41
41
|
} & {
|
|
@@ -59,17 +59,13 @@ export declare const useWallet: () => {
|
|
|
59
59
|
isInstalled?: (() => boolean) | undefined;
|
|
60
60
|
skipInstallCheck?: boolean | undefined;
|
|
61
61
|
rdns?: string | undefined;
|
|
62
|
-
|
|
62
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
63
63
|
} & {
|
|
64
64
|
isMultiChain: true;
|
|
65
65
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
66
66
|
} & {
|
|
67
67
|
type: ChainType.COSMOS;
|
|
68
|
-
connector: ()
|
|
69
|
-
id: string;
|
|
70
|
-
name: string;
|
|
71
|
-
provider: any;
|
|
72
|
-
};
|
|
68
|
+
connector: import("../../core/types/cosmos").CosmosConnector;
|
|
73
69
|
}) | ({
|
|
74
70
|
name: string;
|
|
75
71
|
connectorId: import("../../core/types/wallet").ConnectorID;
|
|
@@ -81,23 +77,15 @@ export declare const useWallet: () => {
|
|
|
81
77
|
isInstalled?: (() => boolean) | undefined;
|
|
82
78
|
skipInstallCheck?: boolean | undefined;
|
|
83
79
|
rdns?: string | undefined;
|
|
84
|
-
|
|
80
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
85
81
|
} & {
|
|
86
82
|
isMultiChain?: false | undefined;
|
|
87
83
|
} & {
|
|
88
84
|
type: ChainType.COSMOS;
|
|
89
|
-
connector: ()
|
|
90
|
-
id: string;
|
|
91
|
-
name: string;
|
|
92
|
-
provider: any;
|
|
93
|
-
};
|
|
85
|
+
connector: import("../../core/types/cosmos").CosmosConnector;
|
|
94
86
|
} & {
|
|
95
87
|
type: ChainType.COSMOS;
|
|
96
|
-
connector: ()
|
|
97
|
-
id: string;
|
|
98
|
-
name: string;
|
|
99
|
-
provider: any;
|
|
100
|
-
};
|
|
88
|
+
connector: import("../../core/types/cosmos").CosmosConnector;
|
|
101
89
|
});
|
|
102
90
|
address: string;
|
|
103
91
|
}>;
|
|
@@ -113,7 +101,7 @@ export declare const useWallet: () => {
|
|
|
113
101
|
isInstalled?: (() => boolean) | undefined;
|
|
114
102
|
skipInstallCheck?: boolean | undefined;
|
|
115
103
|
rdns?: string | undefined;
|
|
116
|
-
|
|
104
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
117
105
|
} & {
|
|
118
106
|
isMultiChain: true;
|
|
119
107
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -131,7 +119,7 @@ export declare const useWallet: () => {
|
|
|
131
119
|
isInstalled?: (() => boolean) | undefined;
|
|
132
120
|
skipInstallCheck?: boolean | undefined;
|
|
133
121
|
rdns?: string | undefined;
|
|
134
|
-
|
|
122
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
135
123
|
} & {
|
|
136
124
|
isMultiChain?: false | undefined;
|
|
137
125
|
} & {
|
|
@@ -155,7 +143,7 @@ export declare const useWallet: () => {
|
|
|
155
143
|
isInstalled?: (() => boolean) | undefined;
|
|
156
144
|
skipInstallCheck?: boolean | undefined;
|
|
157
145
|
rdns?: string | undefined;
|
|
158
|
-
|
|
146
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
159
147
|
} & {
|
|
160
148
|
isMultiChain: true;
|
|
161
149
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -173,7 +161,7 @@ export declare const useWallet: () => {
|
|
|
173
161
|
isInstalled?: (() => boolean) | undefined;
|
|
174
162
|
skipInstallCheck?: boolean | undefined;
|
|
175
163
|
rdns?: string | undefined;
|
|
176
|
-
|
|
164
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
177
165
|
} & {
|
|
178
166
|
isMultiChain?: false | undefined;
|
|
179
167
|
} & {
|
|
@@ -197,7 +185,7 @@ export declare const useWallet: () => {
|
|
|
197
185
|
isInstalled?: (() => boolean) | undefined;
|
|
198
186
|
skipInstallCheck?: boolean | undefined;
|
|
199
187
|
rdns?: string | undefined;
|
|
200
|
-
|
|
188
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
201
189
|
} & {
|
|
202
190
|
isMultiChain: true;
|
|
203
191
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -215,7 +203,7 @@ export declare const useWallet: () => {
|
|
|
215
203
|
isInstalled?: (() => boolean) | undefined;
|
|
216
204
|
skipInstallCheck?: boolean | undefined;
|
|
217
205
|
rdns?: string | undefined;
|
|
218
|
-
|
|
206
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
219
207
|
} & {
|
|
220
208
|
isMultiChain?: false | undefined;
|
|
221
209
|
} & {
|
|
@@ -239,7 +227,7 @@ export declare const useWallet: () => {
|
|
|
239
227
|
isInstalled?: (() => boolean) | undefined;
|
|
240
228
|
skipInstallCheck?: boolean | undefined;
|
|
241
229
|
rdns?: string | undefined;
|
|
242
|
-
|
|
230
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
243
231
|
} & {
|
|
244
232
|
isMultiChain: true;
|
|
245
233
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -257,7 +245,7 @@ export declare const useWallet: () => {
|
|
|
257
245
|
isInstalled?: (() => boolean) | undefined;
|
|
258
246
|
skipInstallCheck?: boolean | undefined;
|
|
259
247
|
rdns?: string | undefined;
|
|
260
|
-
|
|
248
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
261
249
|
} & {
|
|
262
250
|
isMultiChain?: false | undefined;
|
|
263
251
|
} & {
|
|
@@ -281,7 +269,7 @@ export declare const useWallet: () => {
|
|
|
281
269
|
isInstalled?: (() => boolean) | undefined;
|
|
282
270
|
skipInstallCheck?: boolean | undefined;
|
|
283
271
|
rdns?: string | undefined;
|
|
284
|
-
|
|
272
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
285
273
|
} & {
|
|
286
274
|
isMultiChain: true;
|
|
287
275
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -299,7 +287,7 @@ export declare const useWallet: () => {
|
|
|
299
287
|
isInstalled?: (() => boolean) | undefined;
|
|
300
288
|
skipInstallCheck?: boolean | undefined;
|
|
301
289
|
rdns?: string | undefined;
|
|
302
|
-
|
|
290
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
303
291
|
} & {
|
|
304
292
|
isMultiChain?: false | undefined;
|
|
305
293
|
} & {
|
|
@@ -311,6 +299,48 @@ export declare const useWallet: () => {
|
|
|
311
299
|
});
|
|
312
300
|
address: string;
|
|
313
301
|
}>;
|
|
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
|
+
links?: import("../../core/types/wallet").WalletLinks | 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
|
+
links?: import("../../core/types/wallet").WalletLinks | 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
|
+
}>;
|
|
314
344
|
};
|
|
315
345
|
connectedAddresses: Record<ChainType, string | undefined>;
|
|
316
346
|
connectingWalletState: import("../store/useWalletStore").ConnectingWalletState;
|
|
@@ -12,7 +12,7 @@ export declare function useXrplWallets(): {
|
|
|
12
12
|
isInstalled?: (() => boolean) | undefined;
|
|
13
13
|
skipInstallCheck?: boolean | undefined;
|
|
14
14
|
rdns?: string | undefined;
|
|
15
|
-
|
|
15
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
isMultiChain: true;
|
|
18
18
|
supportedNetworks: import("../../core/types/wallet").NetworkConfig[];
|
|
@@ -30,7 +30,7 @@ export declare function useXrplWallets(): {
|
|
|
30
30
|
isInstalled?: (() => boolean) | undefined;
|
|
31
31
|
skipInstallCheck?: boolean | undefined;
|
|
32
32
|
rdns?: string | undefined;
|
|
33
|
-
|
|
33
|
+
links?: import("../../core/types/wallet").WalletLinks | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
isMultiChain?: false | undefined;
|
|
36
36
|
} & {
|