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