DAOhaus
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- tags: v3 --- # app.daohaus.club v2 Data 1. diagram of each app domain - app/api/subgraphs 2. outline data sources for each ## Web app data sources ![](https://i.imgur.com/epesaiz.png) ### Inputs #### 1. RPC - Contract calls and transactions #### 2. data.daohaus api - read/write dao metadata - general metadata - boost/playlist data - minion vault data - read cached token data - price, symbols - endpoints that wrap other apis that require auth secrets - pinata temp key - discord/discourse #### 3. block explorer apis - fetch abis for minion form builder - fetch native balances for minions #### 4. TheGraph - daohaus supergraph - 1 per netowrk - indexes all moloch and factory contract activity - minion factories - escrow minion per network - daohaus stats - 1 per network - moloch and factory data shaped for bank chart and history (in vault section) - daohaus boosts graph - 1 per network - boost specific mappings (transmutation/wrap and zap) - ens - 1 subgraph - ens reverse lookup on mainnet - nft subgraphs - 2 per network (721 and 1155) - used to populate nft forms - boost specific - superfluid, snapshot, poap - shaman subgraph - only used in bolt on so far #### 5. boost specific apis - Mintgate - Supefluid graph - Snapshot graph - Discord/discourse (wrapped in daohaus api) - Rarible #### 6. Ceramic - read/write user profile data - 3box/idx #### 7. Other apis - pinata/ipfs to pin images and display ipfs docs - gnosis api to validate safe minion setup - error log? - is this still used? - do we want this? - maybe remove or really hook it up ## Api data sources/storage ![](https://i.imgur.com/mXMplxC.png) #### 1. RPC - validate signatures for writing dao data - make contract calls for balances and nft data for minion vaults #### 2. block explorer api - etherscan variants, blockscout variants - gets token data by address for minion vault tokens/balances/history #### 3. subgraphs - most jobs/api endpoints use these to get graph data for whatever is needed with the job - minion lists - member lists - proposals - daos - ect... #### 4. wrapped apis - discord boost activation - check if a channel is available and bot can access - discourse boost - creates forum channel on activation - creates post on new proposal submission #### 5. coingecko api - token list + price data for all token in guildbanks - token lists + price data for minion vaults #### 6. covalent api - gets token data by address for minion vault tokens/balances/history - nft data for minions - kovan,mainnet,polygon,arbitrum only #### 7. s3 buckets ** top priority to replace** - jobs run on intervals that aggregate data and put in json docs in s3 buckets - dao metadata pulled from airtable - merges daa meta, boost data, audit logs data, allies data, playlist data - dao guildbank token list pulled from subgraphs and hydrated with current token price and data - dao minion vault data pulled from subgraphs, hydrated with and various apis and formatted #### 8. airtable ** top priority to replace** ###### input - new dao registration creates dao metadata record - editing dao metadata updates metadata record - adding a boost adds boost record + updates dao metadata/playlist data - update boost settings updates a boost record + dao metadata/playist data ###### output - jobs dumping data to s3 pull this data #### 8. api endpoints used by web app /dao/{id} - get all metadata for a single dao by contract address from s3 /dao/slug/{slug} - get all metadata for a single dao by slug - not used /dao/update - put to handle adding a new dao and udpating dao metadata on an existing dao /dao/boost - post to add a boost and update boost settings /dao/ipfs-key - post to get pinata one time upload key /dao/discord-status/{channelId} - wrap discord api and checks to see if a discord channel is set up for haus bot /dao/discourse-topics/{categoryId} - was added to pull discourse posts - not used /dao/discourse-topic - post to create new discourse forum post for a proposal /dao/get-utc - server time - not used /dao/haus/circulating-supply - coingecko uses this - might be helpful when we put haus in the app /dao/vaults - post with an array of minion addresses in the body - returns all minion vault data from s3 /dao/vaults/{id} - gets vault data for a single minion vault by minion address /dao/refresh-vault - put to trigger a vault refresh job and s3 dump with a single minion vault or dao address /dao-tokens - gets all hydrated token data for dao vault tokens - name, symbol, current usd price ## TheGraph data sources ![](https://i.imgur.com/CSX0TlT.png) #### 1.-7. Moloch factory contracts & Minion factory contracts - data source mapping on the factory contract for each moloch/minion version - single summon event to create moloch entities and register a mooloch template with the moloch address - template mappings - mapping for all events on the moloch/minion contract take event data and create/update entities #### 8. Escrow minion contracts - single escrow minion contract on each network - data source mapping for escrow minion events to add update entity data #### 9.-12. Stats graph moloch factory contracts - stats graph tracks historical token balance movements in guildbanks mostly used in bank charts - similar factory/template pattern as above #### 13.-15. Boost graph contracts - available for boost specific mappings - wrap n zap factory - tracks new wrap n zaps and maps them to a moloch address - transmutation factory - not used anymore #### 16.-17. Shamans graph - will be used to watch all shaman factories - wraps shaman factory contracts and creates entites and templates for mappings on shaman contract themselves - currently have a v2.5 sage minion shaman and the yeeter shaman

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully