/** * Copyright (c) 2022 Signum Network */ import {ChainService} from '../../../service/chainService'; import {GetSingleContractMapValueArgs} from '../../../typings/args'; /** * Use with [[ApiComposer]] and belongs to [[ContractApi]]. * * See details at [[ContractApi.getSingleContractMapValue]] * @module core.api.factories */ export const getSingleContractMapValue = (service: ChainService): (args: GetSingleContractMapValueArgs) => Promise<{value: string}> => (args: GetSingleContractMapValueArgs): Promise<{value: string}> => { const params = { at: args.contractId, key1: args.key1, key2: args.key2 }; return service.query('getATMapValue', params); };