@sats-connect/core 0.7.0 → 0.7.1-07f514f
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 +385 -177
- package/dist/index.d.ts +385 -177
- package/dist/index.js +930 -734
- package/dist/index.mjs +910 -731
- 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,16 +152,26 @@ 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
|
}
|
|
159
|
+
type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
|
|
160
|
+
type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
|
|
20
161
|
declare const addressSchema: v.ObjectSchema<{
|
|
21
162
|
readonly address: v.StringSchema<undefined>;
|
|
22
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
163
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
23
164
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
24
165
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
25
166
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
26
167
|
}, undefined>;
|
|
27
|
-
type Address = v.InferOutput<typeof addressSchema
|
|
168
|
+
type Address = v.InferOutput<typeof addressSchema> & ({
|
|
169
|
+
purpose: AddressWithPublicKey;
|
|
170
|
+
publicKey: string;
|
|
171
|
+
} | {
|
|
172
|
+
purpose: AddressWithoutPublicKey;
|
|
173
|
+
publicKey?: undefined;
|
|
174
|
+
});
|
|
28
175
|
interface GetAddressResponse {
|
|
29
176
|
addresses: Address[];
|
|
30
177
|
}
|
|
@@ -134,7 +281,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
|
|
|
134
281
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
135
282
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
136
283
|
readonly address: v.StringSchema<undefined>;
|
|
137
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
284
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
138
285
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
139
286
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
140
287
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -152,7 +299,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
152
299
|
}, undefined>;
|
|
153
300
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
154
301
|
readonly address: v.StringSchema<undefined>;
|
|
155
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
302
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
156
303
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
157
304
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
158
305
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -168,7 +315,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
168
315
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
169
316
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
170
317
|
readonly address: v.StringSchema<undefined>;
|
|
171
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
318
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
172
319
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
173
320
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
174
321
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -183,7 +330,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
183
330
|
}, undefined>;
|
|
184
331
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
185
332
|
readonly address: v.StringSchema<undefined>;
|
|
186
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
333
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
187
334
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
188
335
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
189
336
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -255,137 +402,6 @@ declare function getDefaultProvider(): string | null;
|
|
|
255
402
|
declare function removeDefaultProvider(): void;
|
|
256
403
|
declare function getSupportedWallets(): SupportedWallet[];
|
|
257
404
|
|
|
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
405
|
declare const getInfoMethodName = "getInfo";
|
|
390
406
|
declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
391
407
|
type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
|
|
@@ -431,22 +447,20 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
431
447
|
*/
|
|
432
448
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
433
449
|
readonly address: v.StringSchema<undefined>;
|
|
434
|
-
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
|
-
*/
|
|
450
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
451
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
438
452
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
439
453
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
440
454
|
}, undefined>, undefined>;
|
|
441
455
|
readonly network: v.ObjectSchema<{
|
|
442
456
|
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
|
-
*/
|
|
457
|
+
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
447
458
|
}, undefined>;
|
|
448
459
|
readonly stacks: v.ObjectSchema<{
|
|
449
|
-
readonly name: v.
|
|
460
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
461
|
+
}, undefined>;
|
|
462
|
+
readonly spark: v.ObjectSchema<{
|
|
463
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
450
464
|
}, undefined>;
|
|
451
465
|
}, undefined>;
|
|
452
466
|
}, undefined>;
|
|
@@ -632,10 +646,8 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
|
632
646
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
633
647
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
634
648
|
readonly address: v.StringSchema<undefined>;
|
|
635
|
-
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
|
-
*/
|
|
649
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
650
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
639
651
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
640
652
|
}, undefined>, undefined>;
|
|
641
653
|
type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
|
|
@@ -1005,6 +1017,164 @@ declare const runesTransferRequestMessageSchema: v.ObjectSchema<{
|
|
|
1005
1017
|
type RunesTransferRequestMessage = v.InferOutput<typeof runesTransferRequestMessageSchema>;
|
|
1006
1018
|
type RunesTransfer = MethodParamsAndResult<TransferRunesParams, RunesTransferResult>;
|
|
1007
1019
|
|
|
1020
|
+
declare const sparkGetAddressesMethodName = "spark_getAddresses";
|
|
1021
|
+
declare const sparkGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1022
|
+
/**
|
|
1023
|
+
* A message to be displayed to the user in the request prompt.
|
|
1024
|
+
*/
|
|
1025
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1026
|
+
}, undefined>, undefined>;
|
|
1027
|
+
type SparkGetAddressesParams = v.InferOutput<typeof sparkGetAddressesParamsSchema>;
|
|
1028
|
+
declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
1029
|
+
/**
|
|
1030
|
+
* The addresses generated for the given purposes.
|
|
1031
|
+
*/
|
|
1032
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1033
|
+
readonly address: v.StringSchema<undefined>;
|
|
1034
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1035
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1036
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1037
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1038
|
+
}, undefined>, undefined>;
|
|
1039
|
+
readonly network: v.ObjectSchema<{
|
|
1040
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1041
|
+
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1042
|
+
}, undefined>;
|
|
1043
|
+
readonly stacks: v.ObjectSchema<{
|
|
1044
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1045
|
+
}, undefined>;
|
|
1046
|
+
readonly spark: v.ObjectSchema<{
|
|
1047
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1048
|
+
}, undefined>;
|
|
1049
|
+
}, undefined>;
|
|
1050
|
+
}, undefined>;
|
|
1051
|
+
type SparkGetAddressesResult = v.InferOutput<typeof sparkGetAddressesResultSchema>;
|
|
1052
|
+
declare const sparkGetAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
1053
|
+
readonly method: v.LiteralSchema<"spark_getAddresses", undefined>;
|
|
1054
|
+
readonly params: v.NullishSchema<v.ObjectSchema<{
|
|
1055
|
+
/**
|
|
1056
|
+
* A message to be displayed to the user in the request prompt.
|
|
1057
|
+
*/
|
|
1058
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1059
|
+
}, undefined>, undefined>;
|
|
1060
|
+
readonly id: v.StringSchema<undefined>;
|
|
1061
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1062
|
+
}, undefined>;
|
|
1063
|
+
type SparkGetAddressesRequestMessage = v.InferOutput<typeof sparkGetAddressesRequestMessageSchema>;
|
|
1064
|
+
type SparkGetAddresses = MethodParamsAndResult<v.InferOutput<typeof sparkGetAddressesParamsSchema>, v.InferOutput<typeof sparkGetAddressesResultSchema>>;
|
|
1065
|
+
|
|
1066
|
+
declare const sparkGetBalanceMethodName = "spark_getBalance";
|
|
1067
|
+
declare const sparkGetBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1068
|
+
type SparkGetBalanceParams = v.InferOutput<typeof sparkGetBalanceParamsSchema>;
|
|
1069
|
+
declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
|
|
1070
|
+
/**
|
|
1071
|
+
* The Spark Bitcoin address balance in sats in string form.
|
|
1072
|
+
*/
|
|
1073
|
+
readonly balance: v.StringSchema<undefined>;
|
|
1074
|
+
readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
|
|
1075
|
+
readonly balance: v.StringSchema<undefined>;
|
|
1076
|
+
readonly tokenMetadata: v.ObjectSchema<{
|
|
1077
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1078
|
+
readonly tokenPublicKey: v.StringSchema<undefined>;
|
|
1079
|
+
readonly tokenName: v.StringSchema<undefined>;
|
|
1080
|
+
readonly tokenTicker: v.StringSchema<undefined>;
|
|
1081
|
+
readonly decimals: v.NumberSchema<undefined>;
|
|
1082
|
+
readonly maxSupply: v.StringSchema<undefined>;
|
|
1083
|
+
}, undefined>;
|
|
1084
|
+
}, undefined>, undefined>;
|
|
1085
|
+
}, undefined>;
|
|
1086
|
+
type SparkGetBalanceResult = v.InferOutput<typeof sparkGetBalanceResultSchema>;
|
|
1087
|
+
declare const sparkGetBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
1088
|
+
readonly method: v.LiteralSchema<"spark_getBalance", undefined>;
|
|
1089
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
1090
|
+
readonly id: v.StringSchema<undefined>;
|
|
1091
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1092
|
+
}, undefined>;
|
|
1093
|
+
type SparkGetBalanceRequestMessage = v.InferOutput<typeof sparkGetBalanceRequestMessageSchema>;
|
|
1094
|
+
type SparkGetBalance = MethodParamsAndResult<SparkGetBalanceParams, SparkGetBalanceResult>;
|
|
1095
|
+
|
|
1096
|
+
declare const sparkTransferMethodName = "spark_transfer";
|
|
1097
|
+
declare const sparkTransferParamsSchema: v.ObjectSchema<{
|
|
1098
|
+
/**
|
|
1099
|
+
* Amount of SATS to transfer as a string or number.
|
|
1100
|
+
*/
|
|
1101
|
+
readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1102
|
+
/**
|
|
1103
|
+
* The recipient's spark address.
|
|
1104
|
+
*/
|
|
1105
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1106
|
+
}, undefined>;
|
|
1107
|
+
type SparkTransferParams = v.InferOutput<typeof sparkTransferParamsSchema>;
|
|
1108
|
+
declare const sparkTransferResultSchema: v.ObjectSchema<{
|
|
1109
|
+
/**
|
|
1110
|
+
* The ID of the transaction.
|
|
1111
|
+
*/
|
|
1112
|
+
readonly id: v.StringSchema<undefined>;
|
|
1113
|
+
}, undefined>;
|
|
1114
|
+
type SparkTransferResult = v.InferOutput<typeof sparkTransferResultSchema>;
|
|
1115
|
+
declare const sparkTransferRequestMessageSchema: v.ObjectSchema<{
|
|
1116
|
+
readonly method: v.LiteralSchema<"spark_transfer", undefined>;
|
|
1117
|
+
readonly params: v.ObjectSchema<{
|
|
1118
|
+
/**
|
|
1119
|
+
* Amount of SATS to transfer as a string or number.
|
|
1120
|
+
*/
|
|
1121
|
+
readonly amountSats: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1122
|
+
/**
|
|
1123
|
+
* The recipient's spark address.
|
|
1124
|
+
*/
|
|
1125
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1126
|
+
}, undefined>;
|
|
1127
|
+
readonly id: v.StringSchema<undefined>;
|
|
1128
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1129
|
+
}, undefined>;
|
|
1130
|
+
type SparkTransferRequestMessage = v.InferOutput<typeof sparkTransferRequestMessageSchema>;
|
|
1131
|
+
type SparkTransfer = MethodParamsAndResult<SparkTransferParams, SparkTransferResult>;
|
|
1132
|
+
|
|
1133
|
+
declare const sparkTransferTokenMethodName = "spark_transferToken";
|
|
1134
|
+
declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
|
|
1135
|
+
/**
|
|
1136
|
+
* Amount of units of the token to transfer as a string or number.
|
|
1137
|
+
*/
|
|
1138
|
+
readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1139
|
+
/**
|
|
1140
|
+
* The token identifier.
|
|
1141
|
+
*/
|
|
1142
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1143
|
+
/**
|
|
1144
|
+
* The recipient's spark address.
|
|
1145
|
+
*/
|
|
1146
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1147
|
+
}, undefined>;
|
|
1148
|
+
type SparkTransferTokenParams = v.InferOutput<typeof sparkTransferTokenParamsSchema>;
|
|
1149
|
+
declare const sparkTransferTokenResultSchema: v.ObjectSchema<{
|
|
1150
|
+
/**
|
|
1151
|
+
* The ID of the transaction.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly id: v.StringSchema<undefined>;
|
|
1154
|
+
}, undefined>;
|
|
1155
|
+
type SparkTransferTokenResult = v.InferOutput<typeof sparkTransferTokenResultSchema>;
|
|
1156
|
+
declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
|
|
1157
|
+
readonly method: v.LiteralSchema<"spark_transferToken", undefined>;
|
|
1158
|
+
readonly params: v.ObjectSchema<{
|
|
1159
|
+
/**
|
|
1160
|
+
* Amount of units of the token to transfer as a string or number.
|
|
1161
|
+
*/
|
|
1162
|
+
readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1163
|
+
/**
|
|
1164
|
+
* The token identifier.
|
|
1165
|
+
*/
|
|
1166
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1167
|
+
/**
|
|
1168
|
+
* The recipient's spark address.
|
|
1169
|
+
*/
|
|
1170
|
+
readonly receiverSparkAddress: v.StringSchema<undefined>;
|
|
1171
|
+
}, undefined>;
|
|
1172
|
+
readonly id: v.StringSchema<undefined>;
|
|
1173
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1174
|
+
}, undefined>;
|
|
1175
|
+
type SparkTransferTokenRequestMessage = v.InferOutput<typeof sparkTransferTokenRequestMessageSchema>;
|
|
1176
|
+
type SparkTransferToken = MethodParamsAndResult<SparkTransferTokenParams, SparkTransferTokenResult>;
|
|
1177
|
+
|
|
1008
1178
|
declare const stxCallContractMethodName = "stx_callContract";
|
|
1009
1179
|
declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
1010
1180
|
/**
|
|
@@ -1193,7 +1363,10 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
|
1193
1363
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1194
1364
|
}, undefined>;
|
|
1195
1365
|
readonly stacks: v.ObjectSchema<{
|
|
1196
|
-
readonly name: v.
|
|
1366
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1367
|
+
}, undefined>;
|
|
1368
|
+
readonly spark: v.ObjectSchema<{
|
|
1369
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1197
1370
|
}, undefined>;
|
|
1198
1371
|
}, undefined>;
|
|
1199
1372
|
}, undefined>;
|
|
@@ -1221,7 +1394,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1221
1394
|
*/
|
|
1222
1395
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1223
1396
|
readonly address: v.StringSchema<undefined>;
|
|
1224
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1397
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1225
1398
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1226
1399
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1227
1400
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1231,7 +1404,10 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1231
1404
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1232
1405
|
}, undefined>;
|
|
1233
1406
|
readonly stacks: v.ObjectSchema<{
|
|
1234
|
-
readonly name: v.
|
|
1407
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1408
|
+
}, undefined>;
|
|
1409
|
+
readonly spark: v.ObjectSchema<{
|
|
1410
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1235
1411
|
}, undefined>;
|
|
1236
1412
|
}, undefined>;
|
|
1237
1413
|
}, undefined>;
|
|
@@ -1435,7 +1611,7 @@ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
|
|
|
1435
1611
|
*/
|
|
1436
1612
|
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1437
1613
|
/**
|
|
1438
|
-
* The
|
|
1614
|
+
* The recipient's principal.
|
|
1439
1615
|
*/
|
|
1440
1616
|
readonly recipient: v.StringSchema<undefined>;
|
|
1441
1617
|
/**
|
|
@@ -1498,7 +1674,7 @@ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
|
|
|
1498
1674
|
*/
|
|
1499
1675
|
readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
|
|
1500
1676
|
/**
|
|
1501
|
-
* The
|
|
1677
|
+
* The recipient's principal.
|
|
1502
1678
|
*/
|
|
1503
1679
|
readonly recipient: v.StringSchema<undefined>;
|
|
1504
1680
|
/**
|
|
@@ -1706,7 +1882,10 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
|
1706
1882
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1707
1883
|
}, undefined>;
|
|
1708
1884
|
readonly stacks: v.ObjectSchema<{
|
|
1709
|
-
readonly name: v.
|
|
1885
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1886
|
+
}, undefined>;
|
|
1887
|
+
readonly spark: v.ObjectSchema<{
|
|
1888
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1710
1889
|
}, undefined>;
|
|
1711
1890
|
}, undefined>;
|
|
1712
1891
|
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
@@ -1759,7 +1938,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1759
1938
|
readonly id: v.StringSchema<undefined>;
|
|
1760
1939
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1761
1940
|
readonly address: v.StringSchema<undefined>;
|
|
1762
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1941
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1763
1942
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1764
1943
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1765
1944
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1770,7 +1949,10 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1770
1949
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1771
1950
|
}, undefined>;
|
|
1772
1951
|
readonly stacks: v.ObjectSchema<{
|
|
1773
|
-
readonly name: v.
|
|
1952
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1953
|
+
}, undefined>;
|
|
1954
|
+
readonly spark: v.ObjectSchema<{
|
|
1955
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1774
1956
|
}, undefined>;
|
|
1775
1957
|
}, undefined>;
|
|
1776
1958
|
}, undefined>;
|
|
@@ -1807,7 +1989,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1807
1989
|
readonly id: v.StringSchema<undefined>;
|
|
1808
1990
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1809
1991
|
readonly address: v.StringSchema<undefined>;
|
|
1810
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1992
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1811
1993
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1812
1994
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1813
1995
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1818,7 +2000,10 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1818
2000
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1819
2001
|
}, undefined>;
|
|
1820
2002
|
readonly stacks: v.ObjectSchema<{
|
|
1821
|
-
readonly name: v.
|
|
2003
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
2004
|
+
}, undefined>;
|
|
2005
|
+
readonly spark: v.ObjectSchema<{
|
|
2006
|
+
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
1822
2007
|
}, undefined>;
|
|
1823
2008
|
}, undefined>;
|
|
1824
2009
|
}, undefined>;
|
|
@@ -1914,7 +2099,7 @@ declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
|
1914
2099
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1915
2100
|
type WalletType = v.InferOutput<typeof walletTypeSchema>;
|
|
1916
2101
|
|
|
1917
|
-
|
|
2102
|
+
type StxRequests = {
|
|
1918
2103
|
stx_callContract: StxCallContract;
|
|
1919
2104
|
stx_deployContract: StxDeployContract;
|
|
1920
2105
|
stx_getAccounts: StxGetAccounts;
|
|
@@ -1924,9 +2109,16 @@ interface StxRequests {
|
|
|
1924
2109
|
stx_signTransaction: StxSignTransaction;
|
|
1925
2110
|
stx_transferStx: StxTransferStx;
|
|
1926
2111
|
stx_signTransactions: StxSignTransactions;
|
|
1927
|
-
}
|
|
2112
|
+
};
|
|
1928
2113
|
type StxRequestMethod = keyof StxRequests;
|
|
1929
|
-
|
|
2114
|
+
type SparkRequests = {
|
|
2115
|
+
[sparkGetAddressesMethodName]: SparkGetAddresses;
|
|
2116
|
+
[sparkGetBalanceMethodName]: SparkGetBalance;
|
|
2117
|
+
[sparkTransferMethodName]: SparkGetBalance;
|
|
2118
|
+
[sparkTransferTokenMethodName]: SparkTransferToken;
|
|
2119
|
+
};
|
|
2120
|
+
type SparkRequestMethod = keyof SparkRequests;
|
|
2121
|
+
type BtcRequests = {
|
|
1930
2122
|
getInfo: GetInfo;
|
|
1931
2123
|
getAddresses: GetAddresses;
|
|
1932
2124
|
getAccounts: GetAccounts;
|
|
@@ -1934,9 +2126,9 @@ interface BtcRequests {
|
|
|
1934
2126
|
signMessage: SignMessage;
|
|
1935
2127
|
sendTransfer: SendTransfer;
|
|
1936
2128
|
signPsbt: SignPsbt;
|
|
1937
|
-
}
|
|
2129
|
+
};
|
|
1938
2130
|
type BtcRequestMethod = keyof BtcRequests;
|
|
1939
|
-
|
|
2131
|
+
type RunesRequests = {
|
|
1940
2132
|
runes_estimateEtch: RunesEstimateEtch;
|
|
1941
2133
|
runes_estimateMint: RunesEstimateMint;
|
|
1942
2134
|
runes_estimateRbfOrder: RunesEstimateRbfOrder;
|
|
@@ -1946,14 +2138,14 @@ interface RunesRequests {
|
|
|
1946
2138
|
runes_mint: RunesMint;
|
|
1947
2139
|
runes_rbfOrder: RunesRbfOrder;
|
|
1948
2140
|
runes_transfer: RunesTransfer;
|
|
1949
|
-
}
|
|
2141
|
+
};
|
|
1950
2142
|
type RunesRequestMethod = keyof RunesRequests;
|
|
1951
|
-
|
|
2143
|
+
type OrdinalsRequests = {
|
|
1952
2144
|
ord_getInscriptions: GetInscriptions;
|
|
1953
2145
|
ord_sendInscriptions: SendInscriptions;
|
|
1954
|
-
}
|
|
2146
|
+
};
|
|
1955
2147
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1956
|
-
|
|
2148
|
+
type WalletRequests = {
|
|
1957
2149
|
wallet_addNetwork: AddNetwork;
|
|
1958
2150
|
wallet_changeNetwork: ChangeNetwork;
|
|
1959
2151
|
wallet_changeNetworkById: ChangeNetworkById;
|
|
@@ -1965,13 +2157,29 @@ interface WalletRequests {
|
|
|
1965
2157
|
wallet_getWalletType: GetWalletType;
|
|
1966
2158
|
wallet_renouncePermissions: RenouncePermissions;
|
|
1967
2159
|
wallet_requestPermissions: RequestPermissions;
|
|
1968
|
-
}
|
|
1969
|
-
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
2160
|
+
};
|
|
2161
|
+
type Requests = BtcRequests & StxRequests & SparkRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1970
2162
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
|
1971
2163
|
type Params<Method> = Method extends keyof Requests ? Requests[Method]['params'] : never;
|
|
1972
2164
|
|
|
1973
|
-
declare const request: <Method extends keyof
|
|
1974
|
-
|
|
2165
|
+
declare const request: <Method extends keyof Requests>(method: Method, params: Params<Method>,
|
|
2166
|
+
/**
|
|
2167
|
+
* The providerId is the object path to the provider in the window object.
|
|
2168
|
+
* E.g., a provider available at `window.Foo.BarProvider` would have a
|
|
2169
|
+
* providerId of `Foo.BarProvider`.
|
|
2170
|
+
*/
|
|
2171
|
+
providerId?: string) => Promise<RpcResult<Method>>;
|
|
2172
|
+
/**
|
|
2173
|
+
* Adds an event listener.
|
|
2174
|
+
*
|
|
2175
|
+
* Currently expects 2 arguments, although is also capable of handling legacy
|
|
2176
|
+
* calls with 3 arguments consisting of:
|
|
2177
|
+
*
|
|
2178
|
+
* - event name (string)
|
|
2179
|
+
* - callback (function)
|
|
2180
|
+
* - provider ID (optional string)
|
|
2181
|
+
*/
|
|
2182
|
+
declare const addListener: (...rawArgs: unknown[]) => ReturnType<AddListener>;
|
|
1975
2183
|
|
|
1976
2184
|
declare abstract class SatsConnectAdapter {
|
|
1977
2185
|
abstract readonly id: string;
|
|
@@ -1990,11 +2198,11 @@ declare abstract class SatsConnectAdapter {
|
|
|
1990
2198
|
declare class BaseAdapter extends SatsConnectAdapter {
|
|
1991
2199
|
id: string;
|
|
1992
2200
|
constructor(providerId: string);
|
|
1993
|
-
requestInternal: <Method extends keyof
|
|
2201
|
+
requestInternal: <Method extends keyof Requests>(method: Method, params: Params<Method>) => Promise<RpcResult<Method>>;
|
|
1994
2202
|
addListener: AddListener;
|
|
1995
2203
|
}
|
|
1996
2204
|
|
|
1997
2205
|
declare const DefaultAdaptersInfo: Record<string, Provider>;
|
|
1998
2206
|
declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
|
|
1999
2207
|
|
|
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 };
|
|
2208
|
+
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 };
|