@sats-connect/core 0.11.0 → 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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/request/index.ts
2
- import * as v39 from "valibot";
2
+ import * as v40 from "valibot";
3
3
 
4
4
  // src/provider/types.ts
5
5
  import * as v4 from "valibot";
@@ -862,224 +862,247 @@ var runesTransferRequestMessageSchema = v11.object({
862
862
  }).entries
863
863
  });
864
864
 
865
- // src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
865
+ // src/request/types/sparkMethods/flashnetMethods/executeClawback.ts
866
866
  import * as v12 from "valibot";
867
- var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
868
- var sparkFlashnetExecuteRouteSwapParamsSchema = v12.object({
869
- hops: v12.array(
870
- v12.object({
871
- poolId: v12.string(),
872
- assetInAddress: v12.string(),
873
- assetOutAddress: v12.string(),
874
- hopIntegratorFeeRateBps: v12.optional(v12.number())
875
- })
876
- ),
877
- initialAssetAddress: v12.string(),
878
- inputAmount: v12.string(),
879
- maxRouteSlippageBps: v12.string(),
880
- minAmountOut: v12.optional(v12.string()),
881
- integratorFeeRateBps: v12.optional(v12.number()),
882
- integratorPublicKey: v12.optional(v12.string())
883
- });
884
- var sparkFlashnetExecuteRouteSwapResultSchema = v12.object({
867
+ var sparkFlashnetExecuteClawbackMethodName = "spark_flashnet_executeClawback";
868
+ var sparkFlashnetExecuteClawbackParamsSchema = v12.object({
869
+ sparkTransferId: v12.string(),
870
+ lpIdentityPublicKey: v12.string()
871
+ });
872
+ var sparkFlashnetExecuteClawbackResultSchema = v12.object({
885
873
  requestId: v12.string(),
886
874
  accepted: v12.boolean(),
887
- outputAmount: v12.string(),
888
- executionPrice: v12.string(),
889
- finalOutboundTransferId: v12.string(),
875
+ internalRequestId: v12.optional(v12.string()),
876
+ sparkStatusTrackingId: v12.optional(v12.string()),
890
877
  error: v12.optional(v12.string())
891
878
  });
892
- var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v12.object({
879
+ var sparkFlashnetExecuteClawbackRequestMessageSchema = v12.object({
893
880
  ...rpcRequestMessageSchema.entries,
894
881
  ...v12.object({
895
- method: v12.literal(sparkFlashnetExecuteRouteSwapMethodName),
896
- params: sparkFlashnetExecuteRouteSwapParamsSchema,
882
+ method: v12.literal(sparkFlashnetExecuteClawbackMethodName),
883
+ params: sparkFlashnetExecuteClawbackParamsSchema,
897
884
  id: v12.string()
898
885
  }).entries
899
886
  });
900
887
 
901
- // src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
888
+ // src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
902
889
  import * as v13 from "valibot";
903
- var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
904
- var sparkFlashnetExecuteSwapParamsSchema = v13.object({
905
- poolId: v13.string(),
906
- assetInAddress: v13.string(),
907
- assetOutAddress: v13.string(),
908
- amountIn: v13.string(),
909
- maxSlippageBps: v13.number(),
890
+ var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
891
+ var sparkFlashnetExecuteRouteSwapParamsSchema = v13.object({
892
+ hops: v13.array(
893
+ v13.object({
894
+ poolId: v13.string(),
895
+ assetInAddress: v13.string(),
896
+ assetOutAddress: v13.string(),
897
+ hopIntegratorFeeRateBps: v13.optional(v13.number())
898
+ })
899
+ ),
900
+ initialAssetAddress: v13.string(),
901
+ inputAmount: v13.string(),
902
+ maxRouteSlippageBps: v13.string(),
910
903
  minAmountOut: v13.optional(v13.string()),
911
904
  integratorFeeRateBps: v13.optional(v13.number()),
912
905
  integratorPublicKey: v13.optional(v13.string())
913
906
  });
914
- var sparkFlashnetExecuteSwapResultSchema = v13.object({
907
+ var sparkFlashnetExecuteRouteSwapResultSchema = v13.object({
915
908
  requestId: v13.string(),
916
909
  accepted: v13.boolean(),
917
- amountOut: v13.optional(v13.string()),
918
- feeAmount: v13.optional(v13.string()),
919
- executionPrice: v13.optional(v13.string()),
920
- assetOutAddress: v13.optional(v13.string()),
921
- assetInAddress: v13.optional(v13.string()),
922
- outboundTransferId: v13.optional(v13.string()),
910
+ outputAmount: v13.string(),
911
+ executionPrice: v13.string(),
912
+ finalOutboundTransferId: v13.string(),
923
913
  error: v13.optional(v13.string())
924
914
  });
925
- var sparkFlashnetExecuteSwapRequestMessageSchema = v13.object({
915
+ var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v13.object({
926
916
  ...rpcRequestMessageSchema.entries,
927
917
  ...v13.object({
928
- method: v13.literal(sparkFlashnetExecuteSwapMethodName),
929
- params: sparkFlashnetExecuteSwapParamsSchema,
918
+ method: v13.literal(sparkFlashnetExecuteRouteSwapMethodName),
919
+ params: sparkFlashnetExecuteRouteSwapParamsSchema,
930
920
  id: v13.string()
931
921
  }).entries
932
922
  });
933
923
 
934
- // src/request/types/sparkMethods/flashnetMethods/getJwt.ts
924
+ // src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
935
925
  import * as v14 from "valibot";
926
+ var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
927
+ var sparkFlashnetExecuteSwapParamsSchema = v14.object({
928
+ poolId: v14.string(),
929
+ assetInAddress: v14.string(),
930
+ assetOutAddress: v14.string(),
931
+ amountIn: v14.string(),
932
+ maxSlippageBps: v14.number(),
933
+ minAmountOut: v14.optional(v14.string()),
934
+ integratorFeeRateBps: v14.optional(v14.number()),
935
+ integratorPublicKey: v14.optional(v14.string())
936
+ });
937
+ var sparkFlashnetExecuteSwapResultSchema = v14.object({
938
+ requestId: v14.string(),
939
+ accepted: v14.boolean(),
940
+ amountOut: v14.optional(v14.string()),
941
+ feeAmount: v14.optional(v14.string()),
942
+ executionPrice: v14.optional(v14.string()),
943
+ assetOutAddress: v14.optional(v14.string()),
944
+ assetInAddress: v14.optional(v14.string()),
945
+ outboundTransferId: v14.optional(v14.string()),
946
+ error: v14.optional(v14.string())
947
+ });
948
+ var sparkFlashnetExecuteSwapRequestMessageSchema = v14.object({
949
+ ...rpcRequestMessageSchema.entries,
950
+ ...v14.object({
951
+ method: v14.literal(sparkFlashnetExecuteSwapMethodName),
952
+ params: sparkFlashnetExecuteSwapParamsSchema,
953
+ id: v14.string()
954
+ }).entries
955
+ });
956
+
957
+ // src/request/types/sparkMethods/flashnetMethods/getJwt.ts
958
+ import * as v15 from "valibot";
936
959
  var sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
937
- var sparkFlashnetGetJwtParamsSchema = v14.null();
938
- var sparkFlashnetGetJwtResultSchema = v14.object({
960
+ var sparkFlashnetGetJwtParamsSchema = v15.null();
961
+ var sparkFlashnetGetJwtResultSchema = v15.object({
939
962
  /**
940
963
  * The JWT token for authenticated requests to the Flashnet API.
941
964
  */
942
- jwt: v14.string()
965
+ jwt: v15.string()
943
966
  });
944
- var sparkFlashnetGetJwtRequestMessageSchema = v14.object({
967
+ var sparkFlashnetGetJwtRequestMessageSchema = v15.object({
945
968
  ...rpcRequestMessageSchema.entries,
946
- ...v14.object({
947
- method: v14.literal(sparkFlashnetGetJwtMethodName),
969
+ ...v15.object({
970
+ method: v15.literal(sparkFlashnetGetJwtMethodName),
948
971
  params: sparkFlashnetGetJwtParamsSchema,
949
- id: v14.string()
972
+ id: v15.string()
950
973
  }).entries
951
974
  });
952
975
 
953
976
  // src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.ts
954
- import * as v15 from "valibot";
955
- var sparkFlashnetAddLiquidityIntentSchema = v15.object({
956
- type: v15.literal("addLiquidity"),
957
- data: v15.object({
958
- userPublicKey: v15.string(),
959
- poolId: v15.string(),
960
- assetAAmount: v15.string(),
961
- assetBAmount: v15.string(),
962
- assetAMinAmountIn: v15.string(),
963
- assetBMinAmountIn: v15.string(),
964
- assetATransferId: v15.string(),
965
- assetBTransferId: v15.string(),
966
- nonce: v15.string()
967
- })
968
- });
969
-
970
- // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
971
977
  import * as v16 from "valibot";
972
- var sparkFlashnetClawbackIntentSchema = v16.object({
973
- type: v16.literal("clawback"),
978
+ var sparkFlashnetAddLiquidityIntentSchema = v16.object({
979
+ type: v16.literal("addLiquidity"),
974
980
  data: v16.object({
975
- senderPublicKey: v16.string(),
976
- sparkTransferId: v16.string(),
977
- lpIdentityPublicKey: v16.string(),
981
+ userPublicKey: v16.string(),
982
+ poolId: v16.string(),
983
+ assetAAmount: v16.string(),
984
+ assetBAmount: v16.string(),
985
+ assetAMinAmountIn: v16.string(),
986
+ assetBMinAmountIn: v16.string(),
987
+ assetATransferId: v16.string(),
988
+ assetBTransferId: v16.string(),
978
989
  nonce: v16.string()
979
990
  })
980
991
  });
981
992
 
982
- // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
993
+ // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
983
994
  import * as v17 from "valibot";
984
- var sparkFlashnetConfirmInitialDepositIntentSchema = v17.object({
985
- type: v17.literal("confirmInitialDeposit"),
995
+ var sparkFlashnetClawbackIntentSchema = v17.object({
996
+ type: v17.literal("clawback"),
986
997
  data: v17.object({
987
- poolId: v17.string(),
988
- assetASparkTransferId: v17.string(),
989
- poolOwnerPublicKey: v17.string(),
998
+ senderPublicKey: v17.string(),
999
+ sparkTransferId: v17.string(),
1000
+ lpIdentityPublicKey: v17.string(),
990
1001
  nonce: v17.string()
991
1002
  })
992
1003
  });
993
1004
 
994
- // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1005
+ // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
995
1006
  import * as v18 from "valibot";
996
- var sparkFlashnetCreateConstantProductPoolIntentSchema = v18.object({
997
- type: v18.literal("createConstantProductPool"),
1007
+ var sparkFlashnetConfirmInitialDepositIntentSchema = v18.object({
1008
+ type: v18.literal("confirmInitialDeposit"),
998
1009
  data: v18.object({
1010
+ poolId: v18.string(),
1011
+ assetASparkTransferId: v18.string(),
999
1012
  poolOwnerPublicKey: v18.string(),
1000
- assetAAddress: v18.string(),
1001
- assetBAddress: v18.string(),
1002
- lpFeeRateBps: v18.union([v18.number(), v18.string()]),
1003
- totalHostFeeRateBps: v18.union([v18.number(), v18.string()]),
1004
1013
  nonce: v18.string()
1005
1014
  })
1006
1015
  });
1007
1016
 
1008
- // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1017
+ // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1009
1018
  import * as v19 from "valibot";
1010
- var sparkFlashnetCreateSingleSidedPoolIntentSchema = v19.object({
1011
- type: v19.literal("createSingleSidedPool"),
1019
+ var sparkFlashnetCreateConstantProductPoolIntentSchema = v19.object({
1020
+ type: v19.literal("createConstantProductPool"),
1012
1021
  data: v19.object({
1022
+ poolOwnerPublicKey: v19.string(),
1013
1023
  assetAAddress: v19.string(),
1014
1024
  assetBAddress: v19.string(),
1015
- assetAInitialReserve: v19.string(),
1016
- virtualReserveA: v19.union([v19.number(), v19.string()]),
1017
- virtualReserveB: v19.union([v19.number(), v19.string()]),
1018
- threshold: v19.union([v19.number(), v19.string()]),
1019
1025
  lpFeeRateBps: v19.union([v19.number(), v19.string()]),
1020
1026
  totalHostFeeRateBps: v19.union([v19.number(), v19.string()]),
1021
- poolOwnerPublicKey: v19.string(),
1022
1027
  nonce: v19.string()
1023
1028
  })
1024
1029
  });
1025
1030
 
1026
- // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1031
+ // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1027
1032
  import * as v20 from "valibot";
1028
- var sparkFlashnetRemoveLiquidityIntentSchema = v20.object({
1029
- type: v20.literal("removeLiquidity"),
1033
+ var sparkFlashnetCreateSingleSidedPoolIntentSchema = v20.object({
1034
+ type: v20.literal("createSingleSidedPool"),
1030
1035
  data: v20.object({
1031
- userPublicKey: v20.string(),
1032
- poolId: v20.string(),
1033
- lpTokensToRemove: v20.string(),
1036
+ assetAAddress: v20.string(),
1037
+ assetBAddress: v20.string(),
1038
+ assetAInitialReserve: v20.string(),
1039
+ virtualReserveA: v20.union([v20.number(), v20.string()]),
1040
+ virtualReserveB: v20.union([v20.number(), v20.string()]),
1041
+ threshold: v20.union([v20.number(), v20.string()]),
1042
+ lpFeeRateBps: v20.union([v20.number(), v20.string()]),
1043
+ totalHostFeeRateBps: v20.union([v20.number(), v20.string()]),
1044
+ poolOwnerPublicKey: v20.string(),
1034
1045
  nonce: v20.string()
1035
1046
  })
1036
1047
  });
1037
1048
 
1038
- // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1049
+ // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1039
1050
  import * as v21 from "valibot";
1040
- var sparkFlashnetRouteSwapIntentSchema = v21.object({
1041
- type: v21.literal("executeRouteSwap"),
1051
+ var sparkFlashnetRemoveLiquidityIntentSchema = v21.object({
1052
+ type: v21.literal("removeLiquidity"),
1042
1053
  data: v21.object({
1043
1054
  userPublicKey: v21.string(),
1044
- initialSparkTransferId: v21.string(),
1045
- hops: v21.array(
1046
- v21.object({
1047
- poolId: v21.string(),
1048
- inputAssetAddress: v21.string(),
1049
- outputAssetAddress: v21.string(),
1050
- hopIntegratorFeeRateBps: v21.optional(v21.union([v21.number(), v21.string()]))
1051
- })
1052
- ),
1053
- inputAmount: v21.string(),
1054
- maxRouteSlippageBps: v21.union([v21.number(), v21.string()]),
1055
- minAmountOut: v21.string(),
1056
- defaultIntegratorFeeRateBps: v21.optional(v21.union([v21.number(), v21.string()])),
1055
+ poolId: v21.string(),
1056
+ lpTokensToRemove: v21.string(),
1057
1057
  nonce: v21.string()
1058
1058
  })
1059
1059
  });
1060
1060
 
1061
- // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1061
+ // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1062
1062
  import * as v22 from "valibot";
1063
- var sparkFlashnetSwapIntentSchema = v22.object({
1064
- type: v22.literal("executeSwap"),
1063
+ var sparkFlashnetRouteSwapIntentSchema = v22.object({
1064
+ type: v22.literal("executeRouteSwap"),
1065
1065
  data: v22.object({
1066
1066
  userPublicKey: v22.string(),
1067
- poolId: v22.string(),
1068
- transferId: v22.string(),
1069
- assetInAddress: v22.string(),
1070
- assetOutAddress: v22.string(),
1071
- amountIn: v22.string(),
1072
- maxSlippageBps: v22.union([v22.number(), v22.string()]),
1067
+ initialSparkTransferId: v22.string(),
1068
+ hops: v22.array(
1069
+ v22.object({
1070
+ poolId: v22.string(),
1071
+ inputAssetAddress: v22.string(),
1072
+ outputAssetAddress: v22.string(),
1073
+ hopIntegratorFeeRateBps: v22.optional(v22.union([v22.number(), v22.string()]))
1074
+ })
1075
+ ),
1076
+ inputAmount: v22.string(),
1077
+ maxRouteSlippageBps: v22.union([v22.number(), v22.string()]),
1073
1078
  minAmountOut: v22.string(),
1074
- totalIntegratorFeeRateBps: v22.optional(v22.union([v22.number(), v22.string()])),
1079
+ defaultIntegratorFeeRateBps: v22.optional(v22.union([v22.number(), v22.string()])),
1075
1080
  nonce: v22.string()
1076
1081
  })
1077
1082
  });
1078
1083
 
1079
- // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1084
+ // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1080
1085
  import * as v23 from "valibot";
1086
+ var sparkFlashnetSwapIntentSchema = v23.object({
1087
+ type: v23.literal("executeSwap"),
1088
+ data: v23.object({
1089
+ userPublicKey: v23.string(),
1090
+ poolId: v23.string(),
1091
+ transferId: v23.string(),
1092
+ assetInAddress: v23.string(),
1093
+ assetOutAddress: v23.string(),
1094
+ amountIn: v23.string(),
1095
+ maxSlippageBps: v23.union([v23.number(), v23.string()]),
1096
+ minAmountOut: v23.string(),
1097
+ totalIntegratorFeeRateBps: v23.optional(v23.union([v23.number(), v23.string()])),
1098
+ nonce: v23.string()
1099
+ })
1100
+ });
1101
+
1102
+ // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1103
+ import * as v24 from "valibot";
1081
1104
  var sparkFlashnetSignIntentMethodName = "spark_flashnet_signIntent";
1082
- var sparkFlashnetSignIntentParamsSchema = v23.union([
1105
+ var sparkFlashnetSignIntentParamsSchema = v24.union([
1083
1106
  sparkFlashnetSwapIntentSchema,
1084
1107
  sparkFlashnetRouteSwapIntentSchema,
1085
1108
  sparkFlashnetAddLiquidityIntentSchema,
@@ -1089,109 +1112,109 @@ var sparkFlashnetSignIntentParamsSchema = v23.union([
1089
1112
  sparkFlashnetCreateSingleSidedPoolIntentSchema,
1090
1113
  sparkFlashnetRemoveLiquidityIntentSchema
1091
1114
  ]);
1092
- var sparkFlashnetSignIntentResultSchema = v23.object({
1115
+ var sparkFlashnetSignIntentResultSchema = v24.object({
1093
1116
  /**
1094
1117
  * The signed intent as a hex string.
1095
1118
  */
1096
- signature: v23.string()
1119
+ signature: v24.string()
1097
1120
  });
1098
- var sparkFlashnetSignIntentRequestMessageSchema = v23.object({
1121
+ var sparkFlashnetSignIntentRequestMessageSchema = v24.object({
1099
1122
  ...rpcRequestMessageSchema.entries,
1100
- ...v23.object({
1101
- method: v23.literal(sparkFlashnetSignIntentMethodName),
1123
+ ...v24.object({
1124
+ method: v24.literal(sparkFlashnetSignIntentMethodName),
1102
1125
  params: sparkFlashnetSignIntentParamsSchema,
1103
- id: v23.string()
1126
+ id: v24.string()
1104
1127
  }).entries
1105
1128
  });
1106
1129
 
1107
1130
  // src/request/types/sparkMethods/flashnetMethods/signStructuredMessage.ts
1108
- import * as v24 from "valibot";
1131
+ import * as v25 from "valibot";
1109
1132
  var sparkFlashnetSignStructuredMessageMethodName = "spark_flashnet_signStructuredMessage";
1110
- var sparkFlashnetSignStructuredMessageParamsSchema = v24.object({
1111
- message: v24.string()
1133
+ var sparkFlashnetSignStructuredMessageParamsSchema = v25.object({
1134
+ message: v25.string()
1112
1135
  });
1113
- var sparkFlashnetSignStructuredMessageResultSchema = v24.object({
1114
- message: v24.string(),
1115
- signature: v24.string()
1136
+ var sparkFlashnetSignStructuredMessageResultSchema = v25.object({
1137
+ message: v25.string(),
1138
+ signature: v25.string()
1116
1139
  });
1117
- var sparkFlashnetSignStructuredMessageRequestMessageSchema = v24.object({
1140
+ var sparkFlashnetSignStructuredMessageRequestMessageSchema = v25.object({
1118
1141
  ...rpcRequestMessageSchema.entries,
1119
- ...v24.object({
1120
- method: v24.literal(sparkFlashnetSignStructuredMessageMethodName),
1142
+ ...v25.object({
1143
+ method: v25.literal(sparkFlashnetSignStructuredMessageMethodName),
1121
1144
  params: sparkFlashnetSignStructuredMessageParamsSchema,
1122
- id: v24.string()
1145
+ id: v25.string()
1123
1146
  }).entries
1124
1147
  });
1125
1148
 
1126
1149
  // src/request/types/sparkMethods/getAddresses.ts
1127
- import * as v25 from "valibot";
1150
+ import * as v26 from "valibot";
1128
1151
  var sparkGetAddressesMethodName = "spark_getAddresses";
1129
- var sparkGetAddressesParamsSchema = v25.nullish(
1130
- v25.object({
1152
+ var sparkGetAddressesParamsSchema = v26.nullish(
1153
+ v26.object({
1131
1154
  /**
1132
1155
  * A message to be displayed to the user in the request prompt.
1133
1156
  */
1134
- message: v25.optional(v25.string())
1157
+ message: v26.optional(v26.string())
1135
1158
  })
1136
1159
  );
1137
- var sparkGetAddressesResultSchema = v25.object({
1160
+ var sparkGetAddressesResultSchema = v26.object({
1138
1161
  /**
1139
1162
  * The addresses generated for the given purposes.
1140
1163
  */
1141
- addresses: v25.array(addressSchema),
1164
+ addresses: v26.array(addressSchema),
1142
1165
  network: getNetworkResultSchema
1143
1166
  });
1144
- var sparkGetAddressesRequestMessageSchema = v25.object({
1167
+ var sparkGetAddressesRequestMessageSchema = v26.object({
1145
1168
  ...rpcRequestMessageSchema.entries,
1146
- ...v25.object({
1147
- method: v25.literal(sparkGetAddressesMethodName),
1169
+ ...v26.object({
1170
+ method: v26.literal(sparkGetAddressesMethodName),
1148
1171
  params: sparkGetAddressesParamsSchema,
1149
- id: v25.string()
1172
+ id: v26.string()
1150
1173
  }).entries
1151
1174
  });
1152
1175
 
1153
1176
  // src/request/types/sparkMethods/getBalance.ts
1154
- import * as v26 from "valibot";
1177
+ import * as v27 from "valibot";
1155
1178
  var sparkGetBalanceMethodName = "spark_getBalance";
1156
- var sparkGetBalanceParamsSchema = v26.nullish(v26.null());
1157
- var sparkGetBalanceResultSchema = v26.object({
1179
+ var sparkGetBalanceParamsSchema = v27.nullish(v27.null());
1180
+ var sparkGetBalanceResultSchema = v27.object({
1158
1181
  /**
1159
1182
  * The Spark Bitcoin address balance in sats in string form.
1160
1183
  */
1161
- balance: v26.string(),
1162
- tokenBalances: v26.array(
1163
- v26.object({
1184
+ balance: v27.string(),
1185
+ tokenBalances: v27.array(
1186
+ v27.object({
1164
1187
  /* The address balance of the token in string form as it can overflow a js number */
1165
- balance: v26.string(),
1166
- tokenMetadata: v26.object({
1167
- tokenIdentifier: v26.string(),
1168
- tokenName: v26.string(),
1169
- tokenTicker: v26.string(),
1170
- decimals: v26.number(),
1171
- maxSupply: v26.string()
1188
+ balance: v27.string(),
1189
+ tokenMetadata: v27.object({
1190
+ tokenIdentifier: v27.string(),
1191
+ tokenName: v27.string(),
1192
+ tokenTicker: v27.string(),
1193
+ decimals: v27.number(),
1194
+ maxSupply: v27.string()
1172
1195
  })
1173
1196
  })
1174
1197
  )
1175
1198
  });
1176
- var sparkGetBalanceRequestMessageSchema = v26.object({
1199
+ var sparkGetBalanceRequestMessageSchema = v27.object({
1177
1200
  ...rpcRequestMessageSchema.entries,
1178
- ...v26.object({
1179
- method: v26.literal(sparkGetBalanceMethodName),
1201
+ ...v27.object({
1202
+ method: v27.literal(sparkGetBalanceMethodName),
1180
1203
  params: sparkGetBalanceParamsSchema,
1181
- id: v26.string()
1204
+ id: v27.string()
1182
1205
  }).entries
1183
1206
  });
1184
1207
 
1185
1208
  // src/request/types/sparkMethods/signMessage.ts
1186
- import * as v27 from "valibot";
1209
+ import * as v28 from "valibot";
1187
1210
  var sparkSignMessageMethodName = "spark_signMessage";
1188
- var sparkSignMessageParamsSchema = v27.object({
1211
+ var sparkSignMessageParamsSchema = v28.object({
1189
1212
  /**
1190
1213
  * The message to sign. The message should only consist of valid UTF-8 characters.
1191
1214
  */
1192
- message: v27.string()
1215
+ message: v28.string()
1193
1216
  });
1194
- var sparkSignMessageResultSchema = v27.object({
1217
+ var sparkSignMessageResultSchema = v28.object({
1195
1218
  /**
1196
1219
  * The signature, encoded in base64, of the message hash.
1197
1220
  *
@@ -1199,98 +1222,98 @@ var sparkSignMessageResultSchema = v27.object({
1199
1222
  * and the resulting byte array is hashed with SHA256 before signing
1200
1223
  * with the private key.
1201
1224
  */
1202
- signature: v27.string()
1225
+ signature: v28.string()
1203
1226
  });
1204
- var sparkSignMessageRequestMessageSchema = v27.object({
1227
+ var sparkSignMessageRequestMessageSchema = v28.object({
1205
1228
  ...rpcRequestMessageSchema.entries,
1206
- ...v27.object({
1207
- method: v27.literal(sparkSignMessageMethodName),
1229
+ ...v28.object({
1230
+ method: v28.literal(sparkSignMessageMethodName),
1208
1231
  params: sparkSignMessageParamsSchema,
1209
- id: v27.string()
1232
+ id: v28.string()
1210
1233
  }).entries
1211
1234
  });
1212
1235
 
1213
1236
  // src/request/types/sparkMethods/transfer.ts
1214
- import * as v28 from "valibot";
1237
+ import * as v29 from "valibot";
1215
1238
  var sparkTransferMethodName = "spark_transfer";
1216
- var sparkTransferParamsSchema = v28.object({
1239
+ var sparkTransferParamsSchema = v29.object({
1217
1240
  /**
1218
1241
  * Amount of SATS to transfer as a string or number.
1219
1242
  */
1220
- amountSats: v28.union([v28.number(), v28.string()]),
1243
+ amountSats: v29.union([v29.number(), v29.string()]),
1221
1244
  /**
1222
1245
  * The recipient's spark address.
1223
1246
  */
1224
- receiverSparkAddress: v28.string()
1247
+ receiverSparkAddress: v29.string()
1225
1248
  });
1226
- var sparkTransferResultSchema = v28.object({
1249
+ var sparkTransferResultSchema = v29.object({
1227
1250
  /**
1228
1251
  * The ID of the transaction.
1229
1252
  */
1230
- id: v28.string()
1253
+ id: v29.string()
1231
1254
  });
1232
- var sparkTransferRequestMessageSchema = v28.object({
1255
+ var sparkTransferRequestMessageSchema = v29.object({
1233
1256
  ...rpcRequestMessageSchema.entries,
1234
- ...v28.object({
1235
- method: v28.literal(sparkTransferMethodName),
1257
+ ...v29.object({
1258
+ method: v29.literal(sparkTransferMethodName),
1236
1259
  params: sparkTransferParamsSchema,
1237
- id: v28.string()
1260
+ id: v29.string()
1238
1261
  }).entries
1239
1262
  });
1240
1263
 
1241
1264
  // src/request/types/sparkMethods/transferToken.ts
1242
- import * as v29 from "valibot";
1265
+ import * as v30 from "valibot";
1243
1266
  var sparkTransferTokenMethodName = "spark_transferToken";
1244
- var sparkTransferTokenParamsSchema = v29.object({
1267
+ var sparkTransferTokenParamsSchema = v30.object({
1245
1268
  /**
1246
1269
  * Amount of units of the token to transfer as a string or number.
1247
1270
  */
1248
- tokenAmount: v29.union([v29.number(), v29.string()]),
1271
+ tokenAmount: v30.union([v30.number(), v30.string()]),
1249
1272
  /**
1250
1273
  * The Bech32m token identifier.
1251
1274
  */
1252
- tokenIdentifier: v29.string(),
1275
+ tokenIdentifier: v30.string(),
1253
1276
  /**
1254
1277
  * The recipient's spark address.
1255
1278
  */
1256
- receiverSparkAddress: v29.string()
1279
+ receiverSparkAddress: v30.string()
1257
1280
  });
1258
- var sparkTransferTokenResultSchema = v29.object({
1281
+ var sparkTransferTokenResultSchema = v30.object({
1259
1282
  /**
1260
1283
  * The ID of the transaction.
1261
1284
  */
1262
- id: v29.string()
1285
+ id: v30.string()
1263
1286
  });
1264
- var sparkTransferTokenRequestMessageSchema = v29.object({
1287
+ var sparkTransferTokenRequestMessageSchema = v30.object({
1265
1288
  ...rpcRequestMessageSchema.entries,
1266
- ...v29.object({
1267
- method: v29.literal(sparkTransferTokenMethodName),
1289
+ ...v30.object({
1290
+ method: v30.literal(sparkTransferTokenMethodName),
1268
1291
  params: sparkTransferTokenParamsSchema,
1269
- id: v29.string()
1292
+ id: v30.string()
1270
1293
  }).entries
1271
1294
  });
1272
1295
 
1273
1296
  // src/request/types/stxMethods/callContract.ts
1274
- import * as v30 from "valibot";
1297
+ import * as v31 from "valibot";
1275
1298
  var stxCallContractMethodName = "stx_callContract";
1276
- var stxCallContractParamsSchema = v30.object({
1299
+ var stxCallContractParamsSchema = v31.object({
1277
1300
  /**
1278
1301
  * The contract principal.
1279
1302
  *
1280
1303
  * E.g. `"SPKE...GD5C.my-contract"`
1281
1304
  */
1282
- contract: v30.string(),
1305
+ contract: v31.string(),
1283
1306
  /**
1284
1307
  * The name of the function to call.
1285
1308
  *
1286
1309
  * Note: spec changes ongoing,
1287
1310
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1288
1311
  */
1289
- functionName: v30.string(),
1312
+ functionName: v31.string(),
1290
1313
  /**
1291
1314
  * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1292
1315
  */
1293
- arguments: v30.optional(v30.array(v30.string())),
1316
+ arguments: v31.optional(v31.array(v31.string())),
1294
1317
  /**
1295
1318
  * The function's arguments. The arguments are expected to be hex-encoded
1296
1319
  * strings of Clarity values.
@@ -1305,274 +1328,274 @@ var stxCallContractParamsSchema = v30.object({
1305
1328
  * const hexArgs = functionArgs.map(cvToHex);
1306
1329
  * ```
1307
1330
  */
1308
- functionArgs: v30.optional(v30.array(v30.string())),
1331
+ functionArgs: v31.optional(v31.array(v31.string())),
1309
1332
  /**
1310
1333
  * The post conditions to apply to the contract call.
1311
1334
  */
1312
- postConditions: v30.optional(v30.array(v30.string())),
1335
+ postConditions: v31.optional(v31.array(v31.string())),
1313
1336
  /**
1314
1337
  * The mode to apply to the post conditions.
1315
1338
  */
1316
- postConditionMode: v30.optional(v30.union([v30.literal("allow"), v30.literal("deny")]))
1339
+ postConditionMode: v31.optional(v31.union([v31.literal("allow"), v31.literal("deny")]))
1317
1340
  });
1318
- var stxCallContractResultSchema = v30.object({
1341
+ var stxCallContractResultSchema = v31.object({
1319
1342
  /**
1320
1343
  * The ID of the transaction.
1321
1344
  */
1322
- txid: v30.string(),
1345
+ txid: v31.string(),
1323
1346
  /**
1324
1347
  * A Stacks transaction as a hex-encoded string.
1325
1348
  */
1326
- transaction: v30.string()
1349
+ transaction: v31.string()
1327
1350
  });
1328
- var stxCallContractRequestMessageSchema = v30.object({
1351
+ var stxCallContractRequestMessageSchema = v31.object({
1329
1352
  ...rpcRequestMessageSchema.entries,
1330
- ...v30.object({
1331
- method: v30.literal(stxCallContractMethodName),
1353
+ ...v31.object({
1354
+ method: v31.literal(stxCallContractMethodName),
1332
1355
  params: stxCallContractParamsSchema,
1333
- id: v30.string()
1356
+ id: v31.string()
1334
1357
  }).entries
1335
1358
  });
1336
1359
 
1337
1360
  // src/request/types/stxMethods/deployContract.ts
1338
- import * as v31 from "valibot";
1361
+ import * as v32 from "valibot";
1339
1362
  var stxDeployContractMethodName = "stx_deployContract";
1340
- var stxDeployContractParamsSchema = v31.object({
1363
+ var stxDeployContractParamsSchema = v32.object({
1341
1364
  /**
1342
1365
  * Name of the contract.
1343
1366
  */
1344
- name: v31.string(),
1367
+ name: v32.string(),
1345
1368
  /**
1346
1369
  * The source code of the Clarity contract.
1347
1370
  */
1348
- clarityCode: v31.string(),
1371
+ clarityCode: v32.string(),
1349
1372
  /**
1350
1373
  * The version of the Clarity contract.
1351
1374
  */
1352
- clarityVersion: v31.optional(v31.number()),
1375
+ clarityVersion: v32.optional(v32.number()),
1353
1376
  /**
1354
1377
  * The post conditions to apply to the contract call.
1355
1378
  */
1356
- postConditions: v31.optional(v31.array(v31.string())),
1379
+ postConditions: v32.optional(v32.array(v32.string())),
1357
1380
  /**
1358
1381
  * The mode to apply to the post conditions.
1359
1382
  */
1360
- postConditionMode: v31.optional(v31.union([v31.literal("allow"), v31.literal("deny")]))
1383
+ postConditionMode: v32.optional(v32.union([v32.literal("allow"), v32.literal("deny")]))
1361
1384
  });
1362
- var stxDeployContractResultSchema = v31.object({
1385
+ var stxDeployContractResultSchema = v32.object({
1363
1386
  /**
1364
1387
  * The ID of the transaction.
1365
1388
  */
1366
- txid: v31.string(),
1389
+ txid: v32.string(),
1367
1390
  /**
1368
1391
  * A Stacks transaction as a hex-encoded string.
1369
1392
  */
1370
- transaction: v31.string()
1393
+ transaction: v32.string()
1371
1394
  });
1372
- var stxDeployContractRequestMessageSchema = v31.object({
1395
+ var stxDeployContractRequestMessageSchema = v32.object({
1373
1396
  ...rpcRequestMessageSchema.entries,
1374
- ...v31.object({
1375
- method: v31.literal(stxDeployContractMethodName),
1397
+ ...v32.object({
1398
+ method: v32.literal(stxDeployContractMethodName),
1376
1399
  params: stxDeployContractParamsSchema,
1377
- id: v31.string()
1400
+ id: v32.string()
1378
1401
  }).entries
1379
1402
  });
1380
1403
 
1381
1404
  // src/request/types/stxMethods/getAccounts.ts
1382
- import * as v32 from "valibot";
1405
+ import * as v33 from "valibot";
1383
1406
  var stxGetAccountsMethodName = "stx_getAccounts";
1384
- var stxGetAccountsParamsSchema = v32.nullish(v32.null());
1385
- var stxGetAccountsResultSchema = v32.object({
1407
+ var stxGetAccountsParamsSchema = v33.nullish(v33.null());
1408
+ var stxGetAccountsResultSchema = v33.object({
1386
1409
  /**
1387
1410
  * The addresses generated for the given purposes.
1388
1411
  */
1389
- addresses: v32.array(
1390
- v32.object({
1391
- address: v32.string(),
1392
- publicKey: v32.string(),
1393
- gaiaHubUrl: v32.string(),
1394
- gaiaAppKey: v32.string()
1412
+ addresses: v33.array(
1413
+ v33.object({
1414
+ address: v33.string(),
1415
+ publicKey: v33.string(),
1416
+ gaiaHubUrl: v33.string(),
1417
+ gaiaAppKey: v33.string()
1395
1418
  })
1396
1419
  ),
1397
1420
  network: getNetworkResultSchema
1398
1421
  });
1399
- var stxGetAccountsRequestMessageSchema = v32.object({
1422
+ var stxGetAccountsRequestMessageSchema = v33.object({
1400
1423
  ...rpcRequestMessageSchema.entries,
1401
- ...v32.object({
1402
- method: v32.literal(stxGetAccountsMethodName),
1424
+ ...v33.object({
1425
+ method: v33.literal(stxGetAccountsMethodName),
1403
1426
  params: stxGetAccountsParamsSchema,
1404
- id: v32.string()
1427
+ id: v33.string()
1405
1428
  }).entries
1406
1429
  });
1407
1430
 
1408
1431
  // src/request/types/stxMethods/getAddresses.ts
1409
- import * as v33 from "valibot";
1432
+ import * as v34 from "valibot";
1410
1433
  var stxGetAddressesMethodName = "stx_getAddresses";
1411
- var stxGetAddressesParamsSchema = v33.nullish(
1412
- v33.object({
1434
+ var stxGetAddressesParamsSchema = v34.nullish(
1435
+ v34.object({
1413
1436
  /**
1414
1437
  * A message to be displayed to the user in the request prompt.
1415
1438
  */
1416
- message: v33.optional(v33.string())
1439
+ message: v34.optional(v34.string())
1417
1440
  })
1418
1441
  );
1419
- var stxGetAddressesResultSchema = v33.object({
1442
+ var stxGetAddressesResultSchema = v34.object({
1420
1443
  /**
1421
1444
  * The addresses generated for the given purposes.
1422
1445
  */
1423
- addresses: v33.array(addressSchema),
1446
+ addresses: v34.array(addressSchema),
1424
1447
  network: getNetworkResultSchema
1425
1448
  });
1426
- var stxGetAddressesRequestMessageSchema = v33.object({
1449
+ var stxGetAddressesRequestMessageSchema = v34.object({
1427
1450
  ...rpcRequestMessageSchema.entries,
1428
- ...v33.object({
1429
- method: v33.literal(stxGetAddressesMethodName),
1451
+ ...v34.object({
1452
+ method: v34.literal(stxGetAddressesMethodName),
1430
1453
  params: stxGetAddressesParamsSchema,
1431
- id: v33.string()
1454
+ id: v34.string()
1432
1455
  }).entries
1433
1456
  });
1434
1457
 
1435
1458
  // src/request/types/stxMethods/signMessage.ts
1436
- import * as v34 from "valibot";
1459
+ import * as v35 from "valibot";
1437
1460
  var stxSignMessageMethodName = "stx_signMessage";
1438
- var stxSignMessageParamsSchema = v34.object({
1461
+ var stxSignMessageParamsSchema = v35.object({
1439
1462
  /**
1440
1463
  * The message to sign.
1441
1464
  */
1442
- message: v34.string()
1465
+ message: v35.string()
1443
1466
  });
1444
- var stxSignMessageResultSchema = v34.object({
1467
+ var stxSignMessageResultSchema = v35.object({
1445
1468
  /**
1446
1469
  * The signature of the message.
1447
1470
  */
1448
- signature: v34.string(),
1471
+ signature: v35.string(),
1449
1472
  /**
1450
1473
  * The public key used to sign the message.
1451
1474
  */
1452
- publicKey: v34.string()
1475
+ publicKey: v35.string()
1453
1476
  });
1454
- var stxSignMessageRequestMessageSchema = v34.object({
1477
+ var stxSignMessageRequestMessageSchema = v35.object({
1455
1478
  ...rpcRequestMessageSchema.entries,
1456
- ...v34.object({
1457
- method: v34.literal(stxSignMessageMethodName),
1479
+ ...v35.object({
1480
+ method: v35.literal(stxSignMessageMethodName),
1458
1481
  params: stxSignMessageParamsSchema,
1459
- id: v34.string()
1482
+ id: v35.string()
1460
1483
  }).entries
1461
1484
  });
1462
1485
 
1463
1486
  // src/request/types/stxMethods/signStructuredMessage.ts
1464
- import * as v35 from "valibot";
1487
+ import * as v36 from "valibot";
1465
1488
  var stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1466
- var stxSignStructuredMessageParamsSchema = v35.object({
1489
+ var stxSignStructuredMessageParamsSchema = v36.object({
1467
1490
  /**
1468
1491
  * The domain to be signed.
1469
1492
  */
1470
- domain: v35.string(),
1493
+ domain: v36.string(),
1471
1494
  /**
1472
1495
  * Message payload to be signed.
1473
1496
  */
1474
- message: v35.string(),
1497
+ message: v36.string(),
1475
1498
  /**
1476
1499
  * The public key to sign the message with.
1477
1500
  */
1478
- publicKey: v35.optional(v35.string())
1501
+ publicKey: v36.optional(v36.string())
1479
1502
  });
1480
- var stxSignStructuredMessageResultSchema = v35.object({
1503
+ var stxSignStructuredMessageResultSchema = v36.object({
1481
1504
  /**
1482
1505
  * Signature of the message.
1483
1506
  */
1484
- signature: v35.string(),
1507
+ signature: v36.string(),
1485
1508
  /**
1486
1509
  * Public key as hex-encoded string.
1487
1510
  */
1488
- publicKey: v35.string()
1511
+ publicKey: v36.string()
1489
1512
  });
1490
- var stxSignStructuredMessageRequestMessageSchema = v35.object({
1513
+ var stxSignStructuredMessageRequestMessageSchema = v36.object({
1491
1514
  ...rpcRequestMessageSchema.entries,
1492
- ...v35.object({
1493
- method: v35.literal(stxSignStructuredMessageMethodName),
1515
+ ...v36.object({
1516
+ method: v36.literal(stxSignStructuredMessageMethodName),
1494
1517
  params: stxSignStructuredMessageParamsSchema,
1495
- id: v35.string()
1518
+ id: v36.string()
1496
1519
  }).entries
1497
1520
  });
1498
1521
 
1499
1522
  // src/request/types/stxMethods/signTransaction.ts
1500
- import * as v36 from "valibot";
1523
+ import * as v37 from "valibot";
1501
1524
  var stxSignTransactionMethodName = "stx_signTransaction";
1502
- var stxSignTransactionParamsSchema = v36.object({
1525
+ var stxSignTransactionParamsSchema = v37.object({
1503
1526
  /**
1504
1527
  * The transaction to sign as a hex-encoded string.
1505
1528
  */
1506
- transaction: v36.string(),
1529
+ transaction: v37.string(),
1507
1530
  /**
1508
1531
  * The public key to sign the transaction with. The wallet may use any key
1509
1532
  * when not provided.
1510
1533
  */
1511
- pubkey: v36.optional(v36.string()),
1534
+ pubkey: v37.optional(v37.string()),
1512
1535
  /**
1513
1536
  * Whether to broadcast the transaction after signing. Defaults to `true`.
1514
1537
  */
1515
- broadcast: v36.optional(v36.boolean())
1538
+ broadcast: v37.optional(v37.boolean())
1516
1539
  });
1517
- var stxSignTransactionResultSchema = v36.object({
1540
+ var stxSignTransactionResultSchema = v37.object({
1518
1541
  /**
1519
1542
  * The signed transaction as a hex-encoded string.
1520
1543
  */
1521
- transaction: v36.string()
1544
+ transaction: v37.string()
1522
1545
  });
1523
- var stxSignTransactionRequestMessageSchema = v36.object({
1546
+ var stxSignTransactionRequestMessageSchema = v37.object({
1524
1547
  ...rpcRequestMessageSchema.entries,
1525
- ...v36.object({
1526
- method: v36.literal(stxSignTransactionMethodName),
1548
+ ...v37.object({
1549
+ method: v37.literal(stxSignTransactionMethodName),
1527
1550
  params: stxSignTransactionParamsSchema,
1528
- id: v36.string()
1551
+ id: v37.string()
1529
1552
  }).entries
1530
1553
  });
1531
1554
 
1532
1555
  // src/request/types/stxMethods/signTransactions.ts
1533
- import * as v37 from "valibot";
1556
+ import * as v38 from "valibot";
1534
1557
  var stxSignTransactionsMethodName = "stx_signTransactions";
1535
- var stxSignTransactionsParamsSchema = v37.object({
1558
+ var stxSignTransactionsParamsSchema = v38.object({
1536
1559
  /**
1537
1560
  * The transactions to sign as hex-encoded strings.
1538
1561
  */
1539
- transactions: v37.pipe(
1540
- v37.array(
1541
- v37.pipe(
1542
- v37.string(),
1543
- v37.check((hex) => {
1562
+ transactions: v38.pipe(
1563
+ v38.array(
1564
+ v38.pipe(
1565
+ v38.string(),
1566
+ v38.check((hex) => {
1544
1567
  return true;
1545
1568
  }, "Invalid hex-encoded Stacks transaction.")
1546
1569
  )
1547
1570
  ),
1548
- v37.minLength(1)
1571
+ v38.minLength(1)
1549
1572
  ),
1550
1573
  /**
1551
1574
  * Whether the signed transactions should be broadcast after signing. Defaults
1552
1575
  * to `true`.
1553
1576
  */
1554
- broadcast: v37.optional(v37.boolean())
1577
+ broadcast: v38.optional(v38.boolean())
1555
1578
  });
1556
- var stxSignTransactionsResultSchema = v37.object({
1579
+ var stxSignTransactionsResultSchema = v38.object({
1557
1580
  /**
1558
1581
  * The signed transactions as hex-encoded strings, in the same order as in the
1559
1582
  * sign request.
1560
1583
  */
1561
- transactions: v37.array(v37.string())
1584
+ transactions: v38.array(v38.string())
1562
1585
  });
1563
- var stxSignTransactionsRequestMessageSchema = v37.object({
1586
+ var stxSignTransactionsRequestMessageSchema = v38.object({
1564
1587
  ...rpcRequestMessageSchema.entries,
1565
- ...v37.object({
1566
- method: v37.literal(stxSignTransactionsMethodName),
1588
+ ...v38.object({
1589
+ method: v38.literal(stxSignTransactionsMethodName),
1567
1590
  params: stxSignTransactionsParamsSchema,
1568
- id: v37.string()
1591
+ id: v38.string()
1569
1592
  }).entries
1570
1593
  });
1571
1594
 
1572
1595
  // src/request/types/stxMethods/transferStx.ts
1573
- import * as v38 from "valibot";
1596
+ import * as v39 from "valibot";
1574
1597
  var stxTransferStxMethodName = "stx_transferStx";
1575
- var stxTransferStxParamsSchema = v38.object({
1598
+ var stxTransferStxParamsSchema = v39.object({
1576
1599
  /**
1577
1600
  * Amount of STX tokens to transfer in microstacks as a string. Anything
1578
1601
  * parseable by `BigInt` is acceptable.
@@ -1585,23 +1608,23 @@ var stxTransferStxParamsSchema = v38.object({
1585
1608
  * const amount3 = '1234';
1586
1609
  * ```
1587
1610
  */
1588
- amount: v38.union([v38.number(), v38.string()]),
1611
+ amount: v39.union([v39.number(), v39.string()]),
1589
1612
  /**
1590
1613
  * The recipient's principal.
1591
1614
  */
1592
- recipient: v38.string(),
1615
+ recipient: v39.string(),
1593
1616
  /**
1594
1617
  * A string representing the memo.
1595
1618
  */
1596
- memo: v38.optional(v38.string()),
1619
+ memo: v39.optional(v39.string()),
1597
1620
  /**
1598
1621
  * Version of parameter format.
1599
1622
  */
1600
- version: v38.optional(v38.string()),
1623
+ version: v39.optional(v39.string()),
1601
1624
  /**
1602
1625
  * The mode of the post conditions.
1603
1626
  */
1604
- postConditionMode: v38.optional(v38.number()),
1627
+ postConditionMode: v39.optional(v39.number()),
1605
1628
  /**
1606
1629
  * A hex-encoded string representing the post conditions.
1607
1630
  *
@@ -1614,29 +1637,29 @@ var stxTransferStxParamsSchema = v38.object({
1614
1637
  * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1615
1638
  * ```
1616
1639
  */
1617
- postConditions: v38.optional(v38.array(v38.string())),
1640
+ postConditions: v39.optional(v39.array(v39.string())),
1618
1641
  /**
1619
1642
  * The public key to sign the transaction with. The wallet may use any key
1620
1643
  * when not provided.
1621
1644
  */
1622
- pubkey: v38.optional(v38.string())
1645
+ pubkey: v39.optional(v39.string())
1623
1646
  });
1624
- var stxTransferStxResultSchema = v38.object({
1647
+ var stxTransferStxResultSchema = v39.object({
1625
1648
  /**
1626
1649
  * The ID of the transaction.
1627
1650
  */
1628
- txid: v38.string(),
1651
+ txid: v39.string(),
1629
1652
  /**
1630
1653
  * A Stacks transaction as a hex-encoded string.
1631
1654
  */
1632
- transaction: v38.string()
1655
+ transaction: v39.string()
1633
1656
  });
1634
- var stxTransferStxRequestMessageSchema = v38.object({
1657
+ var stxTransferStxRequestMessageSchema = v39.object({
1635
1658
  ...rpcRequestMessageSchema.entries,
1636
- ...v38.object({
1637
- method: v38.literal(stxTransferStxMethodName),
1659
+ ...v39.object({
1660
+ method: v39.literal(stxTransferStxMethodName),
1638
1661
  params: stxTransferStxParamsSchema,
1639
- id: v38.string()
1662
+ id: v39.string()
1640
1663
  }).entries
1641
1664
  });
1642
1665
 
@@ -1644,13 +1667,13 @@ var stxTransferStxRequestMessageSchema = v38.object({
1644
1667
  var cache = {};
1645
1668
  var requestInternal = async (provider, method, params) => {
1646
1669
  const response = await provider.request(method, params);
1647
- if (v39.is(rpcErrorResponseMessageSchema, response)) {
1670
+ if (v40.is(rpcErrorResponseMessageSchema, response)) {
1648
1671
  return {
1649
1672
  status: "error",
1650
1673
  error: response.error
1651
1674
  };
1652
1675
  }
1653
- if (v39.is(rpcSuccessResponseMessageSchema, response)) {
1676
+ if (v40.is(rpcSuccessResponseMessageSchema, response)) {
1654
1677
  return {
1655
1678
  status: "success",
1656
1679
  result: response.result
@@ -2843,6 +2866,10 @@ export {
2843
2866
  sparkFlashnetConfirmInitialDepositIntentSchema,
2844
2867
  sparkFlashnetCreateConstantProductPoolIntentSchema,
2845
2868
  sparkFlashnetCreateSingleSidedPoolIntentSchema,
2869
+ sparkFlashnetExecuteClawbackMethodName,
2870
+ sparkFlashnetExecuteClawbackParamsSchema,
2871
+ sparkFlashnetExecuteClawbackRequestMessageSchema,
2872
+ sparkFlashnetExecuteClawbackResultSchema,
2846
2873
  sparkFlashnetExecuteRouteSwapMethodName,
2847
2874
  sparkFlashnetExecuteRouteSwapParamsSchema,
2848
2875
  sparkFlashnetExecuteRouteSwapRequestMessageSchema,