import { ChangeDetectionStrategy , Component } from '@angular/core' ; import { Observable } from 'rxjs' ; import { GasService } from 'src/app/core/services/gas-service/gas.service' ; import { BLOCKCHAIN_NAME } from '@shared/models/blockchain/blockchain-name' ; @ Component ( { selector : 'app-gas-indicator' , templateUrl : './gas-indicator.component.html' , styleUrls : [ './gas-indicator.component.scss' ] , changeDetection : ChangeDetectionStrategy . OnPush } ) export class GasIndicatorComponent { /**
     * Current gas price.
     */ public gasPrice$ : Observable < number > ; constructor ( private readonly gasService ) { this . gasPrice$ = this . gasService . getGasPrice$ ( BLOCKCHAIN_NAME . ETHEREUM ) ; } }