@sats-connect/core 0.5.8-2731ce5 → 0.5.8-693f6a6
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 +3 -42
- package/dist/index.d.ts +3 -42
- package/dist/index.js +4 -23
- package/dist/index.mjs +4 -23
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -859,6 +859,7 @@ declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
|
859
859
|
readonly divisibility: v.NumberSchema<undefined>;
|
|
860
860
|
readonly symbol: v.StringSchema<undefined>;
|
|
861
861
|
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
|
|
862
|
+
readonly spendableBalance: v.StringSchema<undefined>;
|
|
862
863
|
}, undefined>, undefined>;
|
|
863
864
|
}, undefined>;
|
|
864
865
|
type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
|
|
@@ -965,10 +966,6 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
965
966
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
966
967
|
*/
|
|
967
968
|
readonly functionName: v.StringSchema<undefined>;
|
|
968
|
-
/**
|
|
969
|
-
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
970
|
-
*/
|
|
971
|
-
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
972
969
|
/**
|
|
973
970
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
974
971
|
* strings of Clarity values.
|
|
@@ -983,15 +980,7 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
983
980
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
984
981
|
* ```
|
|
985
982
|
*/
|
|
986
|
-
readonly
|
|
987
|
-
/**
|
|
988
|
-
* The post conditions to apply to the contract call.
|
|
989
|
-
*/
|
|
990
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
991
|
-
/**
|
|
992
|
-
* The mode to apply to the post conditions.
|
|
993
|
-
*/
|
|
994
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
983
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
995
984
|
}, undefined>;
|
|
996
985
|
type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
|
|
997
986
|
declare const stxCallContractResultSchema: v.ObjectSchema<{
|
|
@@ -1021,10 +1010,6 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1021
1010
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
1022
1011
|
*/
|
|
1023
1012
|
readonly functionName: v.StringSchema<undefined>;
|
|
1024
|
-
/**
|
|
1025
|
-
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
1026
|
-
*/
|
|
1027
|
-
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1028
1013
|
/**
|
|
1029
1014
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
1030
1015
|
* strings of Clarity values.
|
|
@@ -1039,15 +1024,7 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1039
1024
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
1040
1025
|
* ```
|
|
1041
1026
|
*/
|
|
1042
|
-
readonly
|
|
1043
|
-
/**
|
|
1044
|
-
* The post conditions to apply to the contract call.
|
|
1045
|
-
*/
|
|
1046
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1047
|
-
/**
|
|
1048
|
-
* The mode to apply to the post conditions.
|
|
1049
|
-
*/
|
|
1050
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
1027
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1051
1028
|
}, undefined>;
|
|
1052
1029
|
readonly id: v.StringSchema<undefined>;
|
|
1053
1030
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1069,14 +1046,6 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
|
1069
1046
|
* The version of the Clarity contract.
|
|
1070
1047
|
*/
|
|
1071
1048
|
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1072
|
-
/**
|
|
1073
|
-
* The post conditions to apply to the contract call.
|
|
1074
|
-
*/
|
|
1075
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1076
|
-
/**
|
|
1077
|
-
* The mode to apply to the post conditions.
|
|
1078
|
-
*/
|
|
1079
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
1080
1049
|
}, undefined>;
|
|
1081
1050
|
type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
|
|
1082
1051
|
declare const stxDeployContractResultSchema: v.ObjectSchema<{
|
|
@@ -1105,14 +1074,6 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1105
1074
|
* The version of the Clarity contract.
|
|
1106
1075
|
*/
|
|
1107
1076
|
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1108
|
-
/**
|
|
1109
|
-
* The post conditions to apply to the contract call.
|
|
1110
|
-
*/
|
|
1111
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1112
|
-
/**
|
|
1113
|
-
* The mode to apply to the post conditions.
|
|
1114
|
-
*/
|
|
1115
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
1116
1077
|
}, undefined>;
|
|
1117
1078
|
readonly id: v.StringSchema<undefined>;
|
|
1118
1079
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -859,6 +859,7 @@ declare const runesGetBalanceResultSchema: v.ObjectSchema<{
|
|
|
859
859
|
readonly divisibility: v.NumberSchema<undefined>;
|
|
860
860
|
readonly symbol: v.StringSchema<undefined>;
|
|
861
861
|
readonly inscriptionId: v.NullishSchema<v.StringSchema<undefined>, never>;
|
|
862
|
+
readonly spendableBalance: v.StringSchema<undefined>;
|
|
862
863
|
}, undefined>, undefined>;
|
|
863
864
|
}, undefined>;
|
|
864
865
|
type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
|
|
@@ -965,10 +966,6 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
965
966
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
966
967
|
*/
|
|
967
968
|
readonly functionName: v.StringSchema<undefined>;
|
|
968
|
-
/**
|
|
969
|
-
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
970
|
-
*/
|
|
971
|
-
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
972
969
|
/**
|
|
973
970
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
974
971
|
* strings of Clarity values.
|
|
@@ -983,15 +980,7 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
983
980
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
984
981
|
* ```
|
|
985
982
|
*/
|
|
986
|
-
readonly
|
|
987
|
-
/**
|
|
988
|
-
* The post conditions to apply to the contract call.
|
|
989
|
-
*/
|
|
990
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
991
|
-
/**
|
|
992
|
-
* The mode to apply to the post conditions.
|
|
993
|
-
*/
|
|
994
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
983
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
995
984
|
}, undefined>;
|
|
996
985
|
type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
|
|
997
986
|
declare const stxCallContractResultSchema: v.ObjectSchema<{
|
|
@@ -1021,10 +1010,6 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1021
1010
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
1022
1011
|
*/
|
|
1023
1012
|
readonly functionName: v.StringSchema<undefined>;
|
|
1024
|
-
/**
|
|
1025
|
-
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
1026
|
-
*/
|
|
1027
|
-
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1028
1013
|
/**
|
|
1029
1014
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
1030
1015
|
* strings of Clarity values.
|
|
@@ -1039,15 +1024,7 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1039
1024
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
1040
1025
|
* ```
|
|
1041
1026
|
*/
|
|
1042
|
-
readonly
|
|
1043
|
-
/**
|
|
1044
|
-
* The post conditions to apply to the contract call.
|
|
1045
|
-
*/
|
|
1046
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1047
|
-
/**
|
|
1048
|
-
* The mode to apply to the post conditions.
|
|
1049
|
-
*/
|
|
1050
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
1027
|
+
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1051
1028
|
}, undefined>;
|
|
1052
1029
|
readonly id: v.StringSchema<undefined>;
|
|
1053
1030
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1069,14 +1046,6 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
|
|
|
1069
1046
|
* The version of the Clarity contract.
|
|
1070
1047
|
*/
|
|
1071
1048
|
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1072
|
-
/**
|
|
1073
|
-
* The post conditions to apply to the contract call.
|
|
1074
|
-
*/
|
|
1075
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1076
|
-
/**
|
|
1077
|
-
* The mode to apply to the post conditions.
|
|
1078
|
-
*/
|
|
1079
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
1080
1049
|
}, undefined>;
|
|
1081
1050
|
type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
|
|
1082
1051
|
declare const stxDeployContractResultSchema: v.ObjectSchema<{
|
|
@@ -1105,14 +1074,6 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
1105
1074
|
* The version of the Clarity contract.
|
|
1106
1075
|
*/
|
|
1107
1076
|
readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
1108
|
-
/**
|
|
1109
|
-
* The post conditions to apply to the contract call.
|
|
1110
|
-
*/
|
|
1111
|
-
readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
1112
|
-
/**
|
|
1113
|
-
* The mode to apply to the post conditions.
|
|
1114
|
-
*/
|
|
1115
|
-
readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
|
|
1116
1077
|
}, undefined>;
|
|
1117
1078
|
readonly id: v.StringSchema<undefined>;
|
|
1118
1079
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
package/dist/index.js
CHANGED
|
@@ -343,10 +343,6 @@ var stxCallContractParamsSchema = v3.object({
|
|
|
343
343
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
344
344
|
*/
|
|
345
345
|
functionName: v3.string(),
|
|
346
|
-
/**
|
|
347
|
-
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
348
|
-
*/
|
|
349
|
-
arguments: v3.optional(v3.array(v3.string())),
|
|
350
346
|
/**
|
|
351
347
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
352
348
|
* strings of Clarity values.
|
|
@@ -361,15 +357,7 @@ var stxCallContractParamsSchema = v3.object({
|
|
|
361
357
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
362
358
|
* ```
|
|
363
359
|
*/
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* The post conditions to apply to the contract call.
|
|
367
|
-
*/
|
|
368
|
-
postConditions: v3.optional(v3.array(v3.string())),
|
|
369
|
-
/**
|
|
370
|
-
* The mode to apply to the post conditions.
|
|
371
|
-
*/
|
|
372
|
-
postConditionMode: v3.optional(v3.union([v3.literal("allow"), v3.literal("deny")]))
|
|
360
|
+
arguments: v3.optional(v3.array(v3.string()))
|
|
373
361
|
});
|
|
374
362
|
var stxCallContractResultSchema = v3.object({
|
|
375
363
|
/**
|
|
@@ -405,15 +393,7 @@ var stxDeployContractParamsSchema = v4.object({
|
|
|
405
393
|
/**
|
|
406
394
|
* The version of the Clarity contract.
|
|
407
395
|
*/
|
|
408
|
-
clarityVersion: v4.optional(v4.string())
|
|
409
|
-
/**
|
|
410
|
-
* The post conditions to apply to the contract call.
|
|
411
|
-
*/
|
|
412
|
-
postConditions: v4.optional(v4.array(v4.string())),
|
|
413
|
-
/**
|
|
414
|
-
* The mode to apply to the post conditions.
|
|
415
|
-
*/
|
|
416
|
-
postConditionMode: v4.optional(v4.union([v4.literal("allow"), v4.literal("deny")]))
|
|
396
|
+
clarityVersion: v4.optional(v4.string())
|
|
417
397
|
});
|
|
418
398
|
var stxDeployContractResultSchema = v4.object({
|
|
419
399
|
/**
|
|
@@ -1193,7 +1173,8 @@ var runesGetBalanceResultSchema = v17.object({
|
|
|
1193
1173
|
amount: v17.string(),
|
|
1194
1174
|
divisibility: v17.number(),
|
|
1195
1175
|
symbol: v17.string(),
|
|
1196
|
-
inscriptionId: v17.nullish(v17.string())
|
|
1176
|
+
inscriptionId: v17.nullish(v17.string()),
|
|
1177
|
+
spendableBalance: v17.string()
|
|
1197
1178
|
})
|
|
1198
1179
|
)
|
|
1199
1180
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -136,10 +136,6 @@ var stxCallContractParamsSchema = v3.object({
|
|
|
136
136
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
137
137
|
*/
|
|
138
138
|
functionName: v3.string(),
|
|
139
|
-
/**
|
|
140
|
-
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
141
|
-
*/
|
|
142
|
-
arguments: v3.optional(v3.array(v3.string())),
|
|
143
139
|
/**
|
|
144
140
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
145
141
|
* strings of Clarity values.
|
|
@@ -154,15 +150,7 @@ var stxCallContractParamsSchema = v3.object({
|
|
|
154
150
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
155
151
|
* ```
|
|
156
152
|
*/
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* The post conditions to apply to the contract call.
|
|
160
|
-
*/
|
|
161
|
-
postConditions: v3.optional(v3.array(v3.string())),
|
|
162
|
-
/**
|
|
163
|
-
* The mode to apply to the post conditions.
|
|
164
|
-
*/
|
|
165
|
-
postConditionMode: v3.optional(v3.union([v3.literal("allow"), v3.literal("deny")]))
|
|
153
|
+
arguments: v3.optional(v3.array(v3.string()))
|
|
166
154
|
});
|
|
167
155
|
var stxCallContractResultSchema = v3.object({
|
|
168
156
|
/**
|
|
@@ -198,15 +186,7 @@ var stxDeployContractParamsSchema = v4.object({
|
|
|
198
186
|
/**
|
|
199
187
|
* The version of the Clarity contract.
|
|
200
188
|
*/
|
|
201
|
-
clarityVersion: v4.optional(v4.string())
|
|
202
|
-
/**
|
|
203
|
-
* The post conditions to apply to the contract call.
|
|
204
|
-
*/
|
|
205
|
-
postConditions: v4.optional(v4.array(v4.string())),
|
|
206
|
-
/**
|
|
207
|
-
* The mode to apply to the post conditions.
|
|
208
|
-
*/
|
|
209
|
-
postConditionMode: v4.optional(v4.union([v4.literal("allow"), v4.literal("deny")]))
|
|
189
|
+
clarityVersion: v4.optional(v4.string())
|
|
210
190
|
});
|
|
211
191
|
var stxDeployContractResultSchema = v4.object({
|
|
212
192
|
/**
|
|
@@ -986,7 +966,8 @@ var runesGetBalanceResultSchema = v17.object({
|
|
|
986
966
|
amount: v17.string(),
|
|
987
967
|
divisibility: v17.number(),
|
|
988
968
|
symbol: v17.string(),
|
|
989
|
-
inscriptionId: v17.nullish(v17.string())
|
|
969
|
+
inscriptionId: v17.nullish(v17.string()),
|
|
970
|
+
spendableBalance: v17.string()
|
|
990
971
|
})
|
|
991
972
|
)
|
|
992
973
|
});
|