Commit 052e8611 authored by Sergei Zubov's avatar Sergei Zubov

Add settings for destream block explorer

parent 22dea51b
......@@ -59,9 +59,16 @@ namespace Stratis.Guru.Controllers
public IActionResult Index()
{
return RedirectToAction("Index", "BlockExplorer");
ViewBag.Features = _featuresSettings;
ViewBag.Setup = _setupSettings;
return View(new Ticker
{
DisplayPrice = 0.006,
Last24Change = 0
});
double displayPrice = 0;
var rqf = Request.HttpContext.Features.Get<IRequestCultureFeature>();
dynamic coinmarketcap = JsonConvert.DeserializeObject(_memoryCache.Get("Coinmarketcap").ToString());
......
......@@ -19,7 +19,7 @@ namespace Stratis.Guru
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseUrls("http://localhost:1989")
.UseUrls("http://*:80")
.UseSentry()
.UseStartup<Startup>();
}
......
......@@ -42,12 +42,12 @@ namespace Stratis.Guru.Services
_updateTimer.AutoReset = true;
}
var coinmarketCapApiClient = new RestClient(_tickerSettings.ApiUrl);
var coinmarketCapApiRequest = new RestRequest(Method.GET);
var coinmarketcapApi = coinmarketCapApiClient.Execute(coinmarketCapApiRequest);
_memoryCache.Set("Coinmarketcap", coinmarketcapApi.Content);
Console.WriteLine(DateTime.Now + " - Ticker Updated");
await _hubContext.Clients.All.SendAsync("UpdateTicker", cancellationToken);
// var coinmarketCapApiClient = new RestClient(_tickerSettings.ApiUrl);
// var coinmarketCapApiRequest = new RestRequest(Method.GET);
// var coinmarketcapApi = coinmarketCapApiClient.Execute(coinmarketCapApiRequest);
// _memoryCache.Set("Coinmarketcap", coinmarketcapApi.Content);
// Console.WriteLine(DateTime.Now + " - Ticker Updated");
// await _hubContext.Clients.All.SendAsync("UpdateTicker", cancellationToken);
var blockchainStatsClient = new RestClient($"{_nakoApiSettings.Endpoint}stats");
var blockchainStatsRequest = new RestRequest(Method.GET);
......
......@@ -50,7 +50,7 @@ namespace Stratis.Guru
});
services.Configure<NakoApiSettings>(Configuration.GetSection("NakoApi"));
services.Configure<FixerApiSettings>(Configuration.GetSection("FixerApi"));
//services.Configure<FixerApiSettings>(Configuration.GetSection("FixerApi"));
services.Configure<DrawSettings>(Configuration.GetSection("Draw"));
services.Configure<TickerSettings>(Configuration.GetSection("Ticker"));
services.Configure<SetupSettings>(Configuration.GetSection("Setup"));
......@@ -67,7 +67,7 @@ namespace Stratis.Guru
services.AddSingleton<BlockIndexService>();
services.AddHostedService<UpdateInfosService>();
services.AddHostedService<FixerService>();
//services.AddHostedService<FixerService>();
services.AddHostedService<LotteryService>();
services.AddHostedService<VanityService>();
......
......@@ -94,7 +94,7 @@
{
total += (double)transaction.Value;
<tr>
<td><a asp-controller="BlockExplorer" asp-action="Transaction" asp-route-transactionId="@transaction.TransactionHash">@transaction.TransactionHash.ToString().Substring(0, 25)...</a></td>
<td><a asp-controller="BlockExplorer" asp-action="Transaction" asp-route-transactionId="@transaction.TransactionHash ?? @transaction.CoinBase">(@transaction.TransactionHash ?? @transaction.CoinBase).ToString().Substring(0, 25)...</a></td>
<td><a asp-controller="BlockExplorer" asp-action="Block" asp-route-block="@transaction.BlockIndex">@transaction.BlockIndex</a></td>
<td>-</td>
<td><span class="@(transaction.Value > 0 ? "green" : "red")">@transaction.Value.ToString("N8") @Model.CoinTag</span></td>
......
......@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@ViewBag.Setup.Title | @ViewBag.Title</title>
<meta name="Content-Language" content="en">
<meta name="Description" content="@(ViewBag.Description ?? "Stratis.Guru is a Simple and Free $STRAT ticker, an Stratis Address Generator and a Vanity Address service.")">
<meta name="Description" content="@(ViewBag.Description ?? "Online block explorer for DeStream blockchain network")">
<meta name="Keywords" content="stratis,bitcoin,cryptos,cryptocurrencies,coins,$STRAT,ticker,explorer,block explorer,vanity address,stratis block explorer,$strat block explorer,stratis generator,stratis price ticker,stratis preev,stratis vanity address,clint.network,SR2ZXnhRnMqJNoeDiCFUnaug7TKHJocwDd,">
<meta name="Author" content="Clint.Network">
<meta name="Identifier-Url" content="http://stratis.guru">
......@@ -14,8 +14,8 @@
<meta name="Revisit-After" content="1 day">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="clint_network">
<meta name="twitter:title" content="@ViewBag.Setup.Title | Online Stratis ($STRAT) price ticker">
<meta name="twitter:description" content="Stratis.Guru is a Simple and Free $STRAT ticker, an Stratis Address Generator and a Vanity Address service.">
<meta name="twitter:title" content="@ViewBag.Setup.Title | Online Block Explorer">
<meta name="twitter:description" content="Online block explorer for DeStream blockchain network"">
<link rel="icon" href="~/favicon.ico" />
<link href="~/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="~/css/font-awesome.min.css" rel="stylesheet" type="text/css">
......
Stratis.Guru/wwwroot/images/logo.png

11.3 KB | W: | H:

Stratis.Guru/wwwroot/images/logo.png

17.1 KB | W: | H:

Stratis.Guru/wwwroot/images/logo.png
Stratis.Guru/wwwroot/images/logo.png
Stratis.Guru/wwwroot/images/logo.png
Stratis.Guru/wwwroot/images/logo.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment