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/brotherhoodCalls.ts
var i = async ({ brotherhoodId: r }) => await n.get(`${t}${e.getBrotherhood(r)}`), a = async (r) => await n.get(`${t}${e.getBrotherhoodUsers(r)}`), o = async (r) => await n.get(`${t}${e.getCurrentUserBrotherhoodUsers(r)}`), s = async (i) => await n.patch(`${t}${e.editBrotherhood}`, i, r(i.signature)), c = async (i) => await n.post(`${t}${e.createBrotherhood}`, i, r(i.signature)), l = async ({ ethereumAddress: r }) => await n.post(`${t}${e.getCurrentUserBrotherhood}`, { ethereumAddress: r }), u = async () => await n.get(`${t}${e.getPublicBrotherhoods}`), d = async ({ brotherhoodId: i, transferEthereumAddress: a, ethereumAddress: o, signature: s, proxyAddress: c }) => await n.patch(`${t}${e.leaveBrotherhood(i)}`, {
	transferEthereumAddress: a,
	ethereumAddress: o,
	proxyAddress: c
}, r(s)), f = async ({ brotherhoodId: i, ethereumAddress: a, signature: o, invitationToken: s, proxyAddress: c }) => await n.patch(`${t}${e.joinBrotherhood(i)}`, {
	ethereumAddress: a,
	invitationToken: s,
	proxyAddress: c
}, r(o));
//#endregion
export { c as createBrotherhood, s as editBrotherhood, i as getBrotherhood, a as getBrotherhoodUsers, l as getCurrentUserBrotherhood, o as getCurrentUserBrotherhoodUsers, u as getPublicBrotherhoods, f as joinBrotherhood, d as leaveBrotherhood };
