tx · 2aHiTM93eoXBAJnpwC9aJS21Cd9ADmT53cs6neZdKAT7 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h: -0.02100000 Waves 2024.09.17 11:07 [3287404] smart account 3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h > SELF 0.00000000 Waves
{ "type": 13, "id": "2aHiTM93eoXBAJnpwC9aJS21Cd9ADmT53cs6neZdKAT7", "fee": 2100000, "feeAssetId": null, "timestamp": 1726560436624, "version": 2, "chainId": 84, "sender": "3NCWFHDzdPHZC6636ZkMLNDup9mjpbTLs7h", "senderPublicKey": "3z8Q6Zu3KppVmn6fJJvrLc1Wo3krVHSvfaNcerm82md2", "proofs": [ "4pecaPdCWvHq1AcbteKCDwcPK9prPtpBcLu8dshKgBbGuK9qLNb6indmWBBgNWk8T2PG8EgrCnZsWcB5bfbhGgsg" ], "script": "base64:BgI/CAISAwoBARIDCgEEEgMKAQgSBAoCCAgSAwoBCBIECgIICBIDCgEIEgQKAggBEgQKAggBEgMKAQESABIDCgEINgAMY29udHJhY3RGaWxlAhFsMm1wX2xlYXNpbmcucmlkZQADU0VQAgJfXwEIdGhyb3dFcnIBA21zZwkAAgEJAKwCAgkArAICBQxjb250cmFjdEZpbGUCAjogBQNtc2cACmtleUFzc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgdhc3NldElkBQNuaWwFA1NFUAAMa2V5Rm9yY2VTdG9wCQC5CQIJAMwIAgICJXMJAMwIAgIJZm9yY2VTdG9wBQNuaWwFA1NFUAARa2V5UGVyaW9kT2Zmc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAghvZmZzZXRJZAUDbmlsBQNTRVAAFWtleVBlcmlvZE9mZnNldEhlaWdodAkAuQkCCQDMCAICAiVzCQDMCAICDG9mZnNldEhlaWdodAUDbmlsBQNTRVAAD2tleVBlcmlvZExlbmd0aAkAuQkCCQDMCAICAiVzCQDMCAICDHBlcmlvZExlbmd0aAUDbmlsBQNTRVAADnBlcmlvZE9m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gdHhJZAkAzAgCAwMJAAACBRFhbGxvd2VkVHhJZE9wdGlvbgUEdW5pdAYJAQIhPQIJAQV2YWx1ZQEFEWFsbG93ZWRUeElkT3B0aW9uBQR0eElkBgkBCHRocm93RXJyAQkArAICBQR0eElkAhMgaXMgYWxyZWFkeSBhbGxvd2VkBQNuaWwDCQAAAgUDZXJyBQNlcnIJAQx2b3RlSU5URVJOQUwEBRNjYWxsZXJBZGRyZXNzU3RyaW5nBQlrZXlQcmVmaXgFBlFVT1JVTQUGcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQIYnlBZG1pbnMJAAACCAUCdHgCaWQJANkEAQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzCQEOa2V5QWxsb3dlZFR4SWQAAgAEB2J5T3duZXIDCQBnAgkAkAMBCQENZ2V0QWRtaW5zTGlzdAAFBlFVT1JVTQcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkDBQhieUFkbWlucwYFB2J5T3duZXJHASw9", "height": 3287404, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5xUjWKDszSkm11CKLqrnpLNkHBYLMDJQEGhwgH9AXmQg Next: FoDgahN94S9LP76DLx2JtwEovakdu2j9T8RJbqA5BtK7 Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | let keyAssetId = makeString(["%s", "assetId"], SEP) | |
12 | 12 | ||
13 | 13 | let keyForceStop = makeString(["%s", "forceStop"], SEP) | |
14 | - | ||
15 | - | let keyForceOutStop = makeString(["%s", "forceOutStop"], SEP) | |
16 | 14 | ||
17 | 15 | let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP) | |
18 | 16 | ||
84 | 82 | ||
85 | 83 | let isForceStop = valueOrElse(getBoolean(this, keyForceStop), false) | |
86 | 84 | ||
87 | - | let isForceOutStop = valueOrElse(getBoolean(this, keyForceOutStop), false) | |
88 | - | ||
89 | 85 | func isValidAddress (address) = match addressFromString(address) { | |
90 | 86 | case a: Address => | |
91 | 87 | true | |
130 | 126 | ||
131 | 127 | ||
132 | 128 | func genVotesKeysHelper (a,adminAddress) = { | |
133 | - | let $ | |
134 | - | let result = $ | |
135 | - | let prefix = $ | |
129 | + | let $t035623586 = a | |
130 | + | let result = $t035623586._1 | |
131 | + | let prefix = $t035623586._2 | |
136 | 132 | $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix) | |
137 | 133 | } | |
138 | 134 | ||
139 | 135 | ||
140 | 136 | func genVotesKeys (keyPrefix) = { | |
141 | 137 | let adminList = keyAdminAddressList() | |
142 | - | let $ | |
138 | + | let $t037333817 = { | |
143 | 139 | let $l = getAdminsList() | |
144 | 140 | let $s = size($l) | |
145 | 141 | let $acc0 = $Tuple2(nil, keyPrefix) | |
153 | 149 | ||
154 | 150 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
155 | 151 | } | |
156 | - | let result = $ | |
157 | - | let prefix = $ | |
152 | + | let result = $t037333817._1 | |
153 | + | let prefix = $t037333817._2 | |
158 | 154 | result | |
159 | 155 | } | |
160 | 156 | ||
306 | 302 | ||
307 | 303 | ||
308 | 304 | func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = { | |
309 | - | let $ | |
310 | - | let nodeCurrentLeased = $ | |
311 | - | let nodeNextLeased = $ | |
312 | - | let $ | |
313 | - | let userCurrentLeased = $ | |
314 | - | let userNextLeased = $ | |
305 | + | let $t088578930 = getLeasingNodeData(nodeAddress) | |
306 | + | let nodeCurrentLeased = $t088578930._1 | |
307 | + | let nodeNextLeased = $t088578930._2 | |
308 | + | let $t089359021 = getUserLeasingData(nodeAddress, userAddress) | |
309 | + | let userCurrentLeased = $t089359021._1 | |
310 | + | let userNextLeased = $t089359021._2 | |
315 | 311 | let checks = [if (!(isForceStop)) | |
316 | 312 | then true | |
317 | - | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
318 | - | then true | |
319 | - | else throwErr("unstake is temporary disabled"), if ((unstakeAmount > 0)) | |
313 | + | else throwErr("contract is temporary stopped"), if ((unstakeAmount > 0)) | |
320 | 314 | then true | |
321 | 315 | else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount)) | |
322 | 316 | then true | |
331 | 325 | then { | |
332 | 326 | let newNodeNextLease = (nodeNextLeased - unstakeAmount) | |
333 | 327 | let newUserNextLeased = (userNextLeased - unstakeAmount) | |
334 | - | let $ | |
335 | - | let toClaim = $ | |
336 | - | let toUnlock = $ | |
328 | + | let $t098349894 = getUserToClaimBalance(userAddress) | |
329 | + | let toClaim = $t098349894._1 | |
330 | + | let toUnlock = $t098349894._2 | |
337 | 331 | let newToUnlock = (toUnlock + unstakeAmount) | |
338 | 332 | let userTotalLocked = getUserTotalLocked(userAddress) | |
339 | 333 | let newUserTotalLocked = (userTotalLocked - unstakeAmount) | |
344 | 338 | ||
345 | 339 | ||
346 | 340 | func getClaimUnlockedActions (userAddress,claimAmount) = { | |
347 | - | let $ | |
348 | - | let toClaim = $ | |
349 | - | let toUnlock = $ | |
341 | + | let $t01062310683 = getUserToClaimBalance(userAddress) | |
342 | + | let toClaim = $t01062310683._1 | |
343 | + | let toUnlock = $t01062310683._2 | |
350 | 344 | let checks = [if (!(isForceStop)) | |
351 | 345 | then true | |
352 | - | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
353 | - | then true | |
354 | - | else throwErr("claim is temporary disabled"), if ((claimAmount > 0)) | |
346 | + | else throwErr("contract is temporary stopped"), if ((claimAmount > 0)) | |
355 | 347 | then true | |
356 | 348 | else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount)) | |
357 | 349 | then true | |
368 | 360 | ||
369 | 361 | ||
370 | 362 | func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = { | |
371 | - | let $ | |
372 | - | let toClaim = $ | |
373 | - | let toUnlock = $ | |
363 | + | let $t01144411504 = getUserToClaimBalance(userAddress) | |
364 | + | let toClaim = $t01144411504._1 | |
365 | + | let toUnlock = $t01144411504._2 | |
374 | 366 | let paymentAmount = if ((size(i.payments) == 0)) | |
375 | 367 | then 0 | |
376 | 368 | else i.payments[0].amount | |
396 | 388 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
397 | 389 | if ((checks == checks)) | |
398 | 390 | then { | |
399 | - | let $ | |
400 | - | let nodeCurrentLeased = $ | |
401 | - | let nodeNextLeased = $ | |
391 | + | let $t01257512648 = getLeasingNodeData(nodeAddress) | |
392 | + | let nodeCurrentLeased = $t01257512648._1 | |
393 | + | let nodeNextLeased = $t01257512648._2 | |
402 | 394 | let newNodeNextLease = (nodeNextLeased + userLeasingAmount) | |
403 | - | let $ | |
404 | - | let userCurrentLeased = $ | |
405 | - | let userNextLeased = $ | |
395 | + | let $t01271612802 = getUserLeasingData(nodeAddress, userAddress) | |
396 | + | let userCurrentLeased = $t01271612802._1 | |
397 | + | let userNextLeased = $t01271612802._2 | |
406 | 398 | let newUserNextLeased = (userNextLeased + userLeasingAmount) | |
407 | 399 | let fromUnlockedAmount = (userLeasingAmount - paymentAmount) | |
408 | 400 | let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)]) | |
462 | 454 | ||
463 | 455 | ||
464 | 456 | @Callable(i) | |
465 | - | func setForceOutStopFlag (stop) = { | |
466 | - | let check = [if (isInAdminList(toString(i.caller))) | |
467 | - | then true | |
468 | - | else throwErr("caller is not in adminList")] | |
469 | - | if ((check == check)) | |
470 | - | then [BooleanEntry(keyForceOutStop, stop)] | |
471 | - | else throw("Strict value is not equal to itself.") | |
472 | - | } | |
473 | - | ||
474 | - | ||
475 | - | ||
476 | - | @Callable(i) | |
477 | 457 | func getNodeDataREADONLY (nodeAddress) = { | |
478 | - | let $ | |
479 | - | let currentLease = $ | |
480 | - | let nextLeased = $ | |
458 | + | let $t01524515309 = getLeasingNodeData(nodeAddress) | |
459 | + | let currentLease = $t01524515309._1 | |
460 | + | let nextLeased = $t01524515309._2 | |
481 | 461 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
482 | 462 | } | |
483 | 463 | ||
485 | 465 | ||
486 | 466 | @Callable(i) | |
487 | 467 | func getUserLeasingDataREADONLY (nodeAddress,userAddress) = { | |
488 | - | let $ | |
489 | - | let currentLease = $ | |
490 | - | let nextLeased = $ | |
468 | + | let $t01567915756 = getUserLeasingData(nodeAddress, userAddress) | |
469 | + | let currentLease = $t01567915756._1 | |
470 | + | let nextLeased = $t01567915756._2 | |
491 | 471 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
492 | 472 | } | |
493 | 473 | ||
495 | 475 | ||
496 | 476 | @Callable(i) | |
497 | 477 | func getUserDataREADONLY (userAddress) = { | |
498 | - | let $ | |
499 | - | let toClaim = $ | |
500 | - | let toUnlock = $ | |
478 | + | let $t01611916179 = getUserToClaimBalance(userAddress) | |
479 | + | let toClaim = $t01611916179._1 | |
480 | + | let toUnlock = $t01611916179._2 | |
501 | 481 | let userTotalLocked = getUserTotalLocked(userAddress) | |
502 | 482 | $Tuple2(nil, $Tuple6(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height)) | |
503 | 483 | } | |
544 | 524 | @Callable(i) | |
545 | 525 | func claimAll () = { | |
546 | 526 | let userAddress = toString(i.caller) | |
547 | - | let $ | |
548 | - | let toClaim = $ | |
549 | - | let toUnlock = $ | |
527 | + | let $t01719317253 = getUserToClaimBalance(userAddress) | |
528 | + | let toClaim = $t01719317253._1 | |
529 | + | let toUnlock = $t01719317253._2 | |
550 | 530 | let checks = [if ((toClaim > 0)) | |
551 | 531 | then true | |
552 | 532 | else throwErr("nothing to claim")] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let contractFile = "l2mp_leasing.ride" | |
5 | 5 | ||
6 | 6 | let SEP = "__" | |
7 | 7 | ||
8 | 8 | func throwErr (msg) = throw(((contractFile + ": ") + msg)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | let keyAssetId = makeString(["%s", "assetId"], SEP) | |
12 | 12 | ||
13 | 13 | let keyForceStop = makeString(["%s", "forceStop"], SEP) | |
14 | - | ||
15 | - | let keyForceOutStop = makeString(["%s", "forceOutStop"], SEP) | |
16 | 14 | ||
17 | 15 | let keyPeriodOffsetId = makeString(["%s", "offsetId"], SEP) | |
18 | 16 | ||
19 | 17 | let keyPeriodOffsetHeight = makeString(["%s", "offsetHeight"], SEP) | |
20 | 18 | ||
21 | 19 | let keyPeriodLength = makeString(["%s", "periodLength"], SEP) | |
22 | 20 | ||
23 | 21 | let periodOffsetId = valueOrElse(getInteger(this, keyPeriodOffsetId), 0) | |
24 | 22 | ||
25 | 23 | let periodLength = valueOrElse(getInteger(this, keyPeriodLength), 10000) | |
26 | 24 | ||
27 | 25 | let periodOffsetHeight = valueOrElse(getInteger(this, keyPeriodOffsetHeight), -1) | |
28 | 26 | ||
29 | 27 | let currentPeriodId = if (if ((height > periodOffsetHeight)) | |
30 | 28 | then (periodOffsetHeight != -1) | |
31 | 29 | else false) | |
32 | 30 | then (((height - periodOffsetHeight) / periodLength) + periodOffsetId) | |
33 | 31 | else max([0, (periodOffsetId - 1)]) | |
34 | 32 | ||
35 | 33 | let currentPeriodHeight = if (if ((periodOffsetHeight == -1)) | |
36 | 34 | then true | |
37 | 35 | else if ((currentPeriodId == 0)) | |
38 | 36 | then (periodOffsetHeight > height) | |
39 | 37 | else false) | |
40 | 38 | then 0 | |
41 | 39 | else (periodOffsetHeight + ((currentPeriodId - periodOffsetId) * periodLength)) | |
42 | 40 | ||
43 | 41 | let nextPeriodHeight = if (if ((periodOffsetHeight == -1)) | |
44 | 42 | then true | |
45 | 43 | else if ((currentPeriodId == 0)) | |
46 | 44 | then (periodOffsetHeight > height) | |
47 | 45 | else false) | |
48 | 46 | then 0 | |
49 | 47 | else (currentPeriodHeight + periodLength) | |
50 | 48 | ||
51 | 49 | func keyLeasingNodeData (nodeAddress) = makeString(["%s", nodeAddress], SEP) | |
52 | 50 | ||
53 | 51 | ||
54 | 52 | func keyUserLeasingNodeData (userAddress,nodeAddress) = makeString(["%s%s", nodeAddress, userAddress], SEP) | |
55 | 53 | ||
56 | 54 | ||
57 | 55 | func keyUserToClaim (userAddress) = makeString(["%s%s", "toClaim", userAddress], SEP) | |
58 | 56 | ||
59 | 57 | ||
60 | 58 | func keyUserTotalLocked (userAddress) = makeString(["%s%s", "userTotalLocked", userAddress], SEP) | |
61 | 59 | ||
62 | 60 | ||
63 | 61 | func keyNodeLeasingByHeight (nodeAddress) = { | |
64 | 62 | let h = if ((periodOffsetHeight == -1)) | |
65 | 63 | then 0 | |
66 | 64 | else height | |
67 | 65 | makeString(["%s%d", nodeAddress, toString(h)], SEP) | |
68 | 66 | } | |
69 | 67 | ||
70 | 68 | ||
71 | 69 | func keyUserLeasingByHeight (nodeAddress,userAddress) = { | |
72 | 70 | let h = if ((periodOffsetHeight == -1)) | |
73 | 71 | then 0 | |
74 | 72 | else height | |
75 | 73 | makeString(["%s%s%d", nodeAddress, userAddress, toString(h)], SEP) | |
76 | 74 | } | |
77 | 75 | ||
78 | 76 | ||
79 | 77 | let assetIdString = valueOrElse(getString(this, keyAssetId), "WAVES") | |
80 | 78 | ||
81 | 79 | let assetIdBytes = if ((assetIdString == "WAVES")) | |
82 | 80 | then unit | |
83 | 81 | else fromBase58String(assetIdString) | |
84 | 82 | ||
85 | 83 | let isForceStop = valueOrElse(getBoolean(this, keyForceStop), false) | |
86 | 84 | ||
87 | - | let isForceOutStop = valueOrElse(getBoolean(this, keyForceOutStop), false) | |
88 | - | ||
89 | 85 | func isValidAddress (address) = match addressFromString(address) { | |
90 | 86 | case a: Address => | |
91 | 87 | true | |
92 | 88 | case _ => | |
93 | 89 | false | |
94 | 90 | } | |
95 | 91 | ||
96 | 92 | ||
97 | 93 | let ADMIN_LIST_SIZE = 5 | |
98 | 94 | ||
99 | 95 | let QUORUM = 3 | |
100 | 96 | ||
101 | 97 | let TXID_BYTES_LENGTH = 32 | |
102 | 98 | ||
103 | 99 | func keyAllowedTxIdVotePrefix (txId) = makeString(["%s%s%s", "allowTxId", txId], SEP) | |
104 | 100 | ||
105 | 101 | ||
106 | 102 | func keyFullAdminVote (prefix,adminAddress) = makeString([prefix, adminAddress], SEP) | |
107 | 103 | ||
108 | 104 | ||
109 | 105 | func keyAdminAddressList () = makeString(["%s", "adminAddressList"], SEP) | |
110 | 106 | ||
111 | 107 | ||
112 | 108 | func keyAllowedTxId () = makeString(["%s", "txId"], SEP) | |
113 | 109 | ||
114 | 110 | ||
115 | 111 | func getAdminVote (prefix,admin) = { | |
116 | 112 | let voteKey = keyFullAdminVote(prefix, admin) | |
117 | 113 | valueOrElse(getInteger(voteKey), 0) | |
118 | 114 | } | |
119 | 115 | ||
120 | 116 | ||
121 | 117 | func getAdminsList () = match getString(this, keyAdminAddressList()) { | |
122 | 118 | case s: String => | |
123 | 119 | split(s, SEP) | |
124 | 120 | case _ => | |
125 | 121 | nil | |
126 | 122 | } | |
127 | 123 | ||
128 | 124 | ||
129 | 125 | func isInAdminList (address) = containsElement(getAdminsList(), address) | |
130 | 126 | ||
131 | 127 | ||
132 | 128 | func genVotesKeysHelper (a,adminAddress) = { | |
133 | - | let $ | |
134 | - | let result = $ | |
135 | - | let prefix = $ | |
129 | + | let $t035623586 = a | |
130 | + | let result = $t035623586._1 | |
131 | + | let prefix = $t035623586._2 | |
136 | 132 | $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix) | |
137 | 133 | } | |
138 | 134 | ||
139 | 135 | ||
140 | 136 | func genVotesKeys (keyPrefix) = { | |
141 | 137 | let adminList = keyAdminAddressList() | |
142 | - | let $ | |
138 | + | let $t037333817 = { | |
143 | 139 | let $l = getAdminsList() | |
144 | 140 | let $s = size($l) | |
145 | 141 | let $acc0 = $Tuple2(nil, keyPrefix) | |
146 | 142 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
147 | 143 | then $a | |
148 | 144 | else genVotesKeysHelper($a, $l[$i]) | |
149 | 145 | ||
150 | 146 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
151 | 147 | then $a | |
152 | 148 | else throw("List size exceeds 5") | |
153 | 149 | ||
154 | 150 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
155 | 151 | } | |
156 | - | let result = $ | |
157 | - | let prefix = $ | |
152 | + | let result = $t037333817._1 | |
153 | + | let prefix = $t037333817._2 | |
158 | 154 | result | |
159 | 155 | } | |
160 | 156 | ||
161 | 157 | ||
162 | 158 | func countVotesHelper (result,voteKey) = (result + valueOrElse(getInteger(voteKey), 0)) | |
163 | 159 | ||
164 | 160 | ||
165 | 161 | func countVotes (prefix) = { | |
166 | 162 | let votes = genVotesKeys(prefix) | |
167 | 163 | let $l = votes | |
168 | 164 | let $s = size($l) | |
169 | 165 | let $acc0 = 0 | |
170 | 166 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
171 | 167 | then $a | |
172 | 168 | else countVotesHelper($a, $l[$i]) | |
173 | 169 | ||
174 | 170 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
175 | 171 | then $a | |
176 | 172 | else throw("List size exceeds 5") | |
177 | 173 | ||
178 | 174 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
179 | 175 | } | |
180 | 176 | ||
181 | 177 | ||
182 | 178 | func clearVotesHelper (result,key) = (result :+ DeleteEntry(key)) | |
183 | 179 | ||
184 | 180 | ||
185 | 181 | func getClearVoteEntries (prefix) = { | |
186 | 182 | let votes = genVotesKeys(prefix) | |
187 | 183 | let $l = votes | |
188 | 184 | let $s = size($l) | |
189 | 185 | let $acc0 = nil | |
190 | 186 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
191 | 187 | then $a | |
192 | 188 | else clearVotesHelper($a, $l[$i]) | |
193 | 189 | ||
194 | 190 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
195 | 191 | then $a | |
196 | 192 | else throw("List size exceeds 5") | |
197 | 193 | ||
198 | 194 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
199 | 195 | } | |
200 | 196 | ||
201 | 197 | ||
202 | 198 | func voteINTERNAL (callerAddressString,keyPrefix,minVotes,voteResult) = { | |
203 | 199 | let voteKey = keyFullAdminVote(keyPrefix, callerAddressString) | |
204 | 200 | let adminCurrentVote = getAdminVote(keyPrefix, callerAddressString) | |
205 | 201 | let err = if (!(isInAdminList(callerAddressString))) | |
206 | 202 | then throwErr((("Address: " + callerAddressString) + " not in Admin list")) | |
207 | 203 | else if ((adminCurrentVote == 1)) | |
208 | 204 | then throwErr((voteKey + " you already voted")) | |
209 | 205 | else unit | |
210 | 206 | if ((err == err)) | |
211 | 207 | then { | |
212 | 208 | let votes = countVotes(keyPrefix) | |
213 | 209 | if (((votes + 1) >= minVotes)) | |
214 | 210 | then { | |
215 | 211 | let clearVoteEntries = getClearVoteEntries(keyPrefix) | |
216 | 212 | (clearVoteEntries ++ voteResult) | |
217 | 213 | } | |
218 | 214 | else [IntegerEntry(voteKey, 1)] | |
219 | 215 | } | |
220 | 216 | else throw("Strict value is not equal to itself.") | |
221 | 217 | } | |
222 | 218 | ||
223 | 219 | ||
224 | 220 | func getLeasingNodeEntry (nodeAddress,currentLeased,nextLeased) = { | |
225 | 221 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(currentLeased), toString(nextPeriodHeight), toString(nextLeased)], SEP) | |
226 | 222 | StringEntry(keyLeasingNodeData(nodeAddress), valueString) | |
227 | 223 | } | |
228 | 224 | ||
229 | 225 | ||
230 | 226 | func getLeasingNodeData (nodeAddress) = { | |
231 | 227 | let leasingNodeDataStringRaw = getString(this, keyLeasingNodeData(nodeAddress)) | |
232 | 228 | match leasingNodeDataStringRaw { | |
233 | 229 | case ds: String => | |
234 | 230 | let dataList = split(ds, SEP) | |
235 | 231 | let nodeCurrentPeriod = parseIntValue(dataList[1]) | |
236 | 232 | let nodeCurrentLeased = parseIntValue(dataList[2]) | |
237 | 233 | let nodeNextPeriod = parseIntValue(dataList[3]) | |
238 | 234 | let nodeNextLeased = parseIntValue(dataList[4]) | |
239 | 235 | if (if ((nodeNextPeriod > height)) | |
240 | 236 | then true | |
241 | 237 | else (periodOffsetHeight == -1)) | |
242 | 238 | then $Tuple2(nodeCurrentLeased, nodeNextLeased) | |
243 | 239 | else $Tuple2(nodeNextLeased, nodeNextLeased) | |
244 | 240 | case _ => | |
245 | 241 | $Tuple2(0, 0) | |
246 | 242 | } | |
247 | 243 | } | |
248 | 244 | ||
249 | 245 | ||
250 | 246 | func getUserLeasingEntry (nodeAddress,userAddress,userCurrentLeased,userNextLeased) = { | |
251 | 247 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(userCurrentLeased), toString(nextPeriodHeight), toString(userNextLeased)], SEP) | |
252 | 248 | StringEntry(keyUserLeasingNodeData(userAddress, nodeAddress), valueString) | |
253 | 249 | } | |
254 | 250 | ||
255 | 251 | ||
256 | 252 | func getUserLeasingData (nodeAddress,userAddress) = { | |
257 | 253 | let leasingUserDataStringRaw = getString(this, keyUserLeasingNodeData(userAddress, nodeAddress)) | |
258 | 254 | match leasingUserDataStringRaw { | |
259 | 255 | case ds: String => | |
260 | 256 | let dataList = split(ds, SEP) | |
261 | 257 | let userCurrentPeriod = parseIntValue(dataList[1]) | |
262 | 258 | let userCurrentLeased = parseIntValue(dataList[2]) | |
263 | 259 | let userNextPeriod = parseIntValue(dataList[3]) | |
264 | 260 | let userNextLeased = parseIntValue(dataList[4]) | |
265 | 261 | if (if ((userNextPeriod > height)) | |
266 | 262 | then true | |
267 | 263 | else (periodOffsetHeight == -1)) | |
268 | 264 | then $Tuple2(userCurrentLeased, userNextLeased) | |
269 | 265 | else $Tuple2(userNextLeased, userNextLeased) | |
270 | 266 | case _ => | |
271 | 267 | $Tuple2(0, 0) | |
272 | 268 | } | |
273 | 269 | } | |
274 | 270 | ||
275 | 271 | ||
276 | 272 | func getUserToClaimEntry (userAddress,toClaim,toUnlock) = { | |
277 | 273 | let valueString = makeString(["%d%d%d%d", toString(currentPeriodHeight), toString(toClaim), toString(nextPeriodHeight), toString(toUnlock)], SEP) | |
278 | 274 | StringEntry(keyUserToClaim(userAddress), valueString) | |
279 | 275 | } | |
280 | 276 | ||
281 | 277 | ||
282 | 278 | func getUserToClaimBalance (userAddress) = { | |
283 | 279 | let userToClaimDataStringRaw = getString(this, keyUserToClaim(userAddress)) | |
284 | 280 | match userToClaimDataStringRaw { | |
285 | 281 | case ds: String => | |
286 | 282 | let dataList = split(ds, SEP) | |
287 | 283 | let currentPeriod = parseIntValue(dataList[1]) | |
288 | 284 | let toClaim = parseIntValue(dataList[2]) | |
289 | 285 | let nextPeriod = parseIntValue(dataList[3]) | |
290 | 286 | let toUnlock = parseIntValue(dataList[4]) | |
291 | 287 | if (if ((nextPeriod > height)) | |
292 | 288 | then true | |
293 | 289 | else (currentPeriodId == 0)) | |
294 | 290 | then $Tuple2(toClaim, toUnlock) | |
295 | 291 | else $Tuple2((toClaim + toUnlock), 0) | |
296 | 292 | case _ => | |
297 | 293 | $Tuple2(0, 0) | |
298 | 294 | } | |
299 | 295 | } | |
300 | 296 | ||
301 | 297 | ||
302 | 298 | func getUserTotalLockedEntry (userAddress,userTotalLocked) = IntegerEntry(keyUserTotalLocked(userAddress), userTotalLocked) | |
303 | 299 | ||
304 | 300 | ||
305 | 301 | func getUserTotalLocked (userAddress) = valueOrElse(getInteger(this, keyUserTotalLocked(userAddress)), 0) | |
306 | 302 | ||
307 | 303 | ||
308 | 304 | func getUnstakeActions (nodeAddress,userAddress,unstakeAmount) = { | |
309 | - | let $ | |
310 | - | let nodeCurrentLeased = $ | |
311 | - | let nodeNextLeased = $ | |
312 | - | let $ | |
313 | - | let userCurrentLeased = $ | |
314 | - | let userNextLeased = $ | |
305 | + | let $t088578930 = getLeasingNodeData(nodeAddress) | |
306 | + | let nodeCurrentLeased = $t088578930._1 | |
307 | + | let nodeNextLeased = $t088578930._2 | |
308 | + | let $t089359021 = getUserLeasingData(nodeAddress, userAddress) | |
309 | + | let userCurrentLeased = $t089359021._1 | |
310 | + | let userNextLeased = $t089359021._2 | |
315 | 311 | let checks = [if (!(isForceStop)) | |
316 | 312 | then true | |
317 | - | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
318 | - | then true | |
319 | - | else throwErr("unstake is temporary disabled"), if ((unstakeAmount > 0)) | |
313 | + | else throwErr("contract is temporary stopped"), if ((unstakeAmount > 0)) | |
320 | 314 | then true | |
321 | 315 | else throwErr("unstake amount should be greater than 0"), if ((userNextLeased >= unstakeAmount)) | |
322 | 316 | then true | |
323 | 317 | else throwErr("unstake amount should be less or equal user staked amount"), if ((nodeNextLeased >= unstakeAmount)) | |
324 | 318 | then true | |
325 | 319 | else throwErr("unstake amount should be less or equal node staked amount"), if (isValidAddress(nodeAddress)) | |
326 | 320 | then true | |
327 | 321 | else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress)) | |
328 | 322 | then true | |
329 | 323 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
330 | 324 | if ((checks == checks)) | |
331 | 325 | then { | |
332 | 326 | let newNodeNextLease = (nodeNextLeased - unstakeAmount) | |
333 | 327 | let newUserNextLeased = (userNextLeased - unstakeAmount) | |
334 | - | let $ | |
335 | - | let toClaim = $ | |
336 | - | let toUnlock = $ | |
328 | + | let $t098349894 = getUserToClaimBalance(userAddress) | |
329 | + | let toClaim = $t098349894._1 | |
330 | + | let toUnlock = $t098349894._2 | |
337 | 331 | let newToUnlock = (toUnlock + unstakeAmount) | |
338 | 332 | let userTotalLocked = getUserTotalLocked(userAddress) | |
339 | 333 | let newUserTotalLocked = (userTotalLocked - unstakeAmount) | |
340 | 334 | [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, toClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)] | |
341 | 335 | } | |
342 | 336 | else throw("Strict value is not equal to itself.") | |
343 | 337 | } | |
344 | 338 | ||
345 | 339 | ||
346 | 340 | func getClaimUnlockedActions (userAddress,claimAmount) = { | |
347 | - | let $ | |
348 | - | let toClaim = $ | |
349 | - | let toUnlock = $ | |
341 | + | let $t01062310683 = getUserToClaimBalance(userAddress) | |
342 | + | let toClaim = $t01062310683._1 | |
343 | + | let toUnlock = $t01062310683._2 | |
350 | 344 | let checks = [if (!(isForceStop)) | |
351 | 345 | then true | |
352 | - | else throwErr("contract is temporary stopped"), if (!(isForceOutStop)) | |
353 | - | then true | |
354 | - | else throwErr("claim is temporary disabled"), if ((claimAmount > 0)) | |
346 | + | else throwErr("contract is temporary stopped"), if ((claimAmount > 0)) | |
355 | 347 | then true | |
356 | 348 | else throwErr("claim amount should be greater than 0"), if ((toClaim >= claimAmount)) | |
357 | 349 | then true | |
358 | 350 | else throwErr("claim amount should be less or equal unlocked amount"), if (isValidAddress(userAddress)) | |
359 | 351 | then true | |
360 | 352 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
361 | 353 | if ((checks == checks)) | |
362 | 354 | then { | |
363 | 355 | let newToClaim = (toClaim - claimAmount) | |
364 | 356 | [getUserToClaimEntry(userAddress, newToClaim, toUnlock), ScriptTransfer(addressFromStringValue(userAddress), claimAmount, assetIdBytes)] | |
365 | 357 | } | |
366 | 358 | else throw("Strict value is not equal to itself.") | |
367 | 359 | } | |
368 | 360 | ||
369 | 361 | ||
370 | 362 | func getStakeActions (nodeAddress,userAddress,userLeasingAmount,i) = { | |
371 | - | let $ | |
372 | - | let toClaim = $ | |
373 | - | let toUnlock = $ | |
363 | + | let $t01144411504 = getUserToClaimBalance(userAddress) | |
364 | + | let toClaim = $t01144411504._1 | |
365 | + | let toUnlock = $t01144411504._2 | |
374 | 366 | let paymentAmount = if ((size(i.payments) == 0)) | |
375 | 367 | then 0 | |
376 | 368 | else i.payments[0].amount | |
377 | 369 | let available = ((toUnlock + toClaim) + paymentAmount) | |
378 | 370 | let checks = [if (!(isForceStop)) | |
379 | 371 | then true | |
380 | 372 | else throwErr("contract is temporary stopped"), if ((1 >= size(i.payments))) | |
381 | 373 | then true | |
382 | 374 | else throwErr("maximum 1 payment"), if (if ((size(i.payments) == 0)) | |
383 | 375 | then true | |
384 | 376 | else (i.payments[0].assetId == assetIdBytes)) | |
385 | 377 | then true | |
386 | 378 | else throwErr(makeString(["payment assetId should be:", assetIdString], " ")), if ((userLeasingAmount > 0)) | |
387 | 379 | then true | |
388 | 380 | else throwErr("amount should be greater than 0"), if ((available >= userLeasingAmount)) | |
389 | 381 | then true | |
390 | 382 | else throwErr("amount should be less or equal (payment + available) amount"), if ((userLeasingAmount >= paymentAmount)) | |
391 | 383 | then true | |
392 | 384 | else throw("amount should be greater or equal payment amount"), if (isValidAddress(nodeAddress)) | |
393 | 385 | then true | |
394 | 386 | else throwErr(makeString(["node address is not valid:", nodeAddress], " ")), if (isValidAddress(userAddress)) | |
395 | 387 | then true | |
396 | 388 | else throwErr(makeString(["user address is not valid:", userAddress], " "))] | |
397 | 389 | if ((checks == checks)) | |
398 | 390 | then { | |
399 | - | let $ | |
400 | - | let nodeCurrentLeased = $ | |
401 | - | let nodeNextLeased = $ | |
391 | + | let $t01257512648 = getLeasingNodeData(nodeAddress) | |
392 | + | let nodeCurrentLeased = $t01257512648._1 | |
393 | + | let nodeNextLeased = $t01257512648._2 | |
402 | 394 | let newNodeNextLease = (nodeNextLeased + userLeasingAmount) | |
403 | - | let $ | |
404 | - | let userCurrentLeased = $ | |
405 | - | let userNextLeased = $ | |
395 | + | let $t01271612802 = getUserLeasingData(nodeAddress, userAddress) | |
396 | + | let userCurrentLeased = $t01271612802._1 | |
397 | + | let userNextLeased = $t01271612802._2 | |
406 | 398 | let newUserNextLeased = (userNextLeased + userLeasingAmount) | |
407 | 399 | let fromUnlockedAmount = (userLeasingAmount - paymentAmount) | |
408 | 400 | let newToUnlock = max([0, (toUnlock - fromUnlockedAmount)]) | |
409 | 401 | let newToClaim = min([toClaim, (toClaim + (toUnlock - fromUnlockedAmount))]) | |
410 | 402 | let userTotalLocked = getUserTotalLocked(userAddress) | |
411 | 403 | let newUserTotalLocked = (userTotalLocked + userLeasingAmount) | |
412 | 404 | [getLeasingNodeEntry(nodeAddress, nodeCurrentLeased, newNodeNextLease), getUserLeasingEntry(nodeAddress, userAddress, userCurrentLeased, newUserNextLeased), getUserToClaimEntry(userAddress, newToClaim, newToUnlock), getUserTotalLockedEntry(userAddress, newUserTotalLocked), IntegerEntry(keyNodeLeasingByHeight(nodeAddress), newNodeNextLease), IntegerEntry(keyUserLeasingByHeight(nodeAddress, userAddress), newUserNextLeased)] | |
413 | 405 | } | |
414 | 406 | else throw("Strict value is not equal to itself.") | |
415 | 407 | } | |
416 | 408 | ||
417 | 409 | ||
418 | 410 | func getStakeFromPaymentActions (nodeAddress,userAddress,i) = { | |
419 | 411 | let checks = [if ((size(i.payments) == 1)) | |
420 | 412 | then true | |
421 | 413 | else throwErr("payment size should be exactly 1")] | |
422 | 414 | if ((checks == checks)) | |
423 | 415 | then getStakeActions(nodeAddress, userAddress, i.payments[0].amount, i) | |
424 | 416 | else throw("Strict value is not equal to itself.") | |
425 | 417 | } | |
426 | 418 | ||
427 | 419 | ||
428 | 420 | func getSetNewPeriodLengthActions (newPeriodLength) = { | |
429 | 421 | let check = [if ((newPeriodLength > 0)) | |
430 | 422 | then true | |
431 | 423 | else throwErr("period length should be greater than 0")] | |
432 | 424 | if ((check == check)) | |
433 | 425 | then if ((periodOffsetHeight == -1)) | |
434 | 426 | then [IntegerEntry(keyPeriodLength, newPeriodLength), IntegerEntry(keyPeriodOffsetHeight, height)] | |
435 | 427 | else [IntegerEntry(keyPeriodOffsetId, (currentPeriodId + 1)), IntegerEntry(keyPeriodOffsetHeight, nextPeriodHeight), IntegerEntry(keyPeriodLength, newPeriodLength)] | |
436 | 428 | else throw("Strict value is not equal to itself.") | |
437 | 429 | } | |
438 | 430 | ||
439 | 431 | ||
440 | 432 | @Callable(i) | |
441 | 433 | func setNewPeriodLength (newPeriodLength) = { | |
442 | 434 | let checks = [if (isInAdminList(toString(i.caller))) | |
443 | 435 | then true | |
444 | 436 | else throwErr("caller is not in adminList")] | |
445 | 437 | if ((checks == checks)) | |
446 | 438 | then getSetNewPeriodLengthActions(newPeriodLength) | |
447 | 439 | else throw("Strict value is not equal to itself.") | |
448 | 440 | } | |
449 | 441 | ||
450 | 442 | ||
451 | 443 | ||
452 | 444 | @Callable(i) | |
453 | 445 | func setForceStopFlag (stop) = { | |
454 | 446 | let check = [if (isInAdminList(toString(i.caller))) | |
455 | 447 | then true | |
456 | 448 | else throwErr("caller is not in adminList")] | |
457 | 449 | if ((check == check)) | |
458 | 450 | then [BooleanEntry(keyForceStop, stop)] | |
459 | 451 | else throw("Strict value is not equal to itself.") | |
460 | 452 | } | |
461 | 453 | ||
462 | 454 | ||
463 | 455 | ||
464 | 456 | @Callable(i) | |
465 | - | func setForceOutStopFlag (stop) = { | |
466 | - | let check = [if (isInAdminList(toString(i.caller))) | |
467 | - | then true | |
468 | - | else throwErr("caller is not in adminList")] | |
469 | - | if ((check == check)) | |
470 | - | then [BooleanEntry(keyForceOutStop, stop)] | |
471 | - | else throw("Strict value is not equal to itself.") | |
472 | - | } | |
473 | - | ||
474 | - | ||
475 | - | ||
476 | - | @Callable(i) | |
477 | 457 | func getNodeDataREADONLY (nodeAddress) = { | |
478 | - | let $ | |
479 | - | let currentLease = $ | |
480 | - | let nextLeased = $ | |
458 | + | let $t01524515309 = getLeasingNodeData(nodeAddress) | |
459 | + | let currentLease = $t01524515309._1 | |
460 | + | let nextLeased = $t01524515309._2 | |
481 | 461 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
482 | 462 | } | |
483 | 463 | ||
484 | 464 | ||
485 | 465 | ||
486 | 466 | @Callable(i) | |
487 | 467 | func getUserLeasingDataREADONLY (nodeAddress,userAddress) = { | |
488 | - | let $ | |
489 | - | let currentLease = $ | |
490 | - | let nextLeased = $ | |
468 | + | let $t01567915756 = getUserLeasingData(nodeAddress, userAddress) | |
469 | + | let currentLease = $t01567915756._1 | |
470 | + | let nextLeased = $t01567915756._2 | |
491 | 471 | $Tuple2(nil, $Tuple5(currentPeriodHeight, currentLease, nextPeriodHeight, nextLeased, height)) | |
492 | 472 | } | |
493 | 473 | ||
494 | 474 | ||
495 | 475 | ||
496 | 476 | @Callable(i) | |
497 | 477 | func getUserDataREADONLY (userAddress) = { | |
498 | - | let $ | |
499 | - | let toClaim = $ | |
500 | - | let toUnlock = $ | |
478 | + | let $t01611916179 = getUserToClaimBalance(userAddress) | |
479 | + | let toClaim = $t01611916179._1 | |
480 | + | let toUnlock = $t01611916179._2 | |
501 | 481 | let userTotalLocked = getUserTotalLocked(userAddress) | |
502 | 482 | $Tuple2(nil, $Tuple6(currentPeriodHeight, toClaim, nextPeriodHeight, toUnlock, userTotalLocked, height)) | |
503 | 483 | } | |
504 | 484 | ||
505 | 485 | ||
506 | 486 | ||
507 | 487 | @Callable(i) | |
508 | 488 | func leaseByAddress (nodeAddress,userAddress) = getStakeFromPaymentActions(nodeAddress, userAddress, i) | |
509 | 489 | ||
510 | 490 | ||
511 | 491 | ||
512 | 492 | @Callable(i) | |
513 | 493 | func lease (nodeAddress) = { | |
514 | 494 | let userAddress = toString(i.caller) | |
515 | 495 | getStakeFromPaymentActions(nodeAddress, userAddress, i) | |
516 | 496 | } | |
517 | 497 | ||
518 | 498 | ||
519 | 499 | ||
520 | 500 | @Callable(i) | |
521 | 501 | func leaseFromLocked (nodeAddress,amount) = { | |
522 | 502 | let userAddress = toString(i.caller) | |
523 | 503 | getStakeActions(nodeAddress, userAddress, amount, i) | |
524 | 504 | } | |
525 | 505 | ||
526 | 506 | ||
527 | 507 | ||
528 | 508 | @Callable(i) | |
529 | 509 | func cancelLease (nodeAddress,amount) = { | |
530 | 510 | let userAddress = toString(i.caller) | |
531 | 511 | getUnstakeActions(nodeAddress, userAddress, amount) | |
532 | 512 | } | |
533 | 513 | ||
534 | 514 | ||
535 | 515 | ||
536 | 516 | @Callable(i) | |
537 | 517 | func claim (amount) = { | |
538 | 518 | let userAddress = toString(i.caller) | |
539 | 519 | getClaimUnlockedActions(userAddress, amount) | |
540 | 520 | } | |
541 | 521 | ||
542 | 522 | ||
543 | 523 | ||
544 | 524 | @Callable(i) | |
545 | 525 | func claimAll () = { | |
546 | 526 | let userAddress = toString(i.caller) | |
547 | - | let $ | |
548 | - | let toClaim = $ | |
549 | - | let toUnlock = $ | |
527 | + | let $t01719317253 = getUserToClaimBalance(userAddress) | |
528 | + | let toClaim = $t01719317253._1 | |
529 | + | let toUnlock = $t01719317253._2 | |
550 | 530 | let checks = [if ((toClaim > 0)) | |
551 | 531 | then true | |
552 | 532 | else throwErr("nothing to claim")] | |
553 | 533 | if ((checks == checks)) | |
554 | 534 | then getClaimUnlockedActions(userAddress, toClaim) | |
555 | 535 | else throw("Strict value is not equal to itself.") | |
556 | 536 | } | |
557 | 537 | ||
558 | 538 | ||
559 | 539 | ||
560 | 540 | @Callable(i) | |
561 | 541 | func voteForTxId (txId) = { | |
562 | 542 | let callerAddressString = toBase58String(i.caller.bytes) | |
563 | 543 | let keyPrefix = keyAllowedTxIdVotePrefix(txId) | |
564 | 544 | let result = [StringEntry(keyAllowedTxId(), txId)] | |
565 | 545 | let allowedTxIdOption = getString(this, keyAllowedTxId()) | |
566 | 546 | let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH)) | |
567 | 547 | then true | |
568 | 548 | else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit)) | |
569 | 549 | then true | |
570 | 550 | else (value(allowedTxIdOption) != txId)) | |
571 | 551 | then true | |
572 | 552 | else throwErr((txId + " is already allowed"))] | |
573 | 553 | if ((err == err)) | |
574 | 554 | then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result) | |
575 | 555 | else throw("Strict value is not equal to itself.") | |
576 | 556 | } | |
577 | 557 | ||
578 | 558 | ||
579 | 559 | @Verifier(tx) | |
580 | 560 | func verify () = { | |
581 | 561 | let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), ""))) | |
582 | 562 | let byOwner = if ((size(getAdminsList()) >= QUORUM)) | |
583 | 563 | then false | |
584 | 564 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
585 | 565 | if (byAdmins) | |
586 | 566 | then true | |
587 | 567 | else byOwner | |
588 | 568 | } | |
589 | 569 |
github/deemru/w8io/169f3d6 66.97 ms ◑