Skip to content

Commit d71f3c4

Browse files
authored
Merge pull request #47 from iluxonchik/feature/govbot-0.0.16
Feature/govbot 0.0.16
2 parents 364d84b + bc0a0bd commit d71f3c4

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mina-govbot",
3-
"version": "0.0.15",
3+
"version": "0.0.16",
44
"description": "Discord bot for collective decision making for Mina Protocol",
55
"main": "index.js",
66
"directories": {

src/utils/OCVLinkGenerator.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
export class OCVLinkGenerator {
2-
private static BASE_URL = 'http://localhost:4321/vote' // Replace with actual voting page URL
3-
4-
static generateFundingRoundVoteLink(fundingRoundId: number): string {
5-
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=vote`;
6-
}
7-
8-
static generateFundingRoundUnvoteLink(fundingRoundId: number): string {
9-
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=unvote`;
10-
}
11-
12-
static generateProjectVoteLink(projectId: number, phase: string): string {
13-
return `${this.BASE_URL}/${projectId}`;
14-
}
15-
}
2+
private static BASE_URL = 'https://ocv-staging.minaprotocol.network/vote';
3+
4+
static generateFundingRoundVoteLink(fundingRoundId: number): string {
5+
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=vote`;
6+
}
7+
8+
static generateFundingRoundUnvoteLink(fundingRoundId: number): string {
9+
return `${this.BASE_URL}/funding-round?id=${fundingRoundId}&action=unvote`;
10+
}
11+
12+
static generateProjectVoteLink(projectId: number, phase: string): string {
13+
return `${this.BASE_URL}/${projectId}`;
14+
}
15+
}

0 commit comments

Comments
 (0)