2019-12-14 01:23:46 +00:00
|
|
|
<div fxLayout="column" fxFlex="100" class="padding-gap">
|
2019-12-18 21:41:04 +00:00
|
|
|
<form fxLayout="column" fxLayoutAlign="space-between stretch" fxLayout.gt-sm="row wrap" (ngSubmit)="queryRoutesForm.form.valid && onQueryRoutes()" #queryRoutesForm="ngForm">
|
2020-01-01 01:05:36 +00:00
|
|
|
<div fxFlex="100" class="alert alert-warn">
|
|
|
|
<fa-icon [icon]="faExclamationTriangle" class="mr-1 alert-icon"></fa-icon>
|
2020-01-03 01:35:01 +00:00
|
|
|
<span>The actual routing fee on a payment can be different from the fee shown on query routes.</span>
|
2020-01-01 01:05:36 +00:00
|
|
|
</div>
|
2019-12-15 00:55:50 +00:00
|
|
|
<mat-form-field fxFlex="69" fxLayoutAlign="start end">
|
2019-12-02 03:46:30 +00:00
|
|
|
<input matInput placeholder="Destination Pubkey" name="destinationPubkey" [(ngModel)]="destinationPubkey" tabindex="1" required #destPubkey="ngModel">
|
2019-12-31 00:39:17 +00:00
|
|
|
<mat-error *ngIf="!destinationPubkey">Destination pubkey is required.</mat-error>
|
2019-12-02 03:46:30 +00:00
|
|
|
</mat-form-field>
|
2019-12-15 00:55:50 +00:00
|
|
|
<mat-form-field fxFlex="29" fxLayoutAlign="start end">
|
2020-12-20 23:36:04 +00:00
|
|
|
<input matInput placeholder="Amount (Sats)" [(ngModel)]="amount" name="amount" tabindex="2" type="number" [step]="1000" [min]="0" required>
|
2019-12-31 00:39:17 +00:00
|
|
|
<mat-error *ngIf="!amount">Amount is required.</mat-error>
|
2019-12-02 03:46:30 +00:00
|
|
|
</mat-form-field>
|
2021-12-29 23:08:41 +00:00
|
|
|
<div fxLayout="row" class="mt-1">
|
2020-05-03 19:52:38 +00:00
|
|
|
<button class="mr-1" mat-stroked-button color="primary" tabindex="3" type="reset" (click)="resetData()">Clear</button>
|
|
|
|
<button mat-flat-button color="primary" type="submit" tabindex="4">Query Route</button>
|
2019-12-02 03:46:30 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2021-08-28 21:03:18 +00:00
|
|
|
<div fxLayout="column" fxLayoutAlign="start stretch" fxLayout.gt-sm="row wrap" class="page-sub-title-container mt-3 mb-1">
|
2020-12-20 23:36:04 +00:00
|
|
|
<div fxFlex="70" fxLayoutAlign="start center">
|
2019-12-02 03:46:30 +00:00
|
|
|
<fa-icon [icon]="faRoute" class="page-title-img mr-1"></fa-icon>
|
|
|
|
<span class="page-title">Transaction Route</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-20 23:36:04 +00:00
|
|
|
<div [perfectScrollbar] class="table-container mb-6">
|
2019-12-02 03:46:30 +00:00
|
|
|
<mat-progress-bar *ngIf="flgLoading[0]===true" mode="indeterminate"></mat-progress-bar>
|
|
|
|
<table mat-table #table [dataSource]="qrHops" matSort [ngClass]="{'overflow-auto error-border': flgLoading[0]==='error','overflow-auto': true}">
|
|
|
|
<ng-container matColumnDef="hop_sequence">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Hop </th>
|
|
|
|
<td mat-cell *matCellDef="let hop"> {{hop?.hop_sequence}} </td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="pubkey_alias">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Peer </th>
|
2019-12-18 21:41:04 +00:00
|
|
|
<td mat-cell *matCellDef="let hop" [ngStyle]="{'max-width': (screenSize === screenSizeEnum.XS) ? '10rem' : '28rem'}"> {{hop?.pubkey_alias}} </td>
|
2019-12-02 03:46:30 +00:00
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="chan_id">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Channel </th>
|
|
|
|
<td mat-cell *matCellDef="let hop"> {{hop?.chan_id}} </td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="chan_capacity">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header arrowPosition="before"> Capacity (Sats) </th>
|
|
|
|
<td mat-cell *matCellDef="let hop"><span fxLayoutAlign="end center"> {{hop?.chan_capacity | number}}</span></td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="amt_to_forward_msat">
|
2019-12-04 02:14:39 +00:00
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header arrowPosition="before"> Amount To Fwd (Sats) </th>
|
|
|
|
<td mat-cell *matCellDef="let hop"><span fxLayoutAlign="end center"> {{hop?.amt_to_forward | number}}
|
2019-12-02 03:46:30 +00:00
|
|
|
</span></td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="fee_msat">
|
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header arrowPosition="before"> Fee (mSats) </th>
|
|
|
|
<td mat-cell *matCellDef="let hop"><span fxLayoutAlign="end center"> {{hop?.fee_msat | number}} </span>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="actions">
|
|
|
|
<th mat-header-cell *matHeaderCellDef class="pl-4 pr-3"><span fxLayoutAlign="end center">Actions</span></th>
|
|
|
|
<td mat-cell *matCellDef="let hop" class="pl-4">
|
|
|
|
<button mat-stroked-button color="primary" type="button" tabindex="4" (click)="onHopClick(hop, $event)">View Info</button>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
2022-10-16 05:51:29 +00:00
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
2019-12-02 03:46:30 +00:00
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|