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