@start9labs/start-sdk 0.3.6-beta.2 → 0.3.6-beta.4
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/base/lib/Effects.d.ts +0 -7
- package/base/lib/actions/input/builder/inputSpec.js.map +1 -1
- package/base/lib/actions/input/builder/value.d.ts +3 -0
- package/base/lib/actions/input/builder/value.js +2 -0
- package/base/lib/actions/input/builder/value.js.map +1 -1
- package/base/lib/actions/input/inputSpecConstants.js +2 -2
- package/base/lib/actions/input/inputSpecConstants.js.map +1 -1
- package/base/lib/dependencies/setupDependencies.d.ts +1 -1
- package/base/lib/dependencies/setupDependencies.js +3 -1
- package/base/lib/dependencies/setupDependencies.js.map +1 -1
- package/base/lib/interfaces/Host.d.ts +6 -13
- package/base/lib/interfaces/Host.js +3 -21
- package/base/lib/interfaces/Host.js.map +1 -1
- package/base/lib/interfaces/Origin.d.ts +4 -4
- package/base/lib/interfaces/Origin.js +1 -2
- package/base/lib/interfaces/Origin.js.map +1 -1
- package/base/lib/interfaces/ServiceInterfaceBuilder.d.ts +0 -2
- package/base/lib/interfaces/ServiceInterfaceBuilder.js.map +1 -1
- package/base/lib/osBindings/BindParams.d.ts +0 -2
- package/base/lib/osBindings/BindingSetPublicParams.d.ts +4 -0
- package/base/lib/osBindings/BindingSetPublicParams.js +4 -0
- package/base/lib/osBindings/BindingSetPublicParams.js.map +1 -0
- package/base/lib/osBindings/ExportServiceInterfaceParams.d.ts +0 -1
- package/base/lib/osBindings/Host.d.ts +0 -2
- package/base/lib/osBindings/HostAddress.d.ts +3 -0
- package/base/lib/osBindings/HostAddress.js +0 -1
- package/base/lib/osBindings/HostAddress.js.map +1 -1
- package/base/lib/osBindings/IpHostname.d.ts +1 -0
- package/base/lib/osBindings/IpInfo.d.ts +2 -0
- package/base/lib/osBindings/IpInfo.js +0 -1
- package/base/lib/osBindings/IpInfo.js.map +1 -1
- package/base/lib/osBindings/{SetPublicParams.d.ts → NetworkInterfaceSetPublicParams.d.ts} +1 -1
- package/base/lib/osBindings/NetworkInterfaceSetPublicParams.js +4 -0
- package/base/lib/osBindings/NetworkInterfaceSetPublicParams.js.map +1 -0
- package/base/lib/osBindings/NetworkInterfaceType.d.ts +1 -0
- package/base/lib/osBindings/NetworkInterfaceType.js +4 -0
- package/base/lib/osBindings/NetworkInterfaceType.js.map +1 -0
- package/base/lib/osBindings/ServerInfo.d.ts +2 -6
- package/base/lib/osBindings/ServiceInterface.d.ts +0 -1
- package/base/lib/osBindings/SetupResult.d.ts +1 -1
- package/base/lib/osBindings/TestSmtpParams.d.ts +8 -0
- package/base/lib/osBindings/{SetPublicParams.js → TestSmtpParams.js} +1 -1
- package/base/lib/osBindings/TestSmtpParams.js.map +1 -0
- package/base/lib/osBindings/index.d.ts +5 -3
- package/base/lib/types.d.ts +0 -26
- package/base/lib/util/getServiceInterface.d.ts +0 -6
- package/base/lib/util/getServiceInterface.js +3 -12
- package/base/lib/util/getServiceInterface.js.map +1 -1
- package/base/lib/util/getServiceInterfaces.js +0 -13
- package/base/lib/util/getServiceInterfaces.js.map +1 -1
- package/base/lib/util/patterns.d.ts +2 -0
- package/base/lib/util/patterns.js +20 -12
- package/base/lib/util/patterns.js.map +1 -1
- package/base/lib/util/regexes.d.ts +20 -11
- package/base/lib/util/regexes.js +35 -13
- package/base/lib/util/regexes.js.map +1 -1
- package/package/lib/StartSdk.d.ts +12 -13
- package/package/lib/StartSdk.js +9 -12
- package/package/lib/StartSdk.js.map +1 -1
- package/package/lib/health/checkFns/checkPortListening.d.ts +1 -1
- package/package/lib/health/checkFns/checkPortListening.js +8 -7
- package/package/lib/health/checkFns/checkPortListening.js.map +1 -1
- package/package/lib/mainFn/CommandController.d.ts +1 -1
- package/package/lib/mainFn/CommandController.js +39 -35
- package/package/lib/mainFn/CommandController.js.map +1 -1
- package/package/lib/mainFn/Daemon.d.ts +1 -1
- package/package/lib/mainFn/Daemon.js +2 -0
- package/package/lib/mainFn/Daemon.js.map +1 -1
- package/package/lib/mainFn/Daemons.d.ts +9 -13
- package/package/lib/mainFn/Daemons.js +7 -8
- package/package/lib/mainFn/Daemons.js.map +1 -1
- package/package/lib/mainFn/HealthDaemon.d.ts +3 -0
- package/package/lib/mainFn/HealthDaemon.js +8 -0
- package/package/lib/mainFn/HealthDaemon.js.map +1 -1
- package/package/lib/test/host.test.js +1 -2
- package/package/lib/test/host.test.js.map +1 -1
- package/package/lib/test/output.js +386 -297
- package/package/lib/test/output.js.map +1 -1
- package/package/lib/test/output.sdk.d.ts +9 -5
- package/package/lib/util/SubContainer.d.ts +2 -2
- package/package/lib/util/SubContainer.js +3 -3
- package/package/lib/util/SubContainer.js.map +1 -1
- package/package.json +1 -1
- package/base/lib/osBindings/GetPrimaryUrlParams.d.ts +0 -8
- package/base/lib/osBindings/GetPrimaryUrlParams.js +0 -3
- package/base/lib/osBindings/GetPrimaryUrlParams.js.map +0 -1
- package/base/lib/osBindings/SetPublicParams.js.map +0 -1
|
@@ -3,20 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.matchInputSpecSpec = exports.inputSpecSpec = void 0;
|
|
4
4
|
const output_sdk_1 = require("./output.sdk");
|
|
5
5
|
const { InputSpec, List, Value, Variants } = output_sdk_1.sdk;
|
|
6
|
-
exports.inputSpecSpec = InputSpec.of({
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
exports.inputSpecSpec = InputSpec.of({
|
|
7
|
+
mediasources: Value.multiselect({
|
|
8
|
+
name: "Media Sources",
|
|
9
|
+
minLength: null,
|
|
10
|
+
maxLength: null,
|
|
11
|
+
default: ["nextcloud"],
|
|
12
|
+
description: "List of Media Sources to use with Jellyfin",
|
|
13
|
+
warning: null,
|
|
14
|
+
values: {
|
|
15
|
+
nextcloud: "NextCloud",
|
|
16
|
+
filebrowser: "File Browser",
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
testListUnion: Value.list(
|
|
20
|
+
/* TODO: Convert range for this value ([1,*))*/ List.obj({
|
|
20
21
|
name: "Lightning Nodes",
|
|
21
22
|
minLength: null,
|
|
22
23
|
maxLength: null,
|
|
@@ -25,330 +26,418 @@ exports.inputSpecSpec = InputSpec.of({ "mediasources": Value.multiselect({
|
|
|
25
26
|
warning: null,
|
|
26
27
|
}, {
|
|
27
28
|
spec: InputSpec.of({
|
|
28
|
-
|
|
29
|
+
/* TODO: Convert range for this value ([1,*))*/
|
|
30
|
+
union: Value.union({
|
|
29
31
|
name: "Type",
|
|
30
32
|
description: "- LND: Lightning Network Daemon from Lightning Labs\n- CLN: Core Lightning from Blockstream\n",
|
|
31
33
|
warning: null,
|
|
32
34
|
default: "lnd",
|
|
33
|
-
}, Variants.of({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
}, Variants.of({
|
|
36
|
+
lnd: {
|
|
37
|
+
name: "lnd",
|
|
38
|
+
spec: InputSpec.of({
|
|
39
|
+
name: Value.text({
|
|
40
|
+
name: "Node Name",
|
|
41
|
+
default: "LND Wrapper",
|
|
42
|
+
required: true,
|
|
43
|
+
description: "Name of this node in the list",
|
|
44
|
+
warning: null,
|
|
45
|
+
masked: false,
|
|
46
|
+
placeholder: null,
|
|
47
|
+
inputmode: "text",
|
|
48
|
+
patterns: [],
|
|
49
|
+
minLength: null,
|
|
50
|
+
maxLength: null,
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
},
|
|
54
|
+
})),
|
|
46
55
|
}),
|
|
47
56
|
displayAs: "{{name}}",
|
|
48
57
|
uniqueBy: "name",
|
|
49
|
-
})),
|
|
58
|
+
})),
|
|
59
|
+
rpc: Value.object({
|
|
50
60
|
name: "RPC Settings",
|
|
51
61
|
description: "RPC configuration options.",
|
|
52
|
-
}, InputSpec.of({
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
}, InputSpec.of({
|
|
63
|
+
enable: Value.toggle({
|
|
64
|
+
name: "Enable",
|
|
65
|
+
default: true,
|
|
66
|
+
description: "Allow remote RPC requests.",
|
|
67
|
+
warning: null,
|
|
68
|
+
}),
|
|
69
|
+
username: Value.text({
|
|
70
|
+
name: "Username",
|
|
71
|
+
default: "bitcoin",
|
|
72
|
+
required: true,
|
|
73
|
+
description: "The username for connecting to Bitcoin over RPC.",
|
|
74
|
+
warning: null,
|
|
75
|
+
masked: true,
|
|
76
|
+
placeholder: null,
|
|
77
|
+
inputmode: "text",
|
|
78
|
+
patterns: [
|
|
67
79
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
80
|
+
regex: "^[a-zA-Z0-9_]+$",
|
|
81
|
+
description: "Must be alphanumeric (can contain underscore).",
|
|
82
|
+
},
|
|
71
83
|
],
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
"
|
|
84
|
+
minLength: null,
|
|
85
|
+
maxLength: null,
|
|
86
|
+
}),
|
|
87
|
+
password: Value.text({
|
|
88
|
+
name: "RPC Password",
|
|
89
|
+
default: {
|
|
90
|
+
charset: "a-z,2-7",
|
|
91
|
+
len: 20,
|
|
79
92
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
required: true,
|
|
94
|
+
description: "The password for connecting to Bitcoin over RPC.",
|
|
95
|
+
warning: null,
|
|
96
|
+
masked: true,
|
|
97
|
+
placeholder: null,
|
|
98
|
+
inputmode: "text",
|
|
99
|
+
patterns: [
|
|
87
100
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
101
|
+
regex: '^[^\\n"]*$',
|
|
102
|
+
description: "Must not contain newline or quote characters.",
|
|
103
|
+
},
|
|
91
104
|
],
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
minLength: null,
|
|
106
|
+
maxLength: null,
|
|
107
|
+
}),
|
|
108
|
+
bio: Value.textarea({
|
|
109
|
+
name: "Username",
|
|
110
|
+
description: "The username for connecting to Bitcoin over RPC.",
|
|
111
|
+
warning: null,
|
|
112
|
+
required: true,
|
|
113
|
+
default: "bitcoin",
|
|
114
|
+
placeholder: null,
|
|
115
|
+
maxLength: null,
|
|
116
|
+
minLength: null,
|
|
117
|
+
}),
|
|
118
|
+
advanced: Value.object({
|
|
104
119
|
name: "Advanced",
|
|
105
120
|
description: "Advanced RPC Settings",
|
|
106
|
-
}, InputSpec.of({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
}, InputSpec.of({
|
|
122
|
+
auth: Value.list(
|
|
123
|
+
/* TODO: Convert range for this value ([0,*))*/ List.text({
|
|
124
|
+
name: "Authorization",
|
|
125
|
+
minLength: null,
|
|
126
|
+
maxLength: null,
|
|
127
|
+
default: [],
|
|
128
|
+
description: "Username and hashed password for JSON-RPC connections. RPC clients connect using the usual http basic authentication.",
|
|
129
|
+
warning: null,
|
|
130
|
+
}, {
|
|
131
|
+
masked: false,
|
|
132
|
+
placeholder: null,
|
|
133
|
+
patterns: [
|
|
134
|
+
{
|
|
135
|
+
regex: "^[a-zA-Z0-9_-]+:([0-9a-fA-F]{2})+\\$([0-9a-fA-F]{2})+$",
|
|
136
|
+
description: 'Each item must be of the form "<USERNAME>:<SALT>$<HASH>".',
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
minLength: null,
|
|
140
|
+
maxLength: null,
|
|
141
|
+
})),
|
|
142
|
+
serialversion: Value.select({
|
|
143
|
+
name: "Serialization Version",
|
|
144
|
+
description: "Return raw transaction or block hex with Segwit or non-SegWit serialization.",
|
|
145
|
+
warning: null,
|
|
146
|
+
default: "segwit",
|
|
147
|
+
values: {
|
|
119
148
|
"non-segwit": "non-segwit",
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
}),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
149
|
+
segwit: "segwit",
|
|
150
|
+
},
|
|
151
|
+
}),
|
|
152
|
+
servertimeout:
|
|
153
|
+
/* TODO: Convert range for this value ([5,300])*/ Value.number({
|
|
154
|
+
name: "Rpc Server Timeout",
|
|
155
|
+
description: "Number of seconds after which an uncompleted RPC call will time out.",
|
|
156
|
+
warning: null,
|
|
157
|
+
default: 30,
|
|
158
|
+
required: true,
|
|
159
|
+
min: null,
|
|
160
|
+
max: null,
|
|
161
|
+
step: null,
|
|
162
|
+
integer: true,
|
|
163
|
+
units: "seconds",
|
|
164
|
+
placeholder: null,
|
|
165
|
+
}),
|
|
166
|
+
threads:
|
|
167
|
+
/* TODO: Convert range for this value ([1,64])*/ Value.number({
|
|
168
|
+
name: "Threads",
|
|
169
|
+
description: "Set the number of threads for handling RPC calls. You may wish to increase this if you are making lots of calls via an integration.",
|
|
170
|
+
warning: null,
|
|
171
|
+
default: 16,
|
|
172
|
+
required: true,
|
|
173
|
+
min: null,
|
|
174
|
+
max: null,
|
|
175
|
+
step: null,
|
|
176
|
+
integer: true,
|
|
177
|
+
units: null,
|
|
178
|
+
placeholder: null,
|
|
179
|
+
}),
|
|
180
|
+
workqueue:
|
|
181
|
+
/* TODO: Convert range for this value ([8,256])*/ Value.number({
|
|
182
|
+
name: "Work Queue",
|
|
183
|
+
description: "Set the depth of the work queue to service RPC calls. Determines how long the backlog of RPC requests can get before it just rejects new ones.",
|
|
184
|
+
warning: null,
|
|
185
|
+
default: 128,
|
|
186
|
+
required: true,
|
|
187
|
+
min: null,
|
|
188
|
+
max: null,
|
|
189
|
+
step: null,
|
|
190
|
+
integer: true,
|
|
191
|
+
units: "requests",
|
|
192
|
+
placeholder: null,
|
|
193
|
+
}),
|
|
194
|
+
})),
|
|
195
|
+
})),
|
|
196
|
+
"zmq-enabled": Value.toggle({
|
|
197
|
+
name: "ZeroMQ Enabled",
|
|
198
|
+
default: true,
|
|
199
|
+
description: "Enable the ZeroMQ interface",
|
|
200
|
+
warning: null,
|
|
201
|
+
}),
|
|
202
|
+
txindex: Value.toggle({
|
|
203
|
+
name: "Transaction Index",
|
|
204
|
+
default: true,
|
|
205
|
+
description: "Enable the Transaction Index (txindex)",
|
|
206
|
+
warning: null,
|
|
207
|
+
}),
|
|
208
|
+
wallet: Value.object({
|
|
169
209
|
name: "Wallet",
|
|
170
210
|
description: "Wallet Settings",
|
|
171
|
-
}, InputSpec.of({
|
|
172
|
-
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
211
|
+
}, InputSpec.of({
|
|
212
|
+
enable: Value.toggle({
|
|
213
|
+
name: "Enable Wallet",
|
|
214
|
+
default: true,
|
|
215
|
+
description: "Load the wallet and enable wallet RPC calls.",
|
|
216
|
+
warning: null,
|
|
217
|
+
}),
|
|
218
|
+
avoidpartialspends: Value.toggle({
|
|
219
|
+
name: "Avoid Partial Spends",
|
|
220
|
+
default: true,
|
|
221
|
+
description: "Group outputs by address, selecting all or none, instead of selecting on a per-output basis. This improves privacy at the expense of higher transaction fees.",
|
|
222
|
+
warning: null,
|
|
223
|
+
}),
|
|
224
|
+
discardfee:
|
|
225
|
+
/* TODO: Convert range for this value ([0,.01])*/ Value.number({
|
|
226
|
+
name: "Discard Change Tolerance",
|
|
227
|
+
description: "The fee rate (in BTC/kB) that indicates your tolerance for discarding change by adding it to the fee.",
|
|
228
|
+
warning: null,
|
|
229
|
+
default: 0.0001,
|
|
230
|
+
required: true,
|
|
231
|
+
min: null,
|
|
232
|
+
max: null,
|
|
233
|
+
step: null,
|
|
234
|
+
integer: false,
|
|
235
|
+
units: "BTC/kB",
|
|
236
|
+
placeholder: null,
|
|
237
|
+
}),
|
|
238
|
+
})),
|
|
239
|
+
advanced: Value.object({
|
|
194
240
|
name: "Advanced",
|
|
195
241
|
description: "Advanced Settings",
|
|
196
|
-
}, InputSpec.of({
|
|
242
|
+
}, InputSpec.of({
|
|
243
|
+
mempool: Value.object({
|
|
197
244
|
name: "Mempool",
|
|
198
245
|
description: "Mempool Settings",
|
|
199
|
-
}, InputSpec.of({
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
"
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
246
|
+
}, InputSpec.of({
|
|
247
|
+
mempoolfullrbf: Value.toggle({
|
|
248
|
+
name: "Enable Full RBF",
|
|
249
|
+
default: false,
|
|
250
|
+
description: "Policy for your node to use for relaying and mining unconfirmed transactions. For details, see https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-24.0.md#notice-of-new-option-for-transaction-replacement-policies",
|
|
251
|
+
warning: null,
|
|
252
|
+
}),
|
|
253
|
+
persistmempool: Value.toggle({
|
|
254
|
+
name: "Persist Mempool",
|
|
255
|
+
default: true,
|
|
256
|
+
description: "Save the mempool on shutdown and load on restart.",
|
|
257
|
+
warning: null,
|
|
258
|
+
}),
|
|
259
|
+
maxmempool:
|
|
260
|
+
/* TODO: Convert range for this value ([1,*))*/ Value.number({
|
|
261
|
+
name: "Max Mempool Size",
|
|
262
|
+
description: "Keep the transaction memory pool below <n> megabytes.",
|
|
263
|
+
warning: null,
|
|
264
|
+
default: 300,
|
|
265
|
+
required: true,
|
|
266
|
+
min: null,
|
|
267
|
+
max: null,
|
|
268
|
+
step: null,
|
|
269
|
+
integer: true,
|
|
270
|
+
units: "MiB",
|
|
271
|
+
placeholder: null,
|
|
272
|
+
}),
|
|
273
|
+
mempoolexpiry:
|
|
274
|
+
/* TODO: Convert range for this value ([1,*))*/ Value.number({
|
|
275
|
+
name: "Mempool Expiration",
|
|
276
|
+
description: "Do not keep transactions in the mempool longer than <n> hours.",
|
|
277
|
+
warning: null,
|
|
278
|
+
default: 336,
|
|
279
|
+
required: true,
|
|
280
|
+
min: null,
|
|
281
|
+
max: null,
|
|
282
|
+
step: null,
|
|
283
|
+
integer: true,
|
|
284
|
+
units: "Hr",
|
|
285
|
+
placeholder: null,
|
|
286
|
+
}),
|
|
287
|
+
})),
|
|
288
|
+
peers: Value.object({
|
|
234
289
|
name: "Peers",
|
|
235
290
|
description: "Peer Connection Settings",
|
|
236
|
-
}, InputSpec.of({
|
|
237
|
-
|
|
238
|
-
"
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
"
|
|
251
|
-
|
|
291
|
+
}, InputSpec.of({
|
|
292
|
+
listen: Value.toggle({
|
|
293
|
+
name: "Make Public",
|
|
294
|
+
default: true,
|
|
295
|
+
description: "Allow other nodes to find your server on the network.",
|
|
296
|
+
warning: null,
|
|
297
|
+
}),
|
|
298
|
+
onlyconnect: Value.toggle({
|
|
299
|
+
name: "Disable Peer Discovery",
|
|
300
|
+
default: false,
|
|
301
|
+
description: "Only connect to specified peers.",
|
|
302
|
+
warning: null,
|
|
303
|
+
}),
|
|
304
|
+
onlyonion: Value.toggle({
|
|
305
|
+
name: "Disable Clearnet",
|
|
306
|
+
default: false,
|
|
307
|
+
description: "Only connect to peers over Tor.",
|
|
308
|
+
warning: null,
|
|
309
|
+
}),
|
|
310
|
+
addnode: Value.list(
|
|
311
|
+
/* TODO: Convert range for this value ([0,*))*/ List.obj({
|
|
252
312
|
name: "Add Nodes",
|
|
253
313
|
minLength: null,
|
|
254
314
|
maxLength: null,
|
|
255
315
|
default: [],
|
|
256
316
|
description: "Add addresses of nodes to connect to.",
|
|
257
317
|
}, {
|
|
258
|
-
spec: InputSpec.of({
|
|
259
|
-
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
"
|
|
318
|
+
spec: InputSpec.of({
|
|
319
|
+
hostname: Value.text({
|
|
320
|
+
name: "Hostname",
|
|
321
|
+
default: null,
|
|
322
|
+
required: false,
|
|
323
|
+
description: "Domain or IP address of bitcoin peer",
|
|
324
|
+
warning: null,
|
|
325
|
+
masked: false,
|
|
326
|
+
placeholder: null,
|
|
327
|
+
inputmode: "text",
|
|
328
|
+
patterns: [
|
|
268
329
|
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
330
|
+
regex: "(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)|((^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$)|(^[a-z2-7]{16}\\.onion$)|(^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$))",
|
|
331
|
+
description: "Must be either a domain name, or an IPv4 or IPv6 address. Do not include protocol scheme (eg 'http://') or port.",
|
|
332
|
+
},
|
|
272
333
|
],
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}),
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
334
|
+
minLength: null,
|
|
335
|
+
maxLength: null,
|
|
336
|
+
}),
|
|
337
|
+
port: /* TODO: Convert range for this value ([0,65535])*/ Value.number({
|
|
338
|
+
name: "Port",
|
|
339
|
+
description: "Port that peer is listening on for inbound p2p connections",
|
|
340
|
+
warning: null,
|
|
341
|
+
default: null,
|
|
342
|
+
required: false,
|
|
343
|
+
min: null,
|
|
344
|
+
max: null,
|
|
345
|
+
step: null,
|
|
346
|
+
integer: true,
|
|
347
|
+
units: null,
|
|
348
|
+
placeholder: null,
|
|
349
|
+
}),
|
|
350
|
+
}),
|
|
288
351
|
displayAs: null,
|
|
289
352
|
uniqueBy: null,
|
|
290
|
-
})),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
353
|
+
})),
|
|
354
|
+
})),
|
|
355
|
+
dbcache: /* TODO: Convert range for this value ((0,*))*/ Value.number({
|
|
356
|
+
name: "Database Cache",
|
|
357
|
+
description: "How much RAM to allocate for caching the TXO set. Higher values improve syncing performance, but increase your chance of using up all your system's memory or corrupting your database in the event of an ungraceful shutdown. Set this high but comfortably below your system's total RAM during IBD, then turn down to 450 (or leave blank) once the sync completes.",
|
|
358
|
+
warning: "WARNING: Increasing this value results in a higher chance of ungraceful shutdowns, which can leave your node unusable if it happens during the initial block download. Use this setting with caution. Be sure to set this back to the default (450 or leave blank) once your node is synced. DO NOT press the STOP button if your dbcache is large. Instead, set this number back to the default, hit save, and wait for bitcoind to restart on its own.",
|
|
359
|
+
default: null,
|
|
360
|
+
required: false,
|
|
361
|
+
min: null,
|
|
362
|
+
max: null,
|
|
363
|
+
step: null,
|
|
364
|
+
integer: true,
|
|
365
|
+
units: "MiB",
|
|
366
|
+
placeholder: null,
|
|
367
|
+
}),
|
|
368
|
+
pruning: Value.union({
|
|
303
369
|
name: "Pruning Settings",
|
|
304
|
-
description:
|
|
370
|
+
description: '- Disabled: Disable pruning\n- Automatic: Limit blockchain size on disk to a certain number of megabytes\n- Manual: Prune blockchain with the "pruneblockchain" RPC\n',
|
|
305
371
|
warning: null,
|
|
306
372
|
default: "disabled",
|
|
307
|
-
}, Variants.of({
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
373
|
+
}, Variants.of({
|
|
374
|
+
disabled: { name: "Disabled", spec: InputSpec.of({}) },
|
|
375
|
+
automatic: {
|
|
376
|
+
name: "Automatic",
|
|
377
|
+
spec: InputSpec.of({
|
|
378
|
+
size: /* TODO: Convert range for this value ([550,1000000))*/ Value.number({
|
|
379
|
+
name: "Max Chain Size",
|
|
380
|
+
description: "Limit of blockchain size on disk.",
|
|
381
|
+
warning: "Increasing this value will require re-syncing your node.",
|
|
382
|
+
default: 550,
|
|
383
|
+
required: true,
|
|
384
|
+
min: null,
|
|
385
|
+
max: null,
|
|
386
|
+
step: null,
|
|
387
|
+
integer: true,
|
|
388
|
+
units: "MiB",
|
|
389
|
+
placeholder: null,
|
|
390
|
+
}),
|
|
391
|
+
}),
|
|
392
|
+
},
|
|
393
|
+
manual: {
|
|
394
|
+
name: "Manual",
|
|
395
|
+
spec: InputSpec.of({
|
|
396
|
+
size: /* TODO: Convert range for this value ([550,1000000))*/ Value.number({
|
|
397
|
+
name: "Failsafe Chain Size",
|
|
398
|
+
description: "Prune blockchain if size expands beyond this.",
|
|
399
|
+
warning: null,
|
|
400
|
+
default: 65536,
|
|
401
|
+
required: true,
|
|
402
|
+
min: null,
|
|
403
|
+
max: null,
|
|
404
|
+
step: null,
|
|
405
|
+
integer: true,
|
|
406
|
+
units: "MiB",
|
|
407
|
+
placeholder: null,
|
|
408
|
+
}),
|
|
409
|
+
}),
|
|
410
|
+
},
|
|
411
|
+
})),
|
|
412
|
+
blockfilters: Value.object({
|
|
332
413
|
name: "Block Filters",
|
|
333
414
|
description: "Settings for storing and serving compact block filters",
|
|
334
|
-
}, InputSpec.of({
|
|
335
|
-
|
|
336
|
-
"
|
|
337
|
-
|
|
338
|
-
"
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
415
|
+
}, InputSpec.of({
|
|
416
|
+
blockfilterindex: Value.toggle({
|
|
417
|
+
name: "Compute Compact Block Filters (BIP158)",
|
|
418
|
+
default: true,
|
|
419
|
+
description: "Generate Compact Block Filters during initial sync (IBD) to enable 'getblockfilter' RPC. This is useful if dependent services need block filters to efficiently scan for addresses/transactions etc.",
|
|
420
|
+
warning: null,
|
|
421
|
+
}),
|
|
422
|
+
peerblockfilters: Value.toggle({
|
|
423
|
+
name: "Serve Compact Block Filters to Peers (BIP157)",
|
|
424
|
+
default: false,
|
|
425
|
+
description: "Serve Compact Block Filters as a peer service to other nodes on the network. This is useful if you wish to connect an SPV client to your node to make it efficient to scan transactions without having to download all block data. 'Compute Compact Block Filters (BIP158)' is required.",
|
|
426
|
+
warning: null,
|
|
427
|
+
}),
|
|
428
|
+
})),
|
|
429
|
+
bloomfilters: Value.object({
|
|
345
430
|
name: "Bloom Filters (BIP37)",
|
|
346
431
|
description: "Setting for serving Bloom Filters",
|
|
347
|
-
}, InputSpec.of({
|
|
348
|
-
|
|
349
|
-
"
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
432
|
+
}, InputSpec.of({
|
|
433
|
+
peerbloomfilters: Value.toggle({
|
|
434
|
+
name: "Serve Bloom Filters to Peers",
|
|
435
|
+
default: false,
|
|
436
|
+
description: "Peers have the option of setting filters on each connection they make after the version handshake has completed. Bloom filters are for clients implementing SPV (Simplified Payment Verification) that want to check that block headers connect together correctly, without needing to verify the full blockchain. The client must trust that the transactions in the chain are in fact valid. It is highly recommended AGAINST using for anything except Bisq integration.",
|
|
437
|
+
warning: "This is ONLY for use with Bisq integration, please use Block Filters for all other applications.",
|
|
438
|
+
}),
|
|
439
|
+
})),
|
|
440
|
+
})),
|
|
441
|
+
});
|
|
353
442
|
exports.matchInputSpecSpec = exports.inputSpecSpec.validator;
|
|
354
443
|
//# sourceMappingURL=output.js.map
|