2020-07-28 11:30:23 +02:00
@using BTCPayServer.Views.Stores
2021-07-27 20:00:33 +02:00
@using BTCPayServer.Abstractions.Extensions
2020-07-28 11:30:23 +02:00
@model BTCPayServer.Services.Altcoins.Ethereum.UI.EditEthereumPaymentMethodViewModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData["NavPartialName"] = "../Stores/_Nav";
2021-04-08 15:32:42 +02:00
ViewData.SetActivePageAndTitle(StoreNavPages.ActivePage, $"{Context.GetRouteValue("cryptoCode")} Settings", Context.GetStoreData().StoreName);
2020-07-28 11:30:23 +02:00
}
<div class="row">
<div class="col-md-8">
<div class="alert alert-warning">DO NOT USE THE WALLET TO ACCEPT PAYMENTS OUTSIDE OF THIS STORE.<br/>If you spend funds received on invoices which have not been marked complete yet, the invoice will be marked as unpaid.
</div>
2021-04-08 15:32:42 +02:00
<div asp-validation-summary="All" class="text-danger"></div>
2020-07-28 11:30:23 +02:00
<form method="post" asp-action="GetStoreEthereumLikePaymentMethod"
2021-04-08 15:32:42 +02:00
asp-route-storeId="@Context.GetRouteValue("storeId")"
asp-route-cryptoCode="@Context.GetRouteValue("cryptoCode")"
2020-07-28 11:30:23 +02:00
class="mt-4" enctype="multipart/form-data">
<input type="hidden" asp-for="OriginalIndex"/>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="Seed" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="Seed" type="text" class="form-control"/>
<span asp-validation-for="Seed" class="text-danger"></span>
</div>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="Passphrase" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input type="text" asp-for="Passphrase" class="form-control" autocomplete="off"/>
<span asp-validation-for="Passphrase" class="text-danger"></span>
</div>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="KeyPath" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="KeyPath" class="form-control"/>
2021-07-06 10:35:42 +02:00
<span class="text-muted">Please see <a href="https://medium.com/myetherwallet/hd-wallets-and-derivation-paths-explained-865a643c7bf2" target="_blank" rel="noreferrer noopener">this article.</a></span>
2020-07-28 11:30:23 +02:00
<span asp-validation-for="KeyPath" class="text-danger"></span>
</div>
2021-06-06 13:44:54 +02:00
<div class="form-group form-check">
<input asp-for="StoreSeed" type="checkbox" class="form-check-input"/>
<label asp-for="StoreSeed" class="form-check-label"></label>
2020-07-28 11:30:23 +02:00
<span class="text-muted">Store the seed/password on server if provided. If not checked, will generate the xpub and erase the seed/pass from server</span>
<span asp-validation-for="StoreSeed" class="text-danger"></span>
</div>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="XPub" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="XPub" class="form-control"/>
<span class="text-muted">The public master key derived from a seed/pass/keypath. This allows you to generate addresses without private keys on the server.</span>
<span asp-validation-for="XPub" class="text-danger"></span>
</div>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="Index" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<input asp-for="Index" type="number" min="0" class="form-control"/>
<span class="text-muted">The index to generate the next address from. If you are using a wallet that you have used before, be sure to set this to the last index +1</span>
<span asp-validation-for="Index" class="text-danger"></span>
</div>
<div class="form-group">
2021-06-06 13:44:54 +02:00
<label asp-for="AddressCheck" class="form-label"></label>
2020-07-28 11:30:23 +02:00
<div class="input-group">
<input asp-for="AddressCheck" type="text" class="form-control"/>
<div class="input-group-text">
<input asp-for="AddressCheckLastUsed" type="checkbox" data-toggle="tooltip" class="form-check" title="Use this address to set the last used index for the wallet"/>
</div>
</div>
<span class="text-muted">Check wallet by providing an address it can generate within the first 1000 indexes</span>
<span asp-validation-for="AddressCheck" class="text-danger"></span>
</div>
2021-06-06 13:44:54 +02:00
<div class="form-group form-check">
<input asp-for="Enabled" type="checkbox" class="form-check-input"/>
<label asp-for="Enabled" class="form-check-label"></label>
2020-07-28 11:30:23 +02:00
<span asp-validation-for="Enabled" class="text-danger"></span>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary" id="SaveButton">Save</button>
<a class="btn btn-secondary" asp-action="GetStoreEthereumLikePaymentMethods"
2021-04-08 15:32:42 +02:00
asp-route-storeId="@Context.GetRouteValue("storeId")"
asp-route-cryptoCode="@Context.GetRouteValue("cryptoCode")"
2020-07-28 11:30:23 +02:00
asp-controller="EthereumLikeStore">
Back to list
</a>
</div>
</form>
</div>
</div>
2021-05-19 04:39:27 +02:00
@section PageFootContent {
2020-07-28 11:30:23 +02:00
@await Html.PartialAsync("_ValidationScriptsPartial")
}