import { Injectable } from '@nestjs/common' ; import { PinoLogger } from 'pino-logger' ; import { InjectPinoLogger } from 'nestjs-pino' ; import { TronService } from '../../module' ; @ Injectable ( ) export class AppService extends TronService { constructor ( @ InjectPinoLogger ( AppService . name ) logger ) { super ( logger ) ; } protected getNodesUrl ( testnet ) { return Promise . resolve ( [ 'https://api.shasta.trongrid.io' ] ) ; } protected getApiKey ( ) { return '25f66928-0b70-48cd-9ac6-da6f8247c663' ; } protected getScanningApiKey ( ) { return '25f66928-0b70-48cd-9ac6-da6f8247c663' ; } protected isTestnet ( ) { return Promise . resolve ( true ) ; } protected async storeKMSTransaction ( txData , currency , signatureId ) { this . logger . info ( txData ) ; return txData ; } protected completeKMSTransaction ( txId , signatureId ) { this . logger . info ( txId ) ; return Promise . resolve ( ) ; } }