@sats-connect/core 0.6.5 → 0.6.6-9ee612f
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 +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -150,6 +150,13 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
150
150
|
readonly stacks: v.ObjectSchema<{
|
|
151
151
|
readonly name: v.StringSchema<undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
154
|
+
readonly address: v.StringSchema<undefined>;
|
|
155
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
156
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
157
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
158
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
159
|
+
}, undefined>, undefined>, never>;
|
|
153
160
|
}, undefined>;
|
|
154
161
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
155
162
|
declare const disconnectEventName = "disconnect";
|
|
@@ -174,6 +181,13 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
174
181
|
readonly stacks: v.ObjectSchema<{
|
|
175
182
|
readonly name: v.StringSchema<undefined>;
|
|
176
183
|
}, undefined>;
|
|
184
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
185
|
+
readonly address: v.StringSchema<undefined>;
|
|
186
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
187
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
188
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
189
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
190
|
+
}, undefined>, undefined>, never>;
|
|
177
191
|
}, undefined>, v.ObjectSchema<{
|
|
178
192
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
179
193
|
}, undefined>], undefined>;
|
|
@@ -1087,7 +1101,7 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
|
1087
1101
|
/**
|
|
1088
1102
|
* The version of the Clarity contract.
|
|
1089
1103
|
*/
|
|
1090
|
-
readonly clarityVersion: v.OptionalSchema<v.
|
|
1104
|
+
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1091
1105
|
/**
|
|
1092
1106
|
* The post conditions to apply to the contract call.
|
|
1093
1107
|
*/
|
|
@@ -1123,7 +1137,7 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1123
1137
|
/**
|
|
1124
1138
|
* The version of the Clarity contract.
|
|
1125
1139
|
*/
|
|
1126
|
-
readonly clarityVersion: v.OptionalSchema<v.
|
|
1140
|
+
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1127
1141
|
/**
|
|
1128
1142
|
* The post conditions to apply to the contract call.
|
|
1129
1143
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -150,6 +150,13 @@ declare const networkChangeSchema: v.ObjectSchema<{
|
|
|
150
150
|
readonly stacks: v.ObjectSchema<{
|
|
151
151
|
readonly name: v.StringSchema<undefined>;
|
|
152
152
|
}, undefined>;
|
|
153
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
154
|
+
readonly address: v.StringSchema<undefined>;
|
|
155
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
156
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
157
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
158
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
159
|
+
}, undefined>, undefined>, never>;
|
|
153
160
|
}, undefined>;
|
|
154
161
|
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
155
162
|
declare const disconnectEventName = "disconnect";
|
|
@@ -174,6 +181,13 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
|
174
181
|
readonly stacks: v.ObjectSchema<{
|
|
175
182
|
readonly name: v.StringSchema<undefined>;
|
|
176
183
|
}, undefined>;
|
|
184
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
185
|
+
readonly address: v.StringSchema<undefined>;
|
|
186
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
187
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
188
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
189
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
|
|
190
|
+
}, undefined>, undefined>, never>;
|
|
177
191
|
}, undefined>, v.ObjectSchema<{
|
|
178
192
|
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
179
193
|
}, undefined>], undefined>;
|
|
@@ -1087,7 +1101,7 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
|
1087
1101
|
/**
|
|
1088
1102
|
* The version of the Clarity contract.
|
|
1089
1103
|
*/
|
|
1090
|
-
readonly clarityVersion: v.OptionalSchema<v.
|
|
1104
|
+
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1091
1105
|
/**
|
|
1092
1106
|
* The post conditions to apply to the contract call.
|
|
1093
1107
|
*/
|
|
@@ -1123,7 +1137,7 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1123
1137
|
/**
|
|
1124
1138
|
* The version of the Clarity contract.
|
|
1125
1139
|
*/
|
|
1126
|
-
readonly clarityVersion: v.OptionalSchema<v.
|
|
1140
|
+
readonly clarityVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
1127
1141
|
/**
|
|
1128
1142
|
* The post conditions to apply to the contract call.
|
|
1129
1143
|
*/
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,9 @@ __export(src_exports, {
|
|
|
205
205
|
});
|
|
206
206
|
module.exports = __toCommonJS(src_exports);
|
|
207
207
|
|
|
208
|
+
// src/provider/types.ts
|
|
209
|
+
var v4 = __toESM(require("valibot"));
|
|
210
|
+
|
|
208
211
|
// src/addresses/index.ts
|
|
209
212
|
var import_jsontokens = require("jsontokens");
|
|
210
213
|
|
|
@@ -311,7 +314,6 @@ var rpcResponseMessageSchema = v3.union([
|
|
|
311
314
|
]);
|
|
312
315
|
|
|
313
316
|
// src/provider/types.ts
|
|
314
|
-
var v4 = __toESM(require("valibot"));
|
|
315
317
|
var accountChangeEventName = "accountChange";
|
|
316
318
|
var accountChangeSchema = v4.object({
|
|
317
319
|
type: v4.literal(accountChangeEventName),
|
|
@@ -325,7 +327,8 @@ var networkChangeSchema = v4.object({
|
|
|
325
327
|
}),
|
|
326
328
|
stacks: v4.object({
|
|
327
329
|
name: v4.string()
|
|
328
|
-
})
|
|
330
|
+
}),
|
|
331
|
+
addresses: v4.optional(v4.array(addressSchema))
|
|
329
332
|
});
|
|
330
333
|
var disconnectEventName = "disconnect";
|
|
331
334
|
var disconnectSchema = v4.object({
|
|
@@ -458,7 +461,7 @@ var stxDeployContractParamsSchema = v6.object({
|
|
|
458
461
|
/**
|
|
459
462
|
* The version of the Clarity contract.
|
|
460
463
|
*/
|
|
461
|
-
clarityVersion: v6.optional(v6.
|
|
464
|
+
clarityVersion: v6.optional(v6.number()),
|
|
462
465
|
/**
|
|
463
466
|
* The post conditions to apply to the contract call.
|
|
464
467
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/provider/types.ts
|
|
2
|
+
import * as v4 from "valibot";
|
|
3
|
+
|
|
1
4
|
// src/addresses/index.ts
|
|
2
5
|
import { createUnsecuredToken } from "jsontokens";
|
|
3
6
|
|
|
@@ -104,7 +107,6 @@ var rpcResponseMessageSchema = v3.union([
|
|
|
104
107
|
]);
|
|
105
108
|
|
|
106
109
|
// src/provider/types.ts
|
|
107
|
-
import * as v4 from "valibot";
|
|
108
110
|
var accountChangeEventName = "accountChange";
|
|
109
111
|
var accountChangeSchema = v4.object({
|
|
110
112
|
type: v4.literal(accountChangeEventName),
|
|
@@ -118,7 +120,8 @@ var networkChangeSchema = v4.object({
|
|
|
118
120
|
}),
|
|
119
121
|
stacks: v4.object({
|
|
120
122
|
name: v4.string()
|
|
121
|
-
})
|
|
123
|
+
}),
|
|
124
|
+
addresses: v4.optional(v4.array(addressSchema))
|
|
122
125
|
});
|
|
123
126
|
var disconnectEventName = "disconnect";
|
|
124
127
|
var disconnectSchema = v4.object({
|
|
@@ -251,7 +254,7 @@ var stxDeployContractParamsSchema = v6.object({
|
|
|
251
254
|
/**
|
|
252
255
|
* The version of the Clarity contract.
|
|
253
256
|
*/
|
|
254
|
-
clarityVersion: v6.optional(v6.
|
|
257
|
+
clarityVersion: v6.optional(v6.number()),
|
|
255
258
|
/**
|
|
256
259
|
* The post conditions to apply to the contract call.
|
|
257
260
|
*/
|