text: // @flow
  import axios from "axios";
  
  export const DCRDATA_URL_TESTNET = "https://testnet.decred.org/api";
  export const DCRDATA_URL_MAINNET = "https://dcrdata.decred.org/api";
  
  const GET = (path) => {
    return axios.get(path);
  };
  
  export const getTreasuryInfo = (daURL, treasuryAddress) => GET(daURL + "/address/" + treasuryAddress + "/totals");
  
  export const getAdendasInfo = daURL => GET(`${daURL}/agendas`);
  