@sats-connect/core 0.7.0 → 0.7.1-028f6d1
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 +366 -166
- package/dist/index.d.ts +366 -166
- package/dist/index.js +929 -733
- package/dist/index.mjs +909 -730
- package/package.json +9 -12
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,146 @@
|
|
|
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
|
+
declare enum SparkNetworkType {
|
|
19
|
+
Mainnet = "mainnet",
|
|
20
|
+
Regtest = "regtest"
|
|
21
|
+
}
|
|
22
|
+
interface BitcoinNetwork {
|
|
23
|
+
type: BitcoinNetworkType;
|
|
24
|
+
address?: string;
|
|
25
|
+
}
|
|
26
|
+
interface RequestPayload {
|
|
27
|
+
network: BitcoinNetwork;
|
|
28
|
+
}
|
|
29
|
+
interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
30
|
+
onFinish: (response: Response) => void;
|
|
31
|
+
onCancel: () => void;
|
|
32
|
+
payload: Payload;
|
|
33
|
+
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
34
|
+
}
|
|
35
|
+
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
36
|
+
type RpcId = v.InferOutput<typeof RpcIdSchema>;
|
|
37
|
+
declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
38
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
39
|
+
readonly method: v.StringSchema<undefined>;
|
|
40
|
+
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
41
|
+
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
42
|
+
}, undefined>;
|
|
43
|
+
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
44
|
+
interface RpcBase {
|
|
45
|
+
jsonrpc: '2.0';
|
|
46
|
+
id: RpcId;
|
|
47
|
+
}
|
|
48
|
+
interface RpcRequest<T extends string, U> extends RpcBase {
|
|
49
|
+
method: T;
|
|
50
|
+
params: U;
|
|
51
|
+
}
|
|
52
|
+
interface MethodParamsAndResult<TParams, TResult> {
|
|
53
|
+
params: TParams;
|
|
54
|
+
result: TResult;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @enum {number} RpcErrorCode
|
|
58
|
+
* @description JSON-RPC error codes
|
|
59
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
60
|
+
*/
|
|
61
|
+
declare enum RpcErrorCode {
|
|
62
|
+
/**
|
|
63
|
+
* Parse error Invalid JSON
|
|
64
|
+
**/
|
|
65
|
+
PARSE_ERROR = -32700,
|
|
66
|
+
/**
|
|
67
|
+
* The JSON sent is not a valid Request object.
|
|
68
|
+
**/
|
|
69
|
+
INVALID_REQUEST = -32600,
|
|
70
|
+
/**
|
|
71
|
+
* The method does not exist/is not available.
|
|
72
|
+
**/
|
|
73
|
+
METHOD_NOT_FOUND = -32601,
|
|
74
|
+
/**
|
|
75
|
+
* Invalid method parameter(s).
|
|
76
|
+
*/
|
|
77
|
+
INVALID_PARAMS = -32602,
|
|
78
|
+
/**
|
|
79
|
+
* Internal JSON-RPC error.
|
|
80
|
+
* This is a generic error, used when the server encounters an error in performing the request.
|
|
81
|
+
**/
|
|
82
|
+
INTERNAL_ERROR = -32603,
|
|
83
|
+
/**
|
|
84
|
+
* user rejected/canceled the request
|
|
85
|
+
*/
|
|
86
|
+
USER_REJECTION = -32000,
|
|
87
|
+
/**
|
|
88
|
+
* method is not supported for the address provided
|
|
89
|
+
*/
|
|
90
|
+
METHOD_NOT_SUPPORTED = -32001,
|
|
91
|
+
/**
|
|
92
|
+
* The client does not have permission to access the requested resource.
|
|
93
|
+
*/
|
|
94
|
+
ACCESS_DENIED = -32002
|
|
95
|
+
}
|
|
96
|
+
declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
|
|
97
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
98
|
+
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
99
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
100
|
+
}, undefined>;
|
|
101
|
+
type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
|
|
102
|
+
declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
|
|
103
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
104
|
+
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
105
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
|
|
108
|
+
declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
109
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
110
|
+
readonly result: 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>, v.ObjectSchema<{
|
|
113
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
114
|
+
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
115
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
116
|
+
}, undefined>], undefined>;
|
|
117
|
+
type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
|
|
118
|
+
interface RpcError {
|
|
119
|
+
code: number | RpcErrorCode;
|
|
120
|
+
message: string;
|
|
121
|
+
data?: any;
|
|
122
|
+
}
|
|
123
|
+
interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
|
|
124
|
+
error: TError;
|
|
125
|
+
}
|
|
126
|
+
interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
|
|
127
|
+
result: Return<Method>;
|
|
128
|
+
}
|
|
129
|
+
type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
|
|
130
|
+
type RpcResult<Method extends keyof Requests> = {
|
|
131
|
+
result: RpcSuccessResponse<Method>['result'];
|
|
132
|
+
status: 'success';
|
|
133
|
+
} | {
|
|
134
|
+
error: RpcErrorResponse['error'];
|
|
135
|
+
status: 'error';
|
|
136
|
+
};
|
|
137
|
+
|
|
3
138
|
declare enum AddressPurpose {
|
|
4
139
|
Ordinals = "ordinals",
|
|
5
140
|
Payment = "payment",
|
|
6
|
-
Stacks = "stacks"
|
|
141
|
+
Stacks = "stacks",
|
|
142
|
+
Starknet = "starknet",
|
|
143
|
+
Spark = "spark"
|
|
7
144
|
}
|
|
8
145
|
interface GetAddressPayload extends RequestPayload {
|
|
9
146
|
purposes: AddressPurpose[];
|
|
@@ -15,7 +152,9 @@ declare enum AddressType {
|
|
|
15
152
|
p2wpkh = "p2wpkh",
|
|
16
153
|
p2wsh = "p2wsh",
|
|
17
154
|
p2tr = "p2tr",
|
|
18
|
-
stacks = "stacks"
|
|
155
|
+
stacks = "stacks",
|
|
156
|
+
starknet = "starknet",
|
|
157
|
+
spark = "spark"
|
|
19
158
|
}
|
|
20
159
|
declare const addressSchema: v.ObjectSchema<{
|
|
21
160
|
readonly address: v.StringSchema<undefined>;
|
|
@@ -255,137 +394,6 @@ declare function getDefaultProvider(): string | null;
|
|
|
255
394
|
declare function removeDefaultProvider(): void;
|
|
256
395
|
declare function getSupportedWallets(): SupportedWallet[];
|
|
257
396
|
|
|
258
|
-
declare enum BitcoinNetworkType {
|
|
259
|
-
Mainnet = "Mainnet",
|
|
260
|
-
Testnet = "Testnet",
|
|
261
|
-
Testnet4 = "Testnet4",
|
|
262
|
-
Signet = "Signet",
|
|
263
|
-
Regtest = "Regtest"
|
|
264
|
-
}
|
|
265
|
-
declare enum StacksNetworkType {
|
|
266
|
-
Mainnet = "mainnet",
|
|
267
|
-
Testnet = "testnet"
|
|
268
|
-
}
|
|
269
|
-
declare enum StarknetNetworkType {
|
|
270
|
-
Mainnet = "mainnet",
|
|
271
|
-
Sepolia = "sepolia"
|
|
272
|
-
}
|
|
273
|
-
interface BitcoinNetwork {
|
|
274
|
-
type: BitcoinNetworkType;
|
|
275
|
-
address?: string;
|
|
276
|
-
}
|
|
277
|
-
interface RequestPayload {
|
|
278
|
-
network: BitcoinNetwork;
|
|
279
|
-
}
|
|
280
|
-
interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
281
|
-
onFinish: (response: Response) => void;
|
|
282
|
-
onCancel: () => void;
|
|
283
|
-
payload: Payload;
|
|
284
|
-
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
285
|
-
}
|
|
286
|
-
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
287
|
-
type RpcId = v.InferOutput<typeof RpcIdSchema>;
|
|
288
|
-
declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
289
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
290
|
-
readonly method: v.StringSchema<undefined>;
|
|
291
|
-
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
292
|
-
readonly id: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
|
293
|
-
}, undefined>;
|
|
294
|
-
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
295
|
-
interface RpcBase {
|
|
296
|
-
jsonrpc: '2.0';
|
|
297
|
-
id: RpcId;
|
|
298
|
-
}
|
|
299
|
-
interface RpcRequest<T extends string, U> extends RpcBase {
|
|
300
|
-
method: T;
|
|
301
|
-
params: U;
|
|
302
|
-
}
|
|
303
|
-
interface MethodParamsAndResult<TParams, TResult> {
|
|
304
|
-
params: TParams;
|
|
305
|
-
result: TResult;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* @enum {number} RpcErrorCode
|
|
309
|
-
* @description JSON-RPC error codes
|
|
310
|
-
* @see https://www.jsonrpc.org/specification#error_object
|
|
311
|
-
*/
|
|
312
|
-
declare enum RpcErrorCode {
|
|
313
|
-
/**
|
|
314
|
-
* Parse error Invalid JSON
|
|
315
|
-
**/
|
|
316
|
-
PARSE_ERROR = -32700,
|
|
317
|
-
/**
|
|
318
|
-
* The JSON sent is not a valid Request object.
|
|
319
|
-
**/
|
|
320
|
-
INVALID_REQUEST = -32600,
|
|
321
|
-
/**
|
|
322
|
-
* The method does not exist/is not available.
|
|
323
|
-
**/
|
|
324
|
-
METHOD_NOT_FOUND = -32601,
|
|
325
|
-
/**
|
|
326
|
-
* Invalid method parameter(s).
|
|
327
|
-
*/
|
|
328
|
-
INVALID_PARAMS = -32602,
|
|
329
|
-
/**
|
|
330
|
-
* Internal JSON-RPC error.
|
|
331
|
-
* This is a generic error, used when the server encounters an error in performing the request.
|
|
332
|
-
**/
|
|
333
|
-
INTERNAL_ERROR = -32603,
|
|
334
|
-
/**
|
|
335
|
-
* user rejected/canceled the request
|
|
336
|
-
*/
|
|
337
|
-
USER_REJECTION = -32000,
|
|
338
|
-
/**
|
|
339
|
-
* method is not supported for the address provided
|
|
340
|
-
*/
|
|
341
|
-
METHOD_NOT_SUPPORTED = -32001,
|
|
342
|
-
/**
|
|
343
|
-
* The client does not have permission to access the requested resource.
|
|
344
|
-
*/
|
|
345
|
-
ACCESS_DENIED = -32002
|
|
346
|
-
}
|
|
347
|
-
declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
|
|
348
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
349
|
-
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
350
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
351
|
-
}, undefined>;
|
|
352
|
-
type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
|
|
353
|
-
declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
|
|
354
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
355
|
-
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
356
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
357
|
-
}, undefined>;
|
|
358
|
-
type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
|
|
359
|
-
declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
360
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
361
|
-
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
362
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
363
|
-
}, undefined>, v.ObjectSchema<{
|
|
364
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
365
|
-
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
366
|
-
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
367
|
-
}, undefined>], undefined>;
|
|
368
|
-
type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
|
|
369
|
-
interface RpcError {
|
|
370
|
-
code: number | RpcErrorCode;
|
|
371
|
-
message: string;
|
|
372
|
-
data?: any;
|
|
373
|
-
}
|
|
374
|
-
interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
|
|
375
|
-
error: TError;
|
|
376
|
-
}
|
|
377
|
-
interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
|
|
378
|
-
result: Return<Method>;
|
|
379
|
-
}
|
|
380
|
-
type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
|
|
381
|
-
type RpcResult<Method extends keyof Requests> = {
|
|
382
|
-
result: RpcSuccessResponse<Method>['result'];
|
|
383
|
-
status: 'success';
|
|
384
|
-
} | {
|
|
385
|
-
error: RpcErrorResponse['error'];
|
|
386
|
-
status: 'error';
|
|
387
|
-
};
|
|
388
|
-
|
|
389
397
|
declare const getInfoMethodName = "getInfo";
|
|
390
398
|
declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
391
399
|
type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
|
|
@@ -432,21 +440,19 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
432
440
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
433
441
|
readonly address: v.StringSchema<undefined>;
|
|
434
442
|
readonly publicKey: v.StringSchema<undefined>;
|
|
435
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
436
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
437
|
-
*/
|
|
443
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
438
444
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
439
445
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
440
446
|
}, undefined>, undefined>;
|
|
441
447
|
readonly network: v.ObjectSchema<{
|
|
442
448
|
readonly bitcoin: v.ObjectSchema<{
|
|
443
|
-
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
444
|
-
* The purposes for which to generate addresses. See
|
|
445
|
-
* {@linkcode AddressPurpose} for available purposes.
|
|
446
|
-
*/
|
|
449
|
+
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
447
450
|
}, undefined>;
|
|
448
451
|
readonly stacks: v.ObjectSchema<{
|
|
449
|
-
readonly name: v.
|
|
452
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
453
|
+
}, undefined>;
|
|
454
|
+
readonly spark: v.ObjectSchema<{
|
|
455
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
450
456
|
}, undefined>;
|
|
451
457
|
}, undefined>;
|
|
452
458
|
}, undefined>;
|
|
@@ -633,9 +639,7 @@ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
633
639
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
634
640
|
readonly address: v.StringSchema<undefined>;
|
|
635
641
|
readonly publicKey: v.StringSchema<undefined>;
|
|
636
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
637
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
638
|
-
*/
|
|
642
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
639
643
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
640
644
|
}, undefined>, undefined>;
|
|
641
645
|
type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
|
|
@@ -1005,6 +1009,164 @@ declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
|
|
|
1005
1009
|
type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
|
|
1006
1010
|
type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
|
|
1007
1011
|
|
|
1012
|
+
declare const sparkGetAddressesMethodName = "spark_getAddresses";
|
|
1013
|
+
declare const sparkGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1014
|
+
/**
|
|
1015
|
+
* A message to be displayed to the user in the request prompt.
|
|
1016
|
+
*/
|
|
1017
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1018
|
+
}, undefined>, undefined>;
|
|
1019
|
+
type SparkGetAddressesParams = v.InferOutput<typeof sparkGetAddressesParamsSchema>;
|
|
1020
|
+
declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
1021
|
+
/**
|
|
1022
|
+
* The addresses generated for the given purposes.
|
|
1023
|
+
*/
|
|
1024
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1025
|
+
readonly address: v.StringSchema<undefined>;
|
|
1026
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
1027
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1028
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1029
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1030
|
+
}, undefined>, undefined>;
|
|
1031
|
+
readonly network: v.ObjectSchema<{
|
|
1032
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1033
|
+
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1034
|
+
}, undefined>;
|
|
1035
|
+
readonly stacks: v.ObjectSchema<{
|
|
1036
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1037
|
+
}, undefined>;
|
|
1038
|
+
readonly spark: v.ObjectSchema<{
|
|
1039
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1040
|
+
}, undefined>;
|
|
1041
|
+
}, undefined>;
|
|
1042
|
+
}, undefined>;
|
|
1043
|
+
type SparkGetAddressesResult = v.InferOutput<typeof sparkGetAddressesResultSchema>;
|
|
1044
|
+
declare const sparkGetAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
1045
|
+
readonly method: v.LiteralSchema<"spark_getAddresses", undefined>;
|
|
1046
|
+
readonly params: v.NullishSchema<v.ObjectSchema<{
|
|
1047
|
+
/**
|
|
1048
|
+
* A message to be displayed to the user in the request prompt.
|
|
1049
|
+
*/
|
|
1050
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1051
|
+
}, undefined>, undefined>;
|
|
1052
|
+
readonly id: v.StringSchema<undefined>;
|
|
1053
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1054
|
+
}, undefined>;
|
|
1055
|
+
type SparkGetAddressesRequestMessage = v.InferOutput<typeof sparkGetAddressesRequestMessageSchema>;
|
|
1056
|
+
type SparkGetAddresses = MethodParamsAndResult<v.InferOutput<typeof sparkGetAddressesParamsSchema>, v.InferOutput<typeof sparkGetAddressesResultSchema>>;
|
|
1057
|
+
|
|
1058
|
+
declare const sparkGetBalanceMethodName = "spark_getBalance";
|
|
1059
|
+
declare const sparkGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1060
|
+
type SparkGetBalanceParams = v.InferOutput<typeof sparkGetBalanceParamsSchema>;
|
|
1061
|
+
declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
|
|
1062
|
+
/**
|
|
1063
|
+
* The Spark Bitcoin address balance in sats in string form.
|
|
1064
|
+
*/
|
|
1065
|
+
readonly balance: v.StringSchema<undefined>;
|
|
1066
|
+
readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
|
|
1067
|
+
readonly balance: v.StringSchema<undefined>;
|
|
1068
|
+
readonly tokenMetadata: v.ObjectSchema<{
|
|
1069
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1070
|
+
readonly tokenPublicKey: v.StringSchema<undefined>;
|
|
1071
|
+
readonly tokenName: v.StringSchema<undefined>;
|
|
1072
|
+
readonly tokenTicker: v.StringSchema<undefined>;
|
|
1073
|
+
readonly decimals: v.NumberSchema<undefined>;
|
|
1074
|
+
readonly maxSupply: v.StringSchema<undefined>;
|
|
1075
|
+
}, undefined>;
|
|
1076
|
+
}, undefined>, undefined>;
|
|
1077
|
+
}, undefined>;
|
|
1078
|
+
type SparkGetBalanceResult = v.InferOutput<typeof sparkGetBalanceResultSchema>;
|
|
1079
|
+
declare const sparkGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
1080
|
+
readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
|
|
1081
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1082
|
+
readonly id: v.StringSchema<undefined>;
|
|
1083
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1084
|
+
}, undefined>;
|
|
1085
|
+
type SparkGetBalanceRequestMessage = v.InferOutput<typeof sparkGetBalanceRequestMessageSchema>;
|
|
1086
|
+
type SparkGetBalance = MethodParamsAndResult<SparkGetBalanceParams, SparkGetBalanceResult>;
|
|
1087
|
+
|
|
1088
|
+
declare const sparkTransferMethodName = "spark_transfer";
|
|
1089
|
+
declare const sparkTransferParamsSchema: v.ObjectSchema<{
|
|
1090
|
+
/**
|
|
1091
|
+
* Amount of SATS to transfer as a string or number.
|
|
1092
|
+
*/
|
|
1093
|
+
readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1094
|
+
/**
|
|
1095
|
+
* The recipient's spark address.
|
|
1096
|
+
*/
|
|
1097
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1098
|
+
}, undefined>;
|
|
1099
|
+
type SparkTransferParams = v.InferOutput<typeof sparkTransferParamsSchema>;
|
|
1100
|
+
declare const sparkTransferResultSchema: v.ObjectSchema<{
|
|
1101
|
+
/**
|
|
1102
|
+
* The ID of the transaction.
|
|
1103
|
+
*/
|
|
1104
|
+
readonly id: v.StringSchema<undefined>;
|
|
1105
|
+
}, undefined>;
|
|
1106
|
+
type SparkTransferResult = v.InferOutput<typeof sparkTransferResultSchema>;
|
|
1107
|
+
declare const sparkTransferRequestMessageSchema: v.ObjectSchema<{
|
|
1108
|
+
readonly method: v.LiteralSchema<"spark_transfer", undefined>;
|
|
1109
|
+
readonly params: v.ObjectSchema<{
|
|
1110
|
+
/**
|
|
1111
|
+
* Amount of SATS to transfer as a string or number.
|
|
1112
|
+
*/
|
|
1113
|
+
readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1114
|
+
/**
|
|
1115
|
+
* The recipient's spark address.
|
|
1116
|
+
*/
|
|
1117
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1118
|
+
}, undefined>;
|
|
1119
|
+
readonly id: v.StringSchema<undefined>;
|
|
1120
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1121
|
+
}, undefined>;
|
|
1122
|
+
type SparkTransferRequestMessage = v.InferOutput<typeof sparkTransferRequestMessageSchema>;
|
|
1123
|
+
type SparkTransfer = MethodParamsAndResult<SparkTransferParams, SparkTransferResult>;
|
|
1124
|
+
|
|
1125
|
+
declare const sparkTransferTokenMethodName = "spark_transferToken";
|
|
1126
|
+
declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
|
|
1127
|
+
/**
|
|
1128
|
+
* Amount of units of the token to transfer as a string or number.
|
|
1129
|
+
*/
|
|
1130
|
+
readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1131
|
+
/**
|
|
1132
|
+
* The token identifier.
|
|
1133
|
+
*/
|
|
1134
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1135
|
+
/**
|
|
1136
|
+
* The recipient's spark address.
|
|
1137
|
+
*/
|
|
1138
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1139
|
+
}, undefined>;
|
|
1140
|
+
type SparkTransferTokenParams = v.InferOutput<typeof sparkTransferTokenParamsSchema>;
|
|
1141
|
+
declare const sparkTransferTokenResultSchema: v.ObjectSchema<{
|
|
1142
|
+
/**
|
|
1143
|
+
* The ID of the transaction.
|
|
1144
|
+
*/
|
|
1145
|
+
readonly id: v.StringSchema<undefined>;
|
|
1146
|
+
}, undefined>;
|
|
1147
|
+
type SparkTransferTokenResult = v.InferOutput<typeof sparkTransferTokenResultSchema>;
|
|
1148
|
+
declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
|
|
1149
|
+
readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
|
|
1150
|
+
readonly params: v.ObjectSchema<{
|
|
1151
|
+
/**
|
|
1152
|
+
* Amount of units of the token to transfer as a string or number.
|
|
1153
|
+
*/
|
|
1154
|
+
readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1155
|
+
/**
|
|
1156
|
+
* The token identifier.
|
|
1157
|
+
*/
|
|
1158
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1159
|
+
/**
|
|
1160
|
+
* The recipient's spark address.
|
|
1161
|
+
*/
|
|
1162
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1163
|
+
}, undefined>;
|
|
1164
|
+
readonly id: v.StringSchema<undefined>;
|
|
1165
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1166
|
+
}, undefined>;
|
|
1167
|
+
type SparkTransferTokenRequestMessage = v.InferOutput<typeof sparkTransferTokenRequestMessageSchema>;
|
|
1168
|
+
type SparkTransferToken = MethodParamsAndResult<SparkTransferTokenParams, SparkTransferTokenResult>;
|
|
1169
|
+
|
|
1008
1170
|
declare const stxCallContractMethodName = "stx_callContract";
|
|
1009
1171
|
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
1010
1172
|
/**
|
|
@@ -1193,7 +1355,10 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
|
1193
1355
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1194
1356
|
}, undefined>;
|
|
1195
1357
|
readonly stacks: v.ObjectSchema<{
|
|
1196
|
-
readonly name: v.
|
|
1358
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1359
|
+
}, undefined>;
|
|
1360
|
+
readonly spark: v.ObjectSchema<{
|
|
1361
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1197
1362
|
}, undefined>;
|
|
1198
1363
|
}, undefined>;
|
|
1199
1364
|
}, undefined>;
|
|
@@ -1231,7 +1396,10 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1231
1396
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1232
1397
|
}, undefined>;
|
|
1233
1398
|
readonly stacks: v.ObjectSchema<{
|
|
1234
|
-
readonly name: v.
|
|
1399
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1400
|
+
}, undefined>;
|
|
1401
|
+
readonly spark: v.ObjectSchema<{
|
|
1402
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1235
1403
|
}, undefined>;
|
|
1236
1404
|
}, undefined>;
|
|
1237
1405
|
}, undefined>;
|
|
@@ -1435,7 +1603,7 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
|
1435
1603
|
*/
|
|
1436
1604
|
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1437
1605
|
/**
|
|
1438
|
-
* The
|
|
1606
|
+
* The recipient's principal.
|
|
1439
1607
|
*/
|
|
1440
1608
|
readonly recipient: v.StringSchema<undefined>;
|
|
1441
1609
|
/**
|
|
@@ -1498,7 +1666,7 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
|
1498
1666
|
*/
|
|
1499
1667
|
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1500
1668
|
/**
|
|
1501
|
-
* The
|
|
1669
|
+
* The recipient's principal.
|
|
1502
1670
|
*/
|
|
1503
1671
|
readonly recipient: v.StringSchema<undefined>;
|
|
1504
1672
|
/**
|
|
@@ -1706,7 +1874,10 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
|
1706
1874
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1707
1875
|
}, undefined>;
|
|
1708
1876
|
readonly stacks: v.ObjectSchema<{
|
|
1709
|
-
readonly name: v.
|
|
1877
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1878
|
+
}, undefined>;
|
|
1879
|
+
readonly spark: v.ObjectSchema<{
|
|
1880
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1710
1881
|
}, undefined>;
|
|
1711
1882
|
}, undefined>;
|
|
1712
1883
|
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
@@ -1770,7 +1941,10 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1770
1941
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1771
1942
|
}, undefined>;
|
|
1772
1943
|
readonly stacks: v.ObjectSchema<{
|
|
1773
|
-
readonly name: v.
|
|
1944
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1945
|
+
}, undefined>;
|
|
1946
|
+
readonly spark: v.ObjectSchema<{
|
|
1947
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1774
1948
|
}, undefined>;
|
|
1775
1949
|
}, undefined>;
|
|
1776
1950
|
}, undefined>;
|
|
@@ -1818,7 +1992,10 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1818
1992
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1819
1993
|
}, undefined>;
|
|
1820
1994
|
readonly stacks: v.ObjectSchema<{
|
|
1821
|
-
readonly name: v.
|
|
1995
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1996
|
+
}, undefined>;
|
|
1997
|
+
readonly spark: v.ObjectSchema<{
|
|
1998
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1822
1999
|
}, undefined>;
|
|
1823
2000
|
}, undefined>;
|
|
1824
2001
|
}, undefined>;
|
|
@@ -1914,7 +2091,7 @@ declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
|
1914
2091
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1915
2092
|
type WalletType = v.InferOutput<typeof walletTypeSchema>;
|
|
1916
2093
|
|
|
1917
|
-
|
|
2094
|
+
type StxRequests = {
|
|
1918
2095
|
stx_callContract: StxCallContract;
|
|
1919
2096
|
stx_deployContract: StxDeployContract;
|
|
1920
2097
|
stx_getAccounts: StxGetAccounts;
|
|
@@ -1924,9 +2101,16 @@ interface StxRequests {
|
|
|
1924
2101
|
stx_signTransaction: StxSignTransaction;
|
|
1925
2102
|
stx_transferStx: StxTransferStx;
|
|
1926
2103
|
stx_signTransactions: StxSignTransactions;
|
|
1927
|
-
}
|
|
2104
|
+
};
|
|
1928
2105
|
type StxRequestMethod = keyof StxRequests;
|
|
1929
|
-
|
|
2106
|
+
type SparkRequests = {
|
|
2107
|
+
[sparkGetAddressesMethodName]: SparkGetAddresses;
|
|
2108
|
+
[sparkGetBalanceMethodName]: SparkGetBalance;
|
|
2109
|
+
[sparkTransferMethodName]: SparkGetBalance;
|
|
2110
|
+
[sparkTransferTokenMethodName]: SparkTransferToken;
|
|
2111
|
+
};
|
|
2112
|
+
type SparkRequestMethod = keyof SparkRequests;
|
|
2113
|
+
type BtcRequests = {
|
|
1930
2114
|
getInfo: GetInfo;
|
|
1931
2115
|
getAddresses: GetAddresses;
|
|
1932
2116
|
getAccounts: GetAccounts;
|
|
@@ -1934,9 +2118,9 @@ interface BtcRequests {
|
|
|
1934
2118
|
signMessage: SignMessage;
|
|
1935
2119
|
sendTransfer: SendTransfer;
|
|
1936
2120
|
signPsbt: SignPsbt;
|
|
1937
|
-
}
|
|
2121
|
+
};
|
|
1938
2122
|
type BtcRequestMethod = keyof BtcRequests;
|
|
1939
|
-
|
|
2123
|
+
type RunesRequests = {
|
|
1940
2124
|
runes_estimateEtch: RunesEstimateEtch;
|
|
1941
2125
|
runes_estimateMint: RunesEstimateMint;
|
|
1942
2126
|
runes_estimateRbfOrder: RunesEstimateRbfOrder;
|
|
@@ -1946,14 +2130,14 @@ interface RunesRequests {
|
|
|
1946
2130
|
runes_mint: RunesMint;
|
|
1947
2131
|
runes_rbfOrder: RunesRbfOrder;
|
|
1948
2132
|
runes_transfer: RunesTransfer;
|
|
1949
|
-
}
|
|
2133
|
+
};
|
|
1950
2134
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1951
|
-
|
|
2135
|
+
type OrdinalsRequests = {
|
|
1952
2136
|
ord_getInscriptions: GetInscriptions;
|
|
1953
2137
|
ord_sendInscriptions: SendInscriptions;
|
|
1954
|
-
}
|
|
2138
|
+
};
|
|
1955
2139
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1956
|
-
|
|
2140
|
+
type WalletRequests = {
|
|
1957
2141
|
wallet_addNetwork: AddNetwork;
|
|
1958
2142
|
wallet_changeNetwork: ChangeNetwork;
|
|
1959
2143
|
wallet_changeNetworkById: ChangeNetworkById;
|
|
@@ -1965,13 +2149,29 @@ interface WalletRequests {
|
|
|
1965
2149
|
wallet_getWalletType: GetWalletType;
|
|
1966
2150
|
wallet_renouncePermissions: RenouncePermissions;
|
|
1967
2151
|
wallet_requestPermissions: RequestPermissions;
|
|
1968
|
-
}
|
|
1969
|
-
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
2152
|
+
};
|
|
2153
|
+
type Requests = BtcRequests & StxRequests & SparkRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1970
2154
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
1971
2155
|
type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
|
|
1972
2156
|
|
|
1973
|
-
declare const request: <Method extends keyof
|
|
1974
|
-
|
|
2157
|
+
declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
|
|
2158
|
+
/**
|
|
2159
|
+
* The providerId is the object path to the provider in the window object.
|
|
2160
|
+
* E.g., a provider available at `window.Foo.BarProvider` would have a
|
|
2161
|
+
* providerId of `Foo.BarProvider`.
|
|
2162
|
+
*/
|
|
2163
|
+
providerId?: string) => Promise<RpcResult<Method>>;
|
|
2164
|
+
/**
|
|
2165
|
+
* Adds an event listener.
|
|
2166
|
+
*
|
|
2167
|
+
* Currently expects 2 arguments, although is also capable of handling legacy
|
|
2168
|
+
* calls with 3 arguments consisting of:
|
|
2169
|
+
*
|
|
2170
|
+
* - event name (string)
|
|
2171
|
+
* - callback (function)
|
|
2172
|
+
* - provider ID (optional string)
|
|
2173
|
+
*/
|
|
2174
|
+
declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
|
|
1975
2175
|
|
|
1976
2176
|
declare abstract class SatsConnectAdapter {
|
|
1977
2177
|
abstract readonly id: string;
|
|
@@ -1990,11 +2190,11 @@ declare abstract class SatsConnectAdapter {
|
|
|
1990
2190
|
declare class BaseAdapter extends SatsConnectAdapter {
|
|
1991
2191
|
id: string;
|
|
1992
2192
|
constructor(providerId: string);
|
|
1993
|
-
requestInternal: <Method extends keyof
|
|
2193
|
+
requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
|
|
1994
2194
|
addListener: AddListener;
|
|
1995
2195
|
}
|
|
1996
2196
|
|
|
1997
2197
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1998
2198
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1999
2199
|
|
|
2000
|
-
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 };
|
|
2200
|
+
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, type SparkGetAddresses, type SparkGetAddressesParams, type SparkGetAddressesRequestMessage, type SparkGetAddressesResult, type SparkGetBalance, type SparkGetBalanceParams, type SparkGetBalanceRequestMessage, type SparkGetBalanceResult, SparkNetworkType, type SparkRequestMethod, type SparkRequests, type SparkTransfer, type SparkTransferParams, type SparkTransferRequestMessage, type SparkTransferResult, type SparkTransferToken, type SparkTransferTokenParams, type SparkTransferTokenRequestMessage, type SparkTransferTokenResult, 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, sparkGetAddressesMethodName, sparkGetAddressesParamsSchema, sparkGetAddressesRequestMessageSchema, sparkGetAddressesResultSchema, sparkGetBalanceMethodName, sparkGetBalanceParamsSchema, sparkGetBalanceRequestMessageSchema, sparkGetBalanceResultSchema, sparkTransferMethodName, sparkTransferParamsSchema, sparkTransferRequestMessageSchema, sparkTransferResultSchema, sparkTransferTokenMethodName, sparkTransferTokenParamsSchema, sparkTransferTokenRequestMessageSchema, sparkTransferTokenResultSchema, 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 };
|