Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
052e8611
Commit
052e8611
authored
Feb 28, 2019
by
Sergei Zubov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add settings for destream block explorer
parent
22dea51b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
13 deletions
+20
-13
HomeController.cs
Stratis.Guru/Controllers/HomeController.cs
+7
-0
Program.cs
Stratis.Guru/Program.cs
+1
-1
UpdateInfosService.cs
Stratis.Guru/Services/UpdateInfosService.cs
+6
-6
Startup.cs
Stratis.Guru/Startup.cs
+2
-2
Address.cshtml
Stratis.Guru/Views/BlockExplorer/Address.cshtml
+1
-1
_Layout.cshtml
Stratis.Guru/Views/Shared/_Layout.cshtml
+3
-3
logo.png
Stratis.Guru/wwwroot/images/logo.png
+0
-0
No files found.
Stratis.Guru/Controllers/HomeController.cs
View file @
052e8611
...
...
@@ -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
());
...
...
Stratis.Guru/Program.cs
View file @
052e8611
...
...
@@ -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
>();
}
...
...
Stratis.Guru/Services/UpdateInfosService.cs
View file @
052e8611
...
...
@@ -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
);
...
...
Stratis.Guru/Startup.cs
View file @
052e8611
...
...
@@ -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
>();
...
...
Stratis.Guru/Views/BlockExplorer/Address.cshtml
View file @
052e8611
...
...
@@ -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>
...
...
Stratis.Guru/Views/Shared/_Layout.cshtml
View file @
052e8611
...
...
@@ -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 tick
er"
>
<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 Explor
er"
>
<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
View replaced file @
22dea51b
View file @
052e8611
11.3 KB
|
W:
|
H:
17.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment