@sats-connect/core 0.5.8 → 0.6.0-66c539e

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 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,6 +966,10 @@ 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>;
969
+ /**
970
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
971
+ */
972
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
968
973
  /**
969
974
  * The function's arguments. The arguments are expected to be hex-encoded
970
975
  * strings of Clarity values.
@@ -979,7 +984,15 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
979
984
  * const hexArgs = functionArgs.map(cvToHex);
980
985
  * ```
981
986
  */
982
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
987
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
988
+ /**
989
+ * The post conditions to apply to the contract call.
990
+ */
991
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
992
+ /**
993
+ * The mode to apply to the post conditions.
994
+ */
995
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
983
996
  }, undefined>;
984
997
  type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
985
998
  declare const stxCallContractResultSchema: v.ObjectSchema<{
@@ -1009,6 +1022,10 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1009
1022
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1010
1023
  */
1011
1024
  readonly functionName: v.StringSchema<undefined>;
1025
+ /**
1026
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1027
+ */
1028
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1012
1029
  /**
1013
1030
  * The function's arguments. The arguments are expected to be hex-encoded
1014
1031
  * strings of Clarity values.
@@ -1023,7 +1040,15 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1023
1040
  * const hexArgs = functionArgs.map(cvToHex);
1024
1041
  * ```
1025
1042
  */
1026
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1043
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1044
+ /**
1045
+ * The post conditions to apply to the contract call.
1046
+ */
1047
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1048
+ /**
1049
+ * The mode to apply to the post conditions.
1050
+ */
1051
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1027
1052
  }, undefined>;
1028
1053
  readonly id: v.StringSchema<undefined>;
1029
1054
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
@@ -1045,6 +1070,14 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
1045
1070
  * The version of the Clarity contract.
1046
1071
  */
1047
1072
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1073
+ /**
1074
+ * The post conditions to apply to the contract call.
1075
+ */
1076
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1077
+ /**
1078
+ * The mode to apply to the post conditions.
1079
+ */
1080
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1048
1081
  }, undefined>;
1049
1082
  type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
1050
1083
  declare const stxDeployContractResultSchema: v.ObjectSchema<{
@@ -1073,6 +1106,14 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
1073
1106
  * The version of the Clarity contract.
1074
1107
  */
1075
1108
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1109
+ /**
1110
+ * The post conditions to apply to the contract call.
1111
+ */
1112
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1113
+ /**
1114
+ * The mode to apply to the post conditions.
1115
+ */
1116
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1076
1117
  }, undefined>;
1077
1118
  readonly id: v.StringSchema<undefined>;
1078
1119
  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,6 +966,10 @@ 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>;
969
+ /**
970
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
971
+ */
972
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
968
973
  /**
969
974
  * The function's arguments. The arguments are expected to be hex-encoded
970
975
  * strings of Clarity values.
@@ -979,7 +984,15 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
979
984
  * const hexArgs = functionArgs.map(cvToHex);
980
985
  * ```
981
986
  */
982
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
987
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
988
+ /**
989
+ * The post conditions to apply to the contract call.
990
+ */
991
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
992
+ /**
993
+ * The mode to apply to the post conditions.
994
+ */
995
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
983
996
  }, undefined>;
984
997
  type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
985
998
  declare const stxCallContractResultSchema: v.ObjectSchema<{
@@ -1009,6 +1022,10 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1009
1022
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1010
1023
  */
1011
1024
  readonly functionName: v.StringSchema<undefined>;
1025
+ /**
1026
+ * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1027
+ */
1028
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1012
1029
  /**
1013
1030
  * The function's arguments. The arguments are expected to be hex-encoded
1014
1031
  * strings of Clarity values.
@@ -1023,7 +1040,15 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1023
1040
  * const hexArgs = functionArgs.map(cvToHex);
1024
1041
  * ```
1025
1042
  */
1026
- readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1043
+ readonly functionArgs: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1044
+ /**
1045
+ * The post conditions to apply to the contract call.
1046
+ */
1047
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1048
+ /**
1049
+ * The mode to apply to the post conditions.
1050
+ */
1051
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1027
1052
  }, undefined>;
