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">
|
2020-08-03 10:12:21 +02:00
|
|
|
|
<form class="modal-content" method="post" enctype="multipart/form-data">
|
2019-05-25 02:45:36 +00:00
|
|
|
|
<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-08-03 10:12:21 +02:00
|
|
|
|
<p>Import your air-gapped hardware wallet by exporting a file and uploading it here.</p>
|
|
|
|
|
<table class="table table-sm table-responsive-md">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Wallet</th>
|
|
|
|
|
<th>Instructions</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Cobo Vault</td>
|
|
|
|
|
<td><kbd>Settings ❯ Watch-Only Wallet ❯ BTCPay ❯ Export Wallet</kbd></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>ColdCard</td>
|
|
|
|
|
<td>
|
|
|
|
|
<kbd>Advanced ❯ MicroSD Card ❯ Electrum Wallet</kbd> or
|
|
|
|
|
<kbd>Advanced ❯ MicroSD Card ❯ Wasabi Wallet</kbd>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Electrum</td>
|
2020-09-11 02:31:15 -04:00
|
|
|
|
<td><kbd>File ❯ Save backup</kbd></td>
|
2020-08-03 10:12:21 +02:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Wasabi</td>
|
|
|
|
|
<td><kbd>Tools ❯ Wallet Manager ❯ Open Wallets Folder</kbd></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
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>
|
|
|
|
|
<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">
|
2020-08-03 10:12:21 +02:00
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
2019-05-25 02:45:36 +00:00
|
|
|
|
<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">
|
2020-08-03 10:12:21 +02:00
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</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>
|