Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme & migration script #87

Merged
merged 6 commits into from
Jun 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

# Introduction

Devouch is a decentralized application that allows users to attest to projects credibility by their vouches or flags. The backend is built on Subsquid and uses a Postgres database.

# Getting Started

Devouch is a decentralized application that allows users to attest to project's credibility by their vouches or flags. The backend is built on Subsquid and uses a Postgres database.

## Add new organisation

Expand All @@ -17,4 +14,8 @@ cp org-config.template.jsonc org-config.jsonc
# 2. Run the script to add your organisation data to migrations
npm run add-organization
```
Then create a PR to the main branch to be reviewed and merged.
Then create a PR to the main branch to be reviewed and merged.

## Further Documentation

More information can be found on the [Giveth docs website](https://docs.giveth.io/devouch).
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
module.exports = class AddGitcoinPassportHolder1728040623823 {
name = "AddGitcoinPassportHolder1728040623823";
module.exports = class AddGitcoinPassportHolder1728389519384 {
name = "AddGitcoinPassportHolder1728389519384";

async up(db) {
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia";
if (SQUID_NETWORK !== "optimism-mainnet") return;
// add organisation with name "Gitcoin Passport Holder" and schema id "0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89"
await db.query(
`INSERT INTO "organisation" ("id", "name", "issuer", "color")
`INSERT INTO "organisation" ("id", "name", "issuer", "color", "start_block")
VALUES (
'0x6ab5d34260fca0cfcf0e76e96d439cace6aa7c3c019d7c4580ed52c6845e9c89',
'Gitcoin Passport Holder',
'0x843829986e895facd330486a61ebee9e1f1adb1a',
'#00433b'
'#00433b',
108517456
)`
);
}
Expand Down