function get_blockchain_wizard_config($currency) { // components override if (Currencies::hasKey($currency)) { $obj = Currencies::getInstance($currency); $config = new BlockchainWizardConfig($obj); return $config->getConfig(); } throw new Exception("Unknown blockchain currency '{$currency}'"); }
/** * All currencies defined in {@link get_address_currencies()} should have * an equivalent PHP script in {@code jobs/addresses/CUR.php}. */ function testAllAddressCurrenciesHaveAddressIncludes() { foreach (get_address_currencies() as $cur) { // skip ones that are discovered if (\DiscoveredComponents\Currencies::hasKey($cur)) { continue; } $file = __DIR__ . "/../jobs/addresses/{$cur}.php"; $this->assertTrue(file_exists($file), "File '{$file}' did not exist for address currency '{$cur}'"); } }
your CPU, your video card, or specialised ASIC hardware (called <i>mining</i>). </p> <p> <?php echo htmlspecialchars(get_site_config('site_name')); ?> currently supports the following cryptocurrencies: </p> <p> <ul class="currency_list"> <?php // get_all_cryptocurrencies() so that it's sorted foreach (get_all_cryptocurrencies() as $code) { if (!\DiscoveredComponents\Currencies::hasKey($code)) { continue; } $currency = \DiscoveredComponents\Currencies::getInstance($code); echo "<li>"; echo "<span class=\"currency_name_" . $currency->getCode() . "\">" . link_to($currency->getURL(), $currency->getName(), array("target" => "_blank")) . "</span>"; foreach ($currency->getCommunityLinks() as $url => $title) { echo " - " . link_to($url, $title, array("target" => "_blank")); } echo "</li>"; } ?> </ul> </p> <p>