forked from helium/helium-vote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
120 lines (119 loc) · 4.53 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Use this example as a placeholder you can copy and paste into the array below when submitting a PR to create a new community vote
const templateExample = {
// The ID should be a unique ID for each vote. This will also be what populates the URL (e.g. heliumvote.com/1234)
id: "135xR8htbqTHCkWVPJEeqJuDVtyZJB852WuAzL7XwSVaVhdtH8q",
// The deadline is the block at which all voting wallets' balances will be counted toward a vote
deadline: 1059000,
// This is the link where the "More details" button goes
link: "https://github.com/helium/HIP",
// The title of the vote. If it's for a HIP, put a descriptive title like "HIP 39: Redenomination"
name: "Test Vote: Ice Cream",
tags: {
// If it's a HIP, put "HIP [#]" as the primary tag
primary: "HIP 31",
// Use the optional secondary tag for a general descriptive term, such as "Economics"
secondary: "Ice Cream",
},
// An array of the person(s) calling for the vote
authors: [
{
// How this person is generally known in the community
nickname: "@cokes",
// A link to their profile (GitHub is probably the most useful, maybe Twitter?)
link: "https://github.com/user",
},
],
// A brief description of what the vote is for. It doesn't have to be comprehensive.
description:
"Vote for your favorite ice cream flavor. This voting mechanism will be used for future Helium Improvement Proposal voting.",
// If this is a "For" vs "Against" vote, put the "For" option first, to keep the colour scheme consistent
outcomes: [
{
// This is the title of each option. Try to keep it to a couple words at most to make the interface as readable as possible
value: "Chocolate",
// The wallet address associated with each option
address: "13uWWxgbqa5i9W7SFme6NZ2Brr1jDiga4JP7JdQyBRNer9RGoii",
},
{
value: "Vanilla",
address: "13yWhaorHn8Es6jujCw9HCFAjDyecCv5HMwzoa4gp26awSw7z3b",
// an optional color field that will override the default vote option colors
color: "#EEEEEE",
},
],
};
module.exports = {
serverRuntimeConfig: {
votes: [
{
id: "135xR8htbqTHCkWVPJEeqJuDVtyZJB852WuAzL7XwSVaVhdtH8q",
deadline: 1059000,
link: "https://github.com/helium/HIP",
name: "Test Vote: Ice Cream",
tags: {
primary: "TEST",
secondary: "Ice Cream",
},
authors: [
{
nickname: "@cokes",
// link: "https://github.com/user",
},
],
description:
"Vote for your favorite ice cream flavor. This voting mechanism will be used for future Helium Improvement Proposal voting.",
outcomes: [
{
value: "Chocolate",
address: "13uWWxgbqa5i9W7SFme6NZ2Brr1jDiga4JP7JdQyBRNer9RGoii",
},
{
value: "Strawberry",
address: "14aVVtQvq7QK2FmU3ZFnXM3o3Nodzve8cFjDQniJGJbq6AZ29a7",
},
{
value: "Vanilla",
address: "13yWhaorHn8Es6jujCw9HCFAjDyecCv5HMwzoa4gp26awSw7z3b",
},
],
},
{
id: "14MnuexopPfDg3bmq8JdCm7LMDkUBoqhqanD9QzLrUURLZxFHBx",
deadline: 1105440,
link: "https://github.com/helium/HIP/blob/master/0039-hnt-redenomination.md",
name: "HIP 39: Redenomination",
description:
"This proposal suggests a redenomination of the conversion rate between bones and HNT. Currently there are 100,000,000 (10^8) bones per HNT and under the proposed redenomination the conversion rate would be adjusted to 100,000 (10^5) bones per HNT. This change represents a 1000:1 token redenomination. Rough consensus to pass this HIP is achieved when the 'For Redenomination' vote receives at least 66% of the vote.",
authors: [
{
nickname: "@JMF",
link: "https://github.com/JMFayal",
},
],
tags: {
primary: "HIP 39",
secondary: "Economic",
},
outcomes: [
{
value: "For Redenomination",
address: "13qVx7MRzocyKZ4bW3oEkvnQrTK4DftKEcjHVYP1zhMtUhnqYye",
},
{
value: "Against Redenomination",
address: "13pPtEyg3idu2GDeFCjbuU1uVLaZax9yBqDouPPdgsAYznq7982",
},
],
},
],
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
config.resolve.fallback.dns = false;
config.resolve.fallback.net = false;
config.resolve.fallback.tls = false;
}
return config;
},
};