tx · H8kdpwVBwfn2jzKHiGFZsUE2XvUkXix3UFxEqhQD4pHy

3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm:  -0.05700000 Waves

2023.05.29 02:58 [2598508] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves

{ "type": 13, "id": "H8kdpwVBwfn2jzKHiGFZsUE2XvUkXix3UFxEqhQD4pHy", "fee": 5700000, "feeAssetId": null, "timestamp": 1685318317634, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "9Mv15KFRgvembHZ3Bzyn8ZxAUwED3eejWG1y3e6hBwGxVSH1AoSkVmFBHz2zeBsXaT8LnWXriZpLt3asK7VE4RZ" ], "script": "base64:BgKUAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgQKAgEIEgQKAgEBEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgUKAwgICBIECgIICBIDCgEBEgUKAwEBCBIDCgEIEgMKAQidAQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAIBAVQFByRtYXRjaDAFBHRoaXMJ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0SWQFCWxhbmRJbmRleAUKaW5mcmFMZXZlbAIBOgDYErdu", "height": 2598508, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: tfxocZxRdn77gxRpKvWVZqqdLnkrFztXRTF4e14eZgQ Next: FthxRrbD4mpvwvvs5X7nEGjKx6yJXT5EhN1PbvSZLWJm Diff:
OldNewDifferences
290290
291291 let bpIdxProd = 3
292292
293-let whIdxVol = 0
293+let whIdxLevels = 0
294294
295295 let whIdxRes = 1
296296
298298
299299 let whIdxProd = 3
300300
301-let whIdxLockedVol = 4
301+let whIdxLOFT = 4
302+
303+let volLocked = 0
304+
305+let volOccupied = 1
306+
307+let volFree = 2
308+
309+let volTotal = 3
302310
303311 let claimModeWh = 0
304312
634642 }
635643
636644
637-func getWarehouse (whKey,landIndex,infraLevel) = {
638- let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
639- let p = split(valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")), ":")
640-[p[whIdxVol], if ((size(split(p[whIdxRes], "_")) == NUMRES))
641- then p[whIdxRes]
642- else "0_0_0_0_0_0", if ((size(split(p[whIdxMat], "_")) == NUMRES))
643- then p[whIdxMat]
644- else "0_0_0_0_0_0", p[whIdxProd], if ((5 > size(p)))
645- then "0"
646- else p[whIdxLockedVol]]
645+func getWarehouseOccupiedVol (currentWh) = {
646+ let goods = currentWh[whIdxProd]
647+ func sumResMat (acc,item) = (acc + parseIntValue(item))
648+
649+ func sumProd (acc,item) = {
650+ let idx = acc._1
651+ let pkgSize = productPackages[idx]
652+ let pkgs = (((parseIntValue(item) + pkgSize) - 1) / pkgSize)
653+ $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8)))
654+ }
655+
656+ let whResVol = {
657+ let $l = split(currentWh[whIdxRes], "_")
658+ let $s = size($l)
659+ let $acc0 = 0
660+ func $f0_1 ($a,$i) = if (($i >= $s))
661+ then $a
662+ else sumResMat($a, $l[$i])
663+
664+ func $f0_2 ($a,$i) = if (($i >= $s))
665+ then $a
666+ else throw("List size exceeds 6")
667+
668+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
669+ }
670+ let whMatVol = {
671+ let $l = split(currentWh[whIdxMat], "_")
672+ let $s = size($l)
673+ let $acc0 = 0
674+ func $f1_1 ($a,$i) = if (($i >= $s))
675+ then $a
676+ else sumResMat($a, $l[$i])
677+
678+ func $f1_2 ($a,$i) = if (($i >= $s))
679+ then $a
680+ else throw("List size exceeds 6")
681+
682+ $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
683+ }
684+ let whGoodsVol = if ((goods == ""))
685+ then 0
686+ else ( let $l = split_4C(goods, "_")
687+ let $s = size($l)
688+ let $acc0 = $Tuple2(0, 0)
689+ func $f2_1 ($a,$i) = if (($i >= $s))
690+ then $a
691+ else sumProd($a, $l[$i])
692+
693+ func $f2_2 ($a,$i) = if (($i >= $s))
694+ then $a
695+ else throw("List size exceeds 50")
696+
697+ $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
698+ ((whResVol + whMatVol) + whGoodsVol)
647699 }
648700
649701
650-func getWarehouseCurrResVolume (currentWh) = {
651- func sum (acc,item) = (acc + parseIntValue(item))
652-
653- let $l = split(currentWh[whIdxRes], "_")
654- let $s = size($l)
655- let $acc0 = 0
656- func $f0_1 ($a,$i) = if (($i >= $s))
657- then $a
658- else sum($a, $l[$i])
659-
660- func $f0_2 ($a,$i) = if (($i >= $s))
661- then $a
662- else throw("List size exceeds 6")
663-
664- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
665- }
666-
667-
668-func getWarehouseCurrMatVolume (currentWh) = {
669- func sum (acc,item) = (acc + parseIntValue(item))
670-
671- let $l = split(currentWh[whIdxMat], "_")
672- let $s = size($l)
673- let $acc0 = 0
674- func $f0_1 ($a,$i) = if (($i >= $s))
675- then $a
676- else sum($a, $l[$i])
677-
678- func $f0_2 ($a,$i) = if (($i >= $s))
679- then $a
680- else throw("List size exceeds 6")
681-
682- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
683- }
684-
685-
686-func getWarehouseCurrGoodsVolume (currentWh) = {
687- let goods = currentWh[whIdxProd]
688- if ((goods == ""))
689- then 0
702+func getWarehouse (whKey,landIndex,infraLevel) = {
703+ let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
704+ let whTotal = getWarehouseTotalVolume(volPrefix)
705+ let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0"))
706+ let wh = split_4C(whStr, ":")
707+ let whOccupied = getWarehouseOccupiedVol(wh)
708+ let whLoft = if ((5 > size(wh)))
709+ then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_")
690710 else {
691- func sum (acc,item) = {
692- let idx = acc._1
693- let pkgSize = productPackages[idx]
694- let pkgs = (((parseIntValue(item) + pkgSize) - 1) / pkgSize)
695- $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8)))
696- }
697-
698-( let $l = split_4C(goods, "_")
699- let $s = size($l)
700- let $acc0 = $Tuple2(0, 0)
701- func $f0_1 ($a,$i) = if (($i >= $s))
702- then $a
703- else sum($a, $l[$i])
704-
705- func $f0_2 ($a,$i) = if (($i >= $s))
706- then $a
707- else throw("List size exceeds 50")
708-
709- $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))._2
711+ let loft = split(wh[whIdxLOFT], "_")
712+ let whLocked = parseIntValue(loft[volLocked])
713+ let occ = if ((size(loft) > 1))
714+ then parseIntValue(loft[volOccupied])
715+ else whOccupied
716+ makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_")
710717 }
718+[wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES))
719+ then wh[whIdxRes]
720+ else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES))
721+ then wh[whIdxMat]
722+ else "0_0_0_0_0_0", wh[whIdxProd], whLoft]
711723 }
712724
713725
714726 func getWarehouseSpaceLeft (currentWh) = {
715- let currWhResVol = getWarehouseCurrResVolume(currentWh)
716- let currWhMatVol = getWarehouseCurrMatVolume(currentWh)
717- let currWhGoodsVol = getWarehouseCurrGoodsVolume(currentWh)
718- let currWhLockedVol = parseIntValue(currentWh[whIdxLockedVol])
719- ((((getWarehouseTotalVolume(currentWh[whIdxVol]) - currWhResVol) - currWhMatVol) - currWhGoodsVol) - currWhLockedVol)
727+ let occupiedVol = getWarehouseOccupiedVol(currentWh)
728+ let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked])
729+ ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol)
730+ }
731+
732+
733+func toVolume (amount,pkgSize) = {
734+ let pkgs = if ((amount >= 0))
735+ then (((amount + pkgSize) - 1) / pkgSize)
736+ else -((((-(amount) + pkgSize) - 1) / pkgSize))
737+ (pkgs * MULT8)
720738 }
721739
722740
806824 }
807825 func mvP (acc,item) = {
808826 let i = acc._1
827+ let pkgSize = productPackages[i]
809828 let am = parseIntValue(item)
810829 let whp = if ((size(currWhProd) > i))
811830 then parseIntValue(currWhProd[i])
818837 else if ((am > 0))
819838 then if ((am > bpp))
820839 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available"))
821- else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am))
840+ else {
841+ let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize))
842+ $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol))
843+ }
822844 else if ((-(am) > whp))
823845 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available"))
824- else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am))
846+ else {
847+ let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize))
848+ $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol))
849+ }
825850 }
826851
827852 let p = if ((size(prodParts) != 0))
843868 let volSaldo = p._4
844869 if ((volSaldo > whSpaceLeft))
845870 then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left"))
846- else $Tuple6(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"))
871+ else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo)
847872 }
848873 }
849874
919944
920945
921946 func checkClaimConditions (addr,claimMode,landAssetIdIn) = {
922- let $t02579426333 = if ((claimMode == claimModeWh))
947+ let $t02663227171 = if ((claimMode == claimModeWh))
923948 then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), ""))
924949 else {
925950 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
929954 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
930955 else $Tuple2(loc[locIdxId], duckAssetId)
931956 }
932- let landAssetId = $t02579426333._1
933- let duckId = $t02579426333._2
957+ let landAssetId = $t02663227171._1
958+ let duckId = $t02663227171._2
934959 let asset = value(assetInfo(fromBase58String(landAssetId)))
935960 let timeKey = keyStakedTimeByAssetId(landAssetId)
936961 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked"))
967992 let whKey = keyWarehouseByLand(c._2)
968993 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0)
969994 let currentWh = getWarehouse(whKey, landIndex, infraLevel)
970- let whSpaceLeft = getWarehouseSpaceLeft(currentWh)
995+ let loft = split(currentWh[whIdxLOFT], "_")
996+ let whSpaceLeft = parseIntValue(loft[volFree])
971997 if (if ((claimMode == claimModeWh))
972998 then (amount > whSpaceLeft)
973999 else false)
9771003 let currentPack = getBackpack(bpKey)
9781004 let currentPackRes = split(currentPack[bpIdxRes], "_")
9791005 let currentWhRes = split(currentWh[whIdxRes], "_")
980- let $t02866529168 = if ((claimMode == claimModeWh))
981- then $Tuple2(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes])
1006+ let $t02954530416 = if ((claimMode == claimModeWh))
1007+ then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2))
9821008 else if ((claimMode == claimModeDuck))
983- then $Tuple2(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece))
984- else distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft)
985- let whRes = $t02866529168._1
986- let bpRes = $t02866529168._2
987- $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxVol], whRes, currentWh[whIdxMat], currentWh[whIdxProd], currentWh[whIdxLockedVol]])
1009+ then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree]))
1010+ else {
1011+ let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft)
1012+ let whAm = min([parseIntValue(loft[volFree]), resToClaim._2])
1013+ $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm))
1014+ }
1015+ let whRes = $t02954530416._1
1016+ let bpRes = $t02954530416._2
1017+ let loftO = $t02954530416._3
1018+ let loftF = $t02954530416._4
1019+ $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]], "_")])
9881020 }
9891021 }
9901022 }
10211053 let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_")
10221054 let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck)
10231055 let whData = claimResult._5
1024- let newVolData = makeString([split(whData[whIdxVol], "_")[0], toString(newLevel)], "_")
1025- $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], whData[whIdxLockedVol]], ":"))] ++ claimResult._1), newLevel)
1056+ let oldVol = getWarehouseTotalVolume(whData[whIdxLevels])
1057+ let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_")
1058+ let newVol = getWarehouseTotalVolume(newVolData)
1059+ let loft = split(whData[whIdxLOFT], "_")
1060+ let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_")
1061+ $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], newLoftStr], ":"))] ++ claimResult._1), newLevel)
10261062 }
10271063 }
10281064 }
16761712 let bpKey = keyBackpackByDuck(duckAssetId)
16771713 let currentPack = getBackpack(bpKey)
16781714 let result = moveStuff(cargoParts, currentWh, currentPack)
1679-[StringEntry(bpKey, makeString([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString([currentWh[whIdxVol], result._1, result._2, result._3, currentWh[whIdxLockedVol]], ":")), prologAction]
1715+ let loft = split(currentWh[whIdxLOFT], "_")
1716+ let loftO = (parseIntValue(loft[volOccupied]) + result._7)
1717+ let loftF = (parseIntValue(loft[volFree]) - result._7)
1718+[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]
16801719 }
16811720 }
16821721 }
16921731 then throw("Access denied")
16931732 else {
16941733 let whKey = keyWarehouseByLand(landAssetId)
1695- if ((size(split_4C(whStr, ":")) != 5))
1734+ let wh = split_4C(whStr, ":")
1735+ if ((size(wh) != 5))
16961736 then throw("warehouse string should contain 4 ':' separators")
1697- else $Tuple2([StringEntry(whKey, whStr), prologAction], whStr)
1737+ else {
1738+ let loftL = split(wh[whIdxLOFT], "_")[volLocked]
1739+ let loftO = getWarehouseOccupiedVol(wh)
1740+ let loftT = getWarehouseTotalVolume(wh[whIdxLevels])
1741+ let loftF = ((loftT - parseIntValue(loftL)) - loftO)
1742+ let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":")
1743+ $Tuple2([StringEntry(whKey, newWhStr), prologAction], newWhStr)
1744+ }
16981745 }
16991746 }
17001747
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let chain = take(drop(this.bytes, 1), 1)
55
66 let usdtAssetId = match chain {
77 case _ =>
88 if ((base58'2W' == $match0))
99 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
1010 else if ((base58'2T' == $match0))
1111 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
1212 else throw("Unknown chain")
1313 }
1414
1515 let incubatorAddr = match chain {
1616 case _ =>
1717 if ((base58'2W' == $match0))
1818 then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv")
1919 else if ((base58'2T' == $match0))
2020 then this
2121 else throw("Unknown chain")
2222 }
2323
2424 let breederAddr = match chain {
2525 case _ =>
2626 if ((base58'2W' == $match0))
2727 then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb")
2828 else if ((base58'2T' == $match0))
2929 then this
3030 else throw("Unknown chain")
3131 }
3232
3333 let defaultRestAddressStr = match chain {
3434 case _ =>
3535 if ((base58'2W' == $match0))
3636 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
3737 else if ((base58'2T' == $match0))
3838 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
3939 else throw("Unknown chain")
4040 }
4141
4242 let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD'
4343
4444 let HEALCOST = 10000
4545
4646 let LANDPREFIX = "LAND"
4747
4848 let DUCKPREFIX = "DUCK"
4949
5050 let DEFAULTLOCATION = "Africa_F_Africa"
5151
5252 let NUMRES = 6
5353
5454 let SSIZE = 25
5555
5656 let MSIZE = 100
5757
5858 let LSIZE = 225
5959
6060 let XLSIZE = 400
6161
6262 let XXLSIZE = 625
6363
6464 let DAILYRESBYPIECE = 3456000
6565
6666 let DAYMILLIS = 86400000
6767
6868 let FIVEMINUTESMILLIS = 300000
6969
7070 let RESOURCEPRICEMIN = 39637
7171
7272 let WHMULTIPLIER = 10000000000
7373
7474 let RENAMINGCOST = 5000000
7575
7676 let MAXNAMELEN = 50
7777
7878 let InfraUpgradeCostS = match chain {
7979 case _ =>
8080 if ((base58'2W' == $match0))
8181 then 10000000000
8282 else if ((base58'2T' == $match0))
8383 then 100000000
8484 else throw("Unknown chain")
8585 }
8686
8787 let InfraUpgradeCostSUsdt = match chain {
8888 case _ =>
8989 if ((base58'2W' == $match0))
9090 then 10000000
9191 else if ((base58'2T' == $match0))
9292 then 10000000
9393 else throw("Unknown chain")
9494 }
9595
9696 let EXPMATERIALS = match chain {
9797 case _ =>
9898 if ((base58'2W' == $match0))
9999 then 252289527462
100100 else if ((base58'2T' == $match0))
101101 then 2522895274
102102 else throw("Unknown chain")
103103 }
104104
105105 let EXPUSDT = match chain {
106106 case _ =>
107107 if ((base58'2W' == $match0))
108108 then 250000000
109109 else if ((base58'2T' == $match0))
110110 then 250000000
111111 else throw("Unknown chain")
112112 }
113113
114114 let SEP = "__"
115115
116116 let MULT6 = 1000000
117117
118118 let MULT8 = 100000000
119119
120120 let FIVEX = toBigInt(5)
121121
122122 let TWENTYX = toBigInt(20)
123123
124124 let TWENTY2X = toBigInt((20 * 20))
125125
126126 let TWENTY3X = toBigInt(((20 * 20) * 20))
127127
128128 let TWENTY4X = toBigInt((((20 * 20) * 20) * 20))
129129
130130 let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20))
131131
132132 let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"]
133133
134134 let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"]
135135
136136 let ARTPRESALE = "PRESALE"
137137
138138 let PRESALENUMLANDS = 500
139139
140140 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
141141
142142
143143 func getIntOrElse (key,defaultVal) = valueOrElse(getInteger(this, key), defaultVal)
144144
145145
146146 let IdxCfgStakingDapp = 1
147147
148148 let IdxCfgEconomyDapp = 2
149149
150150 let IdxCfgGovernanceDapp = 3
151151
152152 func keyRestCfg () = "%s__restConfig"
153153
154154
155155 func keyRestAddress () = "%s__restAddr"
156156
157157
158158 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
159159
160160
161161 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
162162
163163
164164 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
165165
166166 let restCfg = readRestCfgOrFail(restContract)
167167
168168 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
169169
170170 let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp)
171171
172172 func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr)
173173
174174
175175 func keyNextFreeLandNum () = "nextLandNum"
176176
177177
178178 func keyLandToAssetId (landNum) = ("landToAsset_" + landNum)
179179
180180
181181 func keyNftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize)
182182
183183
184184 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
185185
186186
187187 func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId)
188188
189189
190190 func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId)
191191
192192
193193 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
194194
195195
196196 func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name)
197197
198198
199199 func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name)
200200
201201
202202 func keyCustomNameToAddress (name) = ("accountByCustomName_" + name)
203203
204204
205205 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
206206
207207
208208 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
209209
210210
211211 func keyOldies () = "oldiesList"
212212
213213
214214 func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId)
215215
216216
217217 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
218218
219219
220220 func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId)
221221
222222
223223 func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr)
224224
225225
226226 func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId)
227227
228228
229229 func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr)
230230
231231
232232 func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_")
233233
234234
235235 func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_")
236236
237237
238238 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
239239
240240
241241 func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr)
242242
243243
244244 func keyLandNumToOwner (landNum) = ("landOwner_" + landNum)
245245
246246
247247 func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId)
248248
249249
250250 func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId)
251251
252252
253253 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
254254
255255
256256 func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId)
257257
258258
259259 func keyResProportions () = "resTypesProportions"
260260
261261
262262 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
263263
264264
265265 func keyBlocked () = "contractsBlocked"
266266
267267
268268 func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr)
269269
270270
271271 let recLandNum = 0
272272
273273 let recLandSize = 1
274274
275275 let recTerrains = 2
276276
277277 let recContinent = 3
278278
279279 let locIdxContinent = 0
280280
281281 let locIdxType = 1
282282
283283 let locIdxId = 2
284284
285285 let bpIdxLevel = 0
286286
287287 let bpIdxRes = 1
288288
289289 let bpIdxMat = 2
290290
291291 let bpIdxProd = 3
292292
293-let whIdxVol = 0
293+let whIdxLevels = 0
294294
295295 let whIdxRes = 1
296296
297297 let whIdxMat = 2
298298
299299 let whIdxProd = 3
300300
301-let whIdxLockedVol = 4
301+let whIdxLOFT = 4
302+
303+let volLocked = 0
304+
305+let volOccupied = 1
306+
307+let volFree = 2
308+
309+let volTotal = 3
302310
303311 let claimModeWh = 0
304312
305313 let claimModeDuck = 1
306314
307315 let claimModeWhThenDuck = 2
308316
309317 let flHealth = 0
310318
311319 let flMission = 1
312320
313321 let flObstacles = 2
314322
315323 let flWinds = 3
316324
317325 let flPath = 4
318326
319327 let flTimestamp = 5
320328
321329 let flBonus = 6
322330
323331 let productPackages = [10, 10, 10, 100, 100, 100, 10, 10, 10, 100, 100, 100, 10, 10, 10]
324332
325333 func asString (v) = match v {
326334 case s: String =>
327335 s
328336 case _ =>
329337 throw("fail to cast into String")
330338 }
331339
332340
333341 func asInt (v) = match v {
334342 case n: Int =>
335343 n
336344 case _ =>
337345 throw("fail to cast into Int")
338346 }
339347
340348
341349 func distributeByWeights (total,weights) = {
342350 let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5])
343351 if ((0 >= sum))
344352 then throw("Zero weights sum")
345353 else {
346354 let norm6 = fraction(total, MULT6, sum)
347355 func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6))
348356
349357 let $l = weights
350358 let $s = size($l)
351359 let $acc0 = nil
352360 func $f0_1 ($a,$i) = if (($i >= $s))
353361 then $a
354362 else normalizer($a, $l[$i])
355363
356364 func $f0_2 ($a,$i) = if (($i >= $s))
357365 then $a
358366 else throw("List size exceeds 6")
359367
360368 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
361369 }
362370 }
363371
364372
365373 func getNeededMaterials (total) = {
366374 let props = split(value(getString(keyResProportions())), "_")
367375 if ((size(props) != NUMRES))
368376 then throw("Wrong proportions data")
369377 else {
370378 let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])]
371379 distributeByWeights(total, r)
372380 }
373381 }
374382
375383
376384 func subtractMaterials (shouldUseMat,has,totalNeed) = {
377385 let need = getNeededMaterials(totalNeed)
378386 func subtractor (acc,idx) = {
379387 let result = (parseIntValue(has[idx]) - need[idx])
380388 if ((0 > result))
381389 then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx])))
382390 else (acc :+ toString(result))
383391 }
384392
385393 if (shouldUseMat)
386394 then {
387395 let $l = [0, 1, 2, 3, 4, 5]
388396 let $s = size($l)
389397 let $acc0 = nil
390398 func $f0_1 ($a,$i) = if (($i >= $s))
391399 then $a
392400 else subtractor($a, $l[$i])
393401
394402 func $f0_2 ($a,$i) = if (($i >= $s))
395403 then $a
396404 else throw("List size exceeds 6")
397405
398406 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
399407 }
400408 else has
401409 }
402410
403411
404412 func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES))
405413 then throw("Wrong proportions data")
406414 else {
407415 func updater (acc,i) = {
408416 let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex))
409417 if ((0 > result))
410418 then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex)))
411419 else (acc :+ toString(result))
412420 }
413421
414422 let r = {
415423 let $l = [0, 1, 2, 3, 4, 5]
416424 let $s = size($l)
417425 let $acc0 = nil
418426 func $f0_1 ($a,$i) = if (($i >= $s))
419427 then $a
420428 else updater($a, $l[$i])
421429
422430 func $f0_2 ($a,$i) = if (($i >= $s))
423431 then $a
424432 else throw("List size exceeds 6")
425433
426434 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
427435 }
428436 makeString(r, "_")
429437 }
430438
431439
432440 func updateProportions (terrainCounts,landSizeIndex,sign) = {
433441 let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_")
434442 updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign)
435443 }
436444
437445
438446 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)]
439447
440448
441449 func numPiecesBySize (landSize) = match landSize {
442450 case _ =>
443451 if (("S" == $match0))
444452 then SSIZE
445453 else if (("M" == $match0))
446454 then MSIZE
447455 else if (("L" == $match0))
448456 then LSIZE
449457 else if (("XL" == $match0))
450458 then XLSIZE
451459 else if (("XXL" == $match0))
452460 then XXLSIZE
453461 else throw("Unknown land size")
454462 }
455463
456464
457465 func subOneInList (aList,idx,amount) = {
458466 func subber (acc,i) = (acc :+ (if ((i == idx))
459467 then toString((parseIntValue(aList[i]) - amount))
460468 else aList[i]))
461469
462470 let r = {
463471 let $l = [0, 1, 2, 3, 4, 5]
464472 let $s = size($l)
465473 let $acc0 = nil
466474 func $f0_1 ($a,$i) = if (($i >= $s))
467475 then $a
468476 else subber($a, $l[$i])
469477
470478 func $f0_2 ($a,$i) = if (($i >= $s))
471479 then $a
472480 else throw("List size exceeds 6")
473481
474482 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
475483 }
476484 makeString(r, "_")
477485 }
478486
479487
480488 func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = {
481489 func adder (acc,i) = {
482490 let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex)
483491 (acc :+ toString((parseIntValue(currentRes[i]) + resOfType)))
484492 }
485493
486494 let r = {
487495 let $l = [0, 1, 2, 3, 4, 5]
488496 let $s = size($l)
489497 let $acc0 = nil
490498 func $f0_1 ($a,$i) = if (($i >= $s))
491499 then $a
492500 else adder($a, $l[$i])
493501
494502 func $f0_2 ($a,$i) = if (($i >= $s))
495503 then $a
496504 else throw("List size exceeds 6")
497505
498506 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
499507 }
500508 makeString(r, "_")
501509 }
502510
503511
504512 func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = {
505513 func adder (acc,i) = {
506514 let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex)
507515 $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType))
508516 }
509517
510518 let $l = [0, 1, 2, 3, 4, 5]
511519 let $s = size($l)
512520 let $acc0 = $Tuple2(nil, 0)
513521 func $f0_1 ($a,$i) = if (($i >= $s))
514522 then $a
515523 else adder($a, $l[$i])
516524
517525 func $f0_2 ($a,$i) = if (($i >= $s))
518526 then $a
519527 else throw("List size exceeds 6")
520528
521529 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
522530 }
523531
524532
525533 func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = {
526534 let resListToClaim = resToClaim._1
527535 let resAmToClaim = resToClaim._2
528536 if ((resAmToClaim == 0))
529537 then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_"))
530538 else if ((whSpaceLeft >= resAmToClaim))
531539 then {
532540 func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i])))
533541
534542 let r = {
535543 let $l = [0, 1, 2, 3, 4, 5]
536544 let $s = size($l)
537545 let $acc0 = nil
538546 func $f0_1 ($a,$i) = if (($i >= $s))
539547 then $a
540548 else addLists($a, $l[$i])
541549
542550 func $f0_2 ($a,$i) = if (($i >= $s))
543551 then $a
544552 else throw("List size exceeds 6")
545553
546554 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
547555 }
548556 $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_"))
549557 }
550558 else {
551559 func addPartLists (acc,i) = {
552560 let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim)
553561 $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart))))
554562 }
555563
556564 let r = {
557565 let $l = [0, 1, 2, 3, 4, 5]
558566 let $s = size($l)
559567 let $acc0 = $Tuple2(nil, nil)
560568 func $f0_1 ($a,$i) = if (($i >= $s))
561569 then $a
562570 else addPartLists($a, $l[$i])
563571
564572 func $f0_2 ($a,$i) = if (($i >= $s))
565573 then $a
566574 else throw("List size exceeds 6")
567575
568576 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
569577 }
570578 $Tuple2(makeString(r._1, "_"), makeString(r._2, "_"))
571579 }
572580 }
573581
574582
575583 func abs (x) = if ((x >= toBigInt(0)))
576584 then x
577585 else -(x)
578586
579587
580588 let freq = [[1, 4, 9, 10, 15], [5, 8, 13, 14, 15], [6, 9, 14, 15, 16], [4, 7, 8, 13, 18], [1, 6, 7, 15, 19]]
581589
582590 func genChar (n,freqs) = {
583591 let rem = toInt((n % TWENTYX))
584592 let letter = if ((freqs[0] > rem))
585593 then "A"
586594 else if ((freqs[1] > rem))
587595 then "B"
588596 else if ((freqs[2] > rem))
589597 then "C"
590598 else if ((freqs[3] > rem))
591599 then "D"
592600 else if ((freqs[4] > rem))
593601 then "E"
594602 else "F"
595603 letter
596604 }
597605
598606
599607 func genTerrains (seed,continentIdx) = {
600608 let f = freq[continentIdx]
601609 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))
602610
603611 let t = {
604612 let $l = [1, 2, 3, 4, 5]
605613 let $s = size($l)
606614 let $acc0 = $Tuple2("", (seed / FIVEX))
607615 func $f0_1 ($a,$i) = if (($i >= $s))
608616 then $a
609617 else terrainGenerator($a, $l[$i])
610618
611619 func $f0_2 ($a,$i) = if (($i >= $s))
612620 then $a
613621 else throw("List size exceeds 5")
614622
615623 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
616624 }
617625 t._1
618626 }
619627
620628
621629 func getBackpack (bpKey) = {
622630 let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
623631 [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES))
624632 then p[bpIdxRes]
625633 else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES))
626634 then p[bpIdxMat]
627635 else "0_0_0_0_0_0", p[bpIdxProd]]
628636 }
629637
630638
631639 func getWarehouseTotalVolume (volPrefix) = {
632640 let parts = split(volPrefix, "_")
633641 ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0]))
634642 }
635643
636644
637-func getWarehouse (whKey,landIndex,infraLevel) = {
638- let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
639- let p = split(valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")), ":")
640-[p[whIdxVol], if ((size(split(p[whIdxRes], "_")) == NUMRES))
641- then p[whIdxRes]
642- else "0_0_0_0_0_0", if ((size(split(p[whIdxMat], "_")) == NUMRES))
643- then p[whIdxMat]
644- else "0_0_0_0_0_0", p[whIdxProd], if ((5 > size(p)))
645- then "0"
646- else p[whIdxLockedVol]]
645+func getWarehouseOccupiedVol (currentWh) = {
646+ let goods = currentWh[whIdxProd]
647+ func sumResMat (acc,item) = (acc + parseIntValue(item))
648+
649+ func sumProd (acc,item) = {
650+ let idx = acc._1
651+ let pkgSize = productPackages[idx]
652+ let pkgs = (((parseIntValue(item) + pkgSize) - 1) / pkgSize)
653+ $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8)))
654+ }
655+
656+ let whResVol = {
657+ let $l = split(currentWh[whIdxRes], "_")
658+ let $s = size($l)
659+ let $acc0 = 0
660+ func $f0_1 ($a,$i) = if (($i >= $s))
661+ then $a
662+ else sumResMat($a, $l[$i])
663+
664+ func $f0_2 ($a,$i) = if (($i >= $s))
665+ then $a
666+ else throw("List size exceeds 6")
667+
668+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
669+ }
670+ let whMatVol = {
671+ let $l = split(currentWh[whIdxMat], "_")
672+ let $s = size($l)
673+ let $acc0 = 0
674+ func $f1_1 ($a,$i) = if (($i >= $s))
675+ then $a
676+ else sumResMat($a, $l[$i])
677+
678+ func $f1_2 ($a,$i) = if (($i >= $s))
679+ then $a
680+ else throw("List size exceeds 6")
681+
682+ $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
683+ }
684+ let whGoodsVol = if ((goods == ""))
685+ then 0
686+ else ( let $l = split_4C(goods, "_")
687+ let $s = size($l)
688+ let $acc0 = $Tuple2(0, 0)
689+ func $f2_1 ($a,$i) = if (($i >= $s))
690+ then $a
691+ else sumProd($a, $l[$i])
692+
693+ func $f2_2 ($a,$i) = if (($i >= $s))
694+ then $a
695+ else throw("List size exceeds 50")
696+
697+ $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
698+ ((whResVol + whMatVol) + whGoodsVol)
647699 }
648700
649701
650-func getWarehouseCurrResVolume (currentWh) = {
651- func sum (acc,item) = (acc + parseIntValue(item))
652-
653- let $l = split(currentWh[whIdxRes], "_")
654- let $s = size($l)
655- let $acc0 = 0
656- func $f0_1 ($a,$i) = if (($i >= $s))
657- then $a
658- else sum($a, $l[$i])
659-
660- func $f0_2 ($a,$i) = if (($i >= $s))
661- then $a
662- else throw("List size exceeds 6")
663-
664- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
665- }
666-
667-
668-func getWarehouseCurrMatVolume (currentWh) = {
669- func sum (acc,item) = (acc + parseIntValue(item))
670-
671- let $l = split(currentWh[whIdxMat], "_")
672- let $s = size($l)
673- let $acc0 = 0
674- func $f0_1 ($a,$i) = if (($i >= $s))
675- then $a
676- else sum($a, $l[$i])
677-
678- func $f0_2 ($a,$i) = if (($i >= $s))
679- then $a
680- else throw("List size exceeds 6")
681-
682- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
683- }
684-
685-
686-func getWarehouseCurrGoodsVolume (currentWh) = {
687- let goods = currentWh[whIdxProd]
688- if ((goods == ""))
689- then 0
702+func getWarehouse (whKey,landIndex,infraLevel) = {
703+ let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
704+ let whTotal = getWarehouseTotalVolume(volPrefix)
705+ let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0"))
706+ let wh = split_4C(whStr, ":")
707+ let whOccupied = getWarehouseOccupiedVol(wh)
708+ let whLoft = if ((5 > size(wh)))
709+ then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_")
690710 else {
691- func sum (acc,item) = {
692- let idx = acc._1
693- let pkgSize = productPackages[idx]
694- let pkgs = (((parseIntValue(item) + pkgSize) - 1) / pkgSize)
695- $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8)))
696- }
697-
698-( let $l = split_4C(goods, "_")
699- let $s = size($l)
700- let $acc0 = $Tuple2(0, 0)
701- func $f0_1 ($a,$i) = if (($i >= $s))
702- then $a
703- else sum($a, $l[$i])
704-
705- func $f0_2 ($a,$i) = if (($i >= $s))
706- then $a
707- else throw("List size exceeds 50")
708-
709- $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))._2
711+ let loft = split(wh[whIdxLOFT], "_")
712+ let whLocked = parseIntValue(loft[volLocked])
713+ let occ = if ((size(loft) > 1))
714+ then parseIntValue(loft[volOccupied])
715+ else whOccupied
716+ makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_")
710717 }
718+[wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES))
719+ then wh[whIdxRes]
720+ else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES))
721+ then wh[whIdxMat]
722+ else "0_0_0_0_0_0", wh[whIdxProd], whLoft]
711723 }
712724
713725
714726 func getWarehouseSpaceLeft (currentWh) = {
715- let currWhResVol = getWarehouseCurrResVolume(currentWh)
716- let currWhMatVol = getWarehouseCurrMatVolume(currentWh)
717- let currWhGoodsVol = getWarehouseCurrGoodsVolume(currentWh)
718- let currWhLockedVol = parseIntValue(currentWh[whIdxLockedVol])
719- ((((getWarehouseTotalVolume(currentWh[whIdxVol]) - currWhResVol) - currWhMatVol) - currWhGoodsVol) - currWhLockedVol)
727+ let occupiedVol = getWarehouseOccupiedVol(currentWh)
728+ let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked])
729+ ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol)
730+ }
731+
732+
733+func toVolume (amount,pkgSize) = {
734+ let pkgs = if ((amount >= 0))
735+ then (((amount + pkgSize) - 1) / pkgSize)
736+ else -((((-(amount) + pkgSize) - 1) / pkgSize))
737+ (pkgs * MULT8)
720738 }
721739
722740
723741 func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3))
724742 then throw("cargoListStr should contain exactly 2 ':' separators")
725743 else {
726744 let resParts = split(cargoParts[0], "_")
727745 let matParts = split(cargoParts[1], "_")
728746 let prodParts = if ((cargoParts[2] == ""))
729747 then nil
730748 else split(cargoParts[2], "_")
731749 if ((size(resParts) != NUMRES))
732750 then throw("All 6 resources should be passed")
733751 else if ((size(matParts) != NUMRES))
734752 then throw("All 6 materials should be passed")
735753 else {
736754 let whSpaceLeft = getWarehouseSpaceLeft(currentWh)
737755 let currWhRes = split(currentWh[whIdxRes], "_")
738756 let currWhMat = split(currentWh[whIdxMat], "_")
739757 let currWhProd = if ((currentWh[whIdxProd] == ""))
740758 then nil
741759 else split(currentWh[whIdxProd], "_")
742760 let currentPackRes = split(currentPack[bpIdxRes], "_")
743761 let currentPackMat = split(currentPack[bpIdxMat], "_")
744762 let currentPackProd = if ((currentPack[bpIdxProd] == ""))
745763 then nil
746764 else split(currentPack[bpIdxProd], "_")
747765 func mvR (acc,item) = {
748766 let i = acc._1
749767 let am = parseIntValue(item)
750768 let whr = parseIntValue(currWhRes[i])
751769 let bpr = parseIntValue(currentPackRes[i])
752770 if ((am == 0))
753771 then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4)
754772 else if ((am > 0))
755773 then if ((am > bpr))
756774 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available"))
757775 else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am))
758776 else if ((-(am) > whr))
759777 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available"))
760778 else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am))
761779 }
762780
763781 let r = {
764782 let $l = resParts
765783 let $s = size($l)
766784 let $acc0 = $Tuple4(0, nil, nil, 0)
767785 func $f0_1 ($a,$i) = if (($i >= $s))
768786 then $a
769787 else mvR($a, $l[$i])
770788
771789 func $f0_2 ($a,$i) = if (($i >= $s))
772790 then $a
773791 else throw("List size exceeds 6")
774792
775793 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
776794 }
777795 func mvM (acc,item) = {
778796 let i = acc._1
779797 let am = parseIntValue(item)
780798 let whm = parseIntValue(currWhMat[i])
781799 let bpm = parseIntValue(currentPackMat[i])
782800 if ((am == 0))
783801 then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4)
784802 else if ((am > 0))
785803 then if ((am > bpm))
786804 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available"))
787805 else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am))
788806 else if ((-(am) > whm))
789807 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available"))
790808 else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am))
791809 }
792810
793811 let m = {
794812 let $l = matParts
795813 let $s = size($l)
796814 let $acc0 = $Tuple4(0, nil, nil, r._4)
797815 func $f1_1 ($a,$i) = if (($i >= $s))
798816 then $a
799817 else mvM($a, $l[$i])
800818
801819 func $f1_2 ($a,$i) = if (($i >= $s))
802820 then $a
803821 else throw("List size exceeds 6")
804822
805823 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
806824 }
807825 func mvP (acc,item) = {
808826 let i = acc._1
827+ let pkgSize = productPackages[i]
809828 let am = parseIntValue(item)
810829 let whp = if ((size(currWhProd) > i))
811830 then parseIntValue(currWhProd[i])
812831 else 0
813832 let bpp = if ((size(currentPackProd) > i))
814833 then parseIntValue(currentPackProd[i])
815834 else 0
816835 if ((am == 0))
817836 then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4)
818837 else if ((am > 0))
819838 then if ((am > bpp))
820839 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available"))
821- else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am))
840+ else {
841+ let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize))
842+ $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol))
843+ }
822844 else if ((-(am) > whp))
823845 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available"))
824- else $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + am))
846+ else {
847+ let deltaVol = (toVolume((whp + am), pkgSize) - toVolume(whp, pkgSize))
848+ $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol))
849+ }
825850 }
826851
827852 let p = if ((size(prodParts) != 0))
828853 then {
829854 let $l = prodParts
830855 let $s = size($l)
831856 let $acc0 = $Tuple4(0, nil, nil, m._4)
832857 func $f2_1 ($a,$i) = if (($i >= $s))
833858 then $a
834859 else mvP($a, $l[$i])
835860
836861 func $f2_2 ($a,$i) = if (($i >= $s))
837862 then $a
838863 else throw("List size exceeds 50")
839864
840865 $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)
841866 }
842867 else $Tuple4(0, currWhProd, currentPackProd, m._4)
843868 let volSaldo = p._4
844869 if ((volSaldo > whSpaceLeft))
845870 then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left"))
846- else $Tuple6(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"))
871+ else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo)
847872 }
848873 }
849874
850875
851876 func expeditionInternal (caller,txId) = {
852877 let userAddr = toString(caller)
853878 let bigNum = abs(toBigInt(txId))
854879 let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1))
855880 let landNum = toString(freeNum)
856881 let continentIdx = toInt((bigNum % FIVEX))
857882 let terrains = genTerrains(bigNum, continentIdx)
858883 let continent = continents[continentIdx]
859884 let issue = Issue(keyNftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false)
860885 let assetId = calculateAssetId(issue)
861886 let id = toBase58String(assetId)
862887 $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))
863888 }
864889
865890
866891 func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub)))
867892 then throw("signature does not match")
868893 else {
869894 let parts = split(toUtf8String(message), ";")
870895 let hp = split(split(parts[0], "|")[0], "_")
871896 let curHP = parseIntValue(hp[0])
872897 let newHP = parseIntValue(hp[1])
873898 let locAndTime = split(parts[1], ":")
874899 let targetLocation = split(locAndTime[0], "_")
875900 if ((targetLocation[1] != "E"))
876901 then throw("expedition target location type should be E")
877902 else {
878903 let time = parseIntValue(locAndTime[1])
879904 if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS)))
880905 then true
881906 else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time))
882907 then throw("signature outdated")
883908 else {
884909 let userAddr = toString(caller)
885910 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked")
886911 let keyHealth = keyDuckHealth(duckAssetId)
887912 let oldFromState = valueOrElse(getInteger(keyHealth), 100)
888913 if ((oldFromState != curHP))
889914 then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP)))
890915 else if ((0 >= curHP))
891916 then throw("You can't fly with zero health")
892917 else if ((0 >= newHP))
893918 then $Tuple2(((if (!(shouldUseMat))
894919 then [ScriptTransfer(caller, EXPUSDT, usdtAssetId)]
895920 else nil) :+ IntegerEntry(keyHealth, 0)), "")
896921 else {
897922 let bpKey = keyBackpackByDuck(duckAssetId)
898923 let currentPack = getBackpack(bpKey)
899924 let mList = split(currentPack[bpIdxMat], "_")
900925 let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_")
901926 let e = expeditionInternal(caller, txId)
902927 let id = e._2._1
903928 $Tuple2((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, newHP)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id)
904929 }
905930 }
906931 }
907932 }
908933
909934
910935 func applyBonuses (landAssetId,pieces) = {
911936 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
912937 let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false))
913938 then pieces
914939 else 0)
915940 let add6 = (infraLevel / 6)
916941 let add7 = (infraLevel / 7)
917942 ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))
918943 }
919944
920945
921946 func checkClaimConditions (addr,claimMode,landAssetIdIn) = {
922- let $t02579426333 = if ((claimMode == claimModeWh))
947+ let $t02663227171 = if ((claimMode == claimModeWh))
923948 then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), ""))
924949 else {
925950 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
926951 let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION)
927952 let loc = split(value(curLocation), "_")
928953 if ((loc[locIdxType] != "L"))
929954 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
930955 else $Tuple2(loc[locIdxId], duckAssetId)
931956 }
932- let landAssetId = $t02579426333._1
933- let duckId = $t02579426333._2
957+ let landAssetId = $t02663227171._1
958+ let duckId = $t02663227171._2
934959 let asset = value(assetInfo(fromBase58String(landAssetId)))
935960 let timeKey = keyStakedTimeByAssetId(landAssetId)
936961 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked"))
937962 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
938963 if ((owner != addr))
939964 then throw((LANDPREFIX + " is not yours"))
940965 else {
941966 let d = split(asset.description, "_")
942967 $Tuple4(duckId, landAssetId, d, savedTime)
943968 }
944969 }
945970
946971
947972 func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount))
948973 then throw("Negative amount")
949974 else {
950975 let c = checkClaimConditions(addr, claimMode, landAssetIdIn)
951976 let landSize = c._3[recLandSize]
952977 let terrainCounts = countTerrains(c._3[recTerrains])
953978 let deltaTime = (lastBlock.timestamp - c._4)
954979 if ((0 > deltaTime))
955980 then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp)))
956981 else {
957982 let pieces = numPiecesBySize(landSize)
958983 let dailyProductionByPiece = applyBonuses(c._2, pieces)
959984 let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS)
960985 if ((amount > availRes))
961986 then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount)))
962987 else {
963988 let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces))
964989 let newTimestamp = (lastBlock.timestamp - newDeltaTime)
965990 let landIndex = (pieces / SSIZE)
966991 let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece)
967992 let whKey = keyWarehouseByLand(c._2)
968993 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0)
969994 let currentWh = getWarehouse(whKey, landIndex, infraLevel)
970- let whSpaceLeft = getWarehouseSpaceLeft(currentWh)
995+ let loft = split(currentWh[whIdxLOFT], "_")
996+ let whSpaceLeft = parseIntValue(loft[volFree])
971997 if (if ((claimMode == claimModeWh))
972998 then (amount > whSpaceLeft)
973999 else false)
9741000 then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse"))
9751001 else {
9761002 let bpKey = keyBackpackByDuck(c._1)
9771003 let currentPack = getBackpack(bpKey)
9781004 let currentPackRes = split(currentPack[bpIdxRes], "_")
9791005 let currentWhRes = split(currentWh[whIdxRes], "_")
980- let $t02866529168 = if ((claimMode == claimModeWh))
981- then $Tuple2(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes])
1006+ let $t02954530416 = if ((claimMode == claimModeWh))
1007+ then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2))
9821008 else if ((claimMode == claimModeDuck))
983- then $Tuple2(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece))
984- else distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft)
985- let whRes = $t02866529168._1
986- let bpRes = $t02866529168._2
987- $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxVol], whRes, currentWh[whIdxMat], currentWh[whIdxProd], currentWh[whIdxLockedVol]])
1009+ then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree]))
1010+ else {
1011+ let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft)
1012+ let whAm = min([parseIntValue(loft[volFree]), resToClaim._2])
1013+ $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm))
1014+ }
1015+ let whRes = $t02954530416._1
1016+ let bpRes = $t02954530416._2
1017+ let loftO = $t02954530416._3
1018+ let loftF = $t02954530416._4
1019+ $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]], "_")])
9881020 }
9891021 }
9901022 }
9911023 }
9921024
9931025
9941026 func claimAll (addr,landAssetId,pieces,claimMode) = {
9951027 let timeKey = keyStakedTimeByAssetId(landAssetId)
9961028 let savedTime = value(getInteger(timeKey))
9971029 let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces)
9981030 claimResInternal(addr, availRes, claimMode, landAssetId)
9991031 }
10001032
10011033
10021034 func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = {
10031035 let addr = toString(caller)
10041036 let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId)
10051037 let pieces = numPiecesBySize(c._3[recLandSize])
10061038 let infraKey = keyInfraLevelByAssetId(c._2)
10071039 let curLevel = valueOrElse(getInteger(infraKey), 0)
10081040 if ((curLevel >= 3))
10091041 then throw("Currently max infrastructure level = 3")
10101042 else {
10111043 let newLevel = (curLevel + 1)
10121044 let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE)
10131045 if (if (!(shouldUseMat))
10141046 then (paymentAmount != cost)
10151047 else false)
10161048 then throw(("Payment attached should be " + toString(cost)))
10171049 else {
10181050 let bpKey = keyBackpackByDuck(c._1)
10191051 let currentPack = getBackpack(bpKey)
10201052 let mList = split(currentPack[bpIdxMat], "_")
10211053 let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_")
10221054 let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck)
10231055 let whData = claimResult._5
1024- let newVolData = makeString([split(whData[whIdxVol], "_")[0], toString(newLevel)], "_")
1025- $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], whData[whIdxLockedVol]], ":"))] ++ claimResult._1), newLevel)
1056+ let oldVol = getWarehouseTotalVolume(whData[whIdxLevels])
1057+ let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_")
1058+ let newVol = getWarehouseTotalVolume(newVolData)
1059+ let loft = split(whData[whIdxLOFT], "_")
1060+ let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_")
1061+ $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], newLoftStr], ":"))] ++ claimResult._1), newLevel)
10261062 }
10271063 }
10281064 }
10291065
10301066
10311067 func activateOnboardArt (addr) = 0
10321068
10331069
10341070 func activatePresaleArt (addr,landAssetIdIn) = {
10351071 let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn)
10361072 let landAssetId = c._2
10371073 let pieces = numPiecesBySize(c._3[recLandSize])
10381074 let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)
10391075 if ((valueOrElse(getInteger(activationKey), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false))
10401076 then pieces
10411077 else 0) > 0))
10421078 then throw("Presale artifact is already activated")
10431079 else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS))
10441080 then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact"))
10451081 else {
10461082 let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck)
10471083 ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":")))
10481084 }
10491085 }
10501086
10511087
10521088 func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = {
10531089 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
10541090 func checkMerge (acc,landAssetId) = {
10551091 let asset = value(assetInfo(fromBase58String(landAssetId)))
10561092 let timeKey = keyStakedTimeByAssetId(landAssetId)
10571093 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked"))
10581094 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
10591095 if ((owner != addr))
10601096 then throw((LANDPREFIX + " is not yours"))
10611097 else {
10621098 let d = split(asset.description, "_")
10631099 let continent = d[recContinent]
10641100 if (if ((acc._3 != ""))
10651101 then (acc._3 != continent)
10661102 else false)
10671103 then throw("Lands should be on the same continent to merge")
10681104 else {
10691105 let landSize = d[recLandSize]
10701106 let sizesIn = acc._1
10711107 let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed")
10721108 let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1)))
10731109 let pieces = numPiecesBySize(landSize)
10741110 let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false))
10751111 then pieces
10761112 else 0))
10771113 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
10781114 let reqLevel = match landSize {
10791115 case _ =>
10801116 if (("S" == $match0))
10811117 then 3
10821118 else if (("M" == $match0))
10831119 then 4
10841120 else if (("L" == $match0))
10851121 then 5
10861122 else if (("XL" == $match0))
10871123 then 6
10881124 else throw("Only S, M, L, XL can merge")
10891125 }
10901126 if ((infraLevel != reqLevel))
10911127 then throw("All lands should be maxed to merge")
10921128 else {
10931129 let landNum = d[recLandNum]
10941130 let terrainCounts = countTerrains(d[recTerrains])
10951131 let deltaTime = (lastBlock.timestamp - savedTime)
10961132 if ((0 > deltaTime))
10971133 then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp)))
10981134 else {
10991135 let dailyProductionByPiece = applyBonuses(landAssetId, pieces)
11001136 let landIndex = (pieces / SSIZE)
11011137 let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece)
11021138 let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1)
11031139 let lands = acc._7
11041140 let idx = indexOf(lands, landAssetId)
11051141 if (!(isDefined(idx)))
11061142 then throw(("Your staked lands don't contain " + landAssetId))
11071143 else {
11081144 let customKey = keyLandAssetIdToCustomName(landAssetId)
11091145 let customName = valueOrElse(getString(customKey), "")
11101146 $Tuple7(sizesOut, arts, continent, bpRes, ((((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyNftName(landNum, landSize))) :+ 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)))
11111147 }
11121148 }
11131149 }
11141150 }
11151151 }
11161152 }
11171153
11181154 let bpKey = keyBackpackByDuck(duckAssetId)
11191155 let currentPack = getBackpack(bpKey)
11201156 let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0")
11211157 let landsKey = keyStakedLandsByOwner(addr)
11221158 let landsStr = getString(landsKey)
11231159 let landsIn = if (isDefined(landsStr))
11241160 then split_51C(value(landsStr), "_")
11251161 else nil
11261162 let r = {
11271163 let $l = landAssetIds
11281164 let $s = size($l)
11291165 let $acc0 = $Tuple7(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn)
11301166 func $f0_1 ($a,$i) = if (($i >= $s))
11311167 then $a
11321168 else checkMerge($a, $l[$i])
11331169
11341170 func $f0_2 ($a,$i) = if (($i >= $s))
11351171 then $a
11361172 else throw("List size exceeds 5")
11371173
11381174 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
11391175 }
11401176 let continent = r._3
11411177 let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent))
11421178 let terrains = genTerrains(abs(toBigInt(txId)), continentIdx)
11431179 let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1))
11441180 let newLandNum = toString(freeNum)
11451181 let issue = Issue(keyNftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false)
11461182 let assetId = calculateAssetId(issue)
11471183 let newLandAssetId = toBase58String(assetId)
11481184 let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_")
11491185 $Tuple2(((((((((((((((r._5 :+ (if ((size(r._7) > 0))
11501186 then StringEntry(landsKey, makeString_11C(r._7, "_"))
11511187 else DeleteEntry(landsKey))) :+ IntegerEntry(keyNextFreeLandNum(), (freeNum + 1))) :+ issue) :+ StringEntry(keyLandToAssetId(newLandNum), newLandAssetId)) :+ StringEntry(keyLandAssetIdToOwner(newLandAssetId), addr)) :+ StringEntry(keyLandNumToOwner(newLandNum), addr)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, newLandAssetId), r._2)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, newLandAssetId, addr), r._2)) :+ IntegerEntry(keyInfraLevelByAssetId(newLandAssetId), newLevel)) :+ IntegerEntry(keyInfraLevelByAssetIdAndOwner(newLandAssetId, addr), newLevel)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], r._4, newMat, currentPack[bpIdxProd]], ":"))) :+ StringEntry(keyResProportions(), r._6)) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId)
11521188 }
11531189
11541190
11551191 func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0)
11561192
11571193
11581194 func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = {
11591195 let cost = (InfraUpgradeCostSUsdt * 4)
11601196 if (if (!(shouldUseMat))
11611197 then (paymentAmount != cost)
11621198 else false)
11631199 then throw(("Payment attached should be " + toString(cost)))
11641200 else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4))
11651201 }
11661202
11671203
11681204 func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = {
11691205 let cost = (InfraUpgradeCostSUsdt * 47)
11701206 if (if (!(shouldUseMat))
11711207 then (paymentAmount != cost)
11721208 else false)
11731209 then throw(("Payment attached should be " + toString(cost)))
11741210 else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47))
11751211 }
11761212
11771213
11781214 func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = {
11791215 let cost = (InfraUpgradeCostSUsdt * 54)
11801216 if (if (!(shouldUseMat))
11811217 then (paymentAmount != cost)
11821218 else false)
11831219 then throw(("Payment attached should be " + toString(cost)))
11841220 else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54))
11851221 }
11861222
11871223
11881224 func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = {
11891225 let mergeResult = match size(landAssetIds) {
11901226 case _ =>
11911227 if ((4 == $match0))
11921228 then s2m(addr, landAssetIds, txId)
11931229 else if ((3 == $match0))
11941230 then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount)
11951231 else if ((5 == $match0))
11961232 then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount)
11971233 else if ((2 == $match0))
11981234 then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount)
11991235 else throw("Unknown merge")
12001236 }
12011237 mergeResult
12021238 }
12031239
12041240
12051241 func prolog (i) = if (if ((i.originCaller != restContract))
12061242 then valueOrElse(getBoolean(keyBlocked()), false)
12071243 else false)
12081244 then throw("Contracts are under maintenance")
12091245 else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))
12101246
12111247
12121248 @Callable(i)
12131249 func constructorV1 (restAddr) = if ((i.caller != this))
12141250 then throw("Permission denied")
12151251 else [StringEntry(keyRestAddress(), restAddr)]
12161252
12171253
12181254
12191255 @Callable(i)
12201256 func setBlocked (isBlocked) = if ((i.caller != this))
12211257 then throw("permission denied")
12221258 else [BooleanEntry(keyBlocked(), isBlocked)]
12231259
12241260
12251261
12261262 @Callable(i)
12271263 func stakeLand () = {
12281264 let prologAction = prolog(i)
12291265 if ((size(i.payments) != 1))
12301266 then throw("Exactly one payment required")
12311267 else {
12321268 let pmt = value(i.payments[0])
12331269 let assetId = value(pmt.assetId)
12341270 let address = toString(i.caller)
12351271 if ((pmt.amount != 1))
12361272 then throw((("NFT " + LANDPREFIX) + " token should be attached as payment"))
12371273 else {
12381274 let asset = value(assetInfo(assetId))
12391275 if ((asset.issuer != this))
12401276 then throw("Unknown issuer of token")
12411277 else if (!(contains(asset.name, LANDPREFIX)))
12421278 then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted"))
12431279 else {
12441280 let landNumSize = drop(asset.name, 4)
12451281 let landNum = if (contains(landNumSize, "XXL"))
12461282 then dropRight(landNumSize, 3)
12471283 else if (contains(landNumSize, "XL"))
12481284 then dropRight(landNumSize, 2)
12491285 else dropRight(landNumSize, 1)
12501286 if (!(isDefined(parseInt(landNum))))
12511287 then throw(("Cannot parse land number from " + asset.name))
12521288 else {
12531289 let landAssetId = toBase58String(assetId)
12541290 let timeKey = keyStakedTimeByAssetId(landAssetId)
12551291 if (isDefined(getInteger(timeKey)))
12561292 then throw((("NFT " + asset.name) + " is already staked"))
12571293 else {
12581294 let d = split(asset.description, "_")
12591295 let terrainCounts = countTerrains(d[recTerrains])
12601296 let pieces = numPiecesBySize(d[recLandSize])
12611297 let props = updateProportions(terrainCounts, (pieces / SSIZE), 1)
12621298 let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false))
12631299 then pieces
12641300 else 0)
12651301 let landsStr = getString(keyStakedLandsByOwner(address))
12661302 let lands = if (isDefined(landsStr))
12671303 then split_51C(value(landsStr), "_")
12681304 else nil
12691305 if (containsElement(lands, landAssetId))
12701306 then throw(("Your staked lands already contain " + landAssetId))
12711307 else [IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(keyStakedLandsByOwner(address), makeString_11C((lands :+ landAssetId), "_")), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), StringEntry(keyResProportions(), props), prologAction]
12721308 }
12731309 }
12741310 }
12751311 }
12761312 }
12771313 }
12781314
12791315
12801316
12811317 @Callable(i)
12821318 func unstakeLand (landAssetIdIn) = {
12831319 let prologAction = prolog(i)
12841320 if ((size(i.payments) != 0))
12851321 then throw("No payments required")
12861322 else {
12871323 let addr = toString(i.caller)
12881324 let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn)
12891325 let landAssetId = c._2
12901326 let landsKey = keyStakedLandsByOwner(addr)
12911327 let terrainCounts = countTerrains(c._3[recTerrains])
12921328 let pieces = numPiecesBySize(c._3[recLandSize])
12931329 let props = updateProportions(terrainCounts, (pieces / SSIZE), -1)
12941330 let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck)
12951331 let lands = split_51C(valueOrElse(getString(landsKey), ""), "_")
12961332 let idx = indexOf(lands, landAssetId)
12971333 if (!(isDefined(idx)))
12981334 then throw(("Your staked lands don't contain " + landAssetId))
12991335 else {
13001336 let t = value(blockInfoByHeight(height)).timestamp
13011337 let releaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0)
13021338 if ((releaseTime >= t))
13031339 then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(releaseTime)))
13041340 else [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))
13051341 then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_"))
13061342 else DeleteEntry(landsKey), prologAction]
13071343 }
13081344 }
13091345 }
13101346
13111347
13121348
13131349 @Callable(i)
13141350 func stakeDuck () = {
13151351 let prologAction = prolog(i)
13161352 if ((size(i.payments) != 1))
13171353 then throw("Exactly one payment required")
13181354 else {
13191355 let pmt = value(i.payments[0])
13201356 let assetId = value(pmt.assetId)
13211357 let address = toString(i.caller)
13221358 if ((pmt.amount != 1))
13231359 then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment"))
13241360 else {
13251361 let asset = value(assetInfo(assetId))
13261362 if (if ((asset.issuer != incubatorAddr))
13271363 then (asset.issuer != breederAddr)
13281364 else false)
13291365 then throw((("Unknown issuer of " + DUCKPREFIX) + " token"))
13301366 else if (!(contains(asset.name, DUCKPREFIX)))
13311367 then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted"))
13321368 else {
13331369 let assetIdStr = toBase58String(assetId)
13341370 let timeKey = keyStakedTimeByAssetId(assetIdStr)
13351371 if (isDefined(getInteger(timeKey)))
13361372 then throw((("NFT " + asset.name) + " is already staked"))
13371373 else if (isDefined(getString(keyStakedDuckByOwner(address))))
13381374 then throw(("You already staked one duck: " + asset.name))
13391375 else {
13401376 let locKey = keyDuckLocation(assetIdStr)
13411377 let location = getString(locKey)
13421378 let bpKey = keyBackpackByDuck(assetIdStr)
13431379 let backpack = getString(bpKey)
13441380 ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location))
13451381 then nil
13461382 else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack))
13471383 then nil
13481384 else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyDuckHealth(assetIdStr), 100)) :+ prologAction)))))
13491385 }
13501386 }
13511387 }
13521388 }
13531389 }
13541390
13551391
13561392
13571393 @Callable(i)
13581394 func unstakeDuck (assetIdStr) = {
13591395 let prologAction = prolog(i)
13601396 if ((size(i.payments) != 0))
13611397 then throw("No payments required")
13621398 else {
13631399 let assetId = fromBase58String(assetIdStr)
13641400 let address = toString(i.caller)
13651401 let asset = value(assetInfo(assetId))
13661402 let timeKey = keyStakedTimeByAssetId(toBase58String(assetId))
13671403 if (!(isDefined(getInteger(timeKey))))
13681404 then throw((("NFT " + asset.name) + " is not staked"))
13691405 else if (!(isDefined(getString(keyStakedDuckByOwner(address)))))
13701406 then throw((("The duck " + asset.name) + " is not staked"))
13711407 else {
13721408 let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned"))
13731409 if ((owner != address))
13741410 then throw("Staked NFT is not yours")
13751411 else {
13761412 let keyHealth = keyDuckHealth(assetIdStr)
13771413 let health = valueOrElse(getInteger(keyHealth), 100)
13781414 if ((100 > health))
13791415 then throw("Please heal your duck before unstaking")
13801416 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]
13811417 }
13821418 }
13831419 }
13841420 }
13851421
13861422
13871423
13881424 @Callable(i)
13891425 func claimRes (amount,landAssetIdStr) = {
13901426 let prologAction = prolog(i)
13911427 if ((size(i.payments) != 0))
13921428 then throw("No payments required")
13931429 else {
13941430 let addr = toString(i.originCaller)
13951431 let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr)
13961432 $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes])
13971433 }
13981434 }
13991435
14001436
14011437
14021438 @Callable(i)
14031439 func claimResToWH (amount,landAssetIdStr) = {
14041440 let prologAction = prolog(i)
14051441 if ((size(i.payments) != 0))
14061442 then throw("No payments required")
14071443 else {
14081444 let addr = toString(i.originCaller)
14091445 let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr)
14101446 $Tuple2((((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes])
14111447 }
14121448 }
14131449
14141450
14151451
14161452 @Callable(i)
14171453 func flight (message,sig) = {
14181454 let prologAction = prolog(i)
14191455 if (!(sigVerify_8Kb(message, sig, pub)))
14201456 then throw("signature does not match")
14211457 else if ((size(i.payments) != 0))
14221458 then throw("No payments required")
14231459 else {
14241460 let parts = split(toUtf8String(message), ";")
14251461 let flightLog = split(parts[0], "|")
14261462 let hp = split(flightLog[flHealth], "_")
14271463 let curHP = parseIntValue(hp[0])
14281464 let newHP = parseIntValue(hp[1])
14291465 let newLocTxVer = split(parts[1], ":")
14301466 let newLocation = newLocTxVer[0]
14311467 let time = parseIntValue(flightLog[flTimestamp])
14321468 if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS)))
14331469 then true
14341470 else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time))
14351471 then throw("signature outdated")
14361472 else {
14371473 let txFromMsg = newLocTxVer[1]
14381474 let lastTx = valueOrElse(getString(keyLastTxIdByUser(toString(i.originCaller))), "")
14391475 if ((lastTx != txFromMsg))
14401476 then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg))
14411477 else {
14421478 let userAddr = toString(i.caller)
14431479 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked")
14441480 let keyHealth = keyDuckHealth(duckAssetId)
14451481 let oldFromState = valueOrElse(getInteger(keyHealth), 100)
14461482 if ((oldFromState != curHP))
14471483 then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP)))
14481484 else if ((0 >= curHP))
14491485 then throw("You can't fly with zero health")
14501486 else {
14511487 let locKey = keyDuckLocation(duckAssetId)
14521488 let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION)
14531489 if ((newLocation == curLocation))
14541490 then throw("You can't fly to the same location")
14551491 else {
14561492 let bonus = if ((size(flightLog) > flBonus))
14571493 then flightLog[flBonus]
14581494 else ""
14591495 let sentAmount = if (if ((newHP > 0))
14601496 then (bonus == "$")
14611497 else false)
14621498 then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil))
14631499 else 0
14641500 $Tuple2([StringEntry(locKey, if ((newHP > 0))
14651501 then newLocation
14661502 else curLocation), IntegerEntry(keyHealth, newHP), prologAction], sentAmount)
14671503 }
14681504 }
14691505 }
14701506 }
14711507 }
14721508 }
14731509
14741510
14751511
14761512 @Callable(i)
14771513 func setHealth (health,duckAssetId) = {
14781514 let prologAction = prolog(i)
14791515 if (if ((0 > health))
14801516 then true
14811517 else (health > 100))
14821518 then throw("HP should be within 0..100")
14831519 else [IntegerEntry(keyDuckHealth(duckAssetId), health), prologAction]
14841520 }
14851521
14861522
14871523
14881524 @Callable(i)
14891525 func heal (matType,amount) = {
14901526 let prologAction = prolog(i)
14911527 if (if ((0 > matType))
14921528 then true
14931529 else (matType >= NUMRES))
14941530 then throw(("Unknown material: " + toString(matType)))
14951531 else if ((0 >= amount))
14961532 then throw(("Amount should be positive! " + toString(amount)))
14971533 else {
14981534 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
14991535 let keyHealth = keyDuckHealth(duckAssetId)
15001536 let oldHealth = valueOrElse(getInteger(keyHealth), 100)
15011537 if ((oldHealth >= 100))
15021538 then throw("HP should be < 100 to heal")
15031539 else {
15041540 let bpKey = keyBackpackByDuck(duckAssetId)
15051541 let currentPack = getBackpack(bpKey)
15061542 let mList = split(currentPack[bpIdxMat], "_")
15071543 let currentAmount = parseIntValue(mList[matType])
15081544 let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)])
15091545 let spendAmount = (deltaHealth * HEALCOST)
15101546 if ((spendAmount > currentAmount))
15111547 then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount)))
15121548 else {
15131549 let newMat = subOneInList(mList, matType, spendAmount)
15141550 [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), prologAction]
15151551 }
15161552 }
15171553 }
15181554 }
15191555
15201556
15211557
15221558 @Callable(i)
15231559 func updateBackpack (duckAssetId,newPack) = {
15241560 let prologAction = prolog(i)
15251561 if ((i.caller != economyContract))
15261562 then throw("permission denied")
15271563 else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack), prologAction], newPack)
15281564 }
15291565
15301566
15311567
15321568 @Callable(i)
15331569 func buySLand () = {
15341570 let prologAction = prolog(i)
15351571 if ((size(i.payments) != 1))
15361572 then throw("Exactly one payment required")
15371573 else {
15381574 let pmt = value(i.payments[0])
15391575 if ((pmt.assetId != usdtAssetId))
15401576 then throw("Allowed USDT payment only!")
15411577 else if ((pmt.amount != EXPUSDT))
15421578 then throw(("Payment attached should be " + toString(EXPUSDT)))
15431579 else {
15441580 let result = expeditionInternal(i.caller, i.transactionId)
15451581 $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2._1)
15461582 }
15471583 }
15481584 }
15491585
15501586
15511587
15521588 @Callable(i)
15531589 func expedition (message,sig) = {
15541590 let prologAction = prolog(i)
15551591 if ((size(i.payments) != 0))
15561592 then throw("No payments required")
15571593 else {
15581594 let result = expeditionCommon(true, i.caller, i.transactionId, message, sig)
15591595 $Tuple2((result._1 :+ prologAction), result._2)
15601596 }
15611597 }
15621598
15631599
15641600
15651601 @Callable(i)
15661602 func upgradeInfra (landAssetId) = {
15671603 let prologAction = prolog(i)
15681604 if ((size(i.payments) != 0))
15691605 then throw("No payments required")
15701606 else {
15711607 let result = upInfraCommon(true, i.caller, 0, landAssetId)
15721608 $Tuple2((result._1 :+ prologAction), result._2)
15731609 }
15741610 }
15751611
15761612
15771613
15781614 @Callable(i)
15791615 func upgradeInfraUsdt (landAssetId) = if ((i.caller != this))
15801616 then throw("Permission denied")
15811617 else {
15821618 let prologAction = prolog(i)
15831619 if ((size(i.payments) != 1))
15841620 then throw("Exactly one payment required")
15851621 else {
15861622 let pmt = value(i.payments[0])
15871623 if ((pmt.assetId != usdtAssetId))
15881624 then throw("Allowed USDT payment only!")
15891625 else {
15901626 let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId)
15911627 $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2)
15921628 }
15931629 }
15941630 }
15951631
15961632
15971633
15981634 @Callable(i)
15991635 func activateArtifact (artName,landAssetId) = {
16001636 let prologAction = prolog(i)
16011637 if ((size(i.payments) != 0))
16021638 then throw("No payments required")
16031639 else {
16041640 let result = match artName {
16051641 case _ =>
16061642 if (("PRESALE" == $match0))
16071643 then activatePresaleArt(toString(i.caller), landAssetId)
16081644 else throw("Unknown artifact")
16091645 }
16101646 (result :+ prologAction)
16111647 }
16121648 }
16131649
16141650
16151651
16161652 @Callable(i)
16171653 func mergeLands (landAssetIds) = {
16181654 let prologAction = prolog(i)
16191655 if ((size(i.payments) != 0))
16201656 then throw("No payments required")
16211657 else {
16221658 let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId)
16231659 $Tuple2((result._1 :+ prologAction), result._2)
16241660 }
16251661 }
16261662
16271663
16281664
16291665 @Callable(i)
16301666 func mergeLandsUsdt (landAssetIds) = {
16311667 let prologAction = prolog(i)
16321668 if ((size(i.payments) != 1))
16331669 then throw("Exactly one payment required")
16341670 else {
16351671 let pmt = value(i.payments[0])
16361672 if ((pmt.assetId != usdtAssetId))
16371673 then throw("Allowed USDT payment only!")
16381674 else {
16391675 let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId)
16401676 $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2)
16411677 }
16421678 }
16431679 }
16441680
16451681
16461682
16471683 @Callable(i)
16481684 func cargoExchange (cargoListStr,landAssetId) = {
16491685 let prologAction = prolog(i)
16501686 if ((size(i.payments) != 0))
16511687 then throw("No payments required")
16521688 else {
16531689 let cargoParts = split_4C(cargoListStr, ":")
16541690 let addr = toString(i.originCaller)
16551691 let asset = value(assetInfo(fromBase58String(landAssetId)))
16561692 let timeKey = keyStakedTimeByAssetId(landAssetId)
16571693 if (!(isDefined(getInteger(timeKey))))
16581694 then throw((asset.name + " is not staked"))
16591695 else {
16601696 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
16611697 if ((owner != addr))
16621698 then throw((LANDPREFIX + " is not yours"))
16631699 else {
16641700 let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE)
16651701 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
16661702 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
16671703 let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION)
16681704 let loc = split(value(curLocation), "_")
16691705 if ((loc[locIdxType] != "L"))
16701706 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
16711707 else if ((loc[locIdxId] != landAssetId))
16721708 then throw(("Duck should be on the land " + landAssetId))
16731709 else {
16741710 let whKey = keyWarehouseByLand(landAssetId)
16751711 let currentWh = getWarehouse(whKey, landIndex, infraLevel)
16761712 let bpKey = keyBackpackByDuck(duckAssetId)
16771713 let currentPack = getBackpack(bpKey)
16781714 let result = moveStuff(cargoParts, currentWh, currentPack)
1679-[StringEntry(bpKey, makeString([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString([currentWh[whIdxVol], result._1, result._2, result._3, currentWh[whIdxLockedVol]], ":")), prologAction]
1715+ let loft = split(currentWh[whIdxLOFT], "_")
1716+ let loftO = (parseIntValue(loft[volOccupied]) + result._7)
1717+ let loftF = (parseIntValue(loft[volFree]) - result._7)
1718+[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]
16801719 }
16811720 }
16821721 }
16831722 }
16841723 }
16851724
16861725
16871726
16881727 @Callable(i)
16891728 func saveWarehouse (whStr,landAssetId) = {
16901729 let prologAction = prolog(i)
16911730 if ((i.caller != economyContract))
16921731 then throw("Access denied")
16931732 else {
16941733 let whKey = keyWarehouseByLand(landAssetId)
1695- if ((size(split_4C(whStr, ":")) != 5))
1734+ let wh = split_4C(whStr, ":")
1735+ if ((size(wh) != 5))
16961736 then throw("warehouse string should contain 4 ':' separators")
1697- else $Tuple2([StringEntry(whKey, whStr), prologAction], whStr)
1737+ else {
1738+ let loftL = split(wh[whIdxLOFT], "_")[volLocked]
1739+ let loftO = getWarehouseOccupiedVol(wh)
1740+ let loftT = getWarehouseTotalVolume(wh[whIdxLevels])
1741+ let loftF = ((loftT - parseIntValue(loftL)) - loftO)
1742+ let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":")
1743+ $Tuple2([StringEntry(whKey, newWhStr), prologAction], newWhStr)
1744+ }
16981745 }
16991746 }
17001747
17011748
17021749
17031750 @Callable(i)
17041751 func replaceBooleanArtifact (landAssetId) = if ((i.caller != restContract))
17051752 then throw("Access denied")
17061753 else {
17071754 let boolKey = keyPresaleArtActivatedByAssetId(landAssetId)
17081755 let intKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)
17091756 let boolArt = getBoolean(boolKey)
17101757 if (isDefined(boolArt))
17111758 then {
17121759 let d = split(value(assetInfo(fromBase58String(landAssetId))).description, "_")
17131760 let pieces = numPiecesBySize(d[recLandSize])
17141761 let artPieces = valueOrElse(getInteger(intKey), pieces)
17151762 let owner = getString(keyLandAssetIdToOwner(landAssetId))
17161763 let ownerRecords = if (isDefined(owner))
17171764 then [IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, value(owner)), artPieces), DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, value(owner)))]
17181765 else nil
17191766 if (value(boolArt))
17201767 then $Tuple2(((ownerRecords :+ IntegerEntry(intKey, artPieces)) :+ DeleteEntry(boolKey)), 2)
17211768 else $Tuple2([DeleteEntry(boolKey)], 1)
17221769 }
17231770 else $Tuple2(nil, 0)
17241771 }
17251772
17261773
17271774
17281775 @Callable(i)
17291776 func setCustomName (assetId,customName,type) = {
17301777 let prologAction = prolog(i)
17311778 if ((size(i.payments) != 1))
17321779 then throw("Exactly one payment required")
17331780 else {
17341781 let pmt = value(i.payments[0])
17351782 if ((pmt.assetId != usdtAssetId))
17361783 then throw("Allowed USDT payment only!")
17371784 else if ((pmt.amount != RENAMINGCOST))
17381785 then throw(("Payment should be " + toString(RENAMINGCOST)))
17391786 else if (contains(customName, "__"))
17401787 then throw(("Name should not contain '__': " + customName))
17411788 else if ((size(customName) > MAXNAMELEN))
17421789 then throw(("Name too long, maxLength=" + toString(MAXNAMELEN)))
17431790 else {
17441791 let addr = toString(i.originCaller)
17451792 let actions = match type {
17461793 case _ =>
17471794 if (("ACCOUNT" == $match0))
17481795 then {
17491796 let reverseKey = keyCustomNameToAddress(customName)
17501797 let oldName = getString(reverseKey)
17511798 if (isDefined(oldName))
17521799 then throw(("Name already registered: " + customName))
17531800 else [StringEntry(keyAddressToCustomName(addr), customName), StringEntry(reverseKey, addr)]
17541801 }
17551802 else if (("LAND" == $match0))
17561803 then {
17571804 let asset = value(assetInfo(fromBase58String(assetId)))
17581805 let timeKey = keyStakedTimeByAssetId(assetId)
17591806 if (!(isDefined(getInteger(timeKey))))
17601807 then throw((asset.name + " is not staked"))
17611808 else {
17621809 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned"))
17631810 if ((owner != addr))
17641811 then throw((LANDPREFIX + " is not yours"))
17651812 else {
17661813 let reverseKey = keyLandCustomNameToAssetId(customName)
17671814 let oldName = getString(reverseKey)
17681815 if (isDefined(oldName))
17691816 then throw(("Name already registered: " + customName))
17701817 else [StringEntry(keyLandAssetIdToCustomName(assetId), customName), StringEntry(reverseKey, assetId)]
17711818 }
17721819 }
17731820 }
17741821 else if (("DUCK" == $match0))
17751822 then {
17761823 let asset = value(assetInfo(fromBase58String(assetId)))
17771824 let timeKey = keyStakedTimeByAssetId(assetId)
17781825 if (if (!(isDefined(getInteger(timeKey))))
17791826 then true
17801827 else !(isDefined(getString(keyStakedDuckByOwner(addr)))))
17811828 then throw((asset.name + " is not staked"))
17821829 else {
17831830 let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned"))
17841831 if ((owner != addr))
17851832 then throw((DUCKPREFIX + " is not yours"))
17861833 else {
17871834 let reverseKey = keyDuckCustomNameToAssetId(customName)
17881835 let oldName = getString(reverseKey)
17891836 if (isDefined(oldName))
17901837 then throw(("Name already registered: " + customName))
17911838 else [StringEntry(keyDuckAssetIdToCustomName(assetId), customName), StringEntry(reverseKey, assetId)]
17921839 }
17931840 }
17941841 }
17951842 else throw("Unknown entity type")
17961843 }
17971844 $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0)
17981845 }
17991846 }
18001847 }
18011848
18021849
18031850
18041851 @Callable(i)
18051852 func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub))
18061853 then throw("Permission denied")
18071854 else {
18081855 let prologAction = prolog(i)
18091856 if ((size(i.payments) != 0))
18101857 then throw("No payments required")
18111858 else if (!(isDefined(addressFromString(oldPlayer))))
18121859 then throw(("Invalid address: " + oldPlayer))
18131860 else if (!(isDefined(addressFromString(newPlayer))))
18141861 then throw(("Invalid address: " + newPlayer))
18151862 else {
18161863 let oldsKey = keyOldies()
18171864 let olds = getString(oldsKey)
18181865 let oldies = if (isDefined(olds))
18191866 then split_4C(value(olds), "_")
18201867 else nil
18211868 if (containsElement(oldies, newPlayer))
18221869 then throw((newPlayer + " is not newbie (already has referrals)"))
18231870 else {
18241871 let refByKey = keyAddressRefBy(newPlayer)
18251872 let refBy = getString(refByKey)
18261873 if (if (isDefined(refBy))
18271874 then isDefined(addressFromString(value(refBy)))
18281875 else false)
18291876 then throw(((newPlayer + " already has refBy: ") + value(refBy)))
18301877 else {
18311878 let refsKey = keyAddressReferrals(oldPlayer)
18321879 let refs = getString(refsKey)
18331880 let refsArray = if (isDefined(refs))
18341881 then split_4C(value(refs), "_")
18351882 else nil
18361883 if (containsElement(refsArray, newPlayer))
18371884 then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals"))
18381885 else {
18391886 let newRefs = makeString_2C((refsArray :+ newPlayer), "_")
18401887 let newOlds = makeString_2C((oldies :+ oldPlayer), "_")
18411888 $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0)
18421889 }
18431890 }
18441891 }
18451892 }
18461893 }
18471894
18481895
18491896
18501897 @Callable(i)
18511898 func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount))
18521899
18531900
18541901
18551902 @Callable(i)
18561903 func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = {
18571904 let terrainCounts = countTerrains(terrains)
18581905 $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts)))
18591906 }
18601907
18611908
18621909
18631910 @Callable(i)
18641911 func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":"))
18651912
18661913
18671914
18681915 @Callable(i)
18691916 func getWarehouseREADONLY (landAssetId) = {
18701917 let asset = value(assetInfo(fromBase58String(landAssetId)))
18711918 let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE)
18721919 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
18731920 $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":"))
18741921 }
18751922
18761923

github/deemru/w8io/026f985 
216.38 ms