import { LCDClient } from '@terra-money/terra.js' ; import { AddressProvider , DENOMS } from '../address-provider' ; import { Balance } from './types' ; interface Option { lcd : LCDClient ; address : string ; market : DENOMS ; } param lcd param address param money export const queryAUSTBalance = ( { lcd , address , market } ) => async ( addressProvider ) : Promise < Balance > => { if ( addressProvider . aTerra ( market ) === '' ) { return { balance : '0' } ; } return lcd . wasm . contractQuery < Balance > ( addressProvider . aTerra ( market ) , { balance : { address : address , } , } ) ; } ;