Coder Social home page Coder Social logo

daohaus-subgraph's Introduction

daohaus-subgraph

DAOHaus (Moloch DAO contract) Subgraph Development

This documentation supports the building of the DAOHaus subgraph.

Tasks

  • Share Holder Distribution for each DAO deployed. How many voting shares each DAOmember holds.
  • Voter % per Proposal - How many token holders vote per proposal, or a snapshot average.
  • Ragequiter % per DAO

Smart Contract in the Ecosystem

Type Notes
Contract Address 0x38064F40B20347d58b326E767791A6f79cdEddCe
Start Block 11499151
Name MolochSummoner
Role Moloch DAO v2 with multi-summoner capabilities, plus register function for metadata. Summoner uses EIP-1167 proxy pattern to decrease gas costs significantly w/r to moloch v2 summoning.

Diagram

https://miro.com/app/board/uXjVPGu6mgE=/

Events

    event SummonComplete(address indexed summoner, address[] tokens, uint256 summoningTime, uint256 periodDuration, uint256 votingPeriodLength, uint256 gracePeriodLength, uint256 proposalDeposit, uint256 dilutionBound, uint256 processingReward
    emitted by function summonMoloch
    
    event SubmitProposal(address indexed applicant, uint256 sharesRequested, uint256 lootRequested, uint256 tributeOffered, address tributeToken, uint256 paymentRequested, address paymentToken, string details, bool[6] flags, uint256 proposalId, address indexed delegateKey, address indexed memberAddress);
    emitted by function _submitProposal
        
    event SponsorProposal(address indexed delegateKey, address indexed memberAddress, uint256 proposalId, uint256 proposalIndex, uint256 startingPeriod
    emitted by function sponsorProposal
    
    event SubmitVote(uint256 proposalId, uint256 indexed proposalIndex, address indexed delegateKey, address indexed memberAddress, uint8 uintVote);
    emitted by function submitVote
    
    event ProcessProposal(uint256 indexed proposalIndex, uint256 indexed proposalId, bool didPass);
    emitted by function processProposal
    
    event ProcessWhitelistProposal(uint256 indexed proposalIndex, uint256 indexed proposalId, bool didPass);
    emitted by function ProcessWhitelistProposal
    
    event ProcessGuildKickProposal(uint256 indexed proposalIndex, uint256 indexed proposalId, bool didPass);
    emitted by function sponsorProposal
    
    event Ragequit(address indexed memberAddress, uint256 sharesToBurn, uint256 lootToBurn);
    emitted by function _ragequit
    
    event TokensCollected(address indexed token, uint256 amountToCollect);
    emitted by function collectTokens
    
    event CancelProposal(uint256 indexed proposalId, address applicantAddress
    emitted by function cancelProposal
    
    event UpdateDelegateKey(address indexed memberAddress, address newDelegateKey);
    emitted by function updateDelegateKey
    
    event Withdraw(address indexed memberAddress, address token, uint256 amount);
    emitted by function _withdrawBalance    

Roles

summoner
shaman
member

States to Track

Members
shares
loot
totalShares
Proposal
ragequit

Entities

Moloch
Member
Vote
Proposal
Ragequit

daohaus-subgraph's People

Contributors

dondaryl avatar ripples3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.