import { logging , settings , u , wallet } from "@cityofzion/neon-core" ; import { PastTransaction , Provider } from "../common" ; import { getBalance , getClaims , getHeight , getMaxClaimAmount , getRPCEndpoint , } from "./core" ; const log = logging . default ( "api" ) ; export class Dora implements Provider { private url : string ; public get name ( ) : string { return `Dora[${ this . url }]` ; } public constructor ( url ) { if ( settings . networks [ url ] && settings . networks [ url ] . extra . dora ) { this . url = settings . networks [ url ] . extra . dora ; } else { this . url = url ; } log . info ( `Created Neoscan Provider: ${ this . url }` ) ; } public getRPCEndpoint ( ) { return getRPCEndpoint ( this . url ) ; } public getBalance ( address ) { return getBalance ( this . url , address ) ; } public getClaims ( address ) { return getClaims ( this . url , address ) ; } public getMaxClaimAmount ( address ) { return getMaxClaimAmount ( this . url , address ) ; } public getHeight ( ) { return getHeight ( this . url ) ; } public async getTransactionHistory ( _address ) { throw new Error ( "Method not implemented." ) ; } } export default Dora ;