import { gql } from "@apollo/client" ; interface Item { contract : string ; msg : object ; } const stringify = ( msg ) => JSON . stringify ( msg ) . replace ( /"/g , '\\"' ) ; const aliasItem = ( { contract , msg } ) => `
    ${ contract }: WasmContractsContractAddressStore(
      ContractAddress: "${ contract }"
      QueryMsg: "${ stringify ( msg ) }"
    ) {
      Height
      Result
    }` ; const alias = ( list ) => gql `
  query {
    ${ list . map ( aliasItem ) }
  }
` ; export default alias ;