| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  | <div class="container-xl"> | 
					
						
							| 
									
										
										
										
											2021-04-26 07:58:44 +09:00
										 |  |  |   <h1 style="float: left;" i18n>BSQ Transactions</h1> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-08 22:48:18 +07:00
										 |  |  |   <div class="d-block float-right"> | 
					
						
							|  |  |  |     <form [formGroup]="radioGroupForm"> | 
					
						
							|  |  |  |       <ngx-bootrap-multiselect [options]="txTypeOptions" [settings]="txTypeDropdownSettings" [texts]="txTypeDropdownTexts" formControlName="txTypes"></ngx-bootrap-multiselect> | 
					
						
							|  |  |  |     </form> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  |   <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-02 19:20:38 +07:00
										 |  |  |   <ng-container *ngIf="{ value: (transactions$ | async) } as transactions"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |   <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |     <thead> | 
					
						
							| 
									
										
										
										
											2021-04-26 07:58:44 +09:00
										 |  |  |       <th style="width: 20%;" i18n>TXID</th> | 
					
						
							| 
									
										
										
										
											2020-12-03 18:34:19 +07:00
										 |  |  |       <th class="d-none d-md-block" style="width: 100%;" i18n>Type</th> | 
					
						
							|  |  |  |       <th style="width: 20%;" i18n>Amount</th> | 
					
						
							|  |  |  |       <th style="width: 20%;" i18n>Confirmed</th> | 
					
						
							|  |  |  |       <th class="d-none d-md-block" i18n>Height</th> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |     </thead> | 
					
						
							| 
									
										
										
										
											2020-08-02 19:20:38 +07:00
										 |  |  |     <tbody *ngIf="transactions.value; else loadingTmpl"> | 
					
						
							| 
									
										
										
										
											2020-08-11 00:43:24 +07:00
										 |  |  |       <tr *ngFor="let tx of transactions.value[0]; trackBy: trackByFn"> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |         <td><a [routerLink]="['/tx/' | relativeUrl, tx.id]" [state]="{ data: tx }">{{ tx.id | slice : 0 : 8 }}</a></td> | 
					
						
							|  |  |  |         <td class="d-none d-md-block"> | 
					
						
							|  |  |  |           <app-bisq-icon class="mr-1" [txType]="tx.txType"></app-bisq-icon> | 
					
						
							| 
									
										
										
										
											2021-06-09 14:09:25 -05:00
										 |  |  |           <span class="d-none d-md-inline"> {{ getStringByTxType(tx.txType) }}</span> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |         </td> | 
					
						
							|  |  |  |         <td> | 
					
						
							|  |  |  |           <app-bisq-icon class="d-inline d-md-none mr-1" [txType]="tx.txType"></app-bisq-icon> | 
					
						
							| 
									
										
										
										
											2020-07-28 13:31:25 +07:00
										 |  |  |           <ng-template [ngIf]="tx.txType === 'PAY_TRADE_FEE' || tx.txType === 'ASSET_LISTING_FEE'" [ngIfElse]="defaultTxType"> | 
					
						
							| 
									
										
										
										
											2021-05-03 10:11:30 -03:00
										 |  |  |             {{ tx.burntFee / 100 | number: '1.2-2' }} <span class="d-none d-md-inline symbol">BSQ</span> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |           </ng-template> | 
					
						
							|  |  |  |           <ng-template #defaultTxType> | 
					
						
							| 
									
										
										
										
											2021-05-03 10:11:30 -03:00
										 |  |  |             {{ calculateTotalOutput(tx.outputs) / 100 | number: '1.2-2' }} <span class="d-none d-md-inline symbol">BSQ</span> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |           </ng-template> | 
					
						
							|  |  |  |         </td> | 
					
						
							| 
									
										
										
										
											2020-12-03 18:34:19 +07:00
										 |  |  |         <td><app-time-since [time]="tx.time / 1000" [fastRender]="true"></app-time-since></td> | 
					
						
							| 
									
										
										
										
											2020-07-24 18:41:15 +07:00
										 |  |  |         <td class="d-none d-md-block"><a [routerLink]="['/block/' | relativeUrl, tx.blockHash]" [state]="{ data: { blockHeight: tx.blockHeight } }">{{ tx.blockHeight }}</a></td> | 
					
						
							|  |  |  |       </tr>  | 
					
						
							|  |  |  |     </tbody> | 
					
						
							|  |  |  |   </table> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <br> | 
					
						
							| 
									
										
										
										
											2021-05-03 10:11:30 -03:00
										 |  |  |   <div class="pagination"> | 
					
						
							|  |  |  |     <ngb-pagination *ngIf="transactions.value" [size]="paginationSize" [collectionSize]="transactions.value[1]" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="paginationMaxSize" [boundaryLinks]="true"></ngb-pagination> | 
					
						
							|  |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2020-07-03 23:45:19 +07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-02 19:20:38 +07:00
										 |  |  |   </ng-container> | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <ng-template #loadingTmpl> | 
					
						
							|  |  |  |   <tr *ngFor="let i of loadingItems"> | 
					
						
							| 
									
										
										
										
											2020-07-18 11:04:04 +07:00
										 |  |  |     <td *ngFor="let j of [1, 2, 3, 4, 5]"><span class="skeleton-loader"></span></td> | 
					
						
							| 
									
										
										
										
											2020-07-15 13:10:13 +07:00
										 |  |  |   </tr> | 
					
						
							| 
									
										
										
										
											2021-04-26 07:58:44 +09:00
										 |  |  | </ng-template> |