@sats-connect/core 0.16.0-ffd997e → 0.17.0-2dadc04

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
@@ -948,13 +948,11 @@ const sanitizeAddressPurposeRequest = (method, params) => {
948
948
  //#region src/request/methods.ts
949
949
  const bitcoinMethods = {
950
950
  getAccounts: "getAccounts",
951
- bitcoin_getAccountsV2: "bitcoin_getAccountsV2",
952
951
  getAddresses: "getAddresses",
953
952
  bitcoin_getAddressesV2: "bitcoin_getAddressesV2",
954
953
  getBalance: "getBalance",
955
954
  bitcoin_getBalanceV2: "bitcoin_getBalanceV2",
956
955
  getInfo: "getInfo",
957
- bitcoin_getInfoV2: "bitcoin_getInfoV2",
958
956
  sendTransfer: "sendTransfer",
959
957
  bitcoin_sendTransferV2: "bitcoin_sendTransferV2",
960
958
  signMessage: "signMessage",
@@ -969,7 +967,6 @@ const stacksMethods = {
969
967
  stx_deployContract: "stx_deployContract",
970
968
  stx_getAccounts: "stx_getAccounts",
971
969
  stx_getAddresses: "stx_getAddresses",
972
- stacks_getAddressesV2: "stacks_getAddressesV2",
973
970
  stx_signMessage: "stx_signMessage",
974
971
  stx_signStructuredMessage: "stx_signStructuredMessage",
975
972
  stx_signTransaction: "stx_signTransaction",
@@ -1009,7 +1006,6 @@ const ordinalsMethods = {
1009
1006
  const walletMethods = {
1010
1007
  wallet_addNetwork: "wallet_addNetwork",
1011
1008
  wallet_addNetworkV2: "wallet_addNetworkV2",
1012
- wallet_changeNetworkById: "wallet_changeNetworkById",
1013
1009
  wallet_changeNetwork: "wallet_changeNetwork",
1014
1010
  wallet_connect: "wallet_connect",
1015
1011
  wallet_connectV2: "wallet_connectV2",
@@ -1024,7 +1020,8 @@ const walletMethods = {
1024
1020
  wallet_openBuy: "wallet_openBuy",
1025
1021
  wallet_openReceive: "wallet_openReceive",
1026
1022
  wallet_renouncePermissions: "wallet_renouncePermissions",
1027
- wallet_requestPermissions: "wallet_requestPermissions"
1023
+ wallet_requestPermissions: "wallet_requestPermissions",
1024
+ wallet_switchNetwork: "wallet_switchNetwork"
1028
1025
  };
1029
1026
  const methods = {
1030
1027
  ...bitcoinMethods,
@@ -1056,13 +1053,11 @@ const { active } = {
1056
1053
  };
1057
1054
  const methodSupport = {
1058
1055
  [bitcoinMethods.getAccounts]: active,
1059
- [bitcoinMethods.bitcoin_getAccountsV2]: active,
1060
1056
  [bitcoinMethods.getAddresses]: active,
1061
1057
  [bitcoinMethods.bitcoin_getAddressesV2]: active,
1062
1058
  [bitcoinMethods.getBalance]: active,
1063
1059
  [bitcoinMethods.bitcoin_getBalanceV2]: active,
1064
1060
  [bitcoinMethods.getInfo]: active,
1065
- [bitcoinMethods.bitcoin_getInfoV2]: active,
1066
1061
  [bitcoinMethods.sendTransfer]: active,
1067
1062
  [bitcoinMethods.bitcoin_sendTransferV2]: active,
1068
1063
  [bitcoinMethods.signMessage]: active,
@@ -1075,7 +1070,6 @@ const methodSupport = {
1075
1070
  [stacksMethods.stx_deployContract]: active,
1076
1071
  [stacksMethods.stx_getAccounts]: active,
1077
1072
  [stacksMethods.stx_getAddresses]: active,
1078
- [stacksMethods.stacks_getAddressesV2]: active,
1079
1073
  [stacksMethods.stx_signMessage]: active,
1080
1074
  [stacksMethods.stx_signStructuredMessage]: active,
1081
1075
  [stacksMethods.stx_signTransaction]: active,
@@ -1107,7 +1101,6 @@ const methodSupport = {
1107
1101
  [ordinalsMethods.ord_sendInscriptions]: active,
1108
1102
  [walletMethods.wallet_addNetwork]: active,
1109
1103
  [walletMethods.wallet_addNetworkV2]: active,
1110
- [walletMethods.wallet_changeNetworkById]: active,
1111
1104
  [walletMethods.wallet_changeNetwork]: active,
1112
1105
  [walletMethods.wallet_connect]: active,
1113
1106
  [walletMethods.wallet_connectV2]: active,
@@ -1122,7 +1115,8 @@ const methodSupport = {
1122
1115
  [walletMethods.wallet_openBuy]: active,
1123
1116
  [walletMethods.wallet_openReceive]: active,
1124
1117
  [walletMethods.wallet_renouncePermissions]: active,
1125
- [walletMethods.wallet_requestPermissions]: active
1118
+ [walletMethods.wallet_requestPermissions]: active,
1119
+ [walletMethods.wallet_switchNetwork]: active
1126
1120
  };
1127
1121
 
1128
1122
  //#endregion
@@ -1173,28 +1167,6 @@ const bitcoinGetAccountsSuccessResponseSchema = createSuccessResponseSchema({
1173
1167
  method: bitcoinMethods.getAccounts
1174
1168
  });
1175
1169
 
1176
- //#endregion
1177
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getAccountsV2/request.ts
1178
- const bitcoinGetAccountsV2ParamsSchema = v.object({
1179
- purposes: v.array(v.enum(AddressPurpose)),
1180
- message: v.optional(v.string())
1181
- });
1182
- const bitcoinGetAccountsV2RequestSchema = createRequestSchema({
1183
- paramsSchema: bitcoinGetAccountsV2ParamsSchema,
1184
- method: bitcoinMethods.bitcoin_getAccountsV2
1185
- });
1186
-
1187
- //#endregion
1188
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getAccountsV2/response.ts
1189
- const bitcoinGetAccountsV2ResultSchema = v.array(v.object({
1190
- ...addressSchema.entries,
1191
- ...v.object({ walletType: walletTypeSchema }).entries
1192
- }));
1193
- const bitcoinGetAccountsV2SuccessResponseSchema = createSuccessResponseSchema({
1194
- resultSchema: bitcoinGetAccountsV2ResultSchema,
1195
- method: bitcoinMethods.bitcoin_getAccountsV2
1196
- });
1197
-
1198
1170
  //#endregion
1199
1171
  //#region src/request/rpc/objects/namespaces/bitcoin/methods/getAddresses/request.ts
1200
1172
  const bitcoinGetAddressesParamsSchema = v.object({
@@ -1234,1494 +1206,1393 @@ const bitcoinGetAddressesV2RequestSchema = createRequestSchema({
1234
1206
  });
1235
1207
 
1236
1208
  //#endregion
1237
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getAddressesV2/response.ts
1238
- const getNetworksResultSchema = v.object({
1239
- active: v.object({
1240
- bitcoin: v.object({
1241
- id: v.string(),
1242
- type: v.string(),
1243
- name: v.string()
1244
- }),
1245
- stacks: v.object({
1246
- id: v.string(),
1247
- type: v.string(),
1248
- name: v.string()
1249
- }),
1250
- spark: v.object({
1251
- id: v.string(),
1252
- type: v.string(),
1253
- name: v.string()
1254
- }),
1255
- starknet: v.object({
1256
- id: v.string(),
1257
- type: v.string(),
1258
- name: v.string()
1259
- })
1209
+ //#region src/request/rpc/objects/namespaces/wallet/methods/addNetwork/request.ts
1210
+ const walletAddNetworkParamsSchema = v.variant("chain", [
1211
+ v.object({
1212
+ chain: v.literal("bitcoin"),
1213
+ type: v.enum(BitcoinNetworkType),
1214
+ name: v.string(),
1215
+ rpcUrl: v.string(),
1216
+ rpcFallbackUrl: v.optional(v.string()),
1217
+ indexerUrl: v.optional(v.string()),
1218
+ blockExplorerUrl: v.optional(v.string()),
1219
+ switch: v.optional(v.boolean())
1260
1220
  }),
1261
- builtin: v.object({
1262
- bitcoin: v.array(v.any()),
1263
- stacks: v.array(v.any()),
1264
- spark: v.array(v.any()),
1265
- starknet: v.array(v.any())
1221
+ v.object({
1222
+ chain: v.literal("stacks"),
1223
+ name: v.string(),
1224
+ type: v.enum(StacksNetworkType),
1225
+ rpcUrl: v.string(),
1226
+ blockExplorerUrl: v.optional(v.string()),
1227
+ switch: v.optional(v.boolean())
1266
1228
  }),
1267
- custom: v.object({
1268
- bitcoin: v.array(v.any()),
1269
- stacks: v.array(v.any()),
1270
- spark: v.array(v.any()),
1271
- starknet: v.array(v.any())
1229
+ v.object({
1230
+ chain: v.literal("starknet"),
1231
+ name: v.string(),
1232
+ type: v.enum(StarknetNetworkType),
1233
+ rpcUrl: v.string(),
1234
+ blockExplorerUrl: v.optional(v.string()),
1235
+ switch: v.optional(v.boolean())
1272
1236
  })
1273
- });
1274
- const bitcoinGetAddressesV2ResultSchema = v.object({
1275
- addresses: v.array(addressSchema),
1276
- networks: getNetworksResultSchema
1277
- });
1278
- const bitcoinGetAddressesV2SuccessResponseSchema = createSuccessResponseSchema({
1279
- resultSchema: bitcoinGetAddressesV2ResultSchema,
1280
- method: bitcoinMethods.bitcoin_getAddressesV2
1237
+ ]);
1238
+ const walletAddNetworkRequestSchema = createRequestSchema({
1239
+ paramsSchema: walletAddNetworkParamsSchema,
1240
+ method: walletMethods.wallet_addNetwork
1281
1241
  });
1282
1242
 
1283
1243
  //#endregion
1284
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalance/request.ts
1285
- const bitcoinGetBalanceParamsSchema = v.nullish(v.null());
1286
- const bitcoinGetBalanceRequestSchema = createRequestSchema({
1287
- paramsSchema: bitcoinGetBalanceParamsSchema,
1288
- method: bitcoinMethods.getBalance
1244
+ //#region src/request/rpc/objects/namespaces/wallet/methods/addNetwork/response.ts
1245
+ const walletAddNetworkResultSchema = v.object({ id: v.string() });
1246
+ const walletAddNetworkSuccessResponseSchema = createSuccessResponseSchema({
1247
+ resultSchema: walletAddNetworkResultSchema,
1248
+ method: walletMethods.wallet_addNetwork
1289
1249
  });
1290
1250
 
1291
1251
  //#endregion
1292
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalance/response.ts
1293
- const bitcoinGetBalanceResultSchema = v.object({
1294
- confirmed: v.string(),
1295
- unconfirmed: v.string(),
1296
- total: v.string()
1252
+ //#region src/request/rpc/objects/namespaces/wallet/shared/permissions.ts
1253
+ const accountActionsSchema = v.object({ read: v.optional(v.boolean()) });
1254
+ const walletActionsSchema = v.object({ readNetwork: v.optional(v.boolean()) });
1255
+ const accountPermissionSchema = v.object({
1256
+ type: v.literal("account"),
1257
+ resourceId: v.string(),
1258
+ clientId: v.string(),
1259
+ actions: accountActionsSchema
1297
1260
  });
1298
- const bitcoinGetBalanceSuccessResponseSchema = createSuccessResponseSchema({
1299
- resultSchema: bitcoinGetBalanceResultSchema,
1300
- method: bitcoinMethods.getBalance
1261
+ const walletPermissionSchema = v.object({
1262
+ type: v.literal("wallet"),
1263
+ resourceId: v.string(),
1264
+ clientId: v.string(),
1265
+ actions: walletActionsSchema
1301
1266
  });
1267
+ const permissionSchema = v.variant("type", [accountPermissionSchema, walletPermissionSchema]);
1268
+ const permission = v.variant("type", [accountPermissionSchema, walletPermissionSchema]);
1269
+ /**
1270
+ * Permissions with the clientId field omitted and optional actions. Used for
1271
+ * permission requests, since the wallet performs authentication based on the
1272
+ * client's tab origin and should not rely on the client authenticating
1273
+ * themselves.
1274
+ */
1275
+ const permissionRequestParamsSchema = v.variant("type", [v.object({ ...v.omit(accountPermissionSchema, ["clientId"]).entries }), v.object({ ...v.omit(walletPermissionSchema, ["clientId"]).entries })]);
1302
1276
 
1303
1277
  //#endregion
1304
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalanceV2/request.ts
1305
- const bitcoinGetBalanceV2ParamsSchema = v.nullish(v.null());
1306
- const bitcoinGetBalanceV2RequestSchema = createRequestSchema({
1307
- paramsSchema: bitcoinGetBalanceV2ParamsSchema,
1308
- method: bitcoinMethods.bitcoin_getBalanceV2
1278
+ //#region src/request/rpc/objects/namespaces/wallet/methods/addNetworkV2/request.ts
1279
+ const walletAddNetworkV2ParamsSchema = v.object({
1280
+ network: networkConfigurationOptionsSchema,
1281
+ switch: v.optional(v.boolean(), false)
1282
+ });
1283
+ const walletAddNetworkV2RequestSchema = createRequestSchema({
1284
+ paramsSchema: walletAddNetworkV2ParamsSchema,
1285
+ method: walletMethods.wallet_addNetworkV2
1309
1286
  });
1310
1287
 
1311
1288
  //#endregion
1312
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalanceV2/response.ts
1313
- const bitcoinGetBalanceV2ResultSchema = v.object({
1314
- confirmed: v.string(),
1315
- unconfirmed: v.string(),
1316
- total: v.string()
1317
- });
1318
- const bitcoinGetBalanceV2SuccessResponseSchema = createSuccessResponseSchema({
1319
- resultSchema: bitcoinGetBalanceV2ResultSchema,
1320
- method: bitcoinMethods.bitcoin_getBalanceV2
1289
+ //#region src/request/rpc/objects/namespaces/wallet/methods/addNetworkV2/response.ts
1290
+ const walletAddNetworkV2ResultSchema = networkConfigurationSchema;
1291
+ const walletAddNetworkV2SuccessResponseSchema = createSuccessResponseSchema({
1292
+ resultSchema: walletAddNetworkV2ResultSchema,
1293
+ method: walletMethods.wallet_addNetworkV2
1321
1294
  });
1322
1295
 
1323
1296
  //#endregion
1324
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getInfo/request.ts
1325
- const bitcoinGetInfoParamsSchema = v.nullish(v.null());
1326
- const bitcoinGetInfoRequestSchema = createRequestSchema({
1327
- paramsSchema: bitcoinGetInfoParamsSchema,
1328
- method: bitcoinMethods.getInfo
1297
+ //#region src/request/rpc/objects/namespaces/wallet/methods/changeNetwork/request.ts
1298
+ const walletChangeNetworkParamsSchema = v.object({ name: v.enum(BitcoinNetworkType) });
1299
+ const walletChangeNetworkRequestSchema = createRequestSchema({
1300
+ paramsSchema: walletChangeNetworkParamsSchema,
1301
+ method: walletMethods.wallet_changeNetwork
1329
1302
  });
1330
1303
 
1331
1304
  //#endregion
1332
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getInfo/response.ts
1333
- const bitcoinGetInfoResultSchema = v.object({
1334
- version: v.string(),
1335
- platform: v.optional(v.enum(ProviderPlatform)),
1336
- methods: v.optional(v.array(v.string())),
1337
- supports: v.array(v.string())
1305
+ //#region src/request/rpc/objects/namespaces/wallet/methods/changeNetwork/response.ts
1306
+ const walletChangeNetworkResultSchema = v.nullish(v.null());
1307
+ const walletChangeNetworkSuccessResponseSchema = createSuccessResponseSchema({
1308
+ resultSchema: walletChangeNetworkResultSchema,
1309
+ method: walletMethods.wallet_changeNetwork
1338
1310
  });
1339
- const bitcoinGetInfoSuccessResponseSchema = createSuccessResponseSchema({
1340
- resultSchema: bitcoinGetInfoResultSchema,
1341
- method: bitcoinMethods.getInfo
1311
+
1312
+ //#endregion
1313
+ //#region src/request/rpc/objects/namespaces/wallet/methods/connect/request.ts
1314
+ const walletConnectParamsSchema = v.nullish(v.object({
1315
+ permissions: v.optional(v.array(permissionRequestParamsSchema)),
1316
+ addresses: v.optional(v.array(v.enum(AddressPurpose))),
1317
+ message: v.optional(v.pipe(v.string(), v.maxLength(80, "The message must not exceed 80 characters."))),
1318
+ network: v.optional(v.picklist([
1319
+ "Mainnet",
1320
+ "Testnet",
1321
+ "Signet"
1322
+ ]))
1323
+ }));
1324
+ const walletConnectRequestSchema = createRequestSchema({
1325
+ paramsSchema: walletConnectParamsSchema,
1326
+ method: walletMethods.wallet_connect
1342
1327
  });
1343
1328
 
1344
1329
  //#endregion
1345
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getInfoV2/request.ts
1346
- const bitcoinGetInfoV2ParamsSchema = v.nullish(v.null());
1347
- const bitcoinGetInfoV2RequestSchema = createRequestSchema({
1348
- paramsSchema: bitcoinGetInfoV2ParamsSchema,
1349
- method: bitcoinMethods.bitcoin_getInfoV2
1330
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getNetwork/request.ts
1331
+ const walletGetNetworkParamsSchema = v.nullish(v.null());
1332
+ const walletGetNetworkRequestSchema = createRequestSchema({
1333
+ paramsSchema: walletGetNetworkParamsSchema,
1334
+ method: walletMethods.wallet_getNetwork
1350
1335
  });
1351
1336
 
1352
1337
  //#endregion
1353
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/getInfoV2/response.ts
1354
- const bitcoinGetInfoV2ResultSchema = v.object({
1355
- version: v.string(),
1356
- platform: v.optional(v.enum(ProviderPlatform)),
1357
- methods: v.optional(v.array(v.string())),
1358
- supports: v.array(v.string())
1338
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getNetwork/response.ts
1339
+ const walletGetNetworkResultSchema = v.object({
1340
+ bitcoin: v.object({ name: v.enum(BitcoinNetworkType) }),
1341
+ stacks: v.object({ name: v.enum(StacksNetworkType) }),
1342
+ spark: v.object({ name: v.enum(SparkNetworkType) })
1359
1343
  });
1360
- const bitcoinGetInfoV2SuccessResponseSchema = createSuccessResponseSchema({
1361
- resultSchema: bitcoinGetInfoV2ResultSchema,
1362
- method: bitcoinMethods.bitcoin_getInfoV2
1344
+ const walletGetNetworkSuccessResponseSchema = createSuccessResponseSchema({
1345
+ resultSchema: walletGetNetworkResultSchema,
1346
+ method: walletMethods.wallet_getNetwork
1363
1347
  });
1364
1348
 
1365
1349
  //#endregion
1366
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransfer/request.ts
1367
- const bitcoinSendTransferParamsSchema = v.object({ recipients: v.array(v.object({
1368
- address: v.string(),
1369
- amount: v.number()
1370
- })) });
1371
- const bitcoinSendTransferRequestSchema = createRequestSchema({
1372
- paramsSchema: bitcoinSendTransferParamsSchema,
1373
- method: bitcoinMethods.sendTransfer
1350
+ //#region src/request/rpc/objects/namespaces/wallet/methods/connect/response.ts
1351
+ const walletConnectResultSchema = v.object({
1352
+ id: v.string(),
1353
+ addresses: v.array(addressSchema),
1354
+ walletType: walletTypeSchema,
1355
+ network: walletGetNetworkResultSchema
1356
+ });
1357
+ const walletConnectSuccessResponseSchema = createSuccessResponseSchema({
1358
+ resultSchema: walletConnectResultSchema,
1359
+ method: walletMethods.wallet_connect
1374
1360
  });
1375
1361
 
1376
1362
  //#endregion
1377
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransfer/response.ts
1378
- const bitcoinSendTransferResultSchema = v.object({ txid: v.string() });
1379
- const bitcoinSendTransferSuccessResponseSchema = createSuccessResponseSchema({
1380
- resultSchema: bitcoinSendTransferResultSchema,
1381
- method: bitcoinMethods.sendTransfer
1363
+ //#region src/request/rpc/objects/namespaces/wallet/methods/connectV2/request.ts
1364
+ const walletConnectV2ParamsSchema = v.nullish(v.object({
1365
+ permissions: permissionRequestParamsSchema,
1366
+ addressPurposes: v.optional(v.array(v.enum(AddressPurpose))),
1367
+ message: v.optional(v.pipe(v.string(), v.maxLength(80, "The message must not exceed 80 characters."))),
1368
+ networkId: v.optional(v.string())
1369
+ }));
1370
+ const walletConnectV2RequestSchema = createRequestSchema({
1371
+ paramsSchema: walletConnectV2ParamsSchema,
1372
+ method: walletMethods.wallet_connectV2
1382
1373
  });
1383
1374
 
1384
1375
  //#endregion
1385
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransferV2/request.ts
1386
- const bitcoinSendTransferV2ParamsSchema = v.object({ recipients: v.array(v.object({
1387
- address: v.string(),
1388
- amount: v.number()
1389
- })) });
1390
- const bitcoinSendTransferV2RequestSchema = createRequestSchema({
1391
- paramsSchema: bitcoinSendTransferV2ParamsSchema,
1392
- method: bitcoinMethods.bitcoin_sendTransferV2
1376
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getNetworks/request.ts
1377
+ const walletGetNetworksParamsSchema = v.nullish(v.null());
1378
+ const walletGetNetworksRequestSchema = createRequestSchema({
1379
+ paramsSchema: walletGetNetworksParamsSchema,
1380
+ method: walletMethods.wallet_getNetworks
1393
1381
  });
1394
1382
 
1395
1383
  //#endregion
1396
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransferV2/response.ts
1397
- const bitcoinSendTransferV2ResultSchema = v.object({ txid: v.string() });
1398
- const bitcoinSendTransferV2SuccessResponseSchema = createSuccessResponseSchema({
1399
- resultSchema: bitcoinSendTransferV2ResultSchema,
1400
- method: bitcoinMethods.bitcoin_sendTransferV2
1384
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getNetworks/response.ts
1385
+ const walletGetNetworksResultSchema = allResolvedNetworksSchema;
1386
+ const walletGetNetworksSuccessResponseSchema = createSuccessResponseSchema({
1387
+ resultSchema: walletGetNetworksResultSchema,
1388
+ method: walletMethods.wallet_getNetworks
1401
1389
  });
1402
1390
 
1403
1391
  //#endregion
1404
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessage/request.ts
1405
- const bitcoinSignMessageParamsSchema = v.object({
1406
- address: v.string(),
1407
- message: v.string(),
1408
- protocol: v.optional(v.enum(MessageSigningProtocols))
1392
+ //#region src/request/rpc/objects/namespaces/wallet/methods/connectV2/response.ts
1393
+ const walletConnectV2ResultSchema = v.object({
1394
+ accountId: v.string(),
1395
+ addresses: v.array(addressSchema),
1396
+ walletType: walletTypeSchema,
1397
+ networks: walletGetNetworksResultSchema
1409
1398
  });
1410
- const bitcoinSignMessageRequestSchema = createRequestSchema({
1411
- paramsSchema: bitcoinSignMessageParamsSchema,
1412
- method: bitcoinMethods.signMessage
1399
+ const walletConnectV2SuccessResponseSchema = createSuccessResponseSchema({
1400
+ resultSchema: walletConnectV2ResultSchema,
1401
+ method: walletMethods.wallet_connectV2
1413
1402
  });
1414
1403
 
1415
1404
  //#endregion
1416
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessage/response.ts
1417
- const bitcoinSignMessageResultSchema = v.object({
1418
- signature: v.string(),
1419
- messageHash: v.string(),
1420
- address: v.string(),
1421
- protocol: v.enum(MessageSigningProtocols)
1422
- });
1423
- const bitcoinSignMessageSuccessResponseSchema = createSuccessResponseSchema({
1424
- resultSchema: bitcoinSignMessageResultSchema,
1425
- method: bitcoinMethods.signMessage
1405
+ //#region src/request/rpc/objects/namespaces/wallet/methods/disconnect/request.ts
1406
+ const walletDisconnectParamsSchema = v.nullish(v.null());
1407
+ const walletDisconnectRequestSchema = createRequestSchema({
1408
+ paramsSchema: walletDisconnectParamsSchema,
1409
+ method: walletMethods.wallet_disconnect
1426
1410
  });
1427
1411
 
1428
1412
  //#endregion
1429
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessageV2/request.ts
1430
- const bitcoinSignMessageV2ParamsSchema = v.object({
1431
- address: v.string(),
1432
- message: v.string(),
1433
- protocol: v.optional(v.enum(MessageSigningProtocols))
1413
+ //#region src/request/rpc/objects/namespaces/wallet/methods/disconnect/response.ts
1414
+ const walletDisconnectResultSchema = v.nullish(v.null());
1415
+ const walletDisconnectSuccessResponseSchema = createSuccessResponseSchema({
1416
+ resultSchema: walletDisconnectResultSchema,
1417
+ method: walletMethods.wallet_disconnect
1434
1418
  });
1435
- const bitcoinSignMessageV2RequestSchema = createRequestSchema({
1436
- paramsSchema: bitcoinSignMessageV2ParamsSchema,
1437
- method: bitcoinMethods.bitcoin_signMessageV2
1419
+
1420
+ //#endregion
1421
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getAccount/request.ts
1422
+ const walletGetAccountParamsSchema = v.nullish(v.null());
1423
+ const walletGetAccountRequestSchema = createRequestSchema({
1424
+ paramsSchema: walletGetAccountParamsSchema,
1425
+ method: walletMethods.wallet_getAccount
1438
1426
  });
1439
1427
 
1440
1428
  //#endregion
1441
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessageV2/response.ts
1442
- const bitcoinSignMessageV2ResultSchema = v.object({
1443
- signature: v.string(),
1444
- messageHash: v.string(),
1445
- address: v.string(),
1446
- protocol: v.enum(MessageSigningProtocols)
1429
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getAccount/response.ts
1430
+ const walletGetAccountResultSchema = v.object({
1431
+ id: v.string(),
1432
+ addresses: v.array(addressSchema),
1433
+ walletType: walletTypeSchema,
1434
+ network: walletGetNetworkResultSchema
1447
1435
  });
1448
- const bitcoinSignMessageV2SuccessResponseSchema = createSuccessResponseSchema({
1449
- resultSchema: bitcoinSignMessageV2ResultSchema,
1450
- method: bitcoinMethods.bitcoin_signMessageV2
1436
+ const walletGetAccountSuccessResponseSchema = createSuccessResponseSchema({
1437
+ resultSchema: walletGetAccountResultSchema,
1438
+ method: walletMethods.wallet_getAccount
1451
1439
  });
1452
1440
 
1453
1441
  //#endregion
1454
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessages/request.ts
1455
- const bitcoinSignMultipleMessagesParamsSchema = v.array(v.object({
1456
- address: v.string(),
1457
- message: v.string(),
1458
- protocol: v.optional(v.enum(MessageSigningProtocols))
1459
- }));
1460
- const bitcoinSignMultipleMessagesRequestSchema = createRequestSchema({
1461
- paramsSchema: bitcoinSignMultipleMessagesParamsSchema,
1462
- method: bitcoinMethods.signMultipleMessages
1442
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getAccountV2/request.ts
1443
+ const walletGetAccountV2ParamsSchema = v.nullish(v.null());
1444
+ const walletGetAccountV2RequestSchema = createRequestSchema({
1445
+ paramsSchema: walletGetAccountV2ParamsSchema,
1446
+ method: walletMethods.wallet_getAccountV2
1463
1447
  });
1464
1448
 
1465
1449
  //#endregion
1466
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessages/response.ts
1467
- const bitcoinSignMultipleMessagesResultSchema = v.array(v.object({
1468
- signature: v.string(),
1469
- message: v.string(),
1470
- messageHash: v.string(),
1471
- address: v.string(),
1472
- protocol: v.enum(MessageSigningProtocols)
1473
- }));
1474
- const bitcoinSignMultipleMessagesSuccessResponseSchema = createSuccessResponseSchema({
1475
- resultSchema: bitcoinSignMultipleMessagesResultSchema,
1476
- method: bitcoinMethods.signMultipleMessages
1450
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getAccountV2/response.ts
1451
+ const walletGetAccountV2ResultSchema = v.object({
1452
+ id: v.string(),
1453
+ addresses: v.array(addressSchema),
1454
+ walletType: walletTypeSchema,
1455
+ networks: walletGetNetworksResultSchema
1456
+ });
1457
+ const walletGetAccountV2SuccessResponseSchema = createSuccessResponseSchema({
1458
+ resultSchema: walletGetAccountV2ResultSchema,
1459
+ method: walletMethods.wallet_getAccountV2
1477
1460
  });
1478
1461
 
1479
1462
  //#endregion
1480
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessagesV2/request.ts
1481
- const bitcoinSignMultipleMessagesV2ParamsSchema = v.array(v.object({
1482
- address: v.string(),
1483
- message: v.string(),
1484
- protocol: v.optional(v.enum(MessageSigningProtocols))
1485
- }));
1486
- const bitcoinSignMultipleMessagesV2RequestSchema = createRequestSchema({
1487
- paramsSchema: bitcoinSignMultipleMessagesV2ParamsSchema,
1488
- method: bitcoinMethods.bitcoin_signMultipleMessagesV2
1463
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getCurrentPermissions/request.ts
1464
+ const walletGetCurrentPermissionsParamsSchema = v.nullish(v.null());
1465
+ const walletGetCurrentPermissionsRequestSchema = createRequestSchema({
1466
+ paramsSchema: walletGetCurrentPermissionsParamsSchema,
1467
+ method: walletMethods.wallet_getCurrentPermissions
1489
1468
  });
1490
1469
 
1491
1470
  //#endregion
1492
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessagesV2/response.ts
1493
- const bitcoinSignMultipleMessagesV2ResultSchema = v.array(v.object({
1494
- signature: v.string(),
1495
- message: v.string(),
1496
- messageHash: v.string(),
1497
- address: v.string(),
1498
- protocol: v.enum(MessageSigningProtocols)
1499
- }));
1500
- const bitcoinSignMultipleMessagesV2SuccessResponseSchema = createSuccessResponseSchema({
1501
- resultSchema: bitcoinSignMultipleMessagesV2ResultSchema,
1502
- method: bitcoinMethods.bitcoin_signMultipleMessagesV2
1471
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getCurrentPermissions/response.ts
1472
+ const walletGetCurrentPermissionsResultSchema = permission;
1473
+ const walletGetCurrentPermissionsSuccessResponseSchema = createSuccessResponseSchema({
1474
+ resultSchema: walletGetCurrentPermissionsResultSchema,
1475
+ method: walletMethods.wallet_getCurrentPermissions
1503
1476
  });
1504
1477
 
1505
1478
  //#endregion
1506
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbt/request.ts
1507
- const bitcoinSignPsbtParamsSchema = v.object({
1508
- psbt: v.string(),
1509
- signInputs: v.optional(v.record(v.string(), v.array(v.number()))),
1510
- broadcast: v.optional(v.boolean())
1511
- });
1512
- const bitcoinSignPsbtRequestSchema = createRequestSchema({
1513
- paramsSchema: bitcoinSignPsbtParamsSchema,
1514
- method: bitcoinMethods.signPsbt
1479
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getWalletType/request.ts
1480
+ const walletGetWalletTypeParamsSchema = v.nullish(v.null());
1481
+ const walletGetWalletTypeRequestSchema = createRequestSchema({
1482
+ paramsSchema: walletGetWalletTypeParamsSchema,
1483
+ method: walletMethods.wallet_getWalletType
1515
1484
  });
1516
1485
 
1517
1486
  //#endregion
1518
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbt/response.ts
1519
- const bitcoinSignPsbtResultSchema = v.object({
1520
- psbt: v.string(),
1521
- txid: v.optional(v.string())
1522
- });
1523
- const bitcoinSignPsbtSuccessResponseSchema = createSuccessResponseSchema({
1524
- resultSchema: bitcoinSignPsbtResultSchema,
1525
- method: bitcoinMethods.signPsbt
1487
+ //#region src/request/rpc/objects/namespaces/wallet/methods/getWalletType/response.ts
1488
+ const walletGetWalletTypeResultSchema = walletTypeSchema;
1489
+ const walletGetWalletTypeSuccessResponseSchema = createSuccessResponseSchema({
1490
+ resultSchema: walletGetWalletTypeResultSchema,
1491
+ method: walletMethods.wallet_getWalletType
1526
1492
  });
1527
1493
 
1528
1494
  //#endregion
1529
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbtV2/request.ts
1530
- const bitcoinSignPsbtV2ParamsSchema = v.object({
1531
- psbt: v.string(),
1532
- signInputs: v.optional(v.record(v.string(), v.array(v.number()))),
1533
- broadcast: v.optional(v.boolean())
1495
+ //#region src/request/rpc/objects/namespaces/wallet/methods/openBridge/request.ts
1496
+ const walletOpenBridgeParamsSchema = v.object({
1497
+ fromAsset: v.string(),
1498
+ toAsset: v.string()
1534
1499
  });
1535
- const bitcoinSignPsbtV2RequestSchema = createRequestSchema({
1536
- paramsSchema: bitcoinSignPsbtV2ParamsSchema,
1537
- method: bitcoinMethods.bitcoin_signPsbtV2
1500
+ const walletOpenBridgeRequestSchema = createRequestSchema({
1501
+ paramsSchema: walletOpenBridgeParamsSchema,
1502
+ method: walletMethods.wallet_openBridge
1538
1503
  });
1539
1504
 
1540
1505
  //#endregion
1541
- //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbtV2/response.ts
1542
- const bitcoinSignPsbtV2ResultSchema = v.object({
1543
- psbt: v.string(),
1544
- txid: v.optional(v.string())
1545
- });
1546
- const bitcoinSignPsbtV2SuccessResponseSchema = createSuccessResponseSchema({
1547
- resultSchema: bitcoinSignPsbtV2ResultSchema,
1548
- method: bitcoinMethods.bitcoin_signPsbtV2
1506
+ //#region src/request/rpc/objects/namespaces/wallet/methods/openBridge/response.ts
1507
+ const walletOpenBridgeResultSchema = v.nullish(v.null());
1508
+ const walletOpenBridgeSuccessResponseSchema = createSuccessResponseSchema({
1509
+ resultSchema: walletOpenBridgeResultSchema,
1510
+ method: walletMethods.wallet_openBridge
1549
1511
  });
1550
1512
 
1551
1513
  //#endregion
1552
- //#region src/request/rpc/objects/namespaces/bitcoin/index.ts
1553
- const bitcoinRequestSchema = v.variant("method", [
1554
- bitcoinGetAccountsRequestSchema,
1555
- bitcoinGetAccountsV2RequestSchema,
1556
- bitcoinGetAddressesRequestSchema,
1557
- bitcoinGetAddressesV2RequestSchema,
1558
- bitcoinGetBalanceRequestSchema,
1559
- bitcoinGetBalanceV2RequestSchema,
1560
- bitcoinGetInfoRequestSchema,
1561
- bitcoinGetInfoV2RequestSchema,
1562
- bitcoinSendTransferRequestSchema,
1563
- bitcoinSendTransferV2RequestSchema,
1564
- bitcoinSignMessageRequestSchema,
1565
- bitcoinSignMessageV2RequestSchema,
1566
- bitcoinSignMultipleMessagesRequestSchema,
1567
- bitcoinSignMultipleMessagesV2RequestSchema,
1568
- bitcoinSignPsbtRequestSchema,
1569
- bitcoinSignPsbtV2RequestSchema
1570
- ]);
1571
- const bitcoinSuccessResponseSchema = v.variant("~sats-connect-method", [
1572
- bitcoinGetAccountsSuccessResponseSchema,
1573
- bitcoinGetAccountsV2SuccessResponseSchema,
1574
- bitcoinGetAddressesSuccessResponseSchema,
1575
- bitcoinGetAddressesV2SuccessResponseSchema,
1576
- bitcoinGetBalanceSuccessResponseSchema,
1577
- bitcoinGetBalanceV2SuccessResponseSchema,
1578
- bitcoinGetInfoSuccessResponseSchema,
1579
- bitcoinGetInfoV2SuccessResponseSchema,
1580
- bitcoinSendTransferSuccessResponseSchema,
1581
- bitcoinSendTransferV2SuccessResponseSchema,
1582
- bitcoinSignMessageSuccessResponseSchema,
1583
- bitcoinSignMessageV2SuccessResponseSchema,
1584
- bitcoinSignMultipleMessagesSuccessResponseSchema,
1585
- bitcoinSignMultipleMessagesV2SuccessResponseSchema,
1586
- bitcoinSignPsbtSuccessResponseSchema,
1587
- bitcoinSignPsbtV2SuccessResponseSchema
1588
- ]);
1514
+ //#region src/request/rpc/objects/namespaces/wallet/methods/openBuy/request.ts
1515
+ const walletOpenBuyParamsSchema = v.object({ asset: v.string() });
1516
+ const walletOpenBuyRequestSchema = createRequestSchema({
1517
+ paramsSchema: walletOpenBuyParamsSchema,
1518
+ method: walletMethods.wallet_openBuy
1519
+ });
1589
1520
 
1590
1521
  //#endregion
1591
- //#region src/request/rpc/objects/namespaces/ordinals/methods/getInscriptions/request.ts
1592
- const ordinalsGetInscriptionsParamsSchema = v.object({
1593
- offset: v.number(),
1594
- limit: v.number()
1595
- });
1596
- const ordinalsGetInscriptionsRequestSchema = createRequestSchema({
1597
- paramsSchema: ordinalsGetInscriptionsParamsSchema,
1598
- method: ordinalsMethods.ord_getInscriptions
1522
+ //#region src/request/rpc/objects/namespaces/wallet/methods/openBuy/response.ts
1523
+ const walletOpenBuyResultSchema = v.nullish(v.null());
1524
+ const walletOpenBuySuccessResponseSchema = createSuccessResponseSchema({
1525
+ resultSchema: walletOpenBuyResultSchema,
1526
+ method: walletMethods.wallet_openBuy
1599
1527
  });
1600
1528
 
1601
1529
  //#endregion
1602
- //#region src/request/rpc/objects/namespaces/ordinals/methods/getInscriptions/response.ts
1603
- const ordinalsGetInscriptionsResultSchema = v.object({
1604
- total: v.number(),
1605
- limit: v.number(),
1606
- offset: v.number(),
1607
- inscriptions: v.array(v.object({
1608
- inscriptionId: v.string(),
1609
- inscriptionNumber: v.string(),
1610
- address: v.string(),
1611
- collectionName: v.optional(v.string()),
1612
- postage: v.string(),
1613
- contentLength: v.string(),
1614
- contentType: v.string(),
1615
- timestamp: v.number(),
1616
- offset: v.number(),
1617
- genesisTransaction: v.string(),
1618
- output: v.string()
1619
- }))
1620
- });
1621
- const ordinalsGetInscriptionsSuccessResponseSchema = createSuccessResponseSchema({
1622
- resultSchema: ordinalsGetInscriptionsResultSchema,
1623
- method: ordinalsMethods.ord_getInscriptions
1530
+ //#region src/request/rpc/objects/namespaces/wallet/methods/openReceive/request.ts
1531
+ const walletOpenReceiveParamsSchema = v.object({ address: v.string() });
1532
+ const walletOpenReceiveRequestSchema = createRequestSchema({
1533
+ paramsSchema: walletOpenReceiveParamsSchema,
1534
+ method: walletMethods.wallet_openReceive
1624
1535
  });
1625
1536
 
1626
1537
  //#endregion
1627
- //#region src/request/rpc/objects/namespaces/ordinals/methods/sendInscriptions/request.ts
1628
- const ordinalsSendInscriptionsParamsSchema = v.object({ transfers: v.array(v.object({
1629
- address: v.string(),
1630
- inscriptionId: v.string()
1631
- })) });
1632
- const ordinalsSendInscriptionsRequestSchema = createRequestSchema({
1633
- paramsSchema: ordinalsSendInscriptionsParamsSchema,
1634
- method: ordinalsMethods.ord_sendInscriptions
1538
+ //#region src/request/rpc/objects/namespaces/wallet/methods/openReceive/response.ts
1539
+ const walletOpenReceiveResultSchema = addressSchema;
1540
+ const walletOpenReceiveSuccessResponseSchema = createSuccessResponseSchema({
1541
+ resultSchema: walletOpenReceiveResultSchema,
1542
+ method: walletMethods.wallet_openReceive
1635
1543
  });
1636
1544
 
1637
1545
  //#endregion
1638
- //#region src/request/rpc/objects/namespaces/ordinals/methods/sendInscriptions/response.ts
1639
- const ordinalsSendInscriptionsResultSchema = v.object({ txid: v.string() });
1640
- const ordinalsSendInscriptionsSuccessResponseSchema = createSuccessResponseSchema({
1641
- resultSchema: ordinalsSendInscriptionsResultSchema,
1642
- method: ordinalsMethods.ord_sendInscriptions
1546
+ //#region src/request/rpc/objects/namespaces/wallet/methods/renouncePermissions/request.ts
1547
+ const walletRenouncePermissionsParamsSchema = v.nullish(v.null());
1548
+ const walletRenouncePermissionsRequestSchema = createRequestSchema({
1549
+ paramsSchema: walletRenouncePermissionsParamsSchema,
1550
+ method: walletMethods.wallet_renouncePermissions
1643
1551
  });
1644
1552
 
1645
1553
  //#endregion
1646
- //#region src/request/rpc/objects/namespaces/ordinals/index.ts
1647
- const ordinalsRequestSchema = v.variant("method", [ordinalsGetInscriptionsRequestSchema, ordinalsSendInscriptionsRequestSchema]);
1648
- const ordinalsSuccessResponseSchema = v.variant("~sats-connect-method", [ordinalsGetInscriptionsSuccessResponseSchema, ordinalsSendInscriptionsSuccessResponseSchema]);
1554
+ //#region src/request/rpc/objects/namespaces/wallet/methods/renouncePermissions/response.ts
1555
+ const walletRenouncePermissionsResultSchema = v.nullish(v.null());
1556
+ const walletRenouncePermissionsSuccessResponseSchema = createSuccessResponseSchema({
1557
+ resultSchema: walletRenouncePermissionsResultSchema,
1558
+ method: walletMethods.wallet_renouncePermissions
1559
+ });
1649
1560
 
1650
1561
  //#endregion
1651
- //#region src/request/rpc/objects/namespaces/runes/methods/estimateEtch/request.ts
1652
- const etchTermsSchema$1 = v.object({
1653
- amount: v.optional(v.string()),
1654
- cap: v.optional(v.string()),
1655
- heightStart: v.optional(v.string()),
1656
- heightEnd: v.optional(v.string()),
1657
- offsetStart: v.optional(v.string()),
1658
- offsetEnd: v.optional(v.string())
1659
- });
1660
- const inscriptionDetailsSchema$1 = v.object({
1661
- contentType: v.string(),
1662
- contentBase64: v.string()
1663
- });
1664
- const runesEstimateEtchParamsSchema = v.object({
1665
- runeName: v.string(),
1666
- divisibility: v.optional(v.number()),
1667
- symbol: v.optional(v.string()),
1668
- premine: v.optional(v.string()),
1669
- isMintable: v.boolean(),
1670
- terms: v.optional(etchTermsSchema$1),
1671
- inscriptionDetails: v.optional(inscriptionDetailsSchema$1),
1672
- delegateInscriptionId: v.optional(v.string()),
1673
- destinationAddress: v.string(),
1674
- feeRate: v.number(),
1675
- appServiceFee: v.optional(v.number()),
1676
- appServiceFeeAddress: v.optional(v.string()),
1677
- network: v.optional(v.enum(BitcoinNetworkType))
1678
- });
1679
- const runesEstimateEtchRequestSchema = createRequestSchema({
1680
- paramsSchema: runesEstimateEtchParamsSchema,
1681
- method: runesMethods.runes_estimateEtch
1562
+ //#region src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts
1563
+ const walletRequestPermissionsParamsSchema = v.array(permissionRequestParamsSchema);
1564
+ const walletRequestPermissionsRequestSchema = createRequestSchema({
1565
+ paramsSchema: walletRequestPermissionsParamsSchema,
1566
+ method: walletMethods.wallet_requestPermissions
1682
1567
  });
1683
1568
 
1684
1569
  //#endregion
1685
- //#region src/request/rpc/objects/namespaces/runes/methods/estimateEtch/response.ts
1686
- const runesEstimateEtchResultSchema = v.object({
1687
- totalSize: v.number(),
1688
- totalCost: v.number(),
1689
- costBreakdown: v.object({
1690
- postage: v.number(),
1691
- networkFee: v.number(),
1692
- serviceFee: v.number(),
1693
- appServiceFee: v.number()
1694
- })
1695
- });
1696
- const runesEstimateEtchSuccessResponseSchema = createSuccessResponseSchema({
1697
- resultSchema: runesEstimateEtchResultSchema,
1698
- method: runesMethods.runes_estimateEtch
1570
+ //#region src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/response.ts
1571
+ const walletRequestPermissionsResultSchema = v.literal(true);
1572
+ const walletRequestPermissionsSuccessResponseSchema = createSuccessResponseSchema({
1573
+ resultSchema: walletRequestPermissionsResultSchema,
1574
+ method: walletMethods.wallet_requestPermissions
1699
1575
  });
1700
1576
 
1701
1577
  //#endregion
1702
- //#region src/request/rpc/objects/namespaces/runes/methods/estimateMint/request.ts
1703
- const runesEstimateMintParamsSchema = v.object({
1704
- runeName: v.string(),
1705
- repeats: v.number(),
1706
- destinationAddress: v.string(),
1707
- feeRate: v.number(),
1708
- appServiceFee: v.optional(v.number()),
1709
- appServiceFeeAddress: v.optional(v.string()),
1710
- network: v.optional(v.enum(BitcoinNetworkType))
1711
- });
1712
- const runesEstimateMintRequestSchema = createRequestSchema({
1713
- paramsSchema: runesEstimateMintParamsSchema,
1714
- method: runesMethods.runes_estimateMint
1578
+ //#region src/request/rpc/objects/namespaces/wallet/methods/switchNetwork/request.ts
1579
+ const walletSwitchNetworkParamsSchema = v.variant("selector", [v.object({
1580
+ selector: v.literal("id"),
1581
+ id: v.string()
1582
+ })]);
1583
+ const walletSwitchNetworkRequestSchema = createRequestSchema({
1584
+ paramsSchema: walletSwitchNetworkParamsSchema,
1585
+ method: walletMethods.wallet_switchNetwork
1715
1586
  });
1716
1587
 
1717
1588
  //#endregion
1718
- //#region src/request/rpc/objects/namespaces/runes/methods/estimateMint/response.ts
1719
- const runesEstimateMintResultSchema = v.object({
1720
- totalSize: v.number(),
1721
- totalCost: v.number(),
1722
- costBreakdown: v.object({
1723
- postage: v.number(),
1724
- networkFee: v.number(),
1725
- serviceFee: v.number(),
1726
- appServiceFee: v.number()
1727
- })
1728
- });
1729
- const runesEstimateMintSuccessResponseSchema = createSuccessResponseSchema({
1730
- resultSchema: runesEstimateMintResultSchema,
1731
- method: runesMethods.runes_estimateMint
1589
+ //#region src/request/rpc/objects/namespaces/wallet/methods/switchNetwork/response.ts
1590
+ const walletSwitchNetworkResultSchema = v.nullish(v.null());
1591
+ const walletSwitchNetworkSuccessResponseSchema = createSuccessResponseSchema({
1592
+ resultSchema: walletSwitchNetworkResultSchema,
1593
+ method: walletMethods.wallet_switchNetwork
1732
1594
  });
1733
1595
 
1734
1596
  //#endregion
1735
- //#region src/request/rpc/objects/namespaces/runes/methods/estimateRbfOrder/request.ts
1736
- const runesEstimateRbfOrderParamsSchema = v.object({
1737
- orderId: v.string(),
1738
- newFeeRate: v.number(),
1739
- network: v.optional(v.enum(BitcoinNetworkType))
1740
- });
1741
- const runesEstimateRbfOrderRequestSchema = createRequestSchema({
1742
- paramsSchema: runesEstimateRbfOrderParamsSchema,
1743
- method: runesMethods.runes_estimateRbfOrder
1744
- });
1597
+ //#region src/request/rpc/objects/namespaces/wallet/index.ts
1598
+ const walletRequestSchema = v.variant("method", [
1599
+ walletAddNetworkRequestSchema,
1600
+ walletAddNetworkV2RequestSchema,
1601
+ walletChangeNetworkRequestSchema,
1602
+ walletConnectRequestSchema,
1603
+ walletConnectV2RequestSchema,
1604
+ walletDisconnectRequestSchema,
1605
+ walletGetAccountRequestSchema,
1606
+ walletGetAccountV2RequestSchema,
1607
+ walletGetCurrentPermissionsRequestSchema,
1608
+ walletGetNetworkRequestSchema,
1609
+ walletGetNetworksRequestSchema,
1610
+ walletGetWalletTypeRequestSchema,
1611
+ walletOpenBridgeRequestSchema,
1612
+ walletOpenBuyRequestSchema,
1613
+ walletOpenReceiveRequestSchema,
1614
+ walletRenouncePermissionsRequestSchema,
1615
+ walletRequestPermissionsRequestSchema,
1616
+ walletSwitchNetworkRequestSchema
1617
+ ]);
1618
+ const walletSuccessResponseSchema = v.variant("~sats-connect-method", [
1619
+ walletAddNetworkSuccessResponseSchema,
1620
+ walletAddNetworkV2SuccessResponseSchema,
1621
+ walletChangeNetworkSuccessResponseSchema,
1622
+ walletConnectSuccessResponseSchema,
1623
+ walletConnectV2SuccessResponseSchema,
1624
+ walletDisconnectSuccessResponseSchema,
1625
+ walletGetAccountSuccessResponseSchema,
1626
+ walletGetAccountV2SuccessResponseSchema,
1627
+ walletGetCurrentPermissionsSuccessResponseSchema,
1628
+ walletGetNetworksSuccessResponseSchema,
1629
+ walletGetNetworkSuccessResponseSchema,
1630
+ walletGetWalletTypeSuccessResponseSchema,
1631
+ walletOpenBridgeSuccessResponseSchema,
1632
+ walletOpenBuySuccessResponseSchema,
1633
+ walletOpenReceiveSuccessResponseSchema,
1634
+ walletRenouncePermissionsSuccessResponseSchema,
1635
+ walletRequestPermissionsSuccessResponseSchema,
1636
+ walletSwitchNetworkSuccessResponseSchema
1637
+ ]);
1745
1638
 
1746
1639
  //#endregion
1747
- //#region src/request/rpc/objects/namespaces/runes/methods/estimateRbfOrder/response.ts
1748
- const runesEstimateRbfOrderResultSchema = v.object({
1749
- rbfCost: v.number(),
1750
- fundingAddress: v.string()
1640
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getAddressesV2/response.ts
1641
+ const bitcoinGetAddressesV2ResultSchema = v.object({
1642
+ addresses: v.array(addressSchema),
1643
+ networks: allResolvedNetworksSchema
1751
1644
  });
1752
- const runesEstimateRbfOrderSuccessResponseSchema = createSuccessResponseSchema({
1753
- resultSchema: runesEstimateRbfOrderResultSchema,
1754
- method: runesMethods.runes_estimateRbfOrder
1645
+ const bitcoinGetAddressesV2SuccessResponseSchema = createSuccessResponseSchema({
1646
+ resultSchema: bitcoinGetAddressesV2ResultSchema,
1647
+ method: bitcoinMethods.bitcoin_getAddressesV2
1755
1648
  });
1756
1649
 
1757
1650
  //#endregion
1758
- //#region src/request/rpc/objects/namespaces/runes/methods/etch/request.ts
1759
- const etchTermsSchema = v.object({
1760
- amount: v.optional(v.string()),
1761
- cap: v.optional(v.string()),
1762
- heightStart: v.optional(v.string()),
1763
- heightEnd: v.optional(v.string()),
1764
- offsetStart: v.optional(v.string()),
1765
- offsetEnd: v.optional(v.string())
1651
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalance/request.ts
1652
+ const bitcoinGetBalanceParamsSchema = v.nullish(v.null());
1653
+ const bitcoinGetBalanceRequestSchema = createRequestSchema({
1654
+ paramsSchema: bitcoinGetBalanceParamsSchema,
1655
+ method: bitcoinMethods.getBalance
1766
1656
  });
1767
- const inscriptionDetailsSchema = v.object({
1768
- contentType: v.string(),
1769
- contentBase64: v.string()
1657
+
1658
+ //#endregion
1659
+ //#region src/request/rpc/objects/namespaces/bitcoin/shared/balanceResultSchema.ts
1660
+ const balanceResultSchema = v.object({
1661
+ confirmed: v.string(),
1662
+ unconfirmed: v.string(),
1663
+ total: v.string()
1770
1664
  });
1771
- const runesEtchParamsSchema = v.object({
1772
- runeName: v.string(),
1773
- divisibility: v.optional(v.number()),
1774
- symbol: v.optional(v.string()),
1775
- premine: v.optional(v.string()),
1776
- isMintable: v.boolean(),
1777
- terms: v.optional(etchTermsSchema),
1778
- inscriptionDetails: v.optional(inscriptionDetailsSchema),
1779
- delegateInscriptionId: v.optional(v.string()),
1780
- destinationAddress: v.string(),
1781
- refundAddress: v.string(),
1782
- feeRate: v.number(),
1783
- appServiceFee: v.optional(v.number()),
1784
- appServiceFeeAddress: v.optional(v.string()),
1785
- network: v.optional(v.enum(BitcoinNetworkType))
1665
+
1666
+ //#endregion
1667
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalance/response.ts
1668
+ const bitcoinGetBalanceResultSchema = balanceResultSchema;
1669
+ const bitcoinGetBalanceSuccessResponseSchema = createSuccessResponseSchema({
1670
+ resultSchema: bitcoinGetBalanceResultSchema,
1671
+ method: bitcoinMethods.getBalance
1786
1672
  });
1787
- const runesEtchRequestSchema = createRequestSchema({
1788
- paramsSchema: runesEtchParamsSchema,
1789
- method: runesMethods.runes_etch
1673
+
1674
+ //#endregion
1675
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalanceV2/request.ts
1676
+ const bitcoinGetBalanceV2ParamsSchema = v.nullish(v.null());
1677
+ const bitcoinGetBalanceV2RequestSchema = createRequestSchema({
1678
+ paramsSchema: bitcoinGetBalanceV2ParamsSchema,
1679
+ method: bitcoinMethods.bitcoin_getBalanceV2
1790
1680
  });
1791
1681
 
1792
1682
  //#endregion
1793
- //#region src/request/rpc/objects/namespaces/runes/methods/etch/response.ts
1794
- const runesEtchResultSchema = v.object({
1795
- orderId: v.string(),
1796
- fundTransactionId: v.string(),
1797
- fundingAddress: v.string()
1683
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getBalanceV2/response.ts
1684
+ const bitcoinGetBalanceV2ResultSchema = balanceResultSchema;
1685
+ const bitcoinGetBalanceV2SuccessResponseSchema = createSuccessResponseSchema({
1686
+ resultSchema: bitcoinGetBalanceV2ResultSchema,
1687
+ method: bitcoinMethods.bitcoin_getBalanceV2
1798
1688
  });
1799
- const runesEtchSuccessResponseSchema = createSuccessResponseSchema({
1800
- resultSchema: runesEtchResultSchema,
1801
- method: runesMethods.runes_etch
1689
+
1690
+ //#endregion
1691
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getInfo/request.ts
1692
+ const bitcoinGetInfoParamsSchema = v.nullish(v.null());
1693
+ const bitcoinGetInfoRequestSchema = createRequestSchema({
1694
+ paramsSchema: bitcoinGetInfoParamsSchema,
1695
+ method: bitcoinMethods.getInfo
1802
1696
  });
1803
1697
 
1804
1698
  //#endregion
1805
- //#region src/request/rpc/objects/namespaces/runes/methods/getBalance/request.ts
1806
- const runesGetBalanceParamsSchema = v.nullish(v.null());
1807
- const runesGetBalanceRequestSchema = createRequestSchema({
1808
- paramsSchema: runesGetBalanceParamsSchema,
1809
- method: runesMethods.runes_getBalance
1699
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/getInfo/response.ts
1700
+ const bitcoinGetInfoResultSchema = v.object({
1701
+ version: v.string(),
1702
+ platform: v.optional(v.enum(ProviderPlatform)),
1703
+ methods: v.optional(v.array(v.string())),
1704
+ supports: v.array(v.string())
1705
+ });
1706
+ const bitcoinGetInfoSuccessResponseSchema = createSuccessResponseSchema({
1707
+ resultSchema: bitcoinGetInfoResultSchema,
1708
+ method: bitcoinMethods.getInfo
1810
1709
  });
1811
1710
 
1812
1711
  //#endregion
1813
- //#region src/request/rpc/objects/namespaces/runes/methods/getBalance/response.ts
1814
- const runesGetBalanceResultSchema = v.object({ balances: v.array(v.object({
1815
- runeName: v.string(),
1816
- amount: v.string(),
1817
- divisibility: v.number(),
1818
- symbol: v.string(),
1819
- inscriptionId: v.nullish(v.string()),
1820
- spendableBalance: v.string()
1712
+ //#region src/request/rpc/objects/namespaces/bitcoin/shared/sendTransfer.ts
1713
+ const sendTransferParamsSchema = v.object({ recipients: v.array(v.object({
1714
+ address: v.string(),
1715
+ amount: v.number()
1821
1716
  })) });
1822
- const runesGetBalanceSuccessResponseSchema = createSuccessResponseSchema({
1823
- resultSchema: runesGetBalanceResultSchema,
1824
- method: runesMethods.runes_getBalance
1825
- });
1717
+ const sendTransferResultSchema = v.object({ txid: v.string() });
1826
1718
 
1827
1719
  //#endregion
1828
- //#region src/request/rpc/objects/namespaces/runes/methods/getOrder/request.ts
1829
- const runesGetOrderParamsSchema = v.object({
1830
- id: v.string(),
1831
- network: v.optional(v.enum(BitcoinNetworkType))
1832
- });
1833
- const runesGetOrderRequestSchema = createRequestSchema({
1834
- paramsSchema: runesGetOrderParamsSchema,
1835
- method: runesMethods.runes_getOrder
1720
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransfer/request.ts
1721
+ const bitcoinSendTransferParamsSchema = sendTransferParamsSchema;
1722
+ const bitcoinSendTransferRequestSchema = createRequestSchema({
1723
+ paramsSchema: bitcoinSendTransferParamsSchema,
1724
+ method: bitcoinMethods.sendTransfer
1836
1725
  });
1837
1726
 
1838
1727
  //#endregion
1839
- //#region src/request/rpc/objects/namespaces/runes/methods/getOrder/response.ts
1840
- const runesGetOrderResultSchema = v.object({
1841
- id: v.string(),
1842
- orderType: v.union([v.literal("rune_mint"), v.literal("rune_etch")]),
1843
- state: v.union([
1844
- v.literal("new"),
1845
- v.literal("pending"),
1846
- v.literal("executing"),
1847
- v.literal("complete"),
1848
- v.literal("failed"),
1849
- v.literal("refunded"),
1850
- v.literal("stale")
1851
- ]),
1852
- fundingAddress: v.string(),
1853
- reason: v.optional(v.string()),
1854
- createdAt: v.string()
1855
- });
1856
- const runesGetOrderSuccessResponseSchema = createSuccessResponseSchema({
1857
- resultSchema: runesGetOrderResultSchema,
1858
- method: runesMethods.runes_getOrder
1728
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransfer/response.ts
1729
+ const bitcoinSendTransferResultSchema = sendTransferResultSchema;
1730
+ const bitcoinSendTransferSuccessResponseSchema = createSuccessResponseSchema({
1731
+ resultSchema: bitcoinSendTransferResultSchema,
1732
+ method: bitcoinMethods.sendTransfer
1859
1733
  });
1860
1734
 
1861
1735
  //#endregion
1862
- //#region src/request/rpc/objects/namespaces/runes/methods/mint/request.ts
1863
- const runesMintParamsSchema = v.object({
1864
- appServiceFee: v.optional(v.number()),
1865
- appServiceFeeAddress: v.optional(v.string()),
1866
- destinationAddress: v.string(),
1867
- feeRate: v.number(),
1868
- refundAddress: v.string(),
1869
- repeats: v.number(),
1870
- runeName: v.string(),
1871
- network: v.optional(v.enum(BitcoinNetworkType))
1872
- });
1873
- const runesMintRequestSchema = createRequestSchema({
1874
- paramsSchema: runesMintParamsSchema,
1875
- method: runesMethods.runes_mint
1736
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransferV2/request.ts
1737
+ const bitcoinSendTransferV2ParamsSchema = sendTransferParamsSchema;
1738
+ const bitcoinSendTransferV2RequestSchema = createRequestSchema({
1739
+ paramsSchema: bitcoinSendTransferV2ParamsSchema,
1740
+ method: bitcoinMethods.bitcoin_sendTransferV2
1876
1741
  });
1877
1742
 
1878
1743
  //#endregion
1879
- //#region src/request/rpc/objects/namespaces/runes/methods/mint/response.ts
1880
- const runesMintResultSchema = v.object({
1881
- orderId: v.string(),
1882
- fundTransactionId: v.string(),
1883
- fundingAddress: v.string()
1884
- });
1885
- const runesMintSuccessResponseSchema = createSuccessResponseSchema({
1886
- resultSchema: runesMintResultSchema,
1887
- method: runesMethods.runes_mint
1744
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/sendTransferV2/response.ts
1745
+ const bitcoinSendTransferV2ResultSchema = sendTransferResultSchema;
1746
+ const bitcoinSendTransferV2SuccessResponseSchema = createSuccessResponseSchema({
1747
+ resultSchema: bitcoinSendTransferV2ResultSchema,
1748
+ method: bitcoinMethods.bitcoin_sendTransferV2
1888
1749
  });
1889
1750
 
1890
1751
  //#endregion
1891
- //#region src/request/rpc/objects/namespaces/runes/methods/rbfOrder/request.ts
1892
- const runesRbfOrderParamsSchema = v.object({
1893
- orderId: v.string(),
1894
- newFeeRate: v.number(),
1895
- network: v.optional(v.enum(BitcoinNetworkType))
1752
+ //#region src/request/rpc/objects/namespaces/bitcoin/shared/signMessage.ts
1753
+ const signMessageParamsSchema = v.object({
1754
+ address: v.string(),
1755
+ message: v.string(),
1756
+ protocol: v.optional(v.enum(MessageSigningProtocols))
1896
1757
  });
1897
- const runesRbfOrderRequestSchema = createRequestSchema({
1898
- paramsSchema: runesRbfOrderParamsSchema,
1899
- method: runesMethods.runes_rbfOrder
1758
+ const signMessageResultSchema = v.object({
1759
+ signature: v.string(),
1760
+ messageHash: v.string(),
1761
+ address: v.string(),
1762
+ protocol: v.enum(MessageSigningProtocols)
1900
1763
  });
1901
1764
 
1902
1765
  //#endregion
1903
- //#region src/request/rpc/objects/namespaces/runes/methods/rbfOrder/response.ts
1904
- const runesRbfOrderResultSchema = v.object({
1905
- orderId: v.string(),
1906
- fundRBFTransactionId: v.string(),
1907
- fundingAddress: v.string()
1908
- });
1909
- const runesRbfOrderSuccessResponseSchema = createSuccessResponseSchema({
1910
- resultSchema: runesRbfOrderResultSchema,
1911
- method: runesMethods.runes_rbfOrder
1766
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessage/request.ts
1767
+ const bitcoinSignMessageParamsSchema = signMessageParamsSchema;
1768
+ const bitcoinSignMessageRequestSchema = createRequestSchema({
1769
+ paramsSchema: bitcoinSignMessageParamsSchema,
1770
+ method: bitcoinMethods.signMessage
1912
1771
  });
1913
1772
 
1914
1773
  //#endregion
1915
- //#region src/request/rpc/objects/namespaces/runes/methods/transfer/request.ts
1916
- const runesTransferParamsSchema = v.object({
1917
- recipients: v.array(v.object({
1918
- runeName: v.string(),
1919
- amount: v.string(),
1920
- address: v.string()
1921
- })),
1922
- network: v.optional(v.enum(BitcoinNetworkType))
1774
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessage/response.ts
1775
+ const bitcoinSignMessageResultSchema = signMessageResultSchema;
1776
+ const bitcoinSignMessageSuccessResponseSchema = createSuccessResponseSchema({
1777
+ resultSchema: bitcoinSignMessageResultSchema,
1778
+ method: bitcoinMethods.signMessage
1923
1779
  });
1924
- const runesTransferRequestSchema = createRequestSchema({
1925
- paramsSchema: runesTransferParamsSchema,
1926
- method: runesMethods.runes_transfer
1780
+
1781
+ //#endregion
1782
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessageV2/request.ts
1783
+ const bitcoinSignMessageV2ParamsSchema = signMessageParamsSchema;
1784
+ const bitcoinSignMessageV2RequestSchema = createRequestSchema({
1785
+ paramsSchema: bitcoinSignMessageV2ParamsSchema,
1786
+ method: bitcoinMethods.bitcoin_signMessageV2
1927
1787
  });
1928
1788
 
1929
1789
  //#endregion
1930
- //#region src/request/rpc/objects/namespaces/runes/methods/transfer/response.ts
1931
- const runesTransferResultSchema = v.object({ txid: v.string() });
1932
- const runesTransferSuccessResponseSchema = createSuccessResponseSchema({
1933
- resultSchema: runesTransferResultSchema,
1934
- method: runesMethods.runes_transfer
1790
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMessageV2/response.ts
1791
+ const bitcoinSignMessageV2ResultSchema = signMessageResultSchema;
1792
+ const bitcoinSignMessageV2SuccessResponseSchema = createSuccessResponseSchema({
1793
+ resultSchema: bitcoinSignMessageV2ResultSchema,
1794
+ method: bitcoinMethods.bitcoin_signMessageV2
1935
1795
  });
1936
1796
 
1937
1797
  //#endregion
1938
- //#region src/request/rpc/objects/namespaces/runes/index.ts
1939
- const runesRequestSchema = v.variant("method", [
1940
- runesEstimateEtchRequestSchema,
1941
- runesEstimateMintRequestSchema,
1942
- runesEstimateRbfOrderRequestSchema,
1943
- runesEtchRequestSchema,
1944
- runesGetBalanceRequestSchema,
1945
- runesGetOrderRequestSchema,
1946
- runesMintRequestSchema,
1947
- runesRbfOrderRequestSchema,
1948
- runesTransferRequestSchema
1949
- ]);
1950
- const runesSuccessResponseSchema = v.variant("~sats-connect-method", [
1951
- runesEstimateEtchSuccessResponseSchema,
1952
- runesEstimateMintSuccessResponseSchema,
1953
- runesEstimateRbfOrderSuccessResponseSchema,
1954
- runesEtchSuccessResponseSchema,
1955
- runesGetBalanceSuccessResponseSchema,
1956
- runesGetOrderSuccessResponseSchema,
1957
- runesMintSuccessResponseSchema,
1958
- runesRbfOrderSuccessResponseSchema,
1959
- runesTransferSuccessResponseSchema
1960
- ]);
1798
+ //#region src/request/rpc/objects/namespaces/bitcoin/shared/signMultipleMessages.ts
1799
+ const signMultipleMessagesParamsSchema = v.array(signMessageParamsSchema);
1800
+ const signMultipleMessagesResultSchema = v.array(v.object({
1801
+ ...signMessageResultSchema.entries,
1802
+ message: v.string()
1803
+ }));
1961
1804
 
1962
1805
  //#endregion
1963
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetClawbackFunds/request.ts
1964
- const sparkFlashnetClawbackFundsParamsSchema = v.object({
1965
- sparkTransferId: v.string(),
1966
- lpIdentityPublicKey: v.string()
1967
- });
1968
- const sparkFlashnetClawbackFundsRequestSchema = createRequestSchema({
1969
- paramsSchema: sparkFlashnetClawbackFundsParamsSchema,
1970
- method: sparkMethods.spark_flashnet_clawbackFunds
1806
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessages/request.ts
1807
+ const bitcoinSignMultipleMessagesParamsSchema = signMultipleMessagesParamsSchema;
1808
+ const bitcoinSignMultipleMessagesRequestSchema = createRequestSchema({
1809
+ paramsSchema: bitcoinSignMultipleMessagesParamsSchema,
1810
+ method: bitcoinMethods.signMultipleMessages
1971
1811
  });
1972
1812
 
1973
1813
  //#endregion
1974
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetClawbackFunds/response.ts
1975
- const sparkFlashnetClawbackFundsResultSchema = v.object({
1976
- requestId: v.string(),
1977
- accepted: v.boolean(),
1978
- internalRequestId: v.optional(v.string()),
1979
- sparkStatusTrackingId: v.optional(v.string()),
1980
- error: v.optional(v.string())
1981
- });
1982
- const sparkFlashnetClawbackFundsSuccessResponseSchema = createSuccessResponseSchema({
1983
- resultSchema: sparkFlashnetClawbackFundsResultSchema,
1984
- method: sparkMethods.spark_flashnet_clawbackFunds
1814
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessages/response.ts
1815
+ const bitcoinSignMultipleMessagesResultSchema = signMultipleMessagesResultSchema;
1816
+ const bitcoinSignMultipleMessagesSuccessResponseSchema = createSuccessResponseSchema({
1817
+ resultSchema: bitcoinSignMultipleMessagesResultSchema,
1818
+ method: bitcoinMethods.signMultipleMessages
1985
1819
  });
1986
1820
 
1987
1821
  //#endregion
1988
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteRouteSwap/request.ts
1989
- const sparkFlashnetExecuteRouteSwapParamsSchema = v.object({
1990
- hops: v.array(v.object({
1991
- poolId: v.string(),
1992
- assetInAddress: v.string(),
1993
- assetOutAddress: v.string(),
1994
- hopIntegratorFeeRateBps: v.optional(v.number())
1995
- })),
1996
- initialAssetAddress: v.string(),
1997
- inputAmount: v.string(),
1998
- maxRouteSlippageBps: v.string(),
1999
- minAmountOut: v.optional(v.string()),
2000
- integratorFeeRateBps: v.optional(v.number()),
2001
- integratorPublicKey: v.optional(v.string())
2002
- });
2003
- const sparkFlashnetExecuteRouteSwapRequestSchema = createRequestSchema({
2004
- paramsSchema: sparkFlashnetExecuteRouteSwapParamsSchema,
2005
- method: sparkMethods.spark_flashnet_executeRouteSwap
1822
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessagesV2/request.ts
1823
+ const bitcoinSignMultipleMessagesV2ParamsSchema = signMultipleMessagesParamsSchema;
1824
+ const bitcoinSignMultipleMessagesV2RequestSchema = createRequestSchema({
1825
+ paramsSchema: bitcoinSignMultipleMessagesV2ParamsSchema,
1826
+ method: bitcoinMethods.bitcoin_signMultipleMessagesV2
2006
1827
  });
2007
1828
 
2008
1829
  //#endregion
2009
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteRouteSwap/response.ts
2010
- const sparkFlashnetExecuteRouteSwapResultSchema = v.object({
2011
- requestId: v.string(),
2012
- accepted: v.boolean(),
2013
- outputAmount: v.string(),
2014
- executionPrice: v.string(),
2015
- finalOutboundTransferId: v.string(),
2016
- error: v.optional(v.string())
2017
- });
2018
- const sparkFlashnetExecuteRouteSwapSuccessResponseSchema = createSuccessResponseSchema({
2019
- resultSchema: sparkFlashnetExecuteRouteSwapResultSchema,
2020
- method: sparkMethods.spark_flashnet_executeRouteSwap
1830
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signMultipleMessagesV2/response.ts
1831
+ const bitcoinSignMultipleMessagesV2ResultSchema = signMultipleMessagesResultSchema;
1832
+ const bitcoinSignMultipleMessagesV2SuccessResponseSchema = createSuccessResponseSchema({
1833
+ resultSchema: bitcoinSignMultipleMessagesV2ResultSchema,
1834
+ method: bitcoinMethods.bitcoin_signMultipleMessagesV2
2021
1835
  });
2022
1836
 
2023
1837
  //#endregion
2024
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteSwap/request.ts
2025
- const sparkFlashnetExecuteSwapParamsSchema = v.object({
2026
- poolId: v.string(),
2027
- assetInAddress: v.string(),
2028
- assetOutAddress: v.string(),
2029
- amountIn: v.string(),
2030
- maxSlippageBps: v.number(),
2031
- minAmountOut: v.optional(v.string()),
2032
- integratorFeeRateBps: v.optional(v.number()),
2033
- integratorPublicKey: v.optional(v.string())
1838
+ //#region src/request/rpc/objects/namespaces/bitcoin/shared/signPsbt.ts
1839
+ const signPsbtParamsSchema = v.object({
1840
+ psbt: v.string(),
1841
+ signInputs: v.optional(v.record(v.string(), v.array(v.number()))),
1842
+ broadcast: v.optional(v.boolean(), false)
2034
1843
  });
2035
- const sparkFlashnetExecuteSwapRequestSchema = createRequestSchema({
2036
- paramsSchema: sparkFlashnetExecuteSwapParamsSchema,
2037
- method: sparkMethods.spark_flashnet_executeSwap
1844
+ const signPsbtResultSchema = v.object({
1845
+ psbt: v.string(),
1846
+ txid: v.optional(v.string())
2038
1847
  });
2039
1848
 
2040
1849
  //#endregion
2041
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteSwap/response.ts
2042
- const sparkFlashnetExecuteSwapResultSchema = v.object({
2043
- requestId: v.string(),
2044
- accepted: v.boolean(),
2045
- amountOut: v.optional(v.string()),
2046
- feeAmount: v.optional(v.string()),
2047
- executionPrice: v.optional(v.string()),
2048
- assetOutAddress: v.optional(v.string()),
2049
- assetInAddress: v.optional(v.string()),
2050
- outboundTransferId: v.optional(v.string()),
2051
- error: v.optional(v.string())
2052
- });
2053
- const sparkFlashnetExecuteSwapSuccessResponseSchema = createSuccessResponseSchema({
2054
- resultSchema: sparkFlashnetExecuteSwapResultSchema,
2055
- method: sparkMethods.spark_flashnet_executeSwap
1850
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbt/request.ts
1851
+ const bitcoinSignPsbtParamsSchema = signPsbtParamsSchema;
1852
+ const bitcoinSignPsbtRequestSchema = createRequestSchema({
1853
+ paramsSchema: bitcoinSignPsbtParamsSchema,
1854
+ method: bitcoinMethods.signPsbt
2056
1855
  });
2057
1856
 
2058
1857
  //#endregion
2059
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetClawbackEligibleTransfers/request.ts
2060
- const sparkGetClawbackEligibleTransfersParamsSchema = v.nullish(v.null());
2061
- const sparkGetClawbackEligibleTransfersRequestSchema = createRequestSchema({
2062
- paramsSchema: sparkGetClawbackEligibleTransfersParamsSchema,
2063
- method: sparkMethods.spark_flashnet_getClawbackEligibleTransfers
1858
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbt/response.ts
1859
+ const bitcoinSignPsbtResultSchema = signPsbtResultSchema;
1860
+ const bitcoinSignPsbtSuccessResponseSchema = createSuccessResponseSchema({
1861
+ resultSchema: bitcoinSignPsbtResultSchema,
1862
+ method: bitcoinMethods.signPsbt
2064
1863
  });
2065
1864
 
2066
1865
  //#endregion
2067
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetClawbackEligibleTransfers/response.ts
2068
- const sparkGetClawbackEligibleTransfersResultSchema = v.object({ eligibleTransfers: v.array(v.object({
2069
- txId: v.string(),
2070
- createdAt: v.string(),
2071
- lpIdentityPublicKey: v.string()
2072
- })) });
2073
- const sparkGetClawbackEligibleTransfersSuccessResponseSchema = createSuccessResponseSchema({
2074
- resultSchema: sparkGetClawbackEligibleTransfersResultSchema,
2075
- method: sparkMethods.spark_flashnet_getClawbackEligibleTransfers
1866
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbtV2/request.ts
1867
+ const bitcoinSignPsbtV2ParamsSchema = signPsbtParamsSchema;
1868
+ const bitcoinSignPsbtV2RequestSchema = createRequestSchema({
1869
+ paramsSchema: bitcoinSignPsbtV2ParamsSchema,
1870
+ method: bitcoinMethods.bitcoin_signPsbtV2
2076
1871
  });
2077
1872
 
2078
1873
  //#endregion
2079
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetJwt/request.ts
2080
- const sparkFlashnetGetJwtParamsSchema = v.null();
2081
- const sparkFlashnetGetJwtRequestSchema = createRequestSchema({
2082
- paramsSchema: sparkFlashnetGetJwtParamsSchema,
2083
- method: sparkMethods.spark_flashnet_getJwt
1874
+ //#region src/request/rpc/objects/namespaces/bitcoin/methods/signPsbtV2/response.ts
1875
+ const bitcoinSignPsbtV2ResultSchema = signPsbtResultSchema;
1876
+ const bitcoinSignPsbtV2SuccessResponseSchema = createSuccessResponseSchema({
1877
+ resultSchema: bitcoinSignPsbtV2ResultSchema,
1878
+ method: bitcoinMethods.bitcoin_signPsbtV2
2084
1879
  });
2085
1880
 
2086
1881
  //#endregion
2087
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetJwt/response.ts
2088
- const sparkFlashnetGetJwtResultSchema = v.object({ jwt: v.string() });
2089
- const sparkFlashnetGetJwtSuccessResponseSchema = createSuccessResponseSchema({
2090
- resultSchema: sparkFlashnetGetJwtResultSchema,
2091
- method: sparkMethods.spark_flashnet_getJwt
2092
- });
1882
+ //#region src/request/rpc/objects/namespaces/bitcoin/index.ts
1883
+ const bitcoinRequestSchema = v.variant("method", [
1884
+ bitcoinGetAccountsRequestSchema,
1885
+ bitcoinGetAddressesRequestSchema,
1886
+ bitcoinGetAddressesV2RequestSchema,
1887
+ bitcoinGetBalanceRequestSchema,
1888
+ bitcoinGetBalanceV2RequestSchema,
1889
+ bitcoinGetInfoRequestSchema,
1890
+ bitcoinSendTransferRequestSchema,
1891
+ bitcoinSendTransferV2RequestSchema,
1892
+ bitcoinSignMessageRequestSchema,
1893
+ bitcoinSignMessageV2RequestSchema,
1894
+ bitcoinSignMultipleMessagesRequestSchema,
1895
+ bitcoinSignMultipleMessagesV2RequestSchema,
1896
+ bitcoinSignPsbtRequestSchema,
1897
+ bitcoinSignPsbtV2RequestSchema
1898
+ ]);
1899
+ const bitcoinSuccessResponseSchema = v.variant("~sats-connect-method", [
1900
+ bitcoinGetAccountsSuccessResponseSchema,
1901
+ bitcoinGetAddressesSuccessResponseSchema,
1902
+ bitcoinGetAddressesV2SuccessResponseSchema,
1903
+ bitcoinGetBalanceSuccessResponseSchema,
1904
+ bitcoinGetBalanceV2SuccessResponseSchema,
1905
+ bitcoinGetInfoSuccessResponseSchema,
1906
+ bitcoinSendTransferSuccessResponseSchema,
1907
+ bitcoinSendTransferV2SuccessResponseSchema,
1908
+ bitcoinSignMessageSuccessResponseSchema,
1909
+ bitcoinSignMessageV2SuccessResponseSchema,
1910
+ bitcoinSignMultipleMessagesSuccessResponseSchema,
1911
+ bitcoinSignMultipleMessagesV2SuccessResponseSchema,
1912
+ bitcoinSignPsbtSuccessResponseSchema,
1913
+ bitcoinSignPsbtV2SuccessResponseSchema
1914
+ ]);
2093
1915
 
2094
1916
  //#endregion
2095
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/addLiquidity.ts
2096
- const sparkFlashnetAddLiquidityIntentSchema = v.object({
2097
- type: v.literal("addLiquidity"),
2098
- data: v.object({
2099
- userPublicKey: v.string(),
2100
- poolId: v.string(),
2101
- assetAAmount: v.string(),
2102
- assetBAmount: v.string(),
2103
- assetAMinAmountIn: v.string(),
2104
- assetBMinAmountIn: v.string(),
2105
- assetATransferId: v.string(),
2106
- assetBTransferId: v.string(),
2107
- nonce: v.string()
2108
- })
1917
+ //#region src/request/rpc/objects/namespaces/ordinals/methods/getInscriptions/request.ts
1918
+ const ordinalsGetInscriptionsParamsSchema = v.object({
1919
+ offset: v.number(),
1920
+ limit: v.number()
2109
1921
  });
2110
-
2111
- //#endregion
2112
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/clawback.ts
2113
- const sparkFlashnetClawbackIntentSchema = v.object({
2114
- type: v.literal("clawback"),
2115
- data: v.object({
2116
- senderPublicKey: v.string(),
2117
- sparkTransferId: v.string(),
2118
- lpIdentityPublicKey: v.string(),
2119
- nonce: v.string()
2120
- })
1922
+ const ordinalsGetInscriptionsRequestSchema = createRequestSchema({
1923
+ paramsSchema: ordinalsGetInscriptionsParamsSchema,
1924
+ method: ordinalsMethods.ord_getInscriptions
2121
1925
  });
2122
1926
 
2123
1927
  //#endregion
2124
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/confirmInitialDeposit.ts
2125
- const sparkFlashnetConfirmInitialDepositIntentSchema = v.object({
2126
- type: v.literal("confirmInitialDeposit"),
2127
- data: v.object({
2128
- poolId: v.string(),
2129
- assetASparkTransferId: v.string(),
2130
- poolOwnerPublicKey: v.string(),
2131
- nonce: v.string()
2132
- })
1928
+ //#region src/request/rpc/objects/namespaces/ordinals/methods/getInscriptions/response.ts
1929
+ const ordinalsGetInscriptionsResultSchema = v.object({
1930
+ total: v.number(),
1931
+ limit: v.number(),
1932
+ offset: v.number(),
1933
+ inscriptions: v.array(v.object({
1934
+ inscriptionId: v.string(),
1935
+ inscriptionNumber: v.string(),
1936
+ address: v.string(),
1937
+ collectionName: v.optional(v.string()),
1938
+ postage: v.string(),
1939
+ contentLength: v.string(),
1940
+ contentType: v.string(),
1941
+ timestamp: v.number(),
1942
+ offset: v.number(),
1943
+ genesisTransaction: v.string(),
1944
+ output: v.string()
1945
+ }))
1946
+ });
1947
+ const ordinalsGetInscriptionsSuccessResponseSchema = createSuccessResponseSchema({
1948
+ resultSchema: ordinalsGetInscriptionsResultSchema,
1949
+ method: ordinalsMethods.ord_getInscriptions
2133
1950
  });
2134
1951
 
2135
1952
  //#endregion
2136
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/createConstantProductPool.ts
2137
- const sparkFlashnetCreateConstantProductPoolIntentSchema = v.object({
2138
- type: v.literal("createConstantProductPool"),
2139
- data: v.object({
2140
- poolOwnerPublicKey: v.string(),
2141
- assetAAddress: v.string(),
2142
- assetBAddress: v.string(),
2143
- lpFeeRateBps: v.union([v.number(), v.string()]),
2144
- totalHostFeeRateBps: v.union([v.number(), v.string()]),
2145
- nonce: v.string()
2146
- })
1953
+ //#region src/request/rpc/objects/namespaces/ordinals/methods/sendInscriptions/request.ts
1954
+ const ordinalsSendInscriptionsParamsSchema = v.object({ transfers: v.array(v.object({
1955
+ address: v.string(),
1956
+ inscriptionId: v.string()
1957
+ })) });
1958
+ const ordinalsSendInscriptionsRequestSchema = createRequestSchema({
1959
+ paramsSchema: ordinalsSendInscriptionsParamsSchema,
1960
+ method: ordinalsMethods.ord_sendInscriptions
2147
1961
  });
2148
1962
 
2149
1963
  //#endregion
2150
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/createSingleSidedPool.ts
2151
- const sparkFlashnetCreateSingleSidedPoolIntentSchema = v.object({
2152
- type: v.literal("createSingleSidedPool"),
2153
- data: v.object({
2154
- assetAAddress: v.string(),
2155
- assetBAddress: v.string(),
2156
- assetAInitialReserve: v.string(),
2157
- virtualReserveA: v.union([v.number(), v.string()]),
2158
- virtualReserveB: v.union([v.number(), v.string()]),
2159
- threshold: v.union([v.number(), v.string()]),
2160
- lpFeeRateBps: v.union([v.number(), v.string()]),
2161
- totalHostFeeRateBps: v.union([v.number(), v.string()]),
2162
- poolOwnerPublicKey: v.string(),
2163
- nonce: v.string()
2164
- })
1964
+ //#region src/request/rpc/objects/namespaces/ordinals/methods/sendInscriptions/response.ts
1965
+ const ordinalsSendInscriptionsResultSchema = v.object({ txid: v.string() });
1966
+ const ordinalsSendInscriptionsSuccessResponseSchema = createSuccessResponseSchema({
1967
+ resultSchema: ordinalsSendInscriptionsResultSchema,
1968
+ method: ordinalsMethods.ord_sendInscriptions
2165
1969
  });
2166
1970
 
2167
1971
  //#endregion
2168
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/removeLiquidity.ts
2169
- const sparkFlashnetRemoveLiquidityIntentSchema = v.object({
2170
- type: v.literal("removeLiquidity"),
2171
- data: v.object({
2172
- userPublicKey: v.string(),
2173
- poolId: v.string(),
2174
- lpTokensToRemove: v.string(),
2175
- nonce: v.string()
2176
- })
2177
- });
1972
+ //#region src/request/rpc/objects/namespaces/ordinals/index.ts
1973
+ const ordinalsRequestSchema = v.variant("method", [ordinalsGetInscriptionsRequestSchema, ordinalsSendInscriptionsRequestSchema]);
1974
+ const ordinalsSuccessResponseSchema = v.variant("~sats-connect-method", [ordinalsGetInscriptionsSuccessResponseSchema, ordinalsSendInscriptionsSuccessResponseSchema]);
2178
1975
 
2179
1976
  //#endregion
2180
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/routeSwap.ts
2181
- const sparkFlashnetRouteSwapIntentSchema = v.object({
2182
- type: v.literal("executeRouteSwap"),
2183
- data: v.object({
2184
- userPublicKey: v.string(),
2185
- initialSparkTransferId: v.string(),
2186
- hops: v.array(v.object({
2187
- poolId: v.string(),
2188
- inputAssetAddress: v.string(),
2189
- outputAssetAddress: v.string(),
2190
- hopIntegratorFeeRateBps: v.optional(v.union([v.number(), v.string()]))
2191
- })),
2192
- inputAmount: v.string(),
2193
- maxRouteSlippageBps: v.union([v.number(), v.string()]),
2194
- minAmountOut: v.string(),
2195
- defaultIntegratorFeeRateBps: v.optional(v.union([v.number(), v.string()])),
2196
- nonce: v.string()
2197
- })
1977
+ //#region src/request/rpc/objects/namespaces/runes/methods/estimateEtch/request.ts
1978
+ const etchTermsSchema$1 = v.object({
1979
+ amount: v.optional(v.string()),
1980
+ cap: v.optional(v.string()),
1981
+ heightStart: v.optional(v.string()),
1982
+ heightEnd: v.optional(v.string()),
1983
+ offsetStart: v.optional(v.string()),
1984
+ offsetEnd: v.optional(v.string())
1985
+ });
1986
+ const inscriptionDetailsSchema$1 = v.object({
1987
+ contentType: v.string(),
1988
+ contentBase64: v.string()
1989
+ });
1990
+ const runesEstimateEtchParamsSchema = v.object({
1991
+ runeName: v.string(),
1992
+ divisibility: v.optional(v.number()),
1993
+ symbol: v.optional(v.string()),
1994
+ premine: v.optional(v.string()),
1995
+ isMintable: v.boolean(),
1996
+ terms: v.optional(etchTermsSchema$1),
1997
+ inscriptionDetails: v.optional(inscriptionDetailsSchema$1),
1998
+ delegateInscriptionId: v.optional(v.string()),
1999
+ destinationAddress: v.string(),
2000
+ feeRate: v.number(),
2001
+ appServiceFee: v.optional(v.number()),
2002
+ appServiceFeeAddress: v.optional(v.string()),
2003
+ network: v.optional(v.enum(BitcoinNetworkType))
2004
+ });
2005
+ const runesEstimateEtchRequestSchema = createRequestSchema({
2006
+ paramsSchema: runesEstimateEtchParamsSchema,
2007
+ method: runesMethods.runes_estimateEtch
2198
2008
  });
2199
2009
 
2200
2010
  //#endregion
2201
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/swap.ts
2202
- const sparkFlashnetSwapIntentSchema = v.object({
2203
- type: v.literal("executeSwap"),
2204
- data: v.object({
2205
- userPublicKey: v.string(),
2206
- poolId: v.string(),
2207
- transferId: v.string(),
2208
- assetInAddress: v.string(),
2209
- assetOutAddress: v.string(),
2210
- amountIn: v.string(),
2211
- maxSlippageBps: v.union([v.number(), v.string()]),
2212
- minAmountOut: v.string(),
2213
- totalIntegratorFeeRateBps: v.optional(v.union([v.number(), v.string()])),
2214
- nonce: v.string()
2011
+ //#region src/request/rpc/objects/namespaces/runes/methods/estimateEtch/response.ts
2012
+ const runesEstimateEtchResultSchema = v.object({
2013
+ totalSize: v.number(),
2014
+ totalCost: v.number(),
2015
+ costBreakdown: v.object({
2016
+ postage: v.number(),
2017
+ networkFee: v.number(),
2018
+ serviceFee: v.number(),
2019
+ appServiceFee: v.number()
2215
2020
  })
2216
2021
  });
2217
-
2218
- //#endregion
2219
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/request.ts
2220
- const sparkFlashnetSignIntentParamsSchema = v.union([
2221
- sparkFlashnetSwapIntentSchema,
2222
- sparkFlashnetRouteSwapIntentSchema,
2223
- sparkFlashnetAddLiquidityIntentSchema,
2224
- sparkFlashnetClawbackIntentSchema,
2225
- sparkFlashnetConfirmInitialDepositIntentSchema,
2226
- sparkFlashnetCreateConstantProductPoolIntentSchema,
2227
- sparkFlashnetCreateSingleSidedPoolIntentSchema,
2228
- sparkFlashnetRemoveLiquidityIntentSchema
2229
- ]);
2230
- const sparkFlashnetSignIntentRequestSchema = createRequestSchema({
2231
- paramsSchema: sparkFlashnetSignIntentParamsSchema,
2232
- method: sparkMethods.spark_flashnet_signIntent
2022
+ const runesEstimateEtchSuccessResponseSchema = createSuccessResponseSchema({
2023
+ resultSchema: runesEstimateEtchResultSchema,
2024
+ method: runesMethods.runes_estimateEtch
2233
2025
  });
2234
2026
 
2235
2027
  //#endregion
2236
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/response.ts
2237
- const sparkFlashnetSignIntentResultSchema = v.object({ signature: v.string() });
2238
- const sparkFlashnetSignIntentSuccessResponseSchema = createSuccessResponseSchema({
2239
- resultSchema: sparkFlashnetSignIntentResultSchema,
2240
- method: sparkMethods.spark_flashnet_signIntent
2028
+ //#region src/request/rpc/objects/namespaces/runes/methods/estimateMint/request.ts
2029
+ const runesEstimateMintParamsSchema = v.object({
2030
+ runeName: v.string(),
2031
+ repeats: v.number(),
2032
+ destinationAddress: v.string(),
2033
+ feeRate: v.number(),
2034
+ appServiceFee: v.optional(v.number()),
2035
+ appServiceFeeAddress: v.optional(v.string()),
2036
+ network: v.optional(v.enum(BitcoinNetworkType))
2037
+ });
2038
+ const runesEstimateMintRequestSchema = createRequestSchema({
2039
+ paramsSchema: runesEstimateMintParamsSchema,
2040
+ method: runesMethods.runes_estimateMint
2241
2041
  });
2242
2042
 
2243
2043
  //#endregion
2244
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignStructuredMessage/request.ts
2245
- const sparkFlashnetSignStructuredMessageParamsSchema = v.object({ message: v.string() });
2246
- const sparkFlashnetSignStructuredMessageRequestSchema = createRequestSchema({
2247
- paramsSchema: sparkFlashnetSignStructuredMessageParamsSchema,
2248
- method: sparkMethods.spark_flashnet_signStructuredMessage
2044
+ //#region src/request/rpc/objects/namespaces/runes/methods/estimateMint/response.ts
2045
+ const runesEstimateMintResultSchema = v.object({
2046
+ totalSize: v.number(),
2047
+ totalCost: v.number(),
2048
+ costBreakdown: v.object({
2049
+ postage: v.number(),
2050
+ networkFee: v.number(),
2051
+ serviceFee: v.number(),
2052
+ appServiceFee: v.number()
2053
+ })
2054
+ });
2055
+ const runesEstimateMintSuccessResponseSchema = createSuccessResponseSchema({
2056
+ resultSchema: runesEstimateMintResultSchema,
2057
+ method: runesMethods.runes_estimateMint
2249
2058
  });
2250
2059
 
2251
2060
  //#endregion
2252
- //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignStructuredMessage/response.ts
2253
- const sparkFlashnetSignStructuredMessageResultSchema = v.object({
2254
- message: v.string(),
2255
- signature: v.string()
2061
+ //#region src/request/rpc/objects/namespaces/runes/methods/estimateRbfOrder/request.ts
2062
+ const runesEstimateRbfOrderParamsSchema = v.object({
2063
+ orderId: v.string(),
2064
+ newFeeRate: v.number(),
2065
+ network: v.optional(v.enum(BitcoinNetworkType))
2256
2066
  });
2257
- const sparkFlashnetSignStructuredMessageSuccessResponseSchema = createSuccessResponseSchema({
2258
- resultSchema: sparkFlashnetSignStructuredMessageResultSchema,
2259
- method: sparkMethods.spark_flashnet_signStructuredMessage
2067
+ const runesEstimateRbfOrderRequestSchema = createRequestSchema({
2068
+ paramsSchema: runesEstimateRbfOrderParamsSchema,
2069
+ method: runesMethods.runes_estimateRbfOrder
2260
2070
  });
2261
2071
 
2262
2072
  //#endregion
2263
- //#region src/request/rpc/objects/namespaces/spark/methods/getAddresses/request.ts
2264
- const sparkGetAddressesParamsSchema = v.nullish(v.object({ message: v.optional(v.string()) }));
2265
- const sparkGetAddressesRequestSchema = createRequestSchema({
2266
- paramsSchema: sparkGetAddressesParamsSchema,
2267
- method: sparkMethods.spark_getAddresses
2073
+ //#region src/request/rpc/objects/namespaces/runes/methods/estimateRbfOrder/response.ts
2074
+ const runesEstimateRbfOrderResultSchema = v.object({
2075
+ rbfCost: v.number(),
2076
+ fundingAddress: v.string()
2268
2077
  });
2269
-
2270
- //#endregion
2271
- //#region src/request/rpc/objects/namespaces/wallet/methods/addNetwork/request.ts
2272
- const walletAddNetworkParamsSchema = v.variant("chain", [
2273
- v.object({
2274
- chain: v.literal("bitcoin"),
2275
- type: v.enum(BitcoinNetworkType),
2276
- name: v.string(),
2277
- rpcUrl: v.string(),
2278
- rpcFallbackUrl: v.optional(v.string()),
2279
- indexerUrl: v.optional(v.string()),
2280
- blockExplorerUrl: v.optional(v.string()),
2281
- switch: v.optional(v.boolean())
2282
- }),
2283
- v.object({
2284
- chain: v.literal("stacks"),
2285
- name: v.string(),
2286
- type: v.enum(StacksNetworkType),
2287
- rpcUrl: v.string(),
2288
- blockExplorerUrl: v.optional(v.string()),
2289
- switch: v.optional(v.boolean())
2290
- }),
2291
- v.object({
2292
- chain: v.literal("starknet"),
2293
- name: v.string(),
2294
- type: v.enum(StarknetNetworkType),
2295
- rpcUrl: v.string(),
2296
- blockExplorerUrl: v.optional(v.string()),
2297
- switch: v.optional(v.boolean())
2298
- })
2299
- ]);
2300
- const walletAddNetworkRequestSchema = createRequestSchema({
2301
- paramsSchema: walletAddNetworkParamsSchema,
2302
- method: walletMethods.wallet_addNetwork
2078
+ const runesEstimateRbfOrderSuccessResponseSchema = createSuccessResponseSchema({
2079
+ resultSchema: runesEstimateRbfOrderResultSchema,
2080
+ method: runesMethods.runes_estimateRbfOrder
2303
2081
  });
2304
2082
 
2305
2083
  //#endregion
2306
- //#region src/request/rpc/objects/namespaces/wallet/methods/addNetwork/response.ts
2307
- const walletAddNetworkResultSchema = v.object({ id: v.string() });
2308
- const walletAddNetworkSuccessResponseSchema = createSuccessResponseSchema({
2309
- resultSchema: walletAddNetworkResultSchema,
2310
- method: walletMethods.wallet_addNetwork
2084
+ //#region src/request/rpc/objects/namespaces/runes/methods/etch/request.ts
2085
+ const etchTermsSchema = v.object({
2086
+ amount: v.optional(v.string()),
2087
+ cap: v.optional(v.string()),
2088
+ heightStart: v.optional(v.string()),
2089
+ heightEnd: v.optional(v.string()),
2090
+ offsetStart: v.optional(v.string()),
2091
+ offsetEnd: v.optional(v.string())
2311
2092
  });
2312
-
2313
- //#endregion
2314
- //#region src/request/rpc/objects/namespaces/wallet/shared/permissions.ts
2315
- const accountActionsSchema$2 = v.object({ read: v.optional(v.boolean()) });
2316
- const walletActionsSchema$2 = v.object({ readNetwork: v.optional(v.boolean()) });
2317
- const accountPermissionSchema$1 = v.object({
2318
- type: v.literal("account"),
2319
- resourceId: v.string(),
2320
- clientId: v.string(),
2321
- actions: accountActionsSchema$2
2093
+ const inscriptionDetailsSchema = v.object({
2094
+ contentType: v.string(),
2095
+ contentBase64: v.string()
2322
2096
  });
2323
- const walletPermissionSchema$1 = v.object({
2324
- type: v.literal("wallet"),
2325
- resourceId: v.string(),
2326
- clientId: v.string(),
2327
- actions: walletActionsSchema$2
2097
+ const runesEtchParamsSchema = v.object({
2098
+ runeName: v.string(),
2099
+ divisibility: v.optional(v.number()),
2100
+ symbol: v.optional(v.string()),
2101
+ premine: v.optional(v.string()),
2102
+ isMintable: v.boolean(),
2103
+ terms: v.optional(etchTermsSchema),
2104
+ inscriptionDetails: v.optional(inscriptionDetailsSchema),
2105
+ delegateInscriptionId: v.optional(v.string()),
2106
+ destinationAddress: v.string(),
2107
+ refundAddress: v.string(),
2108
+ feeRate: v.number(),
2109
+ appServiceFee: v.optional(v.number()),
2110
+ appServiceFeeAddress: v.optional(v.string()),
2111
+ network: v.optional(v.enum(BitcoinNetworkType))
2112
+ });
2113
+ const runesEtchRequestSchema = createRequestSchema({
2114
+ paramsSchema: runesEtchParamsSchema,
2115
+ method: runesMethods.runes_etch
2328
2116
  });
2329
- const permissionSchema$1 = v.variant("type", [accountPermissionSchema$1, walletPermissionSchema$1]);
2330
- /**
2331
- * Permissions with the clientId field omitted and optional actions. Used for
2332
- * permission requests, since the wallet performs authentication based on the
2333
- * client's tab origin and should not rely on the client authenticating
2334
- * themselves.
2335
- */
2336
- const permissionRequestParamsSchema = v.variant("type", [v.object({ ...v.omit(accountPermissionSchema$1, ["clientId"]).entries }), v.object({ ...v.omit(walletPermissionSchema$1, ["clientId"]).entries })]);
2337
2117
 
2338
2118
  //#endregion
2339
- //#region src/request/rpc/objects/namespaces/wallet/methods/addNetworkV2/request.ts
2340
- const walletAddNetworkV2ParamsSchema = v.object({
2341
- network: networkConfigurationOptionsSchema,
2342
- switch: v.optional(v.boolean(), false)
2119
+ //#region src/request/rpc/objects/namespaces/runes/methods/etch/response.ts
2120
+ const runesEtchResultSchema = v.object({
2121
+ orderId: v.string(),
2122
+ fundTransactionId: v.string(),
2123
+ fundingAddress: v.string()
2343
2124
  });
2344
- const walletAddNetworkV2RequestSchema = createRequestSchema({
2345
- paramsSchema: walletAddNetworkV2ParamsSchema,
2346
- method: walletMethods.wallet_addNetworkV2
2125
+ const runesEtchSuccessResponseSchema = createSuccessResponseSchema({
2126
+ resultSchema: runesEtchResultSchema,
2127
+ method: runesMethods.runes_etch
2347
2128
  });
2348
2129
 
2349
2130
  //#endregion
2350
- //#region src/request/rpc/objects/namespaces/wallet/methods/addNetworkV2/response.ts
2351
- const walletAddNetworkV2ResultSchema = networkConfigurationSchema;
2352
- const walletAddNetworkV2SuccessResponseSchema = createSuccessResponseSchema({
2353
- resultSchema: walletAddNetworkV2ResultSchema,
2354
- method: walletMethods.wallet_addNetworkV2
2131
+ //#region src/request/rpc/objects/namespaces/runes/methods/getBalance/request.ts
2132
+ const runesGetBalanceParamsSchema = v.nullish(v.null());
2133
+ const runesGetBalanceRequestSchema = createRequestSchema({
2134
+ paramsSchema: runesGetBalanceParamsSchema,
2135
+ method: runesMethods.runes_getBalance
2355
2136
  });
2356
2137
 
2357
2138
  //#endregion
2358
- //#region src/request/rpc/objects/namespaces/wallet/methods/changeNetwork/request.ts
2359
- const walletChangeNetworkParamsSchema = v.object({ name: v.enum(BitcoinNetworkType) });
2360
- const walletChangeNetworkRequestSchema = createRequestSchema({
2361
- paramsSchema: walletChangeNetworkParamsSchema,
2362
- method: walletMethods.wallet_changeNetwork
2139
+ //#region src/request/rpc/objects/namespaces/runes/methods/getBalance/response.ts
2140
+ const runesGetBalanceResultSchema = v.object({ balances: v.array(v.object({
2141
+ runeName: v.string(),
2142
+ amount: v.string(),
2143
+ divisibility: v.number(),
2144
+ symbol: v.string(),
2145
+ inscriptionId: v.nullish(v.string()),
2146
+ spendableBalance: v.string()
2147
+ })) });
2148
+ const runesGetBalanceSuccessResponseSchema = createSuccessResponseSchema({
2149
+ resultSchema: runesGetBalanceResultSchema,
2150
+ method: runesMethods.runes_getBalance
2363
2151
  });
2364
2152
 
2365
2153
  //#endregion
2366
- //#region src/request/rpc/objects/namespaces/wallet/methods/changeNetwork/response.ts
2367
- const walletChangeNetworkResultSchema = v.nullish(v.null());
2368
- const walletChangeNetworkSuccessResponseSchema = createSuccessResponseSchema({
2369
- resultSchema: walletChangeNetworkResultSchema,
2370
- method: walletMethods.wallet_changeNetwork
2154
+ //#region src/request/rpc/objects/namespaces/runes/methods/getOrder/request.ts
2155
+ const runesGetOrderParamsSchema = v.object({
2156
+ id: v.string(),
2157
+ network: v.optional(v.enum(BitcoinNetworkType))
2158
+ });
2159
+ const runesGetOrderRequestSchema = createRequestSchema({
2160
+ paramsSchema: runesGetOrderParamsSchema,
2161
+ method: runesMethods.runes_getOrder
2371
2162
  });
2372
2163
 
2373
2164
  //#endregion
2374
- //#region src/request/rpc/objects/namespaces/wallet/methods/changeNetworkById/request.ts
2375
- const walletChangeNetworkByIdParamsSchema = v.object({ id: v.string() });
2376
- const walletChangeNetworkByIdRequestSchema = createRequestSchema({
2377
- paramsSchema: walletChangeNetworkByIdParamsSchema,
2378
- method: walletMethods.wallet_changeNetworkById
2165
+ //#region src/request/rpc/objects/namespaces/runes/methods/getOrder/response.ts
2166
+ const runesGetOrderResultSchema = v.object({
2167
+ id: v.string(),
2168
+ orderType: v.union([v.literal("rune_mint"), v.literal("rune_etch")]),
2169
+ state: v.union([
2170
+ v.literal("new"),
2171
+ v.literal("pending"),
2172
+ v.literal("executing"),
2173
+ v.literal("complete"),
2174
+ v.literal("failed"),
2175
+ v.literal("refunded"),
2176
+ v.literal("stale")
2177
+ ]),
2178
+ fundingAddress: v.string(),
2179
+ reason: v.optional(v.string()),
2180
+ createdAt: v.string()
2181
+ });
2182
+ const runesGetOrderSuccessResponseSchema = createSuccessResponseSchema({
2183
+ resultSchema: runesGetOrderResultSchema,
2184
+ method: runesMethods.runes_getOrder
2379
2185
  });
2380
2186
 
2381
2187
  //#endregion
2382
- //#region src/request/rpc/objects/namespaces/wallet/methods/changeNetworkById/response.ts
2383
- const walletChangeNetworkByIdResultSchema = v.nullish(v.null());
2384
- const walletChangeNetworkByIdSuccessResponseSchema = createSuccessResponseSchema({
2385
- resultSchema: walletChangeNetworkByIdResultSchema,
2386
- method: walletMethods.wallet_changeNetworkById
2188
+ //#region src/request/rpc/objects/namespaces/runes/methods/mint/request.ts
2189
+ const runesMintParamsSchema = v.object({
2190
+ appServiceFee: v.optional(v.number()),
2191
+ appServiceFeeAddress: v.optional(v.string()),
2192
+ destinationAddress: v.string(),
2193
+ feeRate: v.number(),
2194
+ refundAddress: v.string(),
2195
+ repeats: v.number(),
2196
+ runeName: v.string(),
2197
+ network: v.optional(v.enum(BitcoinNetworkType))
2198
+ });
2199
+ const runesMintRequestSchema = createRequestSchema({
2200
+ paramsSchema: runesMintParamsSchema,
2201
+ method: runesMethods.runes_mint
2387
2202
  });
2388
2203
 
2389
2204
  //#endregion
2390
- //#region src/request/rpc/objects/namespaces/wallet/methods/connect/request.ts
2391
- const walletConnectParamsSchema = v.nullish(v.object({
2392
- permissions: v.optional(v.array(permissionRequestParamsSchema)),
2393
- addresses: v.optional(v.array(v.enum(AddressPurpose))),
2394
- message: v.optional(v.pipe(v.string(), v.maxLength(80, "The message must not exceed 80 characters."))),
2395
- network: v.optional(v.picklist([
2396
- "Mainnet",
2397
- "Testnet",
2398
- "Signet"
2399
- ]))
2400
- }));
2401
- const walletConnectRequestSchema = createRequestSchema({
2402
- paramsSchema: walletConnectParamsSchema,
2403
- method: walletMethods.wallet_connect
2205
+ //#region src/request/rpc/objects/namespaces/runes/methods/mint/response.ts
2206
+ const runesMintResultSchema = v.object({
2207
+ orderId: v.string(),
2208
+ fundTransactionId: v.string(),
2209
+ fundingAddress: v.string()
2210
+ });
2211
+ const runesMintSuccessResponseSchema = createSuccessResponseSchema({
2212
+ resultSchema: runesMintResultSchema,
2213
+ method: runesMethods.runes_mint
2404
2214
  });
2405
2215
 
2406
2216
  //#endregion
2407
- //#region src/request/rpc/objects/namespaces/wallet/methods/getNetwork/request.ts
2408
- const walletGetNetworkParamsSchema = v.nullish(v.null());
2409
- const walletGetNetworkRequestSchema = createRequestSchema({
2410
- paramsSchema: walletGetNetworkParamsSchema,
2411
- method: walletMethods.wallet_getNetwork
2217
+ //#region src/request/rpc/objects/namespaces/runes/methods/rbfOrder/request.ts
2218
+ const runesRbfOrderParamsSchema = v.object({
2219
+ orderId: v.string(),
2220
+ newFeeRate: v.number(),
2221
+ network: v.optional(v.enum(BitcoinNetworkType))
2222
+ });
2223
+ const runesRbfOrderRequestSchema = createRequestSchema({
2224
+ paramsSchema: runesRbfOrderParamsSchema,
2225
+ method: runesMethods.runes_rbfOrder
2412
2226
  });
2413
2227
 
2414
2228
  //#endregion
2415
- //#region src/request/rpc/objects/namespaces/wallet/methods/getNetwork/response.ts
2416
- const walletGetNetworkResultSchema = v.object({
2417
- bitcoin: v.object({ name: v.enum(BitcoinNetworkType) }),
2418
- stacks: v.object({ name: v.enum(StacksNetworkType) }),
2419
- spark: v.object({ name: v.enum(SparkNetworkType) })
2229
+ //#region src/request/rpc/objects/namespaces/runes/methods/rbfOrder/response.ts
2230
+ const runesRbfOrderResultSchema = v.object({
2231
+ orderId: v.string(),
2232
+ fundRBFTransactionId: v.string(),
2233
+ fundingAddress: v.string()
2420
2234
  });
2421
- const walletGetNetworkSuccessResponseSchema = createSuccessResponseSchema({
2422
- resultSchema: walletGetNetworkResultSchema,
2423
- method: walletMethods.wallet_getNetwork
2235
+ const runesRbfOrderSuccessResponseSchema = createSuccessResponseSchema({
2236
+ resultSchema: runesRbfOrderResultSchema,
2237
+ method: runesMethods.runes_rbfOrder
2424
2238
  });
2425
2239
 
2426
2240
  //#endregion
2427
- //#region src/request/rpc/objects/namespaces/wallet/methods/connect/response.ts
2428
- const walletConnectResultSchema = v.object({
2429
- id: v.string(),
2430
- addresses: v.array(addressSchema),
2431
- walletType: walletTypeSchema,
2432
- network: walletGetNetworkResultSchema
2241
+ //#region src/request/rpc/objects/namespaces/runes/methods/transfer/request.ts
2242
+ const runesTransferParamsSchema = v.object({
2243
+ recipients: v.array(v.object({
2244
+ runeName: v.string(),
2245
+ amount: v.string(),
2246
+ address: v.string()
2247
+ })),
2248
+ network: v.optional(v.enum(BitcoinNetworkType))
2433
2249
  });
2434
- const walletConnectSuccessResponseSchema = createSuccessResponseSchema({
2435
- resultSchema: walletConnectResultSchema,
2436
- method: walletMethods.wallet_connect
2250
+ const runesTransferRequestSchema = createRequestSchema({
2251
+ paramsSchema: runesTransferParamsSchema,
2252
+ method: runesMethods.runes_transfer
2437
2253
  });
2438
2254
 
2439
2255
  //#endregion
2440
- //#region src/request/rpc/objects/namespaces/wallet/methods/connectV2/request.ts
2441
- const walletConnectV2ParamsSchema = v.nullish(v.object({
2442
- permissions: permissionRequestParamsSchema,
2443
- addresses: v.optional(v.array(v.enum(AddressPurpose))),
2444
- message: v.optional(v.pipe(v.string(), v.maxLength(80, "The message must not exceed 80 characters."))),
2445
- networkId: v.optional(v.string())
2446
- }));
2447
- const walletConnectV2RequestSchema = createRequestSchema({
2448
- paramsSchema: walletConnectV2ParamsSchema,
2449
- method: walletMethods.wallet_connectV2
2256
+ //#region src/request/rpc/objects/namespaces/runes/methods/transfer/response.ts
2257
+ const runesTransferResultSchema = v.object({ txid: v.string() });
2258
+ const runesTransferSuccessResponseSchema = createSuccessResponseSchema({
2259
+ resultSchema: runesTransferResultSchema,
2260
+ method: runesMethods.runes_transfer
2450
2261
  });
2451
2262
 
2452
2263
  //#endregion
2453
- //#region src/request/rpc/objects/namespaces/wallet/methods/getNetworks/request.ts
2454
- const walletGetNetworksParamsSchema = v.nullish(v.null());
2455
- const walletGetNetworksRequestSchema = createRequestSchema({
2456
- paramsSchema: walletGetNetworksParamsSchema,
2457
- method: walletMethods.wallet_getNetworks
2458
- });
2264
+ //#region src/request/rpc/objects/namespaces/runes/index.ts
2265
+ const runesRequestSchema = v.variant("method", [
2266
+ runesEstimateEtchRequestSchema,
2267
+ runesEstimateMintRequestSchema,
2268
+ runesEstimateRbfOrderRequestSchema,
2269
+ runesEtchRequestSchema,
2270
+ runesGetBalanceRequestSchema,
2271
+ runesGetOrderRequestSchema,
2272
+ runesMintRequestSchema,
2273
+ runesRbfOrderRequestSchema,
2274
+ runesTransferRequestSchema
2275
+ ]);
2276
+ const runesSuccessResponseSchema = v.variant("~sats-connect-method", [
2277
+ runesEstimateEtchSuccessResponseSchema,
2278
+ runesEstimateMintSuccessResponseSchema,
2279
+ runesEstimateRbfOrderSuccessResponseSchema,
2280
+ runesEtchSuccessResponseSchema,
2281
+ runesGetBalanceSuccessResponseSchema,
2282
+ runesGetOrderSuccessResponseSchema,
2283
+ runesMintSuccessResponseSchema,
2284
+ runesRbfOrderSuccessResponseSchema,
2285
+ runesTransferSuccessResponseSchema
2286
+ ]);
2459
2287
 
2460
2288
  //#endregion
2461
- //#region src/request/rpc/objects/namespaces/wallet/methods/getNetworks/response.ts
2462
- const walletGetNetworksResultSchema = allResolvedNetworksSchema;
2463
- const walletGetNetworksSuccessResponseSchema = createSuccessResponseSchema({
2464
- resultSchema: walletGetNetworksResultSchema,
2465
- method: walletMethods.wallet_getNetworks
2289
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetClawbackFunds/request.ts
2290
+ const sparkFlashnetClawbackFundsParamsSchema = v.object({
2291
+ sparkTransferId: v.string(),
2292
+ lpIdentityPublicKey: v.string()
2293
+ });
2294
+ const sparkFlashnetClawbackFundsRequestSchema = createRequestSchema({
2295
+ paramsSchema: sparkFlashnetClawbackFundsParamsSchema,
2296
+ method: sparkMethods.spark_flashnet_clawbackFunds
2466
2297
  });
2467
2298
 
2468
2299
  //#endregion
2469
- //#region src/request/rpc/objects/namespaces/wallet/methods/connectV2/response.ts
2470
- const walletConnectV2ResultSchema = v.object({
2471
- accountId: v.string(),
2472
- addresses: v.array(addressSchema),
2473
- walletType: walletTypeSchema,
2474
- networks: walletGetNetworksResultSchema
2300
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetClawbackFunds/response.ts
2301
+ const sparkFlashnetClawbackFundsResultSchema = v.object({
2302
+ requestId: v.string(),
2303
+ accepted: v.boolean(),
2304
+ internalRequestId: v.optional(v.string()),
2305
+ sparkStatusTrackingId: v.optional(v.string()),
2306
+ error: v.optional(v.string())
2475
2307
  });
2476
- const walletConnectV2SuccessResponseSchema = createSuccessResponseSchema({
2477
- resultSchema: walletConnectV2ResultSchema,
2478
- method: walletMethods.wallet_connectV2
2308
+ const sparkFlashnetClawbackFundsSuccessResponseSchema = createSuccessResponseSchema({
2309
+ resultSchema: sparkFlashnetClawbackFundsResultSchema,
2310
+ method: sparkMethods.spark_flashnet_clawbackFunds
2479
2311
  });
2480
2312
 
2481
2313
  //#endregion
2482
- //#region src/request/rpc/objects/namespaces/wallet/methods/disconnect/request.ts
2483
- const walletDisconnectParamsSchema = v.nullish(v.null());
2484
- const walletDisconnectRequestSchema = createRequestSchema({
2485
- paramsSchema: walletDisconnectParamsSchema,
2486
- method: walletMethods.wallet_disconnect
2314
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteRouteSwap/request.ts
2315
+ const sparkFlashnetExecuteRouteSwapParamsSchema = v.object({
2316
+ hops: v.array(v.object({
2317
+ poolId: v.string(),
2318
+ assetInAddress: v.string(),
2319
+ assetOutAddress: v.string(),
2320
+ hopIntegratorFeeRateBps: v.optional(v.number())
2321
+ })),
2322
+ initialAssetAddress: v.string(),
2323
+ inputAmount: v.string(),
2324
+ maxRouteSlippageBps: v.string(),
2325
+ minAmountOut: v.optional(v.string()),
2326
+ integratorFeeRateBps: v.optional(v.number()),
2327
+ integratorPublicKey: v.optional(v.string())
2328
+ });
2329
+ const sparkFlashnetExecuteRouteSwapRequestSchema = createRequestSchema({
2330
+ paramsSchema: sparkFlashnetExecuteRouteSwapParamsSchema,
2331
+ method: sparkMethods.spark_flashnet_executeRouteSwap
2487
2332
  });
2488
2333
 
2489
2334
  //#endregion
2490
- //#region src/request/rpc/objects/namespaces/wallet/methods/disconnect/response.ts
2491
- const walletDisconnectResultSchema = v.nullish(v.null());
2492
- const walletDisconnectSuccessResponseSchema = createSuccessResponseSchema({
2493
- resultSchema: walletDisconnectResultSchema,
2494
- method: walletMethods.wallet_disconnect
2335
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteRouteSwap/response.ts
2336
+ const sparkFlashnetExecuteRouteSwapResultSchema = v.object({
2337
+ requestId: v.string(),
2338
+ accepted: v.boolean(),
2339
+ outputAmount: v.string(),
2340
+ executionPrice: v.string(),
2341
+ finalOutboundTransferId: v.string(),
2342
+ error: v.optional(v.string())
2343
+ });
2344
+ const sparkFlashnetExecuteRouteSwapSuccessResponseSchema = createSuccessResponseSchema({
2345
+ resultSchema: sparkFlashnetExecuteRouteSwapResultSchema,
2346
+ method: sparkMethods.spark_flashnet_executeRouteSwap
2495
2347
  });
2496
2348
 
2497
2349
  //#endregion
2498
- //#region src/request/rpc/objects/namespaces/wallet/methods/getAccount/request.ts
2499
- const walletGetAccountParamsSchema = v.nullish(v.null());
2500
- const walletGetAccountRequestSchema = createRequestSchema({
2501
- paramsSchema: walletGetAccountParamsSchema,
2502
- method: walletMethods.wallet_getAccount
2350
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteSwap/request.ts
2351
+ const sparkFlashnetExecuteSwapParamsSchema = v.object({
2352
+ poolId: v.string(),
2353
+ assetInAddress: v.string(),
2354
+ assetOutAddress: v.string(),
2355
+ amountIn: v.string(),
2356
+ maxSlippageBps: v.number(),
2357
+ minAmountOut: v.optional(v.string()),
2358
+ integratorFeeRateBps: v.optional(v.number()),
2359
+ integratorPublicKey: v.optional(v.string())
2360
+ });
2361
+ const sparkFlashnetExecuteSwapRequestSchema = createRequestSchema({
2362
+ paramsSchema: sparkFlashnetExecuteSwapParamsSchema,
2363
+ method: sparkMethods.spark_flashnet_executeSwap
2503
2364
  });
2504
2365
 
2505
2366
  //#endregion
2506
- //#region src/request/rpc/objects/namespaces/wallet/methods/getAccount/response.ts
2507
- const walletGetAccountResultSchema = v.object({
2508
- id: v.string(),
2509
- addresses: v.array(addressSchema),
2510
- walletType: walletTypeSchema,
2511
- network: walletGetNetworkResultSchema
2367
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetExecuteSwap/response.ts
2368
+ const sparkFlashnetExecuteSwapResultSchema = v.object({
2369
+ requestId: v.string(),
2370
+ accepted: v.boolean(),
2371
+ amountOut: v.optional(v.string()),
2372
+ feeAmount: v.optional(v.string()),
2373
+ executionPrice: v.optional(v.string()),
2374
+ assetOutAddress: v.optional(v.string()),
2375
+ assetInAddress: v.optional(v.string()),
2376
+ outboundTransferId: v.optional(v.string()),
2377
+ error: v.optional(v.string())
2512
2378
  });
2513
- const walletGetAccountSuccessResponseSchema = createSuccessResponseSchema({
2514
- resultSchema: walletGetAccountResultSchema,
2515
- method: walletMethods.wallet_getAccount
2379
+ const sparkFlashnetExecuteSwapSuccessResponseSchema = createSuccessResponseSchema({
2380
+ resultSchema: sparkFlashnetExecuteSwapResultSchema,
2381
+ method: sparkMethods.spark_flashnet_executeSwap
2516
2382
  });
2517
2383
 
2518
2384
  //#endregion
2519
- //#region src/request/rpc/objects/namespaces/wallet/methods/getAccountV2/request.ts
2520
- const walletGetAccountV2ParamsSchema = v.nullish(v.null());
2521
- const walletGetAccountV2RequestSchema = createRequestSchema({
2522
- paramsSchema: walletGetAccountV2ParamsSchema,
2523
- method: walletMethods.wallet_getAccountV2
2385
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetClawbackEligibleTransfers/request.ts
2386
+ const sparkGetClawbackEligibleTransfersParamsSchema = v.nullish(v.null());
2387
+ const sparkGetClawbackEligibleTransfersRequestSchema = createRequestSchema({
2388
+ paramsSchema: sparkGetClawbackEligibleTransfersParamsSchema,
2389
+ method: sparkMethods.spark_flashnet_getClawbackEligibleTransfers
2524
2390
  });
2525
2391
 
2526
2392
  //#endregion
2527
- //#region src/request/rpc/objects/namespaces/wallet/methods/getAccountV2/response.ts
2528
- const walletGetAccountV2ResultSchema = v.object({
2529
- id: v.string(),
2530
- addresses: v.array(addressSchema),
2531
- walletType: walletTypeSchema,
2532
- networks: walletGetNetworksResultSchema
2533
- });
2534
- const walletGetAccountV2SuccessResponseSchema = createSuccessResponseSchema({
2535
- resultSchema: walletGetAccountV2ResultSchema,
2536
- method: walletMethods.wallet_getAccountV2
2393
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetClawbackEligibleTransfers/response.ts
2394
+ const sparkGetClawbackEligibleTransfersResultSchema = v.object({ eligibleTransfers: v.array(v.object({
2395
+ txId: v.string(),
2396
+ createdAt: v.string(),
2397
+ lpIdentityPublicKey: v.string()
2398
+ })) });
2399
+ const sparkGetClawbackEligibleTransfersSuccessResponseSchema = createSuccessResponseSchema({
2400
+ resultSchema: sparkGetClawbackEligibleTransfersResultSchema,
2401
+ method: sparkMethods.spark_flashnet_getClawbackEligibleTransfers
2537
2402
  });
2538
2403
 
2539
2404
  //#endregion
2540
- //#region src/request/rpc/objects/namespaces/wallet/methods/getCurrentPermissions/request.ts
2541
- const walletGetCurrentPermissionsParamsSchema = v.nullish(v.null());
2542
- const walletGetCurrentPermissionsRequestSchema = createRequestSchema({
2543
- paramsSchema: walletGetCurrentPermissionsParamsSchema,
2544
- method: walletMethods.wallet_getCurrentPermissions
2405
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetJwt/request.ts
2406
+ const sparkFlashnetGetJwtParamsSchema = v.null();
2407
+ const sparkFlashnetGetJwtRequestSchema = createRequestSchema({
2408
+ paramsSchema: sparkFlashnetGetJwtParamsSchema,
2409
+ method: sparkMethods.spark_flashnet_getJwt
2545
2410
  });
2546
2411
 
2547
2412
  //#endregion
2548
- //#region src/request/rpc/objects/namespaces/wallet/methods/getCurrentPermissions/response.ts
2549
- const accountActionsSchema$1 = v.object({ read: v.optional(v.boolean()) });
2550
- const walletActionsSchema$1 = v.object({ readNetwork: v.optional(v.boolean()) });
2551
- const accountPermissionSchema = v.object({
2552
- type: v.literal("account"),
2553
- resourceId: v.string(),
2554
- clientId: v.string(),
2555
- actions: accountActionsSchema$1
2556
- });
2557
- const walletPermissionSchema = v.object({
2558
- type: v.literal("wallet"),
2559
- resourceId: v.string(),
2560
- clientId: v.string(),
2561
- actions: walletActionsSchema$1
2413
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetGetJwt/response.ts
2414
+ const sparkFlashnetGetJwtResultSchema = v.object({ jwt: v.string() });
2415
+ const sparkFlashnetGetJwtSuccessResponseSchema = createSuccessResponseSchema({
2416
+ resultSchema: sparkFlashnetGetJwtResultSchema,
2417
+ method: sparkMethods.spark_flashnet_getJwt
2562
2418
  });
2563
- const permissionSchema = v.variant("type", [accountPermissionSchema, walletPermissionSchema]);
2564
- const walletGetCurrentPermissionsResultSchema = v.array(permissionSchema);
2565
- const walletGetCurrentPermissionsSuccessResponseSchema = createSuccessResponseSchema({
2566
- resultSchema: walletGetCurrentPermissionsResultSchema,
2567
- method: walletMethods.wallet_getCurrentPermissions
2419
+
2420
+ //#endregion
2421
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/addLiquidity.ts
2422
+ const sparkFlashnetAddLiquidityIntentSchema = v.object({
2423
+ type: v.literal("addLiquidity"),
2424
+ data: v.object({
2425
+ userPublicKey: v.string(),
2426
+ poolId: v.string(),
2427
+ assetAAmount: v.string(),
2428
+ assetBAmount: v.string(),
2429
+ assetAMinAmountIn: v.string(),
2430
+ assetBMinAmountIn: v.string(),
2431
+ assetATransferId: v.string(),
2432
+ assetBTransferId: v.string(),
2433
+ nonce: v.string()
2434
+ })
2568
2435
  });
2569
2436
 
2570
2437
  //#endregion
2571
- //#region src/request/rpc/objects/namespaces/wallet/methods/getWalletType/request.ts
2572
- const walletGetWalletTypeParamsSchema = v.nullish(v.null());
2573
- const walletGetWalletTypeRequestSchema = createRequestSchema({
2574
- paramsSchema: walletGetWalletTypeParamsSchema,
2575
- method: walletMethods.wallet_getWalletType
2438
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/clawback.ts
2439
+ const sparkFlashnetClawbackIntentSchema = v.object({
2440
+ type: v.literal("clawback"),
2441
+ data: v.object({
2442
+ senderPublicKey: v.string(),
2443
+ sparkTransferId: v.string(),
2444
+ lpIdentityPublicKey: v.string(),
2445
+ nonce: v.string()
2446
+ })
2576
2447
  });
2577
2448
 
2578
2449
  //#endregion
2579
- //#region src/request/rpc/objects/namespaces/wallet/methods/getWalletType/response.ts
2580
- const walletGetWalletTypeResultSchema = walletTypeSchema;
2581
- const walletGetWalletTypeSuccessResponseSchema = createSuccessResponseSchema({
2582
- resultSchema: walletGetWalletTypeResultSchema,
2583
- method: walletMethods.wallet_getWalletType
2450
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/confirmInitialDeposit.ts
2451
+ const sparkFlashnetConfirmInitialDepositIntentSchema = v.object({
2452
+ type: v.literal("confirmInitialDeposit"),
2453
+ data: v.object({
2454
+ poolId: v.string(),
2455
+ assetASparkTransferId: v.string(),
2456
+ poolOwnerPublicKey: v.string(),
2457
+ nonce: v.string()
2458
+ })
2584
2459
  });
2585
2460
 
2586
2461
  //#endregion
2587
- //#region src/request/rpc/objects/namespaces/wallet/methods/openBridge/request.ts
2588
- const walletOpenBridgeParamsSchema = v.object({
2589
- fromAsset: v.string(),
2590
- toAsset: v.string()
2591
- });
2592
- const walletOpenBridgeRequestSchema = createRequestSchema({
2593
- paramsSchema: walletOpenBridgeParamsSchema,
2594
- method: walletMethods.wallet_openBridge
2462
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/createConstantProductPool.ts
2463
+ const sparkFlashnetCreateConstantProductPoolIntentSchema = v.object({
2464
+ type: v.literal("createConstantProductPool"),
2465
+ data: v.object({
2466
+ poolOwnerPublicKey: v.string(),
2467
+ assetAAddress: v.string(),
2468
+ assetBAddress: v.string(),
2469
+ lpFeeRateBps: v.union([v.number(), v.string()]),
2470
+ totalHostFeeRateBps: v.union([v.number(), v.string()]),
2471
+ nonce: v.string()
2472
+ })
2595
2473
  });
2596
2474
 
2597
2475
  //#endregion
2598
- //#region src/request/rpc/objects/namespaces/wallet/methods/openBridge/response.ts
2599
- const walletOpenBridgeResultSchema = v.nullish(v.null());
2600
- const walletOpenBridgeSuccessResponseSchema = createSuccessResponseSchema({
2601
- resultSchema: walletOpenBridgeResultSchema,
2602
- method: walletMethods.wallet_openBridge
2476
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/createSingleSidedPool.ts
2477
+ const sparkFlashnetCreateSingleSidedPoolIntentSchema = v.object({
2478
+ type: v.literal("createSingleSidedPool"),
2479
+ data: v.object({
2480
+ assetAAddress: v.string(),
2481
+ assetBAddress: v.string(),
2482
+ assetAInitialReserve: v.string(),
2483
+ virtualReserveA: v.union([v.number(), v.string()]),
2484
+ virtualReserveB: v.union([v.number(), v.string()]),
2485
+ threshold: v.union([v.number(), v.string()]),
2486
+ lpFeeRateBps: v.union([v.number(), v.string()]),
2487
+ totalHostFeeRateBps: v.union([v.number(), v.string()]),
2488
+ poolOwnerPublicKey: v.string(),
2489
+ nonce: v.string()
2490
+ })
2603
2491
  });
2604
2492
 
2605
2493
  //#endregion
2606
- //#region src/request/rpc/objects/namespaces/wallet/methods/openBuy/request.ts
2607
- const walletOpenBuyParamsSchema = v.object({ asset: v.string() });
2608
- const walletOpenBuyRequestSchema = createRequestSchema({
2609
- paramsSchema: walletOpenBuyParamsSchema,
2610
- method: walletMethods.wallet_openBuy
2494
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/removeLiquidity.ts
2495
+ const sparkFlashnetRemoveLiquidityIntentSchema = v.object({
2496
+ type: v.literal("removeLiquidity"),
2497
+ data: v.object({
2498
+ userPublicKey: v.string(),
2499
+ poolId: v.string(),
2500
+ lpTokensToRemove: v.string(),
2501
+ nonce: v.string()
2502
+ })
2611
2503
  });
2612
2504
 
2613
2505
  //#endregion
2614
- //#region src/request/rpc/objects/namespaces/wallet/methods/openBuy/response.ts
2615
- const walletOpenBuyResultSchema = v.nullish(v.null());
2616
- const walletOpenBuySuccessResponseSchema = createSuccessResponseSchema({
2617
- resultSchema: walletOpenBuyResultSchema,
2618
- method: walletMethods.wallet_openBuy
2506
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/routeSwap.ts
2507
+ const sparkFlashnetRouteSwapIntentSchema = v.object({
2508
+ type: v.literal("executeRouteSwap"),
2509
+ data: v.object({
2510
+ userPublicKey: v.string(),
2511
+ initialSparkTransferId: v.string(),
2512
+ hops: v.array(v.object({
2513
+ poolId: v.string(),
2514
+ inputAssetAddress: v.string(),
2515
+ outputAssetAddress: v.string(),
2516
+ hopIntegratorFeeRateBps: v.optional(v.union([v.number(), v.string()]))
2517
+ })),
2518
+ inputAmount: v.string(),
2519
+ maxRouteSlippageBps: v.union([v.number(), v.string()]),
2520
+ minAmountOut: v.string(),
2521
+ defaultIntegratorFeeRateBps: v.optional(v.union([v.number(), v.string()])),
2522
+ nonce: v.string()
2523
+ })
2619
2524
  });
2620
2525
 
2621
2526
  //#endregion
2622
- //#region src/request/rpc/objects/namespaces/wallet/methods/openReceive/request.ts
2623
- const walletOpenReceiveParamsSchema = v.object({ address: v.string() });
2624
- const walletOpenReceiveRequestSchema = createRequestSchema({
2625
- paramsSchema: walletOpenReceiveParamsSchema,
2626
- method: walletMethods.wallet_openReceive
2527
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/intents/swap.ts
2528
+ const sparkFlashnetSwapIntentSchema = v.object({
2529
+ type: v.literal("executeSwap"),
2530
+ data: v.object({
2531
+ userPublicKey: v.string(),
2532
+ poolId: v.string(),
2533
+ transferId: v.string(),
2534
+ assetInAddress: v.string(),
2535
+ assetOutAddress: v.string(),
2536
+ amountIn: v.string(),
2537
+ maxSlippageBps: v.union([v.number(), v.string()]),
2538
+ minAmountOut: v.string(),
2539
+ totalIntegratorFeeRateBps: v.optional(v.union([v.number(), v.string()])),
2540
+ nonce: v.string()
2541
+ })
2627
2542
  });
2628
2543
 
2629
2544
  //#endregion
2630
- //#region src/request/rpc/objects/namespaces/wallet/methods/openReceive/response.ts
2631
- const walletOpenReceiveResultSchema = addressSchema;
2632
- const walletOpenReceiveSuccessResponseSchema = createSuccessResponseSchema({
2633
- resultSchema: walletOpenReceiveResultSchema,
2634
- method: walletMethods.wallet_openReceive
2545
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/request.ts
2546
+ const sparkFlashnetSignIntentParamsSchema = v.union([
2547
+ sparkFlashnetSwapIntentSchema,
2548
+ sparkFlashnetRouteSwapIntentSchema,
2549
+ sparkFlashnetAddLiquidityIntentSchema,
2550
+ sparkFlashnetClawbackIntentSchema,
2551
+ sparkFlashnetConfirmInitialDepositIntentSchema,
2552
+ sparkFlashnetCreateConstantProductPoolIntentSchema,
2553
+ sparkFlashnetCreateSingleSidedPoolIntentSchema,
2554
+ sparkFlashnetRemoveLiquidityIntentSchema
2555
+ ]);
2556
+ const sparkFlashnetSignIntentRequestSchema = createRequestSchema({
2557
+ paramsSchema: sparkFlashnetSignIntentParamsSchema,
2558
+ method: sparkMethods.spark_flashnet_signIntent
2635
2559
  });
2636
2560
 
2637
2561
  //#endregion
2638
- //#region src/request/rpc/objects/namespaces/wallet/methods/renouncePermissions/request.ts
2639
- const walletRenouncePermissionsParamsSchema = v.nullish(v.null());
2640
- const walletRenouncePermissionsRequestSchema = createRequestSchema({
2641
- paramsSchema: walletRenouncePermissionsParamsSchema,
2642
- method: walletMethods.wallet_renouncePermissions
2562
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignIntent/response.ts
2563
+ const sparkFlashnetSignIntentResultSchema = v.object({ signature: v.string() });
2564
+ const sparkFlashnetSignIntentSuccessResponseSchema = createSuccessResponseSchema({
2565
+ resultSchema: sparkFlashnetSignIntentResultSchema,
2566
+ method: sparkMethods.spark_flashnet_signIntent
2643
2567
  });
2644
2568
 
2645
2569
  //#endregion
2646
- //#region src/request/rpc/objects/namespaces/wallet/methods/renouncePermissions/response.ts
2647
- const walletRenouncePermissionsResultSchema = v.nullish(v.null());
2648
- const walletRenouncePermissionsSuccessResponseSchema = createSuccessResponseSchema({
2649
- resultSchema: walletRenouncePermissionsResultSchema,
2650
- method: walletMethods.wallet_renouncePermissions
2570
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignStructuredMessage/request.ts
2571
+ const sparkFlashnetSignStructuredMessageParamsSchema = v.object({ message: v.string() });
2572
+ const sparkFlashnetSignStructuredMessageRequestSchema = createRequestSchema({
2573
+ paramsSchema: sparkFlashnetSignStructuredMessageParamsSchema,
2574
+ method: sparkMethods.spark_flashnet_signStructuredMessage
2651
2575
  });
2652
2576
 
2653
2577
  //#endregion
2654
- //#region src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/request.ts
2655
- const accountActionsSchema = v.object({ read: v.optional(v.boolean()) });
2656
- const walletActionsSchema = v.object({ readNetwork: v.optional(v.boolean()) });
2657
- const accountPermissionRequestSchema = v.object({
2658
- type: v.literal("account"),
2659
- resourceId: v.string(),
2660
- actions: accountActionsSchema
2661
- });
2662
- const walletPermissionRequestSchema = v.object({
2663
- type: v.literal("wallet"),
2664
- resourceId: v.string(),
2665
- actions: walletActionsSchema
2578
+ //#region src/request/rpc/objects/namespaces/spark/methods/flashnetSignStructuredMessage/response.ts
2579
+ const sparkFlashnetSignStructuredMessageResultSchema = v.object({
2580
+ message: v.string(),
2581
+ signature: v.string()
2666
2582
  });
2667
- const permissionRequestParamsSchema$1 = v.variant("type", [accountPermissionRequestSchema, walletPermissionRequestSchema]);
2668
- const walletRequestPermissionsParamsSchema = v.nullish(v.array(permissionRequestParamsSchema$1));
2669
- const walletRequestPermissionsRequestSchema = createRequestSchema({
2670
- paramsSchema: walletRequestPermissionsParamsSchema,
2671
- method: walletMethods.wallet_requestPermissions
2583
+ const sparkFlashnetSignStructuredMessageSuccessResponseSchema = createSuccessResponseSchema({
2584
+ resultSchema: sparkFlashnetSignStructuredMessageResultSchema,
2585
+ method: sparkMethods.spark_flashnet_signStructuredMessage
2672
2586
  });
2673
2587
 
2674
2588
  //#endregion
2675
- //#region src/request/rpc/objects/namespaces/wallet/methods/requestPermissions/response.ts
2676
- const walletRequestPermissionsResultSchema = v.literal(true);
2677
- const walletRequestPermissionsSuccessResponseSchema = createSuccessResponseSchema({
2678
- resultSchema: walletRequestPermissionsResultSchema,
2679
- method: walletMethods.wallet_requestPermissions
2589
+ //#region src/request/rpc/objects/namespaces/spark/methods/getAddresses/request.ts
2590
+ const sparkGetAddressesParamsSchema = v.nullish(v.object({ message: v.optional(v.string()) }));
2591
+ const sparkGetAddressesRequestSchema = createRequestSchema({
2592
+ paramsSchema: sparkGetAddressesParamsSchema,
2593
+ method: sparkMethods.spark_getAddresses
2680
2594
  });
2681
2595
 
2682
- //#endregion
2683
- //#region src/request/rpc/objects/namespaces/wallet/index.ts
2684
- const walletRequestSchema = v.variant("method", [
2685
- walletAddNetworkRequestSchema,
2686
- walletAddNetworkV2RequestSchema,
2687
- walletChangeNetworkByIdRequestSchema,
2688
- walletChangeNetworkRequestSchema,
2689
- walletConnectRequestSchema,
2690
- walletConnectV2RequestSchema,
2691
- walletDisconnectRequestSchema,
2692
- walletGetAccountRequestSchema,
2693
- walletGetAccountV2RequestSchema,
2694
- walletGetCurrentPermissionsRequestSchema,
2695
- walletGetNetworkRequestSchema,
2696
- walletGetNetworksRequestSchema,
2697
- walletGetWalletTypeRequestSchema,
2698
- walletOpenBridgeRequestSchema,
2699
- walletOpenBuyRequestSchema,
2700
- walletOpenReceiveRequestSchema,
2701
- walletRenouncePermissionsRequestSchema,
2702
- walletRequestPermissionsRequestSchema
2703
- ]);
2704
- const walletSuccessResponseSchema = v.variant("~sats-connect-method", [
2705
- walletAddNetworkSuccessResponseSchema,
2706
- walletAddNetworkV2SuccessResponseSchema,
2707
- walletChangeNetworkByIdSuccessResponseSchema,
2708
- walletChangeNetworkSuccessResponseSchema,
2709
- walletConnectSuccessResponseSchema,
2710
- walletConnectV2SuccessResponseSchema,
2711
- walletDisconnectSuccessResponseSchema,
2712
- walletGetAccountSuccessResponseSchema,
2713
- walletGetAccountV2SuccessResponseSchema,
2714
- walletGetCurrentPermissionsSuccessResponseSchema,
2715
- walletGetNetworkSuccessResponseSchema,
2716
- walletGetNetworksSuccessResponseSchema,
2717
- walletGetWalletTypeSuccessResponseSchema,
2718
- walletOpenBridgeSuccessResponseSchema,
2719
- walletOpenBuySuccessResponseSchema,
2720
- walletOpenReceiveSuccessResponseSchema,
2721
- walletRenouncePermissionsSuccessResponseSchema,
2722
- walletRequestPermissionsSuccessResponseSchema
2723
- ]);
2724
-
2725
2596
  //#endregion
2726
2597
  //#region src/request/rpc/objects/namespaces/spark/methods/getAddresses/response.ts
2727
2598
  const sparkGetAddressesResultSchema = v.object({
@@ -2962,33 +2833,6 @@ const stacksGetAddressesSuccessResponseSchema = createSuccessResponseSchema({
2962
2833
  method: stacksMethods.stx_getAddresses
2963
2834
  });
2964
2835
 
2965
- //#endregion
2966
- //#region src/request/rpc/objects/namespaces/stacks/methods/getAddressesV2/request.ts
2967
- const stacksGetAddressesV2ParamsSchema = v.nullish(v.object({ message: v.optional(v.string()) }));
2968
- const stacksGetAddressesV2RequestSchema = createRequestSchema({
2969
- paramsSchema: stacksGetAddressesV2ParamsSchema,
2970
- method: stacksMethods.stacks_getAddressesV2
2971
- });
2972
-
2973
- //#endregion
2974
- //#region src/request/rpc/objects/namespaces/stacks/methods/getAddressesV2/response.ts
2975
- const stacksGetAddressesV2ResultSchema = v.object({
2976
- addresses: v.array(addressSchema),
2977
- network: v.object({
2978
- type: v.union([
2979
- v.literal("Mainnet"),
2980
- v.literal("Testnet"),
2981
- v.literal("Devnet"),
2982
- v.literal("Signet")
2983
- ]),
2984
- chain: v.union([v.literal("bitcoin"), v.literal("stacks")])
2985
- })
2986
- });
2987
- const stacksGetAddressesV2SuccessResponseSchema = createSuccessResponseSchema({
2988
- resultSchema: stacksGetAddressesV2ResultSchema,
2989
- method: stacksMethods.stacks_getAddressesV2
2990
- });
2991
-
2992
2836
  //#endregion
2993
2837
  //#region src/request/rpc/objects/namespaces/stacks/methods/signMessage/request.ts
2994
2838
  const stacksSignMessageParamsSchema = v.object({ message: v.string() });
@@ -3057,7 +2901,7 @@ const stacksSignTransactionsParamsSchema = v.object({
3057
2901
  transactions: v.pipe(v.array(v.pipe(v.string(), v.check(() => {
3058
2902
  return true;
3059
2903
  }, "Invalid hex-encoded Stacks transaction."))), v.minLength(1)),
3060
- broadcast: v.optional(v.boolean())
2904
+ broadcast: v.optional(v.boolean(), true)
3061
2905
  });
3062
2906
  const stacksSignTransactionsRequestSchema = createRequestSchema({
3063
2907
  paramsSchema: stacksSignTransactionsParamsSchema,
@@ -3106,7 +2950,6 @@ const stacksRequestSchema = v.variant("method", [
3106
2950
  stacksDeployContractRequestSchema,
3107
2951
  stacksGetAccountsRequestSchema,
3108
2952
  stacksGetAddressesRequestSchema,
3109
- stacksGetAddressesV2RequestSchema,
3110
2953
  stacksSignMessageRequestSchema,
3111
2954
  stacksSignStructuredMessageRequestSchema,
3112
2955
  stacksSignTransactionRequestSchema,
@@ -3118,7 +2961,6 @@ const stacksSuccessResponseSchema = v.variant("~sats-connect-method", [
3118
2961
  stacksDeployContractSuccessResponseSchema,
3119
2962
  stacksGetAccountsSuccessResponseSchema,
3120
2963
  stacksGetAddressesSuccessResponseSchema,
3121
- stacksGetAddressesV2SuccessResponseSchema,
3122
2964
  stacksSignMessageSuccessResponseSchema,
3123
2965
  stacksSignStructuredMessageSuccessResponseSchema,
3124
2966
  stacksSignTransactionSuccessResponseSchema,
@@ -3472,4 +3314,4 @@ const signTransaction = async (options) => {
3472
3314
  };
3473
3315
 
3474
3316
  //#endregion
3475
- export { AddressPurpose, AddressType, BaseAdapter, BitcoinNetworkType, DefaultAdaptersInfo, MessageSigningProtocols, ProviderPlatform, RpcErrorCode, SatsConnectAdapter, SparkNetworkType, StacksNetworkType, StarknetNetworkType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, allResolvedNetworksSchema, bitcoinGetAccountsParamsSchema, bitcoinGetAccountsRequestSchema, bitcoinGetAccountsResultSchema, bitcoinGetAccountsSuccessResponseSchema, bitcoinGetAccountsV2ParamsSchema, bitcoinGetAccountsV2RequestSchema, bitcoinGetAccountsV2ResultSchema, bitcoinGetAccountsV2SuccessResponseSchema, bitcoinGetAddressesParamsSchema, bitcoinGetAddressesRequestSchema, bitcoinGetAddressesResultSchema, bitcoinGetAddressesSuccessResponseSchema, bitcoinGetAddressesV2ParamsSchema, bitcoinGetAddressesV2RequestSchema, bitcoinGetAddressesV2ResultSchema, bitcoinGetAddressesV2SuccessResponseSchema, bitcoinGetBalanceParamsSchema, bitcoinGetBalanceRequestSchema, bitcoinGetBalanceResultSchema, bitcoinGetBalanceSuccessResponseSchema, bitcoinGetBalanceV2ParamsSchema, bitcoinGetBalanceV2RequestSchema, bitcoinGetBalanceV2ResultSchema, bitcoinGetBalanceV2SuccessResponseSchema, bitcoinGetInfoParamsSchema, bitcoinGetInfoRequestSchema, bitcoinGetInfoResultSchema, bitcoinGetInfoSuccessResponseSchema, bitcoinGetInfoV2ParamsSchema, bitcoinGetInfoV2RequestSchema, bitcoinGetInfoV2ResultSchema, bitcoinGetInfoV2SuccessResponseSchema, bitcoinMethods, bitcoinModeToLegacyBitcoinNetworkType, bitcoinNetworkConfigurationOptionsSchema, bitcoinRequestSchema, bitcoinSendTransferParamsSchema, bitcoinSendTransferRequestSchema, bitcoinSendTransferResultSchema, bitcoinSendTransferSuccessResponseSchema, bitcoinSendTransferV2ParamsSchema, bitcoinSendTransferV2RequestSchema, bitcoinSendTransferV2ResultSchema, bitcoinSendTransferV2SuccessResponseSchema, bitcoinSignMessageParamsSchema, bitcoinSignMessageRequestSchema, bitcoinSignMessageResultSchema, bitcoinSignMessageSuccessResponseSchema, bitcoinSignMessageV2ParamsSchema, bitcoinSignMessageV2RequestSchema, bitcoinSignMessageV2ResultSchema, bitcoinSignMessageV2SuccessResponseSchema, bitcoinSignMultipleMessagesParamsSchema, bitcoinSignMultipleMessagesRequestSchema, bitcoinSignMultipleMessagesResultSchema, bitcoinSignMultipleMessagesSuccessResponseSchema, bitcoinSignMultipleMessagesV2ParamsSchema, bitcoinSignMultipleMessagesV2RequestSchema, bitcoinSignMultipleMessagesV2ResultSchema, bitcoinSignMultipleMessagesV2SuccessResponseSchema, bitcoinSignPsbtParamsSchema, bitcoinSignPsbtRequestSchema, bitcoinSignPsbtResultSchema, bitcoinSignPsbtSuccessResponseSchema, bitcoinSignPsbtV2ParamsSchema, bitcoinSignPsbtV2RequestSchema, bitcoinSignPsbtV2ResultSchema, bitcoinSignPsbtV2SuccessResponseSchema, bitcoinSuccessResponseSchema, createInscription, createRepeatInscriptions, createRpcRequest, createRpcSuccessResponse, defaultAdapters, disconnectEventName, disconnectSchema, getAddress, getCapabilities, getDefaultProvider, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, isProviderInstalled, methodSupport, methods, networkChangeEventName, networkChangeEventNameV2, networkChangeSchema, networkChangeV2Schema, networkConfigurationOptionsSchema, ordinalsGetInscriptionsParamsSchema, ordinalsGetInscriptionsRequestSchema, ordinalsGetInscriptionsResultSchema, ordinalsGetInscriptionsSuccessResponseSchema, ordinalsMethods, ordinalsRequestSchema, ordinalsSendInscriptionsParamsSchema, ordinalsSendInscriptionsRequestSchema, ordinalsSendInscriptionsResultSchema, ordinalsSendInscriptionsSuccessResponseSchema, ordinalsSuccessResponseSchema, permissionRequestParamsSchema, removeDefaultProvider, request, rpcIdSchema, rpcRequestSchema, rpcSuccessResponseSchema, runesEstimateEtchParamsSchema, runesEstimateEtchRequestSchema, runesEstimateEtchResultSchema, runesEstimateEtchSuccessResponseSchema, runesEstimateMintParamsSchema, runesEstimateMintRequestSchema, runesEstimateMintResultSchema, runesEstimateMintSuccessResponseSchema, runesEstimateRbfOrderParamsSchema, runesEstimateRbfOrderRequestSchema, runesEstimateRbfOrderResultSchema, runesEstimateRbfOrderSuccessResponseSchema, runesEtchParamsSchema, runesEtchRequestSchema, runesEtchResultSchema, runesEtchSuccessResponseSchema, runesGetBalanceParamsSchema, runesGetBalanceRequestSchema, runesGetBalanceResultSchema, runesGetBalanceSuccessResponseSchema, runesGetOrderParamsSchema, runesGetOrderRequestSchema, runesGetOrderResultSchema, runesGetOrderSuccessResponseSchema, runesMethods, runesMintParamsSchema, runesMintRequestSchema, runesMintResultSchema, runesMintSuccessResponseSchema, runesRbfOrderParamsSchema, runesRbfOrderRequestSchema, runesRbfOrderResultSchema, runesRbfOrderSuccessResponseSchema, runesRequestSchema, runesSuccessResponseSchema, runesTransferParamsSchema, runesTransferRequestSchema, runesTransferResultSchema, runesTransferSuccessResponseSchema, sendBtcTransaction, setDefaultProvider, signMessage, signMultipleTransactions, signTransaction, sparkFlashnetClawbackFundsParamsSchema, sparkFlashnetClawbackFundsRequestSchema, sparkFlashnetClawbackFundsResultSchema, sparkFlashnetClawbackFundsSuccessResponseSchema, sparkFlashnetExecuteRouteSwapParamsSchema, sparkFlashnetExecuteRouteSwapRequestSchema, sparkFlashnetExecuteRouteSwapResultSchema, sparkFlashnetExecuteRouteSwapSuccessResponseSchema, sparkFlashnetExecuteSwapParamsSchema, sparkFlashnetExecuteSwapRequestSchema, sparkFlashnetExecuteSwapResultSchema, sparkFlashnetExecuteSwapSuccessResponseSchema, sparkFlashnetGetJwtParamsSchema, sparkFlashnetGetJwtRequestSchema, sparkFlashnetGetJwtResultSchema, sparkFlashnetGetJwtSuccessResponseSchema, sparkFlashnetSignIntentParamsSchema, sparkFlashnetSignIntentRequestSchema, sparkFlashnetSignIntentResultSchema, sparkFlashnetSignIntentSuccessResponseSchema, sparkFlashnetSignStructuredMessageParamsSchema, sparkFlashnetSignStructuredMessageRequestSchema, sparkFlashnetSignStructuredMessageResultSchema, sparkFlashnetSignStructuredMessageSuccessResponseSchema, sparkGetAddressesParamsSchema, sparkGetAddressesRequestSchema, sparkGetAddressesResultSchema, sparkGetAddressesSuccessResponseSchema, sparkGetAddressesV2ParamsSchema, sparkGetAddressesV2RequestSchema, sparkGetAddressesV2ResultSchema, sparkGetAddressesV2SuccessResponseSchema, sparkGetBalanceParamsSchema, sparkGetBalanceRequestSchema, sparkGetBalanceResultSchema, sparkGetBalanceSuccessResponseSchema, sparkGetClawbackEligibleTransfersParamsSchema, sparkGetClawbackEligibleTransfersRequestSchema, sparkGetClawbackEligibleTransfersResultSchema, sparkGetClawbackEligibleTransfersSuccessResponseSchema, sparkMethods, sparkModeToLegacySparkNetworkType, sparkNetworkConfigurationOptionsSchema, sparkRequestSchema, sparkSignMessageParamsSchema, sparkSignMessageRequestSchema, sparkSignMessageResultSchema, sparkSignMessageSuccessResponseSchema, sparkSuccessResponseSchema, sparkTransferParamsSchema, sparkTransferRequestSchema, sparkTransferResultSchema, sparkTransferSuccessResponseSchema, sparkTransferTokenParamsSchema, sparkTransferTokenRequestSchema, sparkTransferTokenResultSchema, sparkTransferTokenSuccessResponseSchema, specErrorObjectSchema, specErrorResponseSchema, specIdSchema, specRequestSchema, specResponseSchema, specSuccessResponseSchema, specSuccessWithExtensionsResponseSchema, stacksCallContractParamsSchema, stacksCallContractRequestSchema, stacksCallContractResultSchema, stacksCallContractSuccessResponseSchema, stacksDeployContractParamsSchema, stacksDeployContractRequestSchema, stacksDeployContractResultSchema, stacksDeployContractSuccessResponseSchema, stacksGetAccountsParamsSchema, stacksGetAccountsRequestSchema, stacksGetAccountsResultSchema, stacksGetAccountsSuccessResponseSchema, stacksGetAddressesParamsSchema, stacksGetAddressesRequestSchema, stacksGetAddressesResultSchema, stacksGetAddressesSuccessResponseSchema, stacksGetAddressesV2ParamsSchema, stacksGetAddressesV2RequestSchema, stacksGetAddressesV2ResultSchema, stacksGetAddressesV2SuccessResponseSchema, stacksMethods, stacksModeToLegacyStacksNetworkType, stacksNetworkConfigurationOptionsSchema, stacksRequestSchema, stacksSignMessageParamsSchema, stacksSignMessageRequestSchema, stacksSignMessageResultSchema, stacksSignMessageSuccessResponseSchema, stacksSignStructuredMessageParamsSchema, stacksSignStructuredMessageRequestSchema, stacksSignStructuredMessageResultSchema, stacksSignStructuredMessageSuccessResponseSchema, stacksSignTransactionParamsSchema, stacksSignTransactionRequestSchema, stacksSignTransactionResultSchema, stacksSignTransactionSuccessResponseSchema, stacksSignTransactionsParamsSchema, stacksSignTransactionsRequestSchema, stacksSignTransactionsResultSchema, stacksSignTransactionsSuccessResponseSchema, stacksSuccessResponseSchema, stacksTransferStxParamsSchema, stacksTransferStxRequestSchema, stacksTransferStxResultSchema, stacksTransferStxSuccessResponseSchema, starknetNetworkConfigurationOptionsSchema, walletAddNetworkParamsSchema, walletAddNetworkRequestSchema, walletAddNetworkResultSchema, walletAddNetworkSuccessResponseSchema, walletAddNetworkV2ParamsSchema, walletAddNetworkV2RequestSchema, walletAddNetworkV2ResultSchema, walletAddNetworkV2SuccessResponseSchema, walletChangeNetworkByIdParamsSchema, walletChangeNetworkByIdRequestSchema, walletChangeNetworkByIdResultSchema, walletChangeNetworkByIdSuccessResponseSchema, walletChangeNetworkParamsSchema, walletChangeNetworkRequestSchema, walletChangeNetworkResultSchema, walletChangeNetworkSuccessResponseSchema, walletConnectParamsSchema, walletConnectRequestSchema, walletConnectResultSchema, walletConnectSuccessResponseSchema, walletConnectV2ParamsSchema, walletConnectV2RequestSchema, walletConnectV2ResultSchema, walletConnectV2SuccessResponseSchema, walletDisconnectParamsSchema, walletDisconnectRequestSchema, walletDisconnectResultSchema, walletDisconnectSuccessResponseSchema, walletEventSchema, walletGetAccountParamsSchema, walletGetAccountRequestSchema, walletGetAccountResultSchema, walletGetAccountSuccessResponseSchema, walletGetAccountV2ParamsSchema, walletGetAccountV2RequestSchema, walletGetAccountV2ResultSchema, walletGetAccountV2SuccessResponseSchema, walletGetCurrentPermissionsParamsSchema, walletGetCurrentPermissionsRequestSchema, walletGetCurrentPermissionsResultSchema, walletGetCurrentPermissionsSuccessResponseSchema, walletGetNetworkParamsSchema, walletGetNetworkRequestSchema, walletGetNetworkResultSchema, walletGetNetworkSuccessResponseSchema, walletGetNetworksParamsSchema, walletGetNetworksRequestSchema, walletGetNetworksResultSchema, walletGetNetworksSuccessResponseSchema, walletGetWalletTypeParamsSchema, walletGetWalletTypeRequestSchema, walletGetWalletTypeResultSchema, walletGetWalletTypeSuccessResponseSchema, walletMethods, walletOpenBridgeParamsSchema, walletOpenBridgeRequestSchema, walletOpenBridgeResultSchema, walletOpenBridgeSuccessResponseSchema, walletOpenBuyParamsSchema, walletOpenBuyRequestSchema, walletOpenBuyResultSchema, walletOpenBuySuccessResponseSchema, walletOpenReceiveParamsSchema, walletOpenReceiveRequestSchema, walletOpenReceiveResultSchema, walletOpenReceiveSuccessResponseSchema, walletRenouncePermissionsParamsSchema, walletRenouncePermissionsRequestSchema, walletRenouncePermissionsResultSchema, walletRenouncePermissionsSuccessResponseSchema, walletRequestPermissionsParamsSchema, walletRequestPermissionsRequestSchema, walletRequestPermissionsResultSchema, walletRequestPermissionsSuccessResponseSchema, walletRequestSchema, walletSuccessResponseSchema, walletTypeSchema, walletTypes };
3317
+ export { AddressPurpose, AddressType, BaseAdapter, BitcoinNetworkType, DefaultAdaptersInfo, MessageSigningProtocols, ProviderPlatform, RpcErrorCode, SatsConnectAdapter, SparkNetworkType, StacksNetworkType, StarknetNetworkType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, allResolvedNetworksSchema, bitcoinGetAccountsParamsSchema, bitcoinGetAccountsRequestSchema, bitcoinGetAccountsResultSchema, bitcoinGetAccountsSuccessResponseSchema, bitcoinGetAddressesParamsSchema, bitcoinGetAddressesRequestSchema, bitcoinGetAddressesResultSchema, bitcoinGetAddressesSuccessResponseSchema, bitcoinGetAddressesV2ParamsSchema, bitcoinGetAddressesV2RequestSchema, bitcoinGetAddressesV2ResultSchema, bitcoinGetAddressesV2SuccessResponseSchema, bitcoinGetBalanceParamsSchema, bitcoinGetBalanceRequestSchema, bitcoinGetBalanceResultSchema, bitcoinGetBalanceSuccessResponseSchema, bitcoinGetBalanceV2ParamsSchema, bitcoinGetBalanceV2RequestSchema, bitcoinGetBalanceV2ResultSchema, bitcoinGetBalanceV2SuccessResponseSchema, bitcoinGetInfoParamsSchema, bitcoinGetInfoRequestSchema, bitcoinGetInfoResultSchema, bitcoinGetInfoSuccessResponseSchema, bitcoinMethods, bitcoinModeToLegacyBitcoinNetworkType, bitcoinNetworkConfigurationOptionsSchema, bitcoinRequestSchema, bitcoinSendTransferParamsSchema, bitcoinSendTransferRequestSchema, bitcoinSendTransferResultSchema, bitcoinSendTransferSuccessResponseSchema, bitcoinSendTransferV2ParamsSchema, bitcoinSendTransferV2RequestSchema, bitcoinSendTransferV2ResultSchema, bitcoinSendTransferV2SuccessResponseSchema, bitcoinSignMessageParamsSchema, bitcoinSignMessageRequestSchema, bitcoinSignMessageResultSchema, bitcoinSignMessageSuccessResponseSchema, bitcoinSignMessageV2ParamsSchema, bitcoinSignMessageV2RequestSchema, bitcoinSignMessageV2ResultSchema, bitcoinSignMessageV2SuccessResponseSchema, bitcoinSignMultipleMessagesParamsSchema, bitcoinSignMultipleMessagesRequestSchema, bitcoinSignMultipleMessagesResultSchema, bitcoinSignMultipleMessagesSuccessResponseSchema, bitcoinSignMultipleMessagesV2ParamsSchema, bitcoinSignMultipleMessagesV2RequestSchema, bitcoinSignMultipleMessagesV2ResultSchema, bitcoinSignMultipleMessagesV2SuccessResponseSchema, bitcoinSignPsbtParamsSchema, bitcoinSignPsbtRequestSchema, bitcoinSignPsbtResultSchema, bitcoinSignPsbtSuccessResponseSchema, bitcoinSignPsbtV2ParamsSchema, bitcoinSignPsbtV2RequestSchema, bitcoinSignPsbtV2ResultSchema, bitcoinSignPsbtV2SuccessResponseSchema, bitcoinSuccessResponseSchema, createInscription, createRepeatInscriptions, createRpcRequest, createRpcSuccessResponse, defaultAdapters, disconnectEventName, disconnectSchema, getAddress, getCapabilities, getDefaultProvider, getProviderById, getProviderOrThrow, getProviders, getSupportedWallets, isProviderInstalled, methodSupport, methods, networkChangeEventName, networkChangeEventNameV2, networkChangeSchema, networkChangeV2Schema, networkConfigurationOptionsSchema, ordinalsGetInscriptionsParamsSchema, ordinalsGetInscriptionsRequestSchema, ordinalsGetInscriptionsResultSchema, ordinalsGetInscriptionsSuccessResponseSchema, ordinalsMethods, ordinalsRequestSchema, ordinalsSendInscriptionsParamsSchema, ordinalsSendInscriptionsRequestSchema, ordinalsSendInscriptionsResultSchema, ordinalsSendInscriptionsSuccessResponseSchema, ordinalsSuccessResponseSchema, permissionRequestParamsSchema, removeDefaultProvider, request, rpcIdSchema, rpcRequestSchema, rpcSuccessResponseSchema, runesEstimateEtchParamsSchema, runesEstimateEtchRequestSchema, runesEstimateEtchResultSchema, runesEstimateEtchSuccessResponseSchema, runesEstimateMintParamsSchema, runesEstimateMintRequestSchema, runesEstimateMintResultSchema, runesEstimateMintSuccessResponseSchema, runesEstimateRbfOrderParamsSchema, runesEstimateRbfOrderRequestSchema, runesEstimateRbfOrderResultSchema, runesEstimateRbfOrderSuccessResponseSchema, runesEtchParamsSchema, runesEtchRequestSchema, runesEtchResultSchema, runesEtchSuccessResponseSchema, runesGetBalanceParamsSchema, runesGetBalanceRequestSchema, runesGetBalanceResultSchema, runesGetBalanceSuccessResponseSchema, runesGetOrderParamsSchema, runesGetOrderRequestSchema, runesGetOrderResultSchema, runesGetOrderSuccessResponseSchema, runesMethods, runesMintParamsSchema, runesMintRequestSchema, runesMintResultSchema, runesMintSuccessResponseSchema, runesRbfOrderParamsSchema, runesRbfOrderRequestSchema, runesRbfOrderResultSchema, runesRbfOrderSuccessResponseSchema, runesRequestSchema, runesSuccessResponseSchema, runesTransferParamsSchema, runesTransferRequestSchema, runesTransferResultSchema, runesTransferSuccessResponseSchema, sendBtcTransaction, setDefaultProvider, signMessage, signMultipleTransactions, signTransaction, sparkFlashnetClawbackFundsParamsSchema, sparkFlashnetClawbackFundsRequestSchema, sparkFlashnetClawbackFundsResultSchema, sparkFlashnetClawbackFundsSuccessResponseSchema, sparkFlashnetExecuteRouteSwapParamsSchema, sparkFlashnetExecuteRouteSwapRequestSchema, sparkFlashnetExecuteRouteSwapResultSchema, sparkFlashnetExecuteRouteSwapSuccessResponseSchema, sparkFlashnetExecuteSwapParamsSchema, sparkFlashnetExecuteSwapRequestSchema, sparkFlashnetExecuteSwapResultSchema, sparkFlashnetExecuteSwapSuccessResponseSchema, sparkFlashnetGetJwtParamsSchema, sparkFlashnetGetJwtRequestSchema, sparkFlashnetGetJwtResultSchema, sparkFlashnetGetJwtSuccessResponseSchema, sparkFlashnetSignIntentParamsSchema, sparkFlashnetSignIntentRequestSchema, sparkFlashnetSignIntentResultSchema, sparkFlashnetSignIntentSuccessResponseSchema, sparkFlashnetSignStructuredMessageParamsSchema, sparkFlashnetSignStructuredMessageRequestSchema, sparkFlashnetSignStructuredMessageResultSchema, sparkFlashnetSignStructuredMessageSuccessResponseSchema, sparkGetAddressesParamsSchema, sparkGetAddressesRequestSchema, sparkGetAddressesResultSchema, sparkGetAddressesSuccessResponseSchema, sparkGetAddressesV2ParamsSchema, sparkGetAddressesV2RequestSchema, sparkGetAddressesV2ResultSchema, sparkGetAddressesV2SuccessResponseSchema, sparkGetBalanceParamsSchema, sparkGetBalanceRequestSchema, sparkGetBalanceResultSchema, sparkGetBalanceSuccessResponseSchema, sparkGetClawbackEligibleTransfersParamsSchema, sparkGetClawbackEligibleTransfersRequestSchema, sparkGetClawbackEligibleTransfersResultSchema, sparkGetClawbackEligibleTransfersSuccessResponseSchema, sparkMethods, sparkModeToLegacySparkNetworkType, sparkNetworkConfigurationOptionsSchema, sparkRequestSchema, sparkSignMessageParamsSchema, sparkSignMessageRequestSchema, sparkSignMessageResultSchema, sparkSignMessageSuccessResponseSchema, sparkSuccessResponseSchema, sparkTransferParamsSchema, sparkTransferRequestSchema, sparkTransferResultSchema, sparkTransferSuccessResponseSchema, sparkTransferTokenParamsSchema, sparkTransferTokenRequestSchema, sparkTransferTokenResultSchema, sparkTransferTokenSuccessResponseSchema, specErrorObjectSchema, specErrorResponseSchema, specIdSchema, specRequestSchema, specResponseSchema, specSuccessResponseSchema, specSuccessWithExtensionsResponseSchema, stacksCallContractParamsSchema, stacksCallContractRequestSchema, stacksCallContractResultSchema, stacksCallContractSuccessResponseSchema, stacksDeployContractParamsSchema, stacksDeployContractRequestSchema, stacksDeployContractResultSchema, stacksDeployContractSuccessResponseSchema, stacksGetAccountsParamsSchema, stacksGetAccountsRequestSchema, stacksGetAccountsResultSchema, stacksGetAccountsSuccessResponseSchema, stacksGetAddressesParamsSchema, stacksGetAddressesRequestSchema, stacksGetAddressesResultSchema, stacksGetAddressesSuccessResponseSchema, stacksMethods, stacksModeToLegacyStacksNetworkType, stacksNetworkConfigurationOptionsSchema, stacksRequestSchema, stacksSignMessageParamsSchema, stacksSignMessageRequestSchema, stacksSignMessageResultSchema, stacksSignMessageSuccessResponseSchema, stacksSignStructuredMessageParamsSchema, stacksSignStructuredMessageRequestSchema, stacksSignStructuredMessageResultSchema, stacksSignStructuredMessageSuccessResponseSchema, stacksSignTransactionParamsSchema, stacksSignTransactionRequestSchema, stacksSignTransactionResultSchema, stacksSignTransactionSuccessResponseSchema, stacksSignTransactionsParamsSchema, stacksSignTransactionsRequestSchema, stacksSignTransactionsResultSchema, stacksSignTransactionsSuccessResponseSchema, stacksSuccessResponseSchema, stacksTransferStxParamsSchema, stacksTransferStxRequestSchema, stacksTransferStxResultSchema, stacksTransferStxSuccessResponseSchema, starknetNetworkConfigurationOptionsSchema, walletAddNetworkParamsSchema, walletAddNetworkRequestSchema, walletAddNetworkResultSchema, walletAddNetworkSuccessResponseSchema, walletAddNetworkV2ParamsSchema, walletAddNetworkV2RequestSchema, walletAddNetworkV2ResultSchema, walletAddNetworkV2SuccessResponseSchema, walletChangeNetworkParamsSchema, walletChangeNetworkRequestSchema, walletChangeNetworkResultSchema, walletChangeNetworkSuccessResponseSchema, walletConnectParamsSchema, walletConnectRequestSchema, walletConnectResultSchema, walletConnectSuccessResponseSchema, walletConnectV2ParamsSchema, walletConnectV2RequestSchema, walletConnectV2ResultSchema, walletConnectV2SuccessResponseSchema, walletDisconnectParamsSchema, walletDisconnectRequestSchema, walletDisconnectResultSchema, walletDisconnectSuccessResponseSchema, walletEventSchema, walletGetAccountParamsSchema, walletGetAccountRequestSchema, walletGetAccountResultSchema, walletGetAccountSuccessResponseSchema, walletGetAccountV2ParamsSchema, walletGetAccountV2RequestSchema, walletGetAccountV2ResultSchema, walletGetAccountV2SuccessResponseSchema, walletGetCurrentPermissionsParamsSchema, walletGetCurrentPermissionsRequestSchema, walletGetCurrentPermissionsResultSchema, walletGetCurrentPermissionsSuccessResponseSchema, walletGetNetworkParamsSchema, walletGetNetworkRequestSchema, walletGetNetworkResultSchema, walletGetNetworkSuccessResponseSchema, walletGetNetworksParamsSchema, walletGetNetworksRequestSchema, walletGetNetworksResultSchema, walletGetNetworksSuccessResponseSchema, walletGetWalletTypeParamsSchema, walletGetWalletTypeRequestSchema, walletGetWalletTypeResultSchema, walletGetWalletTypeSuccessResponseSchema, walletMethods, walletOpenBridgeParamsSchema, walletOpenBridgeRequestSchema, walletOpenBridgeResultSchema, walletOpenBridgeSuccessResponseSchema, walletOpenBuyParamsSchema, walletOpenBuyRequestSchema, walletOpenBuyResultSchema, walletOpenBuySuccessResponseSchema, walletOpenReceiveParamsSchema, walletOpenReceiveRequestSchema, walletOpenReceiveResultSchema, walletOpenReceiveSuccessResponseSchema, walletRenouncePermissionsParamsSchema, walletRenouncePermissionsRequestSchema, walletRenouncePermissionsResultSchema, walletRenouncePermissionsSuccessResponseSchema, walletRequestPermissionsParamsSchema, walletRequestPermissionsRequestSchema, walletRequestPermissionsResultSchema, walletRequestPermissionsSuccessResponseSchema, walletRequestSchema, walletSuccessResponseSchema, walletSwitchNetworkParamsSchema, walletSwitchNetworkRequestSchema, walletSwitchNetworkResultSchema, walletSwitchNetworkSuccessResponseSchema, walletTypeSchema, walletTypes };