tx · Yn7jTiNBWNi5G94z6SCngKNKXUP3d8VDT8A3VAf1UXs 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.06700000 Waves 2023.06.20 21:04 [2631298] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "Yn7jTiNBWNi5G94z6SCngKNKXUP3d8VDT8A3VAf1UXs", "fee": 6700000, "feeAssetId": null, "timestamp": 1687284353244, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "2biwtMw6P5csAgtS8i4bvRDkRDgUPCS94CFL4TJC9GQA1ooFyfNLXb1XnvBAepXaCxS4GXfVYLFD81LBKN9AeiH8" ], "script": "base64:BgKYAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgUKAwEBARIAEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAgIEgQKAggIEgMKAQESBQoDAQEIEgMKAQgSAwoBCBIAwAEABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABVkZWZhdWx0UmVzdEFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQUUN1dkZidmg0TGtQVW5yblUxejNqbmJBMXA5bTNXTmh2AwkAAAIBAVQFByRtYXRjaDACIzNNdW1rR0d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ycmFpbnMJAJQKAgUDbmlsCQCUCgIJARJnZXROZWVkZWRNYXRlcmlhbHMBBQltYXRBbW91bnQJARNkaXN0cmlidXRlQnlXZWlnaHRzAgUJcmVzQW1vdW50BQ10ZXJyYWluQ291bnRzAWkBE2dldEJhY2twYWNrUkVBRE9OTFkBC2R1Y2tBc3NldElkCQCUCgIFA25pbAkAuQkCCQELZ2V0QmFja3BhY2sBCQERa2V5QmFja3BhY2tCeUR1Y2sBBQtkdWNrQXNzZXRJZAIBOgFpARRnZXRXYXJlaG91c2VSRUFET05MWQELbGFuZEFzc2V0SWQEBWFzc2V0CQEFdmFsdWUBCQDsBwEJANkEAQULbGFuZEFzc2V0SWQECWxhbmRJbmRleAkAaQIJAQ9udW1QaWVjZXNCeVNpemUBCQCRAwIJALUJAggFBWFzc2V0C2Rlc2NyaXB0aW9uAgFfBQtyZWNMYW5kU2l6ZQUFU1NJWkUECmluZnJhTGV2ZWwJAQt2YWx1ZU9yRWxzZQIJAJ8IAQkBFmtleUluZnJhTGV2ZWxCeUFzc2V0SWQBBQtsYW5kQXNzZXRJZAAACQCUCgIFA25pbAkAugkCCQEMZ2V0V2FyZWhvdXNlAwkBEmtleVdhcmVob3VzZUJ5TGFuZAEFC2xhbmRBc3NldElkBQlsYW5kSW5kZXgFCmluZnJhTGV2ZWwCAToBaQEKc2F2ZUxhc3RUeAADCQECIT0CCAUBaQZjYWxsZXIFC3dsZ0NvbnRyYWN0CQACAQINQWNjZXNzIGRlbmllZAkAlAoCCQDMCAIJAQZwcm9sb2cBBQFpBQNuaWwAKgDSxETy", "height": 2631298, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DqNMsQaMHFX6VTsFzhcgJCp7Vf9ggPeRWDEAkvV2ZQ6c Next: D29kBp3N4g14JqRFvanaL1j4Q5p1Dcy3VdjVk1cMkr6W Diff:
Old | New | Differences | |
---|---|---|---|
494 | 494 | ||
495 | 495 | let flBonus = 6 | |
496 | 496 | ||
497 | + | let flProdsUsed = 7 | |
498 | + | ||
497 | 499 | func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
498 | 500 | ||
499 | 501 | ||
558 | 560 | } | |
559 | 561 | else has | |
560 | 562 | } | |
563 | + | ||
564 | + | ||
565 | + | func subtractProducts (pHas,pUsed) = if ((pUsed == "")) | |
566 | + | then pHas | |
567 | + | else { | |
568 | + | let pList = if ((pHas == "")) | |
569 | + | then nil | |
570 | + | else split(pHas, "_") | |
571 | + | func subP (acc,item) = { | |
572 | + | let j = acc._1 | |
573 | + | func checkUsed (ac,idxAmt) = { | |
574 | + | let parts = split(idxAmt, ",") | |
575 | + | if ((size(parts) != 2)) | |
576 | + | then throw("Incorrect format, should be index,amount") | |
577 | + | else { | |
578 | + | let idx = parseIntValue(parts[0]) | |
579 | + | if (if ((0 > idx)) | |
580 | + | then true | |
581 | + | else (idx >= size(productionMatrix))) | |
582 | + | then throw("Unknown product idx") | |
583 | + | else if ((idx != j)) | |
584 | + | then ac | |
585 | + | else { | |
586 | + | let amt = parseIntValue(parts[1]) | |
587 | + | if ((0 >= amt)) | |
588 | + | then throw("Pass only positive amounts") | |
589 | + | else (ac + amt) | |
590 | + | } | |
591 | + | } | |
592 | + | } | |
593 | + | ||
594 | + | let a = { | |
595 | + | let $l = split(pUsed, "_") | |
596 | + | let $s = size($l) | |
597 | + | let $acc0 = 0 | |
598 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
599 | + | then $a | |
600 | + | else checkUsed($a, $l[$i]) | |
601 | + | ||
602 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
603 | + | then $a | |
604 | + | else throw("List size exceeds 10") | |
605 | + | ||
606 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
607 | + | } | |
608 | + | let curr = if ((size(pList) > j)) | |
609 | + | then parseIntValue(pList[j]) | |
610 | + | else 0 | |
611 | + | let newAmt = if ((a > curr)) | |
612 | + | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[j]) + ", but tried to use ") + toString(a))) | |
613 | + | else (curr - a) | |
614 | + | $Tuple2((j + 1), (acc._2 :+ toString(newAmt))) | |
615 | + | } | |
616 | + | ||
617 | + | let newProd = { | |
618 | + | let $l = productionMatrix | |
619 | + | let $s = size($l) | |
620 | + | let $acc0 = $Tuple2(0, nil) | |
621 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
622 | + | then $a | |
623 | + | else subP($a, $l[$i]) | |
624 | + | ||
625 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
626 | + | then $a | |
627 | + | else throw("List size exceeds 50") | |
628 | + | ||
629 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
630 | + | } | |
631 | + | makeString(newProd._2, "_") | |
632 | + | } | |
561 | 633 | ||
562 | 634 | ||
563 | 635 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
1000 | 1072 | } | |
1001 | 1073 | ||
1002 | 1074 | ||
1003 | - | func | |
1075 | + | func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
1004 | 1076 | then throw("signature does not match") | |
1005 | 1077 | else { | |
1006 | 1078 | let parts = split(toUtf8String(message), ";") | |
1014 | 1086 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1015 | 1087 | then true | |
1016 | 1088 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1017 | - | then throw("signature outdated") | |
1089 | + | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1018 | 1090 | else { | |
1019 | 1091 | let txFromMsg = newLocTxVer[1] | |
1020 | - | let userAddr = toString(caller) | |
1021 | 1092 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
1022 | 1093 | if ((lastTx != txFromMsg)) | |
1023 | 1094 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1029 | 1100 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
1030 | 1101 | else if ((0 >= curHP)) | |
1031 | 1102 | then throw("You can't fly with zero health") | |
1032 | - | else if ((0 >= newHP)) | |
1033 | - | then $Tuple3(((if (!(shouldUseMat)) | |
1034 | - | then [ScriptTransfer(caller, EXPUSDT, usdtAssetId)] | |
1035 | - | else nil) :+ IntegerEntry(keyHealth, 0)), "", 0) | |
1036 | - | else { | |
1037 | - | let bonus = if ((size(flightLog) > flBonus)) | |
1038 | - | then flightLog[flBonus] | |
1039 | - | else "" | |
1040 | - | let sentAmount = if ((bonus == "$")) | |
1041 | - | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1042 | - | else 0 | |
1043 | - | let bpKey = keyBackpackByDuck(duckAssetId) | |
1044 | - | let currentPack = getBackpack(bpKey) | |
1045 | - | let mList = split(currentPack[bpIdxMat], "_") | |
1046 | - | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
1047 | - | let e = expeditionInternal(caller, txId) | |
1048 | - | let id = e._2._1 | |
1049 | - | $Tuple3((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, newHP)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id, sentAmount) | |
1050 | - | } | |
1103 | + | else { | |
1104 | + | let bonus = if ((size(flightLog) > flBonus)) | |
1105 | + | then flightLog[flBonus] | |
1106 | + | else "" | |
1107 | + | let prodUsed = if ((size(flightLog) > flProdsUsed)) | |
1108 | + | then flightLog[flProdsUsed] | |
1109 | + | else "" | |
1110 | + | let sentAmount = if (if ((newHP > 0)) | |
1111 | + | then (bonus == "$") | |
1112 | + | else false) | |
1113 | + | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1114 | + | else 0 | |
1115 | + | $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed) | |
1116 | + | } | |
1051 | 1117 | } | |
1052 | 1118 | } | |
1053 | 1119 | } | |
1120 | + | ||
1121 | + | ||
1122 | + | func expeditionCommon (caller,txId,message,sig) = { | |
1123 | + | let userAddr = toString(caller) | |
1124 | + | let f = flightCommon(userAddr, message, sig) | |
1125 | + | let keyHealth = keyDuckHealth(f._2) | |
1126 | + | let bpKey = keyBackpackByDuck(f._2) | |
1127 | + | let currentPack = getBackpack(bpKey) | |
1128 | + | let mList = split(currentPack[bpIdxMat], "_") | |
1129 | + | let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_") | |
1130 | + | let newProd = subtractProducts(currentPack[bpIdxProd], f._5) | |
1131 | + | if ((0 >= f._1)) | |
1132 | + | then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":"))], "", 0) | |
1133 | + | else { | |
1134 | + | let e = expeditionInternal(caller, txId) | |
1135 | + | let id = e._2._1 | |
1136 | + | $Tuple3((((e._1 :+ StringEntry(keyDuckLocation(f._2), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, newProd], ":"))), id, f._3) | |
1137 | + | } | |
1138 | + | } | |
1054 | 1139 | ||
1055 | 1140 | ||
1056 | 1141 | func applyBonuses (landAssetId,pieces) = { | |
1063 | 1148 | ||
1064 | 1149 | ||
1065 | 1150 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1066 | - | let $ | |
1151 | + | let $t02442224961 = if ((claimMode == claimModeWh)) | |
1067 | 1152 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1068 | 1153 | else { | |
1069 | 1154 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1073 | 1158 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1074 | 1159 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1075 | 1160 | } | |
1076 | - | let landAssetId = $ | |
1077 | - | let duckId = $ | |
1161 | + | let landAssetId = $t02442224961._1 | |
1162 | + | let duckId = $t02442224961._2 | |
1078 | 1163 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1079 | 1164 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1080 | 1165 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1122 | 1207 | let currentPack = getBackpack(bpKey) | |
1123 | 1208 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1124 | 1209 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1125 | - | let $ | |
1210 | + | let $t02733528206 = if ((claimMode == claimModeWh)) | |
1126 | 1211 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1127 | 1212 | else if ((claimMode == claimModeDuck)) | |
1128 | 1213 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1131 | 1216 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1132 | 1217 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1133 | 1218 | } | |
1134 | - | let whRes = $ | |
1135 | - | let bpRes = $ | |
1136 | - | let loftO = $ | |
1137 | - | let loftF = $ | |
1219 | + | let whRes = $t02733528206._1 | |
1220 | + | let bpRes = $t02733528206._2 | |
1221 | + | let loftO = $t02733528206._3 | |
1222 | + | let loftF = $t02733528206._4 | |
1138 | 1223 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxLevels], whRes, currentWh[whIdxMat], currentWh[whIdxProd], makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")]) | |
1139 | 1224 | } | |
1140 | 1225 | } | |
1579 | 1664 | @Callable(i) | |
1580 | 1665 | func flight (message,sig) = { | |
1581 | 1666 | let prologAction = prolog(i) | |
1582 | - | if (!(sigVerify_8Kb(message, sig, pub))) | |
1583 | - | then throw("signature does not match") | |
1584 | - | else if ((size(i.payments) != 0)) | |
1585 | - | then throw("No payments required") | |
1586 | - | else { | |
1587 | - | let parts = split(toUtf8String(message), ";") | |
1588 | - | let flightLog = split(parts[0], "|") | |
1589 | - | let hp = split(flightLog[flHealth], "_") | |
1590 | - | let curHP = parseIntValue(hp[0]) | |
1591 | - | let newHP = parseIntValue(hp[1]) | |
1592 | - | let newLocTxVer = split(parts[1], ":") | |
1593 | - | let newLocation = newLocTxVer[0] | |
1594 | - | let time = parseIntValue(flightLog[flTimestamp]) | |
1595 | - | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1596 | - | then true | |
1597 | - | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1598 | - | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1599 | - | else { | |
1600 | - | let txFromMsg = newLocTxVer[1] | |
1601 | - | let lastTx = valueOrElse(getString(keyLastTxIdByUser(toString(i.originCaller))), "") | |
1602 | - | if ((lastTx != txFromMsg)) | |
1603 | - | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1604 | - | else { | |
1605 | - | let userAddr = toString(i.caller) | |
1606 | - | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1607 | - | let keyHealth = keyDuckHealth(duckAssetId) | |
1608 | - | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
1609 | - | if ((oldFromState != curHP)) | |
1610 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
1611 | - | else if ((0 >= curHP)) | |
1612 | - | then throw("You can't fly with zero health") | |
1613 | - | else { | |
1614 | - | let locKey = keyDuckLocation(duckAssetId) | |
1615 | - | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1616 | - | if ((newLocation == curLocation)) | |
1617 | - | then throw("You can't fly to the same location") | |
1618 | - | else { | |
1619 | - | let bonus = if ((size(flightLog) > flBonus)) | |
1620 | - | then flightLog[flBonus] | |
1621 | - | else "" | |
1622 | - | let sentAmount = if (if ((newHP > 0)) | |
1623 | - | then (bonus == "$") | |
1624 | - | else false) | |
1625 | - | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1626 | - | else 0 | |
1627 | - | $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
1628 | - | then newLocation | |
1629 | - | else curLocation), IntegerEntry(keyHealth, newHP), prologAction], sentAmount) | |
1630 | - | } | |
1631 | - | } | |
1632 | - | } | |
1633 | - | } | |
1634 | - | } | |
1667 | + | if ((size(i.payments) != 0)) | |
1668 | + | then throw("No payments required") | |
1669 | + | else { | |
1670 | + | let userAddr = toString(i.caller) | |
1671 | + | let f = flightCommon(userAddr, message, sig) | |
1672 | + | let locKey = keyDuckLocation(f._2) | |
1673 | + | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1674 | + | if ((f._4 == curLocation)) | |
1675 | + | then throw("You can't fly to the same location") | |
1676 | + | else { | |
1677 | + | let bpKey = keyBackpackByDuck(f._2) | |
1678 | + | let currentPack = getBackpack(bpKey) | |
1679 | + | let newProd = subtractProducts(currentPack[bpIdxProd], f._5) | |
1680 | + | $Tuple2([StringEntry(locKey, if ((f._1 > 0)) | |
1681 | + | then f._4 | |
1682 | + | else curLocation), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":")), IntegerEntry(keyDuckHealth(f._2), f._1), prologAction], f._3) | |
1683 | + | } | |
1684 | + | } | |
1635 | 1685 | } | |
1636 | 1686 | ||
1637 | 1687 | ||
1799 | 1849 | if ((size(i.payments) != 0)) | |
1800 | 1850 | then throw("No payments required") | |
1801 | 1851 | else { | |
1802 | - | let result = expeditionCommon( | |
1852 | + | let result = expeditionCommon(i.caller, i.transactionId, message, sig) | |
1803 | 1853 | $Tuple2((result._1 :+ prologAction), $Tuple2(result._2, result._3)) | |
1804 | 1854 | } | |
1805 | 1855 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let chain = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let usdtAssetId = match chain { | |
7 | 7 | case _ => | |
8 | 8 | if ((base58'2W' == $match0)) | |
9 | 9 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
10 | 10 | else if ((base58'2T' == $match0)) | |
11 | 11 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let defaultRestAddressStr = match chain { | |
16 | 16 | case _ => | |
17 | 17 | if ((base58'2W' == $match0)) | |
18 | 18 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
19 | 19 | else if ((base58'2T' == $match0)) | |
20 | 20 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let InfraUpgradeCostS = match chain { | |
25 | 25 | case _ => | |
26 | 26 | if ((base58'2W' == $match0)) | |
27 | 27 | then 10000000000 | |
28 | 28 | else if ((base58'2T' == $match0)) | |
29 | 29 | then 100000000 | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let SEP = "__" | |
34 | 34 | ||
35 | 35 | let MULT6 = 1000000 | |
36 | 36 | ||
37 | 37 | let MULT7 = 10000000 | |
38 | 38 | ||
39 | 39 | let MULT8 = 100000000 | |
40 | 40 | ||
41 | 41 | let MULT10 = 10000000000 | |
42 | 42 | ||
43 | 43 | let LANDPREFIX = "LAND" | |
44 | 44 | ||
45 | 45 | let DUCKPREFIX = "DUCK" | |
46 | 46 | ||
47 | 47 | let ARTPRESALE = "PRESALE" | |
48 | 48 | ||
49 | 49 | let NUMRES = 6 | |
50 | 50 | ||
51 | 51 | let SSIZE = 25 | |
52 | 52 | ||
53 | 53 | let MSIZE = 100 | |
54 | 54 | ||
55 | 55 | let LSIZE = 225 | |
56 | 56 | ||
57 | 57 | let XLSIZE = 400 | |
58 | 58 | ||
59 | 59 | let XXLSIZE = 625 | |
60 | 60 | ||
61 | 61 | let DAILYRESBYPIECE = 3456000 | |
62 | 62 | ||
63 | 63 | let DAYMILLIS = 86400000 | |
64 | 64 | ||
65 | 65 | let WHMULTIPLIER = 10000000000 | |
66 | 66 | ||
67 | 67 | let DEFAULTLOCATION = "Africa_F_Africa" | |
68 | 68 | ||
69 | 69 | let RESOURCEPRICEMIN = 39637 | |
70 | 70 | ||
71 | 71 | let ESMAXPACKAGES = 3 | |
72 | 72 | ||
73 | 73 | let ESBUYCOEF = 4 | |
74 | 74 | ||
75 | 75 | let ESSELLCOEF = 10 | |
76 | 76 | ||
77 | 77 | let MAXHP = 100 | |
78 | 78 | ||
79 | 79 | let resTypes = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
80 | 80 | ||
81 | 81 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
82 | 82 | ||
83 | 83 | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"] | |
84 | 84 | ||
85 | 85 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
86 | 86 | ||
87 | 87 | let productionMatrix = ["1_1_1_2_2_5_1_10_0", "2_2_2_4_4_10_1_10_0", "3_3_3_6_6_15_1_10_0", "2_5_5_2_7_5_2_100_1", "4_10_10_4_14_10_2_100_1", "6_15_15_6_21_15_2_100_1", "1_1_1_1_1_8_1_10_2", "2_2_2_2_2_16_1_10_2", "3_3_3_3_3_24_1_10_2", "9_9_1_5_5_1_5_100_3", "18_18_2_10_10_2_5_100_3", "27_27_3_15_15_3_5_100_3", "2_2_1_2_2_2_1_10_4", "4_4_2_4_4_4_1_10_4", "6_6_3_6_6_6_1_10_4"] | |
88 | 88 | ||
89 | 89 | let contIdxAmericas = 0 | |
90 | 90 | ||
91 | 91 | let contIdxEurope = 1 | |
92 | 92 | ||
93 | 93 | let contIdxAsia = 2 | |
94 | 94 | ||
95 | 95 | let contIdxAfrica = 3 | |
96 | 96 | ||
97 | 97 | let contIdxOceania = 4 | |
98 | 98 | ||
99 | 99 | let recipeIdxFuel = 0 | |
100 | 100 | ||
101 | 101 | let recipeIdxMetal = 1 | |
102 | 102 | ||
103 | 103 | let recipeIdxPlank = 2 | |
104 | 104 | ||
105 | 105 | let recipeIdxGlass = 3 | |
106 | 106 | ||
107 | 107 | let recipeIdxPlastic = 4 | |
108 | 108 | ||
109 | 109 | let recipeIdxProtein = 5 | |
110 | 110 | ||
111 | 111 | let recipeIdxWeight = 6 | |
112 | 112 | ||
113 | 113 | let recipeIdxPacksize = 7 | |
114 | 114 | ||
115 | 115 | let recipeIdxContinent = 8 | |
116 | 116 | ||
117 | 117 | let recLandNum = 0 | |
118 | 118 | ||
119 | 119 | let recLandSize = 1 | |
120 | 120 | ||
121 | 121 | let recTerrains = 2 | |
122 | 122 | ||
123 | 123 | let recContinent = 3 | |
124 | 124 | ||
125 | 125 | let whIdxLevels = 0 | |
126 | 126 | ||
127 | 127 | let whIdxRes = 1 | |
128 | 128 | ||
129 | 129 | let whIdxMat = 2 | |
130 | 130 | ||
131 | 131 | let whIdxProd = 3 | |
132 | 132 | ||
133 | 133 | let whIdxLOFT = 4 | |
134 | 134 | ||
135 | 135 | let volLocked = 0 | |
136 | 136 | ||
137 | 137 | let volOccupied = 1 | |
138 | 138 | ||
139 | 139 | let volFree = 2 | |
140 | 140 | ||
141 | 141 | let volTotal = 3 | |
142 | 142 | ||
143 | 143 | let bpIdxLevel = 0 | |
144 | 144 | ||
145 | 145 | let bpIdxRes = 1 | |
146 | 146 | ||
147 | 147 | let bpIdxMat = 2 | |
148 | 148 | ||
149 | 149 | let bpIdxProd = 3 | |
150 | 150 | ||
151 | 151 | func getPkgSize (prodIdx) = parseIntValue(split(productionMatrix[prodIdx], "_")[recipeIdxPacksize]) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | let IdxCfgStakingDapp = 1 | |
161 | 161 | ||
162 | 162 | let IdxCfgEconomyDapp = 2 | |
163 | 163 | ||
164 | 164 | let IdxCfgGovernanceDapp = 3 | |
165 | 165 | ||
166 | 166 | let IdxCfgWlgDapp = 4 | |
167 | 167 | ||
168 | 168 | func keyRestCfg () = "%s__restConfig" | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyRestAddress () = "%s__restAddr" | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
181 | 181 | ||
182 | 182 | let restCfg = readRestCfgOrFail(restContract) | |
183 | 183 | ||
184 | 184 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
185 | 185 | ||
186 | 186 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
187 | 187 | ||
188 | 188 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
189 | 189 | ||
190 | 190 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
191 | 191 | ||
192 | 192 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func keyResProportions () = "resTypesProportions" | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func keyBlocked () = "contractsBlocked" | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | let locIdxContinent = 0 | |
265 | 265 | ||
266 | 266 | let locIdxType = 1 | |
267 | 267 | ||
268 | 268 | let locIdxId = 2 | |
269 | 269 | ||
270 | 270 | func asString (v) = match v { | |
271 | 271 | case s: String => | |
272 | 272 | s | |
273 | 273 | case _ => | |
274 | 274 | throw("fail to cast into String") | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func asInt (v) = match v { | |
279 | 279 | case n: Int => | |
280 | 280 | n | |
281 | 281 | case _ => | |
282 | 282 | throw("fail to cast into Int") | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func asAnyList (v) = match v { | |
287 | 287 | case l: List[Any] => | |
288 | 288 | l | |
289 | 289 | case _ => | |
290 | 290 | throw("fail to cast into List[Any]") | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func asBoolean (v) = match v { | |
295 | 295 | case s: Boolean => | |
296 | 296 | s | |
297 | 297 | case _ => | |
298 | 298 | throw("fail to cast into Boolean") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func numPiecesBySize (landSize) = match landSize { | |
303 | 303 | case _ => | |
304 | 304 | if (("S" == $match0)) | |
305 | 305 | then SSIZE | |
306 | 306 | else if (("M" == $match0)) | |
307 | 307 | then MSIZE | |
308 | 308 | else if (("L" == $match0)) | |
309 | 309 | then LSIZE | |
310 | 310 | else if (("XL" == $match0)) | |
311 | 311 | then XLSIZE | |
312 | 312 | else if (("XXL" == $match0)) | |
313 | 313 | then XXLSIZE | |
314 | 314 | else throw("Unknown land size") | |
315 | 315 | } | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | let IdxEffTotal = 0 | |
319 | 319 | ||
320 | 320 | let IdxEffUser = 1 | |
321 | 321 | ||
322 | 322 | func getVotingPower (userAddrStrOrEmpty) = { | |
323 | 323 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
324 | 324 | func adder (acc,item) = (acc + parseIntValue(item)) | |
325 | 325 | ||
326 | 326 | let totalPower = { | |
327 | 327 | let $l = props | |
328 | 328 | let $s = size($l) | |
329 | 329 | let $acc0 = 0 | |
330 | 330 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
331 | 331 | then $a | |
332 | 332 | else adder($a, $l[$i]) | |
333 | 333 | ||
334 | 334 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
335 | 335 | then $a | |
336 | 336 | else throw("List size exceeds 6") | |
337 | 337 | ||
338 | 338 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
339 | 339 | } | |
340 | 340 | let usersPower = if ((userAddrStrOrEmpty == "")) | |
341 | 341 | then 0 | |
342 | 342 | else { | |
343 | 343 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(userAddrStrOrEmpty)) | |
344 | 344 | let lands = if (isDefined(landsStr)) | |
345 | 345 | then split_51C(value(landsStr), "_") | |
346 | 346 | else nil | |
347 | 347 | func oneLand (acc,landAssetId) = { | |
348 | 348 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
349 | 349 | let landSize = split(asset.description, "_")[recLandSize] | |
350 | 350 | (acc + numPiecesBySize(landSize)) | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | let $l = lands | |
354 | 354 | let $s = size($l) | |
355 | 355 | let $acc0 = 0 | |
356 | 356 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
357 | 357 | then $a | |
358 | 358 | else oneLand($a, $l[$i]) | |
359 | 359 | ||
360 | 360 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
361 | 361 | then $a | |
362 | 362 | else throw("List size exceeds 100") | |
363 | 363 | ||
364 | 364 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
365 | 365 | } | |
366 | 366 | [totalPower, usersPower] | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | func getRecipeMaterials (recipe) = { | |
371 | 371 | func addMat (ac,j) = (ac + parseIntValue(recipe[j])) | |
372 | 372 | ||
373 | 373 | let $l = [0, 1, 2, 3, 4, 5] | |
374 | 374 | let $s = size($l) | |
375 | 375 | let $acc0 = 0 | |
376 | 376 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
377 | 377 | then $a | |
378 | 378 | else addMat($a, $l[$i]) | |
379 | 379 | ||
380 | 380 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
381 | 381 | then $a | |
382 | 382 | else throw("List size exceeds 6") | |
383 | 383 | ||
384 | 384 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | let incubatorAddr = match chain { | |
389 | 389 | case _ => | |
390 | 390 | if ((base58'2W' == $match0)) | |
391 | 391 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
392 | 392 | else if ((base58'2T' == $match0)) | |
393 | 393 | then this | |
394 | 394 | else throw("Unknown chain") | |
395 | 395 | } | |
396 | 396 | ||
397 | 397 | let breederAddr = match chain { | |
398 | 398 | case _ => | |
399 | 399 | if ((base58'2W' == $match0)) | |
400 | 400 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
401 | 401 | else if ((base58'2T' == $match0)) | |
402 | 402 | then this | |
403 | 403 | else throw("Unknown chain") | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
407 | 407 | ||
408 | 408 | let medKitHp = [30, 60, 120] | |
409 | 409 | ||
410 | 410 | let FIVEMINUTESMILLIS = 300000 | |
411 | 411 | ||
412 | 412 | let RENAMINGCOST = 5000000 | |
413 | 413 | ||
414 | 414 | let MAXNAMELEN = 50 | |
415 | 415 | ||
416 | 416 | let InfraUpgradeCostSUsdt = 10000000 | |
417 | 417 | ||
418 | 418 | let EXPMATERIALS = match chain { | |
419 | 419 | case _ => | |
420 | 420 | if ((base58'2W' == $match0)) | |
421 | 421 | then 252289527462 | |
422 | 422 | else if ((base58'2T' == $match0)) | |
423 | 423 | then 2522895274 | |
424 | 424 | else throw("Unknown chain") | |
425 | 425 | } | |
426 | 426 | ||
427 | 427 | let EXPUSDT = match chain { | |
428 | 428 | case _ => | |
429 | 429 | if ((base58'2W' == $match0)) | |
430 | 430 | then 250000000 | |
431 | 431 | else if ((base58'2T' == $match0)) | |
432 | 432 | then 250000000 | |
433 | 433 | else throw("Unknown chain") | |
434 | 434 | } | |
435 | 435 | ||
436 | 436 | let FIVEX = toBigInt(5) | |
437 | 437 | ||
438 | 438 | let TWENTYX = toBigInt(20) | |
439 | 439 | ||
440 | 440 | let TWENTY2X = toBigInt((20 * 20)) | |
441 | 441 | ||
442 | 442 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
443 | 443 | ||
444 | 444 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
445 | 445 | ||
446 | 446 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
447 | 447 | ||
448 | 448 | let PRESALENUMLANDS = 500 | |
449 | 449 | ||
450 | 450 | func keyNextFreeLandNum () = "nextLandNum" | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
454 | 454 | ||
455 | 455 | ||
456 | 456 | func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name) | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
463 | 463 | ||
464 | 464 | ||
465 | 465 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
466 | 466 | ||
467 | 467 | ||
468 | 468 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
472 | 472 | ||
473 | 473 | ||
474 | 474 | func keyOldies () = "oldiesList" | |
475 | 475 | ||
476 | 476 | ||
477 | 477 | let claimModeWh = 0 | |
478 | 478 | ||
479 | 479 | let claimModeDuck = 1 | |
480 | 480 | ||
481 | 481 | let claimModeWhThenDuck = 2 | |
482 | 482 | ||
483 | 483 | let flHealth = 0 | |
484 | 484 | ||
485 | 485 | let flMission = 1 | |
486 | 486 | ||
487 | 487 | let flObstacles = 2 | |
488 | 488 | ||
489 | 489 | let flWinds = 3 | |
490 | 490 | ||
491 | 491 | let flPath = 4 | |
492 | 492 | ||
493 | 493 | let flTimestamp = 5 | |
494 | 494 | ||
495 | 495 | let flBonus = 6 | |
496 | 496 | ||
497 | + | let flProdsUsed = 7 | |
498 | + | ||
497 | 499 | func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
498 | 500 | ||
499 | 501 | ||
500 | 502 | func distributeByWeights (total,weights) = { | |
501 | 503 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
502 | 504 | if ((0 >= sum)) | |
503 | 505 | then throw("Zero weights sum") | |
504 | 506 | else { | |
505 | 507 | let norm6 = fraction(total, MULT6, sum) | |
506 | 508 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
507 | 509 | ||
508 | 510 | let $l = weights | |
509 | 511 | let $s = size($l) | |
510 | 512 | let $acc0 = nil | |
511 | 513 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
512 | 514 | then $a | |
513 | 515 | else normalizer($a, $l[$i]) | |
514 | 516 | ||
515 | 517 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
516 | 518 | then $a | |
517 | 519 | else throw("List size exceeds 6") | |
518 | 520 | ||
519 | 521 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
520 | 522 | } | |
521 | 523 | } | |
522 | 524 | ||
523 | 525 | ||
524 | 526 | func getNeededMaterials (total) = { | |
525 | 527 | let props = split(value(getString(keyResProportions())), "_") | |
526 | 528 | if ((size(props) != NUMRES)) | |
527 | 529 | then throw("Wrong proportions data") | |
528 | 530 | else { | |
529 | 531 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
530 | 532 | distributeByWeights(total, r) | |
531 | 533 | } | |
532 | 534 | } | |
533 | 535 | ||
534 | 536 | ||
535 | 537 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
536 | 538 | let need = getNeededMaterials(totalNeed) | |
537 | 539 | func subtractor (acc,idx) = { | |
538 | 540 | let result = (parseIntValue(has[idx]) - need[idx]) | |
539 | 541 | if ((0 > result)) | |
540 | 542 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
541 | 543 | else (acc :+ toString(result)) | |
542 | 544 | } | |
543 | 545 | ||
544 | 546 | if (shouldUseMat) | |
545 | 547 | then { | |
546 | 548 | let $l = [0, 1, 2, 3, 4, 5] | |
547 | 549 | let $s = size($l) | |
548 | 550 | let $acc0 = nil | |
549 | 551 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
550 | 552 | then $a | |
551 | 553 | else subtractor($a, $l[$i]) | |
552 | 554 | ||
553 | 555 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
554 | 556 | then $a | |
555 | 557 | else throw("List size exceeds 6") | |
556 | 558 | ||
557 | 559 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
558 | 560 | } | |
559 | 561 | else has | |
560 | 562 | } | |
563 | + | ||
564 | + | ||
565 | + | func subtractProducts (pHas,pUsed) = if ((pUsed == "")) | |
566 | + | then pHas | |
567 | + | else { | |
568 | + | let pList = if ((pHas == "")) | |
569 | + | then nil | |
570 | + | else split(pHas, "_") | |
571 | + | func subP (acc,item) = { | |
572 | + | let j = acc._1 | |
573 | + | func checkUsed (ac,idxAmt) = { | |
574 | + | let parts = split(idxAmt, ",") | |
575 | + | if ((size(parts) != 2)) | |
576 | + | then throw("Incorrect format, should be index,amount") | |
577 | + | else { | |
578 | + | let idx = parseIntValue(parts[0]) | |
579 | + | if (if ((0 > idx)) | |
580 | + | then true | |
581 | + | else (idx >= size(productionMatrix))) | |
582 | + | then throw("Unknown product idx") | |
583 | + | else if ((idx != j)) | |
584 | + | then ac | |
585 | + | else { | |
586 | + | let amt = parseIntValue(parts[1]) | |
587 | + | if ((0 >= amt)) | |
588 | + | then throw("Pass only positive amounts") | |
589 | + | else (ac + amt) | |
590 | + | } | |
591 | + | } | |
592 | + | } | |
593 | + | ||
594 | + | let a = { | |
595 | + | let $l = split(pUsed, "_") | |
596 | + | let $s = size($l) | |
597 | + | let $acc0 = 0 | |
598 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
599 | + | then $a | |
600 | + | else checkUsed($a, $l[$i]) | |
601 | + | ||
602 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
603 | + | then $a | |
604 | + | else throw("List size exceeds 10") | |
605 | + | ||
606 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
607 | + | } | |
608 | + | let curr = if ((size(pList) > j)) | |
609 | + | then parseIntValue(pList[j]) | |
610 | + | else 0 | |
611 | + | let newAmt = if ((a > curr)) | |
612 | + | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[j]) + ", but tried to use ") + toString(a))) | |
613 | + | else (curr - a) | |
614 | + | $Tuple2((j + 1), (acc._2 :+ toString(newAmt))) | |
615 | + | } | |
616 | + | ||
617 | + | let newProd = { | |
618 | + | let $l = productionMatrix | |
619 | + | let $s = size($l) | |
620 | + | let $acc0 = $Tuple2(0, nil) | |
621 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
622 | + | then $a | |
623 | + | else subP($a, $l[$i]) | |
624 | + | ||
625 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
626 | + | then $a | |
627 | + | else throw("List size exceeds 50") | |
628 | + | ||
629 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
630 | + | } | |
631 | + | makeString(newProd._2, "_") | |
632 | + | } | |
561 | 633 | ||
562 | 634 | ||
563 | 635 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
564 | 636 | then throw("Wrong proportions data") | |
565 | 637 | else { | |
566 | 638 | func updater (acc,i) = { | |
567 | 639 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
568 | 640 | if ((0 > result)) | |
569 | 641 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
570 | 642 | else (acc :+ toString(result)) | |
571 | 643 | } | |
572 | 644 | ||
573 | 645 | let r = { | |
574 | 646 | let $l = [0, 1, 2, 3, 4, 5] | |
575 | 647 | let $s = size($l) | |
576 | 648 | let $acc0 = nil | |
577 | 649 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
578 | 650 | then $a | |
579 | 651 | else updater($a, $l[$i]) | |
580 | 652 | ||
581 | 653 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
582 | 654 | then $a | |
583 | 655 | else throw("List size exceeds 6") | |
584 | 656 | ||
585 | 657 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
586 | 658 | } | |
587 | 659 | makeString(r, "_") | |
588 | 660 | } | |
589 | 661 | ||
590 | 662 | ||
591 | 663 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
592 | 664 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
593 | 665 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
594 | 666 | } | |
595 | 667 | ||
596 | 668 | ||
597 | 669 | func countTerrains (terrains) = [(size(split(terrains, "A")) - 1), (size(split(terrains, "B")) - 1), (size(split(terrains, "C")) - 1), (size(split(terrains, "D")) - 1), (size(split(terrains, "E")) - 1), (size(split(terrains, "F")) - 1)] | |
598 | 670 | ||
599 | 671 | ||
600 | 672 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
601 | 673 | func adder (acc,i) = { | |
602 | 674 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
603 | 675 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
604 | 676 | } | |
605 | 677 | ||
606 | 678 | let r = { | |
607 | 679 | let $l = [0, 1, 2, 3, 4, 5] | |
608 | 680 | let $s = size($l) | |
609 | 681 | let $acc0 = nil | |
610 | 682 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
611 | 683 | then $a | |
612 | 684 | else adder($a, $l[$i]) | |
613 | 685 | ||
614 | 686 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
615 | 687 | then $a | |
616 | 688 | else throw("List size exceeds 6") | |
617 | 689 | ||
618 | 690 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
619 | 691 | } | |
620 | 692 | makeString(r, "_") | |
621 | 693 | } | |
622 | 694 | ||
623 | 695 | ||
624 | 696 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
625 | 697 | func adder (acc,i) = { | |
626 | 698 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
627 | 699 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
628 | 700 | } | |
629 | 701 | ||
630 | 702 | let $l = [0, 1, 2, 3, 4, 5] | |
631 | 703 | let $s = size($l) | |
632 | 704 | let $acc0 = $Tuple2(nil, 0) | |
633 | 705 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
634 | 706 | then $a | |
635 | 707 | else adder($a, $l[$i]) | |
636 | 708 | ||
637 | 709 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
638 | 710 | then $a | |
639 | 711 | else throw("List size exceeds 6") | |
640 | 712 | ||
641 | 713 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
642 | 714 | } | |
643 | 715 | ||
644 | 716 | ||
645 | 717 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
646 | 718 | let resListToClaim = resToClaim._1 | |
647 | 719 | let resAmToClaim = resToClaim._2 | |
648 | 720 | if ((resAmToClaim == 0)) | |
649 | 721 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
650 | 722 | else if ((whSpaceLeft >= resAmToClaim)) | |
651 | 723 | then { | |
652 | 724 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
653 | 725 | ||
654 | 726 | let r = { | |
655 | 727 | let $l = [0, 1, 2, 3, 4, 5] | |
656 | 728 | let $s = size($l) | |
657 | 729 | let $acc0 = nil | |
658 | 730 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
659 | 731 | then $a | |
660 | 732 | else addLists($a, $l[$i]) | |
661 | 733 | ||
662 | 734 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
663 | 735 | then $a | |
664 | 736 | else throw("List size exceeds 6") | |
665 | 737 | ||
666 | 738 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
667 | 739 | } | |
668 | 740 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
669 | 741 | } | |
670 | 742 | else { | |
671 | 743 | func addPartLists (acc,i) = { | |
672 | 744 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
673 | 745 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
674 | 746 | } | |
675 | 747 | ||
676 | 748 | let r = { | |
677 | 749 | let $l = [0, 1, 2, 3, 4, 5] | |
678 | 750 | let $s = size($l) | |
679 | 751 | let $acc0 = $Tuple2(nil, nil) | |
680 | 752 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
681 | 753 | then $a | |
682 | 754 | else addPartLists($a, $l[$i]) | |
683 | 755 | ||
684 | 756 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
685 | 757 | then $a | |
686 | 758 | else throw("List size exceeds 6") | |
687 | 759 | ||
688 | 760 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
689 | 761 | } | |
690 | 762 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
691 | 763 | } | |
692 | 764 | } | |
693 | 765 | ||
694 | 766 | ||
695 | 767 | func abs (x) = if ((x >= toBigInt(0))) | |
696 | 768 | then x | |
697 | 769 | else -(x) | |
698 | 770 | ||
699 | 771 | ||
700 | 772 | let freq = [[6, 9, 14, 15, 16], [5, 8, 13, 14, 15], [1, 4, 9, 10, 15], [1, 6, 7, 15, 19], [4, 7, 8, 13, 18]] | |
701 | 773 | ||
702 | 774 | func genChar (n,freqs) = { | |
703 | 775 | let rem = toInt((n % TWENTYX)) | |
704 | 776 | let letter = if ((freqs[0] > rem)) | |
705 | 777 | then "A" | |
706 | 778 | else if ((freqs[1] > rem)) | |
707 | 779 | then "B" | |
708 | 780 | else if ((freqs[2] > rem)) | |
709 | 781 | then "C" | |
710 | 782 | else if ((freqs[3] > rem)) | |
711 | 783 | then "D" | |
712 | 784 | else if ((freqs[4] > rem)) | |
713 | 785 | then "E" | |
714 | 786 | else "F" | |
715 | 787 | letter | |
716 | 788 | } | |
717 | 789 | ||
718 | 790 | ||
719 | 791 | func genTerrains (seed,continentIdx) = { | |
720 | 792 | let f = freq[continentIdx] | |
721 | 793 | func terrainGenerator (acc,elem) = $Tuple2((((((acc._1 + genChar(acc._2, f)) + genChar((acc._2 / TWENTYX), f)) + genChar((acc._2 / TWENTY2X), f)) + genChar((acc._2 / TWENTY3X), f)) + genChar((acc._2 / TWENTY4X), f)), (acc._2 / TWENTY5X)) | |
722 | 794 | ||
723 | 795 | let t = { | |
724 | 796 | let $l = [1, 2, 3, 4, 5] | |
725 | 797 | let $s = size($l) | |
726 | 798 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
727 | 799 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
728 | 800 | then $a | |
729 | 801 | else terrainGenerator($a, $l[$i]) | |
730 | 802 | ||
731 | 803 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
732 | 804 | then $a | |
733 | 805 | else throw("List size exceeds 5") | |
734 | 806 | ||
735 | 807 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
736 | 808 | } | |
737 | 809 | t._1 | |
738 | 810 | } | |
739 | 811 | ||
740 | 812 | ||
741 | 813 | func getBackpack (bpKey) = { | |
742 | 814 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
743 | 815 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
744 | 816 | then p[bpIdxRes] | |
745 | 817 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
746 | 818 | then p[bpIdxMat] | |
747 | 819 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
748 | 820 | } | |
749 | 821 | ||
750 | 822 | ||
751 | 823 | func getWarehouseTotalVolume (volPrefix) = { | |
752 | 824 | let parts = split(volPrefix, "_") | |
753 | 825 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
754 | 826 | } | |
755 | 827 | ||
756 | 828 | ||
757 | 829 | func getWarehouseOccupiedVol (currentWh) = { | |
758 | 830 | let goods = currentWh[whIdxProd] | |
759 | 831 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
760 | 832 | ||
761 | 833 | func sumProd (acc,item) = { | |
762 | 834 | let idx = acc._1 | |
763 | 835 | let pkgSize = getPkgSize(idx) | |
764 | 836 | let pkgs = (((parseIntValue(item) + pkgSize) - 1) / pkgSize) | |
765 | 837 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
766 | 838 | } | |
767 | 839 | ||
768 | 840 | let whResVol = { | |
769 | 841 | let $l = split(currentWh[whIdxRes], "_") | |
770 | 842 | let $s = size($l) | |
771 | 843 | let $acc0 = 0 | |
772 | 844 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
773 | 845 | then $a | |
774 | 846 | else sumResMat($a, $l[$i]) | |
775 | 847 | ||
776 | 848 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
777 | 849 | then $a | |
778 | 850 | else throw("List size exceeds 6") | |
779 | 851 | ||
780 | 852 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
781 | 853 | } | |
782 | 854 | let whMatVol = { | |
783 | 855 | let $l = split(currentWh[whIdxMat], "_") | |
784 | 856 | let $s = size($l) | |
785 | 857 | let $acc0 = 0 | |
786 | 858 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
787 | 859 | then $a | |
788 | 860 | else sumResMat($a, $l[$i]) | |
789 | 861 | ||
790 | 862 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
791 | 863 | then $a | |
792 | 864 | else throw("List size exceeds 6") | |
793 | 865 | ||
794 | 866 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
795 | 867 | } | |
796 | 868 | let whGoodsVol = if ((goods == "")) | |
797 | 869 | then 0 | |
798 | 870 | else ( let $l = split_4C(goods, "_") | |
799 | 871 | let $s = size($l) | |
800 | 872 | let $acc0 = $Tuple2(0, 0) | |
801 | 873 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
802 | 874 | then $a | |
803 | 875 | else sumProd($a, $l[$i]) | |
804 | 876 | ||
805 | 877 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
806 | 878 | then $a | |
807 | 879 | else throw("List size exceeds 50") | |
808 | 880 | ||
809 | 881 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._2 | |
810 | 882 | ((whResVol + whMatVol) + whGoodsVol) | |
811 | 883 | } | |
812 | 884 | ||
813 | 885 | ||
814 | 886 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
815 | 887 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
816 | 888 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
817 | 889 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
818 | 890 | let wh = split_4C(whStr, ":") | |
819 | 891 | let whOccupied = getWarehouseOccupiedVol(wh) | |
820 | 892 | let whLoft = if ((5 > size(wh))) | |
821 | 893 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
822 | 894 | else { | |
823 | 895 | let loft = split(wh[whIdxLOFT], "_") | |
824 | 896 | let whLocked = parseIntValue(loft[volLocked]) | |
825 | 897 | let occ = if ((size(loft) > 1)) | |
826 | 898 | then parseIntValue(loft[volOccupied]) | |
827 | 899 | else whOccupied | |
828 | 900 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
829 | 901 | } | |
830 | 902 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
831 | 903 | then wh[whIdxRes] | |
832 | 904 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
833 | 905 | then wh[whIdxMat] | |
834 | 906 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
835 | 907 | } | |
836 | 908 | ||
837 | 909 | ||
838 | 910 | func getWarehouseSpaceLeft (currentWh) = { | |
839 | 911 | let occupiedVol = getWarehouseOccupiedVol(currentWh) | |
840 | 912 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
841 | 913 | ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol) | |
842 | 914 | } | |
843 | 915 | ||
844 | 916 | ||
845 | 917 | func toVolume (amount,pkgSize) = { | |
846 | 918 | let pkgs = if ((amount >= 0)) | |
847 | 919 | then (((amount + pkgSize) - 1) / pkgSize) | |
848 | 920 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
849 | 921 | (pkgs * MULT8) | |
850 | 922 | } | |
851 | 923 | ||
852 | 924 | ||
853 | 925 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
854 | 926 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
855 | 927 | else { | |
856 | 928 | let resParts = split(cargoParts[0], "_") | |
857 | 929 | let matParts = split(cargoParts[1], "_") | |
858 | 930 | let prodParts = if ((cargoParts[2] == "")) | |
859 | 931 | then nil | |
860 | 932 | else split(cargoParts[2], "_") | |
861 | 933 | if ((size(resParts) != NUMRES)) | |
862 | 934 | then throw("All 6 resources should be passed") | |
863 | 935 | else if ((size(matParts) != NUMRES)) | |
864 | 936 | then throw("All 6 materials should be passed") | |
865 | 937 | else { | |
866 | 938 | let whSpaceLeft = getWarehouseSpaceLeft(currentWh) | |
867 | 939 | let currWhRes = split(currentWh[whIdxRes], "_") | |
868 | 940 | let currWhMat = split(currentWh[whIdxMat], "_") | |
869 | 941 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
870 | 942 | then nil | |
871 | 943 | else split(currentWh[whIdxProd], "_") | |
872 | 944 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
873 | 945 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
874 | 946 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
875 | 947 | then nil | |
876 | 948 | else split(currentPack[bpIdxProd], "_") | |
877 | 949 | func mvR (acc,item) = { | |
878 | 950 | let i = acc._1 | |
879 | 951 | let am = parseIntValue(item) | |
880 | 952 | let whr = parseIntValue(currWhRes[i]) | |
881 | 953 | let bpr = parseIntValue(currentPackRes[i]) | |
882 | 954 | if ((am == 0)) | |
883 | 955 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
884 | 956 | else if ((am > 0)) | |
885 | 957 | then if ((am > bpr)) | |
886 | 958 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
887 | 959 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
888 | 960 | else if ((-(am) > whr)) | |
889 | 961 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
890 | 962 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
891 | 963 | } | |
892 | 964 | ||
893 | 965 | let r = { | |
894 | 966 | let $l = resParts | |
895 | 967 | let $s = size($l) | |
896 | 968 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
897 | 969 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
898 | 970 | then $a | |
899 | 971 | else mvR($a, $l[$i]) | |
900 | 972 | ||
901 | 973 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
902 | 974 | then $a | |
903 | 975 | else throw("List size exceeds 6") | |
904 | 976 | ||
905 | 977 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
906 | 978 | } | |
907 | 979 | func mvM (acc,item) = { | |
908 | 980 | let i = acc._1 | |
909 | 981 | let am = parseIntValue(item) | |
910 | 982 | let whm = parseIntValue(currWhMat[i]) | |
911 | 983 | let bpm = parseIntValue(currentPackMat[i]) | |
912 | 984 | if ((am == 0)) | |
913 | 985 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
914 | 986 | else if ((am > 0)) | |
915 | 987 | then if ((am > bpm)) | |
916 | 988 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
917 | 989 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
918 | 990 | else if ((-(am) > whm)) | |
919 | 991 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
920 | 992 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
921 | 993 | } | |
922 | 994 | ||
923 | 995 | let m = { | |
924 | 996 | let $l = matParts | |
925 | 997 | let $s = size($l) | |
926 | 998 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
927 | 999 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
928 | 1000 | then $a | |
929 | 1001 | else mvM($a, $l[$i]) | |
930 | 1002 | ||
931 | 1003 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
932 | 1004 | then $a | |
933 | 1005 | else throw("List size exceeds 6") | |
934 | 1006 | ||
935 | 1007 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
936 | 1008 | } | |
937 | 1009 | func mvP (acc,item) = { | |
938 | 1010 | let i = acc._1 | |
939 | 1011 | let pkgSize = getPkgSize(i) | |
940 | 1012 | let am = parseIntValue(item) | |
941 | 1013 | let whp = if ((size(currWhProd) > i)) | |
942 | 1014 | then parseIntValue(currWhProd[i]) | |
943 | 1015 | else 0 | |
944 | 1016 | let bpp = if ((size(currentPackProd) > i)) | |
945 | 1017 | then parseIntValue(currentPackProd[i]) | |
946 | 1018 | else 0 | |
947 | 1019 | if ((am == 0)) | |
948 | 1020 | then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4) | |
949 | 1021 | else if ((am > 0)) | |
950 | 1022 | then if ((am > bpp)) | |
951 | 1023 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
952 | 1024 | else { | |
953 | 1025 | let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize)) | |
954 | 1026 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
955 | 1027 | } | |
956 | 1028 | else if ((-(am) > whp)) | |
957 | 1029 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
958 | 1030 | else { | |
959 | 1031 | let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize)) | |
960 | 1032 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
961 | 1033 | } | |
962 | 1034 | } | |
963 | 1035 | ||
964 | 1036 | let p = if ((size(prodParts) != 0)) | |
965 | 1037 | then { | |
966 | 1038 | let $l = prodParts | |
967 | 1039 | let $s = size($l) | |
968 | 1040 | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
969 | 1041 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
970 | 1042 | then $a | |
971 | 1043 | else mvP($a, $l[$i]) | |
972 | 1044 | ||
973 | 1045 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
974 | 1046 | then $a | |
975 | 1047 | else throw("List size exceeds 50") | |
976 | 1048 | ||
977 | 1049 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
978 | 1050 | } | |
979 | 1051 | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
980 | 1052 | let volSaldo = p._4 | |
981 | 1053 | if ((volSaldo > whSpaceLeft)) | |
982 | 1054 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
983 | 1055 | else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo) | |
984 | 1056 | } | |
985 | 1057 | } | |
986 | 1058 | ||
987 | 1059 | ||
988 | 1060 | func expeditionInternal (caller,txId) = { | |
989 | 1061 | let userAddr = toString(caller) | |
990 | 1062 | let bigNum = abs(toBigInt(txId)) | |
991 | 1063 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
992 | 1064 | let landNum = toString(freeNum) | |
993 | 1065 | let continentIdx = toInt((bigNum % FIVEX)) | |
994 | 1066 | let terrains = genTerrains(bigNum, continentIdx) | |
995 | 1067 | let continent = continents[continentIdx] | |
996 | 1068 | let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
997 | 1069 | let assetId = calculateAssetId(issue) | |
998 | 1070 | let id = toBase58String(assetId) | |
999 | 1071 | $Tuple2([IntegerEntry(keyNextFreeLandNum(), (freeNum + 1)), issue, StringEntry(keyLandToAssetId(landNum), id), StringEntry(keyLandAssetIdToOwner(id), userAddr), StringEntry(keyLandNumToOwner(landNum), userAddr), IntegerEntry(keyInfraLevelByAssetId(id), 0), IntegerEntry(keyInfraLevelByAssetIdAndOwner(id, userAddr), 0), ScriptTransfer(caller, 1, assetId)], $Tuple2(id, continent)) | |
1000 | 1072 | } | |
1001 | 1073 | ||
1002 | 1074 | ||
1003 | - | func | |
1075 | + | func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
1004 | 1076 | then throw("signature does not match") | |
1005 | 1077 | else { | |
1006 | 1078 | let parts = split(toUtf8String(message), ";") | |
1007 | 1079 | let flightLog = split(parts[0], "|") | |
1008 | 1080 | let hp = split(flightLog[flHealth], "_") | |
1009 | 1081 | let curHP = parseIntValue(hp[0]) | |
1010 | 1082 | let newHP = parseIntValue(hp[1]) | |
1011 | 1083 | let newLocTxVer = split(parts[1], ":") | |
1012 | 1084 | let newLocation = newLocTxVer[0] | |
1013 | 1085 | let time = parseIntValue(flightLog[flTimestamp]) | |
1014 | 1086 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1015 | 1087 | then true | |
1016 | 1088 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1017 | - | then throw("signature outdated") | |
1089 | + | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1018 | 1090 | else { | |
1019 | 1091 | let txFromMsg = newLocTxVer[1] | |
1020 | - | let userAddr = toString(caller) | |
1021 | 1092 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
1022 | 1093 | if ((lastTx != txFromMsg)) | |
1023 | 1094 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1024 | 1095 | else { | |
1025 | 1096 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1026 | 1097 | let keyHealth = keyDuckHealth(duckAssetId) | |
1027 | 1098 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
1028 | 1099 | if ((oldFromState != curHP)) | |
1029 | 1100 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
1030 | 1101 | else if ((0 >= curHP)) | |
1031 | 1102 | then throw("You can't fly with zero health") | |
1032 | - | else if ((0 >= newHP)) | |
1033 | - | then $Tuple3(((if (!(shouldUseMat)) | |
1034 | - | then [ScriptTransfer(caller, EXPUSDT, usdtAssetId)] | |
1035 | - | else nil) :+ IntegerEntry(keyHealth, 0)), "", 0) | |
1036 | - | else { | |
1037 | - | let bonus = if ((size(flightLog) > flBonus)) | |
1038 | - | then flightLog[flBonus] | |
1039 | - | else "" | |
1040 | - | let sentAmount = if ((bonus == "$")) | |
1041 | - | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1042 | - | else 0 | |
1043 | - | let bpKey = keyBackpackByDuck(duckAssetId) | |
1044 | - | let currentPack = getBackpack(bpKey) | |
1045 | - | let mList = split(currentPack[bpIdxMat], "_") | |
1046 | - | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
1047 | - | let e = expeditionInternal(caller, txId) | |
1048 | - | let id = e._2._1 | |
1049 | - | $Tuple3((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, newHP)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id, sentAmount) | |
1050 | - | } | |
1103 | + | else { | |
1104 | + | let bonus = if ((size(flightLog) > flBonus)) | |
1105 | + | then flightLog[flBonus] | |
1106 | + | else "" | |
1107 | + | let prodUsed = if ((size(flightLog) > flProdsUsed)) | |
1108 | + | then flightLog[flProdsUsed] | |
1109 | + | else "" | |
1110 | + | let sentAmount = if (if ((newHP > 0)) | |
1111 | + | then (bonus == "$") | |
1112 | + | else false) | |
1113 | + | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1114 | + | else 0 | |
1115 | + | $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed) | |
1116 | + | } | |
1051 | 1117 | } | |
1052 | 1118 | } | |
1053 | 1119 | } | |
1120 | + | ||
1121 | + | ||
1122 | + | func expeditionCommon (caller,txId,message,sig) = { | |
1123 | + | let userAddr = toString(caller) | |
1124 | + | let f = flightCommon(userAddr, message, sig) | |
1125 | + | let keyHealth = keyDuckHealth(f._2) | |
1126 | + | let bpKey = keyBackpackByDuck(f._2) | |
1127 | + | let currentPack = getBackpack(bpKey) | |
1128 | + | let mList = split(currentPack[bpIdxMat], "_") | |
1129 | + | let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_") | |
1130 | + | let newProd = subtractProducts(currentPack[bpIdxProd], f._5) | |
1131 | + | if ((0 >= f._1)) | |
1132 | + | then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":"))], "", 0) | |
1133 | + | else { | |
1134 | + | let e = expeditionInternal(caller, txId) | |
1135 | + | let id = e._2._1 | |
1136 | + | $Tuple3((((e._1 :+ StringEntry(keyDuckLocation(f._2), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, newProd], ":"))), id, f._3) | |
1137 | + | } | |
1138 | + | } | |
1054 | 1139 | ||
1055 | 1140 | ||
1056 | 1141 | func applyBonuses (landAssetId,pieces) = { | |
1057 | 1142 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1058 | 1143 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1059 | 1144 | let add6 = (infraLevel / 6) | |
1060 | 1145 | let add7 = (infraLevel / 7) | |
1061 | 1146 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
1062 | 1147 | } | |
1063 | 1148 | ||
1064 | 1149 | ||
1065 | 1150 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1066 | - | let $ | |
1151 | + | let $t02442224961 = if ((claimMode == claimModeWh)) | |
1067 | 1152 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1068 | 1153 | else { | |
1069 | 1154 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1070 | 1155 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1071 | 1156 | let loc = split(value(curLocation), "_") | |
1072 | 1157 | if ((loc[locIdxType] != "L")) | |
1073 | 1158 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1074 | 1159 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1075 | 1160 | } | |
1076 | - | let landAssetId = $ | |
1077 | - | let duckId = $ | |
1161 | + | let landAssetId = $t02442224961._1 | |
1162 | + | let duckId = $t02442224961._2 | |
1078 | 1163 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1079 | 1164 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1080 | 1165 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1081 | 1166 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1082 | 1167 | if ((owner != addr)) | |
1083 | 1168 | then throw((LANDPREFIX + " is not yours")) | |
1084 | 1169 | else { | |
1085 | 1170 | let d = split(asset.description, "_") | |
1086 | 1171 | $Tuple4(duckId, landAssetId, d, savedTime) | |
1087 | 1172 | } | |
1088 | 1173 | } | |
1089 | 1174 | ||
1090 | 1175 | ||
1091 | 1176 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
1092 | 1177 | then throw("Negative amount") | |
1093 | 1178 | else { | |
1094 | 1179 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
1095 | 1180 | let landSize = c._3[recLandSize] | |
1096 | 1181 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1097 | 1182 | let deltaTime = (lastBlock.timestamp - c._4) | |
1098 | 1183 | if ((0 > deltaTime)) | |
1099 | 1184 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
1100 | 1185 | else { | |
1101 | 1186 | let pieces = numPiecesBySize(landSize) | |
1102 | 1187 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
1103 | 1188 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
1104 | 1189 | if ((amount > availRes)) | |
1105 | 1190 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
1106 | 1191 | else { | |
1107 | 1192 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
1108 | 1193 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
1109 | 1194 | let landIndex = (pieces / SSIZE) | |
1110 | 1195 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1111 | 1196 | let whKey = keyWarehouseByLand(c._2) | |
1112 | 1197 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1113 | 1198 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1114 | 1199 | let loft = split(currentWh[whIdxLOFT], "_") | |
1115 | 1200 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1116 | 1201 | if (if ((claimMode == claimModeWh)) | |
1117 | 1202 | then (amount > whSpaceLeft) | |
1118 | 1203 | else false) | |
1119 | 1204 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1120 | 1205 | else { | |
1121 | 1206 | let bpKey = keyBackpackByDuck(c._1) | |
1122 | 1207 | let currentPack = getBackpack(bpKey) | |
1123 | 1208 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1124 | 1209 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1125 | - | let $ | |
1210 | + | let $t02733528206 = if ((claimMode == claimModeWh)) | |
1126 | 1211 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1127 | 1212 | else if ((claimMode == claimModeDuck)) | |
1128 | 1213 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1129 | 1214 | else { | |
1130 | 1215 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1131 | 1216 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1132 | 1217 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1133 | 1218 | } | |
1134 | - | let whRes = $ | |
1135 | - | let bpRes = $ | |
1136 | - | let loftO = $ | |
1137 | - | let loftF = $ | |
1219 | + | let whRes = $t02733528206._1 | |
1220 | + | let bpRes = $t02733528206._2 | |
1221 | + | let loftO = $t02733528206._3 | |
1222 | + | let loftF = $t02733528206._4 | |
1138 | 1223 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxLevels], whRes, currentWh[whIdxMat], currentWh[whIdxProd], makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")]) | |
1139 | 1224 | } | |
1140 | 1225 | } | |
1141 | 1226 | } | |
1142 | 1227 | } | |
1143 | 1228 | ||
1144 | 1229 | ||
1145 | 1230 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1146 | 1231 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1147 | 1232 | let savedTime = value(getInteger(timeKey)) | |
1148 | 1233 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1149 | 1234 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1150 | 1235 | } | |
1151 | 1236 | ||
1152 | 1237 | ||
1153 | 1238 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
1154 | 1239 | let addr = toString(caller) | |
1155 | 1240 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
1156 | 1241 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1157 | 1242 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1158 | 1243 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1159 | 1244 | if ((curLevel >= 3)) | |
1160 | 1245 | then throw("Currently max infrastructure level = 3") | |
1161 | 1246 | else { | |
1162 | 1247 | let newLevel = (curLevel + 1) | |
1163 | 1248 | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1164 | 1249 | if (if (!(shouldUseMat)) | |
1165 | 1250 | then (paymentAmount != cost) | |
1166 | 1251 | else false) | |
1167 | 1252 | then throw(("Payment attached should be " + toString(cost))) | |
1168 | 1253 | else { | |
1169 | 1254 | let bpKey = keyBackpackByDuck(c._1) | |
1170 | 1255 | let currentPack = getBackpack(bpKey) | |
1171 | 1256 | let mList = split(currentPack[bpIdxMat], "_") | |
1172 | 1257 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_") | |
1173 | 1258 | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1174 | 1259 | let whData = claimResult._5 | |
1175 | 1260 | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1176 | 1261 | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1177 | 1262 | let newVol = getWarehouseTotalVolume(newVolData) | |
1178 | 1263 | let loft = split(whData[whIdxLOFT], "_") | |
1179 | 1264 | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1180 | 1265 | $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], newLoftStr], ":"))] ++ claimResult._1), newLevel) | |
1181 | 1266 | } | |
1182 | 1267 | } | |
1183 | 1268 | } | |
1184 | 1269 | ||
1185 | 1270 | ||
1186 | 1271 | func activateOnboardArt (addr) = 0 | |
1187 | 1272 | ||
1188 | 1273 | ||
1189 | 1274 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1190 | 1275 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1191 | 1276 | let landAssetId = c._2 | |
1192 | 1277 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1193 | 1278 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1194 | 1279 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1195 | 1280 | then throw("Presale artifact is already activated") | |
1196 | 1281 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1197 | 1282 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1198 | 1283 | else { | |
1199 | 1284 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1200 | 1285 | ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1201 | 1286 | } | |
1202 | 1287 | } | |
1203 | 1288 | ||
1204 | 1289 | ||
1205 | 1290 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
1206 | 1291 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1207 | 1292 | func checkMerge (acc,landAssetId) = { | |
1208 | 1293 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1209 | 1294 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1210 | 1295 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
1211 | 1296 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1212 | 1297 | if ((owner != addr)) | |
1213 | 1298 | then throw((LANDPREFIX + " is not yours")) | |
1214 | 1299 | else { | |
1215 | 1300 | let d = split(asset.description, "_") | |
1216 | 1301 | let continent = d[recContinent] | |
1217 | 1302 | if (if ((acc._3 != "")) | |
1218 | 1303 | then (acc._3 != continent) | |
1219 | 1304 | else false) | |
1220 | 1305 | then throw("Lands should be on the same continent to merge") | |
1221 | 1306 | else { | |
1222 | 1307 | let landSize = d[recLandSize] | |
1223 | 1308 | let sizesIn = acc._1 | |
1224 | 1309 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
1225 | 1310 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
1226 | 1311 | let pieces = numPiecesBySize(landSize) | |
1227 | 1312 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)) | |
1228 | 1313 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1229 | 1314 | let reqLevel = match landSize { | |
1230 | 1315 | case _ => | |
1231 | 1316 | if (("S" == $match0)) | |
1232 | 1317 | then 3 | |
1233 | 1318 | else if (("M" == $match0)) | |
1234 | 1319 | then 4 | |
1235 | 1320 | else if (("L" == $match0)) | |
1236 | 1321 | then 5 | |
1237 | 1322 | else if (("XL" == $match0)) | |
1238 | 1323 | then 6 | |
1239 | 1324 | else throw("Only S, M, L, XL can merge") | |
1240 | 1325 | } | |
1241 | 1326 | if ((infraLevel != reqLevel)) | |
1242 | 1327 | then throw("All lands should be maxed to merge") | |
1243 | 1328 | else { | |
1244 | 1329 | let landNum = d[recLandNum] | |
1245 | 1330 | let terrainCounts = countTerrains(d[recTerrains]) | |
1246 | 1331 | let deltaTime = (lastBlock.timestamp - savedTime) | |
1247 | 1332 | if ((0 > deltaTime)) | |
1248 | 1333 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
1249 | 1334 | else { | |
1250 | 1335 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1251 | 1336 | let landIndex = (pieces / SSIZE) | |
1252 | 1337 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1253 | 1338 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1) | |
1254 | 1339 | let lands = acc._7 | |
1255 | 1340 | let idx = indexOf(lands, landAssetId) | |
1256 | 1341 | if (!(isDefined(idx))) | |
1257 | 1342 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1258 | 1343 | else { | |
1259 | 1344 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1260 | 1345 | let customName = valueOrElse(getString(customKey), "") | |
1261 | 1346 | $Tuple8(sizesOut, arts, continent, bpRes, (((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyLandAssetIdToOwner(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetId(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ DeleteEntry(keyWarehouseByLand(landAssetId))) :+ DeleteEntry(customKey)) :+ DeleteEntry(keyLandCustomNameToAssetId(customName))) :+ Burn(fromBase58String(landAssetId), 1)), props, removeByIndex(lands, value(idx)), (acc._8 + pieces)) | |
1262 | 1347 | } | |
1263 | 1348 | } | |
1264 | 1349 | } | |
1265 | 1350 | } | |
1266 | 1351 | } | |
1267 | 1352 | } | |
1268 | 1353 | ||
1269 | 1354 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1270 | 1355 | let currentPack = getBackpack(bpKey) | |
1271 | 1356 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
1272 | 1357 | let landsKey = keyStakedLandsByOwner(addr) | |
1273 | 1358 | let landsStr = getString(landsKey) | |
1274 | 1359 | let landsIn = if (isDefined(landsStr)) | |
1275 | 1360 | then split_51C(value(landsStr), "_") | |
1276 | 1361 | else nil | |
1277 | 1362 | let r = { | |
1278 | 1363 | let $l = landAssetIds | |
1279 | 1364 | let $s = size($l) | |
1280 | 1365 | let $acc0 = $Tuple8(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn, 0) | |
1281 | 1366 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1282 | 1367 | then $a | |
1283 | 1368 | else checkMerge($a, $l[$i]) | |
1284 | 1369 | ||
1285 | 1370 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1286 | 1371 | then $a | |
1287 | 1372 | else throw("List size exceeds 5") | |
1288 | 1373 | ||
1289 | 1374 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1290 | 1375 | } | |
1291 | 1376 | let continent = r._3 | |
1292 | 1377 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
1293 | 1378 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
1294 | 1379 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1295 | 1380 | let newLandNum = toString(freeNum) | |
1296 | 1381 | let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
1297 | 1382 | let assetId = calculateAssetId(issue) | |
1298 | 1383 | let newLandAssetId = toBase58String(assetId) | |
1299 | 1384 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1300 | 1385 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1301 | 1386 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1302 | 1387 | $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1303 | 1388 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1304 | 1389 | else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces)) | |
1305 | 1390 | then 0 | |
1306 | 1391 | else (stakedPieces - r._8))) :+ IntegerEntry(keyNextFreeLandNum(), (freeNum + 1))) :+ issue) :+ StringEntry(keyLandToAssetId(newLandNum), newLandAssetId)) :+ StringEntry(keyLandAssetIdToOwner(newLandAssetId), addr)) :+ StringEntry(keyLandNumToOwner(newLandNum), addr)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, newLandAssetId), r._2)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, newLandAssetId, addr), r._2)) :+ IntegerEntry(keyInfraLevelByAssetId(newLandAssetId), newLevel)) :+ IntegerEntry(keyInfraLevelByAssetIdAndOwner(newLandAssetId, addr), newLevel)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], r._4, newMat, currentPack[bpIdxProd]], ":"))) :+ StringEntry(keyResProportions(), r._6)) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
1307 | 1392 | } | |
1308 | 1393 | ||
1309 | 1394 | ||
1310 | 1395 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
1311 | 1396 | ||
1312 | 1397 | ||
1313 | 1398 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1314 | 1399 | let cost = (InfraUpgradeCostSUsdt * 4) | |
1315 | 1400 | if (if (!(shouldUseMat)) | |
1316 | 1401 | then (paymentAmount != cost) | |
1317 | 1402 | else false) | |
1318 | 1403 | then throw(("Payment attached should be " + toString(cost))) | |
1319 | 1404 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
1320 | 1405 | } | |
1321 | 1406 | ||
1322 | 1407 | ||
1323 | 1408 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1324 | 1409 | let cost = (InfraUpgradeCostSUsdt * 47) | |
1325 | 1410 | if (if (!(shouldUseMat)) | |
1326 | 1411 | then (paymentAmount != cost) | |
1327 | 1412 | else false) | |
1328 | 1413 | then throw(("Payment attached should be " + toString(cost))) | |
1329 | 1414 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
1330 | 1415 | } | |
1331 | 1416 | ||
1332 | 1417 | ||
1333 | 1418 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
1334 | 1419 | let cost = (InfraUpgradeCostSUsdt * 54) | |
1335 | 1420 | if (if (!(shouldUseMat)) | |
1336 | 1421 | then (paymentAmount != cost) | |
1337 | 1422 | else false) | |
1338 | 1423 | then throw(("Payment attached should be " + toString(cost))) | |
1339 | 1424 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
1340 | 1425 | } | |
1341 | 1426 | ||
1342 | 1427 | ||
1343 | 1428 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
1344 | 1429 | let mergeResult = match size(landAssetIds) { | |
1345 | 1430 | case _ => | |
1346 | 1431 | if ((4 == $match0)) | |
1347 | 1432 | then s2m(addr, landAssetIds, txId) | |
1348 | 1433 | else if ((3 == $match0)) | |
1349 | 1434 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1350 | 1435 | else if ((5 == $match0)) | |
1351 | 1436 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1352 | 1437 | else if ((2 == $match0)) | |
1353 | 1438 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
1354 | 1439 | else throw("Unknown merge") | |
1355 | 1440 | } | |
1356 | 1441 | mergeResult | |
1357 | 1442 | } | |
1358 | 1443 | ||
1359 | 1444 | ||
1360 | 1445 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1361 | 1446 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1362 | 1447 | else false) | |
1363 | 1448 | then throw("Contracts are under maintenance") | |
1364 | 1449 | else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId)) | |
1365 | 1450 | ||
1366 | 1451 | ||
1367 | 1452 | @Callable(i) | |
1368 | 1453 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1369 | 1454 | then throw("Permission denied") | |
1370 | 1455 | else [StringEntry(keyRestAddress(), restAddr)] | |
1371 | 1456 | ||
1372 | 1457 | ||
1373 | 1458 | ||
1374 | 1459 | @Callable(i) | |
1375 | 1460 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1376 | 1461 | then throw("permission denied") | |
1377 | 1462 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1378 | 1463 | ||
1379 | 1464 | ||
1380 | 1465 | ||
1381 | 1466 | @Callable(i) | |
1382 | 1467 | func stakeLand () = { | |
1383 | 1468 | let prologAction = prolog(i) | |
1384 | 1469 | if ((size(i.payments) != 1)) | |
1385 | 1470 | then throw("Exactly one payment required") | |
1386 | 1471 | else { | |
1387 | 1472 | let pmt = value(i.payments[0]) | |
1388 | 1473 | let assetId = value(pmt.assetId) | |
1389 | 1474 | let address = toString(i.caller) | |
1390 | 1475 | if ((pmt.amount != 1)) | |
1391 | 1476 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1392 | 1477 | else { | |
1393 | 1478 | let asset = value(assetInfo(assetId)) | |
1394 | 1479 | if ((asset.issuer != this)) | |
1395 | 1480 | then throw("Unknown issuer of token") | |
1396 | 1481 | else if (!(contains(asset.name, LANDPREFIX))) | |
1397 | 1482 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1398 | 1483 | else { | |
1399 | 1484 | let landNumSize = drop(asset.name, 4) | |
1400 | 1485 | let landNum = if (contains(landNumSize, "XXL")) | |
1401 | 1486 | then dropRight(landNumSize, 3) | |
1402 | 1487 | else if (contains(landNumSize, "XL")) | |
1403 | 1488 | then dropRight(landNumSize, 2) | |
1404 | 1489 | else dropRight(landNumSize, 1) | |
1405 | 1490 | if (!(isDefined(parseInt(landNum)))) | |
1406 | 1491 | then throw(("Cannot parse land number from " + asset.name)) | |
1407 | 1492 | else { | |
1408 | 1493 | let landAssetId = toBase58String(assetId) | |
1409 | 1494 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1410 | 1495 | if (isDefined(getInteger(timeKey))) | |
1411 | 1496 | then throw((("NFT " + asset.name) + " is already staked")) | |
1412 | 1497 | else { | |
1413 | 1498 | let d = split(asset.description, "_") | |
1414 | 1499 | let terrainCounts = countTerrains(d[recTerrains]) | |
1415 | 1500 | let pieces = numPiecesBySize(d[recLandSize]) | |
1416 | 1501 | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1417 | 1502 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1418 | 1503 | let landsKey = keyStakedLandsByOwner(address) | |
1419 | 1504 | let landsStr = getString(landsKey) | |
1420 | 1505 | let lands = if (isDefined(landsStr)) | |
1421 | 1506 | then split_51C(value(landsStr), "_") | |
1422 | 1507 | else nil | |
1423 | 1508 | if (containsElement(lands, landAssetId)) | |
1424 | 1509 | then throw(("Your staked lands already contain " + landAssetId)) | |
1425 | 1510 | else { | |
1426 | 1511 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1427 | 1512 | [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(keyStakedPiecesByOwner(address), (valueOrElse(getInteger(keyStakedPiecesByOwner(address)), 0) + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), prologAction] | |
1428 | 1513 | } | |
1429 | 1514 | } | |
1430 | 1515 | } | |
1431 | 1516 | } | |
1432 | 1517 | } | |
1433 | 1518 | } | |
1434 | 1519 | } | |
1435 | 1520 | ||
1436 | 1521 | ||
1437 | 1522 | ||
1438 | 1523 | @Callable(i) | |
1439 | 1524 | func unstakeLand (landAssetIdIn) = { | |
1440 | 1525 | let prologAction = prolog(i) | |
1441 | 1526 | if ((size(i.payments) != 0)) | |
1442 | 1527 | then throw("No payments required") | |
1443 | 1528 | else { | |
1444 | 1529 | let addr = toString(i.caller) | |
1445 | 1530 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1446 | 1531 | let landAssetId = c._2 | |
1447 | 1532 | let landsKey = keyStakedLandsByOwner(addr) | |
1448 | 1533 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1449 | 1534 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1450 | 1535 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1451 | 1536 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1452 | 1537 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1453 | 1538 | let idx = indexOf(lands, landAssetId) | |
1454 | 1539 | if (!(isDefined(idx))) | |
1455 | 1540 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1456 | 1541 | else { | |
1457 | 1542 | let t = value(blockInfoByHeight(height)).timestamp | |
1458 | 1543 | let releaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1459 | 1544 | if ((releaseTime >= t)) | |
1460 | 1545 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(releaseTime))) | |
1461 | 1546 | else { | |
1462 | 1547 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1463 | 1548 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1464 | 1549 | [ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1465 | 1550 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1466 | 1551 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, if ((pieces > stakedPieces)) | |
1467 | 1552 | then 0 | |
1468 | 1553 | else (stakedPieces - pieces)), prologAction] | |
1469 | 1554 | } | |
1470 | 1555 | } | |
1471 | 1556 | } | |
1472 | 1557 | } | |
1473 | 1558 | ||
1474 | 1559 | ||
1475 | 1560 | ||
1476 | 1561 | @Callable(i) | |
1477 | 1562 | func stakeDuck () = { | |
1478 | 1563 | let prologAction = prolog(i) | |
1479 | 1564 | if ((size(i.payments) != 1)) | |
1480 | 1565 | then throw("Exactly one payment required") | |
1481 | 1566 | else { | |
1482 | 1567 | let pmt = value(i.payments[0]) | |
1483 | 1568 | let assetId = value(pmt.assetId) | |
1484 | 1569 | let address = toString(i.caller) | |
1485 | 1570 | if ((pmt.amount != 1)) | |
1486 | 1571 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
1487 | 1572 | else { | |
1488 | 1573 | let asset = value(assetInfo(assetId)) | |
1489 | 1574 | if (if ((asset.issuer != incubatorAddr)) | |
1490 | 1575 | then (asset.issuer != breederAddr) | |
1491 | 1576 | else false) | |
1492 | 1577 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
1493 | 1578 | else if (!(contains(asset.name, DUCKPREFIX))) | |
1494 | 1579 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
1495 | 1580 | else { | |
1496 | 1581 | let assetIdStr = toBase58String(assetId) | |
1497 | 1582 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1498 | 1583 | if (isDefined(getInteger(timeKey))) | |
1499 | 1584 | then throw((("NFT " + asset.name) + " is already staked")) | |
1500 | 1585 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
1501 | 1586 | then throw(("You already staked one duck: " + asset.name)) | |
1502 | 1587 | else { | |
1503 | 1588 | let locKey = keyDuckLocation(assetIdStr) | |
1504 | 1589 | let location = getString(locKey) | |
1505 | 1590 | let bpKey = keyBackpackByDuck(assetIdStr) | |
1506 | 1591 | let backpack = getString(bpKey) | |
1507 | 1592 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
1508 | 1593 | then nil | |
1509 | 1594 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
1510 | 1595 | then nil | |
1511 | 1596 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyDuckHealth(assetIdStr), 100)) :+ prologAction))))) | |
1512 | 1597 | } | |
1513 | 1598 | } | |
1514 | 1599 | } | |
1515 | 1600 | } | |
1516 | 1601 | } | |
1517 | 1602 | ||
1518 | 1603 | ||
1519 | 1604 | ||
1520 | 1605 | @Callable(i) | |
1521 | 1606 | func unstakeDuck (assetIdStr) = { | |
1522 | 1607 | let prologAction = prolog(i) | |
1523 | 1608 | if ((size(i.payments) != 0)) | |
1524 | 1609 | then throw("No payments required") | |
1525 | 1610 | else { | |
1526 | 1611 | let assetId = fromBase58String(assetIdStr) | |
1527 | 1612 | let address = toString(i.caller) | |
1528 | 1613 | let asset = value(assetInfo(assetId)) | |
1529 | 1614 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
1530 | 1615 | if (!(isDefined(getInteger(timeKey)))) | |
1531 | 1616 | then throw((("NFT " + asset.name) + " is not staked")) | |
1532 | 1617 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
1533 | 1618 | then throw((("The duck " + asset.name) + " is not staked")) | |
1534 | 1619 | else { | |
1535 | 1620 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
1536 | 1621 | if ((owner != address)) | |
1537 | 1622 | then throw("Staked NFT is not yours") | |
1538 | 1623 | else { | |
1539 | 1624 | let keyHealth = keyDuckHealth(assetIdStr) | |
1540 | 1625 | let health = valueOrElse(getInteger(keyHealth), 100) | |
1541 | 1626 | if ((100 > health)) | |
1542 | 1627 | then throw("Please heal your duck before unstaking") | |
1543 | 1628 | else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address)), prologAction] | |
1544 | 1629 | } | |
1545 | 1630 | } | |
1546 | 1631 | } | |
1547 | 1632 | } | |
1548 | 1633 | ||
1549 | 1634 | ||
1550 | 1635 | ||
1551 | 1636 | @Callable(i) | |
1552 | 1637 | func claimRes (amount,landAssetIdStr) = { | |
1553 | 1638 | let prologAction = prolog(i) | |
1554 | 1639 | if ((size(i.payments) != 0)) | |
1555 | 1640 | then throw("No payments required") | |
1556 | 1641 | else { | |
1557 | 1642 | let addr = toString(i.originCaller) | |
1558 | 1643 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
1559 | 1644 | $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes]) | |
1560 | 1645 | } | |
1561 | 1646 | } | |
1562 | 1647 | ||
1563 | 1648 | ||
1564 | 1649 | ||
1565 | 1650 | @Callable(i) | |
1566 | 1651 | func claimResToWH (amount,landAssetIdStr) = { | |
1567 | 1652 | let prologAction = prolog(i) | |
1568 | 1653 | if ((size(i.payments) != 0)) | |
1569 | 1654 | then throw("No payments required") | |
1570 | 1655 | else { | |
1571 | 1656 | let addr = toString(i.originCaller) | |
1572 | 1657 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
1573 | 1658 | $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes]) | |
1574 | 1659 | } | |
1575 | 1660 | } | |
1576 | 1661 | ||
1577 | 1662 | ||
1578 | 1663 | ||
1579 | 1664 | @Callable(i) | |
1580 | 1665 | func flight (message,sig) = { | |
1581 | 1666 | let prologAction = prolog(i) | |
1582 | - | if (!(sigVerify_8Kb(message, sig, pub))) | |
1583 | - | then throw("signature does not match") | |
1584 | - | else if ((size(i.payments) != 0)) | |
1585 | - | then throw("No payments required") | |
1586 | - | else { | |
1587 | - | let parts = split(toUtf8String(message), ";") | |
1588 | - | let flightLog = split(parts[0], "|") | |
1589 | - | let hp = split(flightLog[flHealth], "_") | |
1590 | - | let curHP = parseIntValue(hp[0]) | |
1591 | - | let newHP = parseIntValue(hp[1]) | |
1592 | - | let newLocTxVer = split(parts[1], ":") | |
1593 | - | let newLocation = newLocTxVer[0] | |
1594 | - | let time = parseIntValue(flightLog[flTimestamp]) | |
1595 | - | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1596 | - | then true | |
1597 | - | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1598 | - | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1599 | - | else { | |
1600 | - | let txFromMsg = newLocTxVer[1] | |
1601 | - | let lastTx = valueOrElse(getString(keyLastTxIdByUser(toString(i.originCaller))), "") | |
1602 | - | if ((lastTx != txFromMsg)) | |
1603 | - | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1604 | - | else { | |
1605 | - | let userAddr = toString(i.caller) | |
1606 | - | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1607 | - | let keyHealth = keyDuckHealth(duckAssetId) | |
1608 | - | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
1609 | - | if ((oldFromState != curHP)) | |
1610 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
1611 | - | else if ((0 >= curHP)) | |
1612 | - | then throw("You can't fly with zero health") | |
1613 | - | else { | |
1614 | - | let locKey = keyDuckLocation(duckAssetId) | |
1615 | - | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1616 | - | if ((newLocation == curLocation)) | |
1617 | - | then throw("You can't fly to the same location") | |
1618 | - | else { | |
1619 | - | let bonus = if ((size(flightLog) > flBonus)) | |
1620 | - | then flightLog[flBonus] | |
1621 | - | else "" | |
1622 | - | let sentAmount = if (if ((newHP > 0)) | |
1623 | - | then (bonus == "$") | |
1624 | - | else false) | |
1625 | - | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1626 | - | else 0 | |
1627 | - | $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
1628 | - | then newLocation | |
1629 | - | else curLocation), IntegerEntry(keyHealth, newHP), prologAction], sentAmount) | |
1630 | - | } | |
1631 | - | } | |
1632 | - | } | |
1633 | - | } | |
1634 | - | } | |
1667 | + | if ((size(i.payments) != 0)) | |
1668 | + | then throw("No payments required") | |
1669 | + | else { | |
1670 | + | let userAddr = toString(i.caller) | |
1671 | + | let f = flightCommon(userAddr, message, sig) | |
1672 | + | let locKey = keyDuckLocation(f._2) | |
1673 | + | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
1674 | + | if ((f._4 == curLocation)) | |
1675 | + | then throw("You can't fly to the same location") | |
1676 | + | else { | |
1677 | + | let bpKey = keyBackpackByDuck(f._2) | |
1678 | + | let currentPack = getBackpack(bpKey) | |
1679 | + | let newProd = subtractProducts(currentPack[bpIdxProd], f._5) | |
1680 | + | $Tuple2([StringEntry(locKey, if ((f._1 > 0)) | |
1681 | + | then f._4 | |
1682 | + | else curLocation), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":")), IntegerEntry(keyDuckHealth(f._2), f._1), prologAction], f._3) | |
1683 | + | } | |
1684 | + | } | |
1635 | 1685 | } | |
1636 | 1686 | ||
1637 | 1687 | ||
1638 | 1688 | ||
1639 | 1689 | @Callable(i) | |
1640 | 1690 | func heal (quantityL1,quantityL2,quantityL3) = { | |
1641 | 1691 | let prologAction = prolog(i) | |
1642 | 1692 | if (if (if ((0 > quantityL1)) | |
1643 | 1693 | then true | |
1644 | 1694 | else (0 > quantityL2)) | |
1645 | 1695 | then true | |
1646 | 1696 | else (0 > quantityL3)) | |
1647 | 1697 | then throw("Quantity cannot be negative") | |
1648 | 1698 | else { | |
1649 | 1699 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1650 | 1700 | let qts = [quantityL1, quantityL2, quantityL3] | |
1651 | 1701 | let keyHealth = keyDuckHealth(duckAssetId) | |
1652 | 1702 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
1653 | 1703 | if ((oldHealth >= MAXHP)) | |
1654 | 1704 | then throw((("HP should be < " + toString(MAXHP)) + " to heal")) | |
1655 | 1705 | else { | |
1656 | 1706 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1657 | 1707 | let currentPack = getBackpack(bpKey) | |
1658 | 1708 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1659 | 1709 | then nil | |
1660 | 1710 | else split(currentPack[bpIdxProd], "_") | |
1661 | 1711 | func iterateProd (acc,ignoredItem) = { | |
1662 | 1712 | let n = acc._2 | |
1663 | 1713 | let x = if ((size(prodList) > n)) | |
1664 | 1714 | then parseIntValue(prodList[n]) | |
1665 | 1715 | else 0 | |
1666 | 1716 | if ((3 > n)) | |
1667 | 1717 | then { | |
1668 | 1718 | let q = qts[n] | |
1669 | 1719 | if ((q > x)) | |
1670 | 1720 | then throw(((("You have only " + toString(x)) + " of ") + prodTypes[n])) | |
1671 | 1721 | else $Tuple3((acc._1 :+ toString((x - q))), (n + 1), (acc._3 + (medKitHp[n] * q))) | |
1672 | 1722 | } | |
1673 | 1723 | else $Tuple3((acc._1 :+ toString(x)), (n + 1), acc._3) | |
1674 | 1724 | } | |
1675 | 1725 | ||
1676 | 1726 | let result = { | |
1677 | 1727 | let $l = productionMatrix | |
1678 | 1728 | let $s = size($l) | |
1679 | 1729 | let $acc0 = $Tuple3(nil, 0, 0) | |
1680 | 1730 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1681 | 1731 | then $a | |
1682 | 1732 | else iterateProd($a, $l[$i]) | |
1683 | 1733 | ||
1684 | 1734 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1685 | 1735 | then $a | |
1686 | 1736 | else throw("List size exceeds 50") | |
1687 | 1737 | ||
1688 | 1738 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
1689 | 1739 | } | |
1690 | 1740 | let newHealth = min([MAXHP, (oldHealth + result._3)]) | |
1691 | 1741 | $Tuple2([IntegerEntry(keyHealth, newHealth), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(result._1, "_")], ":")), prologAction], newHealth) | |
1692 | 1742 | } | |
1693 | 1743 | } | |
1694 | 1744 | } | |
1695 | 1745 | ||
1696 | 1746 | ||
1697 | 1747 | ||
1698 | 1748 | @Callable(i) | |
1699 | 1749 | func healES () = { | |
1700 | 1750 | let prologAction = prolog(i) | |
1701 | 1751 | if ((size(i.payments) != 1)) | |
1702 | 1752 | then throw("Exactly one payment required") | |
1703 | 1753 | else { | |
1704 | 1754 | let pmt = value(i.payments[0]) | |
1705 | 1755 | if ((pmt.assetId != usdtAssetId)) | |
1706 | 1756 | then throw("Allowed USDT payment only!") | |
1707 | 1757 | else { | |
1708 | 1758 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1709 | 1759 | let keyHealth = keyDuckHealth(duckAssetId) | |
1710 | 1760 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
1711 | 1761 | if ((oldHealth > 0)) | |
1712 | 1762 | then throw("HP should be 0 to call Emergency Service") | |
1713 | 1763 | else { | |
1714 | 1764 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1715 | 1765 | let currentPack = getBackpack(bpKey) | |
1716 | 1766 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
1717 | 1767 | then nil | |
1718 | 1768 | else split(currentPack[bpIdxProd], "_") | |
1719 | 1769 | let medKitAmount1 = if ((size(prodList) > 0)) | |
1720 | 1770 | then parseIntValue(prodList[0]) | |
1721 | 1771 | else 0 | |
1722 | 1772 | let medKitAmount2 = if ((size(prodList) > 1)) | |
1723 | 1773 | then parseIntValue(prodList[1]) | |
1724 | 1774 | else 0 | |
1725 | 1775 | let medKitAmount3 = if ((size(prodList) > 2)) | |
1726 | 1776 | then parseIntValue(prodList[2]) | |
1727 | 1777 | else 0 | |
1728 | 1778 | if (if (if ((medKitAmount1 > 0)) | |
1729 | 1779 | then true | |
1730 | 1780 | else (medKitAmount2 > 0)) | |
1731 | 1781 | then true | |
1732 | 1782 | else (medKitAmount3 > 0)) | |
1733 | 1783 | then throw("You have to use own Medical Kit") | |
1734 | 1784 | else { | |
1735 | 1785 | let existStr = getString(economyContract, keyEsWarehouse()) | |
1736 | 1786 | let existAmounts = if (isDefined(existStr)) | |
1737 | 1787 | then split(value(existStr), "_") | |
1738 | 1788 | else nil | |
1739 | 1789 | let existAmount = if ((size(existAmounts) > 0)) | |
1740 | 1790 | then parseIntValue(existAmounts[0]) | |
1741 | 1791 | else 0 | |
1742 | 1792 | if ((0 >= existAmount)) | |
1743 | 1793 | then throw("There are no Medical Kits L1 at Emergency Service storage") | |
1744 | 1794 | else { | |
1745 | 1795 | let newHealth = (oldHealth + medKitHp[0]) | |
1746 | 1796 | let newES = makeString([toString((existAmount - 1)), removeByIndex(existAmounts, 0)], "_") | |
1747 | 1797 | let recipe = split(productionMatrix[0], "_") | |
1748 | 1798 | let totalMat = getRecipeMaterials(recipe) | |
1749 | 1799 | let packSize = parseIntValue(recipe[recipeIdxPacksize]) | |
1750 | 1800 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * packSize)) | |
1751 | 1801 | if ((pmt.amount != sellPrice)) | |
1752 | 1802 | then throw(("Payment attached should be " + toString(sellPrice))) | |
1753 | 1803 | else { | |
1754 | 1804 | let result = asString(invoke(economyContract, "updateEsStorage", [newES], [AttachedPayment(usdtAssetId, sellPrice)])) | |
1755 | 1805 | $Tuple2([IntegerEntry(keyHealth, newHealth), prologAction], result) | |
1756 | 1806 | } | |
1757 | 1807 | } | |
1758 | 1808 | } | |
1759 | 1809 | } | |
1760 | 1810 | } | |
1761 | 1811 | } | |
1762 | 1812 | } | |
1763 | 1813 | ||
1764 | 1814 | ||
1765 | 1815 | ||
1766 | 1816 | @Callable(i) | |
1767 | 1817 | func updateBackpack (duckAssetId,newPack) = { | |
1768 | 1818 | let prologAction = prolog(i) | |
1769 | 1819 | if ((i.caller != economyContract)) | |
1770 | 1820 | then throw("permission denied") | |
1771 | 1821 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack), prologAction], newPack) | |
1772 | 1822 | } | |
1773 | 1823 | ||
1774 | 1824 | ||
1775 | 1825 | ||
1776 | 1826 | @Callable(i) | |
1777 | 1827 | func buySLand () = { | |
1778 | 1828 | let prologAction = prolog(i) | |
1779 | 1829 | if ((size(i.payments) != 1)) | |
1780 | 1830 | then throw("Exactly one payment required") | |
1781 | 1831 | else { | |
1782 | 1832 | let pmt = value(i.payments[0]) | |
1783 | 1833 | if ((pmt.assetId != usdtAssetId)) | |
1784 | 1834 | then throw("Allowed USDT payment only!") | |
1785 | 1835 | else if ((pmt.amount != EXPUSDT)) | |
1786 | 1836 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
1787 | 1837 | else { | |
1788 | 1838 | let result = expeditionInternal(i.caller, i.transactionId) | |
1789 | 1839 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2._1) | |
1790 | 1840 | } | |
1791 | 1841 | } | |
1792 | 1842 | } | |
1793 | 1843 | ||
1794 | 1844 | ||
1795 | 1845 | ||
1796 | 1846 | @Callable(i) | |
1797 | 1847 | func expedition (message,sig) = { | |
1798 | 1848 | let prologAction = prolog(i) | |
1799 | 1849 | if ((size(i.payments) != 0)) | |
1800 | 1850 | then throw("No payments required") | |
1801 | 1851 | else { | |
1802 | - | let result = expeditionCommon( | |
1852 | + | let result = expeditionCommon(i.caller, i.transactionId, message, sig) | |
1803 | 1853 | $Tuple2((result._1 :+ prologAction), $Tuple2(result._2, result._3)) | |
1804 | 1854 | } | |
1805 | 1855 | } | |
1806 | 1856 | ||
1807 | 1857 | ||
1808 | 1858 | ||
1809 | 1859 | @Callable(i) | |
1810 | 1860 | func upgradeInfra (landAssetId) = { | |
1811 | 1861 | let prologAction = prolog(i) | |
1812 | 1862 | if ((size(i.payments) != 0)) | |
1813 | 1863 | then throw("No payments required") | |
1814 | 1864 | else { | |
1815 | 1865 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
1816 | 1866 | $Tuple2((result._1 :+ prologAction), result._2) | |
1817 | 1867 | } | |
1818 | 1868 | } | |
1819 | 1869 | ||
1820 | 1870 | ||
1821 | 1871 | ||
1822 | 1872 | @Callable(i) | |
1823 | 1873 | func upgradeInfraUsdt (landAssetId) = if ((i.caller != this)) | |
1824 | 1874 | then throw("Permission denied") | |
1825 | 1875 | else { | |
1826 | 1876 | let prologAction = prolog(i) | |
1827 | 1877 | if ((size(i.payments) != 1)) | |
1828 | 1878 | then throw("Exactly one payment required") | |
1829 | 1879 | else { | |
1830 | 1880 | let pmt = value(i.payments[0]) | |
1831 | 1881 | if ((pmt.assetId != usdtAssetId)) | |
1832 | 1882 | then throw("Allowed USDT payment only!") | |
1833 | 1883 | else { | |
1834 | 1884 | let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId) | |
1835 | 1885 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
1836 | 1886 | } | |
1837 | 1887 | } | |
1838 | 1888 | } | |
1839 | 1889 | ||
1840 | 1890 | ||
1841 | 1891 | ||
1842 | 1892 | @Callable(i) | |
1843 | 1893 | func activateArtifact (artName,landAssetId) = { | |
1844 | 1894 | let prologAction = prolog(i) | |
1845 | 1895 | if ((size(i.payments) != 0)) | |
1846 | 1896 | then throw("No payments required") | |
1847 | 1897 | else { | |
1848 | 1898 | let result = match artName { | |
1849 | 1899 | case _ => | |
1850 | 1900 | if (("PRESALE" == $match0)) | |
1851 | 1901 | then activatePresaleArt(toString(i.caller), landAssetId) | |
1852 | 1902 | else throw("Unknown artifact") | |
1853 | 1903 | } | |
1854 | 1904 | (result :+ prologAction) | |
1855 | 1905 | } | |
1856 | 1906 | } | |
1857 | 1907 | ||
1858 | 1908 | ||
1859 | 1909 | ||
1860 | 1910 | @Callable(i) | |
1861 | 1911 | func mergeLands (landAssetIds) = { | |
1862 | 1912 | let prologAction = prolog(i) | |
1863 | 1913 | if ((size(i.payments) != 0)) | |
1864 | 1914 | then throw("No payments required") | |
1865 | 1915 | else { | |
1866 | 1916 | let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1867 | 1917 | $Tuple2((result._1 :+ prologAction), result._2) | |
1868 | 1918 | } | |
1869 | 1919 | } | |
1870 | 1920 | ||
1871 | 1921 | ||
1872 | 1922 | ||
1873 | 1923 | @Callable(i) | |
1874 | 1924 | func mergeLandsUsdt (landAssetIds) = { | |
1875 | 1925 | let prologAction = prolog(i) | |
1876 | 1926 | if ((size(i.payments) != 1)) | |
1877 | 1927 | then throw("Exactly one payment required") | |
1878 | 1928 | else { | |
1879 | 1929 | let pmt = value(i.payments[0]) | |
1880 | 1930 | if ((pmt.assetId != usdtAssetId)) | |
1881 | 1931 | then throw("Allowed USDT payment only!") | |
1882 | 1932 | else { | |
1883 | 1933 | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1884 | 1934 | $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2) | |
1885 | 1935 | } | |
1886 | 1936 | } | |
1887 | 1937 | } | |
1888 | 1938 | ||
1889 | 1939 | ||
1890 | 1940 | ||
1891 | 1941 | @Callable(i) | |
1892 | 1942 | func cargoExchange (cargoListStr,landAssetId) = { | |
1893 | 1943 | let prologAction = prolog(i) | |
1894 | 1944 | if ((size(i.payments) != 0)) | |
1895 | 1945 | then throw("No payments required") | |
1896 | 1946 | else { | |
1897 | 1947 | let cargoParts = split_4C(cargoListStr, ":") | |
1898 | 1948 | let addr = toString(i.originCaller) | |
1899 | 1949 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1900 | 1950 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1901 | 1951 | if (!(isDefined(getInteger(timeKey)))) | |
1902 | 1952 | then throw((asset.name + " is not staked")) | |
1903 | 1953 | else { | |
1904 | 1954 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1905 | 1955 | if ((owner != addr)) | |
1906 | 1956 | then throw((LANDPREFIX + " is not yours")) | |
1907 | 1957 | else { | |
1908 | 1958 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1909 | 1959 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1910 | 1960 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1911 | 1961 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1912 | 1962 | let loc = split(value(curLocation), "_") | |
1913 | 1963 | if ((loc[locIdxType] != "L")) | |
1914 | 1964 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1915 | 1965 | else if ((loc[locIdxId] != landAssetId)) | |
1916 | 1966 | then throw(("Duck should be on the land " + landAssetId)) | |
1917 | 1967 | else { | |
1918 | 1968 | let whKey = keyWarehouseByLand(landAssetId) | |
1919 | 1969 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1920 | 1970 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1921 | 1971 | let currentPack = getBackpack(bpKey) | |
1922 | 1972 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
1923 | 1973 | let loft = split(currentWh[whIdxLOFT], "_") | |
1924 | 1974 | let loftO = (parseIntValue(loft[volOccupied]) + result._7) | |
1925 | 1975 | let loftF = (parseIntValue(loft[volFree]) - result._7) | |
1926 | 1976 | [StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString_2C([currentWh[whIdxLevels], result._1, result._2, result._3, makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")], ":")), prologAction] | |
1927 | 1977 | } | |
1928 | 1978 | } | |
1929 | 1979 | } | |
1930 | 1980 | } | |
1931 | 1981 | } | |
1932 | 1982 | ||
1933 | 1983 | ||
1934 | 1984 | ||
1935 | 1985 | @Callable(i) | |
1936 | 1986 | func saveWarehouse (whStr,landAssetId) = { | |
1937 | 1987 | let prologAction = prolog(i) | |
1938 | 1988 | if ((i.caller != economyContract)) | |
1939 | 1989 | then throw("Access denied") | |
1940 | 1990 | else { | |
1941 | 1991 | let whKey = keyWarehouseByLand(landAssetId) | |
1942 | 1992 | let wh = split_4C(whStr, ":") | |
1943 | 1993 | if ((size(wh) != 5)) | |
1944 | 1994 | then throw("warehouse string should contain 4 ':' separators") | |
1945 | 1995 | else { | |
1946 | 1996 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
1947 | 1997 | let loftO = getWarehouseOccupiedVol(wh) | |
1948 | 1998 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1949 | 1999 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
1950 | 2000 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1951 | 2001 | $Tuple2([StringEntry(whKey, newWhStr), prologAction], newWhStr) | |
1952 | 2002 | } | |
1953 | 2003 | } | |
1954 | 2004 | } | |
1955 | 2005 | ||
1956 | 2006 | ||
1957 | 2007 | ||
1958 | 2008 | @Callable(i) | |
1959 | 2009 | func fixWarehouseFormat (landAssetId) = if ((i.caller != restContract)) | |
1960 | 2010 | then throw("Access denied") | |
1961 | 2011 | else { | |
1962 | 2012 | let whKey = keyWarehouseByLand(landAssetId) | |
1963 | 2013 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1964 | 2014 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
1965 | 2015 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1966 | 2016 | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
1967 | 2017 | let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil)) | |
1968 | 2018 | let loftO = getWarehouseOccupiedVol(wh) | |
1969 | 2019 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
1970 | 2020 | let loftF = ((loftT - loftL) - loftO) | |
1971 | 2021 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
1972 | 2022 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
1973 | 2023 | } | |
1974 | 2024 | ||
1975 | 2025 | ||
1976 | 2026 | ||
1977 | 2027 | @Callable(i) | |
1978 | 2028 | func fixStakedPieces (address) = if ((i.caller != restContract)) | |
1979 | 2029 | then throw("Access denied") | |
1980 | 2030 | else { | |
1981 | 2031 | let stakedPieces = if ((address == "")) | |
1982 | 2032 | then 0 | |
1983 | 2033 | else { | |
1984 | 2034 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(address)) | |
1985 | 2035 | let lands = if (isDefined(landsStr)) | |
1986 | 2036 | then split_51C(value(landsStr), "_") | |
1987 | 2037 | else nil | |
1988 | 2038 | func oneLand (acc,landAssetId) = { | |
1989 | 2039 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1990 | 2040 | let landSize = split(asset.description, "_")[recLandSize] | |
1991 | 2041 | (acc + numPiecesBySize(landSize)) | |
1992 | 2042 | } | |
1993 | 2043 | ||
1994 | 2044 | let $l = lands | |
1995 | 2045 | let $s = size($l) | |
1996 | 2046 | let $acc0 = 0 | |
1997 | 2047 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1998 | 2048 | then $a | |
1999 | 2049 | else oneLand($a, $l[$i]) | |
2000 | 2050 | ||
2001 | 2051 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2002 | 2052 | then $a | |
2003 | 2053 | else throw("List size exceeds 100") | |
2004 | 2054 | ||
2005 | 2055 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
2006 | 2056 | } | |
2007 | 2057 | $Tuple2([IntegerEntry(keyStakedPiecesByOwner(address), stakedPieces)], stakedPieces) | |
2008 | 2058 | } | |
2009 | 2059 | ||
2010 | 2060 | ||
2011 | 2061 | ||
2012 | 2062 | @Callable(i) | |
2013 | 2063 | func setCustomName (assetId,customName,type) = { | |
2014 | 2064 | let prologAction = prolog(i) | |
2015 | 2065 | if ((size(i.payments) != 1)) | |
2016 | 2066 | then throw("Exactly one payment required") | |
2017 | 2067 | else { | |
2018 | 2068 | let pmt = value(i.payments[0]) | |
2019 | 2069 | if ((pmt.assetId != usdtAssetId)) | |
2020 | 2070 | then throw("Allowed USDT payment only!") | |
2021 | 2071 | else if ((pmt.amount != RENAMINGCOST)) | |
2022 | 2072 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
2023 | 2073 | else if (contains(customName, "__")) | |
2024 | 2074 | then throw(("Name should not contain '__': " + customName)) | |
2025 | 2075 | else if ((size(customName) > MAXNAMELEN)) | |
2026 | 2076 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
2027 | 2077 | else { | |
2028 | 2078 | let addr = toString(i.originCaller) | |
2029 | 2079 | let actions = match type { | |
2030 | 2080 | case _ => | |
2031 | 2081 | if (("ACCOUNT" == $match0)) | |
2032 | 2082 | then { | |
2033 | 2083 | let reverseKey = keyCustomNameToAddress(customName) | |
2034 | 2084 | let nameOwner = getString(reverseKey) | |
2035 | 2085 | if (isDefined(nameOwner)) | |
2036 | 2086 | then throw(("Name already registered: " + customName)) | |
2037 | 2087 | else { | |
2038 | 2088 | let addrToNameKey = keyAddressToCustomName(addr) | |
2039 | 2089 | let oldName = getString(addrToNameKey) | |
2040 | 2090 | let freeOld = if (isDefined(oldName)) | |
2041 | 2091 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
2042 | 2092 | else nil | |
2043 | 2093 | ((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) | |
2044 | 2094 | } | |
2045 | 2095 | } | |
2046 | 2096 | else if (("LAND" == $match0)) | |
2047 | 2097 | then { | |
2048 | 2098 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2049 | 2099 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2050 | 2100 | if (!(isDefined(getInteger(timeKey)))) | |
2051 | 2101 | then throw((asset.name + " is not staked")) | |
2052 | 2102 | else { | |
2053 | 2103 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2054 | 2104 | if ((owner != addr)) | |
2055 | 2105 | then throw((LANDPREFIX + " is not yours")) | |
2056 | 2106 | else { | |
2057 | 2107 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
2058 | 2108 | let nameOwner = getString(reverseKey) | |
2059 | 2109 | if (isDefined(nameOwner)) | |
2060 | 2110 | then throw(("Name already registered: " + customName)) | |
2061 | 2111 | else { | |
2062 | 2112 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
2063 | 2113 | let oldName = getString(assetToNameKey) | |
2064 | 2114 | let freeOld = if (isDefined(oldName)) | |
2065 | 2115 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
2066 | 2116 | else nil | |
2067 | 2117 | ((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) | |
2068 | 2118 | } | |
2069 | 2119 | } | |
2070 | 2120 | } | |
2071 | 2121 | } | |
2072 | 2122 | else if (("DUCK" == $match0)) | |
2073 | 2123 | then { | |
2074 | 2124 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2075 | 2125 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2076 | 2126 | if (if (!(isDefined(getInteger(timeKey)))) | |
2077 | 2127 | then true | |
2078 | 2128 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
2079 | 2129 | then throw((asset.name + " is not staked")) | |
2080 | 2130 | else { | |
2081 | 2131 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2082 | 2132 | if ((owner != addr)) | |
2083 | 2133 | then throw((DUCKPREFIX + " is not yours")) | |
2084 | 2134 | else { | |
2085 | 2135 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
2086 | 2136 | let nameOwner = getString(reverseKey) | |
2087 | 2137 | if (isDefined(nameOwner)) | |
2088 | 2138 | then throw(("Name already registered: " + customName)) | |
2089 | 2139 | else { | |
2090 | 2140 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
2091 | 2141 | let oldName = getString(assetToNameKey) | |
2092 | 2142 | let freeOld = if (isDefined(oldName)) | |
2093 | 2143 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
2094 | 2144 | else nil | |
2095 | 2145 | ((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) | |
2096 | 2146 | } | |
2097 | 2147 | } | |
2098 | 2148 | } | |
2099 | 2149 | } | |
2100 | 2150 | else throw("Unknown entity type") | |
2101 | 2151 | } | |
2102 | 2152 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0) | |
2103 | 2153 | } | |
2104 | 2154 | } | |
2105 | 2155 | } | |
2106 | 2156 | ||
2107 | 2157 | ||
2108 | 2158 | ||
2109 | 2159 | @Callable(i) | |
2110 | 2160 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
2111 | 2161 | then throw("Permission denied") | |
2112 | 2162 | else { | |
2113 | 2163 | let prologAction = prolog(i) | |
2114 | 2164 | if ((size(i.payments) != 0)) | |
2115 | 2165 | then throw("No payments required") | |
2116 | 2166 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
2117 | 2167 | then throw(("Invalid address: " + oldPlayer)) | |
2118 | 2168 | else if (!(isDefined(addressFromString(newPlayer)))) | |
2119 | 2169 | then throw(("Invalid address: " + newPlayer)) | |
2120 | 2170 | else { | |
2121 | 2171 | let oldsKey = keyOldies() | |
2122 | 2172 | let olds = getString(oldsKey) | |
2123 | 2173 | let oldies = if (isDefined(olds)) | |
2124 | 2174 | then split_4C(value(olds), "_") | |
2125 | 2175 | else nil | |
2126 | 2176 | if (containsElement(oldies, newPlayer)) | |
2127 | 2177 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
2128 | 2178 | else { | |
2129 | 2179 | let refByKey = keyAddressRefBy(newPlayer) | |
2130 | 2180 | let refBy = getString(refByKey) | |
2131 | 2181 | if (if (isDefined(refBy)) | |
2132 | 2182 | then isDefined(addressFromString(value(refBy))) | |
2133 | 2183 | else false) | |
2134 | 2184 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
2135 | 2185 | else { | |
2136 | 2186 | let refsKey = keyAddressReferrals(oldPlayer) | |
2137 | 2187 | let refs = getString(refsKey) | |
2138 | 2188 | let refsArray = if (isDefined(refs)) | |
2139 | 2189 | then split_4C(value(refs), "_") | |
2140 | 2190 | else nil | |
2141 | 2191 | if (containsElement(refsArray, newPlayer)) | |
2142 | 2192 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
2143 | 2193 | else { | |
2144 | 2194 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
2145 | 2195 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
2146 | 2196 | then value(olds) | |
2147 | 2197 | else makeString_2C((oldies :+ oldPlayer), "_") | |
2148 | 2198 | $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0) | |
2149 | 2199 | } | |
2150 | 2200 | } | |
2151 | 2201 | } | |
2152 | 2202 | } | |
2153 | 2203 | } | |
2154 | 2204 | ||
2155 | 2205 | ||
2156 | 2206 | ||
2157 | 2207 | @Callable(i) | |
2158 | 2208 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
2159 | 2209 | ||
2160 | 2210 | ||
2161 | 2211 | ||
2162 | 2212 | @Callable(i) | |
2163 | 2213 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
2164 | 2214 | let terrainCounts = countTerrains(terrains) | |
2165 | 2215 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
2166 | 2216 | } | |
2167 | 2217 | ||
2168 | 2218 | ||
2169 | 2219 | ||
2170 | 2220 | @Callable(i) | |
2171 | 2221 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
2172 | 2222 | ||
2173 | 2223 | ||
2174 | 2224 | ||
2175 | 2225 | @Callable(i) | |
2176 | 2226 | func getWarehouseREADONLY (landAssetId) = { | |
2177 | 2227 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2178 | 2228 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2179 | 2229 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2180 | 2230 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
2181 | 2231 | } | |
2182 | 2232 | ||
2183 | 2233 | ||
2184 | 2234 | ||
2185 | 2235 | @Callable(i) | |
2186 | 2236 | func saveLastTx () = if ((i.caller != wlgContract)) | |
2187 | 2237 | then throw("Access denied") | |
2188 | 2238 | else $Tuple2([prolog(i)], 42) | |
2189 | 2239 | ||
2190 | 2240 |
github/deemru/w8io/03bedc9 312.82 ms ◑![]()