import { logging } from "@cityofzion/neon-core" ; import { DomainProvider } from "../common" ; import { resolveDomain } from "./core" ; const log = logging . default ( "neon-domain" ) ; export class NeoNS implements DomainProvider { private contract : string ; public get name ( ) : string { return `NeoNs[${ this . contract }]` ; } public constructor ( contract ) { this . contract = contract ; log . info ( `Created NeoNS Provider: ${ this . contract }` ) ; } public resolveDomain ( url , domain ) { return resolveDomain ( url , this . contract , domain ) ; } } export default NeoNS ;