@sats-connect/core 0.11.0-dd369cf → 0.12.0-9c448ee

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
@@ -1026,8 +1026,9 @@ type SparkFlashnetExecuteClawbackParams = v.InferOutput<typeof sparkFlashnetExec
1026
1026
  declare const sparkFlashnetExecuteClawbackResultSchema: v.ObjectSchema<{
1027
1027
  readonly requestId: v.StringSchema<undefined>;
1028
1028
  readonly accepted: v.BooleanSchema<undefined>;
1029
- readonly internalRequestId: v.StringSchema<undefined>;
1030
- readonly sparkStatusTrackingId: v.StringSchema<undefined>;
1029
+ readonly internalRequestId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1030
+ readonly sparkStatusTrackingId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
1032
  }, undefined>;
1032
1033
  type SparkFlashnetExecuteClawbackResult = v.InferOutput<typeof sparkFlashnetExecuteClawbackResultSchema>;
1033
1034
  declare const sparkFlashnetExecuteClawbackRequestMessageSchema: v.ObjectSchema<{
@@ -1053,7 +1054,7 @@ declare const sparkFlashnetExecuteRouteSwapParamsSchema: v.ObjectSchema<{
1053
1054
  readonly initialAssetAddress: v.StringSchema<undefined>;
1054
1055
  readonly inputAmount: v.StringSchema<undefined>;
1055
1056
  readonly maxRouteSlippageBps: v.StringSchema<undefined>;
1056
- readonly minAmountOut: v.StringSchema<undefined>;
1057
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1057
1058
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1058
1059
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1059
1060
  }, undefined>;
@@ -1079,7 +1080,7 @@ declare const sparkFlashnetExecuteRouteSwapRequestMessageSchema: v.ObjectSchema<
1079
1080
  readonly initialAssetAddress: v.StringSchema<undefined>;
1080
1081
  readonly inputAmount: v.StringSchema<undefined>;
1081
1082
  readonly maxRouteSlippageBps: v.StringSchema<undefined>;
1082
- readonly minAmountOut: v.StringSchema<undefined>;
1083
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1083
1084
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1084
1085
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1085
1086
  }, undefined>;
@@ -1096,7 +1097,7 @@ declare const sparkFlashnetExecuteSwapParamsSchema: v.ObjectSchema<{
1096
1097
  readonly assetOutAddress: v.StringSchema<undefined>;
1097
1098
  readonly amountIn: v.StringSchema<undefined>;
1098
1099
  readonly maxSlippageBps: v.NumberSchema<undefined>;
1099
- readonly minAmountOut: v.StringSchema<undefined>;
1100
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1100
1101
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1101
1102
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1102
1103
  }, undefined>;
@@ -1121,7 +1122,7 @@ declare const sparkFlashnetExecuteSwapRequestMessageSchema: v.ObjectSchema<{
1121
1122
  readonly assetOutAddress: v.StringSchema<undefined>;
1122
1123
  readonly amountIn: v.StringSchema<undefined>;
1123
1124
  readonly maxSlippageBps: v.NumberSchema<undefined>;
1124
- readonly minAmountOut: v.StringSchema<undefined>;
1125
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1125
1126
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1126
1127
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1127
1128
  }, undefined>;
package/dist/index.d.ts CHANGED
@@ -1026,8 +1026,9 @@ type SparkFlashnetExecuteClawbackParams = v.InferOutput<typeof sparkFlashnetExec
1026
1026
  declare const sparkFlashnetExecuteClawbackResultSchema: v.ObjectSchema<{
1027
1027
  readonly requestId: v.StringSchema<undefined>;
1028
1028
  readonly accepted: v.BooleanSchema<undefined>;
1029
- readonly internalRequestId: v.StringSchema<undefined>;
1030
- readonly sparkStatusTrackingId: v.StringSchema<undefined>;
1029
+ readonly internalRequestId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1030
+ readonly sparkStatusTrackingId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
+ readonly error: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
1032
  }, undefined>;
1032
1033
  type SparkFlashnetExecuteClawbackResult = v.InferOutput<typeof sparkFlashnetExecuteClawbackResultSchema>;
1033
1034
  declare const sparkFlashnetExecuteClawbackRequestMessageSchema: v.ObjectSchema<{
@@ -1053,7 +1054,7 @@ declare const sparkFlashnetExecuteRouteSwapParamsSchema: v.ObjectSchema<{
1053
1054
  readonly initialAssetAddress: v.StringSchema<undefined>;
1054
1055
  readonly inputAmount: v.StringSchema<undefined>;
1055
1056
  readonly maxRouteSlippageBps: v.StringSchema<undefined>;
1056
- readonly minAmountOut: v.StringSchema<undefined>;
1057
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1057
1058
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1058
1059
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1059
1060
  }, undefined>;
@@ -1079,7 +1080,7 @@ declare const sparkFlashnetExecuteRouteSwapRequestMessageSchema: v.ObjectSchema<
1079
1080
  readonly initialAssetAddress: v.StringSchema<undefined>;
1080
1081
  readonly inputAmount: v.StringSchema<undefined>;
1081
1082
  readonly maxRouteSlippageBps: v.StringSchema<undefined>;
1082
- readonly minAmountOut: v.StringSchema<undefined>;
1083
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1083
1084
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1084
1085
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1085
1086
  }, undefined>;
