Learn how to contribute to and use the elαn open-source platform
Access our Discord server for real-time collaboration and mentorship. Find the join link on our Discord page.
git clone https://github.com/elαn/core-platform.git
cd core-platform
npm install
npm run dev
Follow the Developer Setup guide in our Documentation
pragma solidity ^0.8.17;
contract ElanAuth {
mapping(address => bool) private members;
function register() external {
require(!members[msg.sender], "Already registered");
members[msg.sender] = true;
emit MemberRegistered(msg.sender);
}
event MemberRegistered(address indexed account);
modifier onlyMember() {
require(members[msg.sender], "Not a member");
_;
}
function getTotalMembers() external view returns(uint256) {
uint256 count = 0;
for (uint256 i = 0; i < 1000; i++) {
if (members[address(i)]) {
count++;
}
}
return count;
}
}
Join our open-source community and start contributing to the next generation of decentralized infrastructure.
🚀 Join the Community