@sats-connect/core 0.5.4 → 0.5.5-a12399d
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 +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -326,6 +326,7 @@ declare const addressSchema: v.ObjectSchema<{
|
|
|
326
326
|
readonly publicKey: v.StringSchema<undefined>;
|
|
327
327
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
328
328
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
329
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
329
330
|
}, undefined>;
|
|
330
331
|
type Address = v.InferOutput<typeof addressSchema>;
|
|
331
332
|
interface GetAddressResponse {
|
|
@@ -384,10 +385,9 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
384
385
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
385
386
|
readonly address: v.StringSchema<undefined>;
|
|
386
387
|
readonly publicKey: v.StringSchema<undefined>;
|
|
387
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
388
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
389
|
-
*/
|
|
388
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
390
389
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
390
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
391
391
|
}, undefined>, undefined>;
|
|
392
392
|
}, undefined>;
|
|
393
393
|
type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;
|
|
@@ -573,9 +573,7 @@ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
573
573
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
574
574
|
readonly address: v.StringSchema<undefined>;
|
|
575
575
|
readonly publicKey: v.StringSchema<undefined>;
|
|
576
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
577
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
578
|
-
*/
|
|
576
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
579
577
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
580
578
|
}, undefined>, undefined>;
|
|
581
579
|
type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
|
|
@@ -1115,6 +1113,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1115
1113
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1116
1114
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1117
1115
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1116
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1118
1117
|
}, undefined>, undefined>;
|
|
1119
1118
|
}, undefined>;
|
|
1120
1119
|
type StxGetAddressesResult = v.InferOutput<typeof stxGetAddressesResultSchema>;
|
|
@@ -1614,6 +1613,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1614
1613
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1615
1614
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1616
1615
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1616
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1617
1617
|
}, undefined>, undefined>;
|
|
1618
1618
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1619
1619
|
}, undefined>;
|
|
@@ -1672,6 +1672,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1672
1672
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1673
1673
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1674
1674
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1675
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1675
1676
|
}, undefined>, undefined>;
|
|
1676
1677
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1677
1678
|
readonly network: v.ObjectSchema<{
|
package/dist/index.d.ts
CHANGED
|
@@ -326,6 +326,7 @@ declare const addressSchema: v.ObjectSchema<{
|
|
|
326
326
|
readonly publicKey: v.StringSchema<undefined>;
|
|
327
327
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
328
328
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
329
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
329
330
|
}, undefined>;
|
|
330
331
|
type Address = v.InferOutput<typeof addressSchema>;
|
|
331
332
|
interface GetAddressResponse {
|
|
@@ -384,10 +385,9 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
|
384
385
|
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
385
386
|
readonly address: v.StringSchema<undefined>;
|
|
386
387
|
readonly publicKey: v.StringSchema<undefined>;
|
|
387
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
388
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
389
|
-
*/
|
|
388
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
390
389
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
390
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
391
391
|
}, undefined>, undefined>;
|
|
392
392
|
}, undefined>;
|
|
393
393
|
type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;
|
|
@@ -573,9 +573,7 @@ declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
|
573
573
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
574
574
|
readonly address: v.StringSchema<undefined>;
|
|
575
575
|
readonly publicKey: v.StringSchema<undefined>;
|
|
576
|
-
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
577
|
-
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
578
|
-
*/
|
|
576
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
579
577
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
580
578
|
}, undefined>, undefined>;
|
|
581
579
|
type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
|
|
@@ -1115,6 +1113,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
|
|
|
1115
1113
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1116
1114
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1117
1115
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1116
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1118
1117
|
}, undefined>, undefined>;
|
|
1119
1118
|
}, undefined>;
|
|
1120
1119
|
type StxGetAddressesResult = v.InferOutput<typeof stxGetAddressesResultSchema>;
|
|
@@ -1614,6 +1613,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1614
1613
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1615
1614
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1616
1615
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1616
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1617
1617
|
}, undefined>, undefined>;
|
|
1618
1618
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1619
1619
|
}, undefined>;
|
|
@@ -1672,6 +1672,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1672
1672
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1673
1673
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1674
1674
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1675
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1675
1676
|
}, undefined>, undefined>;
|
|
1676
1677
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1677
1678
|
readonly network: v.ObjectSchema<{
|
package/dist/index.js
CHANGED
|
@@ -461,7 +461,8 @@ var addressSchema = v6.object({
|
|
|
461
461
|
address: v6.string(),
|
|
462
462
|
publicKey: v6.string(),
|
|
463
463
|
purpose: v6.enum(AddressPurpose),
|
|
464
|
-
addressType: v6.enum(AddressType)
|
|
464
|
+
addressType: v6.enum(AddressType),
|
|
465
|
+
walletType: walletTypeSchema
|
|
465
466
|
});
|
|
466
467
|
|
|
467
468
|
// src/addresses/index.ts
|
|
@@ -1837,13 +1838,15 @@ var UnisatAdapter = class extends SatsConnectAdapter {
|
|
|
1837
1838
|
address,
|
|
1838
1839
|
publicKey: pk,
|
|
1839
1840
|
addressType,
|
|
1840
|
-
purpose: "payment" /* Payment
|
|
1841
|
+
purpose: "payment" /* Payment */,
|
|
1842
|
+
walletType: "software"
|
|
1841
1843
|
};
|
|
1842
1844
|
const ordinalsAddress = {
|
|
1843
1845
|
address,
|
|
1844
1846
|
publicKey: pk,
|
|
1845
1847
|
addressType,
|
|
1846
|
-
purpose: "ordinals" /* Ordinals
|
|
1848
|
+
purpose: "ordinals" /* Ordinals */,
|
|
1849
|
+
walletType: "software"
|
|
1847
1850
|
};
|
|
1848
1851
|
const response = [];
|
|
1849
1852
|
if (purposes.includes("payment" /* Payment */)) {
|
package/dist/index.mjs
CHANGED
|
@@ -258,7 +258,8 @@ var addressSchema = v6.object({
|
|
|
258
258
|
address: v6.string(),
|
|
259
259
|
publicKey: v6.string(),
|
|
260
260
|
purpose: v6.enum(AddressPurpose),
|
|
261
|
-
addressType: v6.enum(AddressType)
|
|
261
|
+
addressType: v6.enum(AddressType),
|
|
262
|
+
walletType: walletTypeSchema
|
|
262
263
|
});
|
|
263
264
|
|
|
264
265
|
// src/addresses/index.ts
|
|
@@ -1634,13 +1635,15 @@ var UnisatAdapter = class extends SatsConnectAdapter {
|
|
|
1634
1635
|
address,
|
|
1635
1636
|
publicKey: pk,
|
|
1636
1637
|
addressType,
|
|
1637
|
-
purpose: "payment" /* Payment
|
|
1638
|
+
purpose: "payment" /* Payment */,
|
|
1639
|
+
walletType: "software"
|
|
1638
1640
|
};
|
|
1639
1641
|
const ordinalsAddress = {
|
|
1640
1642
|
address,
|
|
1641
1643
|
publicKey: pk,
|
|
1642
1644
|
addressType,
|
|
1643
|
-
purpose: "ordinals" /* Ordinals
|
|
1645
|
+
purpose: "ordinals" /* Ordinals */,
|
|
1646
|
+
walletType: "software"
|
|
1644
1647
|
};
|
|
1645
1648
|
const response = [];
|
|
1646
1649
|
if (purposes.includes("payment" /* Payment */)) {
|