2019-12-16 09:32:43 +01:00
|
|
|
@using NBXplorer.Models
|
|
|
|
@model DerivationSchemeViewModel
|
2019-12-18 22:28:03 +09:00
|
|
|
@if (Model.CanUseHotWallet)
|
2019-12-16 09:32:43 +01:00
|
|
|
{
|
2020-04-13 08:48:35 +02:00
|
|
|
ViewData.Add(nameof(Model.CanUseRPCImport), Model.CanUseRPCImport);
|
|
|
|
|
2019-12-16 09:32:43 +01:00
|
|
|
<partial name="AddDerivationSchemes_NBXWalletGenerate" model="@(new GenerateWalletRequest())"/>
|
|
|
|
}
|
2019-05-25 02:45:36 +00:00
|
|
|
|
2020-05-25 15:32:06 +02:00
|
|
|
<div class="modal fade" id="electrumimport" tabindex="-1" role="dialog" aria-labelledby="electrumimport" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
2019-05-25 02:45:36 +00:00
|
|
|
<form class="modal-content" form method="post" enctype="multipart/form-data">
|
|
|
|
<div class="modal-header">
|
2020-06-22 08:39:29 +02:00
|
|
|
<h5 class="modal-title" id="electrumimportLabel">Import Wallet from file</h5>
|
2019-05-25 02:45:36 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2020-05-25 15:32:06 +02:00
|
|
|
<p>You may import your air-gapped hardware wallet (such as ColdCard, Cobo Vault) by exporting a file and uploading it here.</p>
|
|
|
|
<ul >
|
2020-06-22 08:39:29 +02:00
|
|
|
<li>Cobo Vault - <kbd>Settings->Watch-Only Wallet->Wasabi Wallet/BTCPay->Export Wallet</kbd></li>
|
|
|
|
<li>ColdCard - <kbd>Advanced->MicroSD Card->Electrum Wallet</kbd> or <kbd>Advanced->MicroSD Card->Wasabi Wallet</kbd></li>
|
2020-05-25 15:32:06 +02:00
|
|
|
<li>Electrum - <kbd>File->Save Copy</kbd></li>
|
2020-06-22 08:39:29 +02:00
|
|
|
<li>Wasabi - <kbd>Tools->Wallet Manager->Open Wallets Folder</kbd></li>
|
2020-05-25 15:32:06 +02:00
|
|
|
</ul>
|
2019-05-25 02:45:36 +00:00
|
|
|
<div class="form-group">
|
2020-06-22 08:39:29 +02:00
|
|
|
<label asp-for="WalletFile"></label>
|
2019-05-25 02:45:36 +00:00
|
|
|
|
2020-06-22 08:39:29 +02:00
|
|
|
<input type="file" class="form-control-file" asp-for="WalletFile" required>
|
2019-05-25 02:45:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-11 14:22:04 +09:00
|
|
|
|
2019-12-04 16:16:41 +09:00
|
|
|
<template id="btcpayservervault_template">
|
2019-11-11 14:22:04 +09:00
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<form class="modal-content" form method="post" enctype="multipart/form-data">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Import from BTCPayServer Vault</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>You may import from BTCPayServer Vault.</p>
|
2019-12-04 15:54:08 +09:00
|
|
|
<div class="form-group">
|
|
|
|
<div id="vaultPlaceholder"></div>
|
|
|
|
</div>
|
|
|
|
<div id="vault-xpub" style="display:none;">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="addressType">Address type</label>
|
|
|
|
<select name="addressType" class="form-control">
|
|
|
|
<option value="segwit">Segwit (Recommended, cheapest transaction fee)</option>
|
|
|
|
<option value="segwitWrapped">Segwit wrapped (less cheap but compatible with old wallets)</option>
|
|
|
|
<option value="legacy">Legacy (Not recommended)</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="accountNumber">Account</label>
|
|
|
|
<select name="accountNumber" class="form-control">
|
|
|
|
@for (int i = 0; i < 20; i++)
|
|
|
|
{
|
|
|
|
<option value="@i">@i</option>
|
|
|
|
}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-11 14:22:04 +09:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
2019-12-04 12:56:39 +09:00
|
|
|
<button id="vault-confirm" class="btn btn-primary" style="display:none;"></button>
|
2019-11-11 14:22:04 +09:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-12-04 16:16:41 +09:00
|
|
|
</template>
|