@sats-connect/core 0.10.0 → 0.11.0-44ab88e

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.js CHANGED
@@ -178,6 +178,14 @@ __export(index_exports, {
178
178
  sparkFlashnetConfirmInitialDepositIntentSchema: () => sparkFlashnetConfirmInitialDepositIntentSchema,
179
179
  sparkFlashnetCreateConstantProductPoolIntentSchema: () => sparkFlashnetCreateConstantProductPoolIntentSchema,
180
180
  sparkFlashnetCreateSingleSidedPoolIntentSchema: () => sparkFlashnetCreateSingleSidedPoolIntentSchema,
181
+ sparkFlashnetExecuteRouteSwapMethodName: () => sparkFlashnetExecuteRouteSwapMethodName,
182
+ sparkFlashnetExecuteRouteSwapParamsSchema: () => sparkFlashnetExecuteRouteSwapParamsSchema,
183
+ sparkFlashnetExecuteRouteSwapRequestMessageSchema: () => sparkFlashnetExecuteRouteSwapRequestMessageSchema,
184
+ sparkFlashnetExecuteRouteSwapResultSchema: () => sparkFlashnetExecuteRouteSwapResultSchema,
185
+ sparkFlashnetExecuteSwapMethodName: () => sparkFlashnetExecuteSwapMethodName,
186
+ sparkFlashnetExecuteSwapParamsSchema: () => sparkFlashnetExecuteSwapParamsSchema,
187
+ sparkFlashnetExecuteSwapRequestMessageSchema: () => sparkFlashnetExecuteSwapRequestMessageSchema,
188
+ sparkFlashnetExecuteSwapResultSchema: () => sparkFlashnetExecuteSwapResultSchema,
181
189
  sparkFlashnetGetJwtMethodName: () => sparkFlashnetGetJwtMethodName,
182
190
  sparkFlashnetGetJwtParamsSchema: () => sparkFlashnetGetJwtParamsSchema,
183
191
  sparkFlashnetGetJwtRequestMessageSchema: () => sparkFlashnetGetJwtRequestMessageSchema,
@@ -258,7 +266,7 @@ __export(index_exports, {
258
266
  module.exports = __toCommonJS(index_exports);
259
267
 
260
268
  // src/request/index.ts
261
- var v37 = __toESM(require("valibot"));
269
+ var v39 = __toESM(require("valibot"));
262
270
 
263
271
  // src/provider/types.ts
264
272
  var v4 = __toESM(require("valibot"));
@@ -1121,155 +1129,224 @@ var runesTransferRequestMessageSchema = v11.object({
1121
1129
  }).entries
1122
1130
  });
1123
1131
 
1124
- // src/request/types/sparkMethods/flashnetMethods/getJwt.ts
1132
+ // src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
1125
1133
  var v12 = __toESM(require("valibot"));
1126
- var sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
1127
- var sparkFlashnetGetJwtParamsSchema = v12.null();
1128
- var sparkFlashnetGetJwtResultSchema = v12.object({
1129
- /**
1130
- * The JWT token for authenticated requests to the Flashnet API.
1131
- */
1132
- jwt: v12.string()
1133
- });
1134
- var sparkFlashnetGetJwtRequestMessageSchema = v12.object({
1134
+ var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
1135
+ var sparkFlashnetExecuteRouteSwapParamsSchema = v12.object({
1136
+ hops: v12.array(
1137
+ v12.object({
1138
+ poolId: v12.string(),
1139
+ assetInAddress: v12.string(),
1140
+ assetOutAddress: v12.string(),
1141
+ hopIntegratorFeeRateBps: v12.optional(v12.number())
1142
+ })
1143
+ ),
1144
+ initialAssetAddress: v12.string(),
1145
+ inputAmount: v12.string(),
1146
+ maxRouteSlippageBps: v12.string(),
1147
+ minAmountOut: v12.string(),
1148
+ integratorFeeRateBps: v12.optional(v12.number()),
1149
+ integratorPublicKey: v12.optional(v12.string())
1150
+ });
1151
+ var sparkFlashnetExecuteRouteSwapResultSchema = v12.object({
1152
+ requestId: v12.string(),
1153
+ accepted: v12.boolean(),
1154
+ outputAmount: v12.string(),
1155
+ executionPrice: v12.string(),
1156
+ finalOutboundTransferId: v12.string(),
1157
+ error: v12.optional(v12.string())
1158
+ });
1159
+ var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v12.object({
1135
1160
  ...rpcRequestMessageSchema.entries,
1136
1161
  ...v12.object({
1137
- method: v12.literal(sparkFlashnetGetJwtMethodName),
1138
- params: sparkFlashnetGetJwtParamsSchema,
1162
+ method: v12.literal(sparkFlashnetExecuteRouteSwapMethodName),
1163
+ params: sparkFlashnetExecuteRouteSwapParamsSchema,
1139
1164
  id: v12.string()
1140
1165
  }).entries
1141
1166
  });
1142
1167
 
1143
- // src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.ts
1168
+ // src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
1144
1169
  var v13 = __toESM(require("valibot"));
1145
- var sparkFlashnetAddLiquidityIntentSchema = v13.object({
1146
- type: v13.literal("addLiquidity"),
1147
- data: v13.object({
1148
- userPublicKey: v13.string(),
1149
- poolId: v13.string(),
1150
- assetAAmount: v13.string(),
1151
- assetBAmount: v13.string(),
1152
- assetAMinAmountIn: v13.string(),
1153
- assetBMinAmountIn: v13.string(),
1154
- assetATransferId: v13.string(),
1155
- assetBTransferId: v13.string(),
1156
- nonce: v13.string()
1157
- })
1170
+ var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
1171
+ var sparkFlashnetExecuteSwapParamsSchema = v13.object({
1172
+ poolId: v13.string(),
1173
+ assetInAddress: v13.string(),
1174
+ assetOutAddress: v13.string(),
1175
+ amountIn: v13.string(),
1176
+ maxSlippageBps: v13.number(),
1177
+ minAmountOut: v13.string(),
1178
+ integratorFeeRateBps: v13.optional(v13.number()),
1179
+ integratorPublicKey: v13.optional(v13.string())
1180
+ });
1181
+ var sparkFlashnetExecuteSwapResultSchema = v13.object({
1182
+ requestId: v13.string(),
1183
+ accepted: v13.boolean(),
1184
+ amountOut: v13.optional(v13.string()),
1185
+ feeAmount: v13.optional(v13.string()),
1186
+ executionPrice: v13.optional(v13.string()),
1187
+ assetOutAddress: v13.optional(v13.string()),
1188
+ assetInAddress: v13.optional(v13.string()),
1189
+ outboundTransferId: v13.optional(v13.string()),
1190
+ error: v13.optional(v13.string())
1191
+ });
1192
+ var sparkFlashnetExecuteSwapRequestMessageSchema = v13.object({
1193
+ ...rpcRequestMessageSchema.entries,
1194
+ ...v13.object({
1195
+ method: v13.literal(sparkFlashnetExecuteSwapMethodName),
1196
+ params: sparkFlashnetExecuteSwapParamsSchema,
1197
+ id: v13.string()
1198
+ }).entries
1158
1199
  });
1159
1200
 
1160
- // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
1201
+ // src/request/types/sparkMethods/flashnetMethods/getJwt.ts
1161
1202
  var v14 = __toESM(require("valibot"));
1162
- var sparkFlashnetClawbackIntentSchema = v14.object({
1163
- type: v14.literal("clawback"),
1164
- data: v14.object({
1165
- senderPublicKey: v14.string(),
1166
- sparkTransferId: v14.string(),
1167
- lpIdentityPublicKey: v14.string(),
1168
- nonce: v14.string()
1169
- })
1203
+ var sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
1204
+ var sparkFlashnetGetJwtParamsSchema = v14.null();
1205
+ var sparkFlashnetGetJwtResultSchema = v14.object({
1206
+ /**
1207
+ * The JWT token for authenticated requests to the Flashnet API.
1208
+ */
1209
+ jwt: v14.string()
1210
+ });
1211
+ var sparkFlashnetGetJwtRequestMessageSchema = v14.object({
1212
+ ...rpcRequestMessageSchema.entries,
1213
+ ...v14.object({
1214
+ method: v14.literal(sparkFlashnetGetJwtMethodName),
1215
+ params: sparkFlashnetGetJwtParamsSchema,
1216
+ id: v14.string()
1217
+ }).entries
1170
1218
  });
1171
1219
 
1172
- // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
1220
+ // src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.ts
1173
1221
  var v15 = __toESM(require("valibot"));
1174
- var sparkFlashnetConfirmInitialDepositIntentSchema = v15.object({
1175
- type: v15.literal("confirmInitialDeposit"),
1222
+ var sparkFlashnetAddLiquidityIntentSchema = v15.object({
1223
+ type: v15.literal("addLiquidity"),
1176
1224
  data: v15.object({
1225
+ userPublicKey: v15.string(),
1177
1226
  poolId: v15.string(),
1178
- assetASparkTransferId: v15.string(),
1179
- poolOwnerPublicKey: v15.string(),
1227
+ assetAAmount: v15.string(),
1228
+ assetBAmount: v15.string(),
1229
+ assetAMinAmountIn: v15.string(),
1230
+ assetBMinAmountIn: v15.string(),
1231
+ assetATransferId: v15.string(),
1232
+ assetBTransferId: v15.string(),
1180
1233
  nonce: v15.string()
1181
1234
  })
1182
1235
  });
1183
1236
 
1184
- // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1237
+ // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
1185
1238
  var v16 = __toESM(require("valibot"));
1186
- var sparkFlashnetCreateConstantProductPoolIntentSchema = v16.object({
1187
- type: v16.literal("createConstantProductPool"),
1239
+ var sparkFlashnetClawbackIntentSchema = v16.object({
1240
+ type: v16.literal("clawback"),
1188
1241
  data: v16.object({
1189
- poolOwnerPublicKey: v16.string(),
1190
- assetAAddress: v16.string(),
1191
- assetBAddress: v16.string(),
1192
- lpFeeRateBps: v16.union([v16.number(), v16.string()]),
1193
- totalHostFeeRateBps: v16.union([v16.number(), v16.string()]),
1242
+ senderPublicKey: v16.string(),
1243
+ sparkTransferId: v16.string(),
1244
+ lpIdentityPublicKey: v16.string(),
1194
1245
  nonce: v16.string()
1195
1246
  })
1196
1247
  });
1197
1248
 
1198
- // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1249
+ // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
1199
1250
  var v17 = __toESM(require("valibot"));
1200
- var sparkFlashnetCreateSingleSidedPoolIntentSchema = v17.object({
1201
- type: v17.literal("createSingleSidedPool"),
1251
+ var sparkFlashnetConfirmInitialDepositIntentSchema = v17.object({
1252
+ type: v17.literal("confirmInitialDeposit"),
1202
1253
  data: v17.object({
1203
- assetAAddress: v17.string(),
1204
- assetBAddress: v17.string(),
1205
- assetAInitialReserve: v17.string(),
1206
- virtualReserveA: v17.union([v17.number(), v17.string()]),
1207
- virtualReserveB: v17.union([v17.number(), v17.string()]),
1208
- threshold: v17.union([v17.number(), v17.string()]),
1209
- lpFeeRateBps: v17.union([v17.number(), v17.string()]),
1210
- totalHostFeeRateBps: v17.union([v17.number(), v17.string()]),
1254
+ poolId: v17.string(),
1255
+ assetASparkTransferId: v17.string(),
1211
1256
  poolOwnerPublicKey: v17.string(),
1212
1257
  nonce: v17.string()
1213
1258
  })
1214
1259
  });
1215
1260
 
1216
- // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1261
+ // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1217
1262
  var v18 = __toESM(require("valibot"));
1218
- var sparkFlashnetRemoveLiquidityIntentSchema = v18.object({
1219
- type: v18.literal("removeLiquidity"),
1263
+ var sparkFlashnetCreateConstantProductPoolIntentSchema = v18.object({
1264
+ type: v18.literal("createConstantProductPool"),
1220
1265
  data: v18.object({
1221
- userPublicKey: v18.string(),
1222
- poolId: v18.string(),
1223
- lpTokensToRemove: v18.string(),
1266
+ poolOwnerPublicKey: v18.string(),
1267
+ assetAAddress: v18.string(),
1268
+ assetBAddress: v18.string(),
1269
+ lpFeeRateBps: v18.union([v18.number(), v18.string()]),
1270
+ totalHostFeeRateBps: v18.union([v18.number(), v18.string()]),
1224
1271
  nonce: v18.string()
1225
1272
  })
1226
1273
  });
1227
1274
 
1228
- // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1275
+ // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1229
1276
  var v19 = __toESM(require("valibot"));
1230
- var sparkFlashnetRouteSwapIntentSchema = v19.object({
1231
- type: v19.literal("executeRouteSwap"),
1277
+ var sparkFlashnetCreateSingleSidedPoolIntentSchema = v19.object({
1278
+ type: v19.literal("createSingleSidedPool"),
1232
1279
  data: v19.object({
1233
- userPublicKey: v19.string(),
1234
- initialSparkTransferId: v19.string(),
1235
- hops: v19.array(
1236
- v19.object({
1237
- poolId: v19.string(),
1238
- inputAssetAddress: v19.string(),
1239
- outputAssetAddress: v19.string(),
1240
- hopIntegratorFeeRateBps: v19.optional(v19.union([v19.number(), v19.string()]))
1241
- })
1242
- ),
1243
- inputAmount: v19.string(),
1244
- maxRouteSlippageBps: v19.union([v19.number(), v19.string()]),
1245
- minAmountOut: v19.string(),
1246
- defaultIntegratorFeeRateBps: v19.optional(v19.union([v19.number(), v19.string()])),
1280
+ assetAAddress: v19.string(),
1281
+ assetBAddress: v19.string(),
1282
+ assetAInitialReserve: v19.string(),
1283
+ virtualReserveA: v19.union([v19.number(), v19.string()]),
1284
+ virtualReserveB: v19.union([v19.number(), v19.string()]),
1285
+ threshold: v19.union([v19.number(), v19.string()]),
1286
+ lpFeeRateBps: v19.union([v19.number(), v19.string()]),
1287
+ totalHostFeeRateBps: v19.union([v19.number(), v19.string()]),
1288
+ poolOwnerPublicKey: v19.string(),
1247
1289
  nonce: v19.string()
1248
1290
  })
1249
1291
  });
1250
1292
 
1251
- // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1293
+ // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1252
1294
  var v20 = __toESM(require("valibot"));
1253
- var sparkFlashnetSwapIntentSchema = v20.object({
1254
- type: v20.literal("executeSwap"),
1295
+ var sparkFlashnetRemoveLiquidityIntentSchema = v20.object({
1296
+ type: v20.literal("removeLiquidity"),
1255
1297
  data: v20.object({
1256
1298
  userPublicKey: v20.string(),
1257
1299
  poolId: v20.string(),
1258
- transferId: v20.string(),
1259
- assetInAddress: v20.string(),
1260
- assetOutAddress: v20.string(),
1261
- amountIn: v20.string(),
1262
- maxSlippageBps: v20.union([v20.number(), v20.string()]),
1263
- minAmountOut: v20.string(),
1264
- totalIntegratorFeeRateBps: v20.optional(v20.union([v20.number(), v20.string()])),
1300
+ lpTokensToRemove: v20.string(),
1265
1301
  nonce: v20.string()
1266
1302
  })
1267
1303
  });
1268
1304
 
1269
- // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1305
+ // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1270
1306
  var v21 = __toESM(require("valibot"));
1307
+ var sparkFlashnetRouteSwapIntentSchema = v21.object({
1308
+ type: v21.literal("executeRouteSwap"),
1309
+ data: v21.object({
1310
+ userPublicKey: v21.string(),
1311
+ initialSparkTransferId: v21.string(),
1312
+ hops: v21.array(
1313
+ v21.object({
1314
+ poolId: v21.string(),
1315
+ inputAssetAddress: v21.string(),
1316
+ outputAssetAddress: v21.string(),
1317
+ hopIntegratorFeeRateBps: v21.optional(v21.union([v21.number(), v21.string()]))
1318
+ })
1319
+ ),
1320
+ inputAmount: v21.string(),
1321
+ maxRouteSlippageBps: v21.union([v21.number(), v21.string()]),
1322
+ minAmountOut: v21.string(),
1323
+ defaultIntegratorFeeRateBps: v21.optional(v21.union([v21.number(), v21.string()])),
1324
+ nonce: v21.string()
1325
+ })
1326
+ });
1327
+
1328
+ // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1329
+ var v22 = __toESM(require("valibot"));
1330
+ var sparkFlashnetSwapIntentSchema = v22.object({
1331
+ type: v22.literal("executeSwap"),
1332
+ data: v22.object({
1333
+ userPublicKey: v22.string(),
1334
+ poolId: v22.string(),
1335
+ transferId: v22.string(),
1336
+ assetInAddress: v22.string(),
1337
+ assetOutAddress: v22.string(),
1338
+ amountIn: v22.string(),
1339
+ maxSlippageBps: v22.union([v22.number(), v22.string()]),
1340
+ minAmountOut: v22.string(),
1341
+ totalIntegratorFeeRateBps: v22.optional(v22.union([v22.number(), v22.string()])),
1342
+ nonce: v22.string()
1343
+ })
1344
+ });
1345
+
1346
+ // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1347
+ var v23 = __toESM(require("valibot"));
1271
1348
  var sparkFlashnetSignIntentMethodName = "spark_flashnet_signIntent";
1272
- var sparkFlashnetSignIntentParamsSchema = v21.union([
1349
+ var sparkFlashnetSignIntentParamsSchema = v23.union([
1273
1350
  sparkFlashnetSwapIntentSchema,
1274
1351
  sparkFlashnetRouteSwapIntentSchema,
1275
1352
  sparkFlashnetAddLiquidityIntentSchema,
@@ -1279,109 +1356,109 @@ var sparkFlashnetSignIntentParamsSchema = v21.union([
1279
1356
  sparkFlashnetCreateSingleSidedPoolIntentSchema,
1280
1357
  sparkFlashnetRemoveLiquidityIntentSchema
1281
1358
  ]);
1282
- var sparkFlashnetSignIntentResultSchema = v21.object({
1359
+ var sparkFlashnetSignIntentResultSchema = v23.object({
1283
1360
  /**
1284
1361
  * The signed intent as a hex string.
1285
1362
  */
1286
- signature: v21.string()
1363
+ signature: v23.string()
1287
1364
  });
1288
- var sparkFlashnetSignIntentRequestMessageSchema = v21.object({
1365
+ var sparkFlashnetSignIntentRequestMessageSchema = v23.object({
1289
1366
  ...rpcRequestMessageSchema.entries,
1290
- ...v21.object({
1291
- method: v21.literal(sparkFlashnetSignIntentMethodName),
1367
+ ...v23.object({
1368
+ method: v23.literal(sparkFlashnetSignIntentMethodName),
1292
1369
  params: sparkFlashnetSignIntentParamsSchema,
1293
- id: v21.string()
1370
+ id: v23.string()
1294
1371
  }).entries
1295
1372
  });
1296
1373
 
1297
1374
  // src/request/types/sparkMethods/flashnetMethods/signStructuredMessage.ts
1298
- var v22 = __toESM(require("valibot"));
1375
+ var v24 = __toESM(require("valibot"));
1299
1376
  var sparkFlashnetSignStructuredMessageMethodName = "spark_flashnet_signStructuredMessage";
1300
- var sparkFlashnetSignStructuredMessageParamsSchema = v22.object({
1301
- message: v22.string()
1377
+ var sparkFlashnetSignStructuredMessageParamsSchema = v24.object({
1378
+ message: v24.string()
1302
1379
  });
1303
- var sparkFlashnetSignStructuredMessageResultSchema = v22.object({
1304
- message: v22.string(),
1305
- signature: v22.string()
1380
+ var sparkFlashnetSignStructuredMessageResultSchema = v24.object({
1381
+ message: v24.string(),
1382
+ signature: v24.string()
1306
1383
  });
1307
- var sparkFlashnetSignStructuredMessageRequestMessageSchema = v22.object({
1384
+ var sparkFlashnetSignStructuredMessageRequestMessageSchema = v24.object({
1308
1385
  ...rpcRequestMessageSchema.entries,
1309
- ...v22.object({
1310
- method: v22.literal(sparkFlashnetSignStructuredMessageMethodName),
1386
+ ...v24.object({
1387
+ method: v24.literal(sparkFlashnetSignStructuredMessageMethodName),
1311
1388
  params: sparkFlashnetSignStructuredMessageParamsSchema,
1312
- id: v22.string()
1389
+ id: v24.string()
1313
1390
  }).entries
1314
1391
  });
1315
1392
 
1316
1393
  // src/request/types/sparkMethods/getAddresses.ts
1317
- var v23 = __toESM(require("valibot"));
1394
+ var v25 = __toESM(require("valibot"));
1318
1395
  var sparkGetAddressesMethodName = "spark_getAddresses";
1319
- var sparkGetAddressesParamsSchema = v23.nullish(
1320
- v23.object({
1396
+ var sparkGetAddressesParamsSchema = v25.nullish(
1397
+ v25.object({
1321
1398
  /**
1322
1399
  * A message to be displayed to the user in the request prompt.
1323
1400
  */
1324
- message: v23.optional(v23.string())
1401
+ message: v25.optional(v25.string())
1325
1402
  })
1326
1403
  );
1327
- var sparkGetAddressesResultSchema = v23.object({
1404
+ var sparkGetAddressesResultSchema = v25.object({
1328
1405
  /**
1329
1406
  * The addresses generated for the given purposes.
1330
1407
  */
1331
- addresses: v23.array(addressSchema),
1408
+ addresses: v25.array(addressSchema),
1332
1409
  network: getNetworkResultSchema
1333
1410
  });
1334
- var sparkGetAddressesRequestMessageSchema = v23.object({
1411
+ var sparkGetAddressesRequestMessageSchema = v25.object({
1335
1412
  ...rpcRequestMessageSchema.entries,
1336
- ...v23.object({
1337
- method: v23.literal(sparkGetAddressesMethodName),
1413
+ ...v25.object({
1414
+ method: v25.literal(sparkGetAddressesMethodName),
1338
1415
  params: sparkGetAddressesParamsSchema,
1339
- id: v23.string()
1416
+ id: v25.string()
1340
1417
  }).entries
1341
1418
  });
1342
1419
 
1343
1420
  // src/request/types/sparkMethods/getBalance.ts
1344
- var v24 = __toESM(require("valibot"));
1421
+ var v26 = __toESM(require("valibot"));
1345
1422
  var sparkGetBalanceMethodName = "spark_getBalance";
1346
- var sparkGetBalanceParamsSchema = v24.nullish(v24.null());
1347
- var sparkGetBalanceResultSchema = v24.object({
1423
+ var sparkGetBalanceParamsSchema = v26.nullish(v26.null());
1424
+ var sparkGetBalanceResultSchema = v26.object({
1348
1425
  /**
1349
1426
  * The Spark Bitcoin address balance in sats in string form.
1350
1427
  */
1351
- balance: v24.string(),
1352
- tokenBalances: v24.array(
1353
- v24.object({
1428
+ balance: v26.string(),
1429
+ tokenBalances: v26.array(
1430
+ v26.object({
1354
1431
  /* The address balance of the token in string form as it can overflow a js number */
1355
- balance: v24.string(),
1356
- tokenMetadata: v24.object({
1357
- tokenIdentifier: v24.string(),
1358
- tokenName: v24.string(),
1359
- tokenTicker: v24.string(),
1360
- decimals: v24.number(),
1361
- maxSupply: v24.string()
1432
+ balance: v26.string(),
1433
+ tokenMetadata: v26.object({
1434
+ tokenIdentifier: v26.string(),
1435
+ tokenName: v26.string(),
1436
+ tokenTicker: v26.string(),
1437
+ decimals: v26.number(),
1438
+ maxSupply: v26.string()
1362
1439
  })
1363
1440
  })
1364
1441
  )
1365
1442
  });
1366
- var sparkGetBalanceRequestMessageSchema = v24.object({
1443
+ var sparkGetBalanceRequestMessageSchema = v26.object({
1367
1444
  ...rpcRequestMessageSchema.entries,
1368
- ...v24.object({
1369
- method: v24.literal(sparkGetBalanceMethodName),
1445
+ ...v26.object({
1446
+ method: v26.literal(sparkGetBalanceMethodName),
1370
1447
  params: sparkGetBalanceParamsSchema,
1371
- id: v24.string()
1448
+ id: v26.string()
1372
1449
  }).entries
1373
1450
  });
1374
1451
 
1375
1452
  // src/request/types/sparkMethods/signMessage.ts
1376
- var v25 = __toESM(require("valibot"));
1453
+ var v27 = __toESM(require("valibot"));
1377
1454
  var sparkSignMessageMethodName = "spark_signMessage";
1378
- var sparkSignMessageParamsSchema = v25.object({
1455
+ var sparkSignMessageParamsSchema = v27.object({
1379
1456
  /**
1380
1457
  * The message to sign. The message should only consist of valid UTF-8 characters.
1381
1458
  */
1382
- message: v25.string()
1459
+ message: v27.string()
1383
1460
  });
1384
- var sparkSignMessageResultSchema = v25.object({
1461
+ var sparkSignMessageResultSchema = v27.object({
1385
1462
  /**
1386
1463
  * The signature, encoded in base64, of the message hash.
1387
1464
  *
@@ -1389,98 +1466,98 @@ var sparkSignMessageResultSchema = v25.object({
1389
1466
  * and the resulting byte array is hashed with SHA256 before signing
1390
1467
  * with the private key.
1391
1468
  */
1392
- signature: v25.string()
1469
+ signature: v27.string()
1393
1470
  });
1394
- var sparkSignMessageRequestMessageSchema = v25.object({
1471
+ var sparkSignMessageRequestMessageSchema = v27.object({
1395
1472
  ...rpcRequestMessageSchema.entries,
1396
- ...v25.object({
1397
- method: v25.literal(sparkSignMessageMethodName),
1473
+ ...v27.object({
1474
+ method: v27.literal(sparkSignMessageMethodName),
1398
1475
  params: sparkSignMessageParamsSchema,
1399
- id: v25.string()
1476
+ id: v27.string()
1400
1477
  }).entries
1401
1478
  });
1402
1479
 
1403
1480
  // src/request/types/sparkMethods/transfer.ts
1404
- var v26 = __toESM(require("valibot"));
1481
+ var v28 = __toESM(require("valibot"));
1405
1482
  var sparkTransferMethodName = "spark_transfer";
1406
- var sparkTransferParamsSchema = v26.object({
1483
+ var sparkTransferParamsSchema = v28.object({
1407
1484
  /**
1408
1485
  * Amount of SATS to transfer as a string or number.
1409
1486
  */
1410
- amountSats: v26.union([v26.number(), v26.string()]),
1487
+ amountSats: v28.union([v28.number(), v28.string()]),
1411
1488
  /**
1412
1489
  * The recipient's spark address.
1413
1490
  */
1414
- receiverSparkAddress: v26.string()
1491
+ receiverSparkAddress: v28.string()
1415
1492
  });
1416
- var sparkTransferResultSchema = v26.object({
1493
+ var sparkTransferResultSchema = v28.object({
1417
1494
  /**
1418
1495
  * The ID of the transaction.
1419
1496
  */
1420
- id: v26.string()
1497
+ id: v28.string()
1421
1498
  });
1422
- var sparkTransferRequestMessageSchema = v26.object({
1499
+ var sparkTransferRequestMessageSchema = v28.object({
1423
1500
  ...rpcRequestMessageSchema.entries,
1424
- ...v26.object({
1425
- method: v26.literal(sparkTransferMethodName),
1501
+ ...v28.object({
1502
+ method: v28.literal(sparkTransferMethodName),
1426
1503
  params: sparkTransferParamsSchema,
1427
- id: v26.string()
1504
+ id: v28.string()
1428
1505
  }).entries
1429
1506
  });
1430
1507
 
1431
1508
  // src/request/types/sparkMethods/transferToken.ts
1432
- var v27 = __toESM(require("valibot"));
1509
+ var v29 = __toESM(require("valibot"));
1433
1510
  var sparkTransferTokenMethodName = "spark_transferToken";
1434
- var sparkTransferTokenParamsSchema = v27.object({
1511
+ var sparkTransferTokenParamsSchema = v29.object({
1435
1512
  /**
1436
1513
  * Amount of units of the token to transfer as a string or number.
1437
1514
  */
1438
- tokenAmount: v27.union([v27.number(), v27.string()]),
1515
+ tokenAmount: v29.union([v29.number(), v29.string()]),
1439
1516
  /**
1440
1517
  * The Bech32m token identifier.
1441
1518
  */
1442
- tokenIdentifier: v27.string(),
1519
+ tokenIdentifier: v29.string(),
1443
1520
  /**
1444
1521
  * The recipient's spark address.
1445
1522
  */
1446
- receiverSparkAddress: v27.string()
1523
+ receiverSparkAddress: v29.string()
1447
1524
  });
1448
- var sparkTransferTokenResultSchema = v27.object({
1525
+ var sparkTransferTokenResultSchema = v29.object({
1449
1526
  /**
1450
1527
  * The ID of the transaction.
1451
1528
  */
1452
- id: v27.string()
1529
+ id: v29.string()
1453
1530
  });
1454
- var sparkTransferTokenRequestMessageSchema = v27.object({
1531
+ var sparkTransferTokenRequestMessageSchema = v29.object({
1455
1532
  ...rpcRequestMessageSchema.entries,
1456
- ...v27.object({
1457
- method: v27.literal(sparkTransferTokenMethodName),
1533
+ ...v29.object({
1534
+ method: v29.literal(sparkTransferTokenMethodName),
1458
1535
  params: sparkTransferTokenParamsSchema,
1459
- id: v27.string()
1536
+ id: v29.string()
1460
1537
  }).entries
1461
1538
  });
1462
1539
 
1463
1540
  // src/request/types/stxMethods/callContract.ts
1464
- var v28 = __toESM(require("valibot"));
1541
+ var v30 = __toESM(require("valibot"));
1465
1542
  var stxCallContractMethodName = "stx_callContract";
1466
- var stxCallContractParamsSchema = v28.object({
1543
+ var stxCallContractParamsSchema = v30.object({
1467
1544
  /**
1468
1545
  * The contract principal.
1469
1546
  *
1470
1547
  * E.g. `"SPKE...GD5C.my-contract"`
1471
1548
  */
1472
- contract: v28.string(),
1549
+ contract: v30.string(),
1473
1550
  /**
1474
1551
  * The name of the function to call.
1475
1552
  *
1476
1553
  * Note: spec changes ongoing,
1477
1554
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1478
1555
  */
1479
- functionName: v28.string(),
1556
+ functionName: v30.string(),
1480
1557
  /**
1481
1558
  * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1482
1559
  */
1483
- arguments: v28.optional(v28.array(v28.string())),
1560
+ arguments: v30.optional(v30.array(v30.string())),
1484
1561
  /**
1485
1562
  * The function's arguments. The arguments are expected to be hex-encoded
1486
1563
  * strings of Clarity values.
@@ -1495,274 +1572,274 @@ var stxCallContractParamsSchema = v28.object({
1495
1572
  * const hexArgs = functionArgs.map(cvToHex);
1496
1573
  * ```
1497
1574
  */
1498
- functionArgs: v28.optional(v28.array(v28.string())),
1575
+ functionArgs: v30.optional(v30.array(v30.string())),
1499
1576
  /**
1500
1577
  * The post conditions to apply to the contract call.
1501
1578
  */
1502
- postConditions: v28.optional(v28.array(v28.string())),
1579
+ postConditions: v30.optional(v30.array(v30.string())),
1503
1580
  /**
1504
1581
  * The mode to apply to the post conditions.
1505
1582
  */
1506
- postConditionMode: v28.optional(v28.union([v28.literal("allow"), v28.literal("deny")]))
1583
+ postConditionMode: v30.optional(v30.union([v30.literal("allow"), v30.literal("deny")]))
1507
1584
  });
1508
- var stxCallContractResultSchema = v28.object({
1585
+ var stxCallContractResultSchema = v30.object({
1509
1586
  /**
1510
1587
  * The ID of the transaction.
1511
1588
  */
1512
- txid: v28.string(),
1589
+ txid: v30.string(),
1513
1590
  /**
1514
1591
  * A Stacks transaction as a hex-encoded string.
1515
1592
  */
1516
- transaction: v28.string()
1593
+ transaction: v30.string()
1517
1594
  });
1518
- var stxCallContractRequestMessageSchema = v28.object({
1595
+ var stxCallContractRequestMessageSchema = v30.object({
1519
1596
  ...rpcRequestMessageSchema.entries,
1520
- ...v28.object({
1521
- method: v28.literal(stxCallContractMethodName),
1597
+ ...v30.object({
1598
+ method: v30.literal(stxCallContractMethodName),
1522
1599
  params: stxCallContractParamsSchema,
1523
- id: v28.string()
1600
+ id: v30.string()
1524
1601
  }).entries
1525
1602
  });
1526
1603
 
1527
1604
  // src/request/types/stxMethods/deployContract.ts
1528
- var v29 = __toESM(require("valibot"));
1605
+ var v31 = __toESM(require("valibot"));
1529
1606
  var stxDeployContractMethodName = "stx_deployContract";
1530
- var stxDeployContractParamsSchema = v29.object({
1607
+ var stxDeployContractParamsSchema = v31.object({
1531
1608
  /**
1532
1609
  * Name of the contract.
1533
1610
  */
1534
- name: v29.string(),
1611
+ name: v31.string(),
1535
1612
  /**
1536
1613
  * The source code of the Clarity contract.
1537
1614
  */
1538
- clarityCode: v29.string(),
1615
+ clarityCode: v31.string(),
1539
1616
  /**
1540
1617
  * The version of the Clarity contract.
1541
1618
  */
1542
- clarityVersion: v29.optional(v29.number()),
1619
+ clarityVersion: v31.optional(v31.number()),
1543
1620
  /**
1544
1621
  * The post conditions to apply to the contract call.
1545
1622
  */
1546
- postConditions: v29.optional(v29.array(v29.string())),
1623
+ postConditions: v31.optional(v31.array(v31.string())),
1547
1624
  /**
1548
1625
  * The mode to apply to the post conditions.
1549
1626
  */
1550
- postConditionMode: v29.optional(v29.union([v29.literal("allow"), v29.literal("deny")]))
1627
+ postConditionMode: v31.optional(v31.union([v31.literal("allow"), v31.literal("deny")]))
1551
1628
  });
1552
- var stxDeployContractResultSchema = v29.object({
1629
+ var stxDeployContractResultSchema = v31.object({
1553
1630
  /**
1554
1631
  * The ID of the transaction.
1555
1632
  */
1556
- txid: v29.string(),
1633
+ txid: v31.string(),
1557
1634
  /**
1558
1635
  * A Stacks transaction as a hex-encoded string.
1559
1636
  */
1560
- transaction: v29.string()
1637
+ transaction: v31.string()
1561
1638
  });
1562
- var stxDeployContractRequestMessageSchema = v29.object({
1639
+ var stxDeployContractRequestMessageSchema = v31.object({
1563
1640
  ...rpcRequestMessageSchema.entries,
1564
- ...v29.object({
1565
- method: v29.literal(stxDeployContractMethodName),
1641
+ ...v31.object({
1642
+ method: v31.literal(stxDeployContractMethodName),
1566
1643
  params: stxDeployContractParamsSchema,
1567
- id: v29.string()
1644
+ id: v31.string()
1568
1645
  }).entries
1569
1646
  });
1570
1647
 
1571
1648
  // src/request/types/stxMethods/getAccounts.ts
1572
- var v30 = __toESM(require("valibot"));
1649
+ var v32 = __toESM(require("valibot"));
1573
1650
  var stxGetAccountsMethodName = "stx_getAccounts";
1574
- var stxGetAccountsParamsSchema = v30.nullish(v30.null());
1575
- var stxGetAccountsResultSchema = v30.object({
1651
+ var stxGetAccountsParamsSchema = v32.nullish(v32.null());
1652
+ var stxGetAccountsResultSchema = v32.object({
1576
1653
  /**
1577
1654
  * The addresses generated for the given purposes.
1578
1655
  */
1579
- addresses: v30.array(
1580
- v30.object({
1581
- address: v30.string(),
1582
- publicKey: v30.string(),
1583
- gaiaHubUrl: v30.string(),
1584
- gaiaAppKey: v30.string()
1656
+ addresses: v32.array(
1657
+ v32.object({
1658
+ address: v32.string(),
1659
+ publicKey: v32.string(),
1660
+ gaiaHubUrl: v32.string(),
1661
+ gaiaAppKey: v32.string()
1585
1662
  })
1586
1663
  ),
1587
1664
  network: getNetworkResultSchema
1588
1665
  });
1589
- var stxGetAccountsRequestMessageSchema = v30.object({
1666
+ var stxGetAccountsRequestMessageSchema = v32.object({
1590
1667
  ...rpcRequestMessageSchema.entries,
1591
- ...v30.object({
1592
- method: v30.literal(stxGetAccountsMethodName),
1668
+ ...v32.object({
1669
+ method: v32.literal(stxGetAccountsMethodName),
1593
1670
  params: stxGetAccountsParamsSchema,
1594
- id: v30.string()
1671
+ id: v32.string()
1595
1672
  }).entries
1596
1673
  });
1597
1674
 
1598
1675
  // src/request/types/stxMethods/getAddresses.ts
1599
- var v31 = __toESM(require("valibot"));
1676
+ var v33 = __toESM(require("valibot"));
1600
1677
  var stxGetAddressesMethodName = "stx_getAddresses";
1601
- var stxGetAddressesParamsSchema = v31.nullish(
1602
- v31.object({
1678
+ var stxGetAddressesParamsSchema = v33.nullish(
1679
+ v33.object({
1603
1680
  /**
1604
1681
  * A message to be displayed to the user in the request prompt.
1605
1682
  */
1606
- message: v31.optional(v31.string())
1683
+ message: v33.optional(v33.string())
1607
1684
  })
1608
1685
  );
1609
- var stxGetAddressesResultSchema = v31.object({
1686
+ var stxGetAddressesResultSchema = v33.object({
1610
1687
  /**
1611
1688
  * The addresses generated for the given purposes.
1612
1689
  */
1613
- addresses: v31.array(addressSchema),
1690
+ addresses: v33.array(addressSchema),
1614
1691
  network: getNetworkResultSchema
1615
1692
  });
1616
- var stxGetAddressesRequestMessageSchema = v31.object({
1693
+ var stxGetAddressesRequestMessageSchema = v33.object({
1617
1694
  ...rpcRequestMessageSchema.entries,
1618
- ...v31.object({
1619
- method: v31.literal(stxGetAddressesMethodName),
1695
+ ...v33.object({
1696
+ method: v33.literal(stxGetAddressesMethodName),
1620
1697
  params: stxGetAddressesParamsSchema,
1621
- id: v31.string()
1698
+ id: v33.string()
1622
1699
  }).entries
1623
1700
  });
1624
1701
 
1625
1702
  // src/request/types/stxMethods/signMessage.ts
1626
- var v32 = __toESM(require("valibot"));
1703
+ var v34 = __toESM(require("valibot"));
1627
1704
  var stxSignMessageMethodName = "stx_signMessage";
1628
- var stxSignMessageParamsSchema = v32.object({
1705
+ var stxSignMessageParamsSchema = v34.object({
1629
1706
  /**
1630
1707
  * The message to sign.
1631
1708
  */
1632
- message: v32.string()
1709
+ message: v34.string()
1633
1710
  });
1634
- var stxSignMessageResultSchema = v32.object({
1711
+ var stxSignMessageResultSchema = v34.object({
1635
1712
  /**
1636
1713
  * The signature of the message.
1637
1714
  */
1638
- signature: v32.string(),
1715
+ signature: v34.string(),
1639
1716
  /**
1640
1717
  * The public key used to sign the message.
1641
1718
  */
1642
- publicKey: v32.string()
1719
+ publicKey: v34.string()
1643
1720
  });
1644
- var stxSignMessageRequestMessageSchema = v32.object({
1721
+ var stxSignMessageRequestMessageSchema = v34.object({
1645
1722
  ...rpcRequestMessageSchema.entries,
1646
- ...v32.object({
1647
- method: v32.literal(stxSignMessageMethodName),
1723
+ ...v34.object({
1724
+ method: v34.literal(stxSignMessageMethodName),
1648
1725
  params: stxSignMessageParamsSchema,
1649
- id: v32.string()
1726
+ id: v34.string()
1650
1727
  }).entries
1651
1728
  });
1652
1729
 
1653
1730
  // src/request/types/stxMethods/signStructuredMessage.ts
1654
- var v33 = __toESM(require("valibot"));
1731
+ var v35 = __toESM(require("valibot"));
1655
1732
  var stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1656
- var stxSignStructuredMessageParamsSchema = v33.object({
1733
+ var stxSignStructuredMessageParamsSchema = v35.object({
1657
1734
  /**
1658
1735
  * The domain to be signed.
1659
1736
  */
1660
- domain: v33.string(),
1737
+ domain: v35.string(),
1661
1738
  /**
1662
1739
  * Message payload to be signed.
1663
1740
  */
1664
- message: v33.string(),
1741
+ message: v35.string(),
1665
1742
  /**
1666
1743
  * The public key to sign the message with.
1667
1744
  */
1668
- publicKey: v33.optional(v33.string())
1745
+ publicKey: v35.optional(v35.string())
1669
1746
  });
1670
- var stxSignStructuredMessageResultSchema = v33.object({
1747
+ var stxSignStructuredMessageResultSchema = v35.object({
1671
1748
  /**
1672
1749
  * Signature of the message.
1673
1750
  */
1674
- signature: v33.string(),
1751
+ signature: v35.string(),
1675
1752
  /**
1676
1753
  * Public key as hex-encoded string.
1677
1754
  */
1678
- publicKey: v33.string()
1755
+ publicKey: v35.string()
1679
1756
  });
1680
- var stxSignStructuredMessageRequestMessageSchema = v33.object({
1757
+ var stxSignStructuredMessageRequestMessageSchema = v35.object({
1681
1758
  ...rpcRequestMessageSchema.entries,
1682
- ...v33.object({
1683
- method: v33.literal(stxSignStructuredMessageMethodName),
1759
+ ...v35.object({
1760
+ method: v35.literal(stxSignStructuredMessageMethodName),
1684
1761
  params: stxSignStructuredMessageParamsSchema,
1685
- id: v33.string()
1762
+ id: v35.string()
1686
1763
  }).entries
1687
1764
  });
1688
1765
 
1689
1766
  // src/request/types/stxMethods/signTransaction.ts
1690
- var v34 = __toESM(require("valibot"));
1767
+ var v36 = __toESM(require("valibot"));
1691
1768
  var stxSignTransactionMethodName = "stx_signTransaction";
1692
- var stxSignTransactionParamsSchema = v34.object({
1769
+ var stxSignTransactionParamsSchema = v36.object({
1693
1770
  /**
1694
1771
  * The transaction to sign as a hex-encoded string.
1695
1772
  */
1696
- transaction: v34.string(),
1773
+ transaction: v36.string(),
1697
1774
  /**
1698
1775
  * The public key to sign the transaction with. The wallet may use any key
1699
1776
  * when not provided.
1700
1777
  */
1701
- pubkey: v34.optional(v34.string()),
1778
+ pubkey: v36.optional(v36.string()),
1702
1779
  /**
1703
1780
  * Whether to broadcast the transaction after signing. Defaults to `true`.
1704
1781
  */
1705
- broadcast: v34.optional(v34.boolean())
1782
+ broadcast: v36.optional(v36.boolean())
1706
1783
  });
1707
- var stxSignTransactionResultSchema = v34.object({
1784
+ var stxSignTransactionResultSchema = v36.object({
1708
1785
  /**
1709
1786
  * The signed transaction as a hex-encoded string.
1710
1787
  */
1711
- transaction: v34.string()
1788
+ transaction: v36.string()
1712
1789
  });
1713
- var stxSignTransactionRequestMessageSchema = v34.object({
1790
+ var stxSignTransactionRequestMessageSchema = v36.object({
1714
1791
  ...rpcRequestMessageSchema.entries,
1715
- ...v34.object({
1716
- method: v34.literal(stxSignTransactionMethodName),
1792
+ ...v36.object({
1793
+ method: v36.literal(stxSignTransactionMethodName),
1717
1794
  params: stxSignTransactionParamsSchema,
1718
- id: v34.string()
1795
+ id: v36.string()
1719
1796
  }).entries
1720
1797
  });
1721
1798
 
1722
1799
  // src/request/types/stxMethods/signTransactions.ts
1723
- var v35 = __toESM(require("valibot"));
1800
+ var v37 = __toESM(require("valibot"));
1724
1801
  var stxSignTransactionsMethodName = "stx_signTransactions";
1725
- var stxSignTransactionsParamsSchema = v35.object({
1802
+ var stxSignTransactionsParamsSchema = v37.object({
1726
1803
  /**
1727
1804
  * The transactions to sign as hex-encoded strings.
1728
1805
  */
1729
- transactions: v35.pipe(
1730
- v35.array(
1731
- v35.pipe(
1732
- v35.string(),
1733
- v35.check((hex) => {
1806
+ transactions: v37.pipe(
1807
+ v37.array(
1808
+ v37.pipe(
1809
+ v37.string(),
1810
+ v37.check((hex) => {
1734
1811
  return true;
1735
1812
  }, "Invalid hex-encoded Stacks transaction.")
1736
1813
  )
1737
1814
  ),
1738
- v35.minLength(1)
1815
+ v37.minLength(1)
1739
1816
  ),
1740
1817
  /**
1741
1818
  * Whether the signed transactions should be broadcast after signing. Defaults
1742
1819
  * to `true`.
1743
1820
  */
1744
- broadcast: v35.optional(v35.boolean())
1821
+ broadcast: v37.optional(v37.boolean())
1745
1822
  });
1746
- var stxSignTransactionsResultSchema = v35.object({
1823
+ var stxSignTransactionsResultSchema = v37.object({
1747
1824
  /**
1748
1825
  * The signed transactions as hex-encoded strings, in the same order as in the
1749
1826
  * sign request.
1750
1827
  */
1751
- transactions: v35.array(v35.string())
1828
+ transactions: v37.array(v37.string())
1752
1829
  });
1753
- var stxSignTransactionsRequestMessageSchema = v35.object({
1830
+ var stxSignTransactionsRequestMessageSchema = v37.object({
1754
1831
  ...rpcRequestMessageSchema.entries,
1755
- ...v35.object({
1756
- method: v35.literal(stxSignTransactionsMethodName),
1832
+ ...v37.object({
1833
+ method: v37.literal(stxSignTransactionsMethodName),
1757
1834
  params: stxSignTransactionsParamsSchema,
1758
- id: v35.string()
1835
+ id: v37.string()
1759
1836
  }).entries
1760
1837
  });
1761
1838
 
1762
1839
  // src/request/types/stxMethods/transferStx.ts
1763
- var v36 = __toESM(require("valibot"));
1840
+ var v38 = __toESM(require("valibot"));
1764
1841
  var stxTransferStxMethodName = "stx_transferStx";
1765
- var stxTransferStxParamsSchema = v36.object({
1842
+ var stxTransferStxParamsSchema = v38.object({
1766
1843
  /**
1767
1844
  * Amount of STX tokens to transfer in microstacks as a string. Anything
1768
1845
  * parseable by `BigInt` is acceptable.
@@ -1775,23 +1852,23 @@ var stxTransferStxParamsSchema = v36.object({
1775
1852
  * const amount3 = '1234';
1776
1853
  * ```
1777
1854
  */
1778
- amount: v36.union([v36.number(), v36.string()]),
1855
+ amount: v38.union([v38.number(), v38.string()]),
1779
1856
  /**
1780
1857
  * The recipient's principal.
1781
1858
  */
1782
- recipient: v36.string(),
1859
+ recipient: v38.string(),
1783
1860
  /**
1784
1861
  * A string representing the memo.
1785
1862
  */
1786
- memo: v36.optional(v36.string()),
1863
+ memo: v38.optional(v38.string()),
1787
1864
  /**
1788
1865
  * Version of parameter format.
1789
1866
  */
1790
- version: v36.optional(v36.string()),
1867
+ version: v38.optional(v38.string()),
1791
1868
  /**
1792
1869
  * The mode of the post conditions.
1793
1870
  */
1794
- postConditionMode: v36.optional(v36.number()),
1871
+ postConditionMode: v38.optional(v38.number()),
1795
1872
  /**
1796
1873
  * A hex-encoded string representing the post conditions.
1797
1874
  *
@@ -1804,29 +1881,29 @@ var stxTransferStxParamsSchema = v36.object({
1804
1881
  * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1805
1882
  * ```
1806
1883
  */
1807
- postConditions: v36.optional(v36.array(v36.string())),
1884
+ postConditions: v38.optional(v38.array(v38.string())),
1808
1885
  /**
1809
1886
  * The public key to sign the transaction with. The wallet may use any key
1810
1887
  * when not provided.
1811
1888
  */
1812
- pubkey: v36.optional(v36.string())
1889
+ pubkey: v38.optional(v38.string())
1813
1890
  });
1814
- var stxTransferStxResultSchema = v36.object({
1891
+ var stxTransferStxResultSchema = v38.object({
1815
1892
  /**
1816
1893
  * The ID of the transaction.
1817
1894
  */
1818
- txid: v36.string(),
1895
+ txid: v38.string(),
1819
1896
  /**
1820
1897
  * A Stacks transaction as a hex-encoded string.
1821
1898
  */
1822
- transaction: v36.string()
1899
+ transaction: v38.string()
1823
1900
  });
1824
- var stxTransferStxRequestMessageSchema = v36.object({
1901
+ var stxTransferStxRequestMessageSchema = v38.object({
1825
1902
  ...rpcRequestMessageSchema.entries,
1826
- ...v36.object({
1827
- method: v36.literal(stxTransferStxMethodName),
1903
+ ...v38.object({
1904
+ method: v38.literal(stxTransferStxMethodName),
1828
1905
  params: stxTransferStxParamsSchema,
1829
- id: v36.string()
1906
+ id: v38.string()
1830
1907
  }).entries
1831
1908
  });
1832
1909
 
@@ -1834,13 +1911,13 @@ var stxTransferStxRequestMessageSchema = v36.object({
1834
1911
  var cache = {};
1835
1912
  var requestInternal = async (provider, method, params) => {
1836
1913
  const response = await provider.request(method, params);
1837
- if (v37.is(rpcErrorResponseMessageSchema, response)) {
1914
+ if (v39.is(rpcErrorResponseMessageSchema, response)) {
1838
1915
  return {
1839
1916
  status: "error",
1840
1917
  error: response.error
1841
1918
  };
1842
1919
  }
1843
- if (v37.is(rpcSuccessResponseMessageSchema, response)) {
1920
+ if (v39.is(rpcSuccessResponseMessageSchema, response)) {
1844
1921
  return {
1845
1922
  status: "success",
1846
1923
  result: response.result
@@ -3034,6 +3111,14 @@ var signMultipleTransactions = async (options) => {
3034
3111
  sparkFlashnetConfirmInitialDepositIntentSchema,
3035
3112
  sparkFlashnetCreateConstantProductPoolIntentSchema,
3036
3113
  sparkFlashnetCreateSingleSidedPoolIntentSchema,
3114
+ sparkFlashnetExecuteRouteSwapMethodName,
3115
+ sparkFlashnetExecuteRouteSwapParamsSchema,
3116
+ sparkFlashnetExecuteRouteSwapRequestMessageSchema,
3117
+ sparkFlashnetExecuteRouteSwapResultSchema,
3118
+ sparkFlashnetExecuteSwapMethodName,
3119
+ sparkFlashnetExecuteSwapParamsSchema,
3120
+ sparkFlashnetExecuteSwapRequestMessageSchema,
3121
+ sparkFlashnetExecuteSwapResultSchema,
3037
3122
  sparkFlashnetGetJwtMethodName,
3038
3123
  sparkFlashnetGetJwtParamsSchema,
3039
3124
  sparkFlashnetGetJwtRequestMessageSchema,