Hord Congress Members Registry

Represent HORD Congress Members Registry

Code

HordCongressMembersRegistry.sol

Address

HordCongressMembersRegistry is deployed at 0x29A5f08a38c79a2dD1DF055792822eB1E163d574 on the Ethereum mainnet.

Overview

Registry of HordCongress members.

Events

MembershipChanged

event MembershipChanged(address member, bool isMember);
  • Emitted each time when someone is added or removed from members.

Read-Only Functions

name

function name() external view returns (string memory);
  • Returns the name of the contract. [HordCongressMembersRegistry]

hordCongress

function hordCongress() external view returns (address);
  • Returns the address of HordCongress contract.

address2Member

function address2Member(address account) external view returns (Member memory);
  • Returns name of the account and since he has been a member of the congress .

allMembers

function allMembers(uint accountId) external view returns (address);
  • Returns the address of specific accountId.

isMember

function isMember(address _address) external view returns (bool);
  • Returns true/false depending on whether the _address is a member of congress or not.

getNumberOfMembers

function getNumberOfMembers() external view returns (uint);
  • Returns how many members are currently in congress.

getAllMemberAddresses

function getAllMemberAddresses() external view returns (address[] memory);
  • Returns addresses of all members in congress.

getMemberInfo

function getMemberInfo(address _member) external view returns (address, bytes32, uint);
  • Returns address and name of the _member and since he has been a member of the congress.

getMinimalQuorum

function getMinimalQuorum() external view returns (uint256);
  • Returns what is the minimum number of votes needed for the proposal to be executed.

State-Changing Functions

changeMinimumQuorum

function changeMinimumQuorum(uint newMinimumQuorum) external onlyHordCongress;
  • One time call function to set address of HordCongressMembersRegistry contract.

addMember

function addMember(address targetMember, bytes32 memberName) external onlyHordCongress;
  • Add targetMember to congress.

  • Emits a MembershipChanged event.

removeMember

function removeMember(address targetMember) external onlyHordCongress;
  • Remove targetMember from congress.

  • Emits a MembershipChanged event.

Last updated