const e=require(`../constants/server.constants.cjs`),t=require(`./getServerURL.cjs`),n=require(`../data-structures/http/HttpClient.cjs`);require(`../data-structures/http/index.cjs`);const r=require(`../functions/utils/get-signature-header.cjs`);var i=async({accessCode:i,ethereumAddress:a,signature:o,proxyAddress:s})=>n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.submitAccessCode}`,{accessCode:i,ethereumAddress:a,proxyAddress:s},r.getSignatureHeader(o)),a=async r=>n.httpClient.get(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.getAccessCodeBenefits}/${r}`);exports.getAccessCodeBenefits=a,exports.submitAccessCode=i;