diff --git a/frontend/src/app/components/accelerate-preview/accelerate-fee-graph.component.ts b/frontend/src/app/components/accelerate-preview/accelerate-fee-graph.component.ts index b5aebd35f..ebfa019a1 100644 --- a/frontend/src/app/components/accelerate-preview/accelerate-fee-graph.component.ts +++ b/frontend/src/app/components/accelerate-preview/accelerate-fee-graph.component.ts @@ -52,7 +52,7 @@ export class AccelerateFeeGraphComponent implements OnInit, OnChanges { rate: option.rate, style: this.getStyle(option.rate, maxRate, baseHeight), class: 'max', - label: 'maximum', + label: $localize`maximum`, active: option.index === this.maxRateIndex, rateIndex: option.index, fee: option.fee, @@ -63,7 +63,7 @@ export class AccelerateFeeGraphComponent implements OnInit, OnChanges { rate: this.estimate.targetFeeRate, style: this.getStyle(this.estimate.targetFeeRate, maxRate, baseHeight), class: 'target', - label: 'next block', + label: $localize`:@@bdf0e930eb22431140a2eaeacd809cc5f8ebd38c:Next Block`.toLowerCase(), fee: this.estimate.nextBlockFee - this.estimate.txSummary.effectiveFee }); } diff --git a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html index a848a645b..70d9ef3f3 100644 --- a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html +++ b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html @@ -32,18 +32,16 @@
- Virtual size - | +Virtual size | |||||||||||||||||||||||||||||||||||||||
- In-band fees - | +In-band fees | {{ estimate.txSummary.effectiveFee | number : '1.0-0' }} sats | @@ -69,13 +65,10 @@||||||||||||||||||||||||||||||||||||||
- Next block market rate - | +Next block market rate | {{ estimate.targetFeeRate | number : '1.0-0' }} | @@ -109,7 +100,7 @@||||||||||||||||||||||||||||||||||||||
- Estimated extra fee required + Estimated extra fee required | {{ math.max(0, estimate.nextBlockFee - estimate.txSummary.effectiveFee) | number }} @@ -123,13 +114,11 @@ | |||||||||||||||||||||||||||||||||||||||
- Mempool Acceleratorâ„¢ fees - | +Mempool Acceleratorâ„¢ fees | |||||||||||||||||||||||||||||||||||||||
- Accelerator Service Fee + Accelerator Service Fee | +{{ estimate.mempoolBaseFee | number }} @@ -141,7 +130,7 @@ | |||||||||||||||||||||||||||||||||||||||
- Transaction Size Surcharge + Transaction Size Surcharge |
+{{ estimate.vsizeFee | number }}
@@ -156,7 +145,7 @@
- Estimated acceleration cost
+ Estimated acceleration cost
|
@@ -170,7 +159,7 @@
|
- If your tx is accelerated to {{ estimate.targetFeeRate | number : '1.0-0' }} sat/vB
+ |
- Maximum acceleration cost
+ Maximum acceleration cost
|
@@ -195,7 +184,7 @@
|
- If your tx is accelerated to ~{{ ((estimate.txSummary.effectiveFee + userBid) / estimate.txSummary.effectiveVsize) | number : '1.0-0' }} sat/vB
+ |
- Available balance
- |
+ Available balance |
{{ estimate.userBalance | number }}
|
@@ -224,7 +211,7 @@
|
|
- Login
+ Sign In
|
| - Accelerate on mempool.space + Accelerate on mempool.space | Miner | + [class]="!block?.extras.pool.name || block?.extras.pool.slug === 'unknown' ? 'badge-secondary' : 'badge-primary'"> {{ block?.extras.pool.name }} | + [class]="!block?.extras.pool.name || block?.extras.pool.slug === 'unknown' ? 'badge-secondary' : 'badge-primary'"> {{ block?.extras.pool.name }} | diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html index 0020f56be..d2f84116c 100644 --- a/frontend/src/app/components/block/block.component.html +++ b/frontend/src/app/components/block/block.component.html @@ -182,13 +182,13 @@Miner | + [class]="block.extras.pool.slug === 'unknown' ? 'badge-secondary' : 'badge-primary'"> {{ block.extras.pool.name }} | + [class]="block.extras.pool.slug === 'unknown' ? 'badge-secondary' : 'badge-primary'"> {{ block.extras.pool.name }} | diff --git a/frontend/src/app/components/pool-ranking/pool-ranking.component.ts b/frontend/src/app/components/pool-ranking/pool-ranking.component.ts index 11ee6e506..17fcc7b4a 100644 --- a/frontend/src/app/components/pool-ranking/pool-ranking.component.ts +++ b/frontend/src/app/components/pool-ranking/pool-ranking.component.ts @@ -181,7 +181,7 @@ export class PoolRankingComponent implements OnInit { color: '#6b6b6b', }, value: totalShareOther, - name: 'Other' + (isMobile() ? `` : ` (${totalShareOther.toFixed(2)}%)`), + name: $localize`Other (${totalShareOther.toFixed(2) + '%'})`, label: { overflow: 'none', color: '#b1b1b1', diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index bcc8ff332..ae418ffd3 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -103,7 +103,7 @@Miner | + [class]="pool.slug === 'unknown' ? 'badge-secondary' : 'badge-primary'"> {{ pool.name }} | diff --git a/frontend/src/app/interfaces/node-api.interface.ts b/frontend/src/app/interfaces/node-api.interface.ts index 8441acc14..6d28612f0 100644 --- a/frontend/src/app/interfaces/node-api.interface.ts +++ b/frontend/src/app/interfaces/node-api.interface.ts @@ -163,6 +163,7 @@ export interface PoolInfo { emptyBlocks: number; slug: string; poolUniqueId: number; + unique_id: number; } export interface PoolStat { pool: PoolInfo; diff --git a/frontend/src/app/services/api.service.ts b/frontend/src/app/services/api.service.ts index 9879255c1..145a8705e 100644 --- a/frontend/src/app/services/api.service.ts +++ b/frontend/src/app/services/api.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { HttpClient, HttpParams, HttpResponse } from '@angular/common/http'; import { CpfpInfo, OptimizedMempoolStats, AddressInformation, LiquidPegs, ITranslators, PoolStat, BlockExtended, TransactionStripped, RewardStats, AuditScore, BlockSizesAndWeights, RbfTree, BlockAudit, Acceleration, AccelerationHistoryParams, CurrentPegs, AuditStatus, FederationAddress, FederationUtxo, RecentPeg, PegsVolume, AccelerationInfo } from '../interfaces/node-api.interface'; -import { BehaviorSubject, Observable, catchError, filter, of, shareReplay, take, tap } from 'rxjs'; +import { BehaviorSubject, Observable, catchError, filter, map, of, shareReplay, take, tap } from 'rxjs'; import { StateService } from './state.service'; import { Transaction } from '../interfaces/electrs.interface'; import { Conversion } from './price.service'; @@ -246,11 +246,29 @@ export class ApiService { return this.httpClient.get