@sats-connect/core 0.7.0 → 0.7.1-3ab7f7d
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 +365 -166
- package/dist/index.d.ts +365 -166
- package/dist/index.js +928 -733
- package/dist/index.mjs +908 -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,163 @@ 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 tokenPublicKey: v.StringSchema<undefined>;
|
|
1070
|
+
readonly tokenName: v.StringSchema<undefined>;
|
|
1071
|
+
readonly tokenTicker: v.StringSchema<undefined>;
|
|
1072
|
+
readonly decimals: v.NumberSchema<undefined>;
|
|
1073
|
+
readonly maxSupply: v.StringSchema<undefined>;
|
|
1074
|
+
}, undefined>;
|
|
1075
|
+
}, undefined>, undefined>;
|
|
1076
|
+
}, undefined>;
|
|
1077
|
+
type SparkGetBalanceResult = v.InferOutput<typeof sparkGetBalanceResultSchema>;
|
|
1078
|
+
declare const sparkGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
1079
|
+
readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
|
|
1080
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1081
|
+
readonly id: v.StringSchema<undefined>;
|
|
1082
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1083
|
+
}, undefined>;
|
|
1084
|
+
type SparkGetBalanceRequestMessage = v.InferOutput<typeof sparkGetBalanceRequestMessageSchema>;
|
|
1085
|
+
type SparkGetBalance = MethodParamsAndResult<SparkGetBalanceParams, SparkGetBalanceResult>;
|
|
1086
|
+
|
|
1087
|
+
declare const sparkTransferMethodName = "spark_transfer";
|
|
1088
|
+
declare const sparkTransferParamsSchema: v.ObjectSchema<{
|
|
1089
|
+
/**
|
|
1090
|
+
* Amount of SATS to transfer as a string or number.
|
|
1091
|
+
*/
|
|
1092
|
+
readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1093
|
+
/**
|
|
1094
|
+
* The recipient's spark address.
|
|
1095
|
+
*/
|
|
1096
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1097
|
+
}, undefined>;
|
|
1098
|
+
type SparkTransferParams = v.InferOutput<typeof sparkTransferParamsSchema>;
|
|
1099
|
+
declare const sparkTransferResultSchema: v.ObjectSchema<{
|
|
1100
|
+
/**
|
|
1101
|
+
* The ID of the transaction.
|
|
1102
|
+
*/
|
|
1103
|
+
readonly id: v.StringSchema<undefined>;
|
|
1104
|
+
}, undefined>;
|
|
1105
|
+
type SparkTransferResult = v.InferOutput<typeof sparkTransferResultSchema>;
|
|
1106
|
+
declare const sparkTransferRequestMessageSchema: v.ObjectSchema<{
|
|
1107
|
+
readonly method: v.LiteralSchema<"spark_transfer", undefined>;
|
|
1108
|
+
readonly params: v.ObjectSchema<{
|
|
1109
|
+
/**
|
|
1110
|
+
* Amount of SATS to transfer as a string or number.
|
|
1111
|
+
*/
|
|
1112
|
+
readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1113
|
+
/**
|
|
1114
|
+
* The recipient's spark address.
|
|
1115
|
+
*/
|
|
1116
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1117
|
+
}, undefined>;
|
|
1118
|
+
readonly id: v.StringSchema<undefined>;
|
|
1119
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1120
|
+
}, undefined>;
|
|
1121
|
+
type SparkTransferRequestMessage = v.InferOutput<typeof sparkTransferRequestMessageSchema>;
|
|
1122
|
+
type SparkTransfer = MethodParamsAndResult<SparkTransferParams, SparkTransferResult>;
|
|
1123
|
+
|
|
1124
|
+
declare const sparkTransferTokenMethodName = "spark_transferToken";
|
|
1125
|
+
declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
|
|
1126
|
+
/**
|
|
1127
|
+
* Amount of units of the token to transfer as a string or number.
|
|
1128
|
+
*/
|
|
1129
|
+
readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1130
|
+
/**
|
|
1131
|
+
* The token identifier.
|
|
1132
|
+
*/
|
|
1133
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1134
|
+
/**
|
|
1135
|
+
* The recipient's spark address.
|
|
1136
|
+
*/
|
|
1137
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1138
|
+
}, undefined>;
|
|
1139
|
+
type SparkTransferTokenParams = v.InferOutput<typeof sparkTransferTokenParamsSchema>;
|
|
1140
|
+
declare const sparkTransferTokenResultSchema: v.ObjectSchema<{
|
|
1141
|
+
/**
|
|
1142
|
+
* The ID of the transaction.
|
|
1143
|
+
*/
|
|
1144
|
+
readonly id: v.StringSchema<undefined>;
|
|
1145
|
+
}, undefined>;
|
|
1146
|
+
type SparkTransferTokenResult = v.InferOutput<typeof sparkTransferTokenResultSchema>;
|
|
1147
|
+
declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
|
|
1148
|
+
readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
|
|
1149
|
+
readonly params: v.ObjectSchema<{
|
|
1150
|
+
/**
|
|
1151
|
+
* Amount of units of the token to transfer as a string or number.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1154
|
+
/**
|
|
1155
|
+
* The token identifier.
|
|
1156
|
+
*/
|
|
1157
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1158
|
+
/**
|
|
1159
|
+
* The recipient's spark address.
|
|
1160
|
+
*/
|
|
1161
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1162
|
+
}, undefined>;
|
|
1163
|
+
readonly id: v.StringSchema<undefined>;
|
|
1164
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1165
|
+
}, undefined>;
|
|
1166
|
+
type SparkTransferTokenRequestMessage = v.InferOutput<typeof sparkTransferTokenRequestMessageSchema>;
|
|
1167
|
+
type SparkTransferToken = MethodParamsAndResult<SparkTransferTokenParams, SparkTransferTokenResult>;
|
|
1168
|
+
|
|
1008
1169
|
declare const stxCallContractMethodName = "stx_callContract";
|
|
1009
1170
|
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
1010
1171
|
/**
|
|
@@ -1193,7 +1354,10 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
|
1193
1354
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1194
1355
|
}, undefined>;
|
|
1195
1356
|
readonly stacks: v.ObjectSchema<{
|
|
1196
|
-
readonly name: v.
|
|
1357
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1358
|
+
}, undefined>;
|
|
1359
|
+
readonly spark: v.ObjectSchema<{
|
|
1360
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1197
1361
|
}, undefined>;
|
|
1198
1362
|
}, undefined>;
|
|
1199
1363
|
}, undefined>;
|
|
@@ -1231,7 +1395,10 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1231
1395
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1232
1396
|
}, undefined>;
|
|
1233
1397
|
readonly stacks: v.ObjectSchema<{
|
|
1234
|
-
readonly name: v.
|
|
1398
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1399
|
+
}, undefined>;
|
|
1400
|
+
readonly spark: v.ObjectSchema<{
|
|
1401
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1235
1402
|
}, undefined>;
|
|
1236
1403
|
}, undefined>;
|
|
1237
1404
|
}, undefined>;
|
|
@@ -1435,7 +1602,7 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
|
1435
1602
|
*/
|
|
1436
1603
|
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1437
1604
|
/**
|
|
1438
|
-
* The
|
|
1605
|
+
* The recipient's principal.
|
|
1439
1606
|
*/
|
|
1440
1607
|
readonly recipient: v.StringSchema<undefined>;
|
|
1441
1608
|
/**
|
|
@@ -1498,7 +1665,7 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
|
1498
1665
|
*/
|
|
1499
1666
|
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1500
1667
|
/**
|
|
1501
|
-
* The
|
|
1668
|
+
* The recipient's principal.
|
|
1502
1669
|
*/
|
|
1503
1670
|
readonly recipient: v.StringSchema<undefined>;
|
|
1504
1671
|
/**
|
|
@@ -1706,7 +1873,10 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
|
1706
1873
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1707
1874
|
}, undefined>;
|
|
1708
1875
|
readonly stacks: v.ObjectSchema<{
|
|
1709
|
-
readonly name: v.
|
|
1876
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1877
|
+
}, undefined>;
|
|
1878
|
+
readonly spark: v.ObjectSchema<{
|
|
1879
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1710
1880
|
}, undefined>;
|
|
1711
1881
|
}, undefined>;
|
|
1712
1882
|
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
@@ -1770,7 +1940,10 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1770
1940
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1771
1941
|
}, undefined>;
|
|
1772
1942
|
readonly stacks: v.ObjectSchema<{
|
|
1773
|
-
readonly name: v.
|
|
1943
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1944
|
+
}, undefined>;
|
|
1945
|
+
readonly spark: v.ObjectSchema<{
|
|
1946
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1774
1947
|
}, undefined>;
|
|
1775
1948
|
}, undefined>;
|
|
1776
1949
|
}, undefined>;
|
|
@@ -1818,7 +1991,10 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1818
1991
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1819
1992
|
}, undefined>;
|
|
1820
1993
|
readonly stacks: v.ObjectSchema<{
|
|
1821
|
-
readonly name: v.
|
|
1994
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1995
|
+
}, undefined>;
|
|
1996
|
+
readonly spark: v.ObjectSchema<{
|
|
1997
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1822
1998
|
}, undefined>;
|
|
1823
1999
|
}, undefined>;
|
|
1824
2000
|
}, undefined>;
|
|
@@ -1914,7 +2090,7 @@ declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
|
1914
2090
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1915
2091
|
type WalletType = v.InferOutput<typeof walletTypeSchema>;
|
|
1916
2092
|
|
|
1917
|
-
|
|
2093
|
+
type StxRequests = {
|
|
1918
2094
|
stx_callContract: StxCallContract;
|
|
1919
2095
|
stx_deployContract: StxDeployContract;
|
|
1920
2096
|
stx_getAccounts: StxGetAccounts;
|
|
@@ -1924,9 +2100,16 @@ interface StxRequests {
|
|
|
1924
2100
|
stx_signTransaction: StxSignTransaction;
|
|
1925
2101
|
stx_transferStx: StxTransferStx;
|
|
1926
2102
|
stx_signTransactions: StxSignTransactions;
|
|
1927
|
-
}
|
|
2103
|
+
};
|
|
1928
2104
|
type StxRequestMethod = keyof StxRequests;
|
|
1929
|
-
|
|
2105
|
+
type SparkRequests = {
|
|
2106
|
+
[sparkGetAddressesMethodName]: SparkGetAddresses;
|
|
2107
|
+
[sparkGetBalanceMethodName]: SparkGetBalance;
|
|
2108
|
+
[sparkTransferMethodName]: SparkGetBalance;
|
|
2109
|
+
[sparkTransferTokenMethodName]: SparkTransferToken;
|
|
2110
|
+
};
|
|
2111
|
+
type SparkRequestMethod = keyof SparkRequests;
|
|
2112
|
+
type BtcRequests = {
|
|
1930
2113
|
getInfo: GetInfo;
|
|
1931
2114
|
getAddresses: GetAddresses;
|
|
1932
2115
|
getAccounts: GetAccounts;
|
|
@@ -1934,9 +2117,9 @@ interface BtcRequests {
|
|
|
1934
2117
|
signMessage: SignMessage;
|
|
1935
2118
|
sendTransfer: SendTransfer;
|
|
1936
2119
|
signPsbt: SignPsbt;
|
|
1937
|
-
}
|
|
2120
|
+
};
|
|
1938
2121
|
type BtcRequestMethod = keyof BtcRequests;
|
|
1939
|
-
|
|
2122
|
+
type RunesRequests = {
|
|
1940
2123
|
runes_estimateEtch: RunesEstimateEtch;
|
|
1941
2124
|
runes_estimateMint: RunesEstimateMint;
|
|
1942
2125
|
runes_estimateRbfOrder: RunesEstimateRbfOrder;
|
|
@@ -1946,14 +2129,14 @@ interface RunesRequests {
|
|
|
1946
2129
|
runes_mint: RunesMint;
|
|
1947
2130
|
runes_rbfOrder: RunesRbfOrder;
|
|
1948
2131
|
runes_transfer: RunesTransfer;
|
|
1949
|
-
}
|
|
2132
|
+
};
|
|
1950
2133
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1951
|
-
|
|
2134
|
+
type OrdinalsRequests = {
|
|
1952
2135
|
ord_getInscriptions: GetInscriptions;
|
|
1953
2136
|
ord_sendInscriptions: SendInscriptions;
|
|
1954
|
-
}
|
|
2137
|
+
};
|
|
1955
2138
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1956
|
-
|
|
2139
|
+
type WalletRequests = {
|
|
1957
2140
|
wallet_addNetwork: AddNetwork;
|
|
1958
2141
|
wallet_changeNetwork: ChangeNetwork;
|
|
1959
2142
|
wallet_changeNetworkById: ChangeNetworkById;
|
|
@@ -1965,13 +2148,29 @@ interface WalletRequests {
|
|
|
1965
2148
|
wallet_getWalletType: GetWalletType;
|
|
1966
2149
|
wallet_renouncePermissions: RenouncePermissions;
|
|
1967
2150
|
wallet_requestPermissions: RequestPermissions;
|
|
1968
|
-
}
|
|
1969
|
-
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
2151
|
+
};
|
|
2152
|
+
type Requests = BtcRequests & StxRequests & SparkRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1970
2153
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
1971
2154
|
type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
|
|
1972
2155
|
|
|
1973
|
-
declare const request: <Method extends keyof
|
|
1974
|
-
|
|
2156
|
+
declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
|
|
2157
|
+
/**
|
|
2158
|
+
* The providerId is the object path to the provider in the window object.
|
|
2159
|
+
* E.g., a provider available at `window.Foo.BarProvider` would have a
|
|
2160
|
+
* providerId of `Foo.BarProvider`.
|
|
2161
|
+
*/
|
|
2162
|
+
providerId?: string) => Promise<RpcResult<Method>>;
|
|
2163
|
+
/**
|
|
2164
|
+
* Adds an event listener.
|
|
2165
|
+
*
|
|
2166
|
+
* Currently expects 2 arguments, although is also capable of handling legacy
|
|
2167
|
+
* calls with 3 arguments consisting of:
|
|
2168
|
+
*
|
|
2169
|
+
* - event name (string)
|
|
2170
|
+
* - callback (function)
|
|
2171
|
+
* - provider ID (optional string)
|
|
2172
|
+
*/
|
|
2173
|
+
declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
|
|
1975
2174
|
|
|
1976
2175
|
declare abstract class SatsConnectAdapter {
|
|
1977
2176
|
abstract readonly id: string;
|
|
@@ -1990,11 +2189,11 @@ declare abstract class SatsConnectAdapter {
|
|
|
1990
2189
|
declare class BaseAdapter extends SatsConnectAdapter {
|
|
1991
2190
|
id: string;
|
|
1992
2191
|
constructor(providerId: string);
|
|
1993
|
-
requestInternal: <Method extends keyof
|
|
2192
|
+
requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
|
|
1994
2193
|
addListener: AddListener;
|
|
1995
2194
|
}
|
|
1996
2195
|
|
|
1997
2196
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1998
2197
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1999
2198
|
|
|
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 };
|
|
2199
|
+
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 };
|