1- import { compat , types as T } from ' ../deps.ts'
1+ import { compat , types as T } from " ../deps.ts" ;
22
33export const getConfig : T . ExpectedExports . getConfig = compat . getConfig ( {
4- ' tor-address' : {
5- name : ' Tor Address' ,
6- description : ' The Tor address of the network interface' ,
7- type : ' pointer' ,
8- subtype : ' package' ,
9- ' package-id' : ' dojo' ,
10- target : ' tor-address' ,
11- interface : ' main' ,
4+ " tor-address" : {
5+ " name" : " Tor Address" ,
6+ " description" : " The Tor address of the network interface" ,
7+ " type" : " pointer" ,
8+ " subtype" : " package" ,
9+ " package-id" : " dojo" ,
10+ " target" : " tor-address" ,
11+ " interface" : " main" ,
1212 } ,
13- 'bitcoin-node' : {
14- type : 'union' ,
15- name : 'Bitcoin Node' ,
16- description : 'The Bitcoin node type you would like to use for Dojo' ,
17- tag : {
18- id : 'type' ,
19- name : 'Select Bitcoin Node' ,
20- 'variant-names' : {
21- bitcoind : 'Bitcoin Core' ,
22- 'bitcoind-testnet' : 'Bitcoin Core (testnet4)' ,
13+ "bitcoin-node" : {
14+ "type" : "union" ,
15+ "name" : "Bitcoin Node" ,
16+ "description" :
17+ "The Bitcoin node type you would like to use for Dojo" ,
18+ "tag" : {
19+ "id" : "type" ,
20+ "name" : "Select Bitcoin Node" ,
21+ "variant-names" : {
22+ "bitcoind" : "Bitcoin Core" ,
23+ "bitcoind-testnet" : "Bitcoin Core (testnet4)" ,
2324 } ,
24- description : 'The Bitcoin node type you would like to use for Dojo' ,
25+ "description" :
26+ "The Bitcoin node type you would like to use for Dojo" ,
2527 } ,
26- default : ' bitcoind' ,
27- variants : {
28- bitcoind : {
29- username : {
30- type : ' pointer' ,
31- name : ' RPC Username' ,
32- description : "The username for Bitcoin Core's RPC interface" ,
33- subtype : ' package' ,
34- ' package-id' : ' bitcoind' ,
35- target : ' config' ,
36- multi : false ,
37- selector : ' $.rpc.username' ,
28+ " default" : " bitcoind" ,
29+ " variants" : {
30+ " bitcoind" : {
31+ " username" : {
32+ " type" : " pointer" ,
33+ " name" : " RPC Username" ,
34+ " description" : "The username for Bitcoin Core's RPC interface" ,
35+ " subtype" : " package" ,
36+ " package-id" : " bitcoind" ,
37+ " target" : " config" ,
38+ " multi" : false ,
39+ " selector" : " $.rpc.username" ,
3840 } ,
39- password : {
40- type : ' pointer' ,
41- name : ' RPC Password' ,
42- description : "The password for Bitcoin Core's RPC interface" ,
43- subtype : ' package' ,
44- ' package-id' : ' bitcoind' ,
45- target : ' config' ,
46- multi : false ,
47- selector : ' $.rpc.password' ,
41+ " password" : {
42+ " type" : " pointer" ,
43+ " name" : " RPC Password" ,
44+ " description" : "The password for Bitcoin Core's RPC interface" ,
45+ " subtype" : " package" ,
46+ " package-id" : " bitcoind" ,
47+ " target" : " config" ,
48+ " multi" : false ,
49+ " selector" : " $.rpc.password" ,
4850 } ,
4951 } ,
50- ' bitcoind-testnet' : {
51- username : {
52- type : ' pointer' ,
53- name : ' RPC Username' ,
54- description : ' The username for Bitcoin Core Testnet RPC interface' ,
55- subtype : ' package' ,
56- ' package-id' : ' bitcoind-testnet' ,
57- target : ' config' ,
58- multi : false ,
59- selector : ' $.rpc.username' ,
52+ " bitcoind-testnet" : {
53+ " username" : {
54+ " type" : " pointer" ,
55+ " name" : " RPC Username" ,
56+ " description" : " The username for Bitcoin Core Testnet RPC interface" ,
57+ " subtype" : " package" ,
58+ " package-id" : " bitcoind-testnet" ,
59+ " target" : " config" ,
60+ " multi" : false ,
61+ " selector" : " $.rpc.username" ,
6062 } ,
61- password : {
62- type : ' pointer' ,
63- name : ' RPC Password' ,
64- description : ' The password for Bitcoin Core Testnet RPC interface' ,
65- subtype : ' package' ,
66- ' package-id' : ' bitcoind-testnet' ,
67- target : ' config' ,
68- multi : false ,
69- selector : ' $.rpc.password' ,
63+ " password" : {
64+ " type" : " pointer" ,
65+ " name" : " RPC Password" ,
66+ " description" : " The password for Bitcoin Core Testnet RPC interface" ,
67+ " subtype" : " package" ,
68+ " package-id" : " bitcoind-testnet" ,
69+ " target" : " config" ,
70+ " multi" : false ,
71+ " selector" : " $.rpc.password" ,
7072 } ,
7173 } ,
7274 } ,
7375 } ,
74- indexer : {
75- type : 'union' ,
76- name : 'Indexer' ,
77- description : 'The indexer you want to use for Dojo' ,
78- tag : {
79- id : 'type' ,
80- name : 'Select Indexer' ,
81- 'variant-names' : {
82- electrs : 'electrs' ,
83- fulcrum : 'Fulcrum' ,
76+ "indexer" : {
77+ "type" : "union" ,
78+ "name" : "Indexer" ,
79+ "description" :
80+ "The indexer you want to use for Dojo" ,
81+ "tag" : {
82+ "id" : "type" ,
83+ "name" : "Select Indexer" ,
84+ "variant-names" : {
85+ "electrs" : "electrs" ,
86+ "fulcrum" : "Fulcrum" ,
8487 } ,
85- description : 'The indexer you want to use for Dojo' ,
88+ "description" :
89+ "The indexer you want to use for Dojo" ,
8690 } ,
87- default : ' electrs' ,
88- variants : {
89- electrs : { } ,
90- fulcrum : { } ,
91+ " default" : " electrs" ,
92+ " variants" : {
93+ " electrs" : { } ,
94+ " fulcrum" : { } ,
9195 } ,
9296 } ,
93- ' payment-code' : {
94- type : ' string' ,
95- name : ' BIP47 Payment Code' ,
96- description : ' BIP47 Payment Code used for admin authentication' ,
97- nullable : true ,
98- copyable : true ,
99- masked : false ,
97+ " payment-code" : {
98+ " type" : " string" ,
99+ " name" : " BIP47 Payment Code" ,
100+ " description" : " BIP47 Payment Code used for admin authentication" ,
101+ " nullable" : true ,
102+ " copyable" : true ,
103+ " masked" : false
100104 } ,
101- ' admin-key' : {
102- type : ' string' ,
103- name : ' Admin Key' ,
104- description : ' Key for accessing the admin/maintenance' ,
105- nullable : false ,
106- copyable : true ,
107- masked : true ,
108- default : {
109- charset : ' a-z,A-Z,0-9' ,
110- len : 22 ,
105+ " admin-key" : {
106+ " type" : " string" ,
107+ " name" : " Admin Key" ,
108+ " description" : " Key for accessing the admin/maintenance" ,
109+ " nullable" : false ,
110+ " copyable" : true ,
111+ " masked" : true ,
112+ " default" : {
113+ " charset" : " a-z,A-Z,0-9" ,
114+ " len" : 22 ,
111115 } ,
112116 } ,
113- ' api-key' : {
114- type : ' string' ,
115- name : ' API Key' ,
116- description : ' Key for accessing the services' ,
117- nullable : false ,
118- copyable : true ,
119- masked : true ,
120- default : {
121- charset : ' a-z,A-Z,0-9' ,
122- len : 22 ,
117+ " api-key" : {
118+ " type" : " string" ,
119+ " name" : " API Key" ,
120+ " description" : " Key for accessing the services" ,
121+ " nullable" : false ,
122+ " copyable" : true ,
123+ " masked" : true ,
124+ " default" : {
125+ " charset" : " a-z,A-Z,0-9" ,
126+ " len" : 22 ,
123127 } ,
124128 } ,
125- ' jwt-secret' : {
126- type : ' string' ,
127- name : ' JWT Secret' ,
128- description : ' Secret used by the server for signing' ,
129- nullable : false ,
130- copyable : true ,
131- masked : true ,
132- default : {
133- charset : ' a-z,A-Z,0-9' ,
134- len : 22 ,
129+ " jwt-secret" : {
130+ " type" : " string" ,
131+ " name" : " JWT Secret" ,
132+ " description" : " Secret used by the server for signing" ,
133+ " nullable" : false ,
134+ " copyable" : true ,
135+ " masked" : true ,
136+ " default" : {
137+ " charset" : " a-z,A-Z,0-9" ,
138+ " len" : 22 ,
135139 } ,
136140 } ,
137- 'soroban-announce' : {
138- type : 'union' ,
139- name : 'Soroban Network Announce' ,
140- description : 'Configure Soroban network participation' ,
141- tag : {
142- id : 'enabled' ,
143- name : 'Soroban Network Announce' ,
144- 'variant-names' : {
145- disabled : 'Disabled' ,
146- enabled : 'Enabled' ,
147- } ,
148- description : 'Enable to participate in the Soroban network' ,
149- } ,
150- default : 'disabled' ,
151- variants : {
152- disabled : { } ,
153- enabled : {
154- 'pandotx-process' : {
155- type : 'boolean' ,
156- name : 'PandoTx Process' ,
157- description :
158- 'Process and relay transactions from other Soroban nodes' ,
159- nullable : false ,
160- default : false ,
161- } ,
141+ "soroban-announce" : {
142+ "type" : "union" ,
143+ "name" : "Soroban Network Announce" ,
144+ "description" : "Configure Soroban network participation" ,
145+ "tag" : {
146+ "id" : "enabled" ,
147+ "name" : "Soroban Network Announce" ,
148+ "variant-names" : {
149+ "disabled" : "Disabled" ,
150+ "enabled" : "Enabled"
162151 } ,
152+ "description" : "Enable to participate in the Soroban network"
163153 } ,
154+ "default" : "disabled" ,
155+ "variants" : {
156+ "disabled" : { } ,
157+ "enabled" : {
158+ "pandotx-process" : {
159+ "type" : "boolean" ,
160+ "name" : "PandoTx Process" ,
161+ "description" : "Process and relay transactions from other Soroban nodes" ,
162+ "nullable" : false ,
163+ "default" : false
164+ }
165+ }
166+ }
164167 } ,
165- 'pandotx-push' : {
166- type : 'boolean' ,
167- name : 'PandoTx Push' ,
168- description :
169- 'Push your transactions through random Soroban nodes for enhanced privacy' ,
170- nullable : false ,
171- default : true ,
168+ "pandotx-push" : {
169+ "type" : "boolean" ,
170+ "name" : "PandoTx Push" ,
171+ "description" : "Push your transactions through random Soroban nodes for enhanced privacy" ,
172+ "nullable" : false ,
173+ "default" : true ,
172174 } ,
173- ' pandotx-retries' : {
174- type : ' number' ,
175- name : ' PandoTx Retries' ,
176- description : ' Maximum retry attempts for failed transaction pushes' ,
177- nullable : false ,
178- default : 2 ,
179- range : ' [0,10]' ,
180- integral : true ,
175+ " pandotx-retries" : {
176+ " type" : " number" ,
177+ " name" : " PandoTx Retries" ,
178+ " description" : " Maximum retry attempts for failed transaction pushes" ,
179+ " nullable" : false ,
180+ " default" : 2 ,
181+ " range" : " [0,10]" ,
182+ " integral" : true ,
181183 } ,
182- 'pandotx-fallback-mode' : {
183- type : 'enum' ,
184- name : 'PandoTx Fallback Mode' ,
185- description : 'Behavior when Soroban push fails' ,
186- default : 'convenient' ,
187- values : [ 'convenient' , 'secure' ] ,
188- 'value-names' : {
189- convenient : 'Convenient (fallback to local node)' ,
190- secure : 'Secure (fail if Soroban unavailable)' ,
184+ "pandotx-fallback-mode" : {
185+ "type" : "enum" ,
186+ "name" : "PandoTx Fallback Mode" ,
187+ "description" : "Behavior when Soroban push fails" ,
188+ "nullable" : false ,
189+ "default" : "convenient" ,
190+ "values" : [ "convenient" , "secure" ] ,
191+ "value-names" : {
192+ "convenient" : "Convenient (fallback to local node)" ,
193+ "secure" : "Secure (fail if Soroban unavailable)" ,
191194 } ,
192195 } ,
193- } )
196+ } ) ;
0 commit comments