tx · HvaoML86gotzxmFPWyvbKFG3a7rpQaYgV5pdKpwzBCiZ 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.03400000 Waves 2023.01.29 20:27 [2426570] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "HvaoML86gotzxmFPWyvbKFG3a7rpQaYgV5pdKpwzBCiZ", "fee": 3400000, "feeAssetId": null, "timestamp": 1675013281189, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "dChQ51AYQej8f2jKQLSYFhCFFzCqyzrV9pf43EYA6qS6buDRuhjjCRoLDerUeNPNS47tb6C7QmhbydmrQqts8yZ" ], "script": "base64:BgJjCAISAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgICEgQKAgEIEgQKAgEBEgQKAggIEgQKAgICEgQKAgICEgMKAQgSAwoBCBIDCgEIEgMKARgSAwoBGBIDCgEBEgQKAgEIYgAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZG5Bc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QMJAAACAQFUBQckbWF0Y2gwASD3dur394PKZdtuE+4CO89YKZWpwdGN8kvabNgdYoDI3gkAAgECDVVua25vd24gY2hhaW4ADWluY3ViYXRvckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNQRWt0VnV4MlJoY2hTTjYzRHNEbzRiNG16NFFxektTZUR2AwkAAAIBAVQFByRtYXRjaDAFBHRoaXMJAAIBAg1Vbmtub3duIGNoYWluAAticmVlZGVyQWRkcgQHJG1hdGNoMAUFY2hhaW4DCQAAAg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AgkAkAMBCAUBaQhwYXltZW50cwABCQACAQIcRXhhY3RseSBvbmUgcGF5bWVudCByZXF1aXJlZAQDcG10CQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAADCQECIT0CCAUDcG10B2Fzc2V0SWQFC3VzZG5Bc3NldElkCQACAQIaQWxsb3dlZCBVU0ROIHBheW1lbnQgb25seSEEBnJlc3VsdAkBC21lcmdlQ29tbW9uBQcJAKUIAQgFAWkGY2FsbGVyCAUDcG10BmFtb3VudAUMbGFuZEFzc2V0SWRzCAUBaQ10cmFuc2FjdGlvbklkCQCUCgIJAM0IAggFBnJlc3VsdAJfMQkBDlNjcmlwdFRyYW5zZmVyAwUPZWNvbm9teUNvbnRyYWN0CAUDcG10BmFtb3VudAULdXNkbkFzc2V0SWQIBQZyZXN1bHQCXzIJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEcc3BsaXRCeUdsb2JhbFdlaWdodHNSRUFET05MWQEGYW1vdW50CQCUCgIFA25pbAkBEmdldE5lZWRlZE1hdGVyaWFscwEFBmFtb3VudAFpARtzcGxpdEJ5TG9jYWxXZWlnaHRzUkVBRE9OTFkCBmFtb3VudAh0ZXJyYWlucwQNdGVycmFpbkNvdW50cwkBDWNvdW50VGVycmFpbnMBBQh0ZXJyYWlucwkAlAoCBQNuaWwJARNkaXN0cmlidXRlQnlXZWlnaHRzAgUGYW1vdW50BQ10ZXJyYWluQ291bnRzAHvN3EU=", "height": 2426570, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: H9uiZak4cDADn5wPj1stKVL38fCdLLyRX4AcfHzPKAiA Next: 3Swcvujj4q4UNHC2tspBZCHEHh6jLwDds5iCm2JTj29j Diff:
Old | New | Differences | |
---|---|---|---|
653 | 653 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
654 | 654 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, (pieces / SSIZE), dailyProductionByPiece) | |
655 | 655 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, (pieces / SSIZE), -1) | |
656 | - | $Tuple6(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(keyPresaleArtActivatedByAssetId(landAssetId))) :+ DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ Burn(fromBase58String(landAssetId), 1)), props) | |
656 | + | let lands = acc._7 | |
657 | + | let idx = indexOf(lands, landAssetId) | |
658 | + | if (!(isDefined(idx))) | |
659 | + | then throw(("Your staked lands don't contain " + landAssetId)) | |
660 | + | else $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(keyPresaleArtActivatedByAssetId(landAssetId))) :+ DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ Burn(fromBase58String(landAssetId), 1)), props, removeByIndex(lands, value(idx))) | |
657 | 661 | } | |
658 | 662 | } | |
659 | 663 | } | |
663 | 667 | let bpKey = keyBackpackByDuck(duckAssetId) | |
664 | 668 | let currentPack = getBackpack(bpKey) | |
665 | 669 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
670 | + | let landsKey = keyStakedLandsByOwner(addr) | |
671 | + | let landsIn = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
666 | 672 | let r = { | |
667 | 673 | let $l = landAssetIds | |
668 | 674 | let $s = size($l) | |
669 | - | let $acc0 = $ | |
675 | + | let $acc0 = $Tuple7(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn) | |
670 | 676 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
671 | 677 | then $a | |
672 | 678 | else checkMerge($a, $l[$i]) | |
673 | 679 | ||
674 | 680 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
675 | 681 | then $a | |
676 | - | else throw("List size exceeds | |
682 | + | else throw("List size exceeds 5") | |
677 | 683 | ||
678 | - | $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4) | |
684 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
679 | 685 | } | |
680 | 686 | let continent = r._3 | |
681 | 687 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
686 | 692 | let assetId = calculateAssetId(issue) | |
687 | 693 | let newLandAssetId = toBase58String(assetId) | |
688 | 694 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
689 | - | $Tuple2((((((((((((((r._5 :+ 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) | |
695 | + | $Tuple2(((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
696 | + | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
697 | + | 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) | |
690 | 698 | } | |
691 | 699 | ||
692 | 700 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let chain = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let usdnAssetId = match chain { | |
7 | 7 | case _ => | |
8 | 8 | if ((base58'2W' == $match0)) | |
9 | 9 | then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
10 | 10 | else if ((base58'2T' == $match0)) | |
11 | 11 | then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let incubatorAddr = match chain { | |
16 | 16 | case _ => | |
17 | 17 | if ((base58'2W' == $match0)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if ((base58'2T' == $match0)) | |
20 | 20 | then this | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let breederAddr = match chain { | |
25 | 25 | case _ => | |
26 | 26 | if ((base58'2W' == $match0)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if ((base58'2T' == $match0)) | |
29 | 29 | then this | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let economyContract = addressFromStringValue(match chain { | |
34 | 34 | case _ => | |
35 | 35 | if ((base58'2W' == $match0)) | |
36 | 36 | then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D" | |
37 | 37 | else if ((base58'2T' == $match0)) | |
38 | 38 | then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep" | |
39 | 39 | else throw("Unknown chain") | |
40 | 40 | }) | |
41 | 41 | ||
42 | 42 | let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
43 | 43 | ||
44 | 44 | let HEALCOST = 10000 | |
45 | 45 | ||
46 | 46 | let LANDPREFIX = "LAND" | |
47 | 47 | ||
48 | 48 | let DUCKPREFIX = "DUCK" | |
49 | 49 | ||
50 | 50 | let DEFAULTLOCATION = "Africa_F_Africa" | |
51 | 51 | ||
52 | 52 | let NUMRES = 6 | |
53 | 53 | ||
54 | 54 | let SSIZE = 25 | |
55 | 55 | ||
56 | 56 | let MSIZE = 100 | |
57 | 57 | ||
58 | 58 | let LSIZE = 225 | |
59 | 59 | ||
60 | 60 | let XLSIZE = 400 | |
61 | 61 | ||
62 | 62 | let XXLSIZE = 625 | |
63 | 63 | ||
64 | 64 | let DAILYRESBYPIECE = 3456000 | |
65 | 65 | ||
66 | 66 | let DAYMILLIS = 86400000 | |
67 | 67 | ||
68 | 68 | let FIVEMINUTESMILLIS = 300000 | |
69 | 69 | ||
70 | 70 | let RESOURCEPRICEMIN = 158549 | |
71 | 71 | ||
72 | 72 | let InfraUpgradeCostS = match chain { | |
73 | 73 | case _ => | |
74 | 74 | if ((base58'2W' == $match0)) | |
75 | 75 | then 6307198406 | |
76 | 76 | else if ((base58'2T' == $match0)) | |
77 | 77 | then 63071984 | |
78 | 78 | else throw("Unknown chain") | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 | let InfraUpgradeCostSUsdn = match chain { | |
82 | 82 | case _ => | |
83 | 83 | if ((base58'2W' == $match0)) | |
84 | 84 | then 40000000 | |
85 | 85 | else if ((base58'2T' == $match0)) | |
86 | 86 | then 400000 | |
87 | 87 | else throw("Unknown chain") | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | let EXPMATERIALS = match chain { | |
91 | 91 | case _ => | |
92 | 92 | if ((base58'2W' == $match0)) | |
93 | 93 | then 157679960139 | |
94 | 94 | else if ((base58'2T' == $match0)) | |
95 | 95 | then 1576799601 | |
96 | 96 | else throw("Unknown chain") | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | let EXPUSDN = match chain { | |
100 | 100 | case _ => | |
101 | 101 | if ((base58'2W' == $match0)) | |
102 | 102 | then 1000000000 | |
103 | 103 | else if ((base58'2T' == $match0)) | |
104 | 104 | then 10000000 | |
105 | 105 | else throw("Unknown chain") | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | let MULT6 = 1000000 | |
109 | 109 | ||
110 | 110 | let FIVEX = toBigInt(5) | |
111 | 111 | ||
112 | 112 | let TWENTYX = toBigInt(20) | |
113 | 113 | ||
114 | 114 | let TWENTY2X = toBigInt((20 * 20)) | |
115 | 115 | ||
116 | 116 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
117 | 117 | ||
118 | 118 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
119 | 119 | ||
120 | 120 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
121 | 121 | ||
122 | 122 | let matTypes = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
123 | 123 | ||
124 | 124 | let continents = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
125 | 125 | ||
126 | 126 | let ARTPRESALE = "PRESALE" | |
127 | 127 | ||
128 | 128 | let PRESALENUMLANDS = 500 | |
129 | 129 | ||
130 | 130 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyNextFreeLandNum () = "nextLandNum" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyLandToAssetId (landNum) = ("landToAsset_" + landNum) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyNftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func keyPresaleArtActivatedByAssetId (assetId) = ("presaleArtActivated_" + assetId) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func keyPresaleArtActivatedByAssetIdAndOwner (assetId,ownerAddr) = ((("presaleArtActivatedByAssetIdAndOwner_" + assetId) + "_") + ownerAddr) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_") | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyLandNumToOwner (landNum) = ("landOwner_" + landNum) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func keyResProportions () = "resTypesProportions" | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func keyBlocked () = "contractsBlocked" | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | let recLandNum = 0 | |
197 | 197 | ||
198 | 198 | let recLandSize = 1 | |
199 | 199 | ||
200 | 200 | let recTerrains = 2 | |
201 | 201 | ||
202 | 202 | let recContinent = 3 | |
203 | 203 | ||
204 | 204 | let locIdxContinent = 0 | |
205 | 205 | ||
206 | 206 | let locIdxType = 1 | |
207 | 207 | ||
208 | 208 | let locIdxId = 2 | |
209 | 209 | ||
210 | 210 | let bpIdxLevel = 0 | |
211 | 211 | ||
212 | 212 | let bpIdxRes = 1 | |
213 | 213 | ||
214 | 214 | let bpIdxMat = 2 | |
215 | 215 | ||
216 | 216 | let bpIdxProd = 3 | |
217 | 217 | ||
218 | 218 | func asString (v) = match v { | |
219 | 219 | case s: String => | |
220 | 220 | s | |
221 | 221 | case _ => | |
222 | 222 | throw("fail to cast into String") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func distributeByWeights (total,weights) = { | |
227 | 227 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
228 | 228 | if ((0 >= sum)) | |
229 | 229 | then throw("Zero weights sum") | |
230 | 230 | else { | |
231 | 231 | let norm6 = fraction(total, MULT6, sum) | |
232 | 232 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
233 | 233 | ||
234 | 234 | let $l = weights | |
235 | 235 | let $s = size($l) | |
236 | 236 | let $acc0 = nil | |
237 | 237 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
238 | 238 | then $a | |
239 | 239 | else normalizer($a, $l[$i]) | |
240 | 240 | ||
241 | 241 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
242 | 242 | then $a | |
243 | 243 | else throw("List size exceeds 6") | |
244 | 244 | ||
245 | 245 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func getNeededMaterials (total) = { | |
251 | 251 | let props = split(value(getString(keyResProportions())), "_") | |
252 | 252 | if ((size(props) != NUMRES)) | |
253 | 253 | then throw("Wrong proportions data") | |
254 | 254 | else { | |
255 | 255 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
256 | 256 | distributeByWeights(total, r) | |
257 | 257 | } | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
262 | 262 | let need = getNeededMaterials(totalNeed) | |
263 | 263 | func subtractor (acc,idx) = { | |
264 | 264 | let result = (parseIntValue(has[idx]) - need[idx]) | |
265 | 265 | if ((0 > result)) | |
266 | 266 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
267 | 267 | else (acc :+ toString(result)) | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | if (shouldUseMat) | |
271 | 271 | then { | |
272 | 272 | let $l = [0, 1, 2, 3, 4, 5] | |
273 | 273 | let $s = size($l) | |
274 | 274 | let $acc0 = nil | |
275 | 275 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
276 | 276 | then $a | |
277 | 277 | else subtractor($a, $l[$i]) | |
278 | 278 | ||
279 | 279 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
280 | 280 | then $a | |
281 | 281 | else throw("List size exceeds 6") | |
282 | 282 | ||
283 | 283 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
284 | 284 | } | |
285 | 285 | else has | |
286 | 286 | } | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
290 | 290 | then throw("Wrong proportions data") | |
291 | 291 | else { | |
292 | 292 | func updater (acc,i) = { | |
293 | 293 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
294 | 294 | if ((0 > result)) | |
295 | 295 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
296 | 296 | else (acc :+ toString(result)) | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | let r = { | |
300 | 300 | let $l = [0, 1, 2, 3, 4, 5] | |
301 | 301 | let $s = size($l) | |
302 | 302 | let $acc0 = nil | |
303 | 303 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
304 | 304 | then $a | |
305 | 305 | else updater($a, $l[$i]) | |
306 | 306 | ||
307 | 307 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
308 | 308 | then $a | |
309 | 309 | else throw("List size exceeds 6") | |
310 | 310 | ||
311 | 311 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
312 | 312 | } | |
313 | 313 | makeString(r, "_") | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
318 | 318 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
319 | 319 | updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign) | |
320 | 320 | } | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | 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)] | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | func numPiecesBySize (landSize) = match landSize { | |
327 | 327 | case _ => | |
328 | 328 | if (("S" == $match0)) | |
329 | 329 | then SSIZE | |
330 | 330 | else if (("M" == $match0)) | |
331 | 331 | then MSIZE | |
332 | 332 | else if (("L" == $match0)) | |
333 | 333 | then LSIZE | |
334 | 334 | else if (("XL" == $match0)) | |
335 | 335 | then XLSIZE | |
336 | 336 | else if (("XXL" == $match0)) | |
337 | 337 | then XXLSIZE | |
338 | 338 | else throw("Unknown land size") | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | func subOneInList (aList,idx,amount) = { | |
343 | 343 | func subber (acc,i) = (acc :+ (if ((i == idx)) | |
344 | 344 | then toString((parseIntValue(aList[i]) - amount)) | |
345 | 345 | else aList[i])) | |
346 | 346 | ||
347 | 347 | let r = { | |
348 | 348 | let $l = [0, 1, 2, 3, 4, 5] | |
349 | 349 | let $s = size($l) | |
350 | 350 | let $acc0 = nil | |
351 | 351 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
352 | 352 | then $a | |
353 | 353 | else subber($a, $l[$i]) | |
354 | 354 | ||
355 | 355 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
356 | 356 | then $a | |
357 | 357 | else throw("List size exceeds 6") | |
358 | 358 | ||
359 | 359 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
360 | 360 | } | |
361 | 361 | makeString(r, "_") | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
366 | 366 | func adder (acc,i) = { | |
367 | 367 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
368 | 368 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
369 | 369 | } | |
370 | 370 | ||
371 | 371 | let r = { | |
372 | 372 | let $l = [0, 1, 2, 3, 4, 5] | |
373 | 373 | let $s = size($l) | |
374 | 374 | let $acc0 = nil | |
375 | 375 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
376 | 376 | then $a | |
377 | 377 | else adder($a, $l[$i]) | |
378 | 378 | ||
379 | 379 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
380 | 380 | then $a | |
381 | 381 | else throw("List size exceeds 6") | |
382 | 382 | ||
383 | 383 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
384 | 384 | } | |
385 | 385 | makeString(r, "_") | |
386 | 386 | } | |
387 | 387 | ||
388 | 388 | ||
389 | 389 | func abs (x) = if ((x >= toBigInt(0))) | |
390 | 390 | then x | |
391 | 391 | else -(x) | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | 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]] | |
395 | 395 | ||
396 | 396 | func genChar (n,freqs) = { | |
397 | 397 | let rem = toInt((n % TWENTYX)) | |
398 | 398 | let letter = if ((freqs[0] > rem)) | |
399 | 399 | then "A" | |
400 | 400 | else if ((freqs[1] > rem)) | |
401 | 401 | then "B" | |
402 | 402 | else if ((freqs[2] > rem)) | |
403 | 403 | then "C" | |
404 | 404 | else if ((freqs[3] > rem)) | |
405 | 405 | then "D" | |
406 | 406 | else if ((freqs[4] > rem)) | |
407 | 407 | then "E" | |
408 | 408 | else "F" | |
409 | 409 | letter | |
410 | 410 | } | |
411 | 411 | ||
412 | 412 | ||
413 | 413 | func genTerrains (seed,continentIdx) = { | |
414 | 414 | let f = freq[continentIdx] | |
415 | 415 | 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)) | |
416 | 416 | ||
417 | 417 | let t = { | |
418 | 418 | let $l = [1, 2, 3, 4, 5] | |
419 | 419 | let $s = size($l) | |
420 | 420 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
421 | 421 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
422 | 422 | then $a | |
423 | 423 | else terrainGenerator($a, $l[$i]) | |
424 | 424 | ||
425 | 425 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
426 | 426 | then $a | |
427 | 427 | else throw("List size exceeds 5") | |
428 | 428 | ||
429 | 429 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
430 | 430 | } | |
431 | 431 | t._1 | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | func getBackpack (bpKey) = { | |
436 | 436 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
437 | 437 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
438 | 438 | then p[bpIdxRes] | |
439 | 439 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
440 | 440 | then p[bpIdxMat] | |
441 | 441 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | func expeditionCommon (shouldUseMat,caller,txId,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
446 | 446 | then throw("signature does not match") | |
447 | 447 | else { | |
448 | 448 | let parts = split(toUtf8String(message), ";") | |
449 | 449 | let hp = split(split(parts[0], "|")[0], "_") | |
450 | 450 | let curHP = parseIntValue(hp[0]) | |
451 | 451 | let newHP = parseIntValue(hp[1]) | |
452 | 452 | let locAndTime = split(parts[1], ":") | |
453 | 453 | let targetLocation = split(locAndTime[0], "_") | |
454 | 454 | if ((targetLocation[1] != "E")) | |
455 | 455 | then throw("expedition target location type should be E") | |
456 | 456 | else { | |
457 | 457 | let time = parseIntValue(locAndTime[1]) | |
458 | 458 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
459 | 459 | then true | |
460 | 460 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
461 | 461 | then throw("signature outdated") | |
462 | 462 | else { | |
463 | 463 | let userAddr = toString(caller) | |
464 | 464 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
465 | 465 | let keyHealth = keyDuckHealth(duckAssetId) | |
466 | 466 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
467 | 467 | if ((oldFromState != curHP)) | |
468 | 468 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
469 | 469 | else if ((0 >= curHP)) | |
470 | 470 | then throw("You can't fly with zero health") | |
471 | 471 | else if ((0 >= newHP)) | |
472 | 472 | then $Tuple2(((if (!(shouldUseMat)) | |
473 | 473 | then [ScriptTransfer(caller, EXPUSDN, usdnAssetId)] | |
474 | 474 | else nil) :+ IntegerEntry(keyHealth, 0)), "") | |
475 | 475 | else { | |
476 | 476 | let bpKey = keyBackpackByDuck(duckAssetId) | |
477 | 477 | let currentPack = getBackpack(bpKey) | |
478 | 478 | let mList = split(currentPack[bpIdxMat], "_") | |
479 | 479 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, EXPMATERIALS), "_") | |
480 | 480 | let bigNum = abs(toBigInt(txId)) | |
481 | 481 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
482 | 482 | let landNum = toString(freeNum) | |
483 | 483 | let continentIdx = toInt((bigNum % FIVEX)) | |
484 | 484 | let terrains = genTerrains(bigNum, continentIdx) | |
485 | 485 | let continent = continents[continentIdx] | |
486 | 486 | let issue = Issue(keyNftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
487 | 487 | let assetId = calculateAssetId(issue) | |
488 | 488 | let id = toBase58String(assetId) | |
489 | 489 | $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), StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", id], "_")), IntegerEntry(keyHealth, newHP), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))], id) | |
490 | 490 | } | |
491 | 491 | } | |
492 | 492 | } | |
493 | 493 | } | |
494 | 494 | ||
495 | 495 | ||
496 | 496 | func applyBonuses (landAssetId,pieces) = { | |
497 | 497 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
498 | 498 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
499 | 499 | then pieces | |
500 | 500 | else 0) | |
501 | 501 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, infraLevel, 4)) + fraction(DAILYRESBYPIECE, (artPieces * 3), (pieces * 20))) | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | func checkClaimConditions (addr) = { | |
506 | 506 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
507 | 507 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
508 | 508 | let loc = split(value(curLocation), "_") | |
509 | 509 | if ((loc[locIdxType] != "L")) | |
510 | 510 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
511 | 511 | else { | |
512 | 512 | let landAssetId = loc[locIdxId] | |
513 | 513 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
514 | 514 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
515 | 515 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Your duck is on " + asset.name) + ", which is not staked")) | |
516 | 516 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
517 | 517 | if ((owner != addr)) | |
518 | 518 | then throw((LANDPREFIX + " is not yours")) | |
519 | 519 | else { | |
520 | 520 | let d = split(asset.description, "_") | |
521 | 521 | $Tuple4(duckAssetId, landAssetId, d, savedTime) | |
522 | 522 | } | |
523 | 523 | } | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | func claimResInternal (addr,amount) = if ((0 > amount)) | |
528 | 528 | then throw("Negative amount") | |
529 | 529 | else { | |
530 | 530 | let c = checkClaimConditions(addr) | |
531 | 531 | let landSize = c._3[recLandSize] | |
532 | 532 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
533 | 533 | let deltaTime = (lastBlock.timestamp - c._4) | |
534 | 534 | if ((0 > deltaTime)) | |
535 | 535 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
536 | 536 | else { | |
537 | 537 | let pieces = numPiecesBySize(landSize) | |
538 | 538 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
539 | 539 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
540 | 540 | if ((amount > availRes)) | |
541 | 541 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
542 | 542 | else { | |
543 | 543 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
544 | 544 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
545 | 545 | let bpKey = keyBackpackByDuck(c._1) | |
546 | 546 | let currentPack = getBackpack(bpKey) | |
547 | 547 | let currentRes = split(currentPack[bpIdxRes], "_") | |
548 | 548 | let bpRes = addRes(currentRes, terrainCounts, (deltaTime - newDeltaTime), (pieces / SSIZE), dailyProductionByPiece) | |
549 | 549 | $Tuple3([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]]) | |
550 | 550 | } | |
551 | 551 | } | |
552 | 552 | } | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | func claimAll (addr,landAssetId,pieces) = { | |
556 | 556 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
557 | 557 | let savedTime = value(getInteger(timeKey)) | |
558 | 558 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
559 | 559 | claimResInternal(addr, availRes) | |
560 | 560 | } | |
561 | 561 | ||
562 | 562 | ||
563 | 563 | func upInfraCommon (shouldUseMat,caller,paymentAmount) = { | |
564 | 564 | let addr = toString(caller) | |
565 | 565 | let c = checkClaimConditions(addr) | |
566 | 566 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
567 | 567 | let infraKey = keyInfraLevelByAssetId(c._2) | |
568 | 568 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
569 | 569 | if ((curLevel >= 3)) | |
570 | 570 | then throw("Currently max infrastructure level = 3") | |
571 | 571 | else { | |
572 | 572 | let newLevel = (curLevel + 1) | |
573 | 573 | let cost = fraction(InfraUpgradeCostSUsdn, (pieces * newLevel), SSIZE) | |
574 | 574 | if (if (!(shouldUseMat)) | |
575 | 575 | then (paymentAmount != cost) | |
576 | 576 | else false) | |
577 | 577 | then throw(("Payment attached should be " + toString(cost))) | |
578 | 578 | else { | |
579 | 579 | let bpKey = keyBackpackByDuck(c._1) | |
580 | 580 | let currentPack = getBackpack(bpKey) | |
581 | 581 | let mList = split(currentPack[bpIdxMat], "_") | |
582 | 582 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)), "_") | |
583 | 583 | let claimResult = claimAll(addr, c._2, pieces) | |
584 | 584 | $Tuple2(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] ++ claimResult._1), newLevel) | |
585 | 585 | } | |
586 | 586 | } | |
587 | 587 | } | |
588 | 588 | ||
589 | 589 | ||
590 | 590 | func activatePresaleArt (addr) = { | |
591 | 591 | let c = checkClaimConditions(addr) | |
592 | 592 | let landAssetId = c._2 | |
593 | 593 | let activationKey = keyPresaleArtActivatedByAssetId(landAssetId) | |
594 | 594 | if (valueOrElse(getBoolean(activationKey), false)) | |
595 | 595 | then throw("Presale artifact is already activated") | |
596 | 596 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
597 | 597 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
598 | 598 | else { | |
599 | 599 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
600 | 600 | let claimResult = claimAll(addr, landAssetId, pieces) | |
601 | 601 | (((((claimResult._1 :+ BooleanEntry(activationKey, true)) :+ BooleanEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr), true)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId), pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) | |
602 | 602 | } | |
603 | 603 | } | |
604 | 604 | ||
605 | 605 | ||
606 | 606 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = { | |
607 | 607 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
608 | 608 | func checkMerge (acc,landAssetId) = { | |
609 | 609 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
610 | 610 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
611 | 611 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
612 | 612 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
613 | 613 | if ((owner != addr)) | |
614 | 614 | then throw((LANDPREFIX + " is not yours")) | |
615 | 615 | else { | |
616 | 616 | let d = split(asset.description, "_") | |
617 | 617 | let continent = d[recContinent] | |
618 | 618 | if (if ((acc._3 != "")) | |
619 | 619 | then (acc._3 != continent) | |
620 | 620 | else false) | |
621 | 621 | then throw("Lands should be on the same continent to merge") | |
622 | 622 | else { | |
623 | 623 | let landSize = d[recLandSize] | |
624 | 624 | let sizesIn = acc._1 | |
625 | 625 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
626 | 626 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
627 | 627 | let pieces = numPiecesBySize(landSize) | |
628 | 628 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), if (valueOrElse(getBoolean(keyPresaleArtActivatedByAssetId(landAssetId)), false)) | |
629 | 629 | then pieces | |
630 | 630 | else 0)) | |
631 | 631 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
632 | 632 | let reqLevel = match landSize { | |
633 | 633 | case _ => | |
634 | 634 | if (("S" == $match0)) | |
635 | 635 | then 3 | |
636 | 636 | else if (("M" == $match0)) | |
637 | 637 | then 4 | |
638 | 638 | else if (("L" == $match0)) | |
639 | 639 | then 5 | |
640 | 640 | else if (("XL" == $match0)) | |
641 | 641 | then 6 | |
642 | 642 | else throw("Only S, M, L, XL can merge") | |
643 | 643 | } | |
644 | 644 | if ((infraLevel != reqLevel)) | |
645 | 645 | then throw("All lands should be maxed to merge") | |
646 | 646 | else { | |
647 | 647 | let landNum = d[recLandNum] | |
648 | 648 | let terrainCounts = countTerrains(d[recTerrains]) | |
649 | 649 | let deltaTime = (lastBlock.timestamp - savedTime) | |
650 | 650 | if ((0 > deltaTime)) | |
651 | 651 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
652 | 652 | else { | |
653 | 653 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
654 | 654 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, (pieces / SSIZE), dailyProductionByPiece) | |
655 | 655 | let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, (pieces / SSIZE), -1) | |
656 | - | $Tuple6(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(keyPresaleArtActivatedByAssetId(landAssetId))) :+ DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ Burn(fromBase58String(landAssetId), 1)), props) | |
656 | + | let lands = acc._7 | |
657 | + | let idx = indexOf(lands, landAssetId) | |
658 | + | if (!(isDefined(idx))) | |
659 | + | then throw(("Your staked lands don't contain " + landAssetId)) | |
660 | + | else $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(keyPresaleArtActivatedByAssetId(landAssetId))) :+ DeleteEntry(keyPresaleArtActivatedByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ Burn(fromBase58String(landAssetId), 1)), props, removeByIndex(lands, value(idx))) | |
657 | 661 | } | |
658 | 662 | } | |
659 | 663 | } | |
660 | 664 | } | |
661 | 665 | } | |
662 | 666 | ||
663 | 667 | let bpKey = keyBackpackByDuck(duckAssetId) | |
664 | 668 | let currentPack = getBackpack(bpKey) | |
665 | 669 | let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0") | |
670 | + | let landsKey = keyStakedLandsByOwner(addr) | |
671 | + | let landsIn = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
666 | 672 | let r = { | |
667 | 673 | let $l = landAssetIds | |
668 | 674 | let $s = size($l) | |
669 | - | let $acc0 = $ | |
675 | + | let $acc0 = $Tuple7(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn) | |
670 | 676 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
671 | 677 | then $a | |
672 | 678 | else checkMerge($a, $l[$i]) | |
673 | 679 | ||
674 | 680 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
675 | 681 | then $a | |
676 | - | else throw("List size exceeds | |
682 | + | else throw("List size exceeds 5") | |
677 | 683 | ||
678 | - | $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4) | |
684 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
679 | 685 | } | |
680 | 686 | let continent = r._3 | |
681 | 687 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
682 | 688 | let terrains = genTerrains(abs(toBigInt(txId)), continentIdx) | |
683 | 689 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
684 | 690 | let newLandNum = toString(freeNum) | |
685 | 691 | let issue = Issue(keyNftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
686 | 692 | let assetId = calculateAssetId(issue) | |
687 | 693 | let newLandAssetId = toBase58String(assetId) | |
688 | 694 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
689 | - | $Tuple2((((((((((((((r._5 :+ 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) | |
695 | + | $Tuple2(((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
696 | + | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
697 | + | 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) | |
690 | 698 | } | |
691 | 699 | ||
692 | 700 | ||
693 | 701 | func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0) | |
694 | 702 | ||
695 | 703 | ||
696 | 704 | func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
697 | 705 | let cost = (InfraUpgradeCostSUsdn * 4) | |
698 | 706 | if (if (!(shouldUseMat)) | |
699 | 707 | then (paymentAmount != cost) | |
700 | 708 | else false) | |
701 | 709 | then throw(("Payment attached should be " + toString(cost))) | |
702 | 710 | else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4)) | |
703 | 711 | } | |
704 | 712 | ||
705 | 713 | ||
706 | 714 | func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
707 | 715 | let cost = (InfraUpgradeCostSUsdn * 47) | |
708 | 716 | if (if (!(shouldUseMat)) | |
709 | 717 | then (paymentAmount != cost) | |
710 | 718 | else false) | |
711 | 719 | then throw(("Payment attached should be " + toString(cost))) | |
712 | 720 | else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47)) | |
713 | 721 | } | |
714 | 722 | ||
715 | 723 | ||
716 | 724 | func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = { | |
717 | 725 | let cost = (InfraUpgradeCostSUsdn * 54) | |
718 | 726 | if (if (!(shouldUseMat)) | |
719 | 727 | then (paymentAmount != cost) | |
720 | 728 | else false) | |
721 | 729 | then throw(("Payment attached should be " + toString(cost))) | |
722 | 730 | else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54)) | |
723 | 731 | } | |
724 | 732 | ||
725 | 733 | ||
726 | 734 | func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = { | |
727 | 735 | let mergeResult = match size(landAssetIds) { | |
728 | 736 | case _ => | |
729 | 737 | if ((4 == $match0)) | |
730 | 738 | then s2m(addr, landAssetIds, txId) | |
731 | 739 | else if ((3 == $match0)) | |
732 | 740 | then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
733 | 741 | else if ((5 == $match0)) | |
734 | 742 | then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
735 | 743 | else if ((2 == $match0)) | |
736 | 744 | then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount) | |
737 | 745 | else throw("Unknown merge") | |
738 | 746 | } | |
739 | 747 | mergeResult | |
740 | 748 | } | |
741 | 749 | ||
742 | 750 | ||
743 | 751 | func saveTxId (addr,txId) = StringEntry(keyLastTxIdByUser(toString(addr)), toBase58String(txId)) | |
744 | 752 | ||
745 | 753 | ||
746 | 754 | func checkBlocked () = if (valueOrElse(getBoolean(keyBlocked()), false)) | |
747 | 755 | then throw("Contracts are under maintenance") | |
748 | 756 | else unit | |
749 | 757 | ||
750 | 758 | ||
751 | 759 | @Callable(i) | |
752 | 760 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
753 | 761 | then throw("permission denied") | |
754 | 762 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
755 | 763 | ||
756 | 764 | ||
757 | 765 | ||
758 | 766 | @Callable(i) | |
759 | 767 | func stakeLand () = { | |
760 | 768 | let blocked = checkBlocked() | |
761 | 769 | if ((blocked == blocked)) | |
762 | 770 | then if ((size(i.payments) != 1)) | |
763 | 771 | then throw("Exactly one payment required") | |
764 | 772 | else { | |
765 | 773 | let pmt = value(i.payments[0]) | |
766 | 774 | let assetId = value(pmt.assetId) | |
767 | 775 | let address = toString(i.caller) | |
768 | 776 | if ((pmt.amount != 1)) | |
769 | 777 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
770 | 778 | else { | |
771 | 779 | let asset = value(assetInfo(assetId)) | |
772 | 780 | if ((asset.issuer != this)) | |
773 | 781 | then throw("Unknown issuer of token") | |
774 | 782 | else if (!(contains(asset.name, LANDPREFIX))) | |
775 | 783 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
776 | 784 | else { | |
777 | 785 | let landNumSize = drop(asset.name, 4) | |
778 | 786 | let landNum = if (contains(landNumSize, "XXL")) | |
779 | 787 | then dropRight(landNumSize, 3) | |
780 | 788 | else if (contains(landNumSize, "XL")) | |
781 | 789 | then dropRight(landNumSize, 2) | |
782 | 790 | else dropRight(landNumSize, 1) | |
783 | 791 | if (!(isDefined(parseInt(landNum)))) | |
784 | 792 | then throw(("Cannot parse land number from " + asset.name)) | |
785 | 793 | else { | |
786 | 794 | let landAssetId = toBase58String(assetId) | |
787 | 795 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
788 | 796 | if (isDefined(getInteger(timeKey))) | |
789 | 797 | then throw((("NFT " + asset.name) + " is already staked")) | |
790 | 798 | else { | |
791 | 799 | let d = split(asset.description, "_") | |
792 | 800 | let terrainCounts = countTerrains(d[recTerrains]) | |
793 | 801 | let props = updateProportions(terrainCounts, (numPiecesBySize(d[recLandSize]) / SSIZE), 1) | |
794 | 802 | let lands = split_51C(valueOrElse(getString(keyStakedLandsByOwner(address)), ""), "_") | |
795 | 803 | if (containsElement(lands, landAssetId)) | |
796 | 804 | then throw(("Your staked lands already contain " + landAssetId)) | |
797 | 805 | 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), StringEntry(keyResProportions(), props)] | |
798 | 806 | } | |
799 | 807 | } | |
800 | 808 | } | |
801 | 809 | } | |
802 | 810 | } | |
803 | 811 | else throw("Strict value is not equal to itself.") | |
804 | 812 | } | |
805 | 813 | ||
806 | 814 | ||
807 | 815 | ||
808 | 816 | @Callable(i) | |
809 | 817 | func unstakeLand (landAssetIdIgnored) = { | |
810 | 818 | let blocked = checkBlocked() | |
811 | 819 | if ((blocked == blocked)) | |
812 | 820 | then if ((size(i.payments) != 0)) | |
813 | 821 | then throw("unstake doesn't require any payments") | |
814 | 822 | else { | |
815 | 823 | let addr = toString(i.caller) | |
816 | 824 | let c = checkClaimConditions(addr) | |
817 | 825 | let landAssetId = c._2 | |
818 | 826 | let landsKey = keyStakedLandsByOwner(addr) | |
819 | 827 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
820 | 828 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
821 | 829 | let props = updateProportions(terrainCounts, (pieces / SSIZE), -1) | |
822 | 830 | let claimResult = claimAll(addr, landAssetId, pieces) | |
823 | 831 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
824 | 832 | let idx = indexOf(lands, landAssetId) | |
825 | 833 | if (!(isDefined(idx))) | |
826 | 834 | then throw(("Your staked lands don't contain " + landAssetId)) | |
827 | 835 | 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)) | |
828 | 836 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
829 | 837 | else DeleteEntry(landsKey)] | |
830 | 838 | } | |
831 | 839 | else throw("Strict value is not equal to itself.") | |
832 | 840 | } | |
833 | 841 | ||
834 | 842 | ||
835 | 843 | ||
836 | 844 | @Callable(i) | |
837 | 845 | func stakeDuck () = { | |
838 | 846 | let blocked = checkBlocked() | |
839 | 847 | if ((blocked == blocked)) | |
840 | 848 | then if ((size(i.payments) != 1)) | |
841 | 849 | then throw("Exactly one payment required") | |
842 | 850 | else { | |
843 | 851 | let pmt = value(i.payments[0]) | |
844 | 852 | let assetId = value(pmt.assetId) | |
845 | 853 | let address = toString(i.caller) | |
846 | 854 | if ((pmt.amount != 1)) | |
847 | 855 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
848 | 856 | else { | |
849 | 857 | let asset = value(assetInfo(assetId)) | |
850 | 858 | if (if ((asset.issuer != incubatorAddr)) | |
851 | 859 | then (asset.issuer != breederAddr) | |
852 | 860 | else false) | |
853 | 861 | then throw((("Unknown issuer of " + DUCKPREFIX) + " token")) | |
854 | 862 | else if (!(contains(asset.name, DUCKPREFIX))) | |
855 | 863 | then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted")) | |
856 | 864 | else { | |
857 | 865 | let assetIdStr = toBase58String(assetId) | |
858 | 866 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
859 | 867 | if (isDefined(getInteger(timeKey))) | |
860 | 868 | then throw((("NFT " + asset.name) + " is already staked")) | |
861 | 869 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
862 | 870 | then throw(("You already staked one duck: " + asset.name)) | |
863 | 871 | else { | |
864 | 872 | let locKey = keyDuckLocation(assetIdStr) | |
865 | 873 | let location = getString(locKey) | |
866 | 874 | let bpKey = keyBackpackByDuck(assetIdStr) | |
867 | 875 | let backpack = getString(bpKey) | |
868 | 876 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
869 | 877 | then nil | |
870 | 878 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
871 | 879 | then nil | |
872 | 880 | else ([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyDuckHealth(assetIdStr), 100)))))) | |
873 | 881 | } | |
874 | 882 | } | |
875 | 883 | } | |
876 | 884 | } | |
877 | 885 | else throw("Strict value is not equal to itself.") | |
878 | 886 | } | |
879 | 887 | ||
880 | 888 | ||
881 | 889 | ||
882 | 890 | @Callable(i) | |
883 | 891 | func unstakeDuck (assetIdStr) = { | |
884 | 892 | let blocked = checkBlocked() | |
885 | 893 | if ((blocked == blocked)) | |
886 | 894 | then if ((size(i.payments) != 0)) | |
887 | 895 | then throw("unstake doesn't require any payments") | |
888 | 896 | else { | |
889 | 897 | let assetId = fromBase58String(assetIdStr) | |
890 | 898 | let address = toString(i.caller) | |
891 | 899 | let asset = value(assetInfo(assetId)) | |
892 | 900 | let timeKey = keyStakedTimeByAssetId(toBase58String(assetId)) | |
893 | 901 | if (!(isDefined(timeKey))) | |
894 | 902 | then throw((("NFT " + asset.name) + " is not staked")) | |
895 | 903 | else if (!(isDefined(keyStakedDuckByOwner(address)))) | |
896 | 904 | then throw((("The duck " + asset.name) + " is not staked")) | |
897 | 905 | else { | |
898 | 906 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned")) | |
899 | 907 | if ((owner != address)) | |
900 | 908 | then throw("Staked NFT is not yours") | |
901 | 909 | else { | |
902 | 910 | let keyHealth = keyDuckHealth(assetIdStr) | |
903 | 911 | let health = valueOrElse(getInteger(keyHealth), 100) | |
904 | 912 | if ((health != 100)) | |
905 | 913 | then throw("Please heal your duck before unstaking") | |
906 | 914 | else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address))] | |
907 | 915 | } | |
908 | 916 | } | |
909 | 917 | } | |
910 | 918 | else throw("Strict value is not equal to itself.") | |
911 | 919 | } | |
912 | 920 | ||
913 | 921 | ||
914 | 922 | ||
915 | 923 | @Callable(i) | |
916 | 924 | func claimRes (amount,landAssetIdStr) = { | |
917 | 925 | let blocked = checkBlocked() | |
918 | 926 | if ((blocked == blocked)) | |
919 | 927 | then if ((size(i.payments) != 0)) | |
920 | 928 | then throw("claimRes doesn't require any payments") | |
921 | 929 | else { | |
922 | 930 | let addr = toString(i.originCaller) | |
923 | 931 | let result = claimResInternal(addr, amount) | |
924 | 932 | $Tuple2((result._1 :+ StringEntry(result._2, makeString(result._3, ":"))), result._3[bpIdxRes]) | |
925 | 933 | } | |
926 | 934 | else throw("Strict value is not equal to itself.") | |
927 | 935 | } | |
928 | 936 | ||
929 | 937 | ||
930 | 938 | ||
931 | 939 | @Callable(i) | |
932 | 940 | func flight (message,sig) = { | |
933 | 941 | let blocked = checkBlocked() | |
934 | 942 | if ((blocked == blocked)) | |
935 | 943 | then if (!(sigVerify_8Kb(message, sig, pub))) | |
936 | 944 | then throw("signature does not match") | |
937 | 945 | else if ((size(i.payments) != 0)) | |
938 | 946 | then throw("flight doesn't require any payments") | |
939 | 947 | else { | |
940 | 948 | let parts = split(toUtf8String(message), ";") | |
941 | 949 | let hp = split(split(parts[0], "|")[0], "_") | |
942 | 950 | let curHP = parseIntValue(hp[0]) | |
943 | 951 | let newHP = parseIntValue(hp[1]) | |
944 | 952 | let newLocAndTime = split(parts[1], ":") | |
945 | 953 | let newLocation = newLocAndTime[0] | |
946 | 954 | let time = parseIntValue(newLocAndTime[1]) | |
947 | 955 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
948 | 956 | then true | |
949 | 957 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
950 | 958 | then throw("signature outdated") | |
951 | 959 | else { | |
952 | 960 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
953 | 961 | let keyHealth = keyDuckHealth(duckAssetId) | |
954 | 962 | let oldFromState = valueOrElse(getInteger(keyHealth), 100) | |
955 | 963 | if ((oldFromState != curHP)) | |
956 | 964 | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(keyHealth), 100))) + " from state does not match one from flight log=") + toString(curHP))) | |
957 | 965 | else if ((0 >= curHP)) | |
958 | 966 | then throw("You can't fly with zero health") | |
959 | 967 | else { | |
960 | 968 | let locKey = keyDuckLocation(duckAssetId) | |
961 | 969 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
962 | 970 | if ((newLocation == curLocation)) | |
963 | 971 | then throw("You can't fly to the same location") | |
964 | 972 | else $Tuple2([StringEntry(locKey, if ((newHP > 0)) | |
965 | 973 | then newLocation | |
966 | 974 | else curLocation), IntegerEntry(keyHealth, newHP)], unit) | |
967 | 975 | } | |
968 | 976 | } | |
969 | 977 | } | |
970 | 978 | else throw("Strict value is not equal to itself.") | |
971 | 979 | } | |
972 | 980 | ||
973 | 981 | ||
974 | 982 | ||
975 | 983 | @Callable(i) | |
976 | 984 | func setHealth (health,duckAssetId) = { | |
977 | 985 | let blocked = checkBlocked() | |
978 | 986 | if ((blocked == blocked)) | |
979 | 987 | then if (if ((0 > health)) | |
980 | 988 | then true | |
981 | 989 | else (health > 100)) | |
982 | 990 | then throw("HP should be within 0..100") | |
983 | 991 | else [IntegerEntry(keyDuckHealth(duckAssetId), health)] | |
984 | 992 | else throw("Strict value is not equal to itself.") | |
985 | 993 | } | |
986 | 994 | ||
987 | 995 | ||
988 | 996 | ||
989 | 997 | @Callable(i) | |
990 | 998 | func heal (matType,amount) = { | |
991 | 999 | let blocked = checkBlocked() | |
992 | 1000 | if ((blocked == blocked)) | |
993 | 1001 | then if (if ((0 > matType)) | |
994 | 1002 | then true | |
995 | 1003 | else (matType >= NUMRES)) | |
996 | 1004 | then throw(("Unknown material: " + toString(matType))) | |
997 | 1005 | else if ((0 >= amount)) | |
998 | 1006 | then throw(("Amount should be positive! " + toString(amount))) | |
999 | 1007 | else { | |
1000 | 1008 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
1001 | 1009 | let keyHealth = keyDuckHealth(duckAssetId) | |
1002 | 1010 | let oldHealth = valueOrElse(getInteger(keyHealth), 100) | |
1003 | 1011 | if ((oldHealth >= 100)) | |
1004 | 1012 | then throw("HP should be < 100 to heal") | |
1005 | 1013 | else { | |
1006 | 1014 | let bpKey = keyBackpackByDuck(duckAssetId) | |
1007 | 1015 | let currentPack = getBackpack(bpKey) | |
1008 | 1016 | let mList = split(currentPack[bpIdxMat], "_") | |
1009 | 1017 | let currentAmount = parseIntValue(mList[matType]) | |
1010 | 1018 | let deltaHealth = min([(amount / HEALCOST), (100 - oldHealth)]) | |
1011 | 1019 | let spendAmount = (deltaHealth * HEALCOST) | |
1012 | 1020 | if ((spendAmount > currentAmount)) | |
1013 | 1021 | then throw(((((("You need " + toString(spendAmount)) + " of ") + matTypes[matType]) + " to heal, but you backpack contains ") + toString(currentAmount))) | |
1014 | 1022 | else { | |
1015 | 1023 | let newMat = subOneInList(mList, matType, spendAmount) | |
1016 | 1024 | [IntegerEntry(keyHealth, (oldHealth + deltaHealth)), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))] | |
1017 | 1025 | } | |
1018 | 1026 | } | |
1019 | 1027 | } | |
1020 | 1028 | else throw("Strict value is not equal to itself.") | |
1021 | 1029 | } | |
1022 | 1030 | ||
1023 | 1031 | ||
1024 | 1032 | ||
1025 | 1033 | @Callable(i) | |
1026 | 1034 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
1027 | 1035 | then throw("permission denied") | |
1028 | 1036 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
1029 | 1037 | ||
1030 | 1038 | ||
1031 | 1039 | ||
1032 | 1040 | @Callable(i) | |
1033 | 1041 | func expeditionBuy (message,sig) = { | |
1034 | 1042 | let blocked = checkBlocked() | |
1035 | 1043 | if ((blocked == blocked)) | |
1036 | 1044 | then if ((size(i.payments) != 1)) | |
1037 | 1045 | then throw("Exactly one payment required") | |
1038 | 1046 | else { | |
1039 | 1047 | let pmt = value(i.payments[0]) | |
1040 | 1048 | if ((pmt.assetId != usdnAssetId)) | |
1041 | 1049 | then throw("Allowed USDN payment only!") | |
1042 | 1050 | else if ((pmt.amount != EXPUSDN)) | |
1043 | 1051 | then throw(("Payment attached should be " + toString(EXPUSDN))) | |
1044 | 1052 | else { | |
1045 | 1053 | let result = expeditionCommon(false, i.caller, i.transactionId, message, sig) | |
1046 | 1054 | if ((result._2 == "")) | |
1047 | 1055 | then result | |
1048 | 1056 | else $Tuple2((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdnAssetId)), result._2) | |
1049 | 1057 | } | |
1050 | 1058 | } | |
1051 | 1059 | else throw("Strict value is not equal to itself.") | |
1052 | 1060 | } | |
1053 | 1061 | ||
1054 | 1062 | ||
1055 | 1063 | ||
1056 | 1064 | @Callable(i) | |
1057 | 1065 | func expedition (message,sig) = { | |
1058 | 1066 | let blocked = checkBlocked() | |
1059 | 1067 | if ((blocked == blocked)) | |
1060 | 1068 | then if ((size(i.payments) != 0)) | |
1061 | 1069 | then throw("expedition doesn't require any payments") | |
1062 | 1070 | else expeditionCommon(true, i.caller, i.transactionId, message, sig) | |
1063 | 1071 | else throw("Strict value is not equal to itself.") | |
1064 | 1072 | } | |
1065 | 1073 | ||
1066 | 1074 | ||
1067 | 1075 | ||
1068 | 1076 | @Callable(i) | |
1069 | 1077 | func upgradeInfra (landAssetIdIgnored) = { | |
1070 | 1078 | let blocked = checkBlocked() | |
1071 | 1079 | if ((blocked == blocked)) | |
1072 | 1080 | then if ((size(i.payments) != 0)) | |
1073 | 1081 | then throw("Infrastructure upgrade doesn't require any payments") | |
1074 | 1082 | else upInfraCommon(true, i.caller, 0) | |
1075 | 1083 | else throw("Strict value is not equal to itself.") | |
1076 | 1084 | } | |
1077 | 1085 | ||
1078 | 1086 | ||
1079 | 1087 | ||
1080 | 1088 | @Callable(i) | |
1081 | 1089 | func upgradeInfraUsdn (landAssetIdIgnored) = { | |
1082 | 1090 | let blocked = checkBlocked() | |
1083 | 1091 | if ((blocked == blocked)) | |
1084 | 1092 | then if ((size(i.payments) != 1)) | |
1085 | 1093 | then throw("Exactly one payment required") | |
1086 | 1094 | else { | |
1087 | 1095 | let pmt = value(i.payments[0]) | |
1088 | 1096 | if ((pmt.assetId != usdnAssetId)) | |
1089 | 1097 | then throw("Allowed USDN payment only!") | |
1090 | 1098 | else { | |
1091 | 1099 | let result = upInfraCommon(false, i.caller, pmt.amount) | |
1092 | 1100 | $Tuple2((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdnAssetId)), result._2) | |
1093 | 1101 | } | |
1094 | 1102 | } | |
1095 | 1103 | else throw("Strict value is not equal to itself.") | |
1096 | 1104 | } | |
1097 | 1105 | ||
1098 | 1106 | ||
1099 | 1107 | ||
1100 | 1108 | @Callable(i) | |
1101 | 1109 | func activateArtifact (artName) = { | |
1102 | 1110 | let blocked = checkBlocked() | |
1103 | 1111 | if ((blocked == blocked)) | |
1104 | 1112 | then if ((size(i.payments) != 0)) | |
1105 | 1113 | then throw("Artifact activation doesn't require any payments") | |
1106 | 1114 | else { | |
1107 | 1115 | let result = match artName { | |
1108 | 1116 | case _ => | |
1109 | 1117 | if (("PRESALE" == $match0)) | |
1110 | 1118 | then activatePresaleArt(toString(i.caller)) | |
1111 | 1119 | else throw("Unknown artifact") | |
1112 | 1120 | } | |
1113 | 1121 | result | |
1114 | 1122 | } | |
1115 | 1123 | else throw("Strict value is not equal to itself.") | |
1116 | 1124 | } | |
1117 | 1125 | ||
1118 | 1126 | ||
1119 | 1127 | ||
1120 | 1128 | @Callable(i) | |
1121 | 1129 | func mergeLands (landAssetIds) = { | |
1122 | 1130 | let blocked = checkBlocked() | |
1123 | 1131 | if ((blocked == blocked)) | |
1124 | 1132 | then if ((size(i.payments) != 0)) | |
1125 | 1133 | then throw("Lands merging doesn't require any payments") | |
1126 | 1134 | else mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId) | |
1127 | 1135 | else throw("Strict value is not equal to itself.") | |
1128 | 1136 | } | |
1129 | 1137 | ||
1130 | 1138 | ||
1131 | 1139 | ||
1132 | 1140 | @Callable(i) | |
1133 | 1141 | func mergeLandsUsdn (landAssetIds) = { | |
1134 | 1142 | let blocked = checkBlocked() | |
1135 | 1143 | if ((blocked == blocked)) | |
1136 | 1144 | then if ((size(i.payments) != 1)) | |
1137 | 1145 | then throw("Exactly one payment required") | |
1138 | 1146 | else { | |
1139 | 1147 | let pmt = value(i.payments[0]) | |
1140 | 1148 | if ((pmt.assetId != usdnAssetId)) | |
1141 | 1149 | then throw("Allowed USDN payment only!") | |
1142 | 1150 | else { | |
1143 | 1151 | let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId) | |
1144 | 1152 | $Tuple2((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdnAssetId)), result._2) | |
1145 | 1153 | } | |
1146 | 1154 | } | |
1147 | 1155 | else throw("Strict value is not equal to itself.") | |
1148 | 1156 | } | |
1149 | 1157 | ||
1150 | 1158 | ||
1151 | 1159 | ||
1152 | 1160 | @Callable(i) | |
1153 | 1161 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
1154 | 1162 | ||
1155 | 1163 | ||
1156 | 1164 | ||
1157 | 1165 | @Callable(i) | |
1158 | 1166 | func splitByLocalWeightsREADONLY (amount,terrains) = { | |
1159 | 1167 | let terrainCounts = countTerrains(terrains) | |
1160 | 1168 | $Tuple2(nil, distributeByWeights(amount, terrainCounts)) | |
1161 | 1169 | } | |
1162 | 1170 | ||
1163 | 1171 |
github/deemru/w8io/169f3d6 134.26 ms ◑