Giter VIP home page Giter VIP logo

senate-fork's Introduction

Senate

How to contribute

All pull requests should be made to the staging branch.

Adding DAOs (SnapShot)

To add a snapshot space to Senate, you will need to submit a pull request that adds the desired DAO to the seed.ts in senate/packages/database/src/seed.ts

Add the following information at the end of the DAO list.

  const [Insert DAO Name] = await prisma.dAO.upsert({
        where: { name: '[Insert DAO Name]' },
        update: {},
        create: {
            name: '[Insert DAO Name]',
            picture: '/assets/Project_Icons/[Insert DAO Name]',
            handlers: {
                create: [
                    {
                        type: DAOHandlerType.SNAPSHOT,
                        decoder: {
                            space: '[Insert DAO Name].eth'
                        }
                    }
                ]
            }
        }
    })

Add this to the "inserting subscription" section of seed.ts

  prisma.subscription.upsert({
                  where: {
                      userId_daoId: {
                          userId: seedUser.id,
                          daoId: [Insert DAO Name].id
                      }
                  },
                  create: {
                      userId: seedUser.id,
                      daoId: [Insert DAO Name].id
                  },
                  update: {}

Logos

Contact Paulo on the Senate Discord to get the relevant images, 1 svg file and 4 png files.

Upload the Logos to the following file Project_Icons found in senate/apps/senate/public/assets/Project_Icons

senate-fork's People

Contributors

andreivcodes avatar eugenptr avatar bobbayb 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.