@sats-connect/core 0.8.0 → 0.8.1-db15ee7

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
@@ -180,6 +180,10 @@ __export(index_exports, {
180
180
  sparkGetBalanceParamsSchema: () => sparkGetBalanceParamsSchema,
181
181
  sparkGetBalanceRequestMessageSchema: () => sparkGetBalanceRequestMessageSchema,
182
182
  sparkGetBalanceResultSchema: () => sparkGetBalanceResultSchema,
183
+ sparkSignMessageMethodName: () => sparkSignMessageMethodName,
184
+ sparkSignMessageParamsSchema: () => sparkSignMessageParamsSchema,
185
+ sparkSignMessageRequestMessageSchema: () => sparkSignMessageRequestMessageSchema,
186
+ sparkSignMessageResultSchema: () => sparkSignMessageResultSchema,
183
187
  sparkTransferMethodName: () => sparkTransferMethodName,
184
188
  sparkTransferParamsSchema: () => sparkTransferParamsSchema,
185
189
  sparkTransferRequestMessageSchema: () => sparkTransferRequestMessageSchema,
@@ -426,7 +430,7 @@ function getSupportedWallets() {
426
430
  }
427
431
 
428
432
  // src/request/index.ts
429
- var v25 = __toESM(require("valibot"));
433
+ var v26 = __toESM(require("valibot"));
430
434
 
431
435
  // src/request/types/btcMethods.ts
432
436
  var v6 = __toESM(require("valibot"));
@@ -1098,87 +1102,108 @@ var sparkGetBalanceRequestMessageSchema = v13.object({
1098
1102
  }).entries
1099
1103
  });
1100
1104
 
1101
- // src/request/types/sparkMethods/transfer.ts
1105
+ // src/request/types/sparkMethods/signMessage.ts
1102
1106
  var v14 = __toESM(require("valibot"));
1107
+ var sparkSignMessageMethodName = "spark_signMessage";
1108
+ var sparkSignMessageParamsSchema = v14.object({
1109
+ message: v14.string()
1110
+ });
1111
+ var sparkSignMessageResultSchema = v14.object({
1112
+ /**
1113
+ * The signature for the message in hex format
1114
+ */
1115
+ signature: v14.string()
1116
+ });
1117
+ var sparkSignMessageRequestMessageSchema = v14.object({
1118
+ ...rpcRequestMessageSchema.entries,
1119
+ ...v14.object({
1120
+ method: v14.literal(sparkSignMessageMethodName),
1121
+ params: sparkSignMessageParamsSchema,
1122
+ id: v14.string()
1123
+ }).entries
1124
+ });
1125
+
1126
+ // src/request/types/sparkMethods/transfer.ts
1127
+ var v15 = __toESM(require("valibot"));
1103
1128
  var sparkTransferMethodName = "spark_transfer";
