@sats-connect/core 0.5.8-693f6a6 → 0.5.8-9ce3fea

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,7 +859,6 @@ 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>;
863
862
  }, undefined>, undefined>;
864
863
  }, undefined>;
865
864
  type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
@@ -981,6 +980,14 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
981
980
  * ```
982
981
  */
983
982
  readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
983
+ /**
984
+ * The post conditions to apply to the contract call.
985
+ */
986
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
987
+ /**
988
+ * The mode to apply to the post conditions.
989
+ */
990
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
984
991
  }, undefined>;
985
992
  type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
986
993
  declare const stxCallContractResultSchema: v.ObjectSchema<{
@@ -1025,6 +1032,14 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1025
1032
  * ```
1026
1033
  */
1027
1034
  readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1035
+ /**
1036
+ * The post conditions to apply to the contract call.
1037
+ */
1038
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1039
+ /**
1040
+ * The mode to apply to the post conditions.
1041
+ */
1042
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1028
1043
  }, undefined>;
1029
1044
  readonly id: v.StringSchema<undefined>;
1030
1045
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
@@ -1046,6 +1061,14 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
1046
1061
  * The version of the Clarity contract.
1047
1062
  */
1048
1063
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1064
+ /**
1065
+ * The post conditions to apply to the contract call.
1066
+ */
1067
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1068
+ /**
1069
+ * The mode to apply to the post conditions.
1070
+ */
1071
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1049
1072
  }, undefined>;
1050
1073
  type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
1051
1074
  declare const stxDeployContractResultSchema: v.ObjectSchema<{
@@ -1074,6 +1097,14 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
1074
1097
  * The version of the Clarity contract.
1075
1098
  */
1076
1099
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1100
+ /**
1101
+ * The post conditions to apply to the contract call.
1102
+ */
1103
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1104
+ /**
1105
+ * The mode to apply to the post conditions.
1106
+ */
1107
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1077
1108
  }, undefined>;
1078
1109
  readonly id: v.StringSchema<undefined>;
1079
1110
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
package/dist/index.d.ts CHANGED
@@ -859,7 +859,6 @@ 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>;
863
862
  }, undefined>, undefined>;
864
863
  }, undefined>;
865
864
  type RunesGetBalanceResult = v.InferOutput<typeof runesGetBalanceResultSchema>;
@@ -981,6 +980,14 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
981
980
  * ```
982
981
  */
983
982
  readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
983
+ /**
984
+ * The post conditions to apply to the contract call.
985
+ */
986
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
987
+ /**
988
+ * The mode to apply to the post conditions.
989
+ */
990
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
984
991
  }, undefined>;
985
992
  type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
986
993
  declare const stxCallContractResultSchema: v.ObjectSchema<{
@@ -1025,6 +1032,14 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
1025
1032
  * ```
1026
1033
  */
1027
1034
  readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1035
+ /**
1036
+ * The post conditions to apply to the contract call.
1037
+ */
1038
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1039
+ /**
1040
+ * The mode to apply to the post conditions.
1041
+ */
1042
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1028
1043
  }, undefined>;
1029
1044
  readonly id: v.StringSchema<undefined>;
1030
1045
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
@@ -1046,6 +1061,14 @@ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
1046
1061
  * The version of the Clarity contract.
1047
1062
  */
1048
1063
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1064
+ /**
1065
+ * The post conditions to apply to the contract call.
1066
+ */
1067
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1068
+ /**
1069
+ * The mode to apply to the post conditions.
1070
+ */
1071
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1049
1072
  }, undefined>;
1050
1073
  type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
1051
1074
  declare const stxDeployContractResultSchema: v.ObjectSchema<{
@@ -1074,6 +1097,14 @@ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
1074
1097
  * The version of the Clarity contract.
1075
1098
  */
1076
1099
  readonly clarityVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
1100
+ /**
1101
+ * The post conditions to apply to the contract call.
1102
+ */
1103
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1104
+ /**
1105
+ * The mode to apply to the post conditions.
1106
+ */
1107
+ readonly postConditionMode: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"allow", undefined>, v.LiteralSchema<"deny", undefined>], undefined>, never>;
1077
1108
  }, undefined>;
