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