@@ -1096,7 +1097,7 @@ declare const sparkFlashnetExecuteSwapParamsSchema: v.ObjectSchema<{
1096
1097
  readonly assetOutAddress: v.StringSchema<undefined>;
1097
1098
  readonly amountIn: v.StringSchema<undefined>;
1098
1099
  readonly maxSlippageBps: v.NumberSchema<undefined>;
1099
- readonly minAmountOut: v.StringSchema<undefined>;
1100
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1100
1101
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1101
1102
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1102
1103
  }, undefined>;
@@ -1121,7 +1122,7 @@ declare const sparkFlashnetExecuteSwapRequestMessageSchema: v.ObjectSchema<{
1121
1122
  readonly assetOutAddress: v.StringSchema<undefined>;
1122
1123
  readonly amountIn: v.StringSchema<undefined>;
1123
1124
  readonly maxSlippageBps: v.NumberSchema<undefined>;
1124
- readonly minAmountOut: v.StringSchema<undefined>;
1125
+ readonly minAmountOut: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1125
1126
  readonly integratorFeeRateBps: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1126
1127
  readonly integratorPublicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1127
1128
  }, undefined>;
package/dist/index.js CHANGED
@@ -1143,8 +1143,9 @@ var sparkFlashnetExecuteClawbackParamsSchema = v12.object({
1143
1143
  var sparkFlashnetExecuteClawbackResultSchema = v12.object({
1144
1144
  requestId: v12.string(),
1145
1145
  accepted: v12.boolean(),
1146
- internalRequestId: v12.string(),
1147
- sparkStatusTrackingId: v12.string()
1146
+ internalRequestId: v12.optional(v12.string()),
1147
+ sparkStatusTrackingId: v12.optional(v12.string()),
1148
+ error: v12.optional(v12.string())
1148
1149
  });
1149
1150
  var sparkFlashnetExecuteClawbackRequestMessageSchema = v12.object({
1150
1151
  ...rpcRequestMessageSchema.entries,
@@ -1170,7 +1171,7 @@ var sparkFlashnetExecuteRouteSwapParamsSchema = v13.object({
1170
1171
  initialAssetAddress: v13.string(),
1171
1172
  inputAmount: v13.string(),
1172
1173
  maxRouteSlippageBps: v13.string(),
1173
- minAmountOut: v13.string(),
1174
+ minAmountOut: v13.optional(v13.string()),
1174
1175
  integratorFeeRateBps: v13.optional(v13.number()),
1175
1176
  integratorPublicKey: v13.optional(v13.string())
1176
1177
  });
@@ -1200,7 +1201,7 @@ var sparkFlashnetExecuteSwapParamsSchema = v14.object({
1200
1201
  assetOutAddress: v14.string(),
1201
1202
  amountIn: v14.string(),
1202
1203
  maxSlippageBps: v14.number(),
1203
- minAmountOut: v14.string(),
1204
+ minAmountOut: v14.optional(v14.string()),
1204
1205
  integratorFeeRateBps: v14.optional(v14.number()),
1205
1206
  integratorPublicKey: v14.optional(v14.string())
1206
1207
  });
package/dist/index.mjs CHANGED
@@ -872,8 +872,9 @@ var sparkFlashnetExecuteClawbackParamsSchema = v12.object({
872
872
  var sparkFlashnetExecuteClawbackResultSchema = v12.object({
873
873
  requestId: v12.string(),
874
874
  accepted: v12.boolean(),
875
- internalRequestId: v12.string(),
876
- sparkStatusTrackingId: v12.string()
875
+ internalRequestId: v12.optional(v12.string()),
876
+ sparkStatusTrackingId: v12.optional(v12.string()),
877
+ error: v12.optional(v12.string())
877
878
  });
878
879
  var sparkFlashnetExecuteClawbackRequestMessageSchema = v12.object({
879
880
  ...rpcRequestMessageSchema.entries,
@@ -899,7 +900,7 @@ var sparkFlashnetExecuteRouteSwapParamsSchema = v13.object({
899
900
  initialAssetAddress: v13.string(),
900
901
  inputAmount: v13.string(),
901
902
  maxRouteSlippageBps: v13.string(),
902
- minAmountOut: v13.string(),
903
+ minAmountOut: v13.optional(v13.string()),
903
904
  integratorFeeRateBps: v13.optional(v13.number()),
904
905
  integratorPublicKey: v13.optional(v13.string())
905
906
  });
@@ -929,7 +930,7 @@ var sparkFlashnetExecuteSwapParamsSchema = v14.object({
929
930
  assetOutAddress: v14.string(),
930
931
  amountIn: v14.string(),
931
932
  maxSlippageBps: v14.number(),
932
- minAmountOut: v14.string(),
933
+ minAmountOut: v14.optional(v14.string()),
933
934
  integratorFeeRateBps: v14.optional(v14.number()),
934
935
  integratorPublicKey: v14.optional(v14.string())
935
936
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.11.0-dd369cf",
3
+ "version": "0.12.0-9c448ee",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",