-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = class AddRF4Badgeholder1727706750760 { | ||
name = "AddRF4Badgeholder1727706750760"; | ||
|
||
async up(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "optimism-mainnet") return; | ||
// add organisation with name "RF 4 Badgeholder" and schema id "0xfdcfdad2dbe7489e0ce56b260348b7f14e8365a8a325aef9834818c00d46b31b" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color") | ||
VALUES ( | ||
'0xfdcfdad2dbe7489e0ce56b260348b7f14e8365a8a325aef9834818c00d46b31b', | ||
'RF 4 Badgeholder', | ||
'0xe4553b743e74da3424ac51f8c1e586fd43ae226f', | ||
'#ff0420' | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "optimism-mainnet") return; | ||
// remove organisation with name "RF 4 Badgeholder" and schema id "0xfdcfdad2dbe7489e0ce56b260348b7f14e8365a8a325aef9834818c00d46b31b" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '0xfdcfdad2dbe7489e0ce56b260348b7f14e8365a8a325aef9834818c00d46b31b'` | ||
); | ||
} | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module.exports = class AddGivethVerifier1728036830147 { | ||
name = "AddGivethVerifier1728036830147"; | ||
|
||
async up(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "optimism-mainnet") return; | ||
// add organisation with name "Giveth Verifier" and schema id "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404" | ||
await db.query( | ||
`INSERT INTO "organisation" ("id", "name", "issuer", "color") | ||
VALUES ( | ||
'0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404', | ||
'Giveth Verifier', | ||
'0x93e79499b00a2fdaac38e6005b0ad8e88b177346', | ||
'#8668fc' | ||
)` | ||
); | ||
} | ||
|
||
async down(db) { | ||
const SQUID_NETWORK = process.env.SQUID_NETWORK || "eth-sepolia"; | ||
if (SQUID_NETWORK !== "optimism-mainnet") return; | ||
// remove organisation with name "Giveth Verifier" and schema id "0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404" | ||
await db.query( | ||
`DELETE FROM "organisation" WHERE "id" = '0xf63f2a7159ee674aa6fce42196a8bb0605eafcf20c19e91a7eafba8d39fa0404'` | ||
); | ||
} | ||
}; | ||
|