@sats-connect/core 0.7.0-f22f1e4 → 0.7.1-2a549f3
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.d.mts +203 -157
- package/dist/index.d.ts +203 -157
- package/dist/index.js +73 -26
- package/dist/index.mjs +66 -23
- package/package.json +10 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,136 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
|
|
3
|
+
declare enum BitcoinNetworkType {
|
|
4
|
+
Mainnet = "Mainnet",
|
|
5
|
+
Testnet = "Testnet",
|
|
6
|
+
Testnet4 = "Testnet4",
|
|
7
|
+
Signet = "Signet",
|
|
8
|
+
Regtest = "Regtest"
|
|
9
|
+
}
|
|
10
|
+
declare enum StacksNetworkType {
|
|
11
|
+
Mainnet = "mainnet",
|
|
12
|
+
Testnet = "testnet"
|
|
13
|
+
}
|
|
14
|
+
declare enum StarknetNetworkType {
|
|
15
|
+
Mainnet = "mainnet",
|
|
16
|
+
Sepolia = "sepolia"
|
|
17
|
+
}
|
|
18
|
+
interface BitcoinNetwork {
|
|
19
|
+
type: BitcoinNetworkType;
|
|
20
|
+
address?: string;
|
|
21
|
+
}
|
|
22
|
+
interface RequestPayload {
|
|
23
|
+
network: BitcoinNetwork;
|
|
24
|
+
}
|
|
25
|
+
interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
26
|
+
onFinish: (response: Response) => void;
|
|
27
|
+
onCancel: () => void;
|
|
28
|
+
payload: Payload;
|
|
29
|
+
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
30
|
+
}
|
|
31
|
+
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
32
|
+
type RpcId = v.InferOutput<typeof RpcIdSchema>;
|
|
33
|
+
declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
34
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
35
|
+
readonly method: v.StringSchema<undefined>;
|
|
36
|
+
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
37
|
+
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
40
|
+
interface RpcBase {
|
|
41
|
+
jsonrpc: '2.0';
|
|
42
|
+
id: RpcId;
|
|
43
|
+
}
|
|
44
|
+
interface RpcRequest<T extends string, U> extends RpcBase {
|
|
45
|
+
method: T;
|
|
46
|
+
params: U;
|
|
47
|
+
}
|
|
48
|
+
interface MethodParamsAndResult<TParams, TResult> {
|
|
49
|
+
params: TParams;
|
|
50
|
+
result: TResult;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @enum {number} RpcErrorCode
|
|
54
|
+
* @description JSON-RPC error codes
|
|
55
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
56
|
+
*/
|
|
57
|
+
declare enum RpcErrorCode {
|
|
58
|
+
/**
|
|
59
|
+
* Parse error Invalid JSON
|
|
60
|
+
**/
|
|
61
|
+
PARSE_ERROR = -32700,
|
|
62
|
+
/**
|
|
63
|
+
* The JSON sent is not a valid Request object.
|
|
64
|
+
**/
|
|
65
|
+
INVALID_REQUEST = -32600,
|
|
66
|
+
/**
|
|
67
|
+
* The method does not exist/is not available.
|
|
68
|
+
**/
|
|
69
|
+
METHOD_NOT_FOUND = -32601,
|
|
70
|
+
/**
|
|
71
|
+
* Invalid method parameter(s).
|
|
72
|
+
*/
|
|
73
|
+
INVALID_PARAMS = -32602,
|
|
74
|
+
/**
|
|
75
|
+
* Internal JSON-RPC error.
|
|
76
|
+
* This is a generic error, used when the server encounters an error in performing the request.
|
|
77
|
+
**/
|
|
78
|
+
INTERNAL_ERROR = -32603,
|
|
79
|
+
/**
|
|
80
|
+
* user rejected/canceled the request
|
|
81
|
+
*/
|
|
82
|
+
USER_REJECTION = -32000,
|
|
83
|
+
/**
|
|
84
|
+
* method is not supported for the address provided
|
|
85
|
+
*/
|
|
86
|
+
METHOD_NOT_SUPPORTED = -32001,
|
|
87
|
+
/**
|
|
88
|
+
* The client does not have permission to access the requested resource.
|
|
89
|
+
*/
|
|
90
|
+
ACCESS_DENIED = -32002
|
|
91
|
+
}
|
|
92
|
+
declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
|
|
93
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
94
|
+
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
95
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
|
|
98
|
+
declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
|
|
99
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
100
|
+
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
101
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
102
|
+
}, undefined>;
|
|
103
|
+
type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
|
|
104
|
+
declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
105
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
106
|
+
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
107
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
108
|
+
}, undefined>, v.ObjectSchema<{
|
|
109
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
110
|
+
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
111
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
112
|
+
}, undefined>], undefined>;
|
|
113
|
+
type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
|
|
114
|
+
interface RpcError {
|
|
115
|
+
code: number | RpcErrorCode;
|
|
116
|
+
message: string;
|
|
117
|
+
data?: any;
|
|
118
|
+
}
|
|
119
|
+
interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
|
|
120
|
+
error: TError;
|
|
121
|
+
}
|
|
122
|
+
interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
|
|
123
|
+
result: Return<Method>;
|
|
124
|
+
}
|
|
125
|
+
type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
|
|
126
|
+
type RpcResult<Method extends keyof Requests> = {
|
|
127
|
+
result: RpcSuccessResponse<Method>['result'];
|
|
128
|
+
status: 'success';
|
|
129
|
+
} | {
|
|
130
|
+
error: RpcErrorResponse['error'];
|
|
131
|
+
status: 'error';
|
|
132
|
+
};
|
|
133
|
+
|
|
3
134
|
declare enum AddressPurpose {
|
|
4
135
|
Ordinals = "ordinals",
|
|
5
136
|
Payment = "payment",
|
|
@@ -101,12 +232,12 @@ interface InputToSign {
|
|
|
101
232
|
}
|
|
102
233
|
type PsbtPayload = {
|
|
103
234
|
psbtBase64: string;
|
|
104
|
-
inputsToSign
|
|
235
|
+
inputsToSign?: InputToSign[];
|
|
105
236
|
broadcast?: boolean;
|
|
106
237
|
};
|
|
107
238
|
type SignMultiplePsbtPayload = {
|
|
108
239
|
psbtBase64: string;
|
|
109
|
-
inputsToSign
|
|
240
|
+
inputsToSign?: InputToSign[];
|
|
110
241
|
};
|
|
111
242
|
interface SignTransactionPayload extends RequestPayload, PsbtPayload {
|
|
112
243
|
message: string;
|
|
@@ -192,9 +323,20 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
192
323
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
193
324
|
}, undefined>], undefined>;
|
|
194
325
|
type WalletEvent = v.InferOutput<typeof walletEventSchema>;
|
|
195
|
-
type
|
|
196
|
-
|
|
197
|
-
|
|
326
|
+
type AccountChangeCallback = (e: AccountChangeEvent) => void;
|
|
327
|
+
type DisconnectCallback = (e: DisconnectEvent) => void;
|
|
328
|
+
type NetworkChangeCallback = (e: NetworkChangeEvent) => void;
|
|
329
|
+
type ListenerInfo = {
|
|
330
|
+
eventName: typeof accountChangeEventName;
|
|
331
|
+
cb: AccountChangeCallback;
|
|
332
|
+
} | {
|
|
333
|
+
eventName: typeof disconnectEventName;
|
|
334
|
+
cb: DisconnectCallback;
|
|
335
|
+
} | {
|
|
336
|
+
eventName: typeof networkChangeEventName;
|
|
337
|
+
cb: NetworkChangeCallback;
|
|
338
|
+
};
|
|
339
|
+
type AddListener = (arg: ListenerInfo) => () => void;
|
|
198
340
|
interface BaseBitcoinProvider {
|
|
199
341
|
request: <Method extends keyof Requests>(method: Method, options: Params<Method>, providerId?: string) => Promise<RpcResponse<Method>>;
|
|
200
342
|
connect: (request: string) => Promise<GetAddressResponse>;
|
|
@@ -244,137 +386,6 @@ declare function getDefaultProvider(): string | null;
|
|
|
244
386
|
declare function removeDefaultProvider(): void;
|
|
245
387
|
declare function getSupportedWallets(): SupportedWallet[];
|
|
246
388
|
|
|
247
|
-
declare enum BitcoinNetworkType {
|
|
248
|
-
Mainnet = "Mainnet",
|
|
249
|
-
Testnet = "Testnet",
|
|
250
|
-
Testnet4 = "Testnet4",
|
|
251
|
-
Signet = "Signet",
|
|
252
|
-
Regtest = "Regtest"
|
|
253
|
-
}
|
|
254
|
-
declare enum StacksNetworkType {
|
|
255
|
-
Mainnet = "mainnet",
|
|
256
|
-
Testnet = "testnet"
|
|
257
|
-
}
|
|
258
|
-
declare enum StarknetNetworkType {
|
|
259
|
-
Mainnet = "mainnet",
|
|
260
|
-
Sepolia = "sepolia"
|
|
261
|
-
}
|
|
262
|
-
interface BitcoinNetwork {
|
|
263
|
-
type: BitcoinNetworkType;
|
|
264
|
-
address?: string;
|
|
265
|
-
}
|
|
266
|
-
interface RequestPayload {
|
|
267
|
-
network: BitcoinNetwork;
|
|
268
|
-
}
|
|
269
|
-
interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
270
|
-
onFinish: (response: Response) => void;
|
|
271
|
-
onCancel: () => void;
|
|
272
|
-
payload: Payload;
|
|
273
|
-
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
274
|
-
}
|
|
275
|
-
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
276
|
-
type RpcId = v.InferOutput<typeof RpcIdSchema>;
|
|
277
|
-
declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
278
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
279
|
-
readonly method: v.StringSchema<undefined>;
|
|
280
|
-
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
281
|
-
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
282
|
-
}, undefined>;
|
|
283
|
-
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
284
|
-
interface RpcBase {
|
|
285
|
-
jsonrpc: '2.0';
|
|
286
|
-
id: RpcId;
|
|
287
|
-
}
|
|
288
|
-
interface RpcRequest<T extends string, U> extends RpcBase {
|
|
289
|
-
method: T;
|
|
290
|
-
params: U;
|
|
291
|
-
}
|
|
292
|
-
interface MethodParamsAndResult<TParams, TResult> {
|
|
293
|
-
params: TParams;
|
|
294
|
-
result: TResult;
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* @enum {number} RpcErrorCode
|
|
298
|
-
* @description JSON-RPC error codes
|
|
299
|
-
* @see https://www.jsonrpc.org/specification#error_object
|
|
300
|
-
*/
|
|
301
|
-
declare enum RpcErrorCode {
|
|
302
|
-
/**
|
|
303
|
-
* Parse error Invalid JSON
|
|
304
|
-
**/
|
|
305
|
-
PARSE_ERROR = -32700,
|
|
306
|
-
/**
|
|
307
|
-
* The JSON sent is not a valid Request object.
|
|
308
|
-
**/
|
|
309
|
-
INVALID_REQUEST = -32600,
|
|
310
|
-
/**
|
|
311
|
-
* The method does not exist/is not available.
|
|
312
|
-
**/
|
|
313
|
-
METHOD_NOT_FOUND = -32601,
|
|
314
|
-
/**
|
|
315
|
-
* Invalid method parameter(s).
|
|
316
|
-
*/
|
|
317
|
-
INVALID_PARAMS = -32602,
|
|
318
|
-
/**
|
|
319
|
-
* Internal JSON-RPC error.
|
|
320
|
-
* This is a generic error, used when the server encounters an error in performing the request.
|
|
321
|
-
**/
|
|
322
|
-
INTERNAL_ERROR = -32603,
|
|
323
|
-
/**
|
|
324
|
-
* user rejected/canceled the request
|
|
325
|
-
*/
|
|
326
|
-
USER_REJECTION = -32000,
|
|
327
|
-
/**
|
|
328
|
-
* method is not supported for the address provided
|
|
329
|
-
*/
|
|
330
|
-
METHOD_NOT_SUPPORTED = -32001,
|
|
331
|
-
/**
|
|
332
|
-
* The client does not have permission to access the requested resource.
|
|
333
|
-
*/
|
|
334
|
-
ACCESS_DENIED = -32002
|
|
335
|
-
}
|
|
336
|
-
declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
|
|
337
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
338
|
-
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
339
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
340
|
-
}, undefined>;
|
|
341
|
-
type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
|
|
342
|
-
declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
|
|
343
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
344
|
-
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
345
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
346
|
-
}, undefined>;
|
|
347
|
-
type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
|
|
348
|
-
declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
349
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
350
|
-
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
351
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
352
|
-
}, undefined>, v.ObjectSchema<{
|
|
353
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
354
|
-
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
355
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
356
|
-
}, undefined>], undefined>;
|
|
357
|
-
type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
|
|
358
|
-
interface RpcError {
|
|
359
|
-
code: number | RpcErrorCode;
|
|
360
|
-
message: string;
|
|
361
|
-
data?: any;
|
|
362
|
-
}
|
|
363
|
-
interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
|
|
364
|
-
error: TError;
|
|
365
|
-
}
|
|
366
|
-
interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
|
|
367
|
-
result: Return<Method>;
|
|
368
|
-
}
|
|
369
|
-
type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
|
|
370
|
-
type RpcResult<Method extends keyof Requests> = {
|
|
371
|
-
result: RpcSuccessResponse<Method>['result'];
|
|
372
|
-
status: 'success';
|
|
373
|
-
} | {
|
|
374
|
-
error: RpcErrorResponse['error'];
|
|
375
|
-
status: 'error';
|
|
376
|
-
};
|
|
377
|
-
|
|
378
389
|
declare const getInfoMethodName = "getInfo";
|
|
379
390
|
declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
380
391
|
type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
|
|
@@ -421,18 +432,13 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
421
432
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
422
433
|
readonly address: v.StringSchema<undefined>;
|
|
423
434
|
readonly publicKey: v.StringSchema<undefined>;
|
|
424
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
425
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
426
|
-
*/
|
|
435
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
427
436
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
428
437
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
429
438
|
}, undefined>, undefined>;
|
|
430
439
|
readonly network: v.ObjectSchema<{
|
|
431
440
|
readonly bitcoin: v.ObjectSchema<{
|
|
432
|
-
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
433
|
-
* The purposes for which to generate addresses. See
|
|
434
|
-
* {@linkcode AddressPurpose} for available purposes.
|
|
435
|
-
*/
|
|
441
|
+
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
436
442
|
}, undefined>;
|
|
437
443
|
readonly stacks: v.ObjectSchema<{
|
|
438
444
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -622,9 +628,7 @@ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
622
628
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
623
629
|
readonly address: v.StringSchema<undefined>;
|
|
624
630
|
readonly publicKey: v.StringSchema<undefined>;
|
|
625
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
626
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
627
|
-
*/
|
|
631
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
628
632
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
629
633
|
}, undefined>, undefined>;
|
|
630
634
|
type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
|
|
@@ -1724,6 +1728,23 @@ declare const changeNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
|
1724
1728
|
}, undefined>;
|
|
1725
1729
|
type ChangeNetworkRequestMessage = v.InferOutput<typeof changeNetworkRequestMessageSchema>;
|
|
1726
1730
|
type ChangeNetwork = MethodParamsAndResult<ChangeNetworkParams, ChangeNetworkResult>;
|
|
1731
|
+
declare const changeNetworkByIdMethodName = "wallet_changeNetworkById";
|
|
1732
|
+
declare const changeNetworkByIdParamsSchema: v.ObjectSchema<{
|
|
1733
|
+
readonly id: v.StringSchema<undefined>;
|
|
1734
|
+
}, undefined>;
|
|
1735
|
+
type ChangeNetworkByIdParams = v.InferOutput<typeof changeNetworkByIdParamsSchema>;
|
|
1736
|
+
declare const changeNetworkByIdResultSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1737
|
+
type ChangeNetworkByIdResult = v.InferOutput<typeof changeNetworkByIdResultSchema>;
|
|
1738
|
+
declare const changeNetworkByIdRequestMessageSchema: v.ObjectSchema<{
|
|
1739
|
+
readonly method: v.LiteralSchema<"wallet_changeNetworkById", undefined>;
|
|
1740
|
+
readonly params: v.ObjectSchema<{
|
|
1741
|
+
readonly id: v.StringSchema<undefined>;
|
|
1742
|
+
}, undefined>;
|
|
1743
|
+
readonly id: v.StringSchema<undefined>;
|
|
1744
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1745
|
+
}, undefined>;
|
|
1746
|
+
type ChangeNetworkByIdRequestMessage = v.InferOutput<typeof changeNetworkByIdRequestMessageSchema>;
|
|
1747
|
+
type ChangeNetworkById = MethodParamsAndResult<ChangeNetworkByIdParams, ChangeNetworkByIdResult>;
|
|
1727
1748
|
declare const getAccountMethodName = "wallet_getAccount";
|
|
1728
1749
|
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1729
1750
|
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
@@ -1823,54 +1844,62 @@ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
|
1823
1844
|
declare const addNetworkMethodName = "wallet_addNetwork";
|
|
1824
1845
|
declare const addNetworkParamsSchema: v.VariantSchema<"chain", [v.ObjectSchema<{
|
|
1825
1846
|
readonly chain: v.LiteralSchema<"bitcoin", undefined>;
|
|
1826
|
-
readonly
|
|
1847
|
+
readonly type: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1827
1848
|
readonly name: v.StringSchema<undefined>;
|
|
1828
1849
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1829
1850
|
readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1830
1851
|
readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1831
1852
|
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1853
|
+
readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1832
1854
|
}, undefined>, v.ObjectSchema<{
|
|
1833
1855
|
readonly chain: v.LiteralSchema<"stacks", undefined>;
|
|
1834
1856
|
readonly name: v.StringSchema<undefined>;
|
|
1835
|
-
readonly
|
|
1857
|
+
readonly type: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1836
1858
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1837
1859
|
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1860
|
+
readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1838
1861
|
}, undefined>, v.ObjectSchema<{
|
|
1839
1862
|
readonly chain: v.LiteralSchema<"starknet", undefined>;
|
|
1840
1863
|
readonly name: v.StringSchema<undefined>;
|
|
1841
|
-
readonly
|
|
1864
|
+
readonly type: v.EnumSchema<typeof StarknetNetworkType, undefined>;
|
|
1842
1865
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1843
1866
|
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1867
|
+
readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1844
1868
|
}, undefined>], undefined>;
|
|
1845
1869
|
type AddNetworkParams = v.InferOutput<typeof addNetworkParamsSchema>;
|
|
1846
1870
|
declare const addNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1847
1871
|
readonly method: v.LiteralSchema<"wallet_addNetwork", undefined>;
|
|
1848
1872
|
readonly params: v.VariantSchema<"chain", [v.ObjectSchema<{
|
|
1849
1873
|
readonly chain: v.LiteralSchema<"bitcoin", undefined>;
|
|
1850
|
-
readonly
|
|
1874
|
+
readonly type: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1851
1875
|
readonly name: v.StringSchema<undefined>;
|
|
1852
1876
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1853
1877
|
readonly rpcFallbackUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1854
1878
|
readonly indexerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1855
1879
|
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1880
|
+
readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1856
1881
|
}, undefined>, v.ObjectSchema<{
|
|
1857
1882
|
readonly chain: v.LiteralSchema<"stacks", undefined>;
|
|
1858
1883
|
readonly name: v.StringSchema<undefined>;
|
|
1859
|
-
readonly
|
|
1884
|
+
readonly type: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1860
1885
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1861
1886
|
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1887
|
+
readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1862
1888
|
}, undefined>, v.ObjectSchema<{
|
|
1863
1889
|
readonly chain: v.LiteralSchema<"starknet", undefined>;
|
|
1864
1890
|
readonly name: v.StringSchema<undefined>;
|
|
1865
|
-
readonly
|
|
1891
|
+
readonly type: v.EnumSchema<typeof StarknetNetworkType, undefined>;
|
|
1866
1892
|
readonly rpcUrl: v.StringSchema<undefined>;
|
|
1867
1893
|
readonly blockExplorerUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1894
|
+
readonly switch: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1868
1895
|
}, undefined>], undefined>;
|
|
1869
1896
|
readonly id: v.StringSchema<undefined>;
|
|
1870
1897
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1871
1898
|
}, undefined>;
|
|
1872
1899
|
type AddNetworkRequestMessage = v.InferOutput<typeof addNetworkRequestMessageSchema>;
|
|
1873
|
-
declare const addNetworkResultSchema: v.
|
|
1900
|
+
declare const addNetworkResultSchema: v.ObjectSchema<{
|
|
1901
|
+
readonly id: v.StringSchema<undefined>;
|
|
1902
|
+
}, undefined>;
|
|
1874
1903
|
type AddNetworkResult = v.InferOutput<typeof addNetworkResultSchema>;
|
|
1875
1904
|
type AddNetwork = MethodParamsAndResult<AddNetworkParams, AddNetworkResult>;
|
|
1876
1905
|
|
|
@@ -1920,6 +1949,7 @@ type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
|
1920
1949
|
interface WalletRequests {
|
|
1921
1950
|
wallet_addNetwork: AddNetwork;
|
|
1922
1951
|
wallet_changeNetwork: ChangeNetwork;
|
|
1952
|
+
wallet_changeNetworkById: ChangeNetworkById;
|
|
1923
1953
|
wallet_connect: Connect;
|
|
1924
1954
|
wallet_disconnect: Disconnect;
|
|
1925
1955
|
wallet_getAccount: GetAccount;
|
|
@@ -1933,8 +1963,24 @@ type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & Ord
|
|
|
1933
1963
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
1934
1964
|
type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
|
|
1935
1965
|
|
|
1936
|
-
declare const request: <Method extends keyof
|
|
1937
|
-
|
|
1966
|
+
declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
|
|
1967
|
+
/**
|
|
1968
|
+
* The providerId is the object path to the provider in the window object.
|
|
1969
|
+
* E.g., a provider available at `window.Foo.BarProvider` would have a
|
|
1970
|
+
* providerId of `Foo.BarProvider`.
|
|
1971
|
+
*/
|
|
1972
|
+
providerId?: string) => Promise<RpcResult<Method>>;
|
|
1973
|
+
/**
|
|
1974
|
+
* Adds an event listener.
|
|
1975
|
+
*
|
|
1976
|
+
* Currently expects 2 arguments, although is also capable of handling legacy
|
|
1977
|
+
* calls with 3 arguments consisting of:
|
|
1978
|
+
*
|
|
1979
|
+
* - event name (string)
|
|
1980
|
+
* - callback (function)
|
|
1981
|
+
* - provider ID (optional string)
|
|
1982
|
+
*/
|
|
1983
|
+
declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
|
|
1938
1984
|
|
|
1939
1985
|
declare abstract class SatsConnectAdapter {
|
|
1940
1986
|
abstract readonly id: string;
|
|
@@ -1953,11 +1999,11 @@ declare abstract class SatsConnectAdapter {
|
|
|
1953
1999
|
declare class BaseAdapter extends SatsConnectAdapter {
|
|
1954
2000
|
id: string;
|
|
1955
2001
|
constructor(providerId: string);
|
|
1956
|
-
requestInternal: <Method extends keyof
|
|
2002
|
+
requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
|
|
1957
2003
|
addListener: AddListener;
|
|
1958
2004
|
}
|
|
1959
2005
|
|
|
1960
2006
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1961
2007
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1962
2008
|
|
|
1963
|
-
export { type AccountChangeEvent, type AddListener, type AddNetwork, type AddNetworkParams, type AddNetworkRequestMessage, type AddNetworkResult, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type ChangeNetwork, type ChangeNetworkParams, type ChangeNetworkRequestMessage, type ChangeNetworkResult, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetNetwork, type GetNetworkParams, type GetNetworkRequestMessage, type GetNetworkResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, PermissionRequestParams, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, StacksNetworkType, StarknetNetworkType, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxSignTransactions, type StxSignTransactionsParams, type StxSignTransactionsRequestMessage, type StxSignTransactionsResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, accountActionsSchema, accountChangeEventName, accountChangeSchema, accountPermissionSchema, addListener, addNetworkMethodName, addNetworkParamsSchema, addNetworkRequestMessageSchema, addNetworkResultSchema, addressSchema, changeNetworkMethodName, changeNetworkParamsSchema, changeNetworkRequestMessageSchema, changeNetworkResultSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, getNetworkMethodName, getNetworkParamsSchema, getNetworkRequestMessageSchema, getNetworkResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permission, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, type runesEstimateMintParams, type runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, type runesGetBalanceRequestMessage, runesGetBalanceRequestMessageSchema, runesGetBalanceResultSchema, runesMintMethodName, runesMintParamsSchema, runesMintRequestMessageSchema, runesMintResultSchema, runesTransferMethodName, runesTransferParamsSchema, runesTransferRequestMessageSchema, runesTransferResultSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsRequestMessageSchema, sendInscriptionsResultSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxSignTransactionsMethodName, stxSignTransactionsParamsSchema, stxSignTransactionsRequestMessageSchema, stxSignTransactionsResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, walletActionsSchema, walletEventSchema, walletPermissionSchema, walletTypeSchema, walletTypes };
|
|
2009
|
+
export { type AccountChangeCallback, type AccountChangeEvent, type AddListener, type AddNetwork, type AddNetworkParams, type AddNetworkRequestMessage, type AddNetworkResult, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type ChangeNetwork, type ChangeNetworkById, type ChangeNetworkByIdParams, type ChangeNetworkByIdRequestMessage, type ChangeNetworkByIdResult, type ChangeNetworkParams, type ChangeNetworkRequestMessage, type ChangeNetworkResult, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectCallback, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetInscriptionsParams, type GetInscriptionsRequestMessage, type GetInscriptionsResult, type GetNetwork, type GetNetworkParams, type GetNetworkRequestMessage, type GetNetworkResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, type ListenerInfo, MessageSigningProtocols, type MethodParamsAndResult, type NetworkChangeCallback, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, PermissionRequestParams, type PermissionWithoutClientId, type Provider, type PsbtPayload, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesEstimateEtch, type RunesEstimateEtchParams, type RunesEstimateEtchResult, type RunesEstimateMint, type RunesEstimateRbfOrder, type RunesEtch, type RunesEtchParams, type RunesEtchRequestMessage, type RunesEtchResult, type RunesGetBalance, type RunesGetBalanceParams, type RunesGetBalanceResult, type RunesGetOrder, type RunesMint, type RunesMintParams, type RunesMintRequestMessage, type RunesMintResult, type RunesRbfOrder, type RunesRequestMethod, type RunesRequests, type RunesTransfer, type RunesTransferRequestMessage, type RunesTransferResult, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendInscriptionsParams, type SendInscriptionsRequestMessage, type SendInscriptionsResult, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, StacksNetworkType, StarknetNetworkType, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxSignTransactions, type StxSignTransactionsParams, type StxSignTransactionsRequestMessage, type StxSignTransactionsResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunesParams, type WalletEvent, type WalletRequests, type WalletType, accountActionsSchema, accountChangeEventName, accountChangeSchema, accountPermissionSchema, addListener, addNetworkMethodName, addNetworkParamsSchema, addNetworkRequestMessageSchema, addNetworkResultSchema, addressSchema, changeNetworkByIdMethodName, changeNetworkByIdParamsSchema, changeNetworkByIdRequestMessageSchema, changeNetworkByIdResultSchema, changeNetworkMethodName, changeNetworkParamsSchema, changeNetworkRequestMessageSchema, changeNetworkResultSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsRequestMessageSchema, getInscriptionsResultSchema, getNetworkMethodName, getNetworkParamsSchema, getNetworkRequestMessageSchema, getNetworkResultSchema, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permission, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, type runesEstimateMintParams, type runesEstimateMintResult, runesEtchMethodName, runesEtchParamsSchema, runesEtchRequestMessageSchema, runesEtchResultSchema, runesGetBalanceMethodName, runesGetBalanceParamsSchema, type runesGetBalanceRequestMessage, runesGetBalanceRequestMessageSchema, runesGetBalanceResultSchema, runesMintMethodName, runesMintParamsSchema, runesMintRequestMessageSchema, runesMintResultSchema, runesTransferMethodName, runesTransferParamsSchema, runesTransferRequestMessageSchema, runesTransferResultSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsRequestMessageSchema, sendInscriptionsResultSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxSignTransactionsMethodName, stxSignTransactionsParamsSchema, stxSignTransactionsRequestMessageSchema, stxSignTransactionsResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, walletActionsSchema, walletEventSchema, walletPermissionSchema, walletTypeSchema, walletTypes };
|