tx · 5bGLFJE8q3u6BTaGvAQ4S1xyXizZCnvxSFNGsvFDCsPQ 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC: -0.01400000 Waves 2021.12.06 17:21 [1822505] smart account 3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC > SELF 0.00000000 Waves
{ "type": 13, "id": "5bGLFJE8q3u6BTaGvAQ4S1xyXizZCnvxSFNGsvFDCsPQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1638800478259, "version": 2, "chainId": 84, "sender": "3Mp5JgVSHA9iziujC9Kmnf2rCN5SYFE97yC", "senderPublicKey": "CSx1y2ADZAi6KvFZT2LoqQmX5qBxDVVGGZ6heDAGngHM", "proofs": [ "4dhyoMcayAm2grQbnTihxPhw4a5V5Rqyu8yx5XZVSNj6odDfSfbetfaURaNQyhL13yJzv2gj7UvsHsBNzjtUf9Ng", "DiaA9Kc3L9uHKgusCi4bSYg6bZ4N29hmdreFdUps4AzAta5bHfCMSYuS1xXcxJ5dWeSNnUgscRvKijPmgaXiVsQ" ], "script": "base64:AAIFAAAAAAAAABwIAhIHCgUBERgRGBIAEgMKAQgSBAoCAQgSABIAAAAAHQAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAADGtleUVuZEhlaWdodAIAAAAKZW5kX2hlaWdodAAAAAAPa2V5UHJpemVzUHJpY2VzAgAAAA1wcml6ZXNfcHJpY2VzAAAAAA1rZXlQcml6ZXNBSWRzAgAAABdwcml6ZXNfYWNoaWV2ZW1lbnRzX2lkcwAAAAAQa2V5UHJpemVzQW1vdW50cwIAAAANcHJpemVzX2Ftb3VudAAAAAAOa2V5TGV2ZWxQcmljZXMCAAAADGxldmVsX3ByaWNlcwAAAAAWa2V5TGV2ZWxBY2hpZXZlbW50c0lkcwIAAAAWbGV2ZWxfYWNoaWV2ZW1lbnRzX2lkcwAAAAAJa2V5U1dPUGlkAgAAAAdTV09QX2lkAAAAAA5rZXlUb3RhbEJ1cm5lZAIAAAAMdG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DAFAAAAAnR4BQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zHaGNyA==", "height": 1822505, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DyfVjne47oHXsdn2Dw7xEYVD7ZGDUmFVx62haxzJSMcc Next: CbMYue2mawHMSaUGwwqTVeGHqULXAXvFbgzakMy6vsDS Diff:
Old | New | Differences | |
---|---|---|---|
66 | 66 | ||
67 | 67 | ||
68 | 68 | func calcPrizesAmounts (acc,next) = { | |
69 | - | let $ | |
70 | - | let total = $ | |
71 | - | let result = $ | |
69 | + | let $t016941719 = acc | |
70 | + | let total = $t016941719._1 | |
71 | + | let result = $t016941719._2 | |
72 | 72 | $Tuple2(total, (result :+ (total / next))) | |
73 | 73 | } | |
74 | 74 | ||
191 | 191 | ||
192 | 192 | @Callable(i) | |
193 | 193 | func add () = { | |
194 | - | let $ | |
195 | - | let pmtAmount = $ | |
196 | - | let pmtAssetId = $ | |
194 | + | let $t040754150 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
195 | + | let pmtAmount = $t040754150._1 | |
196 | + | let pmtAssetId = $t040754150._2 | |
197 | 197 | let endHeight = valueOrElse(getInteger(this, keyEndHeight), 0) | |
198 | 198 | if (!(isActive)) | |
199 | 199 | then throw("DApp is inactive at this moment") | |
311 | 311 | let levelDiff = (newLevel - oldLevel) | |
312 | 312 | if ((levelDiff > 0)) | |
313 | 313 | then { | |
314 | - | let inv5 = if ((levelDiff | |
314 | + | let inv5 = if ((levelDiff >= 1)) | |
315 | 315 | then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 1)], 1], nil) | |
316 | 316 | else 0 | |
317 | 317 | if ((inv5 == inv5)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyActive = "active" | |
5 | 5 | ||
6 | 6 | let keyEndHeight = "end_height" | |
7 | 7 | ||
8 | 8 | let keyPrizesPrices = "prizes_prices" | |
9 | 9 | ||
10 | 10 | let keyPrizesAIds = "prizes_achievements_ids" | |
11 | 11 | ||
12 | 12 | let keyPrizesAmounts = "prizes_amount" | |
13 | 13 | ||
14 | 14 | let keyLevelPrices = "level_prices" | |
15 | 15 | ||
16 | 16 | let keyLevelAchievemntsIds = "level_achievements_ids" | |
17 | 17 | ||
18 | 18 | let keySWOPid = "SWOP_id" | |
19 | 19 | ||
20 | 20 | let keyTotalBurned = "total_burned" | |
21 | 21 | ||
22 | 22 | let keyVerifyHash = "verify_hash" | |
23 | 23 | ||
24 | 24 | let keyFinalizeHeight = "finalize_height" | |
25 | 25 | ||
26 | 26 | let keyUserTotalBurned = "_total_burned" | |
27 | 27 | ||
28 | 28 | let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
29 | 29 | ||
30 | 30 | let farming = Address(base58'3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT') | |
31 | 31 | ||
32 | 32 | let achievements = Address(base58'3N9dMg2dGxUmy6RjnP61ZQVBYgf1EKqWn5W') | |
33 | 33 | ||
34 | 34 | let keyAdminPubKey1 = "admin_pub_1" | |
35 | 35 | ||
36 | 36 | let keyAdminPubKey2 = "admin_pub_2" | |
37 | 37 | ||
38 | 38 | let keyAdminPubKey3 = "admin_pub_3" | |
39 | 39 | ||
40 | 40 | func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) { | |
41 | 41 | case string: String => | |
42 | 42 | fromBase58String(string) | |
43 | 43 | case nothing => | |
44 | 44 | throw("Admin public key is empty") | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let adminPubKey1 = getAdminPub(keyAdminPubKey1) | |
49 | 49 | ||
50 | 50 | let adminPubKey2 = getAdminPub(keyAdminPubKey2) | |
51 | 51 | ||
52 | 52 | let adminPubKey3 = getAdminPub(keyAdminPubKey3) | |
53 | 53 | ||
54 | 54 | let adminPubKeyStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
55 | 55 | ||
56 | 56 | let swopId = fromBase58String(getStringValue(farming, keySWOPid)) | |
57 | 57 | ||
58 | 58 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
59 | 59 | ||
60 | 60 | func inListToStr (acc,next) = if ((acc == "")) | |
61 | 61 | then (acc + toString(next)) | |
62 | 62 | else ((acc + ",") + toString(next)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func inListToInt (acc,next) = (acc :+ parseIntValue(next)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func calcPrizesAmounts (acc,next) = { | |
69 | - | let $ | |
70 | - | let total = $ | |
71 | - | let result = $ | |
69 | + | let $t016941719 = acc | |
70 | + | let total = $t016941719._1 | |
71 | + | let result = $t016941719._2 | |
72 | 72 | $Tuple2(total, (result :+ (total / next))) | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func calcLevel (burned) = { | |
77 | 77 | let levelPrices = { | |
78 | 78 | let $l = split(getStringValue(this, keyLevelPrices), ",") | |
79 | 79 | let $s = size($l) | |
80 | 80 | let $acc0 = nil | |
81 | 81 | func 1 ($a,$i) = if (($i >= $s)) | |
82 | 82 | then $a | |
83 | 83 | else inListToInt($a, $l[$i]) | |
84 | 84 | ||
85 | 85 | func 2 ($a,$i) = if (($i >= $s)) | |
86 | 86 | then $a | |
87 | 87 | else throw("List size exceeds 5") | |
88 | 88 | ||
89 | 89 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
90 | 90 | } | |
91 | 91 | if ((burned >= levelPrices[3])) | |
92 | 92 | then 4 | |
93 | 93 | else if ((burned >= levelPrices[2])) | |
94 | 94 | then 3 | |
95 | 95 | else if ((burned >= levelPrices[1])) | |
96 | 96 | then 2 | |
97 | 97 | else if ((burned >= levelPrices[0])) | |
98 | 98 | then 1 | |
99 | 99 | else 0 | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | @Callable(i) | |
104 | 104 | func init (endHeight,prizePrices,prizeAchievmentsIds,levelPrices,levelAchievmentsIds) = if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
105 | 105 | then throw("Only admin can call this function") | |
106 | 106 | else if (isDefined(getInteger(this, keyEndHeight))) | |
107 | 107 | then throw("DApp is already inited") | |
108 | 108 | else if ((height > endHeight)) | |
109 | 109 | then throw("Burning ending must be greater than current height") | |
110 | 110 | else if (if ((size(prizePrices) != 5)) | |
111 | 111 | then true | |
112 | 112 | else (size(prizeAchievmentsIds) != 5)) | |
113 | 113 | then throw("Amount of prizes achievemts lists must equal to 5") | |
114 | 114 | else if (if ((size(levelPrices) != 4)) | |
115 | 115 | then true | |
116 | 116 | else (size(levelAchievmentsIds) != 4)) | |
117 | 117 | then throw("Amount of levels lists must equal to 4") | |
118 | 118 | else { | |
119 | 119 | let prizePricesStr = { | |
120 | 120 | let $l = prizePrices | |
121 | 121 | let $s = size($l) | |
122 | 122 | let $acc0 = "" | |
123 | 123 | func 1 ($a,$i) = if (($i >= $s)) | |
124 | 124 | then $a | |
125 | 125 | else inListToStr($a, $l[$i]) | |
126 | 126 | ||
127 | 127 | func 2 ($a,$i) = if (($i >= $s)) | |
128 | 128 | then $a | |
129 | 129 | else throw("List size exceeds 5") | |
130 | 130 | ||
131 | 131 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
132 | 132 | } | |
133 | 133 | let prizeAchievmentsIdsStr = makeString(prizeAchievmentsIds, ",") | |
134 | 134 | let levelPricesStr = { | |
135 | 135 | let $l = levelPrices | |
136 | 136 | let $s = size($l) | |
137 | 137 | let $acc0 = "" | |
138 | 138 | func 1 ($a,$i) = if (($i >= $s)) | |
139 | 139 | then $a | |
140 | 140 | else inListToStr($a, $l[$i]) | |
141 | 141 | ||
142 | 142 | func 2 ($a,$i) = if (($i >= $s)) | |
143 | 143 | then $a | |
144 | 144 | else throw("List size exceeds 5") | |
145 | 145 | ||
146 | 146 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
147 | 147 | } | |
148 | 148 | let levelAchievmentsIdsStr = makeString(levelAchievmentsIds, ",") | |
149 | 149 | let prizesAmountStr = "0,0,0,0,0" | |
150 | 150 | let firstAddEntries = if (if ((size(i.payments) == 1)) | |
151 | 151 | then (i.payments[0].assetId == swopId) | |
152 | 152 | else false) | |
153 | 153 | then { | |
154 | 154 | let newTotalBurned = i.payments[0].amount | |
155 | 155 | let res = { | |
156 | 156 | let $l = prizePrices | |
157 | 157 | let $s = size($l) | |
158 | 158 | let $acc0 = $Tuple2(newTotalBurned, nil) | |
159 | 159 | func 1 ($a,$i) = if (($i >= $s)) | |
160 | 160 | then $a | |
161 | 161 | else calcPrizesAmounts($a, $l[$i]) | |
162 | 162 | ||
163 | 163 | func 2 ($a,$i) = if (($i >= $s)) | |
164 | 164 | then $a | |
165 | 165 | else throw("List size exceeds 5") | |
166 | 166 | ||
167 | 167 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
168 | 168 | } | |
169 | 169 | let newPrizesAmounts = res._2 | |
170 | 170 | let newPrizesAmountsStr = { | |
171 | 171 | let $l = newPrizesAmounts | |
172 | 172 | let $s = size($l) | |
173 | 173 | let $acc0 = "" | |
174 | 174 | func 1 ($a,$i) = if (($i >= $s)) | |
175 | 175 | then $a | |
176 | 176 | else inListToStr($a, $l[$i]) | |
177 | 177 | ||
178 | 178 | func 2 ($a,$i) = if (($i >= $s)) | |
179 | 179 | then $a | |
180 | 180 | else throw("List size exceeds 5") | |
181 | 181 | ||
182 | 182 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
183 | 183 | } | |
184 | 184 | [IntegerEntry(keyTotalBurned, newTotalBurned), StringEntry(keyPrizesAmounts, newPrizesAmountsStr)] | |
185 | 185 | } | |
186 | 186 | else [StringEntry(keyPrizesAmounts, prizesAmountStr)] | |
187 | 187 | ([IntegerEntry(keyEndHeight, endHeight), StringEntry(keyPrizesPrices, prizePricesStr), StringEntry(keyPrizesAIds, prizeAchievmentsIdsStr), StringEntry(keyLevelPrices, levelPricesStr), StringEntry(keyLevelAchievemntsIds, levelAchievmentsIdsStr)] ++ firstAddEntries) | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(i) | |
193 | 193 | func add () = { | |
194 | - | let $ | |
195 | - | let pmtAmount = $ | |
196 | - | let pmtAssetId = $ | |
194 | + | let $t040754150 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
195 | + | let pmtAmount = $t040754150._1 | |
196 | + | let pmtAssetId = $t040754150._2 | |
197 | 197 | let endHeight = valueOrElse(getInteger(this, keyEndHeight), 0) | |
198 | 198 | if (!(isActive)) | |
199 | 199 | then throw("DApp is inactive at this moment") | |
200 | 200 | else if (if ((height > endHeight)) | |
201 | 201 | then true | |
202 | 202 | else (endHeight == 0)) | |
203 | 203 | then throw("Swop burning are ended or not started yet") | |
204 | 204 | else if ((pmtAssetId != swopId)) | |
205 | 205 | then throw("You can add only SWOP token") | |
206 | 206 | else { | |
207 | 207 | let newTotalBurned = (valueOrElse(getInteger(this, keyTotalBurned), 0) + pmtAmount) | |
208 | 208 | let userTotalBurned = valueOrElse(getInteger(this, (toString(i.caller) + keyUserTotalBurned)), 0) | |
209 | 209 | let prizesAmounts = { | |
210 | 210 | let $l = split(getStringValue(this, keyPrizesAmounts), ",") | |
211 | 211 | let $s = size($l) | |
212 | 212 | let $acc0 = nil | |
213 | 213 | func 1 ($a,$i) = if (($i >= $s)) | |
214 | 214 | then $a | |
215 | 215 | else inListToInt($a, $l[$i]) | |
216 | 216 | ||
217 | 217 | func 2 ($a,$i) = if (($i >= $s)) | |
218 | 218 | then $a | |
219 | 219 | else throw("List size exceeds 5") | |
220 | 220 | ||
221 | 221 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
222 | 222 | } | |
223 | 223 | let prizesPrices = { | |
224 | 224 | let $l = split(getStringValue(this, keyPrizesPrices), ",") | |
225 | 225 | let $s = size($l) | |
226 | 226 | let $acc0 = nil | |
227 | 227 | func 1 ($a,$i) = if (($i >= $s)) | |
228 | 228 | then $a | |
229 | 229 | else inListToInt($a, $l[$i]) | |
230 | 230 | ||
231 | 231 | func 2 ($a,$i) = if (($i >= $s)) | |
232 | 232 | then $a | |
233 | 233 | else throw("List size exceeds 5") | |
234 | 234 | ||
235 | 235 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
236 | 236 | } | |
237 | 237 | let prizesAchievementsIds = split(getStringValue(this, keyPrizesAIds), ",") | |
238 | 238 | let levelAchievementsIds = split(getStringValue(this, keyLevelAchievemntsIds), ",") | |
239 | 239 | let res = { | |
240 | 240 | let $l = prizesPrices | |
241 | 241 | let $s = size($l) | |
242 | 242 | let $acc0 = $Tuple2(newTotalBurned, nil) | |
243 | 243 | func 1 ($a,$i) = if (($i >= $s)) | |
244 | 244 | then $a | |
245 | 245 | else calcPrizesAmounts($a, $l[$i]) | |
246 | 246 | ||
247 | 247 | func 2 ($a,$i) = if (($i >= $s)) | |
248 | 248 | then $a | |
249 | 249 | else throw("List size exceeds 5") | |
250 | 250 | ||
251 | 251 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
252 | 252 | } | |
253 | 253 | let newPrizesAmounts = res._2 | |
254 | 254 | let newPrizesAmountsStr = { | |
255 | 255 | let $l = newPrizesAmounts | |
256 | 256 | let $s = size($l) | |
257 | 257 | let $acc0 = "" | |
258 | 258 | func 1 ($a,$i) = if (($i >= $s)) | |
259 | 259 | then $a | |
260 | 260 | else inListToStr($a, $l[$i]) | |
261 | 261 | ||
262 | 262 | func 2 ($a,$i) = if (($i >= $s)) | |
263 | 263 | then $a | |
264 | 264 | else throw("List size exceeds 5") | |
265 | 265 | ||
266 | 266 | 2(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5) | |
267 | 267 | } | |
268 | 268 | let inv0 = if ((newPrizesAmounts[0] != prizesAmounts[0])) | |
269 | 269 | then { | |
270 | 270 | let achievementAmount = (newPrizesAmounts[0] - prizesAmounts[0]) | |
271 | 271 | invoke(achievements, "add", [prizesAchievementsIds[0], achievementAmount], nil) | |
272 | 272 | } | |
273 | 273 | else 0 | |
274 | 274 | if ((inv0 == inv0)) | |
275 | 275 | then { | |
276 | 276 | let inv1 = if ((newPrizesAmounts[1] != prizesAmounts[1])) | |
277 | 277 | then { | |
278 | 278 | let achievementAmount = (newPrizesAmounts[1] - prizesAmounts[1]) | |
279 | 279 | invoke(achievements, "add", [prizesAchievementsIds[1], achievementAmount], nil) | |
280 | 280 | } | |
281 | 281 | else 0 | |
282 | 282 | if ((inv1 == inv1)) | |
283 | 283 | then { | |
284 | 284 | let inv2 = if ((newPrizesAmounts[2] != prizesAmounts[2])) | |
285 | 285 | then { | |
286 | 286 | let achievementAmount = (newPrizesAmounts[2] - prizesAmounts[2]) | |
287 | 287 | invoke(achievements, "add", [prizesAchievementsIds[2], achievementAmount], nil) | |
288 | 288 | } | |
289 | 289 | else 0 | |
290 | 290 | if ((inv2 == inv2)) | |
291 | 291 | then { | |
292 | 292 | let inv3 = if ((newPrizesAmounts[3] != prizesAmounts[3])) | |
293 | 293 | then { | |
294 | 294 | let achievementAmount = (newPrizesAmounts[3] - prizesAmounts[3]) | |
295 | 295 | invoke(achievements, "add", [prizesAchievementsIds[3], achievementAmount], nil) | |
296 | 296 | } | |
297 | 297 | else 0 | |
298 | 298 | if ((inv3 == inv3)) | |
299 | 299 | then { | |
300 | 300 | let inv4 = if ((newPrizesAmounts[4] != prizesAmounts[4])) | |
301 | 301 | then { | |
302 | 302 | let achievementAmount = (newPrizesAmounts[4] - prizesAmounts[4]) | |
303 | 303 | invoke(achievements, "add", [prizesAchievementsIds[4], achievementAmount], nil) | |
304 | 304 | } | |
305 | 305 | else 0 | |
306 | 306 | if ((inv4 == inv4)) | |
307 | 307 | then { | |
308 | 308 | let baseEntry = [IntegerEntry(keyTotalBurned, newTotalBurned), IntegerEntry((toString(i.caller) + keyUserTotalBurned), (userTotalBurned + pmtAmount)), StringEntry(keyPrizesAmounts, newPrizesAmountsStr)] | |
309 | 309 | let oldLevel = calcLevel(userTotalBurned) | |
310 | 310 | let newLevel = calcLevel(newTotalBurned) | |
311 | 311 | let levelDiff = (newLevel - oldLevel) | |
312 | 312 | if ((levelDiff > 0)) | |
313 | 313 | then { | |
314 | - | let inv5 = if ((levelDiff | |
314 | + | let inv5 = if ((levelDiff >= 1)) | |
315 | 315 | then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 1)], 1], nil) | |
316 | 316 | else 0 | |
317 | 317 | if ((inv5 == inv5)) | |
318 | 318 | then { | |
319 | 319 | let inv6 = if ((levelDiff >= 2)) | |
320 | 320 | then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 2)], 1], nil) | |
321 | 321 | else 0 | |
322 | 322 | if ((inv6 == inv6)) | |
323 | 323 | then { | |
324 | 324 | let inv7 = if ((levelDiff >= 3)) | |
325 | 325 | then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 3)], 1], nil) | |
326 | 326 | else 0 | |
327 | 327 | if ((inv7 == inv7)) | |
328 | 328 | then { | |
329 | 329 | let inv8 = if ((levelDiff == 4)) | |
330 | 330 | then invoke(achievements, "add", [levelAchievementsIds[(newLevel - 4)], 1], nil) | |
331 | 331 | else 0 | |
332 | 332 | if ((inv8 == inv8)) | |
333 | 333 | then baseEntry | |
334 | 334 | else throw("Strict value is not equal to itself.") | |
335 | 335 | } | |
336 | 336 | else throw("Strict value is not equal to itself.") | |
337 | 337 | } | |
338 | 338 | else throw("Strict value is not equal to itself.") | |
339 | 339 | } | |
340 | 340 | else throw("Strict value is not equal to itself.") | |
341 | 341 | } | |
342 | 342 | else baseEntry | |
343 | 343 | } | |
344 | 344 | else throw("Strict value is not equal to itself.") | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | else throw("Strict value is not equal to itself.") | |
353 | 353 | } | |
354 | 354 | } | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | ||
358 | 358 | @Callable(i) | |
359 | 359 | func hashingRandom (hash) = if (!(isActive)) | |
360 | 360 | then throw("DApp is inactive at this moment") | |
361 | 361 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
362 | 362 | then throw("Only admin can call this function") | |
363 | 363 | else [StringEntry(keyVerifyHash, hash)] | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | ||
367 | 367 | @Callable(i) | |
368 | 368 | func finalize (vrfHeight,secretWord) = { | |
369 | 369 | let savedHash = getStringValue(this, keyVerifyHash) | |
370 | 370 | let calcHash = toBase58String(sha256((toBytes(vrfHeight) + toBytes(secretWord)))) | |
371 | 371 | if (!(isActive)) | |
372 | 372 | then throw("DApp is inactive at this moment") | |
373 | 373 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
374 | 374 | then throw("Only admin can call this function") | |
375 | 375 | else if ((calcHash != savedHash)) | |
376 | 376 | then throw("vrf Height hash not matching") | |
377 | 377 | else { | |
378 | 378 | let burnAmount = getIntegerValue(this, keyTotalBurned) | |
379 | 379 | [Burn(swopId, burnAmount), IntegerEntry(keyFinalizeHeight, height)] | |
380 | 380 | } | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(i) | |
386 | 386 | func shutdown () = if (!(isActive)) | |
387 | 387 | then throw("DApp already inactive") | |
388 | 388 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
389 | 389 | then throw("Only admin can call this function") | |
390 | 390 | else [BooleanEntry(keyActive, false)] | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | ||
394 | 394 | @Callable(i) | |
395 | 395 | func activate () = if (isActive) | |
396 | 396 | then throw("DApp already active") | |
397 | 397 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
398 | 398 | then throw("Only admin can call this function") | |
399 | 399 | else [BooleanEntry(keyActive, true)] | |
400 | 400 | ||
401 | 401 | ||
402 | 402 | @Verifier(tx) | |
403 | 403 | func verify () = { | |
404 | 404 | let multiSignedByAdmins = { | |
405 | 405 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
406 | 406 | then 1 | |
407 | 407 | else 0 | |
408 | 408 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
409 | 409 | then 1 | |
410 | 410 | else 0 | |
411 | 411 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
412 | 412 | then 1 | |
413 | 413 | else 0 | |
414 | 414 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
415 | 415 | } | |
416 | 416 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
417 | 417 | then true | |
418 | 418 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
419 | 419 | then true | |
420 | 420 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
421 | 421 | then true | |
422 | 422 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyStaking) | |
423 | 423 | match tx { | |
424 | 424 | case _ => | |
425 | 425 | multiSignedByAdmins | |
426 | 426 | } | |
427 | 427 | } | |
428 | 428 |
github/deemru/w8io/026f985 56.33 ms ◑