tx · 3CmbbuuDHWZziLymzGUrYS8MSPxwaPDDfwVK1WJyFYSv 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.08700000 Waves 2023.08.08 01:26 [2700776] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "3CmbbuuDHWZziLymzGUrYS8MSPxwaPDDfwVK1WJyFYSv", "fee": 8700000, "feeAssetId": null, "timestamp": 1691447202915, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "4CRwavvqSPJTdTc9MjhyhBHM5GhbaoFXX8kbwYBFdWPtHjDxynuvJ8Uf6CCAfkUVVb16mD1W5SKfTCprKLUDGhCx" ], "script": "base64:BgK7AQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgUKAwEBARIAEgQKAggIEgASABIECgICAhIDCgEIEgQKAggIEgMKARgSBAoCCAgSBAoCCAgSAwoBCBIDCgEYEgMKAQgSBQoDCAgIEgQKAggIEgcKBQEBAQEBEgMKAQESBQoDAQEIEgMKAQgSAwoBCBIAEgQKAggBEgQKAggBEgMKAQgSAwoBCBIAEgMKAQjtAQEUa2V5TGFzdEFyYlRpbWVCeVVzZXIBBGFkZHIJAKwCAgIQbGFzdEFyYlRpbWVVc2VyXwUEYWRkcgAGU0NBTEU4AIDC1y8ADHhwTGV2ZWxTY2FsZQCAGQAPeHBMZXZlbFJlY2lwUG93AKAfABJudW1Qb2ludHNPbkxldmVsVXAAAwAMcmVxdWlyZW1lbnRzCQDMCAICCFN0cmVuZ3RoCQDMCAICCEFjY3VyYWN5CQDMCAICCUludGVsbGVjdAkAzAgCAglFbmR1cmFuY2UJAMwIAgIJRGV4dGVyaXR5CQDMCAICBUxldmVsCQDMCAICBkhlYWx0aAUDbmlsAAxjaGFyU3Ry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DbmlsAAAA5BmTqQ==", "height": 2700776, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ELN5oF1je9Nj8PavbF1FEGCVrP7yXsdqdoyDZ7YiEP7q Next: EFudjwTr7X6oZCNQwCcDgd9bCjHbaToM2TmsxUvBbDEA Diff:
Old | New | Differences | |
---|---|---|---|
267 | 267 | let KSALLOWXPLEVELS = false | |
268 | 268 | ||
269 | 269 | let KSSEPARATEPUBLIC = false | |
270 | + | ||
271 | + | let KS_ALLOW_BIG_INFRA_MERGE = false | |
270 | 272 | ||
271 | 273 | let chain = take(drop(this.bytes, 1), 1) | |
272 | 274 | ||
377 | 379 | ||
378 | 380 | ||
379 | 381 | func keyResProportions () = "resTypesProportions" | |
382 | + | ||
383 | + | ||
384 | + | func keyResTypesByContinent (continent) = ("resTypesByContinent_" + continent) | |
380 | 385 | ||
381 | 386 | ||
382 | 387 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
856 | 861 | func updater (acc,i) = { | |
857 | 862 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
858 | 863 | if ((0 > result)) | |
859 | - | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", | |
864 | + | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
860 | 865 | else (acc :+ toString(result)) | |
861 | 866 | } | |
862 | 867 | ||
1458 | 1463 | ||
1459 | 1464 | ||
1460 | 1465 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1461 | - | let $ | |
1466 | + | let $t03031630855 = if ((claimMode == claimModeWh)) | |
1462 | 1467 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1463 | 1468 | else { | |
1464 | 1469 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1468 | 1473 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1469 | 1474 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1470 | 1475 | } | |
1471 | - | let landAssetId = $ | |
1472 | - | let duckId = $ | |
1476 | + | let landAssetId = $t03031630855._1 | |
1477 | + | let duckId = $t03031630855._2 | |
1473 | 1478 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1474 | 1479 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1475 | 1480 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1517 | 1522 | let currentPack = getBackpack(bpKey) | |
1518 | 1523 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1519 | 1524 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1520 | - | let $ | |
1525 | + | let $t03322934100 = if ((claimMode == claimModeWh)) | |
1521 | 1526 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1522 | 1527 | else if ((claimMode == claimModeDuck)) | |
1523 | 1528 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1526 | 1531 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1527 | 1532 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1528 | 1533 | } | |
1529 | - | let whRes = $ | |
1530 | - | let bpRes = $ | |
1531 | - | let loftO = $ | |
1532 | - | let loftF = $ | |
1534 | + | let whRes = $t03322934100._1 | |
1535 | + | let bpRes = $t03322934100._2 | |
1536 | + | let loftO = $t03322934100._3 | |
1537 | + | let loftF = $t03322934100._4 | |
1533 | 1538 | $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]], "_")]) | |
1534 | 1539 | } | |
1535 | 1540 | } | |
1551 | 1556 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1552 | 1557 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1553 | 1558 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1554 | - | if ((curLevel >= 3)) | |
1559 | + | if (if (!(KS_ALLOW_BIG_INFRA_MERGE)) | |
1560 | + | then (curLevel >= 3) | |
1561 | + | else false) | |
1555 | 1562 | then throw("Currently max infrastructure level = 3") | |
1556 | 1563 | else { | |
1564 | + | let maxInfra = ((sqrt(pieces, 0, 0, DOWN) / 5) + 2) | |
1557 | 1565 | let newLevel = (curLevel + 1) | |
1558 | - | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1559 | - | if (if (!(shouldUseMat)) | |
1560 | - | then (paymentAmount != cost) | |
1566 | + | if (if (KS_ALLOW_BIG_INFRA_MERGE) | |
1567 | + | then (newLevel > maxInfra) | |
1561 | 1568 | else false) | |
1562 | - | then throw((" | |
1569 | + | then throw(("Currently max infrastructure level = " + toString(maxInfra))) | |
1563 | 1570 | else { | |
1564 | - | let bpKey = keyBackpackByDuck(c._1) | |
1565 | - | let currentPack = getBackpack(bpKey) | |
1566 | - | let mList = split(currentPack[bpIdxMat], "_") | |
1567 | - | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1568 | - | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1569 | - | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1570 | - | let whData = claimResult._5 | |
1571 | - | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1572 | - | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1573 | - | let newVol = getWarehouseTotalVolume(newVolData) | |
1574 | - | let loft = split(whData[whIdxLOFT], "_") | |
1575 | - | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1576 | - | $Tuple3(([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, matUsed) | |
1571 | + | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1572 | + | if (if (!(shouldUseMat)) | |
1573 | + | then (paymentAmount != cost) | |
1574 | + | else false) | |
1575 | + | then throw(("Payment attached should be " + toString(cost))) | |
1576 | + | else { | |
1577 | + | let bpKey = keyBackpackByDuck(c._1) | |
1578 | + | let currentPack = getBackpack(bpKey) | |
1579 | + | let mList = split(currentPack[bpIdxMat], "_") | |
1580 | + | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1581 | + | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1582 | + | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1583 | + | let whData = claimResult._5 | |
1584 | + | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1585 | + | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1586 | + | let newVol = getWarehouseTotalVolume(newVolData) | |
1587 | + | let loft = split(whData[whIdxLOFT], "_") | |
1588 | + | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1589 | + | $Tuple3(([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, matUsed) | |
1590 | + | } | |
1577 | 1591 | } | |
1578 | 1592 | } | |
1579 | 1593 | } | |
1719 | 1733 | let landIndex = (pieces / SSIZE) | |
1720 | 1734 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1721 | 1735 | let props = updateProportionsInternal(acc._6, terrainCounts, landIndex, -1) | |
1736 | + | let cProps = updateProportionsInternal(acc._10, terrainCounts, landIndex, -1) | |
1722 | 1737 | let sumTerrains = updateProportionsInternal(acc._9, terrainCounts, landIndex, 1) | |
1723 | 1738 | let lands = acc._7 | |
1724 | 1739 | let idx = indexOf(lands, landAssetId) | |
1727 | 1742 | else { | |
1728 | 1743 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1729 | 1744 | let customName = valueOrElse(getString(customKey), "") | |
1730 | - | $ | |
1745 | + | $Tuple10(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), sumTerrains, cProps) | |
1731 | 1746 | } | |
1732 | 1747 | } | |
1733 | 1748 | } | |
1743 | 1758 | let landsIn = if (isDefined(landsStr)) | |
1744 | 1759 | then split_51C(value(landsStr), "_") | |
1745 | 1760 | else nil | |
1761 | + | let cont0 = split(value(assetInfo(fromBase58String(landAssetIds[0]))).description, "_")[recContinent] | |
1762 | + | let contProps = split(valueOrElse(getString(keyResTypesByContinent(cont0)), "0_0_0_0_0_0"), "_") | |
1746 | 1763 | let r = { | |
1747 | 1764 | let $l = landAssetIds | |
1748 | 1765 | let $s = size($l) | |
1749 | - | let $acc0 = $ | |
1766 | + | let $acc0 = $Tuple10(formula, 0, "", currentPack[bpIdxRes], nil, propList, landsIn, 0, split("0_0_0_0_0_0", "_"), contProps) | |
1750 | 1767 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1751 | 1768 | then $a | |
1752 | 1769 | else checkMerge($a, $l[$i]) | |
1768 | 1785 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1769 | 1786 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1770 | 1787 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1771 | - | $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1788 | + | $Tuple2(((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1772 | 1789 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1773 | 1790 | else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces)) | |
1774 | 1791 | then 0 | |
1775 | - | 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(), makeString(r._6, "_"))) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
1792 | + | 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(), makeString(r._6, "_"))) :+ StringEntry(keyResTypesByContinent(continent), makeString(r._10, "_"))) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
1776 | 1793 | } | |
1777 | 1794 | } | |
1778 | 1795 | ||
1859 | 1876 | let d = split(asset.description, "_") | |
1860 | 1877 | let terrainCounts = countTerrains(d[recTerrains]) | |
1861 | 1878 | let pieces = numPiecesBySize(d[recLandSize]) | |
1862 | - | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1879 | + | let landIndex = (pieces / SSIZE) | |
1880 | + | let props = updateProportions(terrainCounts, landIndex, 1) | |
1881 | + | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1882 | + | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1883 | + | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
1863 | 1884 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1864 | 1885 | let landsKey = keyStakedLandsByOwner(address) | |
1865 | 1886 | let landsStr = getString(landsKey) | |
1873 | 1894 | let piecesKey = keyStakedPiecesByOwner(address) | |
1874 | 1895 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
1875 | 1896 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [address], nil)) | |
1876 | - | $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), prologAction], wlgResult) | |
1897 | + | $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), prologAction], wlgResult) | |
1877 | 1898 | } | |
1878 | 1899 | } | |
1879 | 1900 | } | |
1893 | 1914 | let addr = toString(i.caller) | |
1894 | 1915 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1895 | 1916 | let landAssetId = c._2 | |
1917 | + | let d = c._3 | |
1896 | 1918 | let landsKey = keyStakedLandsByOwner(addr) | |
1897 | - | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1898 | - | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1899 | - | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1919 | + | let terrainCounts = countTerrains(d[recTerrains]) | |
1920 | + | let pieces = numPiecesBySize(d[recLandSize]) | |
1921 | + | let landIndex = (pieces / SSIZE) | |
1922 | + | let props = updateProportions(terrainCounts, landIndex, -1) | |
1923 | + | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1924 | + | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1925 | + | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, -1), "_") | |
1900 | 1926 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1901 | 1927 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1902 | 1928 | let idx = indexOf(lands, landAssetId) | |
1918 | 1944 | then 0 | |
1919 | 1945 | else (stakedPieces - pieces) | |
1920 | 1946 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [addr], nil)) | |
1921 | - | $Tuple2([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)) | |
1947 | + | $Tuple2([ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1922 | 1948 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1923 | 1949 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces), prologAction], wlgResult) | |
1924 | 1950 | } | |
2420 | 2446 | let loftF = ((loftT - loftL) - loftO) | |
2421 | 2447 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2422 | 2448 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2449 | + | } | |
2450 | + | ||
2451 | + | ||
2452 | + | ||
2453 | + | @Callable(i) | |
2454 | + | func fixContinentProportions (landAssetIds) = if ((i.caller != restContract)) | |
2455 | + | then throw("Access denied") | |
2456 | + | else { | |
2457 | + | func getProps (acc,cont) = (acc :+ valueOrElse(getString(keyResTypesByContinent(cont)), "0_0_0_0_0_0")) | |
2458 | + | ||
2459 | + | let p = { | |
2460 | + | let $l = continents | |
2461 | + | let $s = size($l) | |
2462 | + | let $acc0 = nil | |
2463 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2464 | + | then $a | |
2465 | + | else getProps($a, $l[$i]) | |
2466 | + | ||
2467 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2468 | + | then $a | |
2469 | + | else throw("List size exceeds 5") | |
2470 | + | ||
2471 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
2472 | + | } | |
2473 | + | func processor (acc,landAssetId) = { | |
2474 | + | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2475 | + | let d = split(asset.description, "_") | |
2476 | + | let landIndex = (numPiecesBySize(d[recLandSize]) / SSIZE) | |
2477 | + | let cont = d[recContinent] | |
2478 | + | let terrainCounts = countTerrains(d[recTerrains]) | |
2479 | + | let continentIdx = value(indexOf(continents, cont)) | |
2480 | + | let contProps = split(acc[continentIdx], "_") | |
2481 | + | let updated = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
2482 | + | match cont { | |
2483 | + | case _ => | |
2484 | + | if (("Americas" == $match0)) | |
2485 | + | then [updated, acc[1], acc[2], acc[3], acc[4]] | |
2486 | + | else if (("Europe" == $match0)) | |
2487 | + | then [acc[0], updated, acc[2], acc[3], acc[4]] | |
2488 | + | else if (("Asia" == $match0)) | |
2489 | + | then [acc[0], acc[1], updated, acc[3], acc[4]] | |
2490 | + | else if (("Africa" == $match0)) | |
2491 | + | then [acc[0], acc[1], acc[2], updated, acc[4]] | |
2492 | + | else if (("Oceania" == $match0)) | |
2493 | + | then [acc[0], acc[1], acc[2], acc[3], updated] | |
2494 | + | else throw("wrong continent") | |
2495 | + | } | |
2496 | + | } | |
2497 | + | ||
2498 | + | let r = { | |
2499 | + | let $l = landAssetIds | |
2500 | + | let $s = size($l) | |
2501 | + | let $acc0 = p | |
2502 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
2503 | + | then $a | |
2504 | + | else processor($a, $l[$i]) | |
2505 | + | ||
2506 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
2507 | + | then $a | |
2508 | + | else throw("List size exceeds 100") | |
2509 | + | ||
2510 | + | $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) | |
2511 | + | } | |
2512 | + | $Tuple2([StringEntry(keyResTypesByContinent("Americas"), r[0]), StringEntry(keyResTypesByContinent("Europe"), r[1]), StringEntry(keyResTypesByContinent("Asia"), r[2]), StringEntry(keyResTypesByContinent("Africa"), r[3]), StringEntry(keyResTypesByContinent("Oceania"), r[4])], 0) | |
2423 | 2513 | } | |
2424 | 2514 | ||
2425 | 2515 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func keyLastArbTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let SCALE8 = 100000000 | |
8 | 8 | ||
9 | 9 | let xpLevelScale = 3200 | |
10 | 10 | ||
11 | 11 | let xpLevelRecipPow = 4000 | |
12 | 12 | ||
13 | 13 | let numPointsOnLevelUp = 3 | |
14 | 14 | ||
15 | 15 | let requirements = ["Strength", "Accuracy", "Intellect", "Endurance", "Dexterity", "Level", "Health"] | |
16 | 16 | ||
17 | 17 | let charStrength = 0 | |
18 | 18 | ||
19 | 19 | let charAccuracy = 1 | |
20 | 20 | ||
21 | 21 | let charIntellect = 2 | |
22 | 22 | ||
23 | 23 | let charEndurance = 3 | |
24 | 24 | ||
25 | 25 | let charDexterity = 4 | |
26 | 26 | ||
27 | 27 | let NUMSEGMENTS = 6 | |
28 | 28 | ||
29 | 29 | let NUMMAINAUX = 2 | |
30 | 30 | ||
31 | 31 | let MAXSLOTS = 2 | |
32 | 32 | ||
33 | 33 | let MAXPRODINSLOT = 30 | |
34 | 34 | ||
35 | 35 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyUserXP (addr) = ("userXP_" + addr) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keySavedHealth (duckAssetId) = ("savedHealth_" + duckAssetId) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keySavedLocation (duckAssetId) = ("savedLocation_" + duckAssetId) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | let xpClaim = 10000 | |
69 | 69 | ||
70 | 70 | let xpSuccessFlight = 10000 | |
71 | 71 | ||
72 | 72 | let xpFailFlight = 2000 | |
73 | 73 | ||
74 | 74 | let xpCallES = 100000 | |
75 | 75 | ||
76 | 76 | let xpCustomName = 1000000 | |
77 | 77 | ||
78 | 78 | let xpNewSLand = 5000000 | |
79 | 79 | ||
80 | 80 | let xpUpgradeInfra = 10000 | |
81 | 81 | ||
82 | 82 | let xpMerge = 1000000 | |
83 | 83 | ||
84 | 84 | let xpOnboard = 1000000 | |
85 | 85 | ||
86 | 86 | let xpHeal = 10000 | |
87 | 87 | ||
88 | 88 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func maxHealth (level) = (100 + level) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func levelUp (currLevel,newXP) = { | |
95 | 95 | let newLevel = levelByXP(newXP) | |
96 | 96 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getDuckStats (stakingContract,duckAssetId) = { | |
101 | 101 | let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_") | |
102 | 102 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
103 | 103 | let health = valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), maxHealth(lvl)) | |
104 | 104 | [parseIntValue(chars[charStrength]), parseIntValue(chars[charAccuracy]), parseIntValue(chars[charIntellect]), parseIntValue(chars[charEndurance]), parseIntValue(chars[charDexterity]), lvl, health] | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let LANDPREFIX = "LAND" | |
109 | 109 | ||
110 | 110 | let DUCKPREFIX = "DUCK" | |
111 | 111 | ||
112 | 112 | let ARTPRESALE = "PRESALE" | |
113 | 113 | ||
114 | 114 | let NUMRES = 6 | |
115 | 115 | ||
116 | 116 | let DAILYRESBYPIECE = 3456000 | |
117 | 117 | ||
118 | 118 | let DAYMILLIS = 86400000 | |
119 | 119 | ||
120 | 120 | let WHMULTIPLIER = 10000000000 | |
121 | 121 | ||
122 | 122 | let DEFAULTLOCATION = "Africa_F_Africa" | |
123 | 123 | ||
124 | 124 | let RESOURCEPRICEMIN = 39637 | |
125 | 125 | ||
126 | 126 | let ESSELLCOEF = 10 | |
127 | 127 | ||
128 | 128 | 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", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3"] | |
129 | 129 | ||
130 | 130 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
131 | 131 | ||
132 | 132 | let COEFF2MAT = 10000000 | |
133 | 133 | ||
134 | 134 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_"] | |
135 | 135 | ||
136 | 136 | let rIdxCoeff = 6 | |
137 | 137 | ||
138 | 138 | let rIdxRequirements = 9 | |
139 | 139 | ||
140 | 140 | let rIdxSlots = 10 | |
141 | 141 | ||
142 | 142 | let PRODUCTPKGSIZE = 10 | |
143 | 143 | ||
144 | 144 | let whIdxLevels = 0 | |
145 | 145 | ||
146 | 146 | let whIdxRes = 1 | |
147 | 147 | ||
148 | 148 | let whIdxMat = 2 | |
149 | 149 | ||
150 | 150 | let whIdxProd = 3 | |
151 | 151 | ||
152 | 152 | let whIdxLOFT = 4 | |
153 | 153 | ||
154 | 154 | let volLocked = 0 | |
155 | 155 | ||
156 | 156 | let volOccupied = 1 | |
157 | 157 | ||
158 | 158 | let volFree = 2 | |
159 | 159 | ||
160 | 160 | let volTotal = 3 | |
161 | 161 | ||
162 | 162 | let bpIdxLevel = 0 | |
163 | 163 | ||
164 | 164 | let bpIdxRes = 1 | |
165 | 165 | ||
166 | 166 | let bpIdxMat = 2 | |
167 | 167 | ||
168 | 168 | let bpIdxProd = 3 | |
169 | 169 | ||
170 | 170 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func keyOnboardArtActivatedOnDuck (duckAssetId) = ("onboardArtActivatedOnDuck_" + duckAssetId) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func keyBlocked () = "contractsBlocked" | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | let lastTourIdKey = "%s__lastTourId" | |
234 | 234 | ||
235 | 235 | func keyTourStaticDataById (tId) = ("%s%d__tourStaticData__" + toString(tId)) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func keyTourDynamicDataById (tId) = ("%s%d__tourDynamicData__" + toString(tId)) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | let idxStatic = 0 | |
242 | 242 | ||
243 | 243 | let idxDynamic = 1 | |
244 | 244 | ||
245 | 245 | func getTourData (tourContract,tId) = { | |
246 | 246 | let static = split(valueOrErrorMessage(getString(tourContract, keyTourStaticDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
247 | 247 | let dynamic = split(valueOrErrorMessage(getString(tourContract, keyTourDynamicDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
248 | 248 | [static, dynamic] | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | let tStaticEnd = 6 | |
253 | 253 | ||
254 | 254 | let tDynamicStatus = 1 | |
255 | 255 | ||
256 | 256 | let tDynamicWinResult = 3 | |
257 | 257 | ||
258 | 258 | let locIdxContinent = 0 | |
259 | 259 | ||
260 | 260 | let locIdxType = 1 | |
261 | 261 | ||
262 | 262 | let locIdxId = 2 | |
263 | 263 | ||
264 | 264 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | let KSALLOWXPLEVELS = false | |
268 | 268 | ||
269 | 269 | let KSSEPARATEPUBLIC = false | |
270 | + | ||
271 | + | let KS_ALLOW_BIG_INFRA_MERGE = false | |
270 | 272 | ||
271 | 273 | let chain = take(drop(this.bytes, 1), 1) | |
272 | 274 | ||
273 | 275 | let usdtAssetId = match chain { | |
274 | 276 | case _ => | |
275 | 277 | if ((base58'2W' == $match0)) | |
276 | 278 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
277 | 279 | else if ((base58'2T' == $match0)) | |
278 | 280 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
279 | 281 | else throw("Unknown chain") | |
280 | 282 | } | |
281 | 283 | ||
282 | 284 | let defaultRestAddressStr = match chain { | |
283 | 285 | case _ => | |
284 | 286 | if ((base58'2W' == $match0)) | |
285 | 287 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
286 | 288 | else if ((base58'2T' == $match0)) | |
287 | 289 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
288 | 290 | else throw("Unknown chain") | |
289 | 291 | } | |
290 | 292 | ||
291 | 293 | let InfraUpgradeCostS = match chain { | |
292 | 294 | case _ => | |
293 | 295 | if ((base58'2W' == $match0)) | |
294 | 296 | then 10000000000 | |
295 | 297 | else if ((base58'2T' == $match0)) | |
296 | 298 | then 100000000 | |
297 | 299 | else throw("Unknown chain") | |
298 | 300 | } | |
299 | 301 | ||
300 | 302 | let arbitrageDelay = match chain { | |
301 | 303 | case _ => | |
302 | 304 | if ((base58'2W' == $match0)) | |
303 | 305 | then 600000 | |
304 | 306 | else if ((base58'2T' == $match0)) | |
305 | 307 | then 60000 | |
306 | 308 | else throw("Unknown chain") | |
307 | 309 | } | |
308 | 310 | ||
309 | 311 | let SEP = "__" | |
310 | 312 | ||
311 | 313 | let MULT6 = 1000000 | |
312 | 314 | ||
313 | 315 | let MULT8 = 100000000 | |
314 | 316 | ||
315 | 317 | let SSIZE = 25 | |
316 | 318 | ||
317 | 319 | let MSIZE = 100 | |
318 | 320 | ||
319 | 321 | let LSIZE = 225 | |
320 | 322 | ||
321 | 323 | let XLSIZE = 400 | |
322 | 324 | ||
323 | 325 | let XXLSIZE = 625 | |
324 | 326 | ||
325 | 327 | let ITER6 = [0, 1, 2, 3, 4, 5] | |
326 | 328 | ||
327 | 329 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
328 | 330 | ||
329 | 331 | ||
330 | 332 | let IdxCfgStakingDapp = 1 | |
331 | 333 | ||
332 | 334 | let IdxCfgEconomyDapp = 2 | |
333 | 335 | ||
334 | 336 | let IdxCfgGovernanceDapp = 3 | |
335 | 337 | ||
336 | 338 | let IdxCfgWlgDapp = 4 | |
337 | 339 | ||
338 | 340 | let IdxCfgTournamentDapp = 7 | |
339 | 341 | ||
340 | 342 | func keyRestCfg () = "%s__restConfig" | |
341 | 343 | ||
342 | 344 | ||
343 | 345 | func keyRestAddress () = "%s__restAddr" | |
344 | 346 | ||
345 | 347 | ||
346 | 348 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
347 | 349 | ||
348 | 350 | ||
349 | 351 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
350 | 352 | ||
351 | 353 | ||
352 | 354 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
353 | 355 | ||
354 | 356 | let restCfg = readRestCfgOrFail(restContract) | |
355 | 357 | ||
356 | 358 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
357 | 359 | ||
358 | 360 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
359 | 361 | ||
360 | 362 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
361 | 363 | ||
362 | 364 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
363 | 365 | ||
364 | 366 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
365 | 367 | ||
366 | 368 | let recLandNum = 0 | |
367 | 369 | ||
368 | 370 | let recLandSize = 1 | |
369 | 371 | ||
370 | 372 | let recTerrains = 2 | |
371 | 373 | ||
372 | 374 | let recContinent = 3 | |
373 | 375 | ||
374 | 376 | let randomDelay = 2 | |
375 | 377 | ||
376 | 378 | func keyCommit (address) = ("finishBlockForAddr_" + address) | |
377 | 379 | ||
378 | 380 | ||
379 | 381 | func keyResProportions () = "resTypesProportions" | |
382 | + | ||
383 | + | ||
384 | + | func keyResTypesByContinent (continent) = ("resTypesByContinent_" + continent) | |
380 | 385 | ||
381 | 386 | ||
382 | 387 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
383 | 388 | ||
384 | 389 | ||
385 | 390 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
386 | 391 | ||
387 | 392 | ||
388 | 393 | func asString (v) = match v { | |
389 | 394 | case s: String => | |
390 | 395 | s | |
391 | 396 | case _ => | |
392 | 397 | throw("fail to cast into String") | |
393 | 398 | } | |
394 | 399 | ||
395 | 400 | ||
396 | 401 | func asInt (v) = match v { | |
397 | 402 | case n: Int => | |
398 | 403 | n | |
399 | 404 | case _ => | |
400 | 405 | throw("fail to cast into Int") | |
401 | 406 | } | |
402 | 407 | ||
403 | 408 | ||
404 | 409 | func numPiecesBySize (landSize) = match landSize { | |
405 | 410 | case _ => | |
406 | 411 | if (("S" == $match0)) | |
407 | 412 | then SSIZE | |
408 | 413 | else if (("M" == $match0)) | |
409 | 414 | then MSIZE | |
410 | 415 | else if (("L" == $match0)) | |
411 | 416 | then LSIZE | |
412 | 417 | else if (("XL" == $match0)) | |
413 | 418 | then XLSIZE | |
414 | 419 | else if (("XXL" == $match0)) | |
415 | 420 | then XXLSIZE | |
416 | 421 | else throw("Unknown land size") | |
417 | 422 | } | |
418 | 423 | ||
419 | 424 | ||
420 | 425 | func isDigit (s) = isDefined(parseInt(s)) | |
421 | 426 | ||
422 | 427 | ||
423 | 428 | let incubatorAddr = match chain { | |
424 | 429 | case _ => | |
425 | 430 | if ((base58'2W' == $match0)) | |
426 | 431 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
427 | 432 | else if ((base58'2T' == $match0)) | |
428 | 433 | then this | |
429 | 434 | else throw("Unknown chain") | |
430 | 435 | } | |
431 | 436 | ||
432 | 437 | let breederAddr = match chain { | |
433 | 438 | case _ => | |
434 | 439 | if ((base58'2W' == $match0)) | |
435 | 440 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
436 | 441 | else if ((base58'2T' == $match0)) | |
437 | 442 | then this | |
438 | 443 | else throw("Unknown chain") | |
439 | 444 | } | |
440 | 445 | ||
441 | 446 | let pub = match chain { | |
442 | 447 | case _ => | |
443 | 448 | if ((base58'2W' == $match0)) | |
444 | 449 | then if (KSSEPARATEPUBLIC) | |
445 | 450 | then base58'CWsMtTZC5BjjoL4Q1ayW4Wwb1ehGACQB6DrKyPgotKfm' | |
446 | 451 | else base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
447 | 452 | else if ((base58'2T' == $match0)) | |
448 | 453 | then base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
449 | 454 | else throw("Unknown chain") | |
450 | 455 | } | |
451 | 456 | ||
452 | 457 | let medKitHp = [30, 60, 120] | |
453 | 458 | ||
454 | 459 | let FIVEMINUTESMILLIS = 300000 | |
455 | 460 | ||
456 | 461 | let RENAMINGCOST = 5000000 | |
457 | 462 | ||
458 | 463 | let MAXNAMELEN = 50 | |
459 | 464 | ||
460 | 465 | let InfraUpgradeCostSUsdt = 10000000 | |
461 | 466 | ||
462 | 467 | let EXPMATERIALS = match chain { | |
463 | 468 | case _ => | |
464 | 469 | if ((base58'2W' == $match0)) | |
465 | 470 | then 252289527462 | |
466 | 471 | else if ((base58'2T' == $match0)) | |
467 | 472 | then 2522895274 | |
468 | 473 | else throw("Unknown chain") | |
469 | 474 | } | |
470 | 475 | ||
471 | 476 | let EXPUSDT = match chain { | |
472 | 477 | case _ => | |
473 | 478 | if ((base58'2W' == $match0)) | |
474 | 479 | then 250000000 | |
475 | 480 | else if ((base58'2T' == $match0)) | |
476 | 481 | then 250000000 | |
477 | 482 | else throw("Unknown chain") | |
478 | 483 | } | |
479 | 484 | ||
480 | 485 | let FIVEX = toBigInt(5) | |
481 | 486 | ||
482 | 487 | let TWENTYX = toBigInt(20) | |
483 | 488 | ||
484 | 489 | let TWENTY2X = toBigInt((20 * 20)) | |
485 | 490 | ||
486 | 491 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
487 | 492 | ||
488 | 493 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
489 | 494 | ||
490 | 495 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
491 | 496 | ||
492 | 497 | let PRESALENUMLANDS = 500 | |
493 | 498 | ||
494 | 499 | func keyNextFreeLandNum () = "nextLandNum" | |
495 | 500 | ||
496 | 501 | ||
497 | 502 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
498 | 503 | ||
499 | 504 | ||
500 | 505 | func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name) | |
501 | 506 | ||
502 | 507 | ||
503 | 508 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
504 | 509 | ||
505 | 510 | ||
506 | 511 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
507 | 512 | ||
508 | 513 | ||
509 | 514 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
510 | 515 | ||
511 | 516 | ||
512 | 517 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
513 | 518 | ||
514 | 519 | ||
515 | 520 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
516 | 521 | ||
517 | 522 | ||
518 | 523 | func keyOldies () = "oldiesList" | |
519 | 524 | ||
520 | 525 | ||
521 | 526 | let claimModeWh = 0 | |
522 | 527 | ||
523 | 528 | let claimModeDuck = 1 | |
524 | 529 | ||
525 | 530 | let claimModeWhThenDuck = 2 | |
526 | 531 | ||
527 | 532 | let flHealth = 0 | |
528 | 533 | ||
529 | 534 | let flTimestamp = 5 | |
530 | 535 | ||
531 | 536 | let flBonus = 6 | |
532 | 537 | ||
533 | 538 | let flProdsUsed = 7 | |
534 | 539 | ||
535 | 540 | func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
536 | 541 | ||
537 | 542 | ||
538 | 543 | func distributeByWeights (total,weights) = { | |
539 | 544 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
540 | 545 | if ((0 >= sum)) | |
541 | 546 | then throw("Zero weights sum") | |
542 | 547 | else { | |
543 | 548 | let norm6 = fraction(total, MULT6, sum) | |
544 | 549 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
545 | 550 | ||
546 | 551 | let $l = weights | |
547 | 552 | let $s = size($l) | |
548 | 553 | let $acc0 = nil | |
549 | 554 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
550 | 555 | then $a | |
551 | 556 | else normalizer($a, $l[$i]) | |
552 | 557 | ||
553 | 558 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
554 | 559 | then $a | |
555 | 560 | else throw("List size exceeds 6") | |
556 | 561 | ||
557 | 562 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
558 | 563 | } | |
559 | 564 | } | |
560 | 565 | ||
561 | 566 | ||
562 | 567 | func getNeededMaterials (total) = { | |
563 | 568 | let props = split(value(getString(keyResProportions())), "_") | |
564 | 569 | if ((size(props) != NUMRES)) | |
565 | 570 | then throw("Wrong proportions data") | |
566 | 571 | else { | |
567 | 572 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
568 | 573 | distributeByWeights(total, r) | |
569 | 574 | } | |
570 | 575 | } | |
571 | 576 | ||
572 | 577 | ||
573 | 578 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
574 | 579 | let need = getNeededMaterials(totalNeed) | |
575 | 580 | func subtractor (acc,idx) = { | |
576 | 581 | let result = (parseIntValue(has[idx]) - need[idx]) | |
577 | 582 | if ((0 > result)) | |
578 | 583 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
579 | 584 | else (acc :+ toString(result)) | |
580 | 585 | } | |
581 | 586 | ||
582 | 587 | if (shouldUseMat) | |
583 | 588 | then { | |
584 | 589 | let $l = ITER6 | |
585 | 590 | let $s = size($l) | |
586 | 591 | let $acc0 = nil | |
587 | 592 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
588 | 593 | then $a | |
589 | 594 | else subtractor($a, $l[$i]) | |
590 | 595 | ||
591 | 596 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
592 | 597 | then $a | |
593 | 598 | else throw("List size exceeds 6") | |
594 | 599 | ||
595 | 600 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
596 | 601 | } | |
597 | 602 | else has | |
598 | 603 | } | |
599 | 604 | ||
600 | 605 | ||
601 | 606 | func subtractEquipment (oldEq,pUsed) = if ((pUsed == "")) | |
602 | 607 | then oldEq | |
603 | 608 | else { | |
604 | 609 | func subUsed (acc,idxAmt) = { | |
605 | 610 | let parts = split(idxAmt, ",") | |
606 | 611 | if ((size(parts) != 2)) | |
607 | 612 | then throw("Incorrect format, should be index,amount") | |
608 | 613 | else { | |
609 | 614 | let idx = parseIntValue(parts[0]) | |
610 | 615 | if (if ((0 > idx)) | |
611 | 616 | then true | |
612 | 617 | else (idx >= size(productionMatrix))) | |
613 | 618 | then throw("Unknown product idx") | |
614 | 619 | else { | |
615 | 620 | let amt = parseIntValue(parts[1]) | |
616 | 621 | let eqParts = split(acc, (parts[0] + ":")) | |
617 | 622 | if ((size(eqParts) != 2)) | |
618 | 623 | then throw((("You don't have " + prodTypes[idx]) + " equipped")) | |
619 | 624 | else { | |
620 | 625 | let tmp = eqParts[1] | |
621 | 626 | let numLen = if (isDigit(take(drop(tmp, 1), 1))) | |
622 | 627 | then 2 | |
623 | 628 | else 1 | |
624 | 629 | let curr = parseIntValue(take(tmp, numLen)) | |
625 | 630 | let tail = drop(tmp, numLen) | |
626 | 631 | let newAmt = if ((curr >= amt)) | |
627 | 632 | then (curr - amt) | |
628 | 633 | else throw(((((("You equipped " + toString(curr)) + " of ") + prodTypes[idx]) + ", but tried to use ") + toString(amt))) | |
629 | 634 | ((((eqParts[0] + parts[0]) + ":") + toString(newAmt)) + tail) | |
630 | 635 | } | |
631 | 636 | } | |
632 | 637 | } | |
633 | 638 | } | |
634 | 639 | ||
635 | 640 | let $l = split(pUsed, "_") | |
636 | 641 | let $s = size($l) | |
637 | 642 | let $acc0 = oldEq | |
638 | 643 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
639 | 644 | then $a | |
640 | 645 | else subUsed($a, $l[$i]) | |
641 | 646 | ||
642 | 647 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
643 | 648 | then $a | |
644 | 649 | else throw("List size exceeds 10") | |
645 | 650 | ||
646 | 651 | $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) | |
647 | 652 | } | |
648 | 653 | ||
649 | 654 | ||
650 | 655 | func prodStrToBytes (prodStr) = { | |
651 | 656 | let pList = if ((prodStr == "")) | |
652 | 657 | then nil | |
653 | 658 | else split(prodStr, "_") | |
654 | 659 | func toBV (acc,recipe) = { | |
655 | 660 | let j = (size(acc) / 8) | |
656 | 661 | let curr = if ((size(pList) > j)) | |
657 | 662 | then parseIntValue(pList[j]) | |
658 | 663 | else 0 | |
659 | 664 | (acc + toBytes(curr)) | |
660 | 665 | } | |
661 | 666 | ||
662 | 667 | let $l = productionMatrix | |
663 | 668 | let $s = size($l) | |
664 | 669 | let $acc0 = base58'' | |
665 | 670 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
666 | 671 | then $a | |
667 | 672 | else toBV($a, $l[$i]) | |
668 | 673 | ||
669 | 674 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
670 | 675 | then $a | |
671 | 676 | else throw("List size exceeds 50") | |
672 | 677 | ||
673 | 678 | $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) | |
674 | 679 | } | |
675 | 680 | ||
676 | 681 | ||
677 | 682 | func bytesToProdStr (bv) = { | |
678 | 683 | func fromBV (acc,recipe) = { | |
679 | 684 | let j = size(acc) | |
680 | 685 | let b = take(drop(bv, (8 * j)), 8) | |
681 | 686 | (acc :+ toString(toInt(b))) | |
682 | 687 | } | |
683 | 688 | ||
684 | 689 | makeString({ | |
685 | 690 | let $l = productionMatrix | |
686 | 691 | let $s = size($l) | |
687 | 692 | let $acc0 = nil | |
688 | 693 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
689 | 694 | then $a | |
690 | 695 | else fromBV($a, $l[$i]) | |
691 | 696 | ||
692 | 697 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
693 | 698 | then $a | |
694 | 699 | else throw("List size exceeds 50") | |
695 | 700 | ||
696 | 701 | $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) | |
697 | 702 | }, "_") | |
698 | 703 | } | |
699 | 704 | ||
700 | 705 | ||
701 | 706 | func checkStatRequirements (duckStats,reqs) = { | |
702 | 707 | func check (acc,j) = if ((parseIntValue(reqs[j]) > duckStats[j])) | |
703 | 708 | then throw(("Requirement not satisfied: " + requirements[j])) | |
704 | 709 | else true | |
705 | 710 | ||
706 | 711 | let $l = [0, 1, 2, 3, 4, 5, 6] | |
707 | 712 | let $s = size($l) | |
708 | 713 | let $acc0 = false | |
709 | 714 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
710 | 715 | then $a | |
711 | 716 | else check($a, $l[$i]) | |
712 | 717 | ||
713 | 718 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
714 | 719 | then $a | |
715 | 720 | else throw("List size exceeds 7") | |
716 | 721 | ||
717 | 722 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7) | |
718 | 723 | } | |
719 | 724 | ||
720 | 725 | ||
721 | 726 | func addProdB (idxCnt,pList,isPositive,segment,mainAux,slot,duckStats) = { | |
722 | 727 | let parts = split(idxCnt, ":") | |
723 | 728 | if ((size(parts) != 2)) | |
724 | 729 | then throw("Incorrect format, should be index:amount") | |
725 | 730 | else if (if (!(isPositive)) | |
726 | 731 | then (size(parts[0]) != 2) | |
727 | 732 | else false) | |
728 | 733 | then throw("Product idx should be 2 digits, zero padded") | |
729 | 734 | else { | |
730 | 735 | let productIdx = parseIntValue(parts[0]) | |
731 | 736 | let count = parseIntValue(parts[1]) | |
732 | 737 | if (if ((0 > productIdx)) | |
733 | 738 | then true | |
734 | 739 | else (productIdx >= size(productionMatrix))) | |
735 | 740 | then throw("Unknown product idx") | |
736 | 741 | else if ((0 > count)) | |
737 | 742 | then throw("Count can't be negative") | |
738 | 743 | else if ((count > MAXPRODINSLOT)) | |
739 | 744 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
740 | 745 | else if ((count == 0)) | |
741 | 746 | then $Tuple2(pList, false) | |
742 | 747 | else { | |
743 | 748 | let head = take(pList, (8 * productIdx)) | |
744 | 749 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
745 | 750 | let tail = drop(pList, (8 * (productIdx + 1))) | |
746 | 751 | let recipe = split(productionMatrix[productIdx], "_") | |
747 | 752 | if (if (!(isPositive)) | |
748 | 753 | then (count > curr) | |
749 | 754 | else false) | |
750 | 755 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
751 | 756 | else { | |
752 | 757 | let isBigItem = if (if (!(isPositive)) | |
753 | 758 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
754 | 759 | else false) | |
755 | 760 | then { | |
756 | 761 | let compat = recipe[rIdxSlots] | |
757 | 762 | if ((compat == "")) | |
758 | 763 | then throw("Item cannot be equipped") | |
759 | 764 | else { | |
760 | 765 | let c = parseIntValue(compat) | |
761 | 766 | let cSeg = (c / 100) | |
762 | 767 | if ((segment != cSeg)) | |
763 | 768 | then throw("Segment incompatible") | |
764 | 769 | else { | |
765 | 770 | let cMainAux = ((c % 100) / 10) | |
766 | 771 | if ((mainAux != cMainAux)) | |
767 | 772 | then throw("Slot incompatible") | |
768 | 773 | else { | |
769 | 774 | let cNumSlots = (c % 10) | |
770 | 775 | if (if ((slot != 0)) | |
771 | 776 | then (cNumSlots > 1) | |
772 | 777 | else false) | |
773 | 778 | then throw("Big items should occupy slot 0") | |
774 | 779 | else (cNumSlots > 1) | |
775 | 780 | } | |
776 | 781 | } | |
777 | 782 | } | |
778 | 783 | } | |
779 | 784 | else false | |
780 | 785 | $Tuple2(((head + toBytes((curr + (if (isPositive) | |
781 | 786 | then count | |
782 | 787 | else -(count))))) + tail), isBigItem) | |
783 | 788 | } | |
784 | 789 | } | |
785 | 790 | } | |
786 | 791 | } | |
787 | 792 | ||
788 | 793 | ||
789 | 794 | func slotsGroupB (g,bpIn,isPositive,segment,mainAux,reqs) = if ((g != "")) | |
790 | 795 | then { | |
791 | 796 | let slots = split(g, ",") | |
792 | 797 | if ((size(slots) > MAXSLOTS)) | |
793 | 798 | then throw("Wrong slots format") | |
794 | 799 | else { | |
795 | 800 | let s0 = slots[0] | |
796 | 801 | let s1 = if ((size(slots) > 1)) | |
797 | 802 | then slots[1] | |
798 | 803 | else "" | |
799 | 804 | if (if ((s0 == "")) | |
800 | 805 | then (s1 == "") | |
801 | 806 | else false) | |
802 | 807 | then bpIn | |
803 | 808 | else { | |
804 | 809 | let tmpS0 = if ((s0 != "")) | |
805 | 810 | then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, reqs) | |
806 | 811 | else $Tuple2(bpIn, false) | |
807 | 812 | if ((s1 != "")) | |
808 | 813 | then if (tmpS0._2) | |
809 | 814 | then throw("Big item already occupies slot") | |
810 | 815 | else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, reqs)._1 | |
811 | 816 | else tmpS0._1 | |
812 | 817 | } | |
813 | 818 | } | |
814 | 819 | } | |
815 | 820 | else bpIn | |
816 | 821 | ||
817 | 822 | ||
818 | 823 | func dressB (segList,pBytes,isPositive,reqs) = { | |
819 | 824 | func segment (acc,seg) = { | |
820 | 825 | let j = acc._1 | |
821 | 826 | let mainAux = split(seg, ";") | |
822 | 827 | if ((size(mainAux) != NUMMAINAUX)) | |
823 | 828 | then throw("Wrong segment format") | |
824 | 829 | else { | |
825 | 830 | let m = mainAux[0] | |
826 | 831 | let a = mainAux[1] | |
827 | 832 | if (if ((m == "")) | |
828 | 833 | then (a == "") | |
829 | 834 | else false) | |
830 | 835 | then $Tuple2((j + 1), acc._2) | |
831 | 836 | else { | |
832 | 837 | let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, reqs) | |
833 | 838 | $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, reqs)) | |
834 | 839 | } | |
835 | 840 | } | |
836 | 841 | } | |
837 | 842 | ||
838 | 843 | ( let $l = segList | |
839 | 844 | let $s = size($l) | |
840 | 845 | let $acc0 = $Tuple2(0, pBytes) | |
841 | 846 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
842 | 847 | then $a | |
843 | 848 | else segment($a, $l[$i]) | |
844 | 849 | ||
845 | 850 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
846 | 851 | then $a | |
847 | 852 | else throw("List size exceeds 6") | |
848 | 853 | ||
849 | 854 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2 | |
850 | 855 | } | |
851 | 856 | ||
852 | 857 | ||
853 | 858 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
854 | 859 | then throw("Wrong proportions data") | |
855 | 860 | else { | |
856 | 861 | func updater (acc,i) = { | |
857 | 862 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
858 | 863 | if ((0 > result)) | |
859 | - | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", | |
864 | + | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
860 | 865 | else (acc :+ toString(result)) | |
861 | 866 | } | |
862 | 867 | ||
863 | 868 | let $l = ITER6 | |
864 | 869 | let $s = size($l) | |
865 | 870 | let $acc0 = nil | |
866 | 871 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
867 | 872 | then $a | |
868 | 873 | else updater($a, $l[$i]) | |
869 | 874 | ||
870 | 875 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
871 | 876 | then $a | |
872 | 877 | else throw("List size exceeds 6") | |
873 | 878 | ||
874 | 879 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
875 | 880 | } | |
876 | 881 | ||
877 | 882 | ||
878 | 883 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
879 | 884 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
880 | 885 | makeString(updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign), "_") | |
881 | 886 | } | |
882 | 887 | ||
883 | 888 | ||
884 | 889 | 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)] | |
885 | 890 | ||
886 | 891 | ||
887 | 892 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
888 | 893 | func adder (acc,i) = { | |
889 | 894 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
890 | 895 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
891 | 896 | } | |
892 | 897 | ||
893 | 898 | let r = { | |
894 | 899 | let $l = ITER6 | |
895 | 900 | let $s = size($l) | |
896 | 901 | let $acc0 = nil | |
897 | 902 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
898 | 903 | then $a | |
899 | 904 | else adder($a, $l[$i]) | |
900 | 905 | ||
901 | 906 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
902 | 907 | then $a | |
903 | 908 | else throw("List size exceeds 6") | |
904 | 909 | ||
905 | 910 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
906 | 911 | } | |
907 | 912 | makeString(r, "_") | |
908 | 913 | } | |
909 | 914 | ||
910 | 915 | ||
911 | 916 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
912 | 917 | func adder (acc,i) = { | |
913 | 918 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
914 | 919 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
915 | 920 | } | |
916 | 921 | ||
917 | 922 | let $l = ITER6 | |
918 | 923 | let $s = size($l) | |
919 | 924 | let $acc0 = $Tuple2(nil, 0) | |
920 | 925 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
921 | 926 | then $a | |
922 | 927 | else adder($a, $l[$i]) | |
923 | 928 | ||
924 | 929 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
925 | 930 | then $a | |
926 | 931 | else throw("List size exceeds 6") | |
927 | 932 | ||
928 | 933 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
929 | 934 | } | |
930 | 935 | ||
931 | 936 | ||
932 | 937 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
933 | 938 | let resListToClaim = resToClaim._1 | |
934 | 939 | let resAmToClaim = resToClaim._2 | |
935 | 940 | if ((resAmToClaim == 0)) | |
936 | 941 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
937 | 942 | else if ((whSpaceLeft >= resAmToClaim)) | |
938 | 943 | then { | |
939 | 944 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
940 | 945 | ||
941 | 946 | let r = { | |
942 | 947 | let $l = ITER6 | |
943 | 948 | let $s = size($l) | |
944 | 949 | let $acc0 = nil | |
945 | 950 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
946 | 951 | then $a | |
947 | 952 | else addLists($a, $l[$i]) | |
948 | 953 | ||
949 | 954 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
950 | 955 | then $a | |
951 | 956 | else throw("List size exceeds 6") | |
952 | 957 | ||
953 | 958 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
954 | 959 | } | |
955 | 960 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
956 | 961 | } | |
957 | 962 | else { | |
958 | 963 | func addPartLists (acc,i) = { | |
959 | 964 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
960 | 965 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
961 | 966 | } | |
962 | 967 | ||
963 | 968 | let r = { | |
964 | 969 | let $l = ITER6 | |
965 | 970 | let $s = size($l) | |
966 | 971 | let $acc0 = $Tuple2(nil, nil) | |
967 | 972 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
968 | 973 | then $a | |
969 | 974 | else addPartLists($a, $l[$i]) | |
970 | 975 | ||
971 | 976 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
972 | 977 | then $a | |
973 | 978 | else throw("List size exceeds 6") | |
974 | 979 | ||
975 | 980 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
976 | 981 | } | |
977 | 982 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
978 | 983 | } | |
979 | 984 | } | |
980 | 985 | ||
981 | 986 | ||
982 | 987 | func abs (x) = if ((x >= toBigInt(0))) | |
983 | 988 | then x | |
984 | 989 | else -(x) | |
985 | 990 | ||
986 | 991 | ||
987 | 992 | 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]] | |
988 | 993 | ||
989 | 994 | func genChar (n,freqs) = { | |
990 | 995 | let rem = toInt((n % TWENTYX)) | |
991 | 996 | let letter = if ((freqs[0] > rem)) | |
992 | 997 | then "A" | |
993 | 998 | else if ((freqs[1] > rem)) | |
994 | 999 | then "B" | |
995 | 1000 | else if ((freqs[2] > rem)) | |
996 | 1001 | then "C" | |
997 | 1002 | else if ((freqs[3] > rem)) | |
998 | 1003 | then "D" | |
999 | 1004 | else if ((freqs[4] > rem)) | |
1000 | 1005 | then "E" | |
1001 | 1006 | else "F" | |
1002 | 1007 | letter | |
1003 | 1008 | } | |
1004 | 1009 | ||
1005 | 1010 | ||
1006 | 1011 | func genTerrains (seed,continentIdx) = { | |
1007 | 1012 | let f = freq[continentIdx] | |
1008 | 1013 | 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)) | |
1009 | 1014 | ||
1010 | 1015 | let t = { | |
1011 | 1016 | let $l = [1, 2, 3, 4, 5] | |
1012 | 1017 | let $s = size($l) | |
1013 | 1018 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
1014 | 1019 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1015 | 1020 | then $a | |
1016 | 1021 | else terrainGenerator($a, $l[$i]) | |
1017 | 1022 | ||
1018 | 1023 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1019 | 1024 | then $a | |
1020 | 1025 | else throw("List size exceeds 5") | |
1021 | 1026 | ||
1022 | 1027 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1023 | 1028 | } | |
1024 | 1029 | t._1 | |
1025 | 1030 | } | |
1026 | 1031 | ||
1027 | 1032 | ||
1028 | 1033 | let PERM25 = [7, 2, 15, 19, 8, 24, 1, 21, 16, 5, 0, 22, 20, 23, 11, 4, 18, 12, 6, 10, 3, 17, 13, 9, 14] | |
1029 | 1034 | ||
1030 | 1035 | let TCHARS = ["A", "B", "C", "D", "E", "F"] | |
1031 | 1036 | ||
1032 | 1037 | func genTerrainsForMerge (sumTerrains,landSizeIndex) = { | |
1033 | 1038 | func step1 (acc,s) = { | |
1034 | 1039 | let j = acc._2 | |
1035 | 1040 | let el = parseIntValue(s) | |
1036 | 1041 | let x = if ((el == 0)) | |
1037 | 1042 | then 0 | |
1038 | 1043 | else if ((el >= (4 * landSizeIndex))) | |
1039 | 1044 | then (el / landSizeIndex) | |
1040 | 1045 | else if ((el > (3 * landSizeIndex))) | |
1041 | 1046 | then 3 | |
1042 | 1047 | else (((el - 1) / landSizeIndex) + 1) | |
1043 | 1048 | $Tuple3((acc._1 :+ x), (acc._2 + 1), (acc._3 + x)) | |
1044 | 1049 | } | |
1045 | 1050 | ||
1046 | 1051 | let t = { | |
1047 | 1052 | let $l = sumTerrains | |
1048 | 1053 | let $s = size($l) | |
1049 | 1054 | let $acc0 = $Tuple3(nil, 0, 0) | |
1050 | 1055 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1051 | 1056 | then $a | |
1052 | 1057 | else step1($a, $l[$i]) | |
1053 | 1058 | ||
1054 | 1059 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1055 | 1060 | then $a | |
1056 | 1061 | else throw("List size exceeds 6") | |
1057 | 1062 | ||
1058 | 1063 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1059 | 1064 | } | |
1060 | 1065 | let arr = t._1 | |
1061 | 1066 | let maxIdx = value(indexOf(arr, max(arr))) | |
1062 | 1067 | let delta = (t._3 - 25) | |
1063 | 1068 | func subber (acc,idx) = { | |
1064 | 1069 | let val = if ((idx == maxIdx)) | |
1065 | 1070 | then (arr[idx] - delta) | |
1066 | 1071 | else arr[idx] | |
1067 | 1072 | let zeroes = if ((val == 0)) | |
1068 | 1073 | then nil | |
1069 | 1074 | else split(drop(toString(pow(10, 0, val, 0, 0, DOWN)), 1), "") | |
1070 | 1075 | let c = TCHARS[idx] | |
1071 | 1076 | func listGen (ac,ignored) = (ac :+ c) | |
1072 | 1077 | ||
1073 | 1078 | let z = { | |
1074 | 1079 | let $l = zeroes | |
1075 | 1080 | let $s = size($l) | |
1076 | 1081 | let $acc0 = nil | |
1077 | 1082 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1078 | 1083 | then $a | |
1079 | 1084 | else listGen($a, $l[$i]) | |
1080 | 1085 | ||
1081 | 1086 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1082 | 1087 | then $a | |
1083 | 1088 | else throw("List size exceeds 25") | |
1084 | 1089 | ||
1085 | 1090 | $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($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) | |
1086 | 1091 | } | |
1087 | 1092 | (acc ++ z) | |
1088 | 1093 | } | |
1089 | 1094 | ||
1090 | 1095 | let r = { | |
1091 | 1096 | let $l = ITER6 | |
1092 | 1097 | let $s = size($l) | |
1093 | 1098 | let $acc0 = nil | |
1094 | 1099 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1095 | 1100 | then $a | |
1096 | 1101 | else subber($a, $l[$i]) | |
1097 | 1102 | ||
1098 | 1103 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1099 | 1104 | then $a | |
1100 | 1105 | else throw("List size exceeds 6") | |
1101 | 1106 | ||
1102 | 1107 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1103 | 1108 | } | |
1104 | 1109 | func permut (acc,j) = (acc + r[j]) | |
1105 | 1110 | ||
1106 | 1111 | let $l = PERM25 | |
1107 | 1112 | let $s = size($l) | |
1108 | 1113 | let $acc0 = "" | |
1109 | 1114 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1110 | 1115 | then $a | |
1111 | 1116 | else permut($a, $l[$i]) | |
1112 | 1117 | ||
1113 | 1118 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1114 | 1119 | then $a | |
1115 | 1120 | else throw("List size exceeds 25") | |
1116 | 1121 | ||
1117 | 1122 | $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($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) | |
1118 | 1123 | } | |
1119 | 1124 | ||
1120 | 1125 | ||
1121 | 1126 | func getBackpack (bpKey) = { | |
1122 | 1127 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
1123 | 1128 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
1124 | 1129 | then p[bpIdxRes] | |
1125 | 1130 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
1126 | 1131 | then p[bpIdxMat] | |
1127 | 1132 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
1128 | 1133 | } | |
1129 | 1134 | ||
1130 | 1135 | ||
1131 | 1136 | func getWarehouseTotalVolume (volPrefix) = { | |
1132 | 1137 | let parts = split(volPrefix, "_") | |
1133 | 1138 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
1134 | 1139 | } | |
1135 | 1140 | ||
1136 | 1141 | ||
1137 | 1142 | func getWarehouseOccupiedVol (currentWh) = { | |
1138 | 1143 | let goods = currentWh[whIdxProd] | |
1139 | 1144 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
1140 | 1145 | ||
1141 | 1146 | func sumProd (acc,item) = { | |
1142 | 1147 | let idx = acc._1 | |
1143 | 1148 | let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE) | |
1144 | 1149 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
1145 | 1150 | } | |
1146 | 1151 | ||
1147 | 1152 | let whResVol = { | |
1148 | 1153 | let $l = split(currentWh[whIdxRes], "_") | |
1149 | 1154 | let $s = size($l) | |
1150 | 1155 | let $acc0 = 0 | |
1151 | 1156 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1152 | 1157 | then $a | |
1153 | 1158 | else sumResMat($a, $l[$i]) | |
1154 | 1159 | ||
1155 | 1160 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1156 | 1161 | then $a | |
1157 | 1162 | else throw("List size exceeds 6") | |
1158 | 1163 | ||
1159 | 1164 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1160 | 1165 | } | |
1161 | 1166 | let whMatVol = { | |
1162 | 1167 | let $l = split(currentWh[whIdxMat], "_") | |
1163 | 1168 | let $s = size($l) | |
1164 | 1169 | let $acc0 = 0 | |
1165 | 1170 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1166 | 1171 | then $a | |
1167 | 1172 | else sumResMat($a, $l[$i]) | |
1168 | 1173 | ||
1169 | 1174 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1170 | 1175 | then $a | |
1171 | 1176 | else throw("List size exceeds 6") | |
1172 | 1177 | ||
1173 | 1178 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1174 | 1179 | } | |
1175 | 1180 | let whGoodsVol = if ((goods == "")) | |
1176 | 1181 | then 0 | |
1177 | 1182 | else ( let $l = split_4C(goods, "_") | |
1178 | 1183 | let $s = size($l) | |
1179 | 1184 | let $acc0 = $Tuple2(0, 0) | |
1180 | 1185 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1181 | 1186 | then $a | |
1182 | 1187 | else sumProd($a, $l[$i]) | |
1183 | 1188 | ||
1184 | 1189 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1185 | 1190 | then $a | |
1186 | 1191 | else throw("List size exceeds 50") | |
1187 | 1192 | ||
1188 | 1193 | $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 | |
1189 | 1194 | ((whResVol + whMatVol) + whGoodsVol) | |
1190 | 1195 | } | |
1191 | 1196 | ||
1192 | 1197 | ||
1193 | 1198 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
1194 | 1199 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
1195 | 1200 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
1196 | 1201 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
1197 | 1202 | let wh = split_4C(whStr, ":") | |
1198 | 1203 | let whOccupied = getWarehouseOccupiedVol(wh) | |
1199 | 1204 | let whLoft = if ((5 > size(wh))) | |
1200 | 1205 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
1201 | 1206 | else { | |
1202 | 1207 | let loft = split(wh[whIdxLOFT], "_") | |
1203 | 1208 | let whLocked = parseIntValue(loft[volLocked]) | |
1204 | 1209 | let occ = if ((size(loft) > 1)) | |
1205 | 1210 | then parseIntValue(loft[volOccupied]) | |
1206 | 1211 | else whOccupied | |
1207 | 1212 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
1208 | 1213 | } | |
1209 | 1214 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
1210 | 1215 | then wh[whIdxRes] | |
1211 | 1216 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
1212 | 1217 | then wh[whIdxMat] | |
1213 | 1218 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
1214 | 1219 | } | |
1215 | 1220 | ||
1216 | 1221 | ||
1217 | 1222 | func getWarehouseSpaceLeft (currentWh) = { | |
1218 | 1223 | let occupiedVol = getWarehouseOccupiedVol(currentWh) | |
1219 | 1224 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
1220 | 1225 | ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol) | |
1221 | 1226 | } | |
1222 | 1227 | ||
1223 | 1228 | ||
1224 | 1229 | func toVolume (amount,pkgSize) = { | |
1225 | 1230 | let pkgs = if ((amount >= 0)) | |
1226 | 1231 | then (((amount + pkgSize) - 1) / pkgSize) | |
1227 | 1232 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
1228 | 1233 | (pkgs * MULT8) | |
1229 | 1234 | } | |
1230 | 1235 | ||
1231 | 1236 | ||
1232 | 1237 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
1233 | 1238 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
1234 | 1239 | else { | |
1235 | 1240 | let resParts = split(cargoParts[0], "_") | |
1236 | 1241 | let matParts = split(cargoParts[1], "_") | |
1237 | 1242 | let prodParts = if ((cargoParts[2] == "")) | |
1238 | 1243 | then nil | |
1239 | 1244 | else split(cargoParts[2], "_") | |
1240 | 1245 | if ((size(resParts) != NUMRES)) | |
1241 | 1246 | then throw("All 6 resources should be passed") | |
1242 | 1247 | else if ((size(matParts) != NUMRES)) | |
1243 | 1248 | then throw("All 6 materials should be passed") | |
1244 | 1249 | else { | |
1245 | 1250 | let whSpaceLeft = getWarehouseSpaceLeft(currentWh) | |
1246 | 1251 | let currWhRes = split(currentWh[whIdxRes], "_") | |
1247 | 1252 | let currWhMat = split(currentWh[whIdxMat], "_") | |
1248 | 1253 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
1249 | 1254 | then nil | |
1250 | 1255 | else split(currentWh[whIdxProd], "_") | |
1251 | 1256 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1252 | 1257 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
1253 | 1258 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
1254 | 1259 | then nil | |
1255 | 1260 | else split(currentPack[bpIdxProd], "_") | |
1256 | 1261 | func mvR (acc,item) = { | |
1257 | 1262 | let i = acc._1 | |
1258 | 1263 | let am = parseIntValue(item) | |
1259 | 1264 | let whr = parseIntValue(currWhRes[i]) | |
1260 | 1265 | let bpr = parseIntValue(currentPackRes[i]) | |
1261 | 1266 | if ((am == 0)) | |
1262 | 1267 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
1263 | 1268 | else if ((am > 0)) | |
1264 | 1269 | then if ((am > bpr)) | |
1265 | 1270 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
1266 | 1271 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1267 | 1272 | else if ((-(am) > whr)) | |
1268 | 1273 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
1269 | 1274 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1270 | 1275 | } | |
1271 | 1276 | ||
1272 | 1277 | let r = { | |
1273 | 1278 | let $l = resParts | |
1274 | 1279 | let $s = size($l) | |
1275 | 1280 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
1276 | 1281 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1277 | 1282 | then $a | |
1278 | 1283 | else mvR($a, $l[$i]) | |
1279 | 1284 | ||
1280 | 1285 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1281 | 1286 | then $a | |
1282 | 1287 | else throw("List size exceeds 6") | |
1283 | 1288 | ||
1284 | 1289 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1285 | 1290 | } | |
1286 | 1291 | func mvM (acc,item) = { | |
1287 | 1292 | let i = acc._1 | |
1288 | 1293 | let am = parseIntValue(item) | |
1289 | 1294 | let whm = parseIntValue(currWhMat[i]) | |
1290 | 1295 | let bpm = parseIntValue(currentPackMat[i]) | |
1291 | 1296 | if ((am == 0)) | |
1292 | 1297 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
1293 | 1298 | else if ((am > 0)) | |
1294 | 1299 | then if ((am > bpm)) | |
1295 | 1300 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
1296 | 1301 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1297 | 1302 | else if ((-(am) > whm)) | |
1298 | 1303 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
1299 | 1304 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1300 | 1305 | } | |
1301 | 1306 | ||
1302 | 1307 | let m = { | |
1303 | 1308 | let $l = matParts | |
1304 | 1309 | let $s = size($l) | |
1305 | 1310 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
1306 | 1311 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1307 | 1312 | then $a | |
1308 | 1313 | else mvM($a, $l[$i]) | |
1309 | 1314 | ||
1310 | 1315 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1311 | 1316 | then $a | |
1312 | 1317 | else throw("List size exceeds 6") | |
1313 | 1318 | ||
1314 | 1319 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1315 | 1320 | } | |
1316 | 1321 | func mvP (acc,item) = { | |
1317 | 1322 | let i = acc._1 | |
1318 | 1323 | let am = parseIntValue(item) | |
1319 | 1324 | let whp = if ((size(currWhProd) > i)) | |
1320 | 1325 | then parseIntValue(currWhProd[i]) | |
1321 | 1326 | else 0 | |
1322 | 1327 | let bpp = if ((size(currentPackProd) > i)) | |
1323 | 1328 | then parseIntValue(currentPackProd[i]) | |
1324 | 1329 | else 0 | |
1325 | 1330 | if ((am == 0)) | |
1326 | 1331 | then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4) | |
1327 | 1332 | else if ((am > 0)) | |
1328 | 1333 | then if ((am > bpp)) | |
1329 | 1334 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
1330 | 1335 | else { | |
1331 | 1336 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1332 | 1337 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1333 | 1338 | } | |
1334 | 1339 | else if ((-(am) > whp)) | |
1335 | 1340 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
1336 | 1341 | else { | |
1337 | 1342 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1338 | 1343 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1339 | 1344 | } | |
1340 | 1345 | } | |
1341 | 1346 | ||
1342 | 1347 | let p = if ((size(prodParts) != 0)) | |
1343 | 1348 | then { | |
1344 | 1349 | let $l = prodParts | |
1345 | 1350 | let $s = size($l) | |
1346 | 1351 | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
1347 | 1352 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1348 | 1353 | then $a | |
1349 | 1354 | else mvP($a, $l[$i]) | |
1350 | 1355 | ||
1351 | 1356 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1352 | 1357 | then $a | |
1353 | 1358 | else throw("List size exceeds 50") | |
1354 | 1359 | ||
1355 | 1360 | $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) | |
1356 | 1361 | } | |
1357 | 1362 | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
1358 | 1363 | let volSaldo = p._4 | |
1359 | 1364 | if ((volSaldo > whSpaceLeft)) | |
1360 | 1365 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
1361 | 1366 | else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo) | |
1362 | 1367 | } | |
1363 | 1368 | } | |
1364 | 1369 | ||
1365 | 1370 | ||
1366 | 1371 | func expeditionInternal (caller,txId) = { | |
1367 | 1372 | let userAddr = toString(caller) | |
1368 | 1373 | let bigNum = abs(toBigInt(txId)) | |
1369 | 1374 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1370 | 1375 | let landNum = toString(freeNum) | |
1371 | 1376 | let continentIdx = toInt((bigNum % FIVEX)) | |
1372 | 1377 | let terrains = genTerrains(bigNum, continentIdx) | |
1373 | 1378 | let continent = continents[continentIdx] | |
1374 | 1379 | let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
1375 | 1380 | let assetId = calculateAssetId(issue) | |
1376 | 1381 | let id = toBase58String(assetId) | |
1377 | 1382 | $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)) | |
1378 | 1383 | } | |
1379 | 1384 | ||
1380 | 1385 | ||
1381 | 1386 | func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
1382 | 1387 | then throw("signature does not match") | |
1383 | 1388 | else { | |
1384 | 1389 | let parts = split(toUtf8String(message), ";") | |
1385 | 1390 | let flightLog = split(parts[0], "|") | |
1386 | 1391 | let hp = split(flightLog[flHealth], "_") | |
1387 | 1392 | let curHP = parseIntValue(hp[0]) | |
1388 | 1393 | let newHP = parseIntValue(hp[1]) | |
1389 | 1394 | let newLocTxVer = split(parts[1], ":") | |
1390 | 1395 | let newLocation = newLocTxVer[0] | |
1391 | 1396 | let time = parseIntValue(flightLog[flTimestamp]) | |
1392 | 1397 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1393 | 1398 | then true | |
1394 | 1399 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1395 | 1400 | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1396 | 1401 | else { | |
1397 | 1402 | let txFromMsg = newLocTxVer[1] | |
1398 | 1403 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
1399 | 1404 | if ((lastTx != txFromMsg)) | |
1400 | 1405 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1401 | 1406 | else { | |
1402 | 1407 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1403 | 1408 | let keyHealth = keyDuckHealth(duckAssetId) | |
1404 | 1409 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1405 | 1410 | let oldFromState = valueOrElse(getInteger(keyHealth), maxHP) | |
1406 | 1411 | if ((oldFromState != curHP)) | |
1407 | 1412 | then throw(((("oldHealth=" + toString(oldFromState)) + " from state does not match one from flight log=") + toString(curHP))) | |
1408 | 1413 | else if ((0 >= curHP)) | |
1409 | 1414 | then throw("You can't fly with zero health") | |
1410 | 1415 | else { | |
1411 | 1416 | let bonus = if ((size(flightLog) > flBonus)) | |
1412 | 1417 | then flightLog[flBonus] | |
1413 | 1418 | else "" | |
1414 | 1419 | let prodUsed = if ((size(flightLog) > flProdsUsed)) | |
1415 | 1420 | then flightLog[flProdsUsed] | |
1416 | 1421 | else "" | |
1417 | 1422 | let sentAmount = if (if ((newHP > 0)) | |
1418 | 1423 | then (bonus == "$") | |
1419 | 1424 | else false) | |
1420 | 1425 | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1421 | 1426 | else 0 | |
1422 | 1427 | $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed) | |
1423 | 1428 | } | |
1424 | 1429 | } | |
1425 | 1430 | } | |
1426 | 1431 | } | |
1427 | 1432 | ||
1428 | 1433 | ||
1429 | 1434 | func expeditionCommon (caller,txId,message,sig) = { | |
1430 | 1435 | let userAddr = toString(caller) | |
1431 | 1436 | let f = flightCommon(userAddr, message, sig) | |
1432 | 1437 | let duckAssetId = f._2 | |
1433 | 1438 | let keyHealth = keyDuckHealth(duckAssetId) | |
1434 | 1439 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1435 | 1440 | let currentPack = getBackpack(bpKey) | |
1436 | 1441 | let mList = split(currentPack[bpIdxMat], "_") | |
1437 | 1442 | let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_") | |
1438 | 1443 | let eqKey = keyDuckEquipment(duckAssetId) | |
1439 | 1444 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
1440 | 1445 | let newEq = subtractEquipment(currentEq, f._5) | |
1441 | 1446 | if ((0 >= f._1)) | |
1442 | 1447 | then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(eqKey, newEq)], "", 0) | |
1443 | 1448 | else { | |
1444 | 1449 | let e = expeditionInternal(caller, txId) | |
1445 | 1450 | let id = e._2._1 | |
1446 | 1451 | $Tuple3(((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(eqKey, newEq)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id, f._3) | |
1447 | 1452 | } | |
1448 | 1453 | } | |
1449 | 1454 | ||
1450 | 1455 | ||
1451 | 1456 | func applyBonuses (landAssetId,pieces) = { | |
1452 | 1457 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1453 | 1458 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1454 | 1459 | let add6 = (infraLevel / 6) | |
1455 | 1460 | let add7 = (infraLevel / 7) | |
1456 | 1461 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
1457 | 1462 | } | |
1458 | 1463 | ||
1459 | 1464 | ||
1460 | 1465 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1461 | - | let $ | |
1466 | + | let $t03031630855 = if ((claimMode == claimModeWh)) | |
1462 | 1467 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1463 | 1468 | else { | |
1464 | 1469 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1465 | 1470 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1466 | 1471 | let loc = split(value(curLocation), "_") | |
1467 | 1472 | if ((loc[locIdxType] != "L")) | |
1468 | 1473 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1469 | 1474 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1470 | 1475 | } | |
1471 | - | let landAssetId = $ | |
1472 | - | let duckId = $ | |
1476 | + | let landAssetId = $t03031630855._1 | |
1477 | + | let duckId = $t03031630855._2 | |
1473 | 1478 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1474 | 1479 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1475 | 1480 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1476 | 1481 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1477 | 1482 | if ((owner != addr)) | |
1478 | 1483 | then throw((LANDPREFIX + " is not yours")) | |
1479 | 1484 | else { | |
1480 | 1485 | let d = split(asset.description, "_") | |
1481 | 1486 | $Tuple4(duckId, landAssetId, d, savedTime) | |
1482 | 1487 | } | |
1483 | 1488 | } | |
1484 | 1489 | ||
1485 | 1490 | ||
1486 | 1491 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
1487 | 1492 | then throw("Negative amount") | |
1488 | 1493 | else { | |
1489 | 1494 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
1490 | 1495 | let landSize = c._3[recLandSize] | |
1491 | 1496 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1492 | 1497 | let deltaTime = (lastBlock.timestamp - c._4) | |
1493 | 1498 | if ((0 > deltaTime)) | |
1494 | 1499 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
1495 | 1500 | else { | |
1496 | 1501 | let pieces = numPiecesBySize(landSize) | |
1497 | 1502 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
1498 | 1503 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
1499 | 1504 | if ((amount > availRes)) | |
1500 | 1505 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
1501 | 1506 | else { | |
1502 | 1507 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
1503 | 1508 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
1504 | 1509 | let landIndex = (pieces / SSIZE) | |
1505 | 1510 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1506 | 1511 | let whKey = keyWarehouseByLand(c._2) | |
1507 | 1512 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1508 | 1513 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1509 | 1514 | let loft = split(currentWh[whIdxLOFT], "_") | |
1510 | 1515 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1511 | 1516 | if (if ((claimMode == claimModeWh)) | |
1512 | 1517 | then (amount > whSpaceLeft) | |
1513 | 1518 | else false) | |
1514 | 1519 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1515 | 1520 | else { | |
1516 | 1521 | let bpKey = keyBackpackByDuck(c._1) | |
1517 | 1522 | let currentPack = getBackpack(bpKey) | |
1518 | 1523 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1519 | 1524 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1520 | - | let $ | |
1525 | + | let $t03322934100 = if ((claimMode == claimModeWh)) | |
1521 | 1526 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1522 | 1527 | else if ((claimMode == claimModeDuck)) | |
1523 | 1528 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1524 | 1529 | else { | |
1525 | 1530 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1526 | 1531 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1527 | 1532 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1528 | 1533 | } | |
1529 | - | let whRes = $ | |
1530 | - | let bpRes = $ | |
1531 | - | let loftO = $ | |
1532 | - | let loftF = $ | |
1534 | + | let whRes = $t03322934100._1 | |
1535 | + | let bpRes = $t03322934100._2 | |
1536 | + | let loftO = $t03322934100._3 | |
1537 | + | let loftF = $t03322934100._4 | |
1533 | 1538 | $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]], "_")]) | |
1534 | 1539 | } | |
1535 | 1540 | } | |
1536 | 1541 | } | |
1537 | 1542 | } | |
1538 | 1543 | ||
1539 | 1544 | ||
1540 | 1545 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1541 | 1546 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1542 | 1547 | let savedTime = value(getInteger(timeKey)) | |
1543 | 1548 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1544 | 1549 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1545 | 1550 | } | |
1546 | 1551 | ||
1547 | 1552 | ||
1548 | 1553 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
1549 | 1554 | let addr = toString(caller) | |
1550 | 1555 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
1551 | 1556 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1552 | 1557 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1553 | 1558 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1554 | - | if ((curLevel >= 3)) | |
1559 | + | if (if (!(KS_ALLOW_BIG_INFRA_MERGE)) | |
1560 | + | then (curLevel >= 3) | |
1561 | + | else false) | |
1555 | 1562 | then throw("Currently max infrastructure level = 3") | |
1556 | 1563 | else { | |
1564 | + | let maxInfra = ((sqrt(pieces, 0, 0, DOWN) / 5) + 2) | |
1557 | 1565 | let newLevel = (curLevel + 1) | |
1558 | - | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1559 | - | if (if (!(shouldUseMat)) | |
1560 | - | then (paymentAmount != cost) | |
1566 | + | if (if (KS_ALLOW_BIG_INFRA_MERGE) | |
1567 | + | then (newLevel > maxInfra) | |
1561 | 1568 | else false) | |
1562 | - | then throw((" | |
1569 | + | then throw(("Currently max infrastructure level = " + toString(maxInfra))) | |
1563 | 1570 | else { | |
1564 | - | let bpKey = keyBackpackByDuck(c._1) | |
1565 | - | let currentPack = getBackpack(bpKey) | |
1566 | - | let mList = split(currentPack[bpIdxMat], "_") | |
1567 | - | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1568 | - | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1569 | - | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1570 | - | let whData = claimResult._5 | |
1571 | - | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1572 | - | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1573 | - | let newVol = getWarehouseTotalVolume(newVolData) | |
1574 | - | let loft = split(whData[whIdxLOFT], "_") | |
1575 | - | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1576 | - | $Tuple3(([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, matUsed) | |
1571 | + | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1572 | + | if (if (!(shouldUseMat)) | |
1573 | + | then (paymentAmount != cost) | |
1574 | + | else false) | |
1575 | + | then throw(("Payment attached should be " + toString(cost))) | |
1576 | + | else { | |
1577 | + | let bpKey = keyBackpackByDuck(c._1) | |
1578 | + | let currentPack = getBackpack(bpKey) | |
1579 | + | let mList = split(currentPack[bpIdxMat], "_") | |
1580 | + | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1581 | + | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1582 | + | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1583 | + | let whData = claimResult._5 | |
1584 | + | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1585 | + | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1586 | + | let newVol = getWarehouseTotalVolume(newVolData) | |
1587 | + | let loft = split(whData[whIdxLOFT], "_") | |
1588 | + | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1589 | + | $Tuple3(([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, matUsed) | |
1590 | + | } | |
1577 | 1591 | } | |
1578 | 1592 | } | |
1579 | 1593 | } | |
1580 | 1594 | ||
1581 | 1595 | ||
1582 | 1596 | func updateDuckStatsInternal (duckAssetId,deltaXP) = if (!(KSALLOWXPLEVELS)) | |
1583 | 1597 | then $Tuple2(nil, 0) | |
1584 | 1598 | else { | |
1585 | 1599 | let lvlKey = keyDuckLevel(duckAssetId) | |
1586 | 1600 | let xpKey = keyDuckXP(duckAssetId) | |
1587 | 1601 | let xp = valueOrElse(getInteger(stakingContract, xpKey), 0) | |
1588 | 1602 | let newXP = (xp + deltaXP) | |
1589 | 1603 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP) | |
1590 | 1604 | let keyPoints = keyDuckFreePoints(duckAssetId) | |
1591 | 1605 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP) | |
1592 | 1606 | } | |
1593 | 1607 | ||
1594 | 1608 | ||
1595 | 1609 | func updateAccStatsInternal (addr,deltaXP) = if (!(KSALLOWXPLEVELS)) | |
1596 | 1610 | then $Tuple2(nil, 0) | |
1597 | 1611 | else { | |
1598 | 1612 | let lvlKey = keyUserLevel(addr) | |
1599 | 1613 | let xpKey = keyUserXP(addr) | |
1600 | 1614 | let xp = valueOrElse(getInteger(stakingContract, xpKey), 0) | |
1601 | 1615 | let newXP = (xp + deltaXP) | |
1602 | 1616 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP) | |
1603 | 1617 | let keyPoints = keyUserFreePoints(addr) | |
1604 | 1618 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP) | |
1605 | 1619 | } | |
1606 | 1620 | ||
1607 | 1621 | ||
1608 | 1622 | func activateOnboardArt (addr) = { | |
1609 | 1623 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1610 | 1624 | let refByKey = keyAddressRefBy(addr) | |
1611 | 1625 | let refBy = getString(refByKey) | |
1612 | 1626 | if (!(isDefined(refBy))) | |
1613 | 1627 | then throw("You are not eligible for ONBOARD artifact") | |
1614 | 1628 | else { | |
1615 | 1629 | let artKey = keyOnboardArtDuckActivatedBy(addr) | |
1616 | 1630 | let artDuck = getString(artKey) | |
1617 | 1631 | if (isDefined(artDuck)) | |
1618 | 1632 | then throw(("You already used your ONBOARD artifact on duck " + value(artDuck))) | |
1619 | 1633 | else { | |
1620 | 1634 | let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId) | |
1621 | 1635 | let duckActivator = getString(duckActivatorKey) | |
1622 | 1636 | if (isDefined(duckActivator)) | |
1623 | 1637 | then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator))) | |
1624 | 1638 | else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1) | |
1625 | 1639 | } | |
1626 | 1640 | } | |
1627 | 1641 | } | |
1628 | 1642 | ||
1629 | 1643 | ||
1630 | 1644 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1631 | 1645 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1632 | 1646 | let landAssetId = c._2 | |
1633 | 1647 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1634 | 1648 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1635 | 1649 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1636 | 1650 | then throw("Presale artifact is already activated") | |
1637 | 1651 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1638 | 1652 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1639 | 1653 | else { | |
1640 | 1654 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1641 | 1655 | ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1642 | 1656 | } | |
1643 | 1657 | } | |
1644 | 1658 | ||
1645 | 1659 | ||
1646 | 1660 | func checkTournament (duckAssetId) = { | |
1647 | 1661 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1648 | 1662 | let curLocation = split(valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
1649 | 1663 | let now = lastBlock.timestamp | |
1650 | 1664 | let tData = getTourData(tournamentContract, lastId) | |
1651 | 1665 | let static = tData[idxStatic] | |
1652 | 1666 | let dynamic = tData[idxDynamic] | |
1653 | 1667 | if ((curLocation[locIdxType] != "T")) | |
1654 | 1668 | then false | |
1655 | 1669 | else { | |
1656 | 1670 | let result = if (if (if ((parseIntValue(curLocation[locIdxContinent]) == lastId)) | |
1657 | 1671 | then (dynamic[tDynamicStatus] == "INPROGRESS") | |
1658 | 1672 | else false) | |
1659 | 1673 | then (parseIntValue(static[tStaticEnd]) > now) | |
1660 | 1674 | else false) | |
1661 | 1675 | then throw("Your duck is taking part in the tournament") | |
1662 | 1676 | else invoke(this, "exitTournamentInternal", [duckAssetId], nil) | |
1663 | 1677 | if ((result == result)) | |
1664 | 1678 | then false | |
1665 | 1679 | else throw("Strict value is not equal to itself.") | |
1666 | 1680 | } | |
1667 | 1681 | } | |
1668 | 1682 | ||
1669 | 1683 | ||
1670 | 1684 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,needMat) = { | |
1671 | 1685 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1672 | 1686 | if (checkTournament(duckAssetId)) | |
1673 | 1687 | then throw("mergeInternal_checkTournament") | |
1674 | 1688 | else { | |
1675 | 1689 | func checkMerge (acc,landAssetId) = { | |
1676 | 1690 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1677 | 1691 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1678 | 1692 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
1679 | 1693 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1680 | 1694 | if ((owner != addr)) | |
1681 | 1695 | then throw((LANDPREFIX + " is not yours")) | |
1682 | 1696 | else { | |
1683 | 1697 | let d = split(asset.description, "_") | |
1684 | 1698 | let continent = d[recContinent] | |
1685 | 1699 | if (if ((acc._3 != "")) | |
1686 | 1700 | then (acc._3 != continent) | |
1687 | 1701 | else false) | |
1688 | 1702 | then throw("Lands should be on the same continent to merge") | |
1689 | 1703 | else { | |
1690 | 1704 | let landSize = d[recLandSize] | |
1691 | 1705 | let sizesIn = acc._1 | |
1692 | 1706 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
1693 | 1707 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
1694 | 1708 | let pieces = numPiecesBySize(landSize) | |
1695 | 1709 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)) | |
1696 | 1710 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1697 | 1711 | let reqLevel = match landSize { | |
1698 | 1712 | case _ => | |
1699 | 1713 | if (("S" == $match0)) | |
1700 | 1714 | then 3 | |
1701 | 1715 | else if (("M" == $match0)) | |
1702 | 1716 | then 4 | |
1703 | 1717 | else if (("L" == $match0)) | |
1704 | 1718 | then 5 | |
1705 | 1719 | else if (("XL" == $match0)) | |
1706 | 1720 | then 6 | |
1707 | 1721 | else throw("Only S, M, L, XL can merge") | |
1708 | 1722 | } | |
1709 | 1723 | if ((infraLevel != reqLevel)) | |
1710 | 1724 | then throw("All lands should be maxed to merge") | |
1711 | 1725 | else { | |
1712 | 1726 | let landNum = d[recLandNum] | |
1713 | 1727 | let terrainCounts = countTerrains(d[recTerrains]) | |
1714 | 1728 | let deltaTime = (lastBlock.timestamp - savedTime) | |
1715 | 1729 | if ((0 > deltaTime)) | |
1716 | 1730 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
1717 | 1731 | else { | |
1718 | 1732 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
1719 | 1733 | let landIndex = (pieces / SSIZE) | |
1720 | 1734 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
1721 | 1735 | let props = updateProportionsInternal(acc._6, terrainCounts, landIndex, -1) | |
1736 | + | let cProps = updateProportionsInternal(acc._10, terrainCounts, landIndex, -1) | |
1722 | 1737 | let sumTerrains = updateProportionsInternal(acc._9, terrainCounts, landIndex, 1) | |
1723 | 1738 | let lands = acc._7 | |
1724 | 1739 | let idx = indexOf(lands, landAssetId) | |
1725 | 1740 | if (!(isDefined(idx))) | |
1726 | 1741 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1727 | 1742 | else { | |
1728 | 1743 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
1729 | 1744 | let customName = valueOrElse(getString(customKey), "") | |
1730 | - | $ | |
1745 | + | $Tuple10(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), sumTerrains, cProps) | |
1731 | 1746 | } | |
1732 | 1747 | } | |
1733 | 1748 | } | |
1734 | 1749 | } | |
1735 | 1750 | } | |
1736 | 1751 | } | |
1737 | 1752 | ||
1738 | 1753 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1739 | 1754 | let currentPack = getBackpack(bpKey) | |
1740 | 1755 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
1741 | 1756 | let landsKey = keyStakedLandsByOwner(addr) | |
1742 | 1757 | let landsStr = getString(landsKey) | |
1743 | 1758 | let landsIn = if (isDefined(landsStr)) | |
1744 | 1759 | then split_51C(value(landsStr), "_") | |
1745 | 1760 | else nil | |
1761 | + | let cont0 = split(value(assetInfo(fromBase58String(landAssetIds[0]))).description, "_")[recContinent] | |
1762 | + | let contProps = split(valueOrElse(getString(keyResTypesByContinent(cont0)), "0_0_0_0_0_0"), "_") | |
1746 | 1763 | let r = { | |
1747 | 1764 | let $l = landAssetIds | |
1748 | 1765 | let $s = size($l) | |
1749 | - | let $acc0 = $ | |
1766 | + | let $acc0 = $Tuple10(formula, 0, "", currentPack[bpIdxRes], nil, propList, landsIn, 0, split("0_0_0_0_0_0", "_"), contProps) | |
1750 | 1767 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1751 | 1768 | then $a | |
1752 | 1769 | else checkMerge($a, $l[$i]) | |
1753 | 1770 | ||
1754 | 1771 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1755 | 1772 | then $a | |
1756 | 1773 | else throw("List size exceeds 5") | |
1757 | 1774 | ||
1758 | 1775 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1759 | 1776 | } | |
1760 | 1777 | let continent = r._3 | |
1761 | 1778 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
1762 | 1779 | let terrains = genTerrainsForMerge(r._9, (numPiecesBySize(newLandSize) / SSIZE)) | |
1763 | 1780 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1764 | 1781 | let newLandNum = toString(freeNum) | |
1765 | 1782 | let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
1766 | 1783 | let assetId = calculateAssetId(issue) | |
1767 | 1784 | let newLandAssetId = toBase58String(assetId) | |
1768 | 1785 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
1769 | 1786 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1770 | 1787 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1771 | - | $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1788 | + | $Tuple2(((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
1772 | 1789 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
1773 | 1790 | else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces)) | |
1774 | 1791 | then 0 | |
1775 | - | 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(), makeString(r._6, "_"))) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
1792 | + | 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(), makeString(r._6, "_"))) :+ StringEntry(keyResTypesByContinent(continent), makeString(r._10, "_"))) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
1776 | 1793 | } | |
1777 | 1794 | } | |
1778 | 1795 | ||
1779 | 1796 | ||
1780 | 1797 | func s2m (addr,landAssetIds) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, 0) | |
1781 | 1798 | ||
1782 | 1799 | ||
1783 | 1800 | func m2l (addr,landAssetIds) = mergeInternal("L", 4, "SMM", addr, landAssetIds, (InfraUpgradeCostS * 4)) | |
1784 | 1801 | ||
1785 | 1802 | ||
1786 | 1803 | func l2xl (addr,landAssetIds) = mergeInternal("XL", 5, "SSSML", addr, landAssetIds, (InfraUpgradeCostS * 47)) | |
1787 | 1804 | ||
1788 | 1805 | ||
1789 | 1806 | func xl2xxl (addr,landAssetIds) = mergeInternal("XXL", 6, "LXL", addr, landAssetIds, (InfraUpgradeCostS * 54)) | |
1790 | 1807 | ||
1791 | 1808 | ||
1792 | 1809 | func mergeCommon (addr,landAssetIds) = match size(landAssetIds) { | |
1793 | 1810 | case _ => | |
1794 | 1811 | if ((4 == $match0)) | |
1795 | 1812 | then s2m(addr, landAssetIds) | |
1796 | 1813 | else if ((3 == $match0)) | |
1797 | 1814 | then m2l(addr, landAssetIds) | |
1798 | 1815 | else if ((5 == $match0)) | |
1799 | 1816 | then l2xl(addr, landAssetIds) | |
1800 | 1817 | else if ((2 == $match0)) | |
1801 | 1818 | then xl2xxl(addr, landAssetIds) | |
1802 | 1819 | else throw("Unknown merge") | |
1803 | 1820 | } | |
1804 | 1821 | ||
1805 | 1822 | ||
1806 | 1823 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
1807 | 1824 | then valueOrElse(getBoolean(keyBlocked()), false) | |
1808 | 1825 | else false) | |
1809 | 1826 | then throw("Contracts are under maintenance") | |
1810 | 1827 | else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId)) | |
1811 | 1828 | ||
1812 | 1829 | ||
1813 | 1830 | @Callable(i) | |
1814 | 1831 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
1815 | 1832 | then throw("Permission denied") | |
1816 | 1833 | else [StringEntry(keyRestAddress(), restAddr)] | |
1817 | 1834 | ||
1818 | 1835 | ||
1819 | 1836 | ||
1820 | 1837 | @Callable(i) | |
1821 | 1838 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
1822 | 1839 | then throw("permission denied") | |
1823 | 1840 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
1824 | 1841 | ||
1825 | 1842 | ||
1826 | 1843 | ||
1827 | 1844 | @Callable(i) | |
1828 | 1845 | func stakeLand () = { | |
1829 | 1846 | let prologAction = prolog(i) | |
1830 | 1847 | if ((size(i.payments) != 1)) | |
1831 | 1848 | then throw("Exactly one payment required") | |
1832 | 1849 | else { | |
1833 | 1850 | let pmt = value(i.payments[0]) | |
1834 | 1851 | let assetId = value(pmt.assetId) | |
1835 | 1852 | let address = toString(i.caller) | |
1836 | 1853 | if ((pmt.amount != 1)) | |
1837 | 1854 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
1838 | 1855 | else { | |
1839 | 1856 | let asset = value(assetInfo(assetId)) | |
1840 | 1857 | if ((asset.issuer != this)) | |
1841 | 1858 | then throw("Unknown issuer of token") | |
1842 | 1859 | else if (!(contains(asset.name, LANDPREFIX))) | |
1843 | 1860 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
1844 | 1861 | else { | |
1845 | 1862 | let landNumSize = drop(asset.name, 4) | |
1846 | 1863 | let landNum = if (contains(landNumSize, "XXL")) | |
1847 | 1864 | then dropRight(landNumSize, 3) | |
1848 | 1865 | else if (contains(landNumSize, "XL")) | |
1849 | 1866 | then dropRight(landNumSize, 2) | |
1850 | 1867 | else dropRight(landNumSize, 1) | |
1851 | 1868 | if (!(isDefined(parseInt(landNum)))) | |
1852 | 1869 | then throw(("Cannot parse land number from " + asset.name)) | |
1853 | 1870 | else { | |
1854 | 1871 | let landAssetId = toBase58String(assetId) | |
1855 | 1872 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1856 | 1873 | if (isDefined(getInteger(timeKey))) | |
1857 | 1874 | then throw((("NFT " + asset.name) + " is already staked")) | |
1858 | 1875 | else { | |
1859 | 1876 | let d = split(asset.description, "_") | |
1860 | 1877 | let terrainCounts = countTerrains(d[recTerrains]) | |
1861 | 1878 | let pieces = numPiecesBySize(d[recLandSize]) | |
1862 | - | let props = updateProportions(terrainCounts, (pieces / SSIZE), 1) | |
1879 | + | let landIndex = (pieces / SSIZE) | |
1880 | + | let props = updateProportions(terrainCounts, landIndex, 1) | |
1881 | + | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1882 | + | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1883 | + | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
1863 | 1884 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1864 | 1885 | let landsKey = keyStakedLandsByOwner(address) | |
1865 | 1886 | let landsStr = getString(landsKey) | |
1866 | 1887 | let lands = if (isDefined(landsStr)) | |
1867 | 1888 | then split_51C(value(landsStr), "_") | |
1868 | 1889 | else nil | |
1869 | 1890 | if (containsElement(lands, landAssetId)) | |
1870 | 1891 | then throw(("Your staked lands already contain " + landAssetId)) | |
1871 | 1892 | else { | |
1872 | 1893 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1873 | 1894 | let piecesKey = keyStakedPiecesByOwner(address) | |
1874 | 1895 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
1875 | 1896 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [address], nil)) | |
1876 | - | $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), prologAction], wlgResult) | |
1897 | + | $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), prologAction], wlgResult) | |
1877 | 1898 | } | |
1878 | 1899 | } | |
1879 | 1900 | } | |
1880 | 1901 | } | |
1881 | 1902 | } | |
1882 | 1903 | } | |
1883 | 1904 | } | |
1884 | 1905 | ||
1885 | 1906 | ||
1886 | 1907 | ||
1887 | 1908 | @Callable(i) | |
1888 | 1909 | func unstakeLand (landAssetIdIn) = { | |
1889 | 1910 | let prologAction = prolog(i) | |
1890 | 1911 | if ((size(i.payments) != 0)) | |
1891 | 1912 | then throw("No payments required") | |
1892 | 1913 | else { | |
1893 | 1914 | let addr = toString(i.caller) | |
1894 | 1915 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
1895 | 1916 | let landAssetId = c._2 | |
1917 | + | let d = c._3 | |
1896 | 1918 | let landsKey = keyStakedLandsByOwner(addr) | |
1897 | - | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1898 | - | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1899 | - | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
1919 | + | let terrainCounts = countTerrains(d[recTerrains]) | |
1920 | + | let pieces = numPiecesBySize(d[recLandSize]) | |
1921 | + | let landIndex = (pieces / SSIZE) | |
1922 | + | let props = updateProportions(terrainCounts, landIndex, -1) | |
1923 | + | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
1924 | + | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
1925 | + | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, -1), "_") | |
1900 | 1926 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
1901 | 1927 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
1902 | 1928 | let idx = indexOf(lands, landAssetId) | |
1903 | 1929 | if (!(isDefined(idx))) | |
1904 | 1930 | then throw(("Your staked lands don't contain " + landAssetId)) | |
1905 | 1931 | else { | |
1906 | 1932 | let now = lastBlock.timestamp | |
1907 | 1933 | let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
1908 | 1934 | if ((govReleaseTime >= now)) | |
1909 | 1935 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime))) | |
1910 | 1936 | else { | |
1911 | 1937 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastArbTimeByUser(addr)), 0) + arbitrageDelay) | |
1912 | 1938 | if ((arbReleaseTime > now)) | |
1913 | 1939 | then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime))) | |
1914 | 1940 | else { | |
1915 | 1941 | let piecesKey = keyStakedPiecesByOwner(addr) | |
1916 | 1942 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
1917 | 1943 | let newPieces = if ((pieces > stakedPieces)) | |
1918 | 1944 | then 0 | |
1919 | 1945 | else (stakedPieces - pieces) | |
1920 | 1946 | let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [addr], nil)) | |
1921 | - | $Tuple2([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)) | |
1947 | + | $Tuple2([ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
1922 | 1948 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
1923 | 1949 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces), prologAction], wlgResult) | |
1924 | 1950 | } | |
1925 | 1951 | } | |
1926 | 1952 | } | |
1927 | 1953 | } | |
1928 | 1954 | } | |
1929 | 1955 | ||
1930 | 1956 | ||
1931 | 1957 | ||
1932 | 1958 | @Callable(i) | |
1933 | 1959 | func stakeDuck () = { | |
1934 | 1960 | let prologAction = prolog(i) | |
1935 | 1961 | if ((size(i.payments) != 1)) | |
1936 | 1962 | then throw("Exactly one payment required") | |
1937 | 1963 | else { | |
1938 | 1964 | let pmt = value(i.payments[0]) | |
1939 | 1965 | let assetId = value(pmt.assetId) | |
1940 | 1966 | let address = toString(i.caller) | |
1941 | 1967 | if ((pmt.amount != 1)) | |
1942 | 1968 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
1943 | 1969 | else { | |
1944 | 1970 | let asset = value(assetInfo(assetId)) | |
1945 | 1971 | if (if ((asset.issuer != incubatorAddr)) | |
1946 | 1972 | then (asset.issuer != breederAddr) | |
1947 | 1973 | else false) | |
1948 | 1974 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
1949 | 1975 | else if (!(contains(asset.name, DUCKPREFIX))) | |
1950 | 1976 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
1951 | 1977 | else { | |
1952 | 1978 | let assetIdStr = toBase58String(assetId) | |
1953 | 1979 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1954 | 1980 | if (isDefined(getInteger(timeKey))) | |
1955 | 1981 | then throw((("NFT " + asset.name) + " is already staked")) | |
1956 | 1982 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
1957 | 1983 | then throw(("You already staked one duck: " + asset.name)) | |
1958 | 1984 | else if (checkTournament(assetIdStr)) | |
1959 | 1985 | then throw("stakeDuck_checkTournament") | |
1960 | 1986 | else { | |
1961 | 1987 | let locKey = keyDuckLocation(assetIdStr) | |
1962 | 1988 | let location = getString(locKey) | |
1963 | 1989 | let bpKey = keyBackpackByDuck(assetIdStr) | |
1964 | 1990 | let backpack = getString(bpKey) | |
1965 | 1991 | let keyHealth = keyDuckHealth(assetIdStr) | |
1966 | 1992 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
1967 | 1993 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
1968 | 1994 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
1969 | 1995 | then nil | |
1970 | 1996 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
1971 | 1997 | then nil | |
1972 | 1998 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyHealth, curHealth)) :+ prologAction))))) | |
1973 | 1999 | } | |
1974 | 2000 | } | |
1975 | 2001 | } | |
1976 | 2002 | } | |
1977 | 2003 | } | |
1978 | 2004 | ||
1979 | 2005 | ||
1980 | 2006 | ||
1981 | 2007 | @Callable(i) | |
1982 | 2008 | func unstakeDuck (assetIdStr) = { | |
1983 | 2009 | let prologAction = prolog(i) | |
1984 | 2010 | if ((size(i.payments) != 0)) | |
1985 | 2011 | then throw("No payments required") | |
1986 | 2012 | else { | |
1987 | 2013 | let assetId = fromBase58String(assetIdStr) | |
1988 | 2014 | let address = toString(i.caller) | |
1989 | 2015 | let asset = value(assetInfo(assetId)) | |
1990 | 2016 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
1991 | 2017 | if (!(isDefined(getInteger(timeKey)))) | |
1992 | 2018 | then throw((("NFT " + asset.name) + " is not staked")) | |
1993 | 2019 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
1994 | 2020 | then throw((("The duck " + asset.name) + " is not staked")) | |
1995 | 2021 | else { | |
1996 | 2022 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetIdStr)), (("NFT " + asset.name) + " is orphaned")) | |
1997 | 2023 | if ((owner != address)) | |
1998 | 2024 | then throw("Staked NFT is not yours") | |
1999 | 2025 | else if (checkTournament(assetIdStr)) | |
2000 | 2026 | then throw("unstakeDuck_checkTournament") | |
2001 | 2027 | else { | |
2002 | 2028 | let keyHealth = keyDuckHealth(assetIdStr) | |
2003 | 2029 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
2004 | 2030 | let health = valueOrElse(getInteger(keyHealth), maxHP) | |
2005 | 2031 | if ((maxHP > health)) | |
2006 | 2032 | then throw((("Please heal your duck to " + toString(maxHP)) + "hp before unstaking")) | |
2007 | 2033 | 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] | |
2008 | 2034 | } | |
2009 | 2035 | } | |
2010 | 2036 | } | |
2011 | 2037 | } | |
2012 | 2038 | ||
2013 | 2039 | ||
2014 | 2040 | ||
2015 | 2041 | @Callable(i) | |
2016 | 2042 | func claimRes (amount,landAssetIdStr) = { | |
2017 | 2043 | let prologAction = prolog(i) | |
2018 | 2044 | if ((size(i.payments) != 0)) | |
2019 | 2045 | then throw("No payments required") | |
2020 | 2046 | else { | |
2021 | 2047 | let addr = toString(i.originCaller) | |
2022 | 2048 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
2023 | 2049 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2024 | 2050 | $Tuple2(((((result._1 ++ updateDuckStatsInternal(duckAssetId, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes]) | |
2025 | 2051 | } | |
2026 | 2052 | } | |
2027 | 2053 | ||
2028 | 2054 | ||
2029 | 2055 | ||
2030 | 2056 | @Callable(i) | |
2031 | 2057 | func claimResToWH (amount,landAssetIdStr) = { | |
2032 | 2058 | let prologAction = prolog(i) | |
2033 | 2059 | if ((size(i.payments) != 0)) | |
2034 | 2060 | then throw("No payments required") | |
2035 | 2061 | else { | |
2036 | 2062 | let addr = toString(i.originCaller) | |
2037 | 2063 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
2038 | 2064 | $Tuple2(((((result._1 ++ updateAccStatsInternal(addr, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes]) | |
2039 | 2065 | } | |
2040 | 2066 | } | |
2041 | 2067 | ||
2042 | 2068 | ||
2043 | 2069 | ||
2044 | 2070 | @Callable(i) | |
2045 | 2071 | func flight (message,sig) = { | |
2046 | 2072 | let prologAction = prolog(i) | |
2047 | 2073 | if ((size(i.payments) != 0)) | |
2048 | 2074 | then throw("No payments required") | |
2049 | 2075 | else { | |
2050 | 2076 | let userAddr = toString(i.caller) | |
2051 | 2077 | let f = flightCommon(userAddr, message, sig) | |
2052 | 2078 | let duckAssetId = f._2 | |
2053 | 2079 | let newLocation = f._4 | |
2054 | 2080 | let newLoc = split(newLocation, "_") | |
2055 | 2081 | let isTour = (newLoc[locIdxType] == "T") | |
2056 | 2082 | if (if (!(isTour)) | |
2057 | 2083 | then checkTournament(duckAssetId) | |
2058 | 2084 | else false) | |
2059 | 2085 | then throw("flight_checkTournament") | |
2060 | 2086 | else { | |
2061 | 2087 | let tourStuff = if (isTour) | |
2062 | 2088 | then { | |
2063 | 2089 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
2064 | 2090 | let now = lastBlock.timestamp | |
2065 | 2091 | let tData = getTourData(tournamentContract, lastId) | |
2066 | 2092 | let static = tData[idxStatic] | |
2067 | 2093 | let dynamic = tData[idxDynamic] | |
2068 | 2094 | if (if (if ((parseIntValue(newLoc[locIdxContinent]) != lastId)) | |
2069 | 2095 | then true | |
2070 | 2096 | else (dynamic[tDynamicStatus] != "INPROGRESS")) | |
2071 | 2097 | then true | |
2072 | 2098 | else (now > parseIntValue(static[tStaticEnd]))) | |
2073 | 2099 | then unit | |
2074 | 2100 | else { | |
2075 | 2101 | let score = parseIntValue(newLoc[locIdxId]) | |
2076 | 2102 | let globalBest = parseIntValue(dynamic[tDynamicWinResult]) | |
2077 | 2103 | if ((globalBest >= score)) | |
2078 | 2104 | then unit | |
2079 | 2105 | else invoke(tournamentContract, "updateDynamicData", [duckAssetId, score], nil) | |
2080 | 2106 | } | |
2081 | 2107 | } | |
2082 | 2108 | else unit | |
2083 | 2109 | if ((tourStuff == tourStuff)) | |
2084 | 2110 | then { | |
2085 | 2111 | let locKey = keyDuckLocation(duckAssetId) | |
2086 | 2112 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
2087 | 2113 | if ((newLocation == curLocation)) | |
2088 | 2114 | then throw("You can't fly to the same location") | |
2089 | 2115 | else { | |
2090 | 2116 | let eqKey = keyDuckEquipment(duckAssetId) | |
2091 | 2117 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
2092 | 2118 | let newEq = subtractEquipment(currentEq, f._5) | |
2093 | 2119 | $Tuple2(([StringEntry(locKey, if ((f._1 > 0)) | |
2094 | 2120 | then newLocation | |
2095 | 2121 | else curLocation), StringEntry(eqKey, newEq), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0)) | |
2096 | 2122 | then xpSuccessFlight | |
2097 | 2123 | else xpFailFlight)._1), f._3) | |
2098 | 2124 | } | |
2099 | 2125 | } | |
2100 | 2126 | else throw("Strict value is not equal to itself.") | |
2101 | 2127 | } | |
2102 | 2128 | } | |
2103 | 2129 | } | |
2104 | 2130 | ||
2105 | 2131 | ||
2106 | 2132 | ||
2107 | 2133 | @Callable(i) | |
2108 | 2134 | func heal (quantityL1,quantityL2,quantityL3) = { | |
2109 | 2135 | let prologAction = prolog(i) | |
2110 | 2136 | if (if (if ((0 > quantityL1)) | |
2111 | 2137 | then true | |
2112 | 2138 | else (0 > quantityL2)) | |
2113 | 2139 | then true | |
2114 | 2140 | else (0 > quantityL3)) | |
2115 | 2141 | then throw("Quantity cannot be negative") | |
2116 | 2142 | else { | |
2117 | 2143 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2118 | 2144 | if (checkTournament(duckAssetId)) | |
2119 | 2145 | then throw("heal_checkTournament") | |
2120 | 2146 | else { | |
2121 | 2147 | let qts = [quantityL1, quantityL2, quantityL3] | |
2122 | 2148 | let keyHealth = keyDuckHealth(duckAssetId) | |
2123 | 2149 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
2124 | 2150 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
2125 | 2151 | if ((oldHealth >= maxHP)) | |
2126 | 2152 | then throw((("HP should be < " + toString(maxHP)) + " to heal")) | |
2127 | 2153 | else { | |
2128 | 2154 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2129 | 2155 | let currentPack = getBackpack(bpKey) | |
2130 | 2156 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
2131 | 2157 | then nil | |
2132 | 2158 | else split(currentPack[bpIdxProd], "_") | |
2133 | 2159 | func iterateProd (acc,ignoredItem) = { | |
2134 | 2160 | let n = acc._2 | |
2135 | 2161 | let x = if ((size(prodList) > n)) | |
2136 | 2162 | then parseIntValue(prodList[n]) | |
2137 | 2163 | else 0 | |
2138 | 2164 | if ((3 > n)) | |
2139 | 2165 | then { | |
2140 | 2166 | let q = qts[n] | |
2141 | 2167 | if ((q > x)) | |
2142 | 2168 | then throw(((("You have only " + toString(x)) + " of ") + prodTypes[n])) | |
2143 | 2169 | else $Tuple3((acc._1 :+ toString((x - q))), (n + 1), (acc._3 + (medKitHp[n] * q))) | |
2144 | 2170 | } | |
2145 | 2171 | else $Tuple3((acc._1 :+ toString(x)), (n + 1), acc._3) | |
2146 | 2172 | } | |
2147 | 2173 | ||
2148 | 2174 | let result = { | |
2149 | 2175 | let $l = productionMatrix | |
2150 | 2176 | let $s = size($l) | |
2151 | 2177 | let $acc0 = $Tuple3(nil, 0, 0) | |
2152 | 2178 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2153 | 2179 | then $a | |
2154 | 2180 | else iterateProd($a, $l[$i]) | |
2155 | 2181 | ||
2156 | 2182 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2157 | 2183 | then $a | |
2158 | 2184 | else throw("List size exceeds 50") | |
2159 | 2185 | ||
2160 | 2186 | $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) | |
2161 | 2187 | } | |
2162 | 2188 | let newHealth = min([maxHP, (oldHealth + result._3)]) | |
2163 | 2189 | $Tuple2(([IntegerEntry(keyHealth, newHealth), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(result._1, "_")], ":")), prologAction] ++ updateDuckStatsInternal(duckAssetId, (xpHeal * ((quantityL1 + quantityL2) + quantityL3)))._1), newHealth) | |
2164 | 2190 | } | |
2165 | 2191 | } | |
2166 | 2192 | } | |
2167 | 2193 | } | |
2168 | 2194 | ||
2169 | 2195 | ||
2170 | 2196 | ||
2171 | 2197 | @Callable(i) | |
2172 | 2198 | func healES () = { | |
2173 | 2199 | let prologAction = prolog(i) | |
2174 | 2200 | if ((size(i.payments) != 1)) | |
2175 | 2201 | then throw("Exactly one payment required") | |
2176 | 2202 | else { | |
2177 | 2203 | let pmt = value(i.payments[0]) | |
2178 | 2204 | if ((pmt.assetId != usdtAssetId)) | |
2179 | 2205 | then throw("Allowed USDT payment only!") | |
2180 | 2206 | else { | |
2181 | 2207 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2182 | 2208 | if (checkTournament(duckAssetId)) | |
2183 | 2209 | then throw("healES_checkTournament") | |
2184 | 2210 | else { | |
2185 | 2211 | let keyHealth = keyDuckHealth(duckAssetId) | |
2186 | 2212 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
2187 | 2213 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
2188 | 2214 | if ((oldHealth > 0)) | |
2189 | 2215 | then throw("HP should be 0 to call Emergency Service") | |
2190 | 2216 | else { | |
2191 | 2217 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2192 | 2218 | let currentPack = getBackpack(bpKey) | |
2193 | 2219 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
2194 | 2220 | then nil | |
2195 | 2221 | else split(currentPack[bpIdxProd], "_") | |
2196 | 2222 | let medKitAmount1 = if ((size(prodList) > 0)) | |
2197 | 2223 | then parseIntValue(prodList[0]) | |
2198 | 2224 | else 0 | |
2199 | 2225 | let medKitAmount2 = if ((size(prodList) > 1)) | |
2200 | 2226 | then parseIntValue(prodList[1]) | |
2201 | 2227 | else 0 | |
2202 | 2228 | let medKitAmount3 = if ((size(prodList) > 2)) | |
2203 | 2229 | then parseIntValue(prodList[2]) | |
2204 | 2230 | else 0 | |
2205 | 2231 | if (if (if ((medKitAmount1 > 0)) | |
2206 | 2232 | then true | |
2207 | 2233 | else (medKitAmount2 > 0)) | |
2208 | 2234 | then true | |
2209 | 2235 | else (medKitAmount3 > 0)) | |
2210 | 2236 | then throw("You have to use own Medical Kit") | |
2211 | 2237 | else { | |
2212 | 2238 | let existStr = getString(economyContract, keyEsWarehouse()) | |
2213 | 2239 | let existAmounts = if (isDefined(existStr)) | |
2214 | 2240 | then split(value(existStr), "_") | |
2215 | 2241 | else nil | |
2216 | 2242 | let existAmount = if ((size(existAmounts) > 0)) | |
2217 | 2243 | then parseIntValue(existAmounts[0]) | |
2218 | 2244 | else 0 | |
2219 | 2245 | if ((0 >= existAmount)) | |
2220 | 2246 | then throw("There are no Medical Kits L1 at Emergency Service storage") | |
2221 | 2247 | else { | |
2222 | 2248 | let newHealth = (oldHealth + medKitHp[0]) | |
2223 | 2249 | let newES = makeString([toString((existAmount - 1)), removeByIndex(existAmounts, 0)], "_") | |
2224 | 2250 | let recipe = split(productionMatrix[0], "_") | |
2225 | 2251 | let totalMat = getRecipeMaterials(recipe) | |
2226 | 2252 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
2227 | 2253 | if ((pmt.amount != sellPrice)) | |
2228 | 2254 | then throw(("Payment attached should be " + toString(sellPrice))) | |
2229 | 2255 | else { | |
2230 | 2256 | let result = asString(invoke(economyContract, "updateEsStorage", [newES], [AttachedPayment(usdtAssetId, sellPrice)])) | |
2231 | 2257 | $Tuple2(([IntegerEntry(keyHealth, newHealth), prologAction] ++ updateDuckStatsInternal(duckAssetId, xpCallES)._1), result) | |
2232 | 2258 | } | |
2233 | 2259 | } | |
2234 | 2260 | } | |
2235 | 2261 | } | |
2236 | 2262 | } | |
2237 | 2263 | } | |
2238 | 2264 | } | |
2239 | 2265 | } | |
2240 | 2266 | ||
2241 | 2267 | ||
2242 | 2268 | ||
2243 | 2269 | @Callable(i) | |
2244 | 2270 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
2245 | 2271 | then throw("permission denied") | |
2246 | 2272 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
2247 | 2273 | ||
2248 | 2274 | ||
2249 | 2275 | ||
2250 | 2276 | @Callable(i) | |
2251 | 2277 | func commitForRandom () = { | |
2252 | 2278 | let prologAction = prolog(i) | |
2253 | 2279 | let finishBlock = (height + randomDelay) | |
2254 | 2280 | let addr = toString(i.caller) | |
2255 | 2281 | $Tuple2(([IntegerEntry(keyCommit(addr), finishBlock)] :+ prologAction), finishBlock) | |
2256 | 2282 | } | |
2257 | 2283 | ||
2258 | 2284 | ||
2259 | 2285 | ||
2260 | 2286 | @Callable(i) | |
2261 | 2287 | func buySLand () = { | |
2262 | 2288 | let prologAction = prolog(i) | |
2263 | 2289 | if ((size(i.payments) != 1)) | |
2264 | 2290 | then throw("Exactly one payment required") | |
2265 | 2291 | else { | |
2266 | 2292 | let pmt = value(i.payments[0]) | |
2267 | 2293 | if ((pmt.assetId != usdtAssetId)) | |
2268 | 2294 | then throw("Allowed USDT payment only!") | |
2269 | 2295 | else if ((pmt.amount != EXPUSDT)) | |
2270 | 2296 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
2271 | 2297 | else { | |
2272 | 2298 | let result = expeditionInternal(i.caller, i.transactionId) | |
2273 | 2299 | $Tuple2((((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ updateAccStatsInternal(toString(i.caller), xpNewSLand)._1) :+ prologAction), result._2._1) | |
2274 | 2300 | } | |
2275 | 2301 | } | |
2276 | 2302 | } | |
2277 | 2303 | ||
2278 | 2304 | ||
2279 | 2305 | ||
2280 | 2306 | @Callable(i) | |
2281 | 2307 | func expedition (message,sig) = { | |
2282 | 2308 | let prologAction = prolog(i) | |
2283 | 2309 | if ((size(i.payments) != 0)) | |
2284 | 2310 | then throw("No payments required") | |
2285 | 2311 | else { | |
2286 | 2312 | let result = expeditionCommon(i.caller, i.transactionId, message, sig) | |
2287 | 2313 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2288 | 2314 | if (checkTournament(duckAssetId)) | |
2289 | 2315 | then throw("expedition_checkTournament") | |
2290 | 2316 | else $Tuple2(((result._1 ++ updateDuckStatsInternal(duckAssetId, xpNewSLand)._1) :+ prologAction), $Tuple2(result._2, result._3)) | |
2291 | 2317 | } | |
2292 | 2318 | } | |
2293 | 2319 | ||
2294 | 2320 | ||
2295 | 2321 | ||
2296 | 2322 | @Callable(i) | |
2297 | 2323 | func upgradeInfra (landAssetId) = { | |
2298 | 2324 | let prologAction = prolog(i) | |
2299 | 2325 | if ((size(i.payments) != 0)) | |
2300 | 2326 | then throw("No payments required") | |
2301 | 2327 | else { | |
2302 | 2328 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
2303 | 2329 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2304 | 2330 | $Tuple2(((result._1 :+ prologAction) ++ updateDuckStatsInternal(duckAssetId, fraction(xpUpgradeInfra, result._3, MULT8))._1), result._2) | |
2305 | 2331 | } | |
2306 | 2332 | } | |
2307 | 2333 | ||
2308 | 2334 | ||
2309 | 2335 | ||
2310 | 2336 | @Callable(i) | |
2311 | 2337 | func activateArtifact (artName,landAssetIdOpt) = { | |
2312 | 2338 | let prologAction = prolog(i) | |
2313 | 2339 | if ((size(i.payments) != 0)) | |
2314 | 2340 | then throw("No payments required") | |
2315 | 2341 | else { | |
2316 | 2342 | let addr = toString(i.caller) | |
2317 | 2343 | let result = match artName { | |
2318 | 2344 | case _ => | |
2319 | 2345 | if (("PRESALE" == $match0)) | |
2320 | 2346 | then activatePresaleArt(addr, landAssetIdOpt) | |
2321 | 2347 | else if (("ONBOARD" == $match0)) | |
2322 | 2348 | then activateOnboardArt(addr) | |
2323 | 2349 | else throw("Unknown artifact") | |
2324 | 2350 | } | |
2325 | 2351 | (result :+ prologAction) | |
2326 | 2352 | } | |
2327 | 2353 | } | |
2328 | 2354 | ||
2329 | 2355 | ||
2330 | 2356 | ||
2331 | 2357 | @Callable(i) | |
2332 | 2358 | func mergeLands (landAssetIds) = { | |
2333 | 2359 | let prologAction = prolog(i) | |
2334 | 2360 | if ((size(i.payments) != 0)) | |
2335 | 2361 | then throw("No payments required") | |
2336 | 2362 | else { | |
2337 | 2363 | let result = mergeCommon(toString(i.caller), landAssetIds) | |
2338 | 2364 | $Tuple2(((result._1 :+ prologAction) ++ updateAccStatsInternal(toString(i.caller), xpMerge)._1), result._2) | |
2339 | 2365 | } | |
2340 | 2366 | } | |
2341 | 2367 | ||
2342 | 2368 | ||
2343 | 2369 | ||
2344 | 2370 | @Callable(i) | |
2345 | 2371 | func cargoExchange (cargoListStr,landAssetId) = { | |
2346 | 2372 | let prologAction = prolog(i) | |
2347 | 2373 | if ((size(i.payments) != 0)) | |
2348 | 2374 | then throw("No payments required") | |
2349 | 2375 | else { | |
2350 | 2376 | let cargoParts = split_4C(cargoListStr, ":") | |
2351 | 2377 | let addr = toString(i.originCaller) | |
2352 | 2378 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2353 | 2379 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
2354 | 2380 | if (!(isDefined(getInteger(timeKey)))) | |
2355 | 2381 | then throw((asset.name + " is not staked")) | |
2356 | 2382 | else { | |
2357 | 2383 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
2358 | 2384 | if ((owner != addr)) | |
2359 | 2385 | then throw((LANDPREFIX + " is not yours")) | |
2360 | 2386 | else { | |
2361 | 2387 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2362 | 2388 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2363 | 2389 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2364 | 2390 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
2365 | 2391 | let loc = split(value(curLocation), "_") | |
2366 | 2392 | if ((loc[locIdxType] != "L")) | |
2367 | 2393 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
2368 | 2394 | else if ((loc[locIdxId] != landAssetId)) | |
2369 | 2395 | then throw(("Duck should be on the land " + landAssetId)) | |
2370 | 2396 | else { | |
2371 | 2397 | let whKey = keyWarehouseByLand(landAssetId) | |
2372 | 2398 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
2373 | 2399 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2374 | 2400 | let currentPack = getBackpack(bpKey) | |
2375 | 2401 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
2376 | 2402 | let loft = split(currentWh[whIdxLOFT], "_") | |
2377 | 2403 | let loftO = (parseIntValue(loft[volOccupied]) + result._7) | |
2378 | 2404 | let loftF = (parseIntValue(loft[volFree]) - result._7) | |
2379 | 2405 | [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] | |
2380 | 2406 | } | |
2381 | 2407 | } | |
2382 | 2408 | } | |
2383 | 2409 | } | |
2384 | 2410 | } | |
2385 | 2411 | ||
2386 | 2412 | ||
2387 | 2413 | ||
2388 | 2414 | @Callable(i) | |
2389 | 2415 | func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract)) | |
2390 | 2416 | then throw("Access denied") | |
2391 | 2417 | else { | |
2392 | 2418 | let whKey = keyWarehouseByLand(landAssetId) | |
2393 | 2419 | let wh = split_4C(whStr, ":") | |
2394 | 2420 | if ((size(wh) != 5)) | |
2395 | 2421 | then throw("warehouse string should contain 4 ':' separators") | |
2396 | 2422 | else { | |
2397 | 2423 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
2398 | 2424 | let loftO = getWarehouseOccupiedVol(wh) | |
2399 | 2425 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2400 | 2426 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
2401 | 2427 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2402 | 2428 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2403 | 2429 | } | |
2404 | 2430 | } | |
2405 | 2431 | ||
2406 | 2432 | ||
2407 | 2433 | ||
2408 | 2434 | @Callable(i) | |
2409 | 2435 | func fixWarehouseFormat (landAssetId) = if ((i.caller != restContract)) | |
2410 | 2436 | then throw("Access denied") | |
2411 | 2437 | else { | |
2412 | 2438 | let whKey = keyWarehouseByLand(landAssetId) | |
2413 | 2439 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2414 | 2440 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2415 | 2441 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2416 | 2442 | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
2417 | 2443 | let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil)) | |
2418 | 2444 | let loftO = getWarehouseOccupiedVol(wh) | |
2419 | 2445 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2420 | 2446 | let loftF = ((loftT - loftL) - loftO) | |
2421 | 2447 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2422 | 2448 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2449 | + | } | |
2450 | + | ||
2451 | + | ||
2452 | + | ||
2453 | + | @Callable(i) | |
2454 | + | func fixContinentProportions (landAssetIds) = if ((i.caller != restContract)) | |
2455 | + | then throw("Access denied") | |
2456 | + | else { | |
2457 | + | func getProps (acc,cont) = (acc :+ valueOrElse(getString(keyResTypesByContinent(cont)), "0_0_0_0_0_0")) | |
2458 | + | ||
2459 | + | let p = { | |
2460 | + | let $l = continents | |
2461 | + | let $s = size($l) | |
2462 | + | let $acc0 = nil | |
2463 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2464 | + | then $a | |
2465 | + | else getProps($a, $l[$i]) | |
2466 | + | ||
2467 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2468 | + | then $a | |
2469 | + | else throw("List size exceeds 5") | |
2470 | + | ||
2471 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
2472 | + | } | |
2473 | + | func processor (acc,landAssetId) = { | |
2474 | + | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2475 | + | let d = split(asset.description, "_") | |
2476 | + | let landIndex = (numPiecesBySize(d[recLandSize]) / SSIZE) | |
2477 | + | let cont = d[recContinent] | |
2478 | + | let terrainCounts = countTerrains(d[recTerrains]) | |
2479 | + | let continentIdx = value(indexOf(continents, cont)) | |
2480 | + | let contProps = split(acc[continentIdx], "_") | |
2481 | + | let updated = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
2482 | + | match cont { | |
2483 | + | case _ => | |
2484 | + | if (("Americas" == $match0)) | |
2485 | + | then [updated, acc[1], acc[2], acc[3], acc[4]] | |
2486 | + | else if (("Europe" == $match0)) | |
2487 | + | then [acc[0], updated, acc[2], acc[3], acc[4]] | |
2488 | + | else if (("Asia" == $match0)) | |
2489 | + | then [acc[0], acc[1], updated, acc[3], acc[4]] | |
2490 | + | else if (("Africa" == $match0)) | |
2491 | + | then [acc[0], acc[1], acc[2], updated, acc[4]] | |
2492 | + | else if (("Oceania" == $match0)) | |
2493 | + | then [acc[0], acc[1], acc[2], acc[3], updated] | |
2494 | + | else throw("wrong continent") | |
2495 | + | } | |
2496 | + | } | |
2497 | + | ||
2498 | + | let r = { | |
2499 | + | let $l = landAssetIds | |
2500 | + | let $s = size($l) | |
2501 | + | let $acc0 = p | |
2502 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
2503 | + | then $a | |
2504 | + | else processor($a, $l[$i]) | |
2505 | + | ||
2506 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
2507 | + | then $a | |
2508 | + | else throw("List size exceeds 100") | |
2509 | + | ||
2510 | + | $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) | |
2511 | + | } | |
2512 | + | $Tuple2([StringEntry(keyResTypesByContinent("Americas"), r[0]), StringEntry(keyResTypesByContinent("Europe"), r[1]), StringEntry(keyResTypesByContinent("Asia"), r[2]), StringEntry(keyResTypesByContinent("Africa"), r[3]), StringEntry(keyResTypesByContinent("Oceania"), r[4])], 0) | |
2423 | 2513 | } | |
2424 | 2514 | ||
2425 | 2515 | ||
2426 | 2516 | ||
2427 | 2517 | @Callable(i) | |
2428 | 2518 | func fixStakedPieces (address) = if ((i.caller != restContract)) | |
2429 | 2519 | then throw("Access denied") | |
2430 | 2520 | else { | |
2431 | 2521 | let stakedPieces = if ((address == "")) | |
2432 | 2522 | then 0 | |
2433 | 2523 | else { | |
2434 | 2524 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(address)) | |
2435 | 2525 | let lands = if (isDefined(landsStr)) | |
2436 | 2526 | then split_51C(value(landsStr), "_") | |
2437 | 2527 | else nil | |
2438 | 2528 | func oneLand (acc,landAssetId) = { | |
2439 | 2529 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2440 | 2530 | let landSize = split(asset.description, "_")[recLandSize] | |
2441 | 2531 | (acc + numPiecesBySize(landSize)) | |
2442 | 2532 | } | |
2443 | 2533 | ||
2444 | 2534 | let $l = lands | |
2445 | 2535 | let $s = size($l) | |
2446 | 2536 | let $acc0 = 0 | |
2447 | 2537 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2448 | 2538 | then $a | |
2449 | 2539 | else oneLand($a, $l[$i]) | |
2450 | 2540 | ||
2451 | 2541 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2452 | 2542 | then $a | |
2453 | 2543 | else throw("List size exceeds 100") | |
2454 | 2544 | ||
2455 | 2545 | $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) | |
2456 | 2546 | } | |
2457 | 2547 | $Tuple2([IntegerEntry(keyStakedPiecesByOwner(address), stakedPieces)], stakedPieces) | |
2458 | 2548 | } | |
2459 | 2549 | ||
2460 | 2550 | ||
2461 | 2551 | ||
2462 | 2552 | @Callable(i) | |
2463 | 2553 | func setCustomName (assetId,customName,type) = { | |
2464 | 2554 | let prologAction = prolog(i) | |
2465 | 2555 | if ((size(i.payments) != 1)) | |
2466 | 2556 | then throw("Exactly one payment required") | |
2467 | 2557 | else { | |
2468 | 2558 | let pmt = value(i.payments[0]) | |
2469 | 2559 | if ((pmt.assetId != usdtAssetId)) | |
2470 | 2560 | then throw("Allowed USDT payment only!") | |
2471 | 2561 | else if ((pmt.amount != RENAMINGCOST)) | |
2472 | 2562 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
2473 | 2563 | else if (contains(customName, "__")) | |
2474 | 2564 | then throw(("Name should not contain '__': " + customName)) | |
2475 | 2565 | else if ((size(customName) > MAXNAMELEN)) | |
2476 | 2566 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
2477 | 2567 | else { | |
2478 | 2568 | let addr = toString(i.originCaller) | |
2479 | 2569 | let actions = match type { | |
2480 | 2570 | case _ => | |
2481 | 2571 | if (("ACCOUNT" == $match0)) | |
2482 | 2572 | then { | |
2483 | 2573 | let reverseKey = keyCustomNameToAddress(customName) | |
2484 | 2574 | let nameOwner = getString(reverseKey) | |
2485 | 2575 | if (isDefined(nameOwner)) | |
2486 | 2576 | then throw(("Name already registered: " + customName)) | |
2487 | 2577 | else { | |
2488 | 2578 | let addrToNameKey = keyAddressToCustomName(addr) | |
2489 | 2579 | let oldName = getString(addrToNameKey) | |
2490 | 2580 | let freeOld = if (isDefined(oldName)) | |
2491 | 2581 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
2492 | 2582 | else nil | |
2493 | 2583 | (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2494 | 2584 | } | |
2495 | 2585 | } | |
2496 | 2586 | else if (("LAND" == $match0)) | |
2497 | 2587 | then { | |
2498 | 2588 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2499 | 2589 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2500 | 2590 | if (!(isDefined(getInteger(timeKey)))) | |
2501 | 2591 | then throw((asset.name + " is not staked")) | |
2502 | 2592 | else { | |
2503 | 2593 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2504 | 2594 | if ((owner != addr)) | |
2505 | 2595 | then throw((LANDPREFIX + " is not yours")) | |
2506 | 2596 | else { | |
2507 | 2597 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
2508 | 2598 | let nameOwner = getString(reverseKey) | |
2509 | 2599 | if (isDefined(nameOwner)) | |
2510 | 2600 | then throw(("Name already registered: " + customName)) | |
2511 | 2601 | else { | |
2512 | 2602 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
2513 | 2603 | let oldName = getString(assetToNameKey) | |
2514 | 2604 | let freeOld = if (isDefined(oldName)) | |
2515 | 2605 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
2516 | 2606 | else nil | |
2517 | 2607 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2518 | 2608 | } | |
2519 | 2609 | } | |
2520 | 2610 | } | |
2521 | 2611 | } | |
2522 | 2612 | else if (("DUCK" == $match0)) | |
2523 | 2613 | then { | |
2524 | 2614 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2525 | 2615 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2526 | 2616 | if (if (!(isDefined(getInteger(timeKey)))) | |
2527 | 2617 | then true | |
2528 | 2618 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
2529 | 2619 | then throw((asset.name + " is not staked")) | |
2530 | 2620 | else { | |
2531 | 2621 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
2532 | 2622 | if ((owner != addr)) | |
2533 | 2623 | then throw((DUCKPREFIX + " is not yours")) | |
2534 | 2624 | else { | |
2535 | 2625 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
2536 | 2626 | let nameOwner = getString(reverseKey) | |
2537 | 2627 | if (isDefined(nameOwner)) | |
2538 | 2628 | then throw(("Name already registered: " + customName)) | |
2539 | 2629 | else { | |
2540 | 2630 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
2541 | 2631 | let oldName = getString(assetToNameKey) | |
2542 | 2632 | let freeOld = if (isDefined(oldName)) | |
2543 | 2633 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
2544 | 2634 | else nil | |
2545 | 2635 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1) | |
2546 | 2636 | } | |
2547 | 2637 | } | |
2548 | 2638 | } | |
2549 | 2639 | } | |
2550 | 2640 | else throw("Unknown entity type") | |
2551 | 2641 | } | |
2552 | 2642 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0) | |
2553 | 2643 | } | |
2554 | 2644 | } | |
2555 | 2645 | } | |
2556 | 2646 | ||
2557 | 2647 | ||
2558 | 2648 | ||
2559 | 2649 | @Callable(i) | |
2560 | 2650 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
2561 | 2651 | then throw("Permission denied") | |
2562 | 2652 | else { | |
2563 | 2653 | let prologAction = prolog(i) | |
2564 | 2654 | if ((size(i.payments) != 0)) | |
2565 | 2655 | then throw("No payments required") | |
2566 | 2656 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
2567 | 2657 | then throw(("Invalid address: " + oldPlayer)) | |
2568 | 2658 | else if (!(isDefined(addressFromString(newPlayer)))) | |
2569 | 2659 | then throw(("Invalid address: " + newPlayer)) | |
2570 | 2660 | else { | |
2571 | 2661 | let oldsKey = keyOldies() | |
2572 | 2662 | let olds = getString(oldsKey) | |
2573 | 2663 | let oldies = if (isDefined(olds)) | |
2574 | 2664 | then split_4C(value(olds), "_") | |
2575 | 2665 | else nil | |
2576 | 2666 | if (containsElement(oldies, newPlayer)) | |
2577 | 2667 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
2578 | 2668 | else { | |
2579 | 2669 | let refByKey = keyAddressRefBy(newPlayer) | |
2580 | 2670 | let refBy = getString(refByKey) | |
2581 | 2671 | if (if (isDefined(refBy)) | |
2582 | 2672 | then isDefined(addressFromString(value(refBy))) | |
2583 | 2673 | else false) | |
2584 | 2674 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
2585 | 2675 | else { | |
2586 | 2676 | let refsKey = keyAddressReferrals(oldPlayer) | |
2587 | 2677 | let refs = getString(refsKey) | |
2588 | 2678 | let refsArray = if (isDefined(refs)) | |
2589 | 2679 | then split_4C(value(refs), "_") | |
2590 | 2680 | else nil | |
2591 | 2681 | if (containsElement(refsArray, newPlayer)) | |
2592 | 2682 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
2593 | 2683 | else { | |
2594 | 2684 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
2595 | 2685 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
2596 | 2686 | then value(olds) | |
2597 | 2687 | else makeString_2C((oldies :+ oldPlayer), "_") | |
2598 | 2688 | $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0) | |
2599 | 2689 | } | |
2600 | 2690 | } | |
2601 | 2691 | } | |
2602 | 2692 | } | |
2603 | 2693 | } | |
2604 | 2694 | ||
2605 | 2695 | ||
2606 | 2696 | ||
2607 | 2697 | @Callable(i) | |
2608 | 2698 | func distributePoints (strength,accuracy,intellect,endurance,dexterity) = { | |
2609 | 2699 | let prologAction = prolog(i) | |
2610 | 2700 | if ((size(i.payments) != 0)) | |
2611 | 2701 | then throw("No payments required") | |
2612 | 2702 | else { | |
2613 | 2703 | let addr = toString(i.originCaller) | |
2614 | 2704 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2615 | 2705 | let freeKeyAcc = keyUserFreePoints(addr) | |
2616 | 2706 | let freePointsAcc = valueOrElse(getInteger(stakingContract, freeKeyAcc), 0) | |
2617 | 2707 | let freeKeyDuck = keyDuckFreePoints(duckAssetId) | |
2618 | 2708 | let freePointsDuck = valueOrElse(getInteger(stakingContract, freeKeyDuck), 0) | |
2619 | 2709 | let sumFree = (freePointsAcc + freePointsDuck) | |
2620 | 2710 | let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity) | |
2621 | 2711 | if ((sumToDistribute > sumFree)) | |
2622 | 2712 | then throw((("There are only " + toString(sumFree)) + " free points to distribute")) | |
2623 | 2713 | else { | |
2624 | 2714 | let charsKey = keyDuckChars(duckAssetId) | |
2625 | 2715 | let chars = split(valueOrElse(getString(stakingContract, charsKey), "0_0_0_0_0"), "_") | |
2626 | 2716 | let newAcc = (freePointsAcc - sumToDistribute) | |
2627 | 2717 | $Tuple2([IntegerEntry(freeKeyAcc, if ((0 > newAcc)) | |
2628 | 2718 | then 0 | |
2629 | 2719 | else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc)) | |
2630 | 2720 | then (freePointsDuck + newAcc) | |
2631 | 2721 | else freePointsDuck), StringEntry(charsKey, makeString([toString((parseIntValue(chars[charStrength]) + strength)), toString((parseIntValue(chars[charAccuracy]) + accuracy)), toString((parseIntValue(chars[charIntellect]) + intellect)), toString((parseIntValue(chars[charEndurance]) + endurance)), toString((parseIntValue(chars[charDexterity]) + dexterity))], "_")), prologAction], 0) | |
2632 | 2722 | } | |
2633 | 2723 | } | |
2634 | 2724 | } | |
2635 | 2725 | ||
2636 | 2726 | ||
2637 | 2727 | ||
2638 | 2728 | @Callable(i) | |
2639 | 2729 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
2640 | 2730 | ||
2641 | 2731 | ||
2642 | 2732 | ||
2643 | 2733 | @Callable(i) | |
2644 | 2734 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
2645 | 2735 | let terrainCounts = countTerrains(terrains) | |
2646 | 2736 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
2647 | 2737 | } | |
2648 | 2738 | ||
2649 | 2739 | ||
2650 | 2740 | ||
2651 | 2741 | @Callable(i) | |
2652 | 2742 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
2653 | 2743 | ||
2654 | 2744 | ||
2655 | 2745 | ||
2656 | 2746 | @Callable(i) | |
2657 | 2747 | func getWarehouseREADONLY (landAssetId) = { | |
2658 | 2748 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2659 | 2749 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2660 | 2750 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2661 | 2751 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
2662 | 2752 | } | |
2663 | 2753 | ||
2664 | 2754 | ||
2665 | 2755 | ||
2666 | 2756 | @Callable(i) | |
2667 | 2757 | func saveLastTx () = { | |
2668 | 2758 | let caller = i.caller | |
2669 | 2759 | if (if (if ((caller != wlgContract)) | |
2670 | 2760 | then (caller != economyContract) | |
2671 | 2761 | else false) | |
2672 | 2762 | then (caller != tournamentContract) | |
2673 | 2763 | else false) | |
2674 | 2764 | then throw("Access denied") | |
2675 | 2765 | else $Tuple2([prolog(i)], 42) | |
2676 | 2766 | } | |
2677 | 2767 | ||
2678 | 2768 | ||
2679 | 2769 | ||
2680 | 2770 | @Callable(i) | |
2681 | 2771 | func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract)) | |
2682 | 2772 | then throw("Access denied") | |
2683 | 2773 | else updateDuckStatsInternal(duckAssetId, deltaXP) | |
2684 | 2774 | ||
2685 | 2775 | ||
2686 | 2776 | ||
2687 | 2777 | @Callable(i) | |
2688 | 2778 | func updateAccStats (addr,deltaXP) = if ((i.caller != economyContract)) | |
2689 | 2779 | then throw("Access denied") | |
2690 | 2780 | else updateAccStatsInternal(addr, deltaXP) | |
2691 | 2781 | ||
2692 | 2782 | ||
2693 | 2783 | ||
2694 | 2784 | @Callable(i) | |
2695 | 2785 | func equipDuck (equipment) = { | |
2696 | 2786 | let prologAction = prolog(i) | |
2697 | 2787 | if ((size(i.payments) != 0)) | |
2698 | 2788 | then throw("No payments required") | |
2699 | 2789 | else { | |
2700 | 2790 | let addr = toString(i.originCaller) | |
2701 | 2791 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2702 | 2792 | if (checkTournament(duckAssetId)) | |
2703 | 2793 | then throw("equipDuck_checkTournament") | |
2704 | 2794 | else { | |
2705 | 2795 | let eqKey = keyDuckEquipment(duckAssetId) | |
2706 | 2796 | let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
2707 | 2797 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2708 | 2798 | let currentPack = getBackpack(bpKey) | |
2709 | 2799 | let newEq = split(equipment, "_") | |
2710 | 2800 | if ((size(newEq) != NUMSEGMENTS)) | |
2711 | 2801 | then throw("Wrong equipment string") | |
2712 | 2802 | else { | |
2713 | 2803 | let reqs = getDuckStats(this, duckAssetId) | |
2714 | 2804 | let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, reqs) | |
2715 | 2805 | let newProdB = dressB(newEq, tempProdB, false, reqs) | |
2716 | 2806 | let newProdStr = bytesToProdStr(newProdB) | |
2717 | 2807 | $Tuple2([StringEntry(eqKey, equipment), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProdStr], ":")), prologAction], 0) | |
2718 | 2808 | } | |
2719 | 2809 | } | |
2720 | 2810 | } | |
2721 | 2811 | } | |
2722 | 2812 | ||
2723 | 2813 | ||
2724 | 2814 | ||
2725 | 2815 | @Callable(i) | |
2726 | 2816 | func initDuckTourAttempt (duckAssetId) = if ((i.caller != tournamentContract)) | |
2727 | 2817 | then throw("Access denied") | |
2728 | 2818 | else { | |
2729 | 2819 | let prologAction = prolog(i) | |
2730 | 2820 | let keyHealth = keyDuckHealth(duckAssetId) | |
2731 | 2821 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
2732 | 2822 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
2733 | 2823 | let curLocKey = keyDuckLocation(duckAssetId) | |
2734 | 2824 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
2735 | 2825 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
2736 | 2826 | let tourLocation = (toString(lastId) + "_T_0") | |
2737 | 2827 | $Tuple2([prologAction, IntegerEntry(keySavedHealth(duckAssetId), curHealth), IntegerEntry(keyHealth, 100), StringEntry(keySavedLocation(duckAssetId), curLocation), StringEntry(curLocKey, tourLocation)], tourLocation) | |
2738 | 2828 | } | |
2739 | 2829 | ||
2740 | 2830 | ||
2741 | 2831 | ||
2742 | 2832 | @Callable(i) | |
2743 | 2833 | func exitTournaments () = { | |
2744 | 2834 | let prologAction = prolog(i) | |
2745 | 2835 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2746 | 2836 | let curLocKey = keyDuckLocation(duckAssetId) | |
2747 | 2837 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
2748 | 2838 | if ((split(curLocation, "_")[locIdxType] != "T")) | |
2749 | 2839 | then throw("Your duck is not in the tournament") | |
2750 | 2840 | else { | |
2751 | 2841 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
2752 | 2842 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
2753 | 2843 | $Tuple2([prologAction, IntegerEntry(keyDuckHealth(duckAssetId), savedHealth), StringEntry(curLocKey, savedLocation)], curLocation) | |
2754 | 2844 | } | |
2755 | 2845 | } | |
2756 | 2846 | ||
2757 | 2847 | ||
2758 | 2848 | ||
2759 | 2849 | @Callable(i) | |
2760 | 2850 | func exitTournamentInternal (duckAssetId) = if ((i.caller != this)) | |
2761 | 2851 | then throw("Access denied") | |
2762 | 2852 | else { | |
2763 | 2853 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
2764 | 2854 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
2765 | 2855 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), savedHealth), StringEntry(keyDuckLocation(duckAssetId), savedLocation)], 0) | |
2766 | 2856 | } | |
2767 | 2857 | ||
2768 | 2858 |
github/deemru/w8io/169f3d6 283.65 ms ◑