Skip to content

Commit

Permalink
Merge pull request #85 from Giveth/develop
Browse files Browse the repository at this point in the history
Update add-organisation
  • Loading branch information
aminlatifi authored Jun 13, 2024
2 parents 8a5cc0f + e3e2e96 commit 09dfc19
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Devouch is a decentralized application that allows users to attest to projects c

```bash
# 0. Copy the org-config.template.json to org-config.json
cp org-config.template.jsonc org-config.json
cp org-config.template.jsonc org-config.jsonc

# 1. Fill the config with your organisation data
# 2. Run the script to add your organisation data to migrations
Expand Down
29 changes: 15 additions & 14 deletions add-organisation.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
const createOrganisationAddMigration =
require("./db/create-organisation-add-migration").default;

const ORGANISATION_NAME = "Optimism Super Delegate"; // Replace with your own organisation name
const SCHEMA_ID =
"0xe4a196f8ea37d5f9699b095594e44b465b2703eff0615cf9766060786eef517b"; // Replace with your own schema id
const AUTHORIZED_ATTESTOR = "0x93E79499b00a2fdAAC38e6005B0ad8E88b177346";
const COLOR = "#ff0420";
// staging: eth-sepolia
// production: optimism-mainnet
const network = "optimism-mainnet";
const fs = require("fs");
const jsonc = require("jsonc-parser");

function main() {
const orgConfig = fs.readFileSync("org-config.jsonc", {
encoding: "utf-8",
});
const parsedData = jsonc.parse(orgConfig);
const { name, schemaId, authorizedAttestor, network, color, startBlock } =
parsedData;

createOrganisationAddMigration(
ORGANISATION_NAME,
SCHEMA_ID,
AUTHORIZED_ATTESTOR,
COLOR,
network
name,
schemaId,
authorizedAttestor,
color,
network,
startBlock
);
}

Expand Down
13 changes: 0 additions & 13 deletions org-config.json

This file was deleted.

0 comments on commit 09dfc19

Please sign in to comment.