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({tokenChanges:i,ethereumAddress:a,type:o,signature:s,appMetaData:c,chainId:l,proxyAddress:u})=>n.httpClient.patch(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.generateTradingPoints}`,{tokenChanges:i?.map(({amount:e,...t})=>({...t,amount:e.toString()})),ethereumAddress:a,type:o,appMetaData:c,chainId:l,proxyAddress:u},r.getSignatureHeader(s)),a=async({ethereumAddress:i,activity:a,signature:o,proxyAddress:s})=>await n.httpClient.post(`${t.DATA_SERVER_URL}${e.DATA_SERVER_CONFIG.generateAumPoints}`,{ethereumAddress:i,activity:a,proxyAddress:s},r.getSignatureHeader(o));exports.generateAumPoints=a,exports.generateTradingPoints=i;