Giter Site home page Giter Site logo

jeff1010-web / nance-interface Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 0.0 17.2 MB

An Interface of Nance platform

Home Page: https://nance.app/

TypeScript 99.31% JavaScript 0.67% CSS 0.03%
blockchain dapp ethereum governance juicebox react snapshot

nance-interface's Introduction

Nance Interface

Build

yarn install && yarn build && yarn export

Environment Variable

You should set these env variables accordingly for the app to work.

cp exmaple.env .env.local
vim .env.local

Nance API

Specify url of Nance backend as NEXT_PUBLIC_NANCE_API_URL, and your space id as NEXT_PUBLIC_OVERRIDE_SPACE.

Nance Auto API

Some tasks need to run at specific times, this is done by querying Nance-auto. We need a shared secret, NANCE_AUTO_KEY, to verify requests.

Ethereum

We need Infura RPC to interact with Ethereum. Please specify NEXT_PUBLIC_INFURA_KEY.

Juicebox Subgraph

To get infomation of Juicebox projects, we need to specify the subgraph url of Juicebox: JUICEBOX_SUBGRAPH_KEY.

Snapshot Subgraph

To find delegations, we need to specify the subgraph url of Snapshot: NEXT_PUBLIC_SNAPSHOT_SUBGRAPH_ID

NextAuth SIWE

To support session, you need to implement backend for NextAuth and set two env variables: NEXTAUTH_DOMAINS (a comma separated list of approved domains, no https://) and NEXTAUTH_SECRET

Etherscan API

NEXT_PUBLIC_ETHERSCAN_KEY Etherscan API Key, used to retrieve contract ABI when adding custom transaction action to proposal.

WalletConnect V2 ProjectId

NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID

Tenderly Simulation

TENDERLY_ACCESS_KEY, this will be used to run simulation.

Discord

We use the Discord API to fetch a user's guilds (serves) and guild channels when creating a Nance space. To do this you need to gather the following from the Discord Developer Portal:

  • NEXT_PUBLIC_DISCORD_CLIENT_ID
  • NEXT_PUBLIC_DISCORD_REDIRECT_URI_BASE (need to add this in your Discord Developer Portal as well)
  • DISCORD_CLIENT_SECRET
  • DISCORD_NANCE_BOT_KEY

We use a Discord webhook to alert us when someone fills out a contact form. To do this you need to set:

  • DISCORD_CONTACT_WEBHOOK

Redis

We use a hosted Redis instance on Upstash to store a user's Discord session and link it to their wallet. To do this you need to set:

  • REDIS_HOST
  • REDIS_PORT
  • REDIS_PASSWORD

Framework & Library

nance-interface's People

Contributors

jeff1010-web avatar twodam avatar jigglyjams avatar nnnnicholas avatar

Stargazers

 avatar  avatar DevRose04 avatar tulip0208.dao avatar  avatar  avatar Universal Man avatar omega avatar  avatar gold@pple avatar  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.