@sats-connect/core 0.7.1-8500dcc → 0.7.1-b0a037d
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 +28 -19
- package/dist/index.d.ts +28 -19
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -156,14 +156,22 @@ declare enum AddressType {
|
|
|
156
156
|
starknet = "starknet",
|
|
157
157
|
spark = "spark"
|
|
158
158
|
}
|
|
159
|
+
type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
|
|
160
|
+
type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
|
|
159
161
|
declare const addressSchema: v.ObjectSchema<{
|
|
160
162
|
readonly address: v.StringSchema<undefined>;
|
|
161
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
163
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
162
164
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
163
165
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
164
166
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
165
167
|
}, undefined>;
|
|
166
|
-
type Address = v.InferOutput<typeof addressSchema
|
|
168
|
+
type Address = Exclude<v.InferOutput<typeof addressSchema>, 'purpose' | 'publicKey'> & ({
|
|
169
|
+
purpose: AddressWithPublicKey;
|
|
170
|
+
publicKey: string;
|
|
171
|
+
} | {
|
|
172
|
+
purpose: AddressWithoutPublicKey;
|
|
173
|
+
publicKey?: undefined;
|
|
174
|
+
});
|
|
167
175
|
interface GetAddressResponse {
|
|
168
176
|
addresses: Address[];
|
|
169
177
|
}
|
|
@@ -273,7 +281,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
|
|
|
273
281
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
274
282
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
275
283
|
readonly address: v.StringSchema<undefined>;
|
|
276
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
284
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
277
285
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
278
286
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
279
287
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -291,7 +299,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
291
299
|
}, undefined>;
|
|
292
300
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
293
301
|
readonly address: v.StringSchema<undefined>;
|
|
294
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
302
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
295
303
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
296
304
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
297
305
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -307,7 +315,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
307
315
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
308
316
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
309
317
|
readonly address: v.StringSchema<undefined>;
|
|
310
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
318
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
311
319
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
312
320
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
313
321
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -322,7 +330,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
322
330
|
}, undefined>;
|
|
323
331
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
324
332
|
readonly address: v.StringSchema<undefined>;
|
|
325
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
333
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
326
334
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
327
335
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
328
336
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -439,7 +447,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
439
447
|
*/
|
|
440
448
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
441
449
|
readonly address: v.StringSchema<undefined>;
|
|
442
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
450
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
443
451
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
444
452
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
445
453
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -449,7 +457,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
449
457
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
450
458
|
}, undefined>;
|
|
451
459
|
readonly stacks: v.ObjectSchema<{
|
|
452
|
-
readonly name: v.
|
|
460
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
453
461
|
}, undefined>;
|
|
454
462
|
readonly spark: v.ObjectSchema<{
|
|
455
463
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -638,7 +646,7 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
|
638
646
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
639
647
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
640
648
|
readonly address: v.StringSchema<undefined>;
|
|
641
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
649
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
642
650
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
643
651
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
644
652
|
}, undefined>, undefined>;
|
|
@@ -1023,7 +1031,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1023
1031
|
*/
|
|
1024
1032
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1025
1033
|
readonly address: v.StringSchema<undefined>;
|
|
1026
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1034
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1027
1035
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1028
1036
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1029
1037
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1033,7 +1041,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1033
1041
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1034
1042
|
}, undefined>;
|
|
1035
1043
|
readonly stacks: v.ObjectSchema<{
|
|
1036
|
-
readonly name: v.
|
|
1044
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1037
1045
|
}, undefined>;
|
|
1038
1046
|
readonly spark: v.ObjectSchema<{
|
|
1039
1047
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1066,6 +1074,7 @@ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
|
|
|
1066
1074
|
readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
|
|
1067
1075
|
readonly balance: v.StringSchema<undefined>;
|
|
1068
1076
|
readonly tokenMetadata: v.ObjectSchema<{
|
|
1077
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1069
1078
|
readonly tokenPublicKey: v.StringSchema<undefined>;
|
|
1070
1079
|
readonly tokenName: v.StringSchema<undefined>;
|
|
1071
1080
|
readonly tokenTicker: v.StringSchema<undefined>;
|
|
@@ -1354,7 +1363,7 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
|
1354
1363
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1355
1364
|
}, undefined>;
|
|
1356
1365
|
readonly stacks: v.ObjectSchema<{
|
|
1357
|
-
readonly name: v.
|
|
1366
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1358
1367
|
}, undefined>;
|
|
1359
1368
|
readonly spark: v.ObjectSchema<{
|
|
1360
1369
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1385,7 +1394,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1385
1394
|
*/
|
|
1386
1395
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1387
1396
|
readonly address: v.StringSchema<undefined>;
|
|
1388
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1397
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1389
1398
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1390
1399
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1391
1400
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1395,7 +1404,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1395
1404
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1396
1405
|
}, undefined>;
|
|
1397
1406
|
readonly stacks: v.ObjectSchema<{
|
|
1398
|
-
readonly name: v.
|
|
1407
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1399
1408
|
}, undefined>;
|
|
1400
1409
|
readonly spark: v.ObjectSchema<{
|
|
1401
1410
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1873,7 +1882,7 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
|
1873
1882
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1874
1883
|
}, undefined>;
|
|
1875
1884
|
readonly stacks: v.ObjectSchema<{
|
|
1876
|
-
readonly name: v.
|
|
1885
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1877
1886
|
}, undefined>;
|
|
1878
1887
|
readonly spark: v.ObjectSchema<{
|
|
1879
1888
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1929,7 +1938,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1929
1938
|
readonly id: v.StringSchema<undefined>;
|
|
1930
1939
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1931
1940
|
readonly address: v.StringSchema<undefined>;
|
|
1932
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1941
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1933
1942
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1934
1943
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1935
1944
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1940,7 +1949,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1940
1949
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1941
1950
|
}, undefined>;
|
|
1942
1951
|
readonly stacks: v.ObjectSchema<{
|
|
1943
|
-
readonly name: v.
|
|
1952
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1944
1953
|
}, undefined>;
|
|
1945
1954
|
readonly spark: v.ObjectSchema<{
|
|
1946
1955
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1980,7 +1989,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1980
1989
|
readonly id: v.StringSchema<undefined>;
|
|
1981
1990
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1982
1991
|
readonly address: v.StringSchema<undefined>;
|
|
1983
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1992
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1984
1993
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1985
1994
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1986
1995
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1991,7 +2000,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1991
2000
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1992
2001
|
}, undefined>;
|
|
1993
2002
|
readonly stacks: v.ObjectSchema<{
|
|
1994
|
-
readonly name: v.
|
|
2003
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1995
2004
|
}, undefined>;
|
|
1996
2005
|
readonly spark: v.ObjectSchema<{
|
|
1997
2006
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -156,14 +156,22 @@ declare enum AddressType {
|
|
|
156
156
|
starknet = "starknet",
|
|
157
157
|
spark = "spark"
|
|
158
158
|
}
|
|
159
|
+
type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
|
|
160
|
+
type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
|
|
159
161
|
declare const addressSchema: v.ObjectSchema<{
|
|
160
162
|
readonly address: v.StringSchema<undefined>;
|
|
161
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
163
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
162
164
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
163
165
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
164
166
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
165
167
|
}, undefined>;
|
|
166
|
-
type Address = v.InferOutput<typeof addressSchema
|
|
168
|
+
type Address = Exclude<v.InferOutput<typeof addressSchema>, 'purpose' | 'publicKey'> & ({
|
|
169
|
+
purpose: AddressWithPublicKey;
|
|
170
|
+
publicKey: string;
|
|
171
|
+
} | {
|
|
172
|
+
purpose: AddressWithoutPublicKey;
|
|
173
|
+
publicKey?: undefined;
|
|
174
|
+
});
|
|
167
175
|
interface GetAddressResponse {
|
|
168
176
|
addresses: Address[];
|
|
169
177
|
}
|
|
@@ -273,7 +281,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
|
|
|
273
281
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
274
282
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
275
283
|
readonly address: v.StringSchema<undefined>;
|
|
276
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
284
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
277
285
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
278
286
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
279
287
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -291,7 +299,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
291
299
|
}, undefined>;
|
|
292
300
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
293
301
|
readonly address: v.StringSchema<undefined>;
|
|
294
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
302
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
295
303
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
296
304
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
297
305
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -307,7 +315,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
307
315
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
308
316
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
309
317
|
readonly address: v.StringSchema<undefined>;
|
|
310
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
318
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
311
319
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
312
320
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
313
321
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -322,7 +330,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
322
330
|
}, undefined>;
|
|
323
331
|
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
324
332
|
readonly address: v.StringSchema<undefined>;
|
|
325
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
333
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
326
334
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
327
335
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
328
336
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -439,7 +447,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
439
447
|
*/
|
|
440
448
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
441
449
|
readonly address: v.StringSchema<undefined>;
|
|
442
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
450
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
443
451
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
444
452
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
445
453
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -449,7 +457,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
449
457
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
450
458
|
}, undefined>;
|
|
451
459
|
readonly stacks: v.ObjectSchema<{
|
|
452
|
-
readonly name: v.
|
|
460
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
453
461
|
}, undefined>;
|
|
454
462
|
readonly spark: v.ObjectSchema<{
|
|
455
463
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -638,7 +646,7 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
|
638
646
|
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
639
647
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
640
648
|
readonly address: v.StringSchema<undefined>;
|
|
641
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
649
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
642
650
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
643
651
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
644
652
|
}, undefined>, undefined>;
|
|
@@ -1023,7 +1031,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1023
1031
|
*/
|
|
1024
1032
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1025
1033
|
readonly address: v.StringSchema<undefined>;
|
|
1026
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1034
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1027
1035
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1028
1036
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1029
1037
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1033,7 +1041,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1033
1041
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1034
1042
|
}, undefined>;
|
|
1035
1043
|
readonly stacks: v.ObjectSchema<{
|
|
1036
|
-
readonly name: v.
|
|
1044
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1037
1045
|
}, undefined>;
|
|
1038
1046
|
readonly spark: v.ObjectSchema<{
|
|
1039
1047
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1066,6 +1074,7 @@ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
|
|
|
1066
1074
|
readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
|
|
1067
1075
|
readonly balance: v.StringSchema<undefined>;
|
|
1068
1076
|
readonly tokenMetadata: v.ObjectSchema<{
|
|
1077
|
+
readonly tokenIdentifier: v.StringSchema<undefined>;
|
|
1069
1078
|
readonly tokenPublicKey: v.StringSchema<undefined>;
|
|
1070
1079
|
readonly tokenName: v.StringSchema<undefined>;
|
|
1071
1080
|
readonly tokenTicker: v.StringSchema<undefined>;
|
|
@@ -1354,7 +1363,7 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
|
|
|
1354
1363
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1355
1364
|
}, undefined>;
|
|
1356
1365
|
readonly stacks: v.ObjectSchema<{
|
|
1357
|
-
readonly name: v.
|
|
1366
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1358
1367
|
}, undefined>;
|
|
1359
1368
|
readonly spark: v.ObjectSchema<{
|
|
1360
1369
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1385,7 +1394,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1385
1394
|
*/
|
|
1386
1395
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1387
1396
|
readonly address: v.StringSchema<undefined>;
|
|
1388
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1397
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1389
1398
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1390
1399
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1391
1400
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1395,7 +1404,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1395
1404
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1396
1405
|
}, undefined>;
|
|
1397
1406
|
readonly stacks: v.ObjectSchema<{
|
|
1398
|
-
readonly name: v.
|
|
1407
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1399
1408
|
}, undefined>;
|
|
1400
1409
|
readonly spark: v.ObjectSchema<{
|
|
1401
1410
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1873,7 +1882,7 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
|
1873
1882
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1874
1883
|
}, undefined>;
|
|
1875
1884
|
readonly stacks: v.ObjectSchema<{
|
|
1876
|
-
readonly name: v.
|
|
1885
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1877
1886
|
}, undefined>;
|
|
1878
1887
|
readonly spark: v.ObjectSchema<{
|
|
1879
1888
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1929,7 +1938,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1929
1938
|
readonly id: v.StringSchema<undefined>;
|
|
1930
1939
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1931
1940
|
readonly address: v.StringSchema<undefined>;
|
|
1932
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1941
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1933
1942
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1934
1943
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1935
1944
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1940,7 +1949,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1940
1949
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1941
1950
|
}, undefined>;
|
|
1942
1951
|
readonly stacks: v.ObjectSchema<{
|
|
1943
|
-
readonly name: v.
|
|
1952
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1944
1953
|
}, undefined>;
|
|
1945
1954
|
readonly spark: v.ObjectSchema<{
|
|
1946
1955
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
|
@@ -1980,7 +1989,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1980
1989
|
readonly id: v.StringSchema<undefined>;
|
|
1981
1990
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
1982
1991
|
readonly address: v.StringSchema<undefined>;
|
|
1983
|
-
readonly publicKey: v.StringSchema<undefined>;
|
|
1992
|
+
readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1984
1993
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1985
1994
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1986
1995
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
@@ -1991,7 +2000,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1991
2000
|
readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
|
|
1992
2001
|
}, undefined>;
|
|
1993
2002
|
readonly stacks: v.ObjectSchema<{
|
|
1994
|
-
readonly name: v.
|
|
2003
|
+
readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
|
|
1995
2004
|
}, undefined>;
|
|
1996
2005
|
readonly spark: v.ObjectSchema<{
|
|
1997
2006
|
readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
|
package/dist/index.js
CHANGED
|
@@ -268,7 +268,7 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
|
|
|
268
268
|
})(AddressType || {});
|
|
269
269
|
var addressSchema = v2.object({
|
|
270
270
|
address: v2.string(),
|
|
271
|
-
publicKey: v2.string(),
|
|
271
|
+
publicKey: v2.optional(v2.string()),
|
|
272
272
|
purpose: v2.enum(AddressPurpose),
|
|
273
273
|
addressType: v2.enum(AddressType),
|
|
274
274
|
walletType: walletTypeSchema
|
|
@@ -522,7 +522,7 @@ var getNetworkResultSchema = v5.object({
|
|
|
522
522
|
name: v5.enum(BitcoinNetworkType)
|
|
523
523
|
}),
|
|
524
524
|
stacks: v5.object({
|
|
525
|
-
name: v5.
|
|
525
|
+
name: v5.enum(StacksNetworkType)
|
|
526
526
|
}),
|
|
527
527
|
spark: v5.object({
|
|
528
528
|
name: v5.enum(SparkNetworkType)
|
|
@@ -1080,6 +1080,7 @@ var sparkGetBalanceResultSchema = v13.object({
|
|
|
1080
1080
|
/* The address balance of the token in string form as it can overflow a js number */
|
|
1081
1081
|
balance: v13.string(),
|
|
1082
1082
|
tokenMetadata: v13.object({
|
|
1083
|
+
tokenIdentifier: v13.string(),
|
|
1083
1084
|
tokenPublicKey: v13.string(),
|
|
1084
1085
|
tokenName: v13.string(),
|
|
1085
1086
|
tokenTicker: v13.string(),
|
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
|
|
|
34
34
|
})(AddressType || {});
|
|
35
35
|
var addressSchema = v2.object({
|
|
36
36
|
address: v2.string(),
|
|
37
|
-
publicKey: v2.string(),
|
|
37
|
+
publicKey: v2.optional(v2.string()),
|
|
38
38
|
purpose: v2.enum(AddressPurpose),
|
|
39
39
|
addressType: v2.enum(AddressType),
|
|
40
40
|
walletType: walletTypeSchema
|
|
@@ -288,7 +288,7 @@ var getNetworkResultSchema = v5.object({
|
|
|
288
288
|
name: v5.enum(BitcoinNetworkType)
|
|
289
289
|
}),
|
|
290
290
|
stacks: v5.object({
|
|
291
|
-
name: v5.
|
|
291
|
+
name: v5.enum(StacksNetworkType)
|
|
292
292
|
}),
|
|
293
293
|
spark: v5.object({
|
|
294
294
|
name: v5.enum(SparkNetworkType)
|
|
@@ -846,6 +846,7 @@ var sparkGetBalanceResultSchema = v13.object({
|
|
|
846
846
|
/* The address balance of the token in string form as it can overflow a js number */
|
|
847
847
|
balance: v13.string(),
|
|
848
848
|
tokenMetadata: v13.object({
|
|
849
|
+
tokenIdentifier: v13.string(),
|
|
849
850
|
tokenPublicKey: v13.string(),
|
|
850
851
|
tokenName: v13.string(),
|
|
851
852
|
tokenTicker: v13.string(),
|