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