1104
- var sparkTransferParamsSchema = v14.object({
1129
+ var sparkTransferParamsSchema = v15.object({
1105
1130
  /**
1106
1131
  * Amount of SATS to transfer as a string or number.
1107
1132
  */
1108
- amountSats: v14.union([v14.number(), v14.string()]),
1133
+ amountSats: v15.union([v15.number(), v15.string()]),
1109
1134
  /**
1110
1135
  * The recipient's spark address.
1111
1136
  */
1112
- receiverSparkAddress: v14.string()
1137
+ receiverSparkAddress: v15.string()
1113
1138
  });
1114
- var sparkTransferResultSchema = v14.object({
1139
+ var sparkTransferResultSchema = v15.object({
1115
1140
  /**
1116
1141
  * The ID of the transaction.
1117
1142
  */
1118
- id: v14.string()
1143
+ id: v15.string()
1119
1144
  });
1120
- var sparkTransferRequestMessageSchema = v14.object({
1145
+ var sparkTransferRequestMessageSchema = v15.object({
1121
1146
  ...rpcRequestMessageSchema.entries,
1122
- ...v14.object({
1123
- method: v14.literal(sparkTransferMethodName),
1147
+ ...v15.object({
1148
+ method: v15.literal(sparkTransferMethodName),
1124
1149
  params: sparkTransferParamsSchema,
1125
- id: v14.string()
1150
+ id: v15.string()
1126
1151
  }).entries
1127
1152
  });
1128
1153
 
1129
1154
  // src/request/types/sparkMethods/transferToken.ts
1130
- var v15 = __toESM(require("valibot"));
1155
+ var v16 = __toESM(require("valibot"));
1131
1156
  var sparkTransferTokenMethodName = "spark_transferToken";
1132
- var sparkTransferTokenParamsSchema = v15.object({
1157
+ var sparkTransferTokenParamsSchema = v16.object({
1133
1158
  /**
1134
1159
  * Amount of units of the token to transfer as a string or number.
1135
1160
  */
1136
- tokenAmount: v15.union([v15.number(), v15.string()]),
1161
+ tokenAmount: v16.union([v16.number(), v16.string()]),
1137
1162
  /**
1138
1163
  * The Bech32m token identifier.
1139
1164
  */
1140
- tokenIdentifier: v15.string(),
1165
+ tokenIdentifier: v16.string(),
1141
1166
  /**
1142
1167
  * The recipient's spark address.
1143
1168
  */
1144
- receiverSparkAddress: v15.string()
1169
+ receiverSparkAddress: v16.string()
1145
1170
  });
1146
- var sparkTransferTokenResultSchema = v15.object({
1171
+ var sparkTransferTokenResultSchema = v16.object({
1147
1172
  /**
1148
1173
  * The ID of the transaction.
1149
1174
  */
1150
- id: v15.string()
1175
+ id: v16.string()
1151
1176
  });
1152
- var sparkTransferTokenRequestMessageSchema = v15.object({
1177
+ var sparkTransferTokenRequestMessageSchema = v16.object({
1153
1178
  ...rpcRequestMessageSchema.entries,
1154
- ...v15.object({
1155
- method: v15.literal(sparkTransferTokenMethodName),
1179
+ ...v16.object({
1180
+ method: v16.literal(sparkTransferTokenMethodName),
1156
1181
  params: sparkTransferTokenParamsSchema,
1157
- id: v15.string()
1182
+ id: v16.string()
1158
1183
  }).entries
1159
1184
  });
1160
1185
 
1161
1186
  // src/request/types/stxMethods/callContract.ts
1162
- var v16 = __toESM(require("valibot"));
1187
+ var v17 = __toESM(require("valibot"));
1163
1188
  var stxCallContractMethodName = "stx_callContract";
1164
- var stxCallContractParamsSchema = v16.object({
1189
+ var stxCallContractParamsSchema = v17.object({
1165
1190
  /**
1166
1191
  * The contract principal.
1167
1192
  *
1168
1193
  * E.g. `"SPKE...GD5C.my-contract"`
1169
1194
  */
1170
- contract: v16.string(),
1195
+ contract: v17.string(),
1171
1196
  /**
1172
1197
  * The name of the function to call.
1173
1198
  *
1174
1199
  * Note: spec changes ongoing,
1175
1200
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1176
1201
  */
1177
- functionName: v16.string(),
1202
+ functionName: v17.string(),
1178
1203
  /**
1179
1204
  * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1180
1205
  */
1181
- arguments: v16.optional(v16.array(v16.string())),
1206
+ arguments: v17.optional(v17.array(v17.string())),
1182
1207
  /**
1183
1208
  * The function's arguments. The arguments are expected to be hex-encoded
1184
1209
  * strings of Clarity values.
@@ -1193,274 +1218,274 @@ var stxCallContractParamsSchema = v16.object({
1193
1218
  * const hexArgs = functionArgs.map(cvToHex);
1194
1219
  * ```
1195
1220
  */
1196
- functionArgs: v16.optional(v16.array(v16.string())),
1221
+ functionArgs: v17.optional(v17.array(v17.string())),
1197
1222
  /**
1198
1223
  * The post conditions to apply to the contract call.
1199
1224
  */
1200
- postConditions: v16.optional(v16.array(v16.string())),
1225
+ postConditions: v17.optional(v17.array(v17.string())),
1201
1226
  /**
1202
1227
  * The mode to apply to the post conditions.
1203
1228
  */
1204
- postConditionMode: v16.optional(v16.union([v16.literal("allow"), v16.literal("deny")]))
1229
+ postConditionMode: v17.optional(v17.union([v17.literal("allow"), v17.literal("deny")]))
1205
1230
  });
1206
- var stxCallContractResultSchema = v16.object({
1231
+ var stxCallContractResultSchema = v17.object({
1207
1232
  /**
1208
1233
  * The ID of the transaction.
1209
1234
  */
1210
- txid: v16.string(),
1235
+ txid: v17.string(),
1211
1236
  /**
1212
1237
  * A Stacks transaction as a hex-encoded string.
1213
1238
  */
1214
- transaction: v16.string()
1239
+ transaction: v17.string()
1215
1240
  });
1216
- var stxCallContractRequestMessageSchema = v16.object({
1241
+ var stxCallContractRequestMessageSchema = v17.object({
1217
1242
  ...rpcRequestMessageSchema.entries,
1218
- ...v16.object({
1219
- method: v16.literal(stxCallContractMethodName),
1243
+ ...v17.object({
1244
+ method: v17.literal(stxCallContractMethodName),
1220
1245
  params: stxCallContractParamsSchema,
1221
- id: v16.string()
1246
+ id: v17.string()
1222
1247
  }).entries
1223
1248
  });
1224
1249
 
1225
1250
  // src/request/types/stxMethods/deployContract.ts
1226
- var v17 = __toESM(require("valibot"));
1251
+ var v18 = __toESM(require("valibot"));
1227
1252
  var stxDeployContractMethodName = "stx_deployContract";
1228
- var stxDeployContractParamsSchema = v17.object({
1253
+ var stxDeployContractParamsSchema = v18.object({
1229
1254
  /**
1230
1255
  * Name of the contract.
1231
1256
  */
1232
- name: v17.string(),
1257
+ name: v18.string(),
1233
1258
  /**
1234
1259
  * The source code of the Clarity contract.
1235
1260
  */
1236
- clarityCode: v17.string(),
1261
+ clarityCode: v18.string(),
1237
1262
  /**
1238
1263
  * The version of the Clarity contract.
1239
1264
  */
1240
- clarityVersion: v17.optional(v17.number()),
1265
+ clarityVersion: v18.optional(v18.number()),
1241
1266
  /**
1242
1267
  * The post conditions to apply to the contract call.
1243
1268
  */
1244
- postConditions: v17.optional(v17.array(v17.string())),
1269
+ postConditions: v18.optional(v18.array(v18.string())),
1245
1270
  /**
1246
1271
  * The mode to apply to the post conditions.
1247
1272
  */
1248
- postConditionMode: v17.optional(v17.union([v17.literal("allow"), v17.literal("deny")]))
1273
+ postConditionMode: v18.optional(v18.union([v18.literal("allow"), v18.literal("deny")]))
1249
1274
  });
1250
- var stxDeployContractResultSchema = v17.object({
1275
+ var stxDeployContractResultSchema = v18.object({
1251
1276
  /**
1252
1277
  * The ID of the transaction.
1253
1278
  */
1254
- txid: v17.string(),
1279
+ txid: v18.string(),
1255
1280
  /**
1256
1281
  * A Stacks transaction as a hex-encoded string.
1257
1282
  */
1258
- transaction: v17.string()
1283
+ transaction: v18.string()
1259
1284
  });
1260
- var stxDeployContractRequestMessageSchema = v17.object({
1285
+ var stxDeployContractRequestMessageSchema = v18.object({
1261
1286
  ...rpcRequestMessageSchema.entries,
1262
- ...v17.object({
1263
- method: v17.literal(stxDeployContractMethodName),
1287
+ ...v18.object({
1288
+ method: v18.literal(stxDeployContractMethodName),
1264
1289
  params: stxDeployContractParamsSchema,
1265
- id: v17.string()
1290
+ id: v18.string()
1266
1291
  }).entries
1267
1292
  });
1268
1293
 
1269
1294
  // src/request/types/stxMethods/getAccounts.ts
1270
- var v18 = __toESM(require("valibot"));
1295
+ var v19 = __toESM(require("valibot"));
1271
1296
  var stxGetAccountsMethodName = "stx_getAccounts";
1272
- var stxGetAccountsParamsSchema = v18.nullish(v18.null());
1273
- var stxGetAccountsResultSchema = v18.object({
1297
+ var stxGetAccountsParamsSchema = v19.nullish(v19.null());
1298
+ var stxGetAccountsResultSchema = v19.object({
1274
1299
  /**
1275
1300
  * The addresses generated for the given purposes.
1276
1301
  */
1277
- addresses: v18.array(
1278
- v18.object({
1279
- address: v18.string(),
1280
- publicKey: v18.string(),
1281
- gaiaHubUrl: v18.string(),
1282
- gaiaAppKey: v18.string()
1302
+ addresses: v19.array(
1303
+ v19.object({
1304
+ address: v19.string(),
1305
+ publicKey: v19.string(),
1306
+ gaiaHubUrl: v19.string(),
1307
+ gaiaAppKey: v19.string()
1283
1308
  })
1284
1309
  ),
1285
1310
  network: getNetworkResultSchema
1286
1311
  });
1287
- var stxGetAccountsRequestMessageSchema = v18.object({
1312
+ var stxGetAccountsRequestMessageSchema = v19.object({
1288
1313
  ...rpcRequestMessageSchema.entries,
1289
- ...v18.object({
1290
- method: v18.literal(stxGetAccountsMethodName),
1314
+ ...v19.object({
1315
+ method: v19.literal(stxGetAccountsMethodName),
1291
1316
  params: stxGetAccountsParamsSchema,
1292
- id: v18.string()
1317
+ id: v19.string()
1293
1318
  }).entries
1294
1319
  });
1295
1320
 
1296
1321
  // src/request/types/stxMethods/getAddresses.ts
1297
- var v19 = __toESM(require("valibot"));
1322
+ var v20 = __toESM(require("valibot"));
1298
1323
  var stxGetAddressesMethodName = "stx_getAddresses";
1299
- var stxGetAddressesParamsSchema = v19.nullish(
1300
- v19.object({
1324
+ var stxGetAddressesParamsSchema = v20.nullish(
1325
+ v20.object({
1301
1326
  /**
1302
1327
  * A message to be displayed to the user in the request prompt.
1303
1328
  */
1304
- message: v19.optional(v19.string())
1329
+ message: v20.optional(v20.string())
1305
1330
  })
1306
1331
  );
1307
- var stxGetAddressesResultSchema = v19.object({
1332
+ var stxGetAddressesResultSchema = v20.object({
1308
1333
  /**
1309
1334
  * The addresses generated for the given purposes.
1310
1335
  */
1311
- addresses: v19.array(addressSchema),
1336
+ addresses: v20.array(addressSchema),
1312
1337
  network: getNetworkResultSchema
1313
1338
  });
1314
- var stxGetAddressesRequestMessageSchema = v19.object({
1339
+ var stxGetAddressesRequestMessageSchema = v20.object({
1315
1340
  ...rpcRequestMessageSchema.entries,
1316
- ...v19.object({
1317
- method: v19.literal(stxGetAddressesMethodName),
1341
+ ...v20.object({
1342
+ method: v20.literal(stxGetAddressesMethodName),
1318
1343
  params: stxGetAddressesParamsSchema,
1319
- id: v19.string()
1344
+ id: v20.string()
1320
1345
  }).entries
1321
1346
  });
1322
1347
 
1323
1348
  // src/request/types/stxMethods/signMessage.ts
1324
- var v20 = __toESM(require("valibot"));
1349
+ var v21 = __toESM(require("valibot"));
1325
1350
  var stxSignMessageMethodName = "stx_signMessage";
1326
- var stxSignMessageParamsSchema = v20.object({
1351
+ var stxSignMessageParamsSchema = v21.object({
1327
1352
  /**
1328
1353
  * The message to sign.
1329
1354
  */
1330
- message: v20.string()
1355
+ message: v21.string()
1331
1356
  });
1332
- var stxSignMessageResultSchema = v20.object({
1357
+ var stxSignMessageResultSchema = v21.object({
1333
1358
  /**
1334
1359
  * The signature of the message.
1335
1360
  */
1336
- signature: v20.string(),
1361
+ signature: v21.string(),
1337
1362
  /**
1338
1363
  * The public key used to sign the message.
1339
1364
  */
1340
- publicKey: v20.string()
1365
+ publicKey: v21.string()
1341
1366
  });
1342
- var stxSignMessageRequestMessageSchema = v20.object({
1367
+ var stxSignMessageRequestMessageSchema = v21.object({
1343
1368
  ...rpcRequestMessageSchema.entries,
1344
- ...v20.object({
1345
- method: v20.literal(stxSignMessageMethodName),
1369
+ ...v21.object({
1370
+ method: v21.literal(stxSignMessageMethodName),
1346
1371
  params: stxSignMessageParamsSchema,
1347
- id: v20.string()
1372
+ id: v21.string()
1348
1373
  }).entries
1349
1374
  });
1350
1375
 
1351
1376
  // src/request/types/stxMethods/signStructuredMessage.ts
1352
- var v21 = __toESM(require("valibot"));
1377
+ var v22 = __toESM(require("valibot"));
1353
1378
  var stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1354
- var stxSignStructuredMessageParamsSchema = v21.object({
1379
+ var stxSignStructuredMessageParamsSchema = v22.object({
1355
1380
  /**
1356
1381
  * The domain to be signed.
1357
1382
  */
1358
- domain: v21.string(),
1383
+ domain: v22.string(),
1359
1384
  /**
1360
1385
  * Message payload to be signed.
1361
1386
  */
1362
- message: v21.string(),
1387
+ message: v22.string(),
1363
1388
  /**
1364
1389
  * The public key to sign the message with.
1365
1390
  */
1366
- publicKey: v21.optional(v21.string())
1391
+ publicKey: v22.optional(v22.string())
1367
1392
  });
1368
- var stxSignStructuredMessageResultSchema = v21.object({
1393
+ var stxSignStructuredMessageResultSchema = v22.object({
1369
1394
  /**
1370
1395
  * Signature of the message.
1371
1396
  */
1372
- signature: v21.string(),
1397
+ signature: v22.string(),
1373
1398
  /**
1374
1399
  * Public key as hex-encoded string.
1375
1400
  */
1376
- publicKey: v21.string()
1401
+ publicKey: v22.string()
1377
1402
  });
1378
- var stxSignStructuredMessageRequestMessageSchema = v21.object({
1403
+ var stxSignStructuredMessageRequestMessageSchema = v22.object({
1379
1404
  ...rpcRequestMessageSchema.entries,
1380
- ...v21.object({
1381
- method: v21.literal(stxSignStructuredMessageMethodName),
1405
+ ...v22.object({
1406
+ method: v22.literal(stxSignStructuredMessageMethodName),
1382
1407
  params: stxSignStructuredMessageParamsSchema,
1383
- id: v21.string()
1408
+ id: v22.string()
1384
1409
  }).entries
1385
1410
  });
1386
1411
 
1387
1412
  // src/request/types/stxMethods/signTransaction.ts
1388
- var v22 = __toESM(require("valibot"));
1413
+ var v23 = __toESM(require("valibot"));
1389
1414
  var stxSignTransactionMethodName = "stx_signTransaction";
1390
- var stxSignTransactionParamsSchema = v22.object({
1415
+ var stxSignTransactionParamsSchema = v23.object({
1391
1416
  /**
1392
1417
  * The transaction to sign as a hex-encoded string.
1393
1418
  */
1394
- transaction: v22.string(),
1419
+ transaction: v23.string(),
1395
1420
  /**
1396
1421
  * The public key to sign the transaction with. The wallet may use any key
1397
1422
  * when not provided.
1398
1423
  */
1399
- pubkey: v22.optional(v22.string()),
1424
+ pubkey: v23.optional(v23.string()),
1400
1425
  /**
1401
1426
  * Whether to broadcast the transaction after signing. Defaults to `true`.
1402
1427
  */
1403
- broadcast: v22.optional(v22.boolean())
1428
+ broadcast: v23.optional(v23.boolean())
1404
1429
  });
1405
- var stxSignTransactionResultSchema = v22.object({
1430
+ var stxSignTransactionResultSchema = v23.object({
1406
1431
  /**
1407
1432
  * The signed transaction as a hex-encoded string.
1408
1433
  */
1409
- transaction: v22.string()
1434
+ transaction: v23.string()
1410
1435
  });
1411
- var stxSignTransactionRequestMessageSchema = v22.object({
1436
+ var stxSignTransactionRequestMessageSchema = v23.object({
1412
1437
  ...rpcRequestMessageSchema.entries,
1413
- ...v22.object({
1414
- method: v22.literal(stxSignTransactionMethodName),
1438
+ ...v23.object({
1439
+ method: v23.literal(stxSignTransactionMethodName),
1415
1440
  params: stxSignTransactionParamsSchema,
1416
- id: v22.string()
1441
+ id: v23.string()
1417
1442
  }).entries
1418
1443
  });
1419
1444
 
1420
1445
  // src/request/types/stxMethods/signTransactions.ts
1421
- var v23 = __toESM(require("valibot"));
1446
+ var v24 = __toESM(require("valibot"));
1422
1447
  var stxSignTransactionsMethodName = "stx_signTransactions";
1423
- var stxSignTransactionsParamsSchema = v23.object({
1448
+ var stxSignTransactionsParamsSchema = v24.object({
1424
1449
  /**
1425
1450
  * The transactions to sign as hex-encoded strings.
1426
1451
  */
1427
- transactions: v23.pipe(
1428
- v23.array(
1429
- v23.pipe(
1430
- v23.string(),
1431
- v23.check((hex) => {
1452
+ transactions: v24.pipe(
1453
+ v24.array(
1454
+ v24.pipe(
1455
+ v24.string(),
1456
+ v24.check((hex) => {
1432
1457
  return true;
1433
1458
  }, "Invalid hex-encoded Stacks transaction.")
1434
1459
  )
1435
1460
  ),
1436
- v23.minLength(1)
1461
+ v24.minLength(1)
1437
1462
  ),
1438
1463
  /**
1439
1464
  * Whether the signed transactions should be broadcast after signing. Defaults
1440
1465
  * to `true`.
1441
1466
  */
1442
- broadcast: v23.optional(v23.boolean())
1467
+ broadcast: v24.optional(v24.boolean())
1443
1468
  });
1444
- var stxSignTransactionsResultSchema = v23.object({
1469
+ var stxSignTransactionsResultSchema = v24.object({
1445
1470
  /**
1446
1471
  * The signed transactions as hex-encoded strings, in the same order as in the
1447
1472
  * sign request.
1448
1473
  */
1449
- transactions: v23.array(v23.string())
1474
+ transactions: v24.array(v24.string())
1450
1475
  });
1451
- var stxSignTransactionsRequestMessageSchema = v23.object({
1476
+ var stxSignTransactionsRequestMessageSchema = v24.object({
1452
1477
  ...rpcRequestMessageSchema.entries,
1453
- ...v23.object({
1454
- method: v23.literal(stxSignTransactionsMethodName),
1478
+ ...v24.object({
1479
+ method: v24.literal(stxSignTransactionsMethodName),
1455
1480
  params: stxSignTransactionsParamsSchema,
1456
- id: v23.string()
1481
+ id: v24.string()
1457
1482
  }).entries
1458
1483
  });
1459
1484
 
1460
1485
  // src/request/types/stxMethods/transferStx.ts
1461
- var v24 = __toESM(require("valibot"));
1486
+ var v25 = __toESM(require("valibot"));
1462
1487
  var stxTransferStxMethodName = "stx_transferStx";
1463
- var stxTransferStxParamsSchema = v24.object({
1488
+ var stxTransferStxParamsSchema = v25.object({
1464
1489
  /**
1465
1490
  * Amount of STX tokens to transfer in microstacks as a string. Anything
1466
1491
  * parseable by `BigInt` is acceptable.
@@ -1473,23 +1498,23 @@ var stxTransferStxParamsSchema = v24.object({
1473
1498
  * const amount3 = '1234';
1474
1499
  * ```
1475
1500
  */
1476
- amount: v24.union([v24.number(), v24.string()]),
1501
+ amount: v25.union([v25.number(), v25.string()]),
1477
1502
  /**
1478
1503
  * The recipient's principal.
1479
1504
  */
1480
- recipient: v24.string(),
1505
+ recipient: v25.string(),
1481
1506
  /**
1482
1507
  * A string representing the memo.
1483
1508
  */
1484
- memo: v24.optional(v24.string()),
1509
+ memo: v25.optional(v25.string()),
1485
1510
  /**
1486
1511
  * Version of parameter format.
1487
1512
  */
1488
- version: v24.optional(v24.string()),
1513
+ version: v25.optional(v25.string()),
1489
1514
  /**
1490
1515
  * The mode of the post conditions.
1491
1516
  */
1492
- postConditionMode: v24.optional(v24.number()),
1517
+ postConditionMode: v25.optional(v25.number()),
1493
1518
  /**
1494
1519
  * A hex-encoded string representing the post conditions.
1495
1520
  *
@@ -1502,29 +1527,29 @@ var stxTransferStxParamsSchema = v24.object({
1502
1527
  * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1503
1528
  * ```
1504
1529
  */
1505
- postConditions: v24.optional(v24.array(v24.string())),
1530
+ postConditions: v25.optional(v25.array(v25.string())),
1506
1531
  /**
1507
1532
  * The public key to sign the transaction with. The wallet may use any key
1508
1533
  * when not provided.
1509
1534
  */
1510
- pubkey: v24.optional(v24.string())
1535
+ pubkey: v25.optional(v25.string())
1511
1536
  });
1512
- var stxTransferStxResultSchema = v24.object({
1537
+ var stxTransferStxResultSchema = v25.object({
1513
1538
  /**
1514
1539
  * The ID of the transaction.
1515
1540
  */
1516
- txid: v24.string(),
1541
+ txid: v25.string(),
1517
1542
  /**
1518
1543
  * A Stacks transaction as a hex-encoded string.
1519
1544
  */
1520
- transaction: v24.string()
1545
+ transaction: v25.string()
1521
1546
  });
1522
- var stxTransferStxRequestMessageSchema = v24.object({
1547
+ var stxTransferStxRequestMessageSchema = v25.object({
1523
1548
  ...rpcRequestMessageSchema.entries,
1524
- ...v24.object({
1525
- method: v24.literal(stxTransferStxMethodName),
1549
+ ...v25.object({
1550
+ method: v25.literal(stxTransferStxMethodName),
1526
1551
  params: stxTransferStxParamsSchema,
1527
- id: v24.string()
1552
+ id: v25.string()
1528
1553
  }).entries
1529
1554
  });
1530
1555
 
@@ -1541,13 +1566,13 @@ var request = async (method, params, providerId) => {
1541
1566
  throw new Error("A wallet method is required");
1542
1567
  }
1543
1568
  const response = await provider.request(method, params);
1544
- if (v25.is(rpcErrorResponseMessageSchema, response)) {
1569
+ if (v26.is(rpcErrorResponseMessageSchema, response)) {
1545
1570
  return {
1546
1571
  status: "error",
1547
1572
  error: response.error
1548
1573
  };
1549
1574
  }
1550
- if (v25.is(rpcSuccessResponseMessageSchema, response)) {
1575
+ if (v26.is(rpcSuccessResponseMessageSchema, response)) {
1551
1576
  return {
1552
1577
  status: "success",
1553
1578
  result: response.result
@@ -2710,6 +2735,10 @@ var signMultipleTransactions = async (options) => {
2710
2735
  sparkGetBalanceParamsSchema,
2711
2736
  sparkGetBalanceRequestMessageSchema,
2712
2737
  sparkGetBalanceResultSchema,
2738
+ sparkSignMessageMethodName,
2739
+ sparkSignMessageParamsSchema,
2740
+ sparkSignMessageRequestMessageSchema,
2741
+ sparkSignMessageResultSchema,
2713
2742
  sparkTransferMethodName,
2714
2743
  sparkTransferParamsSchema,
2715
2744
  sparkTransferRequestMessageSchema,