1078
1109
  readonly id: v.StringSchema<undefined>;
1079
1110
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
package/dist/index.js CHANGED
@@ -357,7 +357,15 @@ var stxCallContractParamsSchema = v3.object({
357
357
  * const hexArgs = functionArgs.map(cvToHex);
358
358
  * ```
359
359
  */
360
- arguments: v3.optional(v3.array(v3.string()))
360
+ arguments: v3.optional(v3.array(v3.string())),
361
+ /**
362
+ * The post conditions to apply to the contract call.
363
+ */
364
+ postConditions: v3.optional(v3.array(v3.string())),
365
+ /**
366
+ * The mode to apply to the post conditions.
367
+ */
368
+ postConditionMode: v3.optional(v3.union([v3.literal("allow"), v3.literal("deny")]))
361
369
  });
362
370
  var stxCallContractResultSchema = v3.object({
363
371
  /**
@@ -393,7 +401,15 @@ var stxDeployContractParamsSchema = v4.object({
393
401
  /**
394
402
  * The version of the Clarity contract.
395
403
  */
396
- clarityVersion: v4.optional(v4.string())
404
+ clarityVersion: v4.optional(v4.string()),
405
+ /**
406
+ * The post conditions to apply to the contract call.
407
+ */
408
+ postConditions: v4.optional(v4.array(v4.string())),
409
+ /**
410
+ * The mode to apply to the post conditions.
411
+ */
412
+ postConditionMode: v4.optional(v4.union([v4.literal("allow"), v4.literal("deny")]))
397
413
  });
398
414
  var stxDeployContractResultSchema = v4.object({
399
415
  /**
@@ -1173,8 +1189,7 @@ var runesGetBalanceResultSchema = v17.object({
1173
1189
  amount: v17.string(),
1174
1190
  divisibility: v17.number(),
1175
1191
  symbol: v17.string(),
1176
- inscriptionId: v17.nullish(v17.string()),
1177
- spendableBalance: v17.string()
1192
+ inscriptionId: v17.nullish(v17.string())
1178
1193
  })
1179
1194
  )
1180
1195
  });
package/dist/index.mjs CHANGED
@@ -150,7 +150,15 @@ var stxCallContractParamsSchema = v3.object({
150
150
  * const hexArgs = functionArgs.map(cvToHex);
151
151
  * ```
152
152
  */
153
- arguments: v3.optional(v3.array(v3.string()))
153
+ arguments: v3.optional(v3.array(v3.string())),
154
+ /**
155
+ * The post conditions to apply to the contract call.
156
+ */
157
+ postConditions: v3.optional(v3.array(v3.string())),
158
+ /**
159
+ * The mode to apply to the post conditions.
160
+ */
161
+ postConditionMode: v3.optional(v3.union([v3.literal("allow"), v3.literal("deny")]))
154
162
  });
155
163
  var stxCallContractResultSchema = v3.object({
156
164
  /**
@@ -186,7 +194,15 @@ var stxDeployContractParamsSchema = v4.object({
186
194
  /**
187
195
  * The version of the Clarity contract.
188
196
  */
189
- clarityVersion: v4.optional(v4.string())
197
+ clarityVersion: v4.optional(v4.string()),
198
+ /**
199
+ * The post conditions to apply to the contract call.
200
+ */
201
+ postConditions: v4.optional(v4.array(v4.string())),
202
+ /**
203
+ * The mode to apply to the post conditions.
204
+ */
205
+ postConditionMode: v4.optional(v4.union([v4.literal("allow"), v4.literal("deny")]))
190
206
  });
191
207
  var stxDeployContractResultSchema = v4.object({
192
208
  /**
@@ -966,8 +982,7 @@ var runesGetBalanceResultSchema = v17.object({
966
982
  amount: v17.string(),
967
983
  divisibility: v17.number(),
968
984
  symbol: v17.string(),
969
- inscriptionId: v17.nullish(v17.string()),
970
- spendableBalance: v17.string()
985
+ inscriptionId: v17.nullish(v17.string())
971
986
  })
972
987
  )
973
988
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.5.8-693f6a6",
3
+ "version": "0.5.8-9ce3fea",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",