tx · AbEihX2FzJ5ZujcZNiAzjfTEfuPvx9BxVCAvwbgZkArn 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg: -0.01000000 Waves 2022.03.28 10:46 [1983477] smart account 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg > SELF 0.00000000 Waves
{ "type": 13, "id": "AbEihX2FzJ5ZujcZNiAzjfTEfuPvx9BxVCAvwbgZkArn", "fee": 1000000, "feeAssetId": null, "timestamp": 1648453628818, "version": 2, "chainId": 84, "sender": "3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg", "senderPublicKey": "C2aAS9D6FqfbrkCuCQCtPWAiopjyagvitFLjRuLcRPYt", "proofs": [ "5dpvYKBx8tdRrKuXD3FvExGs536uT1e16hkKfCQbyqzpRYLuUHuZi82PfpYZEQMKYyQSJgoRBYTsk3RLcC8qrSSQ" ], "script": "base64:AAIFAAAAAAAAAEgIAhIMCgoICAgBCAEBAQEBEgQKAggIEgQKAggEEgMKAQgSBAoCCAESABIDCgEBEgASABIDCgEBEgASAwoBARIDCgEBEgMKAQgAAAA6AAAAAAlzZXBhcmF0b3ICAAAAAl9fAAAAAA9tYXhEZXB0aERlZmF1bHQAAAAAAAAAAAoBAAAABWFzSW50AAAAAQAAAAN2YWwEAAAAByRtYXRjaDAFAAAAA3ZhbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAZ2YWxJbnQFAAAAByRtYXRjaDAFAAAABnZhbEludAkAAAIAAAABAgAAABtGYWlsZWQgdG8gY2FzdCBpbnRvIEludGVnZXIBAAAABmFzQm9vbAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAB3ZhbEJvb2wFAAAAByRtYXRjaDAFAAAAB3ZhbEJvb2wJAAACAAAAAQIAAAAbRmFpbGVkIHRvIGNhc3QgaW50byBCb29sZWFuAAAAAAxrZXlG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: F4pAAvH83rQBNzq6Zpq9dPz6biTGyoXjEL3bdAdKvN6W Next: BY146xhWWtTYG49SsmYyq9ffEyqVGYP1QwX9vqnsypzt Diff:
Old | New | Differences | |
---|---|---|---|
87 | 87 | let verifiedIdx = 3 | |
88 | 88 | let totalYes = parseIntValue(parts[totalYesIdx]) | |
89 | 89 | let totalNo = parseIntValue(parts[totalNoIdx]) | |
90 | - | let verified = if ((size(parts) == | |
90 | + | let verified = if ((size(parts) == 4)) | |
91 | 91 | then (parts[verifiedIdx] == "true") | |
92 | 92 | else false | |
93 | 93 | $Tuple3(totalYes, totalNo, verified) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let maxDepthDefault = 10 | |
7 | 7 | ||
8 | 8 | func asInt (val) = match val { | |
9 | 9 | case valInt: Int => | |
10 | 10 | valInt | |
11 | 11 | case _ => | |
12 | 12 | throw("Failed to cast into Integer") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func asBool (val) = match val { | |
17 | 17 | case valBool: Boolean => | |
18 | 18 | valBool | |
19 | 19 | case _ => | |
20 | 20 | throw("Failed to cast into Boolean") | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | let keyFeeAmount = makeString(["%s", "fee"], separator) | |
25 | 25 | ||
26 | 26 | let keyWxAssetId = makeString(["%s", "wxAssetId"], separator) | |
27 | 27 | ||
28 | 28 | let keyVotingThreshold = makeString(["%s", "votingThreshold"], separator) | |
29 | 29 | ||
30 | 30 | let keyVotingDuration = makeString(["%s", "epochLength"], separator) | |
31 | 31 | ||
32 | 32 | let keyVoteBeforeElimination = makeString(["%s", "voteBeforeElimination"], separator) | |
33 | 33 | ||
34 | 34 | let keyStartHeight = makeString(["%s", "currentVotingHeightStart"], separator) | |
35 | 35 | ||
36 | 36 | let keyCurrentPeriod = makeString(["%s", "currentEpoch"], separator) | |
37 | 37 | ||
38 | 38 | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
39 | 39 | ||
40 | 40 | let keyEmissionContract = makeString(["%s", "emissionContract"], separator) | |
41 | 41 | ||
42 | 42 | let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator) | |
43 | 43 | ||
44 | 44 | let keyLatestProcessedAsset = makeString(["%s", "latestProcessedAsset"], separator) | |
45 | 45 | ||
46 | 46 | let keyLatestProcessedUser = makeString(["%s", "latestProcessedUser"], separator) | |
47 | 47 | ||
48 | 48 | let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator) | |
49 | 49 | ||
50 | 50 | let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator) | |
51 | 51 | ||
52 | 52 | let keyMaxDepth = makeString(["%s", "maxDepth"], separator) | |
53 | 53 | ||
54 | 54 | func keyVotesTransferFinishedByPeriod (period) = makeString(["%s", "votesTransferFinished", toString(period)], separator) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | let assetsListName = "__assets" | |
58 | 58 | ||
59 | 59 | func getVotesListName (assetId) = ("%s__votes__" + assetId) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyListHead (listName) = makeString([("%s%s" + listName), "head"], separator) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyListSize (listName) = makeString([("%s%s" + listName), "size"], separator) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyListPrev (listName,id) = makeString([("%s%s%s" + listName), id, "prev"], separator) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyListNext (listName,id) = makeString([("%s%s%s" + listName), id, "next"], separator) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyAssetVerifiedByPeriod (assetId,period) = makeString(["%s%d%s", "verifiedAt", toString(period), assetId], separator) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyVoteResultByPeriod (assetId,period) = makeString(["%s%d%s", "votingResultAtAsset", toString(period), assetId], separator) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func formatVoteResult (totalYes,totalNo,verified) = makeString(["%d%d%s", toString(totalYes), toString(totalNo), toString(verified)], separator) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func parseVoteResult (input) = { | |
84 | 84 | let parts = split(input, separator) | |
85 | 85 | let totalYesIdx = 1 | |
86 | 86 | let totalNoIdx = 2 | |
87 | 87 | let verifiedIdx = 3 | |
88 | 88 | let totalYes = parseIntValue(parts[totalYesIdx]) | |
89 | 89 | let totalNo = parseIntValue(parts[totalNoIdx]) | |
90 | - | let verified = if ((size(parts) == | |
90 | + | let verified = if ((size(parts) == 4)) | |
91 | 91 | then (parts[verifiedIdx] == "true") | |
92 | 92 | else false | |
93 | 93 | $Tuple3(totalYes, totalNo, verified) | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyUserVoteByPeriod (userAddress,assetId,period) = makeString(["%s%d%s%s", "vru", toString(period), assetId, userAddress], separator) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func formatUserVote (total,inFavor) = { | |
101 | 101 | let totalYes = if (inFavor) | |
102 | 102 | then total | |
103 | 103 | else 0 | |
104 | 104 | let totalNo = if (inFavor) | |
105 | 105 | then 0 | |
106 | 106 | else total | |
107 | 107 | makeString(["%d%d", toString(totalYes), toString(totalNo)], separator) | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func parseUserVote (input) = { | |
112 | 112 | let parts = split(input, separator) | |
113 | 113 | let totalYesIdx = 1 | |
114 | 114 | let totalNoIdx = 2 | |
115 | 115 | let totalYes = parseIntValue(parts[totalYesIdx]) | |
116 | 116 | let totalNo = parseIntValue(parts[totalNoIdx]) | |
117 | 117 | let inFavor = if ((totalYes > 0)) | |
118 | 118 | then (totalNo == 0) | |
119 | 119 | else false | |
120 | 120 | let against = if ((totalYes == 0)) | |
121 | 121 | then (totalNo > 0) | |
122 | 122 | else false | |
123 | 123 | let checkTotals = if (if (inFavor) | |
124 | 124 | then true | |
125 | 125 | else against) | |
126 | 126 | then true | |
127 | 127 | else throw("Invalid user vote value") | |
128 | 128 | if ((checkTotals == checkTotals)) | |
129 | 129 | then { | |
130 | 130 | let total = if (inFavor) | |
131 | 131 | then totalYes | |
132 | 132 | else totalNo | |
133 | 133 | $Tuple2(total, inFavor) | |
134 | 134 | } | |
135 | 135 | else throw("Strict value is not equal to itself.") | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyUserVoteHistory (type,userAddress,assetId,txId,period) = makeString(["%s%s%s%s%s%d", "history", type, assetId, userAddress, txId, toString(period)], separator) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func thisOnly (i) = if ((i.caller == this)) | |
143 | 143 | then true | |
144 | 144 | else throw("Permission denied") | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func getIntegerOrZero (key) = valueOrElse(getInteger(this, key), 0) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func getIntegerOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined")) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func getStringOrEmpty (key) = valueOrElse(getString(this, key), "") | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | let feeAmount = getIntegerOrFail(keyFeeAmount) | |
160 | 160 | ||
161 | 161 | let wxAssetId = fromBase58String(getStringOrFail(keyWxAssetId)) | |
162 | 162 | ||
163 | 163 | let votingThreshold = getIntegerOrFail(keyVotingThreshold) | |
164 | 164 | ||
165 | 165 | let votingDuration = getIntegerOrFail(keyVotingDuration) | |
166 | 166 | ||
167 | 167 | let voteBeforeElimination = getIntegerOrFail(keyVoteBeforeElimination) | |
168 | 168 | ||
169 | 169 | let startHeight = getIntegerOrFail(keyStartHeight) | |
170 | 170 | ||
171 | 171 | let currentPeriod = getIntegerOrFail(keyCurrentPeriod) | |
172 | 172 | ||
173 | 173 | let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract)) | |
174 | 174 | ||
175 | 175 | let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract)) | |
176 | 176 | ||
177 | 177 | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract)) | |
178 | 178 | ||
179 | 179 | let maxDepth = valueOrElse(getInteger(keyMaxDepth), maxDepthDefault) | |
180 | 180 | ||
181 | 181 | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
182 | 182 | let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
183 | 183 | asInt(gwxAmount) | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func getVoteResultAction (assetId,total,inFavor,period,verified) = { | |
188 | 188 | let voteResultKey = keyVoteResultByPeriod(assetId, period) | |
189 | 189 | let $t056885991 = match getString(voteResultKey) { | |
190 | 190 | case s: String => | |
191 | 191 | parseVoteResult(s) | |
192 | 192 | case _: Unit => | |
193 | 193 | match getString(keyVoteResultByPeriod(assetId, (period - 1))) { | |
194 | 194 | case s: String => | |
195 | 195 | $Tuple3(0, 0, parseVoteResult(s)._3) | |
196 | 196 | case _: Unit => | |
197 | 197 | $Tuple3(0, 0, false) | |
198 | 198 | case _ => | |
199 | 199 | throw("Match error") | |
200 | 200 | } | |
201 | 201 | case _ => | |
202 | 202 | throw("Match error") | |
203 | 203 | } | |
204 | 204 | let oldTotalYes = $t056885991._1 | |
205 | 205 | let oldTotalNo = $t056885991._2 | |
206 | 206 | let oldVerified = $t056885991._3 | |
207 | 207 | StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor) | |
208 | 208 | then total | |
209 | 209 | else 0)), (oldTotalNo + (if (inFavor) | |
210 | 210 | then 0 | |
211 | 211 | else total)), if ((verified == unit)) | |
212 | 212 | then oldVerified | |
213 | 213 | else value(verified))) | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func containsNode (listName,id) = { | |
218 | 218 | let head = getString(this, keyListHead(listName)) | |
219 | 219 | let prev = getString(this, keyListPrev(listName, id)) | |
220 | 220 | let next = getString(this, keyListNext(listName, id)) | |
221 | 221 | if (if ((id == head)) | |
222 | 222 | then true | |
223 | 223 | else (prev != unit)) | |
224 | 224 | then true | |
225 | 225 | else (next != unit) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func insertNode (listName,id) = { | |
230 | 230 | let head = getString(this, keyListHead(listName)) | |
231 | 231 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
232 | 232 | let checkNode = if (!(containsNode(listName, id))) | |
233 | 233 | then true | |
234 | 234 | else throw("Node exists") | |
235 | 235 | if ((checkNode == checkNode)) | |
236 | 236 | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if (isDefined(head)) | |
237 | 237 | then [StringEntry(keyListNext(listName, id), value(head)), StringEntry(keyListPrev(listName, value(head)), id)] | |
238 | 238 | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
239 | 239 | else throw("Strict value is not equal to itself.") | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func deleteNode (listName,id) = { | |
244 | 244 | let head = getString(this, keyListHead(listName)) | |
245 | 245 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
246 | 246 | let prev = getString(this, keyListPrev(listName, id)) | |
247 | 247 | let next = getString(this, keyListNext(listName, id)) | |
248 | 248 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if (isDefined(prev)) | |
249 | 249 | then isDefined(next) | |
250 | 250 | else false) | |
251 | 251 | then [StringEntry(keyListNext(listName, value(prev)), value(next)), StringEntry(keyListPrev(listName, value(next)), value(prev)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
252 | 252 | else if (isDefined(next)) | |
253 | 253 | then [StringEntry(keyListHead(listName), value(next)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(next)))] | |
254 | 254 | else if (isDefined(prev)) | |
255 | 255 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prev)))] | |
256 | 256 | else if ((id == head)) | |
257 | 257 | then [DeleteEntry(keyListHead(listName))] | |
258 | 258 | else throw("Invalid node"))) | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey) = { | |
263 | 263 | let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId) | |
264 | 264 | let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey) | |
265 | 265 | if ((userAddressOrUnit == unit)) | |
266 | 266 | then [updateLatestProcessedAssetAction, deleteLatestProcessedUserAction] | |
267 | 267 | else { | |
268 | 268 | let endHeight = (startHeight + votingDuration) | |
269 | 269 | let userAddress = value(userAddressOrUnit) | |
270 | 270 | let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress) | |
271 | 271 | let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod) | |
272 | 272 | let userVoteOrUnit = getString(userVoteKey) | |
273 | 273 | let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight) | |
274 | 274 | let voteActions = if ((userGwxAmountAtEndHeight == 0)) | |
275 | 275 | then { | |
276 | 276 | let votesListName = getVotesListName(assetId) | |
277 | 277 | deleteNode(votesListName, userAddress) | |
278 | 278 | } | |
279 | 279 | else if ((userVoteOrUnit == unit)) | |
280 | 280 | then { | |
281 | 281 | let userPreviousVoteOrUnit = getString(keyUserVoteByPeriod(userAddress, assetId, (currentPeriod - 1))) | |
282 | 282 | if ((userPreviousVoteOrUnit == unit)) | |
283 | 283 | then nil | |
284 | 284 | else { | |
285 | 285 | let $t098859958 = parseUserVote(value(userPreviousVoteOrUnit)) | |
286 | 286 | let prevTotal = $t098859958._1 | |
287 | 287 | let inFavor = $t098859958._2 | |
288 | 288 | let total = min([prevTotal, userGwxAmountAtEndHeight]) | |
289 | 289 | [StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)] | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | else nil | |
293 | 293 | ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction) | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func assetShouldBeEliminated (assetId,period) = !(valueOrElse(getBoolean(keyAssetVerifiedByPeriod(assetId, period)), true)) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func eliminationCheck (assetId) = if (if (assetShouldBeEliminated(assetId, (currentPeriod - 1))) | |
302 | 302 | then assetShouldBeEliminated(assetId, (currentPeriod - 2)) | |
303 | 303 | else false) | |
304 | 304 | then assetShouldBeEliminated(assetId, (currentPeriod - 3)) | |
305 | 305 | else false | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | @Callable(i) | |
309 | 309 | func constructor (boostingContractPrm,emissionContractPrm,assetsStoreContractPrm,feeAmountPrm,wxAssetIdPrm,votingThresholdPrm,votingDurationPrm,voteBeforeEliminationPrm,startHeightPrm,maxDepthPrm) = { | |
310 | 310 | let checks = [thisOnly(i), if (isDefined(addressFromString(boostingContractPrm))) | |
311 | 311 | then true | |
312 | 312 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm))) | |
313 | 313 | then true | |
314 | 314 | else throw("Invalid emission contract address"), if (isDefined(addressFromString(assetsStoreContractPrm))) | |
315 | 315 | then true | |
316 | 316 | else throw("Invalid asset_store contract address"), if ((feeAmountPrm >= 0)) | |
317 | 317 | then true | |
318 | 318 | else throw("Invalid fee amount"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm)))) | |
319 | 319 | then true | |
320 | 320 | else throw("Invalid WX asset ID"), if ((votingThresholdPrm >= 0)) | |
321 | 321 | then true | |
322 | 322 | else throw("Invalid voting threshold"), if ((votingDurationPrm > 0)) | |
323 | 323 | then true | |
324 | 324 | else throw("Invalid voting duration"), if (((startHeightPrm + votingDurationPrm) > height)) | |
325 | 325 | then true | |
326 | 326 | else throw("Invalid start height")] | |
327 | 327 | if ((checks == checks)) | |
328 | 328 | then $Tuple2([StringEntry(keyBoostingContract, boostingContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), StringEntry(keyWxAssetId, wxAssetIdPrm), IntegerEntry(keyVotingThreshold, votingThresholdPrm), IntegerEntry(keyVotingDuration, votingDurationPrm), IntegerEntry(keyVoteBeforeElimination, voteBeforeEliminationPrm), IntegerEntry(keyStartHeight, startHeightPrm), IntegerEntry(keyCurrentPeriod, 0), IntegerEntry(keyMaxDepth, maxDepthPrm)], unit) | |
329 | 329 | else throw("Strict value is not equal to itself.") | |
330 | 330 | } | |
331 | 331 | ||
332 | 332 | ||
333 | 333 | ||
334 | 334 | @Callable(i) | |
335 | 335 | func suggest (assetId,assetImage) = { | |
336 | 336 | let info = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Invalid asset ID") | |
337 | 337 | let payment = value(i.payments[0]) | |
338 | 338 | let checks = [if ((info.issuer == i.caller)) | |
339 | 339 | then true | |
340 | 340 | else throw("Asset can only be suggested by its issuer"), if ((value(payment.assetId) == wxAssetId)) | |
341 | 341 | then true | |
342 | 342 | else throw("Invalid fee asset"), if ((payment.amount == feeAmount)) | |
343 | 343 | then true | |
344 | 344 | else throw("Invalid fee amount")] | |
345 | 345 | if ((checks == checks)) | |
346 | 346 | then { | |
347 | 347 | let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, "", assetImage, false], nil) | |
348 | 348 | if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv)) | |
349 | 349 | then { | |
350 | 350 | let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)]) | |
351 | 351 | if ((burnFeeInv == burnFeeInv)) | |
352 | 352 | then { | |
353 | 353 | let addAssetActions = insertNode(assetsListName, assetId) | |
354 | 354 | $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, currentPeriod, false)), unit) | |
355 | 355 | } | |
356 | 356 | else throw("Strict value is not equal to itself.") | |
357 | 357 | } | |
358 | 358 | else throw("Strict value is not equal to itself.") | |
359 | 359 | } | |
360 | 360 | else throw("Strict value is not equal to itself.") | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(i) | |
366 | 366 | func vote (assetId,inFavor) = { | |
367 | 367 | let endHeight = (startHeight + votingDuration) | |
368 | 368 | let checkAsset = if (containsNode(assetsListName, assetId)) | |
369 | 369 | then true | |
370 | 370 | else throw("Invalid asset") | |
371 | 371 | if ((checkAsset == checkAsset)) | |
372 | 372 | then { | |
373 | 373 | let checkHeight = if ((endHeight > height)) | |
374 | 374 | then true | |
375 | 375 | else throw("Current voting is over but results are not finalized") | |
376 | 376 | if ((checkHeight == checkHeight)) | |
377 | 377 | then { | |
378 | 378 | let userAddress = toString(i.caller) | |
379 | 379 | let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight) | |
380 | 380 | let checkGwxAmountAtEnd = if ((gwxAmountAtEnd > 0)) | |
381 | 381 | then true | |
382 | 382 | else throw("You'll not have gWX at the end of voting") | |
383 | 383 | if ((checkGwxAmountAtEnd == checkGwxAmountAtEnd)) | |
384 | 384 | then { | |
385 | 385 | let votesListName = getVotesListName(assetId) | |
386 | 386 | let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod) | |
387 | 387 | let userVoteActions = [StringEntry(userVoteKey, formatUserVote(gwxAmountAtEnd, inFavor)), StringEntry(keyUserVoteHistory("vote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(gwxAmountAtEnd, inFavor)), getVoteResultAction(assetId, gwxAmountAtEnd, inFavor, currentPeriod, unit)] | |
388 | 388 | let votesListActions = if (containsNode(votesListName, userAddress)) | |
389 | 389 | then nil | |
390 | 390 | else insertNode(votesListName, userAddress) | |
391 | 391 | $Tuple2((votesListActions ++ userVoteActions), unit) | |
392 | 392 | } | |
393 | 393 | else throw("Strict value is not equal to itself.") | |
394 | 394 | } | |
395 | 395 | else throw("Strict value is not equal to itself.") | |
396 | 396 | } | |
397 | 397 | else throw("Strict value is not equal to itself.") | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | ||
402 | 402 | @Callable(i) | |
403 | 403 | func cancelVote (assetId) = { | |
404 | 404 | let userAddress = toString(i.caller) | |
405 | 405 | let votesListName = getVotesListName(assetId) | |
406 | 406 | let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod) | |
407 | 407 | let userVoteOrUnit = getString(userVoteKey) | |
408 | 408 | let checkVote = valueOrElse(getString(userVoteKey), "Nothing to cancel") | |
409 | 409 | if ((checkVote == checkVote)) | |
410 | 410 | then { | |
411 | 411 | let $t01507415135 = parseUserVote(value(userVoteOrUnit)) | |
412 | 412 | let total = $t01507415135._1 | |
413 | 413 | let inFavor = $t01507415135._2 | |
414 | 414 | let votesListActions = deleteNode(votesListName, userAddress) | |
415 | 415 | let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)] | |
416 | 416 | $Tuple2((votesListActions ++ userVoteActions), unit) | |
417 | 417 | } | |
418 | 418 | else throw("Strict value is not equal to itself.") | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | ||
423 | 423 | @Callable(i) | |
424 | 424 | func finalizeAssetINTERNAL (assetId,period) = { | |
425 | 425 | let checkCaller = thisOnly(i) | |
426 | 426 | if ((checkCaller == checkCaller)) | |
427 | 427 | then { | |
428 | 428 | let voteResultKey = keyVoteResultByPeriod(assetId, period) | |
429 | 429 | let $t01579515968 = match getString(voteResultKey) { | |
430 | 430 | case s: String => | |
431 | 431 | let r = parseVoteResult(s) | |
432 | 432 | $Tuple2(r._1, r._2) | |
433 | 433 | case _: Unit => | |
434 | 434 | $Tuple2(0, 0) | |
435 | 435 | case _ => | |
436 | 436 | throw("Match error") | |
437 | 437 | } | |
438 | 438 | let totalYes = $t01579515968._1 | |
439 | 439 | let totalNo = $t01579515968._2 | |
440 | 440 | let total = (totalYes + totalNo) | |
441 | 441 | let verified = if ((total >= votingThreshold)) | |
442 | 442 | then (totalYes > totalNo) | |
443 | 443 | else false | |
444 | 444 | let assetVerifiedAction = [BooleanEntry(keyAssetVerifiedByPeriod(assetId, period), verified)] | |
445 | 445 | let assetsStoreSetVerifiedInv = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil) | |
446 | 446 | if ((assetsStoreSetVerifiedInv == assetsStoreSetVerifiedInv)) | |
447 | 447 | then { | |
448 | 448 | let eliminate = if (verified) | |
449 | 449 | then false | |
450 | 450 | else eliminationCheck(assetId) | |
451 | 451 | let voteResultActions = if (eliminate) | |
452 | 452 | then nil | |
453 | 453 | else [getVoteResultAction(assetId, 0, true, (currentPeriod + 1), verified)] | |
454 | 454 | let votesListActions = if (eliminate) | |
455 | 455 | then deleteNode(assetsListName, assetId) | |
456 | 456 | else nil | |
457 | 457 | $Tuple2(((votesListActions ++ voteResultActions) ++ assetVerifiedAction), unit) | |
458 | 458 | } | |
459 | 459 | else throw("Strict value is not equal to itself.") | |
460 | 460 | } | |
461 | 461 | else throw("Strict value is not equal to itself.") | |
462 | 462 | } | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | ||
466 | 466 | @Callable(i) | |
467 | 467 | func finalizeVotingHelper () = { | |
468 | 468 | let endHeight = (startHeight + votingDuration) | |
469 | 469 | if ((endHeight > height)) | |
470 | 470 | then $Tuple2(nil, false) | |
471 | 471 | else { | |
472 | 472 | let latestProcessedAssetOrUnit = getString(keyLatestProcessedAsset) | |
473 | 473 | let latestProcessedUserOrUnit = getString(keyLatestProcessedUser) | |
474 | 474 | let nextPeriodDelay = 0 | |
475 | 475 | let finish = $Tuple2([IntegerEntry(keyStartHeight, (height + nextPeriodDelay)), IntegerEntry(keyCurrentPeriod, (currentPeriod + 1)), DeleteEntry(keyLatestProcessedAsset), DeleteEntry(keyLatestProcessedUser), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true) | |
476 | 476 | if ((latestProcessedAssetOrUnit == unit)) | |
477 | 477 | then { | |
478 | 478 | let assetsHeadOrUnit = getString(keyListHead(assetsListName)) | |
479 | 479 | if ((assetsHeadOrUnit == unit)) | |
480 | 480 | then finish | |
481 | 481 | else { | |
482 | 482 | let asset = value(assetsHeadOrUnit) | |
483 | 483 | let userAddressOrUnit = getString(keyListHead(getVotesListName(asset))) | |
484 | 484 | let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser) | |
485 | 485 | $Tuple2(processVoteActions, true) | |
486 | 486 | } | |
487 | 487 | } | |
488 | 488 | else { | |
489 | 489 | let latestProcessedAsset = value(latestProcessedAssetOrUnit) | |
490 | 490 | if ((latestProcessedUserOrUnit == unit)) | |
491 | 491 | then { | |
492 | 492 | let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset)) | |
493 | 493 | if ((assetOrUnit == assetOrUnit)) | |
494 | 494 | then { | |
495 | 495 | let finalizeAssetInv = invoke(this, "finalizeAssetINTERNAL", [latestProcessedAsset, currentPeriod], nil) | |
496 | 496 | if ((finalizeAssetInv == finalizeAssetInv)) | |
497 | 497 | then if ((assetOrUnit == unit)) | |
498 | 498 | then finish | |
499 | 499 | else { | |
500 | 500 | let asset = value(assetOrUnit) | |
501 | 501 | let userAddressOrUnit = getString(keyListHead(getVotesListName(asset))) | |
502 | 502 | let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser) | |
503 | 503 | $Tuple2(processVoteActions, true) | |
504 | 504 | } | |
505 | 505 | else throw("Strict value is not equal to itself.") | |
506 | 506 | } | |
507 | 507 | else throw("Strict value is not equal to itself.") | |
508 | 508 | } | |
509 | 509 | else { | |
510 | 510 | let latestProcessedUser = value(latestProcessedUserOrUnit) | |
511 | 511 | let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser)) | |
512 | 512 | let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser) | |
513 | 513 | $Tuple2(processVoteActions, true) | |
514 | 514 | } | |
515 | 515 | } | |
516 | 516 | } | |
517 | 517 | } | |
518 | 518 | ||
519 | 519 | ||
520 | 520 | ||
521 | 521 | @Callable(i) | |
522 | 522 | func finalizeVotingWrapper (counter) = { | |
523 | 523 | let result = asBool(invoke(this, "finalizeVotingHelper", nil, nil)) | |
524 | 524 | if ((result == result)) | |
525 | 525 | then if (!(result)) | |
526 | 526 | then if ((counter == 0)) | |
527 | 527 | then throw("Current voting is not over yet") | |
528 | 528 | else $Tuple2(nil, unit) | |
529 | 529 | else if ((maxDepth > counter)) | |
530 | 530 | then { | |
531 | 531 | let inv = invoke(this, "finalizeVotingWrapper", [(counter + 1)], nil) | |
532 | 532 | if ((inv == inv)) | |
533 | 533 | then $Tuple2(nil, unit) | |
534 | 534 | else throw("Strict value is not equal to itself.") | |
535 | 535 | } | |
536 | 536 | else $Tuple2(nil, unit) | |
537 | 537 | else throw("Strict value is not equal to itself.") | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | ||
542 | 542 | @Callable(i) | |
543 | 543 | func finalizeVoting () = { | |
544 | 544 | let inv = invoke(this, "finalizeVotingWrapper", [0], nil) | |
545 | 545 | if ((inv == inv)) | |
546 | 546 | then $Tuple2(nil, unit) | |
547 | 547 | else throw("Strict value is not equal to itself.") | |
548 | 548 | } | |
549 | 549 | ||
550 | 550 | ||
551 | 551 | ||
552 | 552 | @Callable(i) | |
553 | 553 | func transferVotesHelper () = { | |
554 | 554 | let votesTransferFinishedKey = keyVotesTransferFinishedByPeriod(currentPeriod) | |
555 | 555 | let votesTransferFinished = valueOrElse(getBoolean(votesTransferFinishedKey), false) | |
556 | 556 | let endHeight = (startHeight + votingDuration) | |
557 | 557 | if (if (if ((startHeight > height)) | |
558 | 558 | then true | |
559 | 559 | else (height >= endHeight)) | |
560 | 560 | then true | |
561 | 561 | else votesTransferFinished) | |
562 | 562 | then $Tuple2(nil, false) | |
563 | 563 | else { | |
564 | 564 | let latestProcessedAssetOrUnit = getString(keyLatestProcessedAssetTransfer) | |
565 | 565 | let latestProcessedUserOrUnit = getString(keyLatestProcessedUserTransfer) | |
566 | 566 | let finish = $Tuple2([BooleanEntry(votesTransferFinishedKey, true), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true) | |
567 | 567 | if ((latestProcessedAssetOrUnit == unit)) | |
568 | 568 | then { | |
569 | 569 | let assetsHeadOrUnit = getString(keyListHead(assetsListName)) | |
570 | 570 | if ((assetsHeadOrUnit == unit)) | |
571 | 571 | then finish | |
572 | 572 | else { | |
573 | 573 | let asset = value(assetsHeadOrUnit) | |
574 | 574 | let userAddressOrUnit = getString(keyListHead(getVotesListName(asset))) | |
575 | 575 | let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer) | |
576 | 576 | $Tuple2(processVoteActions, true) | |
577 | 577 | } | |
578 | 578 | } | |
579 | 579 | else { | |
580 | 580 | let latestProcessedAsset = value(latestProcessedAssetOrUnit) | |
581 | 581 | if ((latestProcessedUserOrUnit == unit)) | |
582 | 582 | then { | |
583 | 583 | let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset)) | |
584 | 584 | if ((assetOrUnit == unit)) | |
585 | 585 | then finish | |
586 | 586 | else { | |
587 | 587 | let asset = value(assetOrUnit) | |
588 | 588 | let userAddressOrUnit = getString(keyListHead(getVotesListName(asset))) | |
589 | 589 | let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer) | |
590 | 590 | $Tuple2(processVoteActions, true) | |
591 | 591 | } | |
592 | 592 | } | |
593 | 593 | else { | |
594 | 594 | let latestProcessedUser = value(latestProcessedUserOrUnit) | |
595 | 595 | let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser)) | |
596 | 596 | let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer) | |
597 | 597 | $Tuple2(processVoteActions, true) | |
598 | 598 | } | |
599 | 599 | } | |
600 | 600 | } | |
601 | 601 | } | |
602 | 602 | ||
603 | 603 | ||
604 | 604 | ||
605 | 605 | @Callable(i) | |
606 | 606 | func transferVotesWrapper (counter) = { | |
607 | 607 | let result = asBool(invoke(this, "transferVotesHelper", nil, nil)) | |
608 | 608 | if ((result == result)) | |
609 | 609 | then if (!(result)) | |
610 | 610 | then if ((counter == 0)) | |
611 | 611 | then throw("Voting is not started yet") | |
612 | 612 | else $Tuple2(nil, unit) | |
613 | 613 | else if ((maxDepth > counter)) | |
614 | 614 | then { | |
615 | 615 | let inv = invoke(this, "transferVotesWrapper", [(counter + 1)], nil) | |
616 | 616 | if ((inv == inv)) | |
617 | 617 | then $Tuple2(nil, unit) | |
618 | 618 | else throw("Strict value is not equal to itself.") | |
619 | 619 | } | |
620 | 620 | else $Tuple2(nil, unit) | |
621 | 621 | else throw("Strict value is not equal to itself.") | |
622 | 622 | } | |
623 | 623 | ||
624 | 624 | ||
625 | 625 | ||
626 | 626 | @Callable(i) | |
627 | 627 | func transferVotes () = { | |
628 | 628 | let inv = invoke(this, "transferVotesWrapper", [0], nil) | |
629 | 629 | if ((inv == inv)) | |
630 | 630 | then $Tuple2(nil, unit) | |
631 | 631 | else throw("Strict value is not equal to itself.") | |
632 | 632 | } | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | 636 | @Callable(i) | |
637 | 637 | func setVotingThreshold (newThreshold) = { | |
638 | 638 | let checkCaller = thisOnly(i) | |
639 | 639 | if ((checkCaller == checkCaller)) | |
640 | 640 | then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit) | |
641 | 641 | else throw("Strict value is not equal to itself.") | |
642 | 642 | } | |
643 | 643 | ||
644 | 644 | ||
645 | 645 | ||
646 | 646 | @Callable(i) | |
647 | 647 | func setFee (newFee) = { | |
648 | 648 | let checkCaller = thisOnly(i) | |
649 | 649 | if ((checkCaller == checkCaller)) | |
650 | 650 | then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit) | |
651 | 651 | else throw("Strict value is not equal to itself.") | |
652 | 652 | } | |
653 | 653 | ||
654 | 654 | ||
655 | 655 | ||
656 | 656 | @Callable(i) | |
657 | 657 | func gwxAvailableForVoteREADONLY (userAddress) = { | |
658 | 658 | let endHeight = (startHeight + votingDuration) | |
659 | 659 | let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight) | |
660 | 660 | $Tuple2(nil, gwxAmountAtEnd) | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 |
github/deemru/w8io/026f985 61.92 ms ◑