@sats-connect/core 0.5.3-40ec102 → 0.5.3-5daec53
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 +40 -20
- package/dist/index.d.ts +40 -20
- package/dist/index.js +34 -20
- package/dist/index.mjs +34 -20
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -102,6 +102,12 @@ type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;
|
|
|
102
102
|
declare const networkChangeEventName = "networkChange";
|
|
103
103
|
declare const networkChangeSchema: v.ObjectSchema<{
|
|
104
104
|
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
105
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
106
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
107
|
+
}, undefined>;
|
|
108
|
+
readonly stacks: v.ObjectSchema<{
|
|
109
|
+
readonly name: v.StringSchema<undefined>;
|
|
110
|
+
}, undefined>;
|
|
105
111
|
}, undefined>;
|
|
106
112
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
107
113
|
declare const disconnectEventName = "disconnect";
|
|
@@ -113,6 +119,12 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
113
119
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
114
120
|
}, undefined>, v.ObjectSchema<{
|
|
115
121
|
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
122
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
123
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
124
|
+
}, undefined>;
|
|
125
|
+
readonly stacks: v.ObjectSchema<{
|
|
126
|
+
readonly name: v.StringSchema<undefined>;
|
|
127
|
+
}, undefined>;
|
|
116
128
|
}, undefined>, v.ObjectSchema<{
|
|
117
129
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
118
130
|
}, undefined>], undefined>;
|
|
@@ -1614,6 +1626,26 @@ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
|
1614
1626
|
}, undefined>;
|
|
1615
1627
|
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1616
1628
|
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>;
|
|
1617
1649
|
declare const connectMethodName = "wallet_connect";
|
|
1618
1650
|
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1619
1651
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1642,6 +1674,14 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1642
1674
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1643
1675
|
}, undefined>, undefined>;
|
|
1644
1676
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1677
|
+
readonly network: v.ObjectSchema<{
|
|
1678
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1679
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1680
|
+
}, undefined>;
|
|
1681
|
+
readonly stacks: v.ObjectSchema<{
|
|
1682
|
+
readonly name: v.StringSchema<undefined>;
|
|
1683
|
+
}, undefined>;
|
|
1684
|
+
}, undefined>;
|
|
1645
1685
|
}, undefined>;
|
|
1646
1686
|
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1647
1687
|
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1668,26 +1708,6 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1668
1708
|
}, undefined>;
|
|
1669
1709
|
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1670
1710
|
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1671
|
-
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1672
|
-
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1673
|
-
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1674
|
-
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1675
|
-
readonly bitcoin: v.ObjectSchema<{
|
|
1676
|
-
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1677
|
-
}, undefined>;
|
|
1678
|
-
readonly stacks: v.ObjectSchema<{
|
|
1679
|
-
readonly name: v.StringSchema<undefined>;
|
|
1680
|
-
}, undefined>;
|
|
1681
|
-
}, undefined>;
|
|
1682
|
-
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1683
|
-
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1684
|
-
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1685
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1686
|
-
readonly id: v.StringSchema<undefined>;
|
|
1687
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1688
|
-
}, undefined>;
|
|
1689
|
-
type GetNetworkRequestMessage = v.InferOutput<typeof getNetworkRequestMessageSchema>;
|
|
1690
|
-
type GetNetwork = MethodParamsAndResult<GetNetworkParams, GetNetworkResult>;
|
|
1691
1711
|
|
|
1692
1712
|
declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
1693
1713
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,12 @@ type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;
|
|
|
102
102
|
declare const networkChangeEventName = "networkChange";
|
|
103
103
|
declare const networkChangeSchema: v.ObjectSchema<{
|
|
104
104
|
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
105
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
106
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
107
|
+
}, undefined>;
|
|
108
|
+
readonly stacks: v.ObjectSchema<{
|
|
109
|
+
readonly name: v.StringSchema<undefined>;
|
|
110
|
+
}, undefined>;
|
|
105
111
|
}, undefined>;
|
|
106
112
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
107
113
|
declare const disconnectEventName = "disconnect";
|
|
@@ -113,6 +119,12 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
113
119
|
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
114
120
|
}, undefined>, v.ObjectSchema<{
|
|
115
121
|
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
122
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
123
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
124
|
+
}, undefined>;
|
|
125
|
+
readonly stacks: v.ObjectSchema<{
|
|
126
|
+
readonly name: v.StringSchema<undefined>;
|
|
127
|
+
}, undefined>;
|
|
116
128
|
}, undefined>, v.ObjectSchema<{
|
|
117
129
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
118
130
|
}, undefined>], undefined>;
|
|
@@ -1614,6 +1626,26 @@ declare const getAccountRequestMessageSchema: v.ObjectSchema<{
|
|
|
1614
1626
|
}, undefined>;
|
|
1615
1627
|
type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
|
|
1616
1628
|
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>;
|
|
1617
1649
|
declare const connectMethodName = "wallet_connect";
|
|
1618
1650
|
declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
1619
1651
|
readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1642,6 +1674,14 @@ declare const connectResultSchema: v.ObjectSchema<{
|
|
|
1642
1674
|
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
1643
1675
|
}, undefined>, undefined>;
|
|
1644
1676
|
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
1677
|
+
readonly network: v.ObjectSchema<{
|
|
1678
|
+
readonly bitcoin: v.ObjectSchema<{
|
|
1679
|
+
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1680
|
+
}, undefined>;
|
|
1681
|
+
readonly stacks: v.ObjectSchema<{
|
|
1682
|
+
readonly name: v.StringSchema<undefined>;
|
|
1683
|
+
}, undefined>;
|
|
1684
|
+
}, undefined>;
|
|
1645
1685
|
}, undefined>;
|
|
1646
1686
|
type ConnectResult = v.InferOutput<typeof connectResultSchema>;
|
|
1647
1687
|
declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
@@ -1668,26 +1708,6 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1668
1708
|
}, undefined>;
|
|
1669
1709
|
type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
|
|
1670
1710
|
type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
|
|
1671
|
-
declare const getNetworkMethodName = "wallet_getNetwork";
|
|
1672
|
-
declare const getNetworkParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1673
|
-
type GetNetworkParams = v.InferOutput<typeof getNetworkParamsSchema>;
|
|
1674
|
-
declare const getNetworkResultSchema: v.ObjectSchema<{
|
|
1675
|
-
readonly bitcoin: v.ObjectSchema<{
|
|
1676
|
-
readonly name: v.PicklistSchema<readonly ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"], undefined>;
|
|
1677
|
-
}, undefined>;
|
|
1678
|
-
readonly stacks: v.ObjectSchema<{
|
|
1679
|
-
readonly name: v.StringSchema<undefined>;
|
|
1680
|
-
}, undefined>;
|
|
1681
|
-
}, undefined>;
|
|
1682
|
-
type GetNetworkResult = v.InferOutput<typeof getNetworkResultSchema>;
|
|
1683
|
-
declare const getNetworkRequestMessageSchema: v.ObjectSchema<{
|
|
1684
|
-
readonly method: v.LiteralSchema<"wallet_getNetwork", undefined>;
|
|
1685
|
-
readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
|
|
1686
|
-
readonly id: v.StringSchema<undefined>;
|
|
1687
|
-
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
1688
|
-
}, undefined>;
|
|
1689
|
-
type GetNetworkRequestMessage = v.InferOutput<typeof getNetworkRequestMessageSchema>;
|
|
1690
|
-
type GetNetwork = MethodParamsAndResult<GetNetworkParams, GetNetworkResult>;
|
|
1691
1711
|
|
|
1692
1712
|
declare const walletTypes: readonly ["software", "ledger", "keystone"];
|
|
1693
1713
|
declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
package/dist/index.js
CHANGED
|
@@ -209,7 +209,16 @@ var accountChangeSchema = v.object({
|
|
|
209
209
|
});
|
|
210
210
|
var networkChangeEventName = "networkChange";
|
|
211
211
|
var networkChangeSchema = v.object({
|
|
212
|
-
|
|
212
|
+
...getNetworkResultSchema.entries,
|
|
213
|
+
...v.object({
|
|
214
|
+
type: v.literal(networkChangeEventName)
|
|
215
|
+
}).entries
|
|
216
|
+
// bitcoin: v.object({
|
|
217
|
+
// name: v.string(),
|
|
218
|
+
// }),
|
|
219
|
+
// stacks: v.object({
|
|
220
|
+
// name: v.string(),
|
|
221
|
+
// }),
|
|
213
222
|
});
|
|
214
223
|
var disconnectEventName = "disconnect";
|
|
215
224
|
var disconnectSchema = v.object({
|
|
@@ -1044,25 +1053,6 @@ var getAccountRequestMessageSchema = v15.object({
|
|
|
1044
1053
|
id: v15.string()
|
|
1045
1054
|
}).entries
|
|
1046
1055
|
});
|
|
1047
|
-
var connectMethodName = "wallet_connect";
|
|
1048
|
-
var connectParamsSchema = v15.nullish(
|
|
1049
|
-
v15.object({
|
|
1050
|
-
permissions: v15.optional(v15.array(PermissionRequestParams)),
|
|
1051
|
-
addresses: v15.optional(v15.array(v15.enum(AddressPurpose))),
|
|
1052
|
-
message: v15.optional(
|
|
1053
|
-
v15.pipe(v15.string(), v15.maxLength(80, "The message must not exceed 80 characters."))
|
|
1054
|
-
)
|
|
1055
|
-
})
|
|
1056
|
-
);
|
|
1057
|
-
var connectResultSchema = getAccountResultSchema;
|
|
1058
|
-
var connectRequestMessageSchema = v15.object({
|
|
1059
|
-
...rpcRequestMessageSchema.entries,
|
|
1060
|
-
...v15.object({
|
|
1061
|
-
method: v15.literal(connectMethodName),
|
|
1062
|
-
params: connectParamsSchema,
|
|
1063
|
-
id: v15.string()
|
|
1064
|
-
}).entries
|
|
1065
|
-
});
|
|
1066
1056
|
var getNetworkMethodName = "wallet_getNetwork";
|
|
1067
1057
|
var getNetworkParamsSchema = v15.nullish(v15.null());
|
|
1068
1058
|
var networkType = ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"];
|
|
@@ -1082,6 +1072,30 @@ var getNetworkRequestMessageSchema = v15.object({
|
|
|
1082
1072
|
id: v15.string()
|
|
1083
1073
|
}).entries
|
|
1084
1074
|
});
|
|
1075
|
+
var connectMethodName = "wallet_connect";
|
|
1076
|
+
var connectParamsSchema = v15.nullish(
|
|
1077
|
+
v15.object({
|
|
1078
|
+
permissions: v15.optional(v15.array(PermissionRequestParams)),
|
|
1079
|
+
addresses: v15.optional(v15.array(v15.enum(AddressPurpose))),
|
|
1080
|
+
message: v15.optional(
|
|
1081
|
+
v15.pipe(v15.string(), v15.maxLength(80, "The message must not exceed 80 characters."))
|
|
1082
|
+
)
|
|
1083
|
+
})
|
|
1084
|
+
);
|
|
1085
|
+
var connectResultSchema = v15.object({
|
|
1086
|
+
id: v15.string(),
|
|
1087
|
+
addresses: v15.array(addressSchema),
|
|
1088
|
+
walletType: walletTypeSchema,
|
|
1089
|
+
network: getNetworkResultSchema
|
|
1090
|
+
});
|
|
1091
|
+
var connectRequestMessageSchema = v15.object({
|
|
1092
|
+
...rpcRequestMessageSchema.entries,
|
|
1093
|
+
...v15.object({
|
|
1094
|
+
method: v15.literal(connectMethodName),
|
|
1095
|
+
params: connectParamsSchema,
|
|
1096
|
+
id: v15.string()
|
|
1097
|
+
}).entries
|
|
1098
|
+
});
|
|
1085
1099
|
|
|
1086
1100
|
// src/request/types/runesMethods/etch.ts
|
|
1087
1101
|
var v16 = __toESM(require("valibot"));
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,16 @@ var accountChangeSchema = v.object({
|
|
|
6
6
|
});
|
|
7
7
|
var networkChangeEventName = "networkChange";
|
|
8
8
|
var networkChangeSchema = v.object({
|
|
9
|
-
|
|
9
|
+
...getNetworkResultSchema.entries,
|
|
10
|
+
...v.object({
|
|
11
|
+
type: v.literal(networkChangeEventName)
|
|
12
|
+
}).entries
|
|
13
|
+
// bitcoin: v.object({
|
|
14
|
+
// name: v.string(),
|
|
15
|
+
// }),
|
|
16
|
+
// stacks: v.object({
|
|
17
|
+
// name: v.string(),
|
|
18
|
+
// }),
|
|
10
19
|
});
|
|
11
20
|
var disconnectEventName = "disconnect";
|
|
12
21
|
var disconnectSchema = v.object({
|
|
@@ -841,25 +850,6 @@ var getAccountRequestMessageSchema = v15.object({
|
|
|
841
850
|
id: v15.string()
|
|
842
851
|
}).entries
|
|
843
852
|
});
|
|
844
|
-
var connectMethodName = "wallet_connect";
|
|
845
|
-
var connectParamsSchema = v15.nullish(
|
|
846
|
-
v15.object({
|
|
847
|
-
permissions: v15.optional(v15.array(PermissionRequestParams)),
|
|
848
|
-
addresses: v15.optional(v15.array(v15.enum(AddressPurpose))),
|
|
849
|
-
message: v15.optional(
|
|
850
|
-
v15.pipe(v15.string(), v15.maxLength(80, "The message must not exceed 80 characters."))
|
|
851
|
-
)
|
|
852
|
-
})
|
|
853
|
-
);
|
|
854
|
-
var connectResultSchema = getAccountResultSchema;
|
|
855
|
-
var connectRequestMessageSchema = v15.object({
|
|
856
|
-
...rpcRequestMessageSchema.entries,
|
|
857
|
-
...v15.object({
|
|
858
|
-
method: v15.literal(connectMethodName),
|
|
859
|
-
params: connectParamsSchema,
|
|
860
|
-
id: v15.string()
|
|
861
|
-
}).entries
|
|
862
|
-
});
|
|
863
853
|
var getNetworkMethodName = "wallet_getNetwork";
|
|
864
854
|
var getNetworkParamsSchema = v15.nullish(v15.null());
|
|
865
855
|
var networkType = ["Mainnet", "Testnet", "Testnet4", "Signet", "Regtest"];
|
|
@@ -879,6 +869,30 @@ var getNetworkRequestMessageSchema = v15.object({
|
|
|
879
869
|
id: v15.string()
|
|
880
870
|
}).entries
|
|
881
871
|
});
|
|
872
|
+
var connectMethodName = "wallet_connect";
|
|
873
|
+
var connectParamsSchema = v15.nullish(
|
|
874
|
+
v15.object({
|
|
875
|
+
permissions: v15.optional(v15.array(PermissionRequestParams)),
|
|
876
|
+
addresses: v15.optional(v15.array(v15.enum(AddressPurpose))),
|
|
877
|
+
message: v15.optional(
|
|
878
|
+
v15.pipe(v15.string(), v15.maxLength(80, "The message must not exceed 80 characters."))
|
|
879
|
+
)
|
|
880
|
+
})
|
|
881
|
+
);
|
|
882
|
+
var connectResultSchema = v15.object({
|
|
883
|
+
id: v15.string(),
|
|
884
|
+
addresses: v15.array(addressSchema),
|
|
885
|
+
walletType: walletTypeSchema,
|
|
886
|
+
network: getNetworkResultSchema
|
|
887
|
+
});
|
|
888
|
+
var connectRequestMessageSchema = v15.object({
|
|
889
|
+
...rpcRequestMessageSchema.entries,
|
|
890
|
+
...v15.object({
|
|
891
|
+
method: v15.literal(connectMethodName),
|
|
892
|
+
params: connectParamsSchema,
|
|
893
|
+
id: v15.string()
|
|
894
|
+
}).entries
|
|
895
|
+
});
|
|
882
896
|
|
|
883
897
|
// src/request/types/runesMethods/etch.ts
|
|
884
898
|
import * as v16 from "valibot";
|