1028
1053
  readonly id: v.StringSchema<undefined>;
1029
1054
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
@@ -1045,6 +1070,14 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
1045
1070
  * The version of the Clarity contract.
1046
1071
  */
1047
1072
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1073
+ /**
1074
+ * The post conditions to apply to the contract call.
1075
+ */
1076
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1077
+ /**
1078
+ * The mode to apply to the post conditions.
1079
+ */
1080
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1048
1081
  }, undefined>;
1049
1082
  type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
1050
1083
  declare const stxDeployContractResultSchema: v.ObjectSchema<{
@@ -1073,6 +1106,14 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
1073
1106
  * The version of the Clarity contract.
1074
1107
  */
1075
1108
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1109
+ /**
1110
+ * The post conditions to apply to the contract call.
1111
+ */
1112
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1113
+ /**
1114
+ * The mode to apply to the post conditions.
1115
+ */
1116
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1076
1117
  }, undefined>;
1077
1118
  readonly id: v.StringSchema<undefined>;
1078
1119
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
package/dist/index.js CHANGED
@@ -343,6 +343,10 @@ 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())),
346
350
  /**
347
351
  * The function's arguments. The arguments are expected to be hex-encoded
348
352
  * strings of Clarity values.
@@ -357,7 +361,15 @@ var stxCallContractParamsSchema = v3.object({
357
361
  * const hexArgs = functionArgs.map(cvToHex);
358
362
  * ```
359
363
  */
360
- arguments: v3.optional(v3.array(v3.string()))
364
+ functionArgs: v3.optional(v3.array(v3.string())),
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")]))
361
373
  });
362
374
  var stxCallContractResultSchema = v3.object({
363
375
  /**
@@ -393,7 +405,15 @@ var stxDeployContractParamsSchema = v4.object({
393
405
  /**
394
406
  * The version of the Clarity contract.
395
407
  */
396
- clarityVersion: v4.optional(v4.string())
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")]))
397
417
  });
398
418
  var stxDeployContractResultSchema = v4.object({
399
419
  /**
@@ -1173,7 +1193,8 @@ var runesGetBalanceResultSchema = v17.object({
1173
1193
  amount: v17.string(),
1174
1194
  divisibility: v17.number(),
1175
1195
  symbol: v17.string(),
1176
- inscriptionId: v17.nullish(v17.string())
1196
+ inscriptionId: v17.nullish(v17.string()),
1197
+ spendableBalance: v17.string()
1177
1198
  })
1178
1199
  )
1179
1200
  });
package/dist/index.mjs CHANGED
@@ -136,6 +136,10 @@ 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())),
139
143
  /**
140
144
  * The function's arguments. The arguments are expected to be hex-encoded
141
145
  * strings of Clarity values.
@@ -150,7 +154,15 @@ var stxCallContractParamsSchema = v3.object({
150
154
  * const hexArgs = functionArgs.map(cvToHex);
151
155
  * ```
152
156
  */
153
- arguments: v3.optional(v3.array(v3.string()))
157
+ functionArgs: v3.optional(v3.array(v3.string())),
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")]))
154
166
  });
155
167
  var stxCallContractResultSchema = v3.object({
156
168
  /**
@@ -186,7 +198,15 @@ var stxDeployContractParamsSchema = v4.object({
186
198
  /**
187
199
  * The version of the Clarity contract.
188
200
  */
189
- clarityVersion: v4.optional(v4.string())
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")]))
190
210
  });
191
211
  var stxDeployContractResultSchema = v4.object({
192
212
  /**
@@ -966,7 +986,8 @@ var runesGetBalanceResultSchema = v17.object({
966
986
  amount: v17.string(),
967
987
  divisibility: v17.number(),
968
988
  symbol: v17.string(),
969
- inscriptionId: v17.nullish(v17.string())
989
+ inscriptionId: v17.nullish(v17.string()),
990
+ spendableBalance: v17.string()
970
991
  })
971
992
  )
972
993
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.5.8",
3
+ "version": "0.6.0-66c539e",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",