import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
import "../data-structures/http/index.mjs";
import { getSignatureHeader as r } from "../functions/utils/get-signature-header.mjs";
//#region libs/shared/common/src/API/generate-trading-points.ts
var i = async ({ tokenChanges: i, ethereumAddress: a, type: o, signature: s, appMetaData: c, chainId: l, proxyAddress: u }) => n.patch(`${t}${e.generateTradingPoints}`, {
	tokenChanges: i?.map(({ amount: e, ...t }) => ({
		...t,
		amount: e.toString()
	})),
	ethereumAddress: a,
	type: o,
	appMetaData: c,
	chainId: l,
	proxyAddress: u
}, r(s)), a = async ({ ethereumAddress: i, activity: a, signature: o, proxyAddress: s }) => await n.post(`${t}${e.generateAumPoints}`, {
	ethereumAddress: i,
	activity: a,
	proxyAddress: s
}, r(o));
//#endregion
export { a as generateAumPoints, i as generateTradingPoints };
