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