tx · CQr2MV7ZSMxRbPpSpJQhcjjdUsdmpbaazxs6sKXHchNr

3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg:  -0.02000000 Waves

2023.05.10 15:17 [2571780] smart account 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg > SELF 0.00000000 Waves

{ "type": 13, "id": "CQr2MV7ZSMxRbPpSpJQhcjjdUsdmpbaazxs6sKXHchNr", "fee": 2000000, "feeAssetId": null, "timestamp": 1683721116300, "version": 2, "chainId": 84, "sender": "3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg", "senderPublicKey": "C2aAS9D6FqfbrkCuCQCtPWAiopjyagvitFLjRuLcRPYt", "proofs": [ "5Dmh9w8Xwt7ui5vttkbprhaX2qttfLYQNDt7aPq72mXGp9zC3QLUb13tQ3DnWZi51psZbJhkZ7rrZfiJqwyhrTFE" ], "script": "base64:BgLwFwgCEgwKCggICAEIAQEBAQESBAoCCAgSBAoCCAQSAwoBCBIECgIIARIFCgMICAgSABIDCgEBEgASABIDCgEBEgASAwoBARIDCgEBEgMKAQgiCXNlcGFyYXRvciIPbWF4RGVwdGhEZWZhdWx0IgVhc0ludCIDdmFsIgckbWF0Y2gwIgZ2YWxJbnQiBmFzQm9vbCIHdmFsQm9vbCIMa2V5RmVlQW1vdW50IgxrZXlXeEFzc2V0SWQiEmtleVZvdGluZ1RocmVzaG9sZCIRa2V5Vm90aW5nRHVyYXRpb24iGGtleVZvdGVCZWZvcmVFbGltaW5hdGlvbiIOa2V5U3RhcnRIZWlnaHQiEGtleUN1cnJlbnRQZXJpb2QiE2tleUJvb3N0aW5nQ29udHJhY3QiE2tleUVtaXNzaW9uQ29udHJhY3QiFmtleUFzc2V0c1N0b3JlQ29udHJhY3QiF2tleUxhdGVzdFByb2Nlc3NlZEFzc2V0IhZrZXlMYXRlc3RQcm9jZXNzZWRVc2VyIhxrZXlMYXRlc3RQcm9jZXNzZWRVc2VyUmVtb3ZlIh9rZXlMYXR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bQMJAAACBQJiWgUCYloJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUBaQUCY0IFA25pbAUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgJhbQEbZ3d4QXZhaWxhYmxlRm9yVm90ZVJFQURPTkxZAQFaBAJiUwkBAmFMAgUBWgUCYUQJAJQKAgUDbmlsBQJiUwECY0MBAmNEAAQCY0UEAWUJAQJhRwADCQABAgUBZQIKQnl0ZVZlY3RvcgQCYUoFAWUFAmFKAwkAAQIFAWUCBFVuaXQIBQJjQw9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCY0MJYm9keUJ5dGVzCQCRAwIIBQJjQwZwcm9vZnMAAAUCY0XfKAOJ", "height": 2571780, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9LAx7qt9QajDNKTZUMR6GHYk7QCmghdp9kA3YiYfPsUV Next: 3aCwDrjeRL7FnwyPk8uMnssSEYtarfDChD2V9FgBVyQw Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
149149 func keyUserVoteHistory (type,userAddress,assetId,txId,period) = makeString(["%s%s%s%s%s%d", "history", type, assetId, userAddress, txId, toString(period)], separator)
150150
151151
152+func keyManagerVaultAddress () = "%s__managerVaultAddress"
153+
154+
155+func keyManagerPublicKey () = "%s__managerPublicKey"
156+
157+
152158 func thisOnly (i) = if ((i.caller == this))
153159 then true
154160 else throw("Permission denied")
190196
191197 let endHeight = (startHeight + votingDuration)
192198
199+func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
200+ case s: String =>
201+ addressFromStringValue(s)
202+ case _ =>
203+ this
204+}
205+
206+
207+func managerPublicKeyOrUnit () = {
208+ let managerVaultAddress = getManagerVaultAddressOrThis()
209+ match getString(managerVaultAddress, keyManagerPublicKey()) {
210+ case s: String =>
211+ fromBase58String(s)
212+ case _: Unit =>
213+ unit
214+ case _ =>
215+ throw("Match error")
216+ }
217+ }
218+
219+
220+func isManager (i) = match managerPublicKeyOrUnit() {
221+ case pk: ByteVector =>
222+ (i.callerPublicKey == pk)
223+ case _: Unit =>
224+ (i.caller == this)
225+ case _ =>
226+ throw("Match error")
227+}
228+
229+
230+func mustManager (i) = if (isManager(i))
231+ then true
232+ else throw("permission denied")
233+
234+
193235 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
194236 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
195237 asInt(gwxAmount)
198240
199241 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
200242 let voteResultKey = keyVoteResultByPeriod(assetId, period)
201- let $t061636466 = match getString(voteResultKey) {
243+ let $t069157218 = match getString(voteResultKey) {
202244 case s: String =>
203245 parseVoteResult(s)
204246 case _: Unit =>
213255 case _ =>
214256 throw("Match error")
215257 }
216- let oldTotalYes = $t061636466._1
217- let oldTotalNo = $t061636466._2
218- let oldVerified = $t061636466._3
258+ let oldTotalYes = $t069157218._1
259+ let oldTotalNo = $t069157218._2
260+ let oldVerified = $t069157218._3
219261 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
220262 then total
221263 else 0)), (oldTotalNo + (if (inFavor)
295337 if ((userPreviousVoteOrUnit == unit))
296338 then nil
297339 else {
298- let $t01057710650 = parseUserVote(value(userPreviousVoteOrUnit))
299- let prevTotal = $t01057710650._1
300- let inFavor = $t01057710650._2
340+ let $t01132911402 = parseUserVote(value(userPreviousVoteOrUnit))
341+ let prevTotal = $t01132911402._1
342+ let inFavor = $t01132911402._2
301343 let total = min([prevTotal, userGwxAmountAtEndHeight])
302344 [StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303345 }
321363
322364 @Callable(i)
323365 func constructor (boostingContractPrm,emissionContractPrm,assetsStoreContractPrm,feeAmountPrm,wxAssetIdPrm,votingThresholdPrm,votingDurationPrm,voteBeforeEliminationPrm,startHeightPrm,maxDepthPrm) = {
324- let checks = [thisOnly(i), if (isDefined(addressFromString(boostingContractPrm)))
366+ let checks = [mustManager(i), if (isDefined(addressFromString(boostingContractPrm)))
325367 then true
326368 else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
327369 then true
441483 let votesListName = getVotesListName(assetId)
442484 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
443485 let userVoteOrUnit = getString(userVoteKey)
444- let $t01597316067 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
445- let total = $t01597316067._1
446- let inFavor = $t01597316067._2
486+ let $t01672816822 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
487+ let total = $t01672816822._1
488+ let inFavor = $t01672816822._2
447489 let votesListActions = deleteNode(votesListName, userAddress)
448490 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
449491 $Tuple2((votesListActions ++ userVoteActions), unit)
457499 if ((checkCaller == checkCaller))
458500 then {
459501 let voteResultKey = keyVoteResultByPeriod(assetId, period)
460- let $t01669816871 = match getString(voteResultKey) {
502+ let $t01745317626 = match getString(voteResultKey) {
461503 case s: String =>
462504 let r = parseVoteResult(s)
463505 $Tuple2(r._1, r._2)
466508 case _ =>
467509 throw("Match error")
468510 }
469- let totalYes = $t01669816871._1
470- let totalNo = $t01669816871._2
511+ let totalYes = $t01745317626._1
512+ let totalNo = $t01745317626._2
471513 let total = (totalYes + totalNo)
472514 let verified = if ((total >= votingThreshold))
473515 then (totalYes > totalNo)
506548
507549 @Callable(i)
508550 func deleteUserNodeINTERNAL (assetId,userAddress,latestProcessedUserRemoveKey) = {
509- let checkCaller = thisOnly(i)
551+ let checkCaller = mustManager(i)
510552 if ((checkCaller == checkCaller))
511553 then $Tuple2((deleteNode(getVotesListName(assetId), userAddress) :+ DeleteEntry(latestProcessedUserRemoveKey)), unit)
512554 else throw("Strict value is not equal to itself.")
706748
707749 @Callable(i)
708750 func setVotingThreshold (newThreshold) = {
709- let checkCaller = thisOnly(i)
751+ let checkCaller = mustManager(i)
710752 if ((checkCaller == checkCaller))
711753 then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit)
712754 else throw("Strict value is not equal to itself.")
716758
717759 @Callable(i)
718760 func setFee (newFee) = {
719- let checkCaller = thisOnly(i)
761+ let checkCaller = mustManager(i)
720762 if ((checkCaller == checkCaller))
721763 then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit)
722764 else throw("Strict value is not equal to itself.")
731773 }
732774
733775
776+@Verifier(tx)
777+func verify () = {
778+ let targetPublicKey = match managerPublicKeyOrUnit() {
779+ case pk: ByteVector =>
780+ pk
781+ case _: Unit =>
782+ tx.senderPublicKey
783+ case _ =>
784+ throw("Match error")
785+ }
786+ sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
787+ }
788+
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let maxDepthDefault = 10
77
88 func asInt (val) = match val {
99 case valInt: Int =>
1010 valInt
1111 case _ =>
1212 throw("Failed to cast into Integer")
1313 }
1414
1515
1616 func asBool (val) = match val {
1717 case valBool: Boolean =>
1818 valBool
1919 case _ =>
2020 throw("Failed to cast into Boolean")
2121 }
2222
2323
2424 let keyFeeAmount = makeString(["%s", "fee"], separator)
2525
2626 let keyWxAssetId = makeString(["%s", "wxAssetId"], separator)
2727
2828 let keyVotingThreshold = makeString(["%s", "votingThreshold"], separator)
2929
3030 let keyVotingDuration = makeString(["%s", "epochLength"], separator)
3131
3232 let keyVoteBeforeElimination = makeString(["%s", "voteBeforeElimination"], separator)
3333
3434 let keyStartHeight = makeString(["%s", "currentVotingHeightStart"], separator)
3535
3636 let keyCurrentPeriod = makeString(["%s", "currentEpoch"], separator)
3737
3838 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
3939
4040 let keyEmissionContract = makeString(["%s", "emissionContract"], separator)
4141
4242 let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator)
4343
4444 let keyLatestProcessedAsset = makeString(["%s", "latestProcessedAsset"], separator)
4545
4646 let keyLatestProcessedUser = makeString(["%s", "latestProcessedUser"], separator)
4747
4848 let keyLatestProcessedUserRemove = makeString(["%s", "latestProcessedUserRemove"], separator)
4949
5050 let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator)
5151
5252 let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator)
5353
5454 let keyLatestProcessedUserRemoveTransfer = makeString(["%s", "latestProcessedUserRemoveTransfer"], separator)
5555
5656 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
5757
5858 func keyVotesTransferFinishedByPeriod (period) = makeString(["%s", "votesTransferFinished", toString(period)], separator)
5959
6060
6161 let assetsListName = "__assets"
6262
6363 func getVotesListName (assetId) = ("%s__votes__" + assetId)
6464
6565
6666 func keyListHead (listName) = makeString([("%s%s" + listName), "head"], separator)
6767
6868
6969 func keyListSize (listName) = makeString([("%s%s" + listName), "size"], separator)
7070
7171
7272 func keyListPrev (listName,id) = makeString([("%s%s%s" + listName), id, "prev"], separator)
7373
7474
7575 func keyListNext (listName,id) = makeString([("%s%s%s" + listName), id, "next"], separator)
7676
7777
7878 func keyAssetVerifiedByPeriod (assetId,period) = makeString(["%s%d%s", "verifiedAt", toString(period), assetId], separator)
7979
8080
8181 func keyAssetVerified (assetId) = makeString(["%s%s", "verified", assetId], separator)
8282
8383
8484 func keyAssetWasEliminated (assetId,period) = makeString(["%s%s%d", "eliminated", assetId, toString(period)], separator)
8585
8686
8787 func keyVoteResultByPeriod (assetId,period) = makeString(["%s%d%s", "votingResultAtAsset", toString(period), assetId], separator)
8888
8989
9090 func formatVoteResult (totalYes,totalNo,verified) = makeString(["%d%d%s", toString(totalYes), toString(totalNo), toString(verified)], separator)
9191
9292
9393 func parseVoteResult (input) = {
9494 let parts = split(input, separator)
9595 let totalYesIdx = 1
9696 let totalNoIdx = 2
9797 let verifiedIdx = 3
9898 let totalYes = parseIntValue(parts[totalYesIdx])
9999 let totalNo = parseIntValue(parts[totalNoIdx])
100100 let verified = if ((size(parts) == 4))
101101 then (parts[verifiedIdx] == "true")
102102 else false
103103 $Tuple3(totalYes, totalNo, verified)
104104 }
105105
106106
107107 func keyUserVoteByPeriod (userAddress,assetId,period) = makeString(["%s%d%s%s", "vru", toString(period), assetId, userAddress], separator)
108108
109109
110110 func formatUserVote (total,inFavor) = {
111111 let totalYes = if (inFavor)
112112 then total
113113 else 0
114114 let totalNo = if (inFavor)
115115 then 0
116116 else total
117117 makeString(["%d%d", toString(totalYes), toString(totalNo)], separator)
118118 }
119119
120120
121121 func parseUserVote (input) = {
122122 let parts = split(input, separator)
123123 let totalYesIdx = 1
124124 let totalNoIdx = 2
125125 let totalYes = parseIntValue(parts[totalYesIdx])
126126 let totalNo = parseIntValue(parts[totalNoIdx])
127127 let inFavor = if ((totalYes > 0))
128128 then (totalNo == 0)
129129 else false
130130 let against = if ((totalYes == 0))
131131 then (totalNo > 0)
132132 else false
133133 let checkTotals = if (if (inFavor)
134134 then true
135135 else against)
136136 then true
137137 else throw("Invalid user vote value")
138138 if ((checkTotals == checkTotals))
139139 then {
140140 let total = if (inFavor)
141141 then totalYes
142142 else totalNo
143143 $Tuple2(total, inFavor)
144144 }
145145 else throw("Strict value is not equal to itself.")
146146 }
147147
148148
149149 func keyUserVoteHistory (type,userAddress,assetId,txId,period) = makeString(["%s%s%s%s%s%d", "history", type, assetId, userAddress, txId, toString(period)], separator)
150150
151151
152+func keyManagerVaultAddress () = "%s__managerVaultAddress"
153+
154+
155+func keyManagerPublicKey () = "%s__managerPublicKey"
156+
157+
152158 func thisOnly (i) = if ((i.caller == this))
153159 then true
154160 else throw("Permission denied")
155161
156162
157163 func getIntegerOrZero (key) = valueOrElse(getInteger(this, key), 0)
158164
159165
160166 func getIntegerOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
161167
162168
163169 func getStringOrEmpty (key) = valueOrElse(getString(this, key), "")
164170
165171
166172 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
167173
168174
169175 let feeAmount = getIntegerOrFail(keyFeeAmount)
170176
171177 let wxAssetId = fromBase58String(getStringOrFail(keyWxAssetId))
172178
173179 let votingThreshold = getIntegerOrFail(keyVotingThreshold)
174180
175181 let votingDuration = getIntegerOrFail(keyVotingDuration)
176182
177183 let voteBeforeElimination = getIntegerOrFail(keyVoteBeforeElimination)
178184
179185 let startHeight = getIntegerOrFail(keyStartHeight)
180186
181187 let currentPeriod = getIntegerOrFail(keyCurrentPeriod)
182188
183189 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
184190
185191 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
186192
187193 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract))
188194
189195 let maxDepth = valueOrElse(getInteger(keyMaxDepth), maxDepthDefault)
190196
191197 let endHeight = (startHeight + votingDuration)
192198
199+func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
200+ case s: String =>
201+ addressFromStringValue(s)
202+ case _ =>
203+ this
204+}
205+
206+
207+func managerPublicKeyOrUnit () = {
208+ let managerVaultAddress = getManagerVaultAddressOrThis()
209+ match getString(managerVaultAddress, keyManagerPublicKey()) {
210+ case s: String =>
211+ fromBase58String(s)
212+ case _: Unit =>
213+ unit
214+ case _ =>
215+ throw("Match error")
216+ }
217+ }
218+
219+
220+func isManager (i) = match managerPublicKeyOrUnit() {
221+ case pk: ByteVector =>
222+ (i.callerPublicKey == pk)
223+ case _: Unit =>
224+ (i.caller == this)
225+ case _ =>
226+ throw("Match error")
227+}
228+
229+
230+func mustManager (i) = if (isManager(i))
231+ then true
232+ else throw("permission denied")
233+
234+
193235 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
194236 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
195237 asInt(gwxAmount)
196238 }
197239
198240
199241 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
200242 let voteResultKey = keyVoteResultByPeriod(assetId, period)
201- let $t061636466 = match getString(voteResultKey) {
243+ let $t069157218 = match getString(voteResultKey) {
202244 case s: String =>
203245 parseVoteResult(s)
204246 case _: Unit =>
205247 match getString(keyVoteResultByPeriod(assetId, (period - 1))) {
206248 case s: String =>
207249 $Tuple3(0, 0, parseVoteResult(s)._3)
208250 case _: Unit =>
209251 $Tuple3(0, 0, false)
210252 case _ =>
211253 throw("Match error")
212254 }
213255 case _ =>
214256 throw("Match error")
215257 }
216- let oldTotalYes = $t061636466._1
217- let oldTotalNo = $t061636466._2
218- let oldVerified = $t061636466._3
258+ let oldTotalYes = $t069157218._1
259+ let oldTotalNo = $t069157218._2
260+ let oldVerified = $t069157218._3
219261 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
220262 then total
221263 else 0)), (oldTotalNo + (if (inFavor)
222264 then 0
223265 else total)), if ((verified == unit))
224266 then oldVerified
225267 else value(verified)))
226268 }
227269
228270
229271 func containsNode (listName,id) = {
230272 let head = getString(this, keyListHead(listName))
231273 let prev = getString(this, keyListPrev(listName, id))
232274 let next = getString(this, keyListNext(listName, id))
233275 if (if ((id == head))
234276 then true
235277 else (prev != unit))
236278 then true
237279 else (next != unit)
238280 }
239281
240282
241283 func insertNode (listName,id) = {
242284 let head = getString(this, keyListHead(listName))
243285 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
244286 let checkNode = if (!(containsNode(listName, id)))
245287 then true
246288 else throw("Node exists")
247289 if ((checkNode == checkNode))
248290 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if (isDefined(head))
249291 then [StringEntry(keyListNext(listName, id), value(head)), StringEntry(keyListPrev(listName, value(head)), id)]
250292 else nil)) ++ [StringEntry(keyListHead(listName), id)])
251293 else throw("Strict value is not equal to itself.")
252294 }
253295
254296
255297 func deleteNode (listName,id) = {
256298 let head = getString(this, keyListHead(listName))
257299 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
258300 let prev = getString(this, keyListPrev(listName, id))
259301 let next = getString(this, keyListNext(listName, id))
260302 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if (isDefined(prev))
261303 then isDefined(next)
262304 else false)
263305 then [StringEntry(keyListNext(listName, value(prev)), value(next)), StringEntry(keyListPrev(listName, value(next)), value(prev)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
264306 else if (isDefined(next))
265307 then [StringEntry(keyListHead(listName), value(next)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(next)))]
266308 else if (isDefined(prev))
267309 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prev)))]
268310 else if ((id == head))
269311 then [DeleteEntry(keyListHead(listName))]
270312 else throw("Invalid node")))
271313 }
272314
273315
274316 func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey,latestProcessedUserRemoveKey) = {
275317 let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId)
276318 let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey)
277319 if ((userAddressOrUnit == unit))
278320 then [updateLatestProcessedAssetAction, deleteLatestProcessedUserAction]
279321 else {
280322 let userAddress = value(userAddressOrUnit)
281323 let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress)
282324 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
283325 let userVoteOrUnit = getString(userVoteKey)
284326 let voteActions = if ((userVoteOrUnit == unit))
285327 then {
286328 let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
287329 if ((userGwxAmountAtEndHeight == 0))
288330 then [BooleanEntry(latestProcessedUserRemoveKey, true)]
289331 else {
290332 let previousPeriod = (currentPeriod - 1)
291333 let assetWasEliminated = valueOrElse(getBoolean(keyAssetWasEliminated(assetId, previousPeriod)), false)
292334 let userPreviousVoteOrUnit = if (assetWasEliminated)
293335 then unit
294336 else getString(keyUserVoteByPeriod(userAddress, assetId, previousPeriod))
295337 if ((userPreviousVoteOrUnit == unit))
296338 then nil
297339 else {
298- let $t01057710650 = parseUserVote(value(userPreviousVoteOrUnit))
299- let prevTotal = $t01057710650._1
300- let inFavor = $t01057710650._2
340+ let $t01132911402 = parseUserVote(value(userPreviousVoteOrUnit))
341+ let prevTotal = $t01132911402._1
342+ let inFavor = $t01132911402._2
301343 let total = min([prevTotal, userGwxAmountAtEndHeight])
302344 [StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303345 }
304346 }
305347 }
306348 else nil
307349 ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction)
308350 }
309351 }
310352
311353
312354 func assetShouldBeEliminated (assetId,period) = !(valueOrElse(getBoolean(keyAssetVerifiedByPeriod(assetId, period)), true))
313355
314356
315357 func eliminationCheck (assetId) = if (if (assetShouldBeEliminated(assetId, (currentPeriod - 1)))
316358 then assetShouldBeEliminated(assetId, (currentPeriod - 2))
317359 else false)
318360 then assetShouldBeEliminated(assetId, (currentPeriod - 3))
319361 else false
320362
321363
322364 @Callable(i)
323365 func constructor (boostingContractPrm,emissionContractPrm,assetsStoreContractPrm,feeAmountPrm,wxAssetIdPrm,votingThresholdPrm,votingDurationPrm,voteBeforeEliminationPrm,startHeightPrm,maxDepthPrm) = {
324- let checks = [thisOnly(i), if (isDefined(addressFromString(boostingContractPrm)))
366+ let checks = [mustManager(i), if (isDefined(addressFromString(boostingContractPrm)))
325367 then true
326368 else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
327369 then true
328370 else throw("Invalid emission contract address"), if (isDefined(addressFromString(assetsStoreContractPrm)))
329371 then true
330372 else throw("Invalid asset_store contract address"), if ((feeAmountPrm >= 0))
331373 then true
332374 else throw("Invalid fee amount"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm))))
333375 then true
334376 else throw("Invalid WX asset ID"), if ((votingThresholdPrm >= 0))
335377 then true
336378 else throw("Invalid voting threshold"), if ((votingDurationPrm > 0))
337379 then true
338380 else throw("Invalid voting duration"), if (((startHeightPrm + votingDurationPrm) > height))
339381 then true
340382 else throw("Invalid start height")]
341383 if ((checks == checks))
342384 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)
343385 else throw("Strict value is not equal to itself.")
344386 }
345387
346388
347389
348390 @Callable(i)
349391 func suggest (assetId,assetImage) = {
350392 let info = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Invalid asset ID")
351393 if ((info == info))
352394 then {
353395 let payment = value(i.payments[0])
354396 let isThis = (i.caller == this)
355397 let checks = [if (if (isThis)
356398 then true
357399 else (value(payment.assetId) == wxAssetId))
358400 then true
359401 else throw("Invalid fee asset"), if (if (isThis)
360402 then true
361403 else (payment.amount == feeAmount))
362404 then true
363405 else throw("Invalid fee amount")]
364406 if ((checks == checks))
365407 then {
366408 let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
367409 if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
368410 then {
369411 let burnFeeInv = if (isThis)
370412 then unit
371413 else invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
372414 if ((burnFeeInv == burnFeeInv))
373415 then {
374416 let addAssetActions = insertNode(assetsListName, assetId)
375417 let nextPeriod = (currentPeriod + 1)
376418 let targetPeriod = if ((endHeight > height))
377419 then currentPeriod
378420 else nextPeriod
379421 $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
380422 }
381423 else throw("Strict value is not equal to itself.")
382424 }
383425 else throw("Strict value is not equal to itself.")
384426 }
385427 else throw("Strict value is not equal to itself.")
386428 }
387429 else throw("Strict value is not equal to itself.")
388430 }
389431
390432
391433
392434 @Callable(i)
393435 func vote (assetId,inFavor) = {
394436 let checkAsset = if (containsNode(assetsListName, assetId))
395437 then true
396438 else throw("Invalid asset")
397439 if ((checkAsset == checkAsset))
398440 then {
399441 let checkHeight = if ((endHeight > height))
400442 then true
401443 else throw("Current voting is over but results are not finalized")
402444 if ((checkHeight == checkHeight))
403445 then {
404446 let userAddress = toString(i.caller)
405447 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
406448 let checkGwxAmountAtEnd = if ((gwxAmountAtEnd > 0))
407449 then true
408450 else throw("You'll not have gWX at the end of voting")
409451 if ((checkGwxAmountAtEnd == checkGwxAmountAtEnd))
410452 then {
411453 let votesListName = getVotesListName(assetId)
412454 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
413455 let userVoteOrUnit = getString(userVoteKey)
414456 let cancelVoteInv = if ((userVoteOrUnit == unit))
415457 then unit
416458 else invoke(this, "cancelVote", [assetId], nil)
417459 if ((cancelVoteInv == cancelVoteInv))
418460 then {
419461 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)]
420462 let votesListActions = if (containsNode(votesListName, userAddress))
421463 then nil
422464 else insertNode(votesListName, userAddress)
423465 $Tuple2((votesListActions ++ userVoteActions), unit)
424466 }
425467 else throw("Strict value is not equal to itself.")
426468 }
427469 else throw("Strict value is not equal to itself.")
428470 }
429471 else throw("Strict value is not equal to itself.")
430472 }
431473 else throw("Strict value is not equal to itself.")
432474 }
433475
434476
435477
436478 @Callable(i)
437479 func cancelVote (assetId) = {
438480 let userAddress = if ((i.caller == this))
439481 then toString(i.originCaller)
440482 else toString(i.caller)
441483 let votesListName = getVotesListName(assetId)
442484 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
443485 let userVoteOrUnit = getString(userVoteKey)
444- let $t01597316067 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
445- let total = $t01597316067._1
446- let inFavor = $t01597316067._2
486+ let $t01672816822 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
487+ let total = $t01672816822._1
488+ let inFavor = $t01672816822._2
447489 let votesListActions = deleteNode(votesListName, userAddress)
448490 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
449491 $Tuple2((votesListActions ++ userVoteActions), unit)
450492 }
451493
452494
453495
454496 @Callable(i)
455497 func finalizeAssetINTERNAL (assetId,period) = {
456498 let checkCaller = thisOnly(i)
457499 if ((checkCaller == checkCaller))
458500 then {
459501 let voteResultKey = keyVoteResultByPeriod(assetId, period)
460- let $t01669816871 = match getString(voteResultKey) {
502+ let $t01745317626 = match getString(voteResultKey) {
461503 case s: String =>
462504 let r = parseVoteResult(s)
463505 $Tuple2(r._1, r._2)
464506 case _: Unit =>
465507 $Tuple2(0, 0)
466508 case _ =>
467509 throw("Match error")
468510 }
469- let totalYes = $t01669816871._1
470- let totalNo = $t01669816871._2
511+ let totalYes = $t01745317626._1
512+ let totalNo = $t01745317626._2
471513 let total = (totalYes + totalNo)
472514 let verified = if ((total >= votingThreshold))
473515 then (totalYes > totalNo)
474516 else false
475517 let assetVerifiedActions = [BooleanEntry(keyAssetVerifiedByPeriod(assetId, period), verified), if (verified)
476518 then BooleanEntry(keyAssetVerified(assetId), true)
477519 else DeleteEntry(keyAssetVerified(assetId))]
478520 let assetsStoreSetVerifiedInv = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil)
479521 if ((assetsStoreSetVerifiedInv == assetsStoreSetVerifiedInv))
480522 then {
481523 let eliminate = if (verified)
482524 then false
483525 else eliminationCheck(assetId)
484526 let assetWasEliminatedActions = if (eliminate)
485527 then [BooleanEntry(keyAssetWasEliminated(assetId, currentPeriod), true)]
486528 else nil
487529 let voteResultActions = if (eliminate)
488530 then nil
489531 else [getVoteResultAction(assetId, 0, true, (currentPeriod + 1), verified)]
490532 let votesListActions = if (eliminate)
491533 then deleteNode(assetsListName, assetId)
492534 else nil
493535 let onEliminationInv = if (eliminate)
494536 then invoke(assetsStoreContract, "onEliminate", [assetId], nil)
495537 else unit
496538 if ((onEliminationInv == onEliminationInv))
497539 then $Tuple2(((votesListActions ++ voteResultActions) ++ assetVerifiedActions), unit)
498540 else throw("Strict value is not equal to itself.")
499541 }
500542 else throw("Strict value is not equal to itself.")
501543 }
502544 else throw("Strict value is not equal to itself.")
503545 }
504546
505547
506548
507549 @Callable(i)
508550 func deleteUserNodeINTERNAL (assetId,userAddress,latestProcessedUserRemoveKey) = {
509- let checkCaller = thisOnly(i)
551+ let checkCaller = mustManager(i)
510552 if ((checkCaller == checkCaller))
511553 then $Tuple2((deleteNode(getVotesListName(assetId), userAddress) :+ DeleteEntry(latestProcessedUserRemoveKey)), unit)
512554 else throw("Strict value is not equal to itself.")
513555 }
514556
515557
516558
517559 @Callable(i)
518560 func finalizeVotingHelper () = if ((endHeight > height))
519561 then $Tuple2(nil, false)
520562 else {
521563 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAsset)
522564 let latestProcessedUserOrUnit = getString(keyLatestProcessedUser)
523565 let nextPeriodDelay = 0
524566 let finish = $Tuple2([IntegerEntry(keyStartHeight, (height + nextPeriodDelay)), IntegerEntry(keyCurrentPeriod, (currentPeriod + 1)), DeleteEntry(keyLatestProcessedAsset), DeleteEntry(keyLatestProcessedUser), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
525567 if ((latestProcessedAssetOrUnit == unit))
526568 then {
527569 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
528570 if ((assetsHeadOrUnit == unit))
529571 then finish
530572 else {
531573 let asset = value(assetsHeadOrUnit)
532574 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
533575 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
534576 $Tuple2(processVoteActions, true)
535577 }
536578 }
537579 else {
538580 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
539581 if ((latestProcessedUserOrUnit == unit))
540582 then {
541583 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
542584 if ((assetOrUnit == assetOrUnit))
543585 then {
544586 let finalizeAssetInv = invoke(this, "finalizeAssetINTERNAL", [latestProcessedAsset, currentPeriod], nil)
545587 if ((finalizeAssetInv == finalizeAssetInv))
546588 then if ((assetOrUnit == unit))
547589 then finish
548590 else {
549591 let asset = value(assetOrUnit)
550592 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
551593 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
552594 $Tuple2(processVoteActions, true)
553595 }
554596 else throw("Strict value is not equal to itself.")
555597 }
556598 else throw("Strict value is not equal to itself.")
557599 }
558600 else {
559601 let latestProcessedUser = value(latestProcessedUserOrUnit)
560602 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
561603 if ((userAddressOrUnit == userAddressOrUnit))
562604 then {
563605 let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemove), false)
564606 let deleteUserInv = if (removeLatestUser)
565607 then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemove], nil)
566608 else unit
567609 if ((deleteUserInv == deleteUserInv))
568610 then {
569611 let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
570612 $Tuple2(processVoteActions, true)
571613 }
572614 else throw("Strict value is not equal to itself.")
573615 }
574616 else throw("Strict value is not equal to itself.")
575617 }
576618 }
577619 }
578620
579621
580622
581623 @Callable(i)
582624 func finalizeVotingWrapper (counter) = {
583625 let result = asBool(invoke(this, "finalizeVotingHelper", nil, nil))
584626 if ((result == result))
585627 then if (!(result))
586628 then if ((counter == 0))
587629 then throw("Current voting is not over yet")
588630 else $Tuple2(nil, unit)
589631 else if ((maxDepth > counter))
590632 then {
591633 let inv = invoke(this, "finalizeVotingWrapper", [(counter + 1)], nil)
592634 if ((inv == inv))
593635 then $Tuple2(nil, unit)
594636 else throw("Strict value is not equal to itself.")
595637 }
596638 else $Tuple2(nil, unit)
597639 else throw("Strict value is not equal to itself.")
598640 }
599641
600642
601643
602644 @Callable(i)
603645 func finalizeVoting () = {
604646 let inv = invoke(this, "finalizeVotingWrapper", [0], nil)
605647 if ((inv == inv))
606648 then $Tuple2(nil, unit)
607649 else throw("Strict value is not equal to itself.")
608650 }
609651
610652
611653
612654 @Callable(i)
613655 func transferVotesHelper () = {
614656 let votesTransferFinishedKey = keyVotesTransferFinishedByPeriod(currentPeriod)
615657 let votesTransferFinished = valueOrElse(getBoolean(votesTransferFinishedKey), false)
616658 if (if (if ((startHeight > height))
617659 then true
618660 else (height >= endHeight))
619661 then true
620662 else votesTransferFinished)
621663 then $Tuple2(nil, false)
622664 else {
623665 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAssetTransfer)
624666 let latestProcessedUserOrUnit = getString(keyLatestProcessedUserTransfer)
625667 let finish = $Tuple2([BooleanEntry(votesTransferFinishedKey, true), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
626668 if ((latestProcessedAssetOrUnit == unit))
627669 then {
628670 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
629671 if ((assetsHeadOrUnit == unit))
630672 then finish
631673 else {
632674 let asset = value(assetsHeadOrUnit)
633675 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
634676 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
635677 $Tuple2(processVoteActions, true)
636678 }
637679 }
638680 else {
639681 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
640682 if ((latestProcessedUserOrUnit == unit))
641683 then {
642684 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
643685 if ((assetOrUnit == unit))
644686 then finish
645687 else {
646688 let asset = value(assetOrUnit)
647689 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
648690 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
649691 $Tuple2(processVoteActions, true)
650692 }
651693 }
652694 else {
653695 let latestProcessedUser = value(latestProcessedUserOrUnit)
654696 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
655697 if ((userAddressOrUnit == userAddressOrUnit))
656698 then {
657699 let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemoveTransfer), false)
658700 let deleteUserInv = if (removeLatestUser)
659701 then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemoveTransfer], nil)
660702 else unit
661703 if ((deleteUserInv == deleteUserInv))
662704 then {
663705 let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
664706 $Tuple2(processVoteActions, true)
665707 }
666708 else throw("Strict value is not equal to itself.")
667709 }
668710 else throw("Strict value is not equal to itself.")
669711 }
670712 }
671713 }
672714 }
673715
674716
675717
676718 @Callable(i)
677719 func transferVotesWrapper (counter) = {
678720 let result = asBool(invoke(this, "transferVotesHelper", nil, nil))
679721 if ((result == result))
680722 then if (!(result))
681723 then if ((counter == 0))
682724 then throw("Voting is not started yet")
683725 else $Tuple2(nil, unit)
684726 else if ((maxDepth > counter))
685727 then {
686728 let inv = invoke(this, "transferVotesWrapper", [(counter + 1)], nil)
687729 if ((inv == inv))
688730 then $Tuple2(nil, unit)
689731 else throw("Strict value is not equal to itself.")
690732 }
691733 else $Tuple2(nil, unit)
692734 else throw("Strict value is not equal to itself.")
693735 }
694736
695737
696738
697739 @Callable(i)
698740 func transferVotes () = {
699741 let inv = invoke(this, "transferVotesWrapper", [0], nil)
700742 if ((inv == inv))
701743 then $Tuple2(nil, unit)
702744 else throw("Strict value is not equal to itself.")
703745 }
704746
705747
706748
707749 @Callable(i)
708750 func setVotingThreshold (newThreshold) = {
709- let checkCaller = thisOnly(i)
751+ let checkCaller = mustManager(i)
710752 if ((checkCaller == checkCaller))
711753 then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit)
712754 else throw("Strict value is not equal to itself.")
713755 }
714756
715757
716758
717759 @Callable(i)
718760 func setFee (newFee) = {
719- let checkCaller = thisOnly(i)
761+ let checkCaller = mustManager(i)
720762 if ((checkCaller == checkCaller))
721763 then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit)
722764 else throw("Strict value is not equal to itself.")
723765 }
724766
725767
726768
727769 @Callable(i)
728770 func gwxAvailableForVoteREADONLY (userAddress) = {
729771 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
730772 $Tuple2(nil, gwxAmountAtEnd)
731773 }
732774
733775
776+@Verifier(tx)
777+func verify () = {
778+ let targetPublicKey = match managerPublicKeyOrUnit() {
779+ case pk: ByteVector =>
780+ pk
781+ case _: Unit =>
782+ tx.senderPublicKey
783+ case _ =>
784+ throw("Match error")
785+ }
786+ sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
787+ }
788+

github/deemru/w8io/026f985 
102.49 ms