* Bump version to 3.2.1.3 and add Fulcrum indexer Updated version to 3.2.1.3 and added Fulcrum as an optional indexer. * Add indexer configuration * Update address lookup instructions for Electrs and Fulcrum * Refactor getConfig.ts for add fulcrum * Update to v3.2.1.3 with fulcrum * Update setConfig to support indexer selection Enhanced CustomConfig to include indexer properties and updated dependency handling for both indexer and lightning types. * Update manifest.yaml sounds good to me Co-authored-by: Dominion5254 <musashidisciple@proton.me> * Update manifest.yaml * Add 3.2.1.3 migrations * Rollback to old migration.ts and add 3.2.1.3 as current Removed unused indexer matching logic and related comments. * fucrum migration --------- Co-authored-by: Dominion5254 <musashidisciple@proton.me>
78 lines
2.0 KiB
TypeScript
78 lines
2.0 KiB
TypeScript
import { compat, types as T } from "../deps.ts";
|
|
|
|
export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({
|
|
"tor-address": {
|
|
"name": "Tor Address",
|
|
"description": "The Tor address of the network interface",
|
|
"type": "pointer",
|
|
"subtype": "package",
|
|
"package-id": "mempool",
|
|
"target": "tor-address",
|
|
"interface": "main",
|
|
},
|
|
"bitcoin-user": {
|
|
"type": "pointer",
|
|
"name": "RPC Username",
|
|
"description": "The username for Bitcoin Core's RPC interface",
|
|
"subtype": "package",
|
|
"package-id": "bitcoind",
|
|
"target": "config",
|
|
"multi": false,
|
|
"selector": "$.rpc.username",
|
|
},
|
|
"bitcoin-password": {
|
|
"type": "pointer",
|
|
"name": "RPC Password",
|
|
"description": "The password for Bitcoin Core's RPC interface",
|
|
"subtype": "package",
|
|
"package-id": "bitcoind",
|
|
"target": "config",
|
|
"multi": false,
|
|
"selector": "$.rpc.password",
|
|
},
|
|
"lightning": {
|
|
"type": "union",
|
|
"name": "Lightning Node",
|
|
"description":
|
|
"The Lightning node you will connect to in order to serve network data to the Lightning tab in Mempool",
|
|
"tag": {
|
|
"id": "type",
|
|
"name": "Select Lightning Node",
|
|
"variant-names": {
|
|
"none": "Disabled",
|
|
"lnd": "LND",
|
|
"cln": "Core Lightning",
|
|
},
|
|
"description":
|
|
"The Lightning node you will connect to in order to serve network data to the Lightning tab in Mempool",
|
|
},
|
|
"default": "none",
|
|
"variants": {
|
|
"none": {},
|
|
"lnd": {},
|
|
"cln": {},
|
|
}
|
|
},
|
|
"indexer": {
|
|
"name": "Indexer Type",
|
|
"description": "Select the type of indexer to use for address lookups",
|
|
"type": "union",
|
|
"tag": {
|
|
"id": "type",
|
|
"name": "Select Indexer",
|
|
"variant-names": {
|
|
"none": "Disabled",
|
|
"electrs": "Electrs",
|
|
"fulcrum": "Fulcrum",
|
|
},
|
|
"description": "Select the Bitcoin indexer you want to use for address lookups",
|
|
},
|
|
"default": "none",
|
|
"variants": {
|
|
"none": {},
|
|
"electrs": {},
|
|
"fulcrum": {},
|
|
}
|
|
}
|
|
});
|