"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ESPLORA_BASE_PATH = exports.SUDO_URI = exports.VAULT_TO_BAN_URI = exports.VAULT_TO_LIQUIDATE_URI = exports.VAULT_3_URI = exports.VAULT_2_URI = exports.VAULT_1_URI = exports.ORACLE_URI = exports.USER_2_URI = exports.USER_1_URI = exports.REDEEM_ADDRESS = exports.BITCOIN_CORE_WALLET = exports.BITCOIN_CORE_PORT = exports.BITCOIN_CORE_PASSWORD = exports.BITCOIN_CORE_USERNAME = exports.BITCOIN_CORE_HOST = exports.BITCOIN_CORE_NETWORK = exports.FAUCET_ENDPOINT = exports.PARACHAIN_ENDPOINT = void 0;
const electrs_1 = require("../src/external/electrs");
// The default config is for regtest and a local standalone parachain, started using docker-compose
const DEFAULT_PARACHAIN_ENDPOINT = "ws://127.0.0.1:9944";
const DEFAULT_FAUCET_ENDPOINT = "http://0.0.0.0:3036";
const DEFAULT_BITCOIN_CORE_NETWORK = "regtest";
const DEFAULT_BITCOIN_CORE_HOST = "0.0.0.0";
const DEFAULT_BITCOIN_CORE_USERNAME = "rpcuser";
const DEFAULT_BITCOIN_CORE_PASSWORD = "rpcpassword";
const DEFAULT_BITCOIN_CORE_PORT = "18443";
const DEFAULT_BITCOIN_CORE_WALLET = "Alice";
const DEFAULT_REDEEM_ADDRESS = "bcrt1qed0qljupsmqhxul67r7358s60reqa2qtte0kay";
const DEFAULT_USER_1_URI = "//Dave";
const DEFAULT_USER_2_URI = "//Eve";
const DEFAULT_ORACLE_URI = "//Bob";
const DEFAULT_VAULT_1_URI = "//Charlie//stash";
const DEFAULT_VAULT_2_URI = "//Dave//stash";
const DEFAULT_VAULT_3_URI = "//Eve//stash";
const DEFAULT_VAULT_TO_LIQUIDATE_URI = "//Ferdie//stash";
const DEFAULT_VAULT_TO_BAN_URI = "//Ferdie";
const DEFAULT_SUDO_URI = "//Alice";
// Use the config set in the environment, or fallback to the config for local testing
exports.PARACHAIN_ENDPOINT = process.env.PARACHAIN_ENDPOINT || DEFAULT_PARACHAIN_ENDPOINT;
exports.FAUCET_ENDPOINT = process.env.FAUCET_ENDPOINT || DEFAULT_FAUCET_ENDPOINT;
exports.BITCOIN_CORE_NETWORK = process.env.BITCOIN_CORE_NETWORK || DEFAULT_BITCOIN_CORE_NETWORK;
exports.BITCOIN_CORE_HOST = process.env.BITCOIN_CORE_HOST || DEFAULT_BITCOIN_CORE_HOST;
exports.BITCOIN_CORE_USERNAME = process.env.BITCOIN_CORE_USERNAME || DEFAULT_BITCOIN_CORE_USERNAME;
exports.BITCOIN_CORE_PASSWORD = process.env.BITCOIN_CORE_PASSWORD || DEFAULT_BITCOIN_CORE_PASSWORD;
exports.BITCOIN_CORE_PORT = process.env.BITCOIN_CORE_PORT || DEFAULT_BITCOIN_CORE_PORT;
exports.BITCOIN_CORE_WALLET = process.env.BITCOIN_CORE_WALLET || DEFAULT_BITCOIN_CORE_WALLET;
exports.REDEEM_ADDRESS = process.env.REDEEM_ADDRESS || DEFAULT_REDEEM_ADDRESS;
exports.USER_1_URI = process.env.USER_1_URI || DEFAULT_USER_1_URI;
exports.USER_2_URI = process.env.USER_2_URI || DEFAULT_USER_2_URI;
exports.ORACLE_URI = process.env.ORACLE_URI || DEFAULT_ORACLE_URI;
exports.VAULT_1_URI = process.env.VAULT_1_URI || DEFAULT_VAULT_1_URI;
exports.VAULT_2_URI = process.env.VAULT_2_URI || DEFAULT_VAULT_2_URI;
exports.VAULT_3_URI = process.env.VAULT_3_URI || DEFAULT_VAULT_3_URI;
exports.VAULT_TO_LIQUIDATE_URI = process.env.VAULT_TO_LIQUIDATE_URI || DEFAULT_VAULT_TO_LIQUIDATE_URI;
exports.VAULT_TO_BAN_URI = process.env.VAULT_TO_BAN_URI || DEFAULT_VAULT_TO_BAN_URI;
exports.SUDO_URI = process.env.SUDO_URI || DEFAULT_SUDO_URI;
exports.ESPLORA_BASE_PATH = process.env.SUDO_URI || electrs_1.REGTEST_ESPLORA_BASE_PATH;
//# sourceMappingURL=config.js.map