2021-02-11 11:48:54 +01:00
@model WalletSetupViewModel
2024-10-03 19:21:19 +09:00
@inject Microsoft.Extensions.Localization.IStringLocalizer StringLocalizer
2021-02-11 11:48:54 +01:00
@{
2024-10-03 19:21:19 +09:00
Layout = "_LayoutWalletSetup";
var title = StringLocalizer["Generate {0} Wallet", Model.CryptoCode];
ViewData.SetActivePage(StoreNavPages.OnchainSettings, title, $"{Context.GetStoreData().Id}-{Model.CryptoCode}");
2021-02-11 11:48:54 +01:00
}
@section Navbar {
2022-01-07 12:32:00 +09:00
<a asp-controller="UIStores" asp-action="SetupWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode">
2021-02-11 11:48:54 +01:00
<vc:icon symbol="back" />
</a>
}
2024-10-03 19:21:19 +09:00
<h1 class="text-center" text-translate="true">Choose your wallet option</h1>
2021-02-11 11:48:54 +01:00
<div class="list-group mt-5">
@if (Model.CanUseHotWallet)
{
2024-10-25 15:48:53 +02:00
<a asp-controller="UIStores" asp-action="GenerateWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="@WalletSetupMethod.HotWallet.ToString()" id="GenerateHotwalletLink" class="list-group-item list-group-item-action">
2021-02-11 11:48:54 +01:00
<div class="image">
2024-05-20 01:57:46 +02:00
<vc:icon symbol="wallet-hot"/>
2021-02-11 11:48:54 +01:00
</div>
<div class="content">
2024-10-03 19:21:19 +09:00
<h4 text-translate="true">Hot wallet</h4>
<p class="mb-0 text-secondary" text-translate="true">
Wallet's private key is stored on the server. Spending the funds you received is convenient. To minimize the risk of theft, regularly withdraw funds to a different wallet.
2021-02-11 11:48:54 +01:00
</p>
</div>
<vc:icon symbol="caret-right"/>
</a>
}
else
{
2021-06-14 07:06:56 +02:00
<div class="list-group-item text-muted">
2021-02-11 11:48:54 +01:00
<div class="image">
2024-05-20 01:57:46 +02:00
<vc:icon symbol="wallet-hot"/>
2021-02-11 11:48:54 +01:00
</div>
<div class="content">
2024-10-03 19:21:19 +09:00
<h4 text-translate="true">Hot wallet</h4>
<p class="mb-0" text-translate="true">Please note that creating a hot wallet is not supported by this instance for non administrators.</p>
2021-02-11 11:48:54 +01:00
</div>
</div>
}
</div>
<div class="list-group mt-4">
2024-10-25 15:48:53 +02:00
<a asp-controller="UIStores" asp-action="GenerateWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="@WalletSetupMethod.WatchOnly.ToString()" id="GenerateWatchonlyLink" class="list-group-item list-group-item-action">
2021-02-11 11:48:54 +01:00
<div class="image">
2024-05-20 01:57:46 +02:00
<vc:icon symbol="wallet-watchonly"/>
2021-02-11 11:48:54 +01:00
</div>
<div class="content">
2024-10-03 19:21:19 +09:00
<h4 text-translate="true">Watch-only wallet</h4>
<p class="mb-0 text-secondary" text-translate="true">
Wallet's private key is erased from the server. Higher security. To spend, you have to manually input the private key or import it into an external wallet.
2021-03-01 12:43:25 +01:00
</p>
2021-02-11 11:48:54 +01:00
</div>
<vc:icon symbol="caret-right" />
</a>
</div>