-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmodulesCopy.ts
More file actions
204 lines (203 loc) · 6.23 KB
/
Copy pathmodulesCopy.ts
File metadata and controls
204 lines (203 loc) · 6.23 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
/**
* Object representing the structure of copy texts used in various parts of the GovKit Modules package.
* Each property in the object corresponds to a specific component or feature, containing the necessary
* text labels or functions that return text strings.
*/
export const modulesCopy = {
addressInput: {
clear: 'Clear',
paste: 'Paste',
checksum: 'Invalid checksum',
},
assetDataListItemStructure: {
unknown: 'Unknown',
},
memberDataListItemStructure: {
yourDelegate: 'Your Delegate',
you: 'You',
delegations: 'Delegations',
votingPower: 'Voting Power',
},
actionSimulation: {
action: 'action',
actions: 'actions',
totalActionsTerm: 'Total actions',
lastSimulationTerm: 'Last simulation',
never: 'Never',
executableTerm: 'Executable',
simulateAgain: 'Simulate again',
simulate: 'Simulate',
simulating: 'Simulating',
viewOnTenderly: 'View on Tenderly',
likelyToSucceed: 'Likely to succeed',
likelyToFail: 'Likely to fail',
unknown: 'Unknown',
},
proposalActionsContainer: {
emptyHeader: 'No actions added',
},
proposalActionsFooter: {
collapse: 'Collapse all',
expand: 'Expand all',
},
proposalActionsItem: {
dropdownLabel: 'More',
nativeSendAlert: 'Proceed with caution',
nativeSendDescription: (amount: string, symbol: string) =>
`This action attempts to send ${amount} ${symbol}. This could cause the action to fail or result in a loss of funds.`,
menu: {
BASIC: 'Basic',
dropdownLabel: 'View action as',
DECODED: 'Decoded',
RAW: 'Raw',
},
},
proposalActionsDecoder: {
copyData: 'Copy data',
add: 'Add',
validation: {
required: (label: string) => `${label} is required.`,
boolean: (label: string) => `${label} must be set to "true" or "false".`,
address: (label: string) => `${label} is not a valid address.`,
bytes: (label: string) => `${label} is not a valid bytes value.`,
unsignedNumber: (label: string) => `${label} is not a valid uint value.`,
},
},
proposalActionChangeMembers: {
summary: 'Summary',
added: 'Added',
removed: 'Removed',
members: 'members',
adjustMemberCount: {
addMembers: 'Add members',
removeMembers: 'Remove members',
},
existingMembers: 'Existing members',
blockNote: 'At the block in which the proposal was created',
},
proposalActionsChangeSettings: {
existingToggle: 'Existing',
proposedToggle: 'Proposed',
},
proposalActionsUpdateMetadata: {
logoTerm: 'Logo',
nameTerm: 'Name',
linkTerm: 'Links',
descriptionTerm: 'Description',
summaryTerm: 'Summary',
processKeyTerm: 'Process Key',
existingToggle: 'Existing',
proposedToggle: 'Proposed',
},
proposalActionsTokenMint: {
summaryHeading: 'Summary',
newTokensTerm: 'New tokens',
newHoldersTerm: 'New holders',
totalTokenSupplyTerm: 'Total token supply',
totalHoldersTerm: 'Total token holders',
},
proposalDataListItemStatus: {
voted: 'Voted',
ago: 'ago',
left: 'left',
in: 'in',
statusLabel: {
ACCEPTED: 'Accepted',
ADVANCEABLE: 'Advanceable',
ACTIVE: 'Active',
DRAFT: 'Draft',
EXECUTED: 'Executed',
EXPIRED: 'Expired',
FAILED: 'Failed',
PENDING: 'Pending',
EXECUTABLE: 'Executable',
REJECTED: 'Rejected',
VETOED: 'Vetoed',
UNREACHED: 'Unreached',
},
},
proposalDataListItemStructure: {
by: 'by',
creators: 'creators',
},
proposalVotingTabs: {
BREAKDOWN: 'Breakdown',
VOTES: 'Votes',
DETAILS: 'Settings',
},
proposalVotingBreakdownMultisig: {
name: 'Approval',
nameVeto: 'Veto',
description: (count: string) => `of ${count} members`,
},
proposalVotingBreakdownToken: {
option: {
yes: 'Yes',
no: 'No',
abstain: 'Abstain',
approveDescription: ' to approve',
vetoDescription: ' to veto',
},
support: {
name: 'Support',
nameVeto: 'Veto support',
description: (value: string) => `of ${value}`,
},
minParticipation: {
name: 'Minimum participation',
description: (value: string) => `of ${value}`,
},
},
proposalVotingProgressItem: {
reached: 'reached',
unreached: 'not reached',
},
proposalVotingStatus: {
main: {
proposal: 'Proposal',
stage: 'Stage',
},
secondary: {
pending: 'is pending',
active: 'left to vote',
accepted: 'has been',
executable: 'has been',
executed: 'has been',
rejected: 'has been',
expired: 'has expired',
unreached: 'not reached',
vetoed: 'has been',
advanceable: (canAdvance?: boolean, isShortWindow?: boolean) =>
!canAdvance ? 'until advanceable' : isShortWindow ? 'left to advance' : 'is',
},
status: {
accepted: 'accepted',
rejected: 'rejected',
vetoed: 'vetoed',
advanceable: 'advanceable',
executed: 'accepted',
executable: 'accepted',
},
},
proposalVotingStage: {
stage: (index: number) => `Stage ${index.toString()}`,
},
proposalVotingBodyContent: {
back: 'All bodies',
},
voteDataListItemStructure: {
yourDelegate: 'Your delegate',
you: 'You',
},
wallet: {
connect: 'Connect',
},
smartContractFunctionDataListItemStructure: {
remove: 'Remove',
notVerified: {
function: 'Unknown',
contract: 'Unverified contract',
},
},
};
export type ModulesCopy = typeof modulesCopy;