HORD Docs
  • Introduction
  • About HORD
    • An Overview of Ethereum Staking
    • Why Hord?
  • Hord ETH Staking
    • APR
    • Consensus & Execution Layer Rewards
    • Hord Reward Model
    • Protocol Fee
  • Security
    • Smart Contract Audits
    • Bug Bounty
    • Risk Disclaimer
  • hETH
    • What is hETH?
    • Auto Compounding
  • Hord Governance
    • Why Implement Governance at Hord?
    • Governance Functions
    • Proposal Submission at Hord
    • Governance Voting System & Specifications
  • HORD Token
    • Token Utilities
  • User Guides
    • Adding HORD to your Wallet
    • Staking with Hord
    • Withdrawing ETH
    • How to Bridge HORD Tokens via ChainPort
  • FAQ
  • PROTOCOL
    • 📄Smart Contracts
      • Hord Congress Members Registry
      • Hord Token
      • Maintainers Registry
      • Staking Configuration
      • Hord ETH Staking Manager (HETH)
      • Hord Congress
  • ABOUT
    • 🆘Support
    • ⚖️Legal Disclaimer
Powered by GitBook
On this page
  • Code
  • Address
  • Overview
  • Events
  • ProposalCreated
  • VoteCast
  • ProposalCanceled
  • ProposalExecuted
  • ReceivedEther
  • ExecuteTransaction
  • Read-Only Functions
  • name
  • proposalCount
  • proposals
  • getActions
  • getMembersRegistry
  • State-Changing Functions
  • setMembersRegistry
  • propose
  • castVote
  • execute
  • cancel

Was this helpful?

  1. PROTOCOL
  2. Smart Contracts

Hord Congress

Represents multi-sig wallet for HORD app.

PreviousHord ETH Staking Manager (HETH)NextSupport

Last updated 2 years ago

Was this helpful?

Code

HordCongress.sol

Address

HordCongress is deployed at on the Ethereum mainnet.

Overview

Standard implementation of the 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

event ProposalCanceled(uint id);
  • Emitted each time when a proposal has been canceled.

ProposalExecuted

event ProposalExecuted(uint id);
  • Emitted each time when a proposal has been executed.

ReceivedEther

event ReceivedEther(address sender, uint amount);
  • Emitted each time when ether is received.

ExecuteTransaction

event ExecuteTransaction(address indexed target, uint value, string signature,  bytes data);
  • Emitted each time when transaction is executed.

Read-Only Functions

name

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

proposalCount

function proposalCount() external view returns (uint);
  • Returns the total number of proposals.

proposals

function proposals(uint256 proposalId) external view returns (Proposal memory);
  • Returns official record of all proposals ever proposed.

getActions

function getActions(uint proposalId) external view returns (address[] memory targets, uint[] memory values, string[] memory signatures, bytes[] memory calldatas);
  • Returns all actions from exact proposal.

getMembersRegistry

function getMembersRegistry()external view returns (address);
  • Returns the address of HordCongressMembersRegistry contract.

State-Changing Functions

setMembersRegistry

function setMembersRegistry(address _membersRegistry) external;
  • One time call function to set address of HordCongressMembersRegistry contract.

propose

function propose(address[] memory targets, uint[] memory values, string[] memory signatures, bytes[] memory calldatas, string memory description) external onlyMember returns (uint);
  • 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

function castVote(uint proposalId, bool support) external onlyMember;
  • Only a member of HordCongress can call this function in order to vote on a specific proposal.

  • Emits a VoteCast event.

execute

function execute(uint proposalId) external onlyMember payable;
  • 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

function cancel(uint proposalId) external onlyMember;
  • 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 .

📄
0x086A6d9FD61758096CF4F394AE7C1F9B6b4EEC14
multisignature