Skip to content

Commit

Permalink
update add-organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
aminlatifi committed Jun 13, 2024
1 parent f1b497b commit 108d80e
Showing 1 changed file with 15 additions and 14 deletions.
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 = "Giveth Verifier"; // Replace with your own organisation name
const SCHEMA_ID =
"0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404"; // Replace with your own schema id
const AUTHORIZED_ATTESTOR = "0x93E79499b00a2fdAAC38e6005B0ad8E88b177346";
const COLOR = "#8668fc";
// 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

0 comments on commit 108d80e

Please sign in to comment.