import { AddressProvider , DENOMS } from './provider' ; export interface AddressMap { mmMarket : string ; mmOverseer : string ; aTerra : string ; } export type AllowedAddressKeys = keyof AddressMap ; export class AddressProviderFromJson implements AddressProvider { constructor ( private data ) { } market ( ) { return this . data . mmMarket ; } overseer ( ) { return this . data . mmOverseer ; } aTerra ( denom ) { if ( denom == DENOMS . UST ) { return this . data . aTerra ; } return '' ; } }