Skip to content

Commit

Permalink
add giveth verificationt team
Browse files Browse the repository at this point in the history
  • Loading branch information
divine-comedian committed May 10, 2024
1 parent dd3ca27 commit 992e8b1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
8 changes: 4 additions & 4 deletions add-organisation.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const createOrganisationAddMigration =
require("./db/create-organisation-add-migration").default;

const ORGANISATION_NAME = "Trace"; // Replace with your own organisation name
const ORGANISATION_NAME = "Giveth Verification Team"; // Replace with your own organisation name
const SCHEMA_ID =
"0x2e22df9a11e06c306ed8f64ca45ceae02efcf8a443371395a78371bc4fb6f722"; // Replace with your own schema id
const AUTHORIZED_ATTESTOR = "0xF23eA0b5F14afcbe532A1df273F7B233EBe41C78";
const COLOR = "#FF0000";
"0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404"; // Replace with your own schema id
const AUTHORIZED_ATTESTOR = "0x826976d7C600d45FB8287CA1d7c76FC8eb732030";
const COLOR = "#7f64cb";

function main() {
createOrganisationAddMigration(
Expand Down
25 changes: 25 additions & 0 deletions db/migrations/1715344741698-AddGiveth Verification Team.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

module.exports = class AddGivethVerificationTeam1715344741698 {
name = "AddGivethVerificationTeam1715344741698";

async up(db) {
// add organisation with name "Giveth Verification Team" and schema id "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404"
await db.query(
`INSERT INTO "organisation" ("id", "name", "issuer", "color")
VALUES (
'0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404',
'Giveth Verification Team',
'0x826976d7c600d45fb8287ca1d7c76fc8eb732030',
'#7f64cb'
)`
);
}

async down(db) {
// remove organisation with name "Giveth Verification Team" and schema id "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404"
await db.query(
`DELETE FROM "organisation" WHERE "id" = '0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404'`
);
}
};

0 comments on commit 992e8b1

Please sign in to comment.