Hord Congress

Represents multi-sig wallet for HORD app.

Code

HordCongress.sol

Address

HordCongress is deployed at 0x086A6d9FD61758096CF4F394AE7C1F9B6b4EEC14arrow-up-right on the Ethereum mainnet.

Overview

Standard implementation of the multisignaturearrow-up-right wallet. This contract contains the initial total supply of HORD tokens.

Events

ProposalCreated

event ProposalCreated(uint id, address proposer, address[] targets, uint[] values, string[] signatures, bytes[] calldatas, string description);
  • Emitted each time when a new proposal is created.

VoteCast

event VoteCast(address voter, uint proposalId, bool support);
  • Emitted each time when a vote has been cast on a proposal.

ProposalCanceled

  • Emitted each time when a proposal has been canceled.

ProposalExecuted

  • Emitted each time when a proposal has been executed.

ReceivedEther

  • Emitted each time when ether is received.

ExecuteTransaction

  • Emitted each time when transaction is executed.

Read-Only Functions

name

  • Returns the name of the contract. [HordCongress]

proposalCount

  • Returns the total number of proposals.

proposals

  • Returns official record of all proposals ever proposed.

getActions

  • Returns all actions from exact proposal.

getMembersRegistry

  • Returns the address of HordCongressMembersRegistry contract.

State-Changing Functions

setMembersRegistry

  • One time call function to set address of HordCongressMembersRegistry contract.

propose

  • Only a member of HordCongress can call this function in order to create a proposal for which members will vote and based on the votes the proposal will be executed or rejected.

  • Returns id of new proposal.

  • Emits a ProposalCreated event.

castVote

  • Only a member of HordCongress can call this function in order to vote on a specific proposal.

  • Emits a VoteCast event.

execute

  • Only a member of HordCongress can call this function in order to execute a specific proposal which reached the minimal quorum (50% or more of the votes are in favor).

  • Emits a ExecuteTransaction and ProposalExecuted events.

cancel

  • Only a member of HordCongress can call this function in order to cancel a specific proposal which didn`t reach the minimal quorum (less than 50% of votes are in favor).

  • Emits a ProposalCanceled event .

Last updated