tx · 4F1vez2yNtiSrsLLDam2PvL8SzZ4fBu9nfYsMk4dfuAm 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.02500000 Waves 2022.06.27 17:06 [2114945] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "4F1vez2yNtiSrsLLDam2PvL8SzZ4fBu9nfYsMk4dfuAm", "fee": 2500000, "feeAssetId": null, "timestamp": 1656338806825, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "bQXtgxwUNDB8BTzFSfrFzTDTKRBbG43ejDvYYKUMhJL22xCcreDuncPdEqKZq5oJiv7C8nsRtYRxHKaHinPoMQN" ], "script": "base64:AAIFAAAAAAAAAEgIAhIGCgQIAQgIEgYKBAgIAQgSBAoCCAgSBAoCCAgSBAoCCAESBAoCCAgSBAoCCAgSBQoDCAgBEgQKAggBEgMKAQgSBAoCCAgAAAAnAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAPdHJlYXN1cnlBZGRyZXNzAQAAABoBVGX48BYLBMBZQnAankiMl/9+3Bxi8t27/QAAAAANYXNzZXRzQWRkcmVzcwEAAAAaAVTL5rTBd9cdJy1rFhBLypFI6ymLChqVp5oAAAAAEm1hcmtldHBsYWNlQWRkcmVzcwEAAAAaAVQdIbmT8fwYw6cbSXEWQ5ZRdOusVC4lvO8AAAAAFGNvbmZpZ3VyYXRpb25BZGRyZXNzAQAAABoBVNsgy5eRVj9CDmynZTWCi2G/tXRyOLTQLgAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAthZG1pbldhbGxldAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01wT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AAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAApRXJyb3IgcHV0dGluZyB0aGUgaXRlbSBvbiB0aGUgbWFya2V0cGxhY2UAAAABaQEAAAAGRGVsS2V5AAAAAQAAAANrZXkDCQEAAAABIQAAAAEJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAAAAAFpAQAAAAZVcGRLZXkAAAACAAAAA2tleQAAAAN2YWwDCQEAAAABIQAAAAEJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAA3ZhbAUAAAADbmlsAAAAAOvSjwE=", "height": 2114945, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Zs2KL3wx7DTg1GfkBK2n1U8Hsci1eA9d8qxpy5YKnfd Next: 8sX18uh244jTMgRJK7pBqyXMxpPnJXs2nTMR2XfgLw3K Diff:
Old | New | Differences | |
---|---|---|---|
191 | 191 | } | |
192 | 192 | else { | |
193 | 193 | let aa = u((P + "_Power")) | |
194 | + | let ab = ((u((X + "_Cost")) * 20) / 100) | |
195 | + | if ((aa > 0)) | |
196 | + | then { | |
197 | + | let ac = A((k + "_Power")) | |
198 | + | let ad = invoke(Address(f), "setUserPower", [k, (ac + aa)], nil) | |
199 | + | if ((ad == ad)) | |
200 | + | then [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
201 | + | else throw("Strict value is not equal to itself.") | |
202 | + | } | |
203 | + | else [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
204 | + | } | |
205 | + | } | |
206 | + | ||
207 | + | ||
208 | + | func ae (k,P,U,V,W,af) = { | |
209 | + | let Q = O(P) | |
210 | + | let R = Q._1 | |
211 | + | let S = Q._2 | |
212 | + | let Y = getIntegerValue(this, W) | |
213 | + | if ((Y > height)) | |
214 | + | then throw((((("Building is not finished yet " + toString((Y - height))) + " blocks remaining, it will take around ") + toString((Y - height))) + " minutes")) | |
215 | + | else if ((take(R, 4) == "TECH")) | |
216 | + | then { | |
217 | + | let Z = invoke(Address(f), "setTecnhnologyDiscovered", [k, P], nil) | |
218 | + | if ((Z == true)) | |
219 | + | then [DeleteEntry(V), DeleteEntry(W)] | |
220 | + | else throw("error discovering technology") | |
221 | + | } | |
222 | + | else { | |
223 | + | let aa = u((P + "_Power")) | |
194 | 224 | let ab = ((u((P + "_Cost")) * 20) / 100) | |
195 | - | let | |
196 | - | if (( | |
225 | + | let ag = invoke(Address(b), "Pay", [k, ab], nil) | |
226 | + | if ((ag == ag)) | |
197 | 227 | then if ((aa > 0)) | |
198 | 228 | then { | |
199 | - | let | |
200 | - | let | |
201 | - | if (( | |
229 | + | let ac = A((k + "_Power")) | |
230 | + | let ad = invoke(Address(f), "setUserPower", [k, (ac + aa)], nil) | |
231 | + | if ((ad == ad)) | |
202 | 232 | then if (w((P + "_Aggregated"))) | |
203 | 233 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | [DeleteEntry(K( | |
234 | + | let ah = ((P + "_") + k) | |
235 | + | let ai = l(ah) | |
236 | + | let aj = l((ah + "_Qty")) | |
237 | + | [DeleteEntry(K(af, P)), StringEntry((ah + "_Owner"), k), IntegerEntry(ah, (ai + ab)), IntegerEntry((ah + "_Qty"), (aj + 1)), DeleteEntry(V), DeleteEntry(W)] | |
208 | 238 | } | |
209 | 239 | else [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
210 | 240 | else throw("Strict value is not equal to itself.") | |
211 | 241 | } | |
212 | 242 | else if (w((P + "_Aggregated"))) | |
213 | 243 | then { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | [DeleteEntry(K( | |
244 | + | let ah = ((P + "_") + k) | |
245 | + | let ai = l(ah) | |
246 | + | let aj = l((ah + "_Qty")) | |
247 | + | [DeleteEntry(K(af, P)), StringEntry((ah + "_Owner"), k), IntegerEntry(ah, (ai + ab)), IntegerEntry((ah + "_Qty"), (aj + 1)), DeleteEntry(V), DeleteEntry(W)] | |
218 | 248 | } | |
219 | 249 | else [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
220 | 250 | else throw("Strict value is not equal to itself.") | |
222 | 252 | } | |
223 | 253 | ||
224 | 254 | ||
225 | - | func | |
226 | - | let | |
227 | - | ( | |
255 | + | func ak (k,U) = { | |
256 | + | let al = q(D(U)) | |
257 | + | (al == k) | |
228 | 258 | } | |
229 | 259 | ||
230 | 260 | ||
231 | - | func | |
232 | - | let | |
233 | - | w(( | |
261 | + | func am (s,t) = { | |
262 | + | let an = r(s, t) | |
263 | + | w((an + "_NationReserved")) | |
234 | 264 | } | |
235 | 265 | ||
236 | 266 | ||
237 | - | func | |
267 | + | func ao (E,ap) = { | |
238 | 268 | let Q = O(E) | |
239 | 269 | let R = Q._1 | |
240 | 270 | let S = Q._2 | |
241 | - | let | |
242 | - | let | |
243 | - | let aa = u(( | |
271 | + | let an = r(R, S) | |
272 | + | let aq = q(D(E)) | |
273 | + | let aa = u((an + "_Power")) | |
244 | 274 | if ((aa > 0)) | |
245 | 275 | then { | |
246 | - | let | |
247 | - | let | |
248 | - | if (( | |
249 | - | then if (( | |
276 | + | let ac = A((aq + "_Power")) | |
277 | + | let ad = invoke(Address(f), "setUserPower", [aq, (ac - aa)], nil) | |
278 | + | if ((ad == ad)) | |
279 | + | then if ((ad != (ac - aa))) | |
250 | 280 | then throw("Incorrect invoke result") | |
251 | 281 | else { | |
252 | - | let | |
253 | - | let | |
254 | - | if (( | |
282 | + | let ar = A((ap + "_Power")) | |
283 | + | let as = invoke(Address(f), "setUserPower", [ap, (ar + aa)], nil) | |
284 | + | if ((as == as)) | |
255 | 285 | then { | |
256 | - | let n = | |
286 | + | let n = as | |
257 | 287 | if ($isInstanceOf(n, "Int")) | |
258 | 288 | then { | |
259 | - | let | |
260 | - | [StringEntry(D(E), | |
289 | + | let at = n | |
290 | + | [StringEntry(D(E), ap)] | |
261 | 291 | } | |
262 | 292 | else throw("Incorrect invoke result") | |
263 | 293 | } | |
265 | 295 | } | |
266 | 296 | else throw("Strict value is not equal to itself.") | |
267 | 297 | } | |
268 | - | else [StringEntry(D(E), | |
298 | + | else [StringEntry(D(E), ap)] | |
269 | 299 | } | |
270 | 300 | ||
271 | 301 | ||
272 | - | func | |
273 | - | let | |
274 | - | let | |
275 | - | if (( | |
302 | + | func au (av,k,aw) = { | |
303 | + | let ax = v((av + "_SacrificeAsset")) | |
304 | + | let ay = u((av + "_SacrificeAssetLevel")) | |
305 | + | if ((ax == "")) | |
276 | 306 | then true | |
277 | - | else if (!( | |
307 | + | else if (!(ak(k, aw))) | |
278 | 308 | then throw("you are not the owner of the asset") | |
279 | 309 | else { | |
280 | - | let Q = O( | |
281 | - | if (if (( | |
310 | + | let Q = O(aw) | |
311 | + | if (if ((ax != Q._1)) | |
282 | 312 | then true | |
283 | - | else ( | |
313 | + | else (ay != Q._2)) | |
284 | 314 | then throw("the sacrificeAsset has the wrong type or level") | |
285 | 315 | else true | |
286 | 316 | } | |
287 | 317 | } | |
288 | 318 | ||
289 | 319 | ||
290 | - | func | |
291 | - | let | |
292 | - | let | |
293 | - | if (( | |
294 | - | then if (B((( | |
295 | - | then | |
320 | + | func az (s,t,aA,aw) = { | |
321 | + | let aB = r(s, t) | |
322 | + | let aC = v((aB + "_Tecnhology_discovered")) | |
323 | + | if ((aC != "")) | |
324 | + | then if (B(((aA + "_") + aC))) | |
325 | + | then au(aB, aA, aw) | |
296 | 326 | else false | |
297 | - | else | |
327 | + | else au(aB, aA, aw) | |
298 | 328 | } | |
299 | 329 | ||
300 | 330 | ||
301 | - | func | |
302 | - | let | |
303 | - | let | |
304 | - | if (( | |
331 | + | func aD (s,t,k,aw) = { | |
332 | + | let aE = r(s, t) | |
333 | + | let aF = A(k) | |
334 | + | if ((aF == 0)) | |
305 | 335 | then false | |
306 | 336 | else { | |
307 | - | let | |
308 | - | if (( | |
337 | + | let aC = v((aE + "_Tecnhology_discovered")) | |
338 | + | if ((aC != "")) | |
309 | 339 | then { | |
310 | - | let | |
311 | - | if (B((( | |
312 | - | then | |
340 | + | let aA = C(toString(aF)) | |
341 | + | if (B(((aA + "_") + aC))) | |
342 | + | then au(aE, k, aw) | |
313 | 343 | else false | |
314 | 344 | } | |
315 | - | else | |
345 | + | else au(aE, k, aw) | |
316 | 346 | } | |
317 | 347 | } | |
318 | 348 | ||
319 | 349 | ||
320 | - | func | |
321 | - | then | |
322 | - | else | |
350 | + | func aG (s,t,aH,aA,aw) = if ((aA != "")) | |
351 | + | then az(s, t, aA, aw) | |
352 | + | else aD(s, t, aH, aw) | |
323 | 353 | ||
324 | 354 | ||
325 | - | @Callable( | |
326 | - | func StartBuild (R,t, | |
355 | + | @Callable(aI) | |
356 | + | func StartBuild (R,t,aA,aw) = if (!(aG(R, t, toString(aI.caller), aA, aw))) | |
327 | 357 | then throw("You cannot build this Item") | |
328 | 358 | else { | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | if ( | |
337 | - | then if (if (!( | |
338 | - | then !(j( | |
359 | + | let aB = r(R, t) | |
360 | + | let aJ = u((aB + "_BuildTime")) | |
361 | + | let aK = u((aB + "_Cost")) | |
362 | + | let aL = ((aK * 5) / 100) | |
363 | + | let aM = ((aK * 10) / 100) | |
364 | + | let aN = ((aK * 65) / 100) | |
365 | + | let aO = (((aK - aL) - aM) - aN) | |
366 | + | if (am(R, t)) | |
367 | + | then if (if (!(ak(toString(aI.caller), aA))) | |
368 | + | then !(j(aI.caller)) | |
339 | 369 | else false) | |
340 | 370 | then throw("You are not the owner of the nation") | |
341 | 371 | else { | |
342 | - | let | |
343 | - | if (( | |
372 | + | let aP = z(x(aA)) | |
373 | + | if ((aK > aP)) | |
344 | 374 | then throw("The nation hasn't enough funds") | |
345 | 375 | else { | |
346 | - | let | |
347 | - | let n = | |
376 | + | let aQ = invoke(Address(b), "decreaseNationWallet", [aA, aK], nil) | |
377 | + | let n = aQ | |
348 | 378 | if ($isInstanceOf(n, "Int")) | |
349 | 379 | then { | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | if ($isInstanceOf( | |
380 | + | let at = n | |
381 | + | let ad = invoke(Address(b), "arbitraryAddCoins", [aA, aO], nil) | |
382 | + | let aR = ad | |
383 | + | if ($isInstanceOf(aR, "Int")) | |
354 | 384 | then { | |
355 | - | let o = | |
356 | - | let | |
357 | - | let | |
358 | - | if ($isInstanceOf( | |
385 | + | let o = aR | |
386 | + | let aS = invoke(Address(b), "distributeNationPayRewards", [aK], nil) | |
387 | + | let aT = aS | |
388 | + | if ($isInstanceOf(aT, "Int")) | |
359 | 389 | then { | |
360 | - | let | |
361 | - | [StringEntry(N(toString( | |
390 | + | let aU = aT | |
391 | + | [StringEntry(N(toString(aI.originCaller), aI.transactionId, aB), F), StringEntry(K(aI.transactionId, aB), aA), IntegerEntry(L(toString(aI.originCaller), aI.transactionId, aB), (height + aJ))] | |
362 | 392 | } | |
363 | 393 | else throw("Error Distributing asset rewards") | |
364 | 394 | } | |
368 | 398 | } | |
369 | 399 | } | |
370 | 400 | else { | |
371 | - | let av = v((az + "_SacrificeAsset")) | |
372 | - | if ((av != "")) | |
373 | - | then { | |
374 | - | let ae = invoke(Address(b), "NoPaymentDeposit", [toString(aG.caller), aM], nil) | |
375 | - | let n = ae | |
376 | - | if ($isInstanceOf(n, "Int")) | |
377 | - | then { | |
378 | - | let ar = n | |
379 | - | let aQ = invoke(Address(b), "distributeNationPayRewards", [aI], nil) | |
380 | - | let aP = aQ | |
381 | - | if ($isInstanceOf(aP, "Int")) | |
382 | - | then { | |
383 | - | let aS = aP | |
384 | - | [DeleteEntry(au), StringEntry(N(toString(aG.originCaller), aG.transactionId, az), F), StringEntry(K(aG.transactionId, az), ay), IntegerEntry(L(toString(aG.originCaller), aG.transactionId, az), (height + aH))] | |
385 | - | } | |
386 | - | else throw("Error Distributing asset rewards") | |
387 | - | } | |
388 | - | else throw("Error adding deposit") | |
389 | - | } | |
401 | + | let ax = v((aB + "_SacrificeAsset")) | |
402 | + | if ((ax != "")) | |
403 | + | then [DeleteEntry(aw), StringEntry(N(toString(aI.originCaller), aI.transactionId, aB), F), StringEntry(K(aI.transactionId, aB), toString(aI.originCaller)), IntegerEntry(L(toString(aI.originCaller), aI.transactionId, aB), (height + aJ))] | |
390 | 404 | else { | |
391 | - | let | |
392 | - | if (( | |
405 | + | let aV = value(aI.payments[0].amount) | |
406 | + | if ((aK > aV)) | |
393 | 407 | then throw(("You provided less $heg than the needed cost for building this " + R)) | |
394 | - | else if (( | |
408 | + | else if ((aI.payments[0].assetId != a)) | |
395 | 409 | then throw("Only $HEG payments allowed") | |
396 | 410 | else { | |
397 | - | let | |
398 | - | let n = | |
411 | + | let ad = invoke(Address(b), "Deposit", nil, [AttachedPayment(a, aO)]) | |
412 | + | let n = ad | |
399 | 413 | if ($isInstanceOf(n, "Int")) | |
400 | 414 | then { | |
401 | - | let | |
402 | - | [StringEntry(N(toString( | |
415 | + | let at = n | |
416 | + | [StringEntry(N(toString(aI.originCaller), aI.transactionId, aB), F), StringEntry(K(aI.transactionId, aB), toString(aI.originCaller)), IntegerEntry(L(toString(aI.originCaller), aI.transactionId, aB), (height + aJ)), ScriptTransfer(g, aL, a), ScriptTransfer(h, aM, a), ScriptTransfer(i, aN, a)] | |
403 | 417 | } | |
404 | 418 | else throw("Incorrect invoke result") | |
405 | 419 | } | |
409 | 423 | ||
410 | 424 | ||
411 | 425 | ||
412 | - | @Callable( | |
413 | - | func FinishBuild ( | |
414 | - | let I = fromBase58String( | |
415 | - | let | |
416 | - | let V = N(toString( | |
417 | - | let W = L(toString( | |
418 | - | let U = H(I, | |
419 | - | let | |
420 | - | if ( | |
421 | - | then if (if (!( | |
422 | - | then !(j( | |
426 | + | @Callable(aI) | |
427 | + | func FinishBuild (aW,P,t,aA) = { | |
428 | + | let I = fromBase58String(aW) | |
429 | + | let av = r(P, t) | |
430 | + | let V = N(toString(aI.caller), I, av) | |
431 | + | let W = L(toString(aI.caller), I, av) | |
432 | + | let U = H(I, av) | |
433 | + | let al = q(K(I, av)) | |
434 | + | if (am(P, t)) | |
435 | + | then if (if (!(ak(toString(aI.caller), aA))) | |
436 | + | then !(j(aI.caller)) | |
423 | 437 | else false) | |
424 | 438 | then throw("You are not authorized to perform this operation") | |
425 | - | else | |
426 | - | else if (( | |
439 | + | else ae(aA, av, U, V, W, I) | |
440 | + | else if ((al != toString(aI.caller))) | |
427 | 441 | then throw(("You cannot claim other's players " + P)) | |
428 | 442 | else { | |
429 | - | let | |
430 | - | if (( | |
443 | + | let aX = q(V) | |
444 | + | if ((aX == "")) | |
431 | 445 | then throw("No pending operations for this asset") | |
432 | - | else T(toString(aG.caller), at, U, V, W, I) | |
446 | + | else { | |
447 | + | let ax = v((av + "_SacrificeAsset")) | |
448 | + | if ((ax != "")) | |
449 | + | then T(toString(aI.caller), av, U, V, W, ax) | |
450 | + | else ae(toString(aI.caller), av, U, V, W, I) | |
451 | + | } | |
433 | 452 | } | |
434 | 453 | } | |
435 | 454 | ||
436 | 455 | ||
437 | 456 | ||
438 | - | @Callable( | |
439 | - | func transferOwnership (E, | |
457 | + | @Callable(aI) | |
458 | + | func transferOwnership (E,ap) = if (!(j(aI.caller))) | |
440 | 459 | then throw("Only the admin can perform this operation") | |
441 | - | else $Tuple2( | |
460 | + | else $Tuple2(ao(E, ap), ap) | |
442 | 461 | ||
443 | 462 | ||
444 | 463 | ||
445 | - | @Callable( | |
446 | - | func destroyAssetAndTransfer (E, | |
464 | + | @Callable(aI) | |
465 | + | func destroyAssetAndTransfer (E,aY) = { | |
447 | 466 | let Q = O(E) | |
448 | 467 | let R = Q._1 | |
449 | 468 | let S = Q._2 | |
450 | - | let | |
451 | - | if (!(j( | |
469 | + | let an = r(R, S) | |
470 | + | if (!(j(aI.caller))) | |
452 | 471 | then throw("Only the admin can perform this operation") | |
453 | 472 | else { | |
454 | - | let | |
473 | + | let aq = q(D(E)) | |
455 | 474 | let ab = l(E) | |
456 | - | let | |
457 | - | if (( | |
475 | + | let ag = invoke(Address(b), "adminTransfer", [addressFromStringValue(aY), ab], nil) | |
476 | + | if ((ag == ag)) | |
458 | 477 | then { | |
459 | - | let | |
460 | - | let aa = u(( | |
461 | - | let | |
462 | - | if (( | |
478 | + | let ac = A((aq + "_Power")) | |
479 | + | let aa = u((an + "_Power")) | |
480 | + | let ad = invoke(Address(f), "setUserPower", [toString(aI.caller), (ac - aa)], nil) | |
481 | + | if ((ad == ad)) | |
463 | 482 | then { | |
464 | - | let n = | |
483 | + | let n = ad | |
465 | 484 | if ($isInstanceOf(n, "Int")) | |
466 | 485 | then { | |
467 | - | let | |
486 | + | let at = n | |
468 | 487 | [DeleteEntry(E)] | |
469 | 488 | } | |
470 | 489 | else throw("Error setting user power") | |
477 | 496 | ||
478 | 497 | ||
479 | 498 | ||
480 | - | @Callable( | |
481 | - | func destroyAssetFromUser (E, | |
499 | + | @Callable(aI) | |
500 | + | func destroyAssetFromUser (E,aj) = { | |
482 | 501 | let Q = O(E) | |
483 | 502 | let R = Q._1 | |
484 | 503 | let S = Q._2 | |
485 | - | let | |
486 | - | if (!( | |
504 | + | let an = r(R, S) | |
505 | + | if (!(ak(toString(aI.caller), E))) | |
487 | 506 | then throw("You don't own this asset") | |
488 | 507 | else { | |
489 | 508 | let ab = l(E) | |
490 | - | let | |
491 | - | let aa = u(( | |
492 | - | if (w(( | |
509 | + | let ac = A((toString(aI.caller) + "_Power")) | |
510 | + | let aa = u((an + "_Power")) | |
511 | + | if (w((an + "_Aggregated"))) | |
493 | 512 | then { | |
494 | - | let | |
495 | - | let | |
496 | - | if ((0 > ( | |
513 | + | let aZ = ((u((an + "_Cost")) * 20) / 100) | |
514 | + | let ba = l((an + "_Qty")) | |
515 | + | if ((0 > (ba - aj))) | |
497 | 516 | then throw(("you don't have enough " + R)) | |
498 | 517 | else { | |
499 | - | let | |
500 | - | let n = | |
518 | + | let ad = invoke(Address(f), "setUserPower", [toString(aI.caller), (ac - (aa * aj))], nil) | |
519 | + | let n = ad | |
501 | 520 | if ($isInstanceOf(n, "Int")) | |
502 | 521 | then { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | if ($isInstanceOf( | |
522 | + | let at = n | |
523 | + | let bb = invoke(Address(b), "adminTransfer", [toString(aI.caller), (aZ * aj)], nil) | |
524 | + | let aR = bb | |
525 | + | if ($isInstanceOf(aR, "Int")) | |
507 | 526 | then { | |
508 | - | let | |
509 | - | if ((( | |
510 | - | then [IntegerEntry(( | |
527 | + | let aU = aR | |
528 | + | if (((ba - aj) > 0)) | |
529 | + | then [IntegerEntry((an + "_Qty"), (ba - aj))] | |
511 | 530 | else [DeleteEntry(E)] | |
512 | 531 | } | |
513 | 532 | else throw("Error transferring coins") | |
516 | 535 | } | |
517 | 536 | } | |
518 | 537 | else { | |
519 | - | let | |
520 | - | let n = | |
538 | + | let ad = invoke(Address(f), "setUserPower", [toString(aI.caller), (ac - aa)], nil) | |
539 | + | let n = ad | |
521 | 540 | if ($isInstanceOf(n, "Int")) | |
522 | 541 | then { | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | if ($isInstanceOf( | |
542 | + | let at = n | |
543 | + | let bb = invoke(Address(b), "adminTransfer", [toString(aI.caller), ab], nil) | |
544 | + | let aR = bb | |
545 | + | if ($isInstanceOf(aR, "Int")) | |
527 | 546 | then { | |
528 | - | let | |
547 | + | let aU = aR | |
529 | 548 | [DeleteEntry(E)] | |
530 | 549 | } | |
531 | 550 | else throw("Error transferring coins") | |
537 | 556 | ||
538 | 557 | ||
539 | 558 | ||
540 | - | @Callable( | |
541 | - | func setNationOwner ( | |
542 | - | then $Tuple2([StringEntry(( | |
559 | + | @Callable(aI) | |
560 | + | func setNationOwner (bc,ap) = if (j(aI.caller)) | |
561 | + | then $Tuple2([StringEntry((bc + "_Owner"), ap)], true) | |
543 | 562 | else { | |
544 | - | let | |
545 | - | if (( | |
563 | + | let bd = q((bc + "_Owner")) | |
564 | + | if ((bd != toString(aI.caller))) | |
546 | 565 | then throw("You are not the nation owner") | |
547 | - | else [StringEntry(( | |
566 | + | else [StringEntry((bc + "_Owner"), ap)] | |
548 | 567 | } | |
549 | 568 | ||
550 | 569 | ||
551 | 570 | ||
552 | - | @Callable( | |
553 | - | func buyNationItem (E, | |
571 | + | @Callable(aI) | |
572 | + | func buyNationItem (E,aA) = { | |
554 | 573 | let Q = O(E) | |
555 | 574 | let R = Q._1 | |
556 | 575 | let S = Q._2 | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | if (( | |
576 | + | let an = r(R, S) | |
577 | + | let be = A(toString(aI.caller)) | |
578 | + | let bf = A(aA) | |
579 | + | if ((be != bf)) | |
561 | 580 | then throw("you can buy assets only from your nation") | |
562 | - | else if (!( | |
581 | + | else if (!(ak(aA, E))) | |
563 | 582 | then throw("The asset does not belong to the nation") | |
564 | - | else if (!( | |
583 | + | else if (!(am(R, S))) | |
565 | 584 | then throw("this asset cannot be sold by the nation") | |
566 | 585 | else { | |
567 | - | let | |
568 | - | let | |
569 | - | if (( | |
586 | + | let bg = u((r(R, S) + "_SellPrice")) | |
587 | + | let aV = value(aI.payments[0].amount) | |
588 | + | if ((bg > aV)) | |
570 | 589 | then throw(("You provided less $heg than the needed cost for buying this " + R)) | |
571 | - | else if (( | |
590 | + | else if ((aI.payments[0].assetId != a)) | |
572 | 591 | then throw("Only $HEG payments allowed") | |
573 | 592 | else { | |
574 | - | let | |
575 | - | let n = | |
593 | + | let bh = invoke(Address(b), "increaseNationWallet", [aA, aV], nil) | |
594 | + | let n = bh | |
576 | 595 | if ($isInstanceOf(n, "Int")) | |
577 | 596 | then { | |
578 | 597 | let o = n | |
579 | - | ( | |
598 | + | (ao(E, toString(aI.caller)) :+ ScriptTransfer(Address(b), aV, a)) | |
580 | 599 | } | |
581 | 600 | else throw("Error transferring SHEG to nations wallet") | |
582 | 601 | } | |
585 | 604 | ||
586 | 605 | ||
587 | 606 | ||
588 | - | @Callable( | |
589 | - | func AddAssetFromMarkeplace (E, | |
607 | + | @Callable(aI) | |
608 | + | func AddAssetFromMarkeplace (E,aq,bi) = if (!(j(aI.caller))) | |
590 | 609 | then throw("You are not allowed to perform this operation") | |
591 | - | else $Tuple2([StringEntry(D(E), | |
610 | + | else $Tuple2([StringEntry(D(E), aq), IntegerEntry(E, bi)], aq) | |
592 | 611 | ||
593 | 612 | ||
594 | 613 | ||
595 | - | @Callable( | |
596 | - | func TransferAssetToMarketplace (E, | |
614 | + | @Callable(aI) | |
615 | + | func TransferAssetToMarketplace (E,bj) = if (!(ak(toString(aI.caller), E))) | |
597 | 616 | then throw("You are not the owner of this asset") | |
598 | 617 | else { | |
599 | - | let | |
600 | - | let | |
601 | - | let n = | |
618 | + | let bi = l(E) | |
619 | + | let bb = invoke(Address(d), "putOnSale", [E, bi, bj], nil) | |
620 | + | let n = bb | |
602 | 621 | if ($isInstanceOf(n, "Int")) | |
603 | 622 | then { | |
604 | - | let | |
623 | + | let aU = n | |
605 | 624 | [DeleteEntry(D(E)), DeleteEntry(E)] | |
606 | 625 | } | |
607 | 626 | else throw("Error putting the item on the marketplace") | |
609 | 628 | ||
610 | 629 | ||
611 | 630 | ||
612 | - | @Callable( | |
613 | - | func DelKey (m) = if (!(j( | |
631 | + | @Callable(aI) | |
632 | + | func DelKey (m) = if (!(j(aI.caller))) | |
614 | 633 | then throw("") | |
615 | 634 | else [DeleteEntry(m)] | |
616 | 635 | ||
617 | 636 | ||
618 | 637 | ||
619 | - | @Callable( | |
620 | - | func UpdKey (m, | |
638 | + | @Callable(aI) | |
639 | + | func UpdKey (m,bk) = if (!(j(aI.caller))) | |
621 | 640 | then throw("") | |
622 | - | else [StringEntry(m, | |
641 | + | else [StringEntry(m, bk)] | |
623 | 642 | ||
624 | 643 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let b = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let c = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb' | |
9 | 9 | ||
10 | 10 | let d = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | 12 | let e = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1' | |
13 | 13 | ||
14 | 14 | let f = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
15 | 15 | ||
16 | 16 | let g = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
17 | 17 | ||
18 | 18 | let h = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
19 | 19 | ||
20 | 20 | let i = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
21 | 21 | ||
22 | 22 | func j (k) = if (if (if (if (if ((k == g)) | |
23 | 23 | then true | |
24 | 24 | else (k == this)) | |
25 | 25 | then true | |
26 | 26 | else (k.bytes == c)) | |
27 | 27 | then true | |
28 | 28 | else (k.bytes == b)) | |
29 | 29 | then true | |
30 | 30 | else (k.bytes == d)) | |
31 | 31 | then true | |
32 | 32 | else (k.bytes == f) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func l (m) = { | |
36 | 36 | let n = getInteger(this, m) | |
37 | 37 | if ($isInstanceOf(n, "Int")) | |
38 | 38 | then { | |
39 | 39 | let o = n | |
40 | 40 | o | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (m) = { | |
47 | 47 | let n = getBoolean(this, m) | |
48 | 48 | if ($isInstanceOf(n, "Boolean")) | |
49 | 49 | then { | |
50 | 50 | let o = n | |
51 | 51 | o | |
52 | 52 | } | |
53 | 53 | else false | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func q (m) = { | |
58 | 58 | let n = getString(this, m) | |
59 | 59 | if ($isInstanceOf(n, "String")) | |
60 | 60 | then { | |
61 | 61 | let o = n | |
62 | 62 | o | |
63 | 63 | } | |
64 | 64 | else "" | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func r (s,t) = ((s + "_lvl") + toString(t)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func u (m) = { | |
72 | 72 | let n = getInteger(Address(e), m) | |
73 | 73 | if ($isInstanceOf(n, "Int")) | |
74 | 74 | then { | |
75 | 75 | let o = n | |
76 | 76 | o | |
77 | 77 | } | |
78 | 78 | else 0 | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func v (m) = { | |
83 | 83 | let n = getString(Address(e), m) | |
84 | 84 | if ($isInstanceOf(n, "String")) | |
85 | 85 | then { | |
86 | 86 | let o = n | |
87 | 87 | o | |
88 | 88 | } | |
89 | 89 | else "" | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func w (m) = { | |
94 | 94 | let n = getBoolean(Address(e), m) | |
95 | 95 | if ($isInstanceOf(n, "Boolean")) | |
96 | 96 | then { | |
97 | 97 | let o = n | |
98 | 98 | o | |
99 | 99 | } | |
100 | 100 | else false | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func x (y) = (y + "_Treasury") | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func z (m) = { | |
108 | 108 | let n = getInteger(Address(b), m) | |
109 | 109 | if ($isInstanceOf(n, "Int")) | |
110 | 110 | then { | |
111 | 111 | let o = n | |
112 | 112 | o | |
113 | 113 | } | |
114 | 114 | else 0 | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func A (m) = { | |
119 | 119 | let n = getInteger(Address(f), m) | |
120 | 120 | if ($isInstanceOf(n, "Int")) | |
121 | 121 | then { | |
122 | 122 | let o = n | |
123 | 123 | o | |
124 | 124 | } | |
125 | 125 | else 0 | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func B (m) = { | |
130 | 130 | let n = getBoolean(Address(f), m) | |
131 | 131 | if ($isInstanceOf(n, "Boolean")) | |
132 | 132 | then { | |
133 | 133 | let o = n | |
134 | 134 | o | |
135 | 135 | } | |
136 | 136 | else false | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func C (m) = { | |
141 | 141 | let n = getString(Address(f), m) | |
142 | 142 | if ($isInstanceOf(n, "String")) | |
143 | 143 | then { | |
144 | 144 | let o = n | |
145 | 145 | o | |
146 | 146 | } | |
147 | 147 | else "" | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func D (E) = (E + "_Owner") | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | let F = "BUILD_STARTED" | |
155 | 155 | ||
156 | 156 | let G = "BUILD_FINISHED" | |
157 | 157 | ||
158 | 158 | func H (I,J) = ((J + "_") + toBase58String(I)) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func K (I,J) = (H(I, J) + "_Owner") | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func L (M,I,J) = (((M + "_") + H(I, J)) + "_fh") | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func N (M,I,J) = (((M + "_") + H(I, J)) + "_status") | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func O (P) = { | |
171 | 171 | let Q = split(P, "_") | |
172 | 172 | let R = Q[0] | |
173 | 173 | let S = parseIntValue(drop(Q[1], 3)) | |
174 | 174 | $Tuple2(R, S) | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func T (k,P,U,V,W,X) = { | |
179 | 179 | let Q = O(P) | |
180 | 180 | let R = Q._1 | |
181 | 181 | let S = Q._2 | |
182 | 182 | let Y = getIntegerValue(this, W) | |
183 | 183 | if ((Y > height)) | |
184 | 184 | then throw((((("Building is not finished yet " + toString((Y - height))) + " blocks remaining, it will take around ") + toString((Y - height))) + " minutes")) | |
185 | 185 | else if ((take(R, 4) == "TECH")) | |
186 | 186 | then { | |
187 | 187 | let Z = invoke(Address(f), "setTecnhnologyDiscovered", [k, P], nil) | |
188 | 188 | if ((Z == true)) | |
189 | 189 | then [DeleteEntry(V), DeleteEntry(W)] | |
190 | 190 | else throw("error discovering technology") | |
191 | 191 | } | |
192 | 192 | else { | |
193 | 193 | let aa = u((P + "_Power")) | |
194 | + | let ab = ((u((X + "_Cost")) * 20) / 100) | |
195 | + | if ((aa > 0)) | |
196 | + | then { | |
197 | + | let ac = A((k + "_Power")) | |
198 | + | let ad = invoke(Address(f), "setUserPower", [k, (ac + aa)], nil) | |
199 | + | if ((ad == ad)) | |
200 | + | then [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
201 | + | else throw("Strict value is not equal to itself.") | |
202 | + | } | |
203 | + | else [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
204 | + | } | |
205 | + | } | |
206 | + | ||
207 | + | ||
208 | + | func ae (k,P,U,V,W,af) = { | |
209 | + | let Q = O(P) | |
210 | + | let R = Q._1 | |
211 | + | let S = Q._2 | |
212 | + | let Y = getIntegerValue(this, W) | |
213 | + | if ((Y > height)) | |
214 | + | then throw((((("Building is not finished yet " + toString((Y - height))) + " blocks remaining, it will take around ") + toString((Y - height))) + " minutes")) | |
215 | + | else if ((take(R, 4) == "TECH")) | |
216 | + | then { | |
217 | + | let Z = invoke(Address(f), "setTecnhnologyDiscovered", [k, P], nil) | |
218 | + | if ((Z == true)) | |
219 | + | then [DeleteEntry(V), DeleteEntry(W)] | |
220 | + | else throw("error discovering technology") | |
221 | + | } | |
222 | + | else { | |
223 | + | let aa = u((P + "_Power")) | |
194 | 224 | let ab = ((u((P + "_Cost")) * 20) / 100) | |
195 | - | let | |
196 | - | if (( | |
225 | + | let ag = invoke(Address(b), "Pay", [k, ab], nil) | |
226 | + | if ((ag == ag)) | |
197 | 227 | then if ((aa > 0)) | |
198 | 228 | then { | |
199 | - | let | |
200 | - | let | |
201 | - | if (( | |
229 | + | let ac = A((k + "_Power")) | |
230 | + | let ad = invoke(Address(f), "setUserPower", [k, (ac + aa)], nil) | |
231 | + | if ((ad == ad)) | |
202 | 232 | then if (w((P + "_Aggregated"))) | |
203 | 233 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | [DeleteEntry(K( | |
234 | + | let ah = ((P + "_") + k) | |
235 | + | let ai = l(ah) | |
236 | + | let aj = l((ah + "_Qty")) | |
237 | + | [DeleteEntry(K(af, P)), StringEntry((ah + "_Owner"), k), IntegerEntry(ah, (ai + ab)), IntegerEntry((ah + "_Qty"), (aj + 1)), DeleteEntry(V), DeleteEntry(W)] | |
208 | 238 | } | |
209 | 239 | else [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
210 | 240 | else throw("Strict value is not equal to itself.") | |
211 | 241 | } | |
212 | 242 | else if (w((P + "_Aggregated"))) | |
213 | 243 | then { | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | [DeleteEntry(K( | |
244 | + | let ah = ((P + "_") + k) | |
245 | + | let ai = l(ah) | |
246 | + | let aj = l((ah + "_Qty")) | |
247 | + | [DeleteEntry(K(af, P)), StringEntry((ah + "_Owner"), k), IntegerEntry(ah, (ai + ab)), IntegerEntry((ah + "_Qty"), (aj + 1)), DeleteEntry(V), DeleteEntry(W)] | |
218 | 248 | } | |
219 | 249 | else [IntegerEntry(U, ab), DeleteEntry(V), DeleteEntry(W)] | |
220 | 250 | else throw("Strict value is not equal to itself.") | |
221 | 251 | } | |
222 | 252 | } | |
223 | 253 | ||
224 | 254 | ||
225 | - | func | |
226 | - | let | |
227 | - | ( | |
255 | + | func ak (k,U) = { | |
256 | + | let al = q(D(U)) | |
257 | + | (al == k) | |
228 | 258 | } | |
229 | 259 | ||
230 | 260 | ||
231 | - | func | |
232 | - | let | |
233 | - | w(( | |
261 | + | func am (s,t) = { | |
262 | + | let an = r(s, t) | |
263 | + | w((an + "_NationReserved")) | |
234 | 264 | } | |
235 | 265 | ||
236 | 266 | ||
237 | - | func | |
267 | + | func ao (E,ap) = { | |
238 | 268 | let Q = O(E) | |
239 | 269 | let R = Q._1 | |
240 | 270 | let S = Q._2 | |
241 | - | let | |
242 | - | let | |
243 | - | let aa = u(( | |
271 | + | let an = r(R, S) | |
272 | + | let aq = q(D(E)) | |
273 | + | let aa = u((an + "_Power")) | |
244 | 274 | if ((aa > 0)) | |
245 | 275 | then { | |
246 | - | let | |
247 | - | let | |
248 | - | if (( | |
249 | - | then if (( | |
276 | + | let ac = A((aq + "_Power")) | |
277 | + | let ad = invoke(Address(f), "setUserPower", [aq, (ac - aa)], nil) | |
278 | + | if ((ad == ad)) | |
279 | + | then if ((ad != (ac - aa))) | |
250 | 280 | then throw("Incorrect invoke result") | |
251 | 281 | else { | |
252 | - | let | |
253 | - | let | |
254 | - | if (( | |
282 | + | let ar = A((ap + "_Power")) | |
283 | + | let as = invoke(Address(f), "setUserPower", [ap, (ar + aa)], nil) | |
284 | + | if ((as == as)) | |
255 | 285 | then { | |
256 | - | let n = | |
286 | + | let n = as | |
257 | 287 | if ($isInstanceOf(n, "Int")) | |
258 | 288 | then { | |
259 | - | let | |
260 | - | [StringEntry(D(E), | |
289 | + | let at = n | |
290 | + | [StringEntry(D(E), ap)] | |
261 | 291 | } | |
262 | 292 | else throw("Incorrect invoke result") | |
263 | 293 | } | |
264 | 294 | else throw("Strict value is not equal to itself.") | |
265 | 295 | } | |
266 | 296 | else throw("Strict value is not equal to itself.") | |
267 | 297 | } | |
268 | - | else [StringEntry(D(E), | |
298 | + | else [StringEntry(D(E), ap)] | |
269 | 299 | } | |
270 | 300 | ||
271 | 301 | ||
272 | - | func | |
273 | - | let | |
274 | - | let | |
275 | - | if (( | |
302 | + | func au (av,k,aw) = { | |
303 | + | let ax = v((av + "_SacrificeAsset")) | |
304 | + | let ay = u((av + "_SacrificeAssetLevel")) | |
305 | + | if ((ax == "")) | |
276 | 306 | then true | |
277 | - | else if (!( | |
307 | + | else if (!(ak(k, aw))) | |
278 | 308 | then throw("you are not the owner of the asset") | |
279 | 309 | else { | |
280 | - | let Q = O( | |
281 | - | if (if (( | |
310 | + | let Q = O(aw) | |
311 | + | if (if ((ax != Q._1)) | |
282 | 312 | then true | |
283 | - | else ( | |
313 | + | else (ay != Q._2)) | |
284 | 314 | then throw("the sacrificeAsset has the wrong type or level") | |
285 | 315 | else true | |
286 | 316 | } | |
287 | 317 | } | |
288 | 318 | ||
289 | 319 | ||
290 | - | func | |
291 | - | let | |
292 | - | let | |
293 | - | if (( | |
294 | - | then if (B((( | |
295 | - | then | |
320 | + | func az (s,t,aA,aw) = { | |
321 | + | let aB = r(s, t) | |
322 | + | let aC = v((aB + "_Tecnhology_discovered")) | |
323 | + | if ((aC != "")) | |
324 | + | then if (B(((aA + "_") + aC))) | |
325 | + | then au(aB, aA, aw) | |
296 | 326 | else false | |
297 | - | else | |
327 | + | else au(aB, aA, aw) | |
298 | 328 | } | |
299 | 329 | ||
300 | 330 | ||
301 | - | func | |
302 | - | let | |
303 | - | let | |
304 | - | if (( | |
331 | + | func aD (s,t,k,aw) = { | |
332 | + | let aE = r(s, t) | |
333 | + | let aF = A(k) | |
334 | + | if ((aF == 0)) | |
305 | 335 | then false | |
306 | 336 | else { | |
307 | - | let | |
308 | - | if (( | |
337 | + | let aC = v((aE + "_Tecnhology_discovered")) | |
338 | + | if ((aC != "")) | |
309 | 339 | then { | |
310 | - | let | |
311 | - | if (B((( | |
312 | - | then | |
340 | + | let aA = C(toString(aF)) | |
341 | + | if (B(((aA + "_") + aC))) | |
342 | + | then au(aE, k, aw) | |
313 | 343 | else false | |
314 | 344 | } | |
315 | - | else | |
345 | + | else au(aE, k, aw) | |
316 | 346 | } | |
317 | 347 | } | |
318 | 348 | ||
319 | 349 | ||
320 | - | func | |
321 | - | then | |
322 | - | else | |
350 | + | func aG (s,t,aH,aA,aw) = if ((aA != "")) | |
351 | + | then az(s, t, aA, aw) | |
352 | + | else aD(s, t, aH, aw) | |
323 | 353 | ||
324 | 354 | ||
325 | - | @Callable( | |
326 | - | func StartBuild (R,t, | |
355 | + | @Callable(aI) | |
356 | + | func StartBuild (R,t,aA,aw) = if (!(aG(R, t, toString(aI.caller), aA, aw))) | |
327 | 357 | then throw("You cannot build this Item") | |
328 | 358 | else { | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | if ( | |
337 | - | then if (if (!( | |
338 | - | then !(j( | |
359 | + | let aB = r(R, t) | |
360 | + | let aJ = u((aB + "_BuildTime")) | |
361 | + | let aK = u((aB + "_Cost")) | |
362 | + | let aL = ((aK * 5) / 100) | |
363 | + | let aM = ((aK * 10) / 100) | |
364 | + | let aN = ((aK * 65) / 100) | |
365 | + | let aO = (((aK - aL) - aM) - aN) | |
366 | + | if (am(R, t)) | |
367 | + | then if (if (!(ak(toString(aI.caller), aA))) | |
368 | + | then !(j(aI.caller)) | |
339 | 369 | else false) | |
340 | 370 | then throw("You are not the owner of the nation") | |
341 | 371 | else { | |
342 | - | let | |
343 | - | if (( | |
372 | + | let aP = z(x(aA)) | |
373 | + | if ((aK > aP)) | |
344 | 374 | then throw("The nation hasn't enough funds") | |
345 | 375 | else { | |
346 | - | let | |
347 | - | let n = | |
376 | + | let aQ = invoke(Address(b), "decreaseNationWallet", [aA, aK], nil) | |
377 | + | let n = aQ | |
348 | 378 | if ($isInstanceOf(n, "Int")) | |
349 | 379 | then { | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | if ($isInstanceOf( | |
380 | + | let at = n | |
381 | + | let ad = invoke(Address(b), "arbitraryAddCoins", [aA, aO], nil) | |
382 | + | let aR = ad | |
383 | + | if ($isInstanceOf(aR, "Int")) | |
354 | 384 | then { | |
355 | - | let o = | |
356 | - | let | |
357 | - | let | |
358 | - | if ($isInstanceOf( | |
385 | + | let o = aR | |
386 | + | let aS = invoke(Address(b), "distributeNationPayRewards", [aK], nil) | |
387 | + | let aT = aS | |
388 | + | if ($isInstanceOf(aT, "Int")) | |
359 | 389 | then { | |
360 | - | let | |
361 | - | [StringEntry(N(toString( | |
390 | + | let aU = aT | |
391 | + | [StringEntry(N(toString(aI.originCaller), aI.transactionId, aB), F), StringEntry(K(aI.transactionId, aB), aA), IntegerEntry(L(toString(aI.originCaller), aI.transactionId, aB), (height + aJ))] | |
362 | 392 | } | |
363 | 393 | else throw("Error Distributing asset rewards") | |
364 | 394 | } | |
365 | 395 | else throw("Error Depositing nation funds") | |
366 | 396 | } | |
367 | 397 | else throw("Error Depositing nation funds") | |
368 | 398 | } | |
369 | 399 | } | |
370 | 400 | else { | |
371 | - | let av = v((az + "_SacrificeAsset")) | |
372 | - | if ((av != "")) | |
373 | - | then { | |
374 | - | let ae = invoke(Address(b), "NoPaymentDeposit", [toString(aG.caller), aM], nil) | |
375 | - | let n = ae | |
376 | - | if ($isInstanceOf(n, "Int")) | |
377 | - | then { | |
378 | - | let ar = n | |
379 | - | let aQ = invoke(Address(b), "distributeNationPayRewards", [aI], nil) | |
380 | - | let aP = aQ | |
381 | - | if ($isInstanceOf(aP, "Int")) | |
382 | - | then { | |
383 | - | let aS = aP | |
384 | - | [DeleteEntry(au), StringEntry(N(toString(aG.originCaller), aG.transactionId, az), F), StringEntry(K(aG.transactionId, az), ay), IntegerEntry(L(toString(aG.originCaller), aG.transactionId, az), (height + aH))] | |
385 | - | } | |
386 | - | else throw("Error Distributing asset rewards") | |
387 | - | } | |
388 | - | else throw("Error adding deposit") | |
389 | - | } | |
401 | + | let ax = v((aB + "_SacrificeAsset")) | |
402 | + | if ((ax != "")) | |
403 | + | then [DeleteEntry(aw), StringEntry(N(toString(aI.originCaller), aI.transactionId, aB), F), StringEntry(K(aI.transactionId, aB), toString(aI.originCaller)), IntegerEntry(L(toString(aI.originCaller), aI.transactionId, aB), (height + aJ))] | |
390 | 404 | else { | |
391 | - | let | |
392 | - | if (( | |
405 | + | let aV = value(aI.payments[0].amount) | |
406 | + | if ((aK > aV)) | |
393 | 407 | then throw(("You provided less $heg than the needed cost for building this " + R)) | |
394 | - | else if (( | |
408 | + | else if ((aI.payments[0].assetId != a)) | |
395 | 409 | then throw("Only $HEG payments allowed") | |
396 | 410 | else { | |
397 | - | let | |
398 | - | let n = | |
411 | + | let ad = invoke(Address(b), "Deposit", nil, [AttachedPayment(a, aO)]) | |
412 | + | let n = ad | |
399 | 413 | if ($isInstanceOf(n, "Int")) | |
400 | 414 | then { | |
401 | - | let | |
402 | - | [StringEntry(N(toString( | |
415 | + | let at = n | |
416 | + | [StringEntry(N(toString(aI.originCaller), aI.transactionId, aB), F), StringEntry(K(aI.transactionId, aB), toString(aI.originCaller)), IntegerEntry(L(toString(aI.originCaller), aI.transactionId, aB), (height + aJ)), ScriptTransfer(g, aL, a), ScriptTransfer(h, aM, a), ScriptTransfer(i, aN, a)] | |
403 | 417 | } | |
404 | 418 | else throw("Incorrect invoke result") | |
405 | 419 | } | |
406 | 420 | } | |
407 | 421 | } | |
408 | 422 | } | |
409 | 423 | ||
410 | 424 | ||
411 | 425 | ||
412 | - | @Callable( | |
413 | - | func FinishBuild ( | |
414 | - | let I = fromBase58String( | |
415 | - | let | |
416 | - | let V = N(toString( | |
417 | - | let W = L(toString( | |
418 | - | let U = H(I, | |
419 | - | let | |
420 | - | if ( | |
421 | - | then if (if (!( | |
422 | - | then !(j( | |
426 | + | @Callable(aI) | |
427 | + | func FinishBuild (aW,P,t,aA) = { | |
428 | + | let I = fromBase58String(aW) | |
429 | + | let av = r(P, t) | |
430 | + | let V = N(toString(aI.caller), I, av) | |
431 | + | let W = L(toString(aI.caller), I, av) | |
432 | + | let U = H(I, av) | |
433 | + | let al = q(K(I, av)) | |
434 | + | if (am(P, t)) | |
435 | + | then if (if (!(ak(toString(aI.caller), aA))) | |
436 | + | then !(j(aI.caller)) | |
423 | 437 | else false) | |
424 | 438 | then throw("You are not authorized to perform this operation") | |
425 | - | else | |
426 | - | else if (( | |
439 | + | else ae(aA, av, U, V, W, I) | |
440 | + | else if ((al != toString(aI.caller))) | |
427 | 441 | then throw(("You cannot claim other's players " + P)) | |
428 | 442 | else { | |
429 | - | let | |
430 | - | if (( | |
443 | + | let aX = q(V) | |
444 | + | if ((aX == "")) | |
431 | 445 | then throw("No pending operations for this asset") | |
432 | - | else T(toString(aG.caller), at, U, V, W, I) | |
446 | + | else { | |
447 | + | let ax = v((av + "_SacrificeAsset")) | |
448 | + | if ((ax != "")) | |
449 | + | then T(toString(aI.caller), av, U, V, W, ax) | |
450 | + | else ae(toString(aI.caller), av, U, V, W, I) | |
451 | + | } | |
433 | 452 | } | |
434 | 453 | } | |
435 | 454 | ||
436 | 455 | ||
437 | 456 | ||
438 | - | @Callable( | |
439 | - | func transferOwnership (E, | |
457 | + | @Callable(aI) | |
458 | + | func transferOwnership (E,ap) = if (!(j(aI.caller))) | |
440 | 459 | then throw("Only the admin can perform this operation") | |
441 | - | else $Tuple2( | |
460 | + | else $Tuple2(ao(E, ap), ap) | |
442 | 461 | ||
443 | 462 | ||
444 | 463 | ||
445 | - | @Callable( | |
446 | - | func destroyAssetAndTransfer (E, | |
464 | + | @Callable(aI) | |
465 | + | func destroyAssetAndTransfer (E,aY) = { | |
447 | 466 | let Q = O(E) | |
448 | 467 | let R = Q._1 | |
449 | 468 | let S = Q._2 | |
450 | - | let | |
451 | - | if (!(j( | |
469 | + | let an = r(R, S) | |
470 | + | if (!(j(aI.caller))) | |
452 | 471 | then throw("Only the admin can perform this operation") | |
453 | 472 | else { | |
454 | - | let | |
473 | + | let aq = q(D(E)) | |
455 | 474 | let ab = l(E) | |
456 | - | let | |
457 | - | if (( | |
475 | + | let ag = invoke(Address(b), "adminTransfer", [addressFromStringValue(aY), ab], nil) | |
476 | + | if ((ag == ag)) | |
458 | 477 | then { | |
459 | - | let | |
460 | - | let aa = u(( | |
461 | - | let | |
462 | - | if (( | |
478 | + | let ac = A((aq + "_Power")) | |
479 | + | let aa = u((an + "_Power")) | |
480 | + | let ad = invoke(Address(f), "setUserPower", [toString(aI.caller), (ac - aa)], nil) | |
481 | + | if ((ad == ad)) | |
463 | 482 | then { | |
464 | - | let n = | |
483 | + | let n = ad | |
465 | 484 | if ($isInstanceOf(n, "Int")) | |
466 | 485 | then { | |
467 | - | let | |
486 | + | let at = n | |
468 | 487 | [DeleteEntry(E)] | |
469 | 488 | } | |
470 | 489 | else throw("Error setting user power") | |
471 | 490 | } | |
472 | 491 | else throw("Strict value is not equal to itself.") | |
473 | 492 | } | |
474 | 493 | else throw("Strict value is not equal to itself.") | |
475 | 494 | } | |
476 | 495 | } | |
477 | 496 | ||
478 | 497 | ||
479 | 498 | ||
480 | - | @Callable( | |
481 | - | func destroyAssetFromUser (E, | |
499 | + | @Callable(aI) | |
500 | + | func destroyAssetFromUser (E,aj) = { | |
482 | 501 | let Q = O(E) | |
483 | 502 | let R = Q._1 | |
484 | 503 | let S = Q._2 | |
485 | - | let | |
486 | - | if (!( | |
504 | + | let an = r(R, S) | |
505 | + | if (!(ak(toString(aI.caller), E))) | |
487 | 506 | then throw("You don't own this asset") | |
488 | 507 | else { | |
489 | 508 | let ab = l(E) | |
490 | - | let | |
491 | - | let aa = u(( | |
492 | - | if (w(( | |
509 | + | let ac = A((toString(aI.caller) + "_Power")) | |
510 | + | let aa = u((an + "_Power")) | |
511 | + | if (w((an + "_Aggregated"))) | |
493 | 512 | then { | |
494 | - | let | |
495 | - | let | |
496 | - | if ((0 > ( | |
513 | + | let aZ = ((u((an + "_Cost")) * 20) / 100) | |
514 | + | let ba = l((an + "_Qty")) | |
515 | + | if ((0 > (ba - aj))) | |
497 | 516 | then throw(("you don't have enough " + R)) | |
498 | 517 | else { | |
499 | - | let | |
500 | - | let n = | |
518 | + | let ad = invoke(Address(f), "setUserPower", [toString(aI.caller), (ac - (aa * aj))], nil) | |
519 | + | let n = ad | |
501 | 520 | if ($isInstanceOf(n, "Int")) | |
502 | 521 | then { | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | if ($isInstanceOf( | |
522 | + | let at = n | |
523 | + | let bb = invoke(Address(b), "adminTransfer", [toString(aI.caller), (aZ * aj)], nil) | |
524 | + | let aR = bb | |
525 | + | if ($isInstanceOf(aR, "Int")) | |
507 | 526 | then { | |
508 | - | let | |
509 | - | if ((( | |
510 | - | then [IntegerEntry(( | |
527 | + | let aU = aR | |
528 | + | if (((ba - aj) > 0)) | |
529 | + | then [IntegerEntry((an + "_Qty"), (ba - aj))] | |
511 | 530 | else [DeleteEntry(E)] | |
512 | 531 | } | |
513 | 532 | else throw("Error transferring coins") | |
514 | 533 | } | |
515 | 534 | else throw("Error setting user power") | |
516 | 535 | } | |
517 | 536 | } | |
518 | 537 | else { | |
519 | - | let | |
520 | - | let n = | |
538 | + | let ad = invoke(Address(f), "setUserPower", [toString(aI.caller), (ac - aa)], nil) | |
539 | + | let n = ad | |
521 | 540 | if ($isInstanceOf(n, "Int")) | |
522 | 541 | then { | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | if ($isInstanceOf( | |
542 | + | let at = n | |
543 | + | let bb = invoke(Address(b), "adminTransfer", [toString(aI.caller), ab], nil) | |
544 | + | let aR = bb | |
545 | + | if ($isInstanceOf(aR, "Int")) | |
527 | 546 | then { | |
528 | - | let | |
547 | + | let aU = aR | |
529 | 548 | [DeleteEntry(E)] | |
530 | 549 | } | |
531 | 550 | else throw("Error transferring coins") | |
532 | 551 | } | |
533 | 552 | else throw("Error setting user power") | |
534 | 553 | } | |
535 | 554 | } | |
536 | 555 | } | |
537 | 556 | ||
538 | 557 | ||
539 | 558 | ||
540 | - | @Callable( | |
541 | - | func setNationOwner ( | |
542 | - | then $Tuple2([StringEntry(( | |
559 | + | @Callable(aI) | |
560 | + | func setNationOwner (bc,ap) = if (j(aI.caller)) | |
561 | + | then $Tuple2([StringEntry((bc + "_Owner"), ap)], true) | |
543 | 562 | else { | |
544 | - | let | |
545 | - | if (( | |
563 | + | let bd = q((bc + "_Owner")) | |
564 | + | if ((bd != toString(aI.caller))) | |
546 | 565 | then throw("You are not the nation owner") | |
547 | - | else [StringEntry(( | |
566 | + | else [StringEntry((bc + "_Owner"), ap)] | |
548 | 567 | } | |
549 | 568 | ||
550 | 569 | ||
551 | 570 | ||
552 | - | @Callable( | |
553 | - | func buyNationItem (E, | |
571 | + | @Callable(aI) | |
572 | + | func buyNationItem (E,aA) = { | |
554 | 573 | let Q = O(E) | |
555 | 574 | let R = Q._1 | |
556 | 575 | let S = Q._2 | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | if (( | |
576 | + | let an = r(R, S) | |
577 | + | let be = A(toString(aI.caller)) | |
578 | + | let bf = A(aA) | |
579 | + | if ((be != bf)) | |
561 | 580 | then throw("you can buy assets only from your nation") | |
562 | - | else if (!( | |
581 | + | else if (!(ak(aA, E))) | |
563 | 582 | then throw("The asset does not belong to the nation") | |
564 | - | else if (!( | |
583 | + | else if (!(am(R, S))) | |
565 | 584 | then throw("this asset cannot be sold by the nation") | |
566 | 585 | else { | |
567 | - | let | |
568 | - | let | |
569 | - | if (( | |
586 | + | let bg = u((r(R, S) + "_SellPrice")) | |
587 | + | let aV = value(aI.payments[0].amount) | |
588 | + | if ((bg > aV)) | |
570 | 589 | then throw(("You provided less $heg than the needed cost for buying this " + R)) | |
571 | - | else if (( | |
590 | + | else if ((aI.payments[0].assetId != a)) | |
572 | 591 | then throw("Only $HEG payments allowed") | |
573 | 592 | else { | |
574 | - | let | |
575 | - | let n = | |
593 | + | let bh = invoke(Address(b), "increaseNationWallet", [aA, aV], nil) | |
594 | + | let n = bh | |
576 | 595 | if ($isInstanceOf(n, "Int")) | |
577 | 596 | then { | |
578 | 597 | let o = n | |
579 | - | ( | |
598 | + | (ao(E, toString(aI.caller)) :+ ScriptTransfer(Address(b), aV, a)) | |
580 | 599 | } | |
581 | 600 | else throw("Error transferring SHEG to nations wallet") | |
582 | 601 | } | |
583 | 602 | } | |
584 | 603 | } | |
585 | 604 | ||
586 | 605 | ||
587 | 606 | ||
588 | - | @Callable( | |
589 | - | func AddAssetFromMarkeplace (E, | |
607 | + | @Callable(aI) | |
608 | + | func AddAssetFromMarkeplace (E,aq,bi) = if (!(j(aI.caller))) | |
590 | 609 | then throw("You are not allowed to perform this operation") | |
591 | - | else $Tuple2([StringEntry(D(E), | |
610 | + | else $Tuple2([StringEntry(D(E), aq), IntegerEntry(E, bi)], aq) | |
592 | 611 | ||
593 | 612 | ||
594 | 613 | ||
595 | - | @Callable( | |
596 | - | func TransferAssetToMarketplace (E, | |
614 | + | @Callable(aI) | |
615 | + | func TransferAssetToMarketplace (E,bj) = if (!(ak(toString(aI.caller), E))) | |
597 | 616 | then throw("You are not the owner of this asset") | |
598 | 617 | else { | |
599 | - | let | |
600 | - | let | |
601 | - | let n = | |
618 | + | let bi = l(E) | |
619 | + | let bb = invoke(Address(d), "putOnSale", [E, bi, bj], nil) | |
620 | + | let n = bb | |
602 | 621 | if ($isInstanceOf(n, "Int")) | |
603 | 622 | then { | |
604 | - | let | |
623 | + | let aU = n | |
605 | 624 | [DeleteEntry(D(E)), DeleteEntry(E)] | |
606 | 625 | } | |
607 | 626 | else throw("Error putting the item on the marketplace") | |
608 | 627 | } | |
609 | 628 | ||
610 | 629 | ||
611 | 630 | ||
612 | - | @Callable( | |
613 | - | func DelKey (m) = if (!(j( | |
631 | + | @Callable(aI) | |
632 | + | func DelKey (m) = if (!(j(aI.caller))) | |
614 | 633 | then throw("") | |
615 | 634 | else [DeleteEntry(m)] | |
616 | 635 | ||
617 | 636 | ||
618 | 637 | ||
619 | - | @Callable( | |
620 | - | func UpdKey (m, | |
638 | + | @Callable(aI) | |
639 | + | func UpdKey (m,bk) = if (!(j(aI.caller))) | |
621 | 640 | then throw("") | |
622 | - | else [StringEntry(m, | |
641 | + | else [StringEntry(m, bk)] | |
623 | 642 | ||
624 | 643 |
github/deemru/w8io/169f3d6 179.33 ms ◑