@sats-connect/core 0.5.4 → 0.5.5-a464b9b
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 +35 -26
- package/dist/index.d.ts +35 -26
- package/dist/index.js +22 -18
- package/dist/index.mjs +22 -18
- 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>;
|
|
@@ -1604,6 +1603,26 @@ declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
|
1604
1603
|
}, undefined>;
|
|
1605
1604
|
type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
|
|
1606
1605
|
type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
|
|
1606
|
+
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1607
|
+
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1608
|
+
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1609
|
+
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1610
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1611
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1612
|
+
}, undefined>;
|
|
1613
|
+
readonly stacks: v.ObjectSchema<{
|
|
1614
|
+
readonly name: v.StringSchema<undefined>;
|
|
1615
|
+
}, undefined>;
|
|
1616
|
+
}, undefined>;
|
|
1617
|
+
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1618
|
+
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1619
|
+
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1620
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1621
|
+
readonly id: v.StringSchema<undefined>;
|
|
1622
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1623
|
+
}, undefined>;
|
|
1624
|
+
type GetNetworkRequestMessage = v.InferOutput<typeof getNetworkRequestMessageSchema>;
|
|
1625
|
+
type GetNetwork = MethodParamsAndResult<GetNetworkParams, GetNetworkResult>;
|
|
1607
1626
|
declare const getAccountMethodName = "wallet_getAccount";
|
|
1608
1627
|
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1609
1628
|
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
@@ -1614,8 +1633,17 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1614
1633
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1615
1634
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1616
1635
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1636
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1617
1637
|
}, undefined>, undefined>;
|
|
1618
1638
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1639
|
+
readonly network: v.ObjectSchema<{
|
|
1640
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1641
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1642
|
+
}, undefined>;
|
|
1643
|
+
readonly stacks: v.ObjectSchema<{
|
|
1644
|
+
readonly name: v.StringSchema<undefined>;
|
|
1645
|
+
}, undefined>;
|
|
1646
|
+
}, undefined>;
|
|
1619
1647
|
}, undefined>;
|
|
1620
1648
|
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1621
1649
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1626,26 +1654,6 @@ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
|
1626
1654
|
}, undefined>;
|
|
1627
1655
|
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1628
1656
|
type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
|
|
1629
|
-
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1630
|
-
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1631
|
-
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1632
|
-
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1633
|
-
readonly bitcoin: v.ObjectSchema<{
|
|
1634
|
-
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1635
|
-
}, undefined>;
|
|
1636
|
-
readonly stacks: v.ObjectSchema<{
|
|
1637
|
-
readonly name: v.StringSchema<undefined>;
|
|
1638
|
-
}, undefined>;
|
|
1639
|
-
}, undefined>;
|
|
1640
|
-
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1641
|
-
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1642
|
-
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1643
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1644
|
-
readonly id: v.StringSchema<undefined>;
|
|
1645
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1646
|
-
}, undefined>;
|
|
1647
|
-
type GetNetworkRequestMessage = v.InferOutput<typeof getNetworkRequestMessageSchema>;
|
|
1648
|
-
type GetNetwork = MethodParamsAndResult<GetNetworkParams, GetNetworkResult>;
|
|
1649
1657
|
declare const connectMethodName = "wallet_connect";
|
|
1650
1658
|
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1651
1659
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1672,6 +1680,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1672
1680
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1673
1681
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1674
1682
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1683
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1675
1684
|
}, undefined>, undefined>;
|
|
1676
1685
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1677
1686
|
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>;
|
|
@@ -1604,6 +1603,26 @@ declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
|
|
|
1604
1603
|
}, undefined>;
|
|
1605
1604
|
type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
|
|
1606
1605
|
type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
|
|
1606
|
+
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1607
|
+
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1608
|
+
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1609
|
+
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1610
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1611
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1612
|
+
}, undefined>;
|
|
1613
|
+
readonly stacks: v.ObjectSchema<{
|
|
1614
|
+
readonly name: v.StringSchema<undefined>;
|
|
1615
|
+
}, undefined>;
|
|
1616
|
+
}, undefined>;
|
|
1617
|
+
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1618
|
+
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1619
|
+
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1620
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1621
|
+
readonly id: v.StringSchema<undefined>;
|
|
1622
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1623
|
+
}, undefined>;
|
|
1624
|
+
type GetNetworkRequestMessage = v.InferOutput<typeof getNetworkRequestMessageSchema>;
|
|
1625
|
+
type GetNetwork = MethodParamsAndResult<GetNetworkParams, GetNetworkResult>;
|
|
1607
1626
|
declare const getAccountMethodName = "wallet_getAccount";
|
|
1608
1627
|
declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1609
1628
|
type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
|
|
@@ -1614,8 +1633,17 @@ declare const getAccountResultSchema: v.ObjectSchema<{
|
|
|
1614
1633
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1615
1634
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1616
1635
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1636
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1617
1637
|
}, undefined>, undefined>;
|
|
1618
1638
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1639
|
+
readonly network: v.ObjectSchema<{
|
|
1640
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1641
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1642
|
+
}, undefined>;
|
|
1643
|
+
readonly stacks: v.ObjectSchema<{
|
|
1644
|
+
readonly name: v.StringSchema<undefined>;
|
|
1645
|
+
}, undefined>;
|
|
1646
|
+
}, undefined>;
|
|
1619
1647
|
}, undefined>;
|
|
1620
1648
|
type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
|
|
1621
1649
|
declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1626,26 +1654,6 @@ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
|
1626
1654
|
}, undefined>;
|
|
1627
1655
|
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1628
1656
|
type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
|
|
1629
|
-
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1630
|
-
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1631
|
-
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1632
|
-
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1633
|
-
readonly bitcoin: v.ObjectSchema<{
|
|
1634
|
-
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1635
|
-
}, undefined>;
|
|
1636
|
-
readonly stacks: v.ObjectSchema<{
|
|
1637
|
-
readonly name: v.StringSchema<undefined>;
|
|
1638
|
-
}, undefined>;
|
|
1639
|
-
}, undefined>;
|
|
1640
|
-
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1641
|
-
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1642
|
-
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1643
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1644
|
-
readonly id: v.StringSchema<undefined>;
|
|
1645
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1646
|
-
}, undefined>;
|
|
1647
|
-
type GetNetworkRequestMessage = v.InferOutput<typeof getNetworkRequestMessageSchema>;
|
|
1648
|
-
type GetNetwork = MethodParamsAndResult<GetNetworkParams, GetNetworkResult>;
|
|
1649
1657
|
declare const connectMethodName = "wallet_connect";
|
|
1650
1658
|
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1651
1659
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1672,6 +1680,7 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1672
1680
|
readonly publicKey: v.StringSchema<undefined>;
|
|
1673
1681
|
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
1674
1682
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1683
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1675
1684
|
}, undefined>, undefined>;
|
|
1676
1685
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1677
1686
|
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
|
|
@@ -1036,21 +1037,6 @@ var getCurrentPermissionsRequestMessageSchema = v15.object({
|
|
|
1036
1037
|
id: v15.string()
|
|
1037
1038
|
}).entries
|
|
1038
1039
|
});
|
|
1039
|
-
var getAccountMethodName = "wallet_getAccount";
|
|
1040
|
-
var getAccountParamsSchema = v15.nullish(v15.null());
|
|
1041
|
-
var getAccountResultSchema = v15.object({
|
|
1042
|
-
id: v15.string(),
|
|
1043
|
-
addresses: v15.array(addressSchema),
|
|
1044
|
-
walletType: walletTypeSchema
|
|
1045
|
-
});
|
|
1046
|
-
var getAccountRequestMessageSchema = v15.object({
|
|
1047
|
-
...rpcRequestMessageSchema.entries,
|
|
1048
|
-
...v15.object({
|
|
1049
|
-
method: v15.literal(getAccountMethodName),
|
|
1050
|
-
params: getAccountParamsSchema,
|
|
1051
|
-
id: v15.string()
|
|
1052
|
-
}).entries
|
|
1053
|
-
});
|
|
1054
1040
|
var getNetworkMethodName = "wallet_getNetwork";
|
|
1055
1041
|
var getNetworkParamsSchema = v15.nullish(v15.null());
|
|
1056
1042
|
var networkType2 = ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"];
|
|
@@ -1070,6 +1056,22 @@ var getNetworkRequestMessageSchema = v15.object({
|
|
|
1070
1056
|
id: v15.string()
|
|
1071
1057
|
}).entries
|
|
1072
1058
|
});
|
|
1059
|
+
var getAccountMethodName = "wallet_getAccount";
|
|
1060
|
+
var getAccountParamsSchema = v15.nullish(v15.null());
|
|
1061
|
+
var getAccountResultSchema = v15.object({
|
|
1062
|
+
id: v15.string(),
|
|
1063
|
+
addresses: v15.array(addressSchema),
|
|
1064
|
+
walletType: walletTypeSchema,
|
|
1065
|
+
network: getNetworkResultSchema
|
|
1066
|
+
});
|
|
1067
|
+
var getAccountRequestMessageSchema = v15.object({
|
|
1068
|
+
...rpcRequestMessageSchema.entries,
|
|
1069
|
+
...v15.object({
|
|
1070
|
+
method: v15.literal(getAccountMethodName),
|
|
1071
|
+
params: getAccountParamsSchema,
|
|
1072
|
+
id: v15.string()
|
|
1073
|
+
}).entries
|
|
1074
|
+
});
|
|
1073
1075
|
var connectMethodName = "wallet_connect";
|
|
1074
1076
|
var connectParamsSchema = v15.nullish(
|
|
1075
1077
|
v15.object({
|
|
@@ -1837,13 +1839,15 @@ var UnisatAdapter = class extends SatsConnectAdapter {
|
|
|
1837
1839
|
address,
|
|
1838
1840
|
publicKey: pk,
|
|
1839
1841
|
addressType,
|
|
1840
|
-
purpose: "payment" /* Payment
|
|
1842
|
+
purpose: "payment" /* Payment */,
|
|
1843
|
+
walletType: "software"
|
|
1841
1844
|
};
|
|
1842
1845
|
const ordinalsAddress = {
|
|
1843
1846
|
address,
|
|
1844
1847
|
publicKey: pk,
|
|
1845
1848
|
addressType,
|
|
1846
|
-
purpose: "ordinals" /* Ordinals
|
|
1849
|
+
purpose: "ordinals" /* Ordinals */,
|
|
1850
|
+
walletType: "software"
|
|
1847
1851
|
};
|
|
1848
1852
|
const response = [];
|
|
1849
1853
|
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
|
|
@@ -833,21 +834,6 @@ var getCurrentPermissionsRequestMessageSchema = v15.object({
|
|
|
833
834
|
id: v15.string()
|
|
834
835
|
}).entries
|
|
835
836
|
});
|
|
836
|
-
var getAccountMethodName = "wallet_getAccount";
|
|
837
|
-
var getAccountParamsSchema = v15.nullish(v15.null());
|
|
838
|
-
var getAccountResultSchema = v15.object({
|
|
839
|
-
id: v15.string(),
|
|
840
|
-
addresses: v15.array(addressSchema),
|
|
841
|
-
walletType: walletTypeSchema
|
|
842
|
-
});
|
|
843
|
-
var getAccountRequestMessageSchema = v15.object({
|
|
844
|
-
...rpcRequestMessageSchema.entries,
|
|
845
|
-
...v15.object({
|
|
846
|
-
method: v15.literal(getAccountMethodName),
|
|
847
|
-
params: getAccountParamsSchema,
|
|
848
|
-
id: v15.string()
|
|
849
|
-
}).entries
|
|
850
|
-
});
|
|
851
837
|
var getNetworkMethodName = "wallet_getNetwork";
|
|
852
838
|
var getNetworkParamsSchema = v15.nullish(v15.null());
|
|
853
839
|
var networkType2 = ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"];
|
|
@@ -867,6 +853,22 @@ var getNetworkRequestMessageSchema = v15.object({
|
|
|
867
853
|
id: v15.string()
|
|
868
854
|
}).entries
|
|
869
855
|
});
|
|
856
|
+
var getAccountMethodName = "wallet_getAccount";
|
|
857
|
+
var getAccountParamsSchema = v15.nullish(v15.null());
|
|
858
|
+
var getAccountResultSchema = v15.object({
|
|
859
|
+
id: v15.string(),
|
|
860
|
+
addresses: v15.array(addressSchema),
|
|
861
|
+
walletType: walletTypeSchema,
|
|
862
|
+
network: getNetworkResultSchema
|
|
863
|
+
});
|
|
864
|
+
var getAccountRequestMessageSchema = v15.object({
|
|
865
|
+
...rpcRequestMessageSchema.entries,
|
|
866
|
+
...v15.object({
|
|
867
|
+
method: v15.literal(getAccountMethodName),
|
|
868
|
+
params: getAccountParamsSchema,
|
|
869
|
+
id: v15.string()
|
|
870
|
+
}).entries
|
|
871
|
+
});
|
|
870
872
|
var connectMethodName = "wallet_connect";
|
|
871
873
|
var connectParamsSchema = v15.nullish(
|
|
872
874
|
v15.object({
|
|
@@ -1634,13 +1636,15 @@ var UnisatAdapter = class extends SatsConnectAdapter {
|
|
|
1634
1636
|
address,
|
|
1635
1637
|
publicKey: pk,
|
|
1636
1638
|
addressType,
|
|
1637
|
-
purpose: "payment" /* Payment
|
|
1639
|
+
purpose: "payment" /* Payment */,
|
|
1640
|
+
walletType: "software"
|
|
1638
1641
|
};
|
|
1639
1642
|
const ordinalsAddress = {
|
|
1640
1643
|
address,
|
|
1641
1644
|
publicKey: pk,
|
|
1642
1645
|
addressType,
|
|
1643
|
-
purpose: "ordinals" /* Ordinals
|
|
1646
|
+
purpose: "ordinals" /* Ordinals */,
|
|
1647
|
+
walletType: "software"
|
|
1644
1648
|
};
|
|
1645
1649
|
const response = [];
|
|
1646
1650
|
if (purposes.includes("payment" /* Payment */)) {
|