Skip to content

Commit

Permalink
Merge pull request #47 from iluxonchik/feature/govbot-0.0.16
Browse files Browse the repository at this point in the history
Feature/govbot 0.0.16
  • Loading branch information
iluxonchik authored Sep 17, 2024
2 parents 364d84b + bc0a0bd commit d71f3c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mina-govbot",
"version": "0.0.15",
"version": "0.0.16",
"description": "Discord bot for collective decision making for Mina Protocol",
"main": "index.js",
"directories": {
Expand Down
28 changes: 14 additions & 14 deletions src/utils/OCVLinkGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export class OCVLinkGenerator {
private static BASE_URL = 'http://localhost:4321/vote' // Replace with actual voting page URL
static generateFundingRoundVoteLink(fundingRoundId: number): string {
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=vote`;
}
static generateFundingRoundUnvoteLink(fundingRoundId: number): string {
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=unvote`;
}
static generateProjectVoteLink(projectId: number, phase: string): string {
return `${this.BASE_URL}/${projectId}`;
}
}
private static BASE_URL = 'https://ocv-staging.minaprotocol.network/vote';

static generateFundingRoundVoteLink(fundingRoundId: number): string {
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=vote`;
}

static generateFundingRoundUnvoteLink(fundingRoundId: number): string {
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=unvote`;
}

static generateProjectVoteLink(projectId: number, phase: string): string {
return `${this.BASE_URL}/${projectId}`;
}
}

0 comments on commit d71f3c4

Please sign in to comment.