senate-xyz / senate

Home Page:https://senatelabs.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://senatelabs.xyz

License:GNU General Public License v3.0


Languages

Language:Rust 80.5%Language:TypeScript 12.6%Language:HTML 6.6%Language:JavaScript 0.3%Language:CSS 0.1%Language:Shell 0.0%