import { Injectable } from '@nestjs/common' ; import { PinoLogger } from 'pino-logger' ; import { InjectPinoLogger } from 'nestjs-pino' ; import { Erc20Service } from '../../module' ; import { celoBroadcast , Currency } from '@tatumio/tatum' ; @ Injectable ( ) export class AppService extends Erc20Service { protected broadcast ( chain , txData , signatureId ? ) { return celoBroadcast ( txData , signatureId ) ; } constructor ( @ InjectPinoLogger ( AppService . name ) logger ) { super ( logger ) ; } protected getNodesUrl ( chain , testnet ) { return Promise . resolve ( [ 'https://alfajores-forno.celo-testnet.org' ] ) ; } protected isTestnet ( ) { return Promise . resolve ( true ) ; } protected storeKMSTransaction ( txData , currency , signatureId , index ) { return Promise . resolve ( txData ) ; } }