Skip to content

decentdao/decent-interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b7f0048 · Dec 18, 2024
May 15, 2024
Jun 24, 2024
Dec 5, 2024
Dec 1, 2024
Dec 18, 2024
Nov 8, 2024
Apr 30, 2024
Nov 14, 2024
Feb 10, 2024
Mar 11, 2024
May 8, 2024
Nov 13, 2024
Sep 19, 2024
Mar 7, 2024
Mar 7, 2024
Apr 30, 2024
Aug 23, 2024
Dec 1, 2024
Jul 13, 2024
Dec 16, 2024
Dec 16, 2024
Oct 1, 2024
May 15, 2024
Jul 23, 2024

Repository files navigation

Decent Interface

Local Development

Clone the repository

$ git clone [email protected]:decentdao/decent-interface.git

Change to application's Node.js version

$ nvm use

Install the dependencies

$ npm install

Running development environment (without Netlify functions)

$ npm run dev

Running development environment (with Netlify functions)

$ npm run dev:netlify

Netlify functions

We're using Netlify functions for retrieving various off-chain data. Currently it's being used to fetch abstract address's ERC-20, ERC-721 and DeFi balances through Moralis. It is crucial to have Netlify functions running locally to work with anything related to DAO treasury, for instance

  • Treasury page
  • Payments feature

Subgraph

We're using Subgraph to index certain "metadata" events to simplify data fetching from application site. Repository, that implements mapping located here.

If you updated mapping and deployed new version - you might need to rebuild Subgraph artifacts. Use command below.

Build Subgraph artifacts

$ npm run graphql:build

Deployment Notes

The "dev" and "prod" environments of this app are currently deployed via Netlify.

The "dev" environment tracks the develop branch, and the "prod" environment tracks the main branch.