tx · 5hYXzNHpujRezK3uX59EtuPTNcfmz1g94C1gPvpVR763 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.03100000 Waves 2023.01.17 14:37 [2408879] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "5hYXzNHpujRezK3uX59EtuPTNcfmz1g94C1gPvpVR763", "fee": 3100000, "feeAssetId": null, "timestamp": 1673955453662, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "2FLHzysA4hsoWuUQtP5nqpaiEgyCQ2fzJzu4Dytp8VqorWmjX2SMkNNpCiah4PnTxrHM7WemKHkEbwJvbZdFMYYc" ], "script": "base64:BgJTCAISABIDCgEIEgASAwoBCBIECgIBCBIECgICAhIECgIBCBIECgIBARIECgIICBIECgICAhIECgICAhIDCgEIEgMKAQgSAwoBCBIDCgEYEgMKARhcAAVjaGFpbgkAsAkBCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2RuQXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgIBVwUHJG1hdGNoMAEgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEDCQAAAgIBVAUHJG1hdGNoMAEg93bq9/eDymXbbhPuAjvPWCmVqcHRjfJL2mzYHWKAyN4JAAIBAg1Vbmtub3duIGNoYWluAA1pbmN1YmF0b3JBZGRyBAckbWF0Y2gwBQVjaGFpbgMJAAACAgFXBQckbWF0Y2gwCQERQGV4dHJOYXRpdmUoMTA2MikBAiMzUEVrdFZ1eDJSaGNoU042M0RzRG80YjRtejRRcXpLU2VEdgMJAAACAgFUBQckbWF0Y2gwBQR0aGlzCQACAQINVW5rbm93biBjaGFpbgALYnJlZWRlckFkZHIEByRtYXRjaDAFBWNoYWluAwkAAAICAVcFByRtYXRjaDA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aXJlIGFueSBwYXltZW50cwQGcmVzdWx0BAckbWF0Y2gwBQdhcnROYW1lAwkAAAICB1BSRVNBTEUFByRtYXRjaDAJARJhY3RpdmF0ZVByZXNhbGVBcnQBCQClCAEIBQFpBmNhbGxlcgkAAgECEFVua25vd24gYXJ0aWZhY3QFBnJlc3VsdAFpAQptZXJnZUxhbmRzAQxsYW5kQXNzZXRJZHMDCQECIT0CCQCQAwEIBQFpCHBheW1lbnRzAAAJAAIBAipMYW5kcyBtZXJnaW5nIGRvZXNuJ3QgcmVxdWlyZSBhbnkgcGF5bWVudHMJAQttZXJnZUNvbW1vbgUGCQClCAEIBQFpBmNhbGxlcgAABQxsYW5kQXNzZXRJZHMIBQFpDXRyYW5zYWN0aW9uSWQBaQEObWVyZ2VMYW5kc1VzZG4BDGxhbmRBc3NldElkcwMJAQIhPQIJAJADAQgFAWkIcGF5bWVudHMAAQkAAgECHEV4YWN0bHkgb25lIHBheW1lbnQgcmVxdWlyZWQEA3BtdAkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwAAAwkBAiE9AggFA3BtdAdhc3NldElkBQt1c2RuQXNzZXRJZAkAAgECGkFsbG93ZWQgVVNETiBwYXltZW50IG9ubHkhBAZyZXN1bHQJAQttZXJnZUNvbW1vbgUHCQClCAEIBQFpBmNhbGxlcggFA3BtdAZhbW91bnQFDGxhbmRBc3NldElkcwgFAWkNdHJhbnNhY3Rpb25JZAkAlAoCCQDNCAIIBQZyZXN1bHQCXzEJAQ5TY3JpcHRUcmFuc2ZlcgMFC2Vjb25vbXlBZGRyCAUDcG10BmFtb3VudAULdXNkbkFzc2V0SWQIBQZyZXN1bHQCXzIAitoKeg==", "height": 2408879, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CSj2Lang9fny8wCZJy3ynqzQ5f1sJkfxXAFwqzFjQX6v Next: 9Sd9fKnJy22Q6qdjKALnRW5DMrLQZSXSp1rnJeVj6gbc Diff:
Old | New | Differences | |
---|---|---|---|
51 | 51 | ||
52 | 52 | let l = 6 | |
53 | 53 | ||
54 | - | let m = | |
54 | + | let m = 25 | |
55 | 55 | ||
56 | - | let n = | |
56 | + | let n = 100 | |
57 | 57 | ||
58 | - | let o = | |
58 | + | let o = 225 | |
59 | 59 | ||
60 | - | let p = | |
60 | + | let p = 400 | |
61 | 61 | ||
62 | - | let q = { | |
62 | + | let q = 625 | |
63 | + | ||
64 | + | let r = 3456000 | |
65 | + | ||
66 | + | let s = 86400000 | |
67 | + | ||
68 | + | let t = 300000 | |
69 | + | ||
70 | + | let u = 158549 | |
71 | + | ||
72 | + | let v = { | |
63 | 73 | let c = a | |
64 | 74 | if (("W" == c)) | |
65 | 75 | then 6307198406 | |
68 | 78 | else throw("Unknown chain") | |
69 | 79 | } | |
70 | 80 | ||
71 | - | let | |
81 | + | let w = { | |
72 | 82 | let c = a | |
73 | 83 | if (("W" == c)) | |
74 | 84 | then 40000000 | |
77 | 87 | else throw("Unknown chain") | |
78 | 88 | } | |
79 | 89 | ||
80 | - | let | |
90 | + | let x = { | |
81 | 91 | let c = a | |
82 | 92 | if (("W" == c)) | |
83 | 93 | then 157679960139 | |
86 | 96 | else throw("Unknown chain") | |
87 | 97 | } | |
88 | 98 | ||
89 | - | let | |
99 | + | let y = { | |
90 | 100 | let c = a | |
91 | 101 | if (("W" == c)) | |
92 | 102 | then 1000000000 | |
95 | 105 | else throw("Unknown chain") | |
96 | 106 | } | |
97 | 107 | ||
98 | - | let | |
108 | + | let z = 1000000 | |
99 | 109 | ||
100 | - | let | |
110 | + | let A = toBigInt(5) | |
101 | 111 | ||
102 | - | let | |
112 | + | let B = toBigInt(20) | |
103 | 113 | ||
104 | - | let | |
114 | + | let C = toBigInt((20 * 20)) | |
105 | 115 | ||
106 | - | let | |
116 | + | let D = toBigInt(((20 * 20) * 20)) | |
107 | 117 | ||
108 | - | let | |
118 | + | let E = toBigInt((((20 * 20) * 20) * 20)) | |
109 | 119 | ||
110 | - | let | |
120 | + | let F = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
111 | 121 | ||
112 | - | let | |
122 | + | let G = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
113 | 123 | ||
114 | - | let | |
124 | + | let H = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
115 | 125 | ||
116 | - | let | |
126 | + | let I = "PRESALE" | |
117 | 127 | ||
118 | - | func E () = "nextLandNum" | |
128 | + | let J = 500 | |
129 | + | ||
130 | + | func K () = "nextLandNum" | |
119 | 131 | ||
120 | 132 | ||
121 | - | func | |
133 | + | func L (M) = ("landToAsset_" + M) | |
122 | 134 | ||
123 | 135 | ||
124 | - | func | |
136 | + | func N (M,O) = ((i + M) + O) | |
125 | 137 | ||
126 | 138 | ||
127 | - | func | |
139 | + | func P (Q) = ("nftOwner_" + Q) | |
128 | 140 | ||
129 | 141 | ||
130 | - | func | |
142 | + | func R (Q) = ("duckOwner_" + Q) | |
131 | 143 | ||
132 | 144 | ||
133 | - | func | |
145 | + | func S (Q) = ("stakedTime_" + Q) | |
134 | 146 | ||
135 | 147 | ||
136 | - | func | |
148 | + | func T (Q) = ("infraLevel_" + Q) | |
137 | 149 | ||
138 | 150 | ||
139 | - | func | |
151 | + | func U (Q,V) = ((("infraLevelByAssetIdAndOwner_" + Q) + "_") + V) | |
140 | 152 | ||
141 | 153 | ||
142 | - | func | |
154 | + | func W (Q) = ("presaleArtActivated_" + Q) | |
143 | 155 | ||
144 | 156 | ||
145 | - | func | |
157 | + | func X (Q,V) = ((("presaleArtActivatedByAssetIdAndOwner_" + Q) + "_") + V) | |
146 | 158 | ||
147 | 159 | ||
148 | - | func | |
160 | + | func Y (Z,Q) = makeString(["landArtStatus", Z, Q], "_") | |
149 | 161 | ||
150 | 162 | ||
151 | - | func | |
163 | + | func aa (Z,Q,V) = makeString(["landArtStatusByTypeAssetIdAndOwner", Z, Q, V], "_") | |
152 | 164 | ||
153 | 165 | ||
154 | - | func | |
166 | + | func ab (V) = ("stakedDuckByOwner_" + V) | |
155 | 167 | ||
156 | 168 | ||
157 | - | func | |
169 | + | func ac (ad,Q,V) = ((((("stakedTimeByTypeAssetIdAndOwner_" + ad) + "_") + Q) + "_") + V) | |
158 | 170 | ||
159 | 171 | ||
160 | - | func | |
172 | + | func ae (M) = ("landOwner_" + M) | |
161 | 173 | ||
162 | 174 | ||
163 | - | func | |
175 | + | func af (ag) = ("backPack_" + ag) | |
164 | 176 | ||
165 | 177 | ||
166 | - | func | |
178 | + | func ah (ag) = ("duckLocation_" + ag) | |
167 | 179 | ||
168 | 180 | ||
169 | - | func | |
181 | + | func ai (ag) = ("duckHealth_" + ag) | |
170 | 182 | ||
171 | 183 | ||
172 | - | func | |
184 | + | func aj () = "resTypesProportions" | |
173 | 185 | ||
174 | 186 | ||
175 | - | let | |
187 | + | let ak = 0 | |
176 | 188 | ||
177 | - | let | |
189 | + | let al = 1 | |
178 | 190 | ||
179 | - | let | |
191 | + | let am = 2 | |
180 | 192 | ||
181 | - | let | |
193 | + | let an = 3 | |
182 | 194 | ||
183 | - | let | |
195 | + | let ao = 0 | |
184 | 196 | ||
185 | - | let | |
197 | + | let ap = 1 | |
186 | 198 | ||
187 | - | let | |
199 | + | let aq = 2 | |
188 | 200 | ||
189 | - | let | |
201 | + | let ar = 0 | |
190 | 202 | ||
191 | - | let | |
203 | + | let as = 1 | |
192 | 204 | ||
193 | - | let | |
205 | + | let at = 2 | |
194 | 206 | ||
195 | - | let | |
207 | + | let au = 3 | |
196 | 208 | ||
197 | - | func | |
198 | - | let c = | |
209 | + | func av (aw) = { | |
210 | + | let c = aw | |
199 | 211 | if ($isInstanceOf(c, "String")) | |
200 | 212 | then { | |
201 | - | let | |
202 | - | | |
213 | + | let ax = c | |
214 | + | ax | |
203 | 215 | } | |
204 | 216 | else throw("fail to cast into String") | |
205 | 217 | } | |
206 | 218 | ||
207 | 219 | ||
208 | - | func | |
209 | - | let | |
210 | - | if ((size( | |
220 | + | func ay (az) = { | |
221 | + | let aA = split(value(getString(aj())), "_") | |
222 | + | if ((size(aA) != l)) | |
211 | 223 | then throw("Wrong proportions data") | |
212 | 224 | else { | |
213 | - | let | |
214 | - | let | |
215 | - | if ((0 >= | |
225 | + | let aB = [parseIntValue(aA[0]), parseIntValue(aA[1]), parseIntValue(aA[2]), parseIntValue(aA[3]), parseIntValue(aA[4]), parseIntValue(aA[5])] | |
226 | + | let aC = (((((aB[0] + aB[1]) + aB[2]) + aB[3]) + aB[4]) + aB[5]) | |
227 | + | if ((0 >= aC)) | |
216 | 228 | then throw("No lands staked") | |
217 | 229 | else { | |
218 | - | let | |
219 | - | func | |
230 | + | let aD = fraction(az, z, aC) | |
231 | + | func aE (aF,aG) = (aF :+ fraction(aG, aD, z)) | |
220 | 232 | ||
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | func | |
225 | - | then | |
226 | - | else | |
233 | + | let aH = aB | |
234 | + | let aI = size(aH) | |
235 | + | let aJ = nil | |
236 | + | func aK (aL,aM) = if ((aM >= aI)) | |
237 | + | then aL | |
238 | + | else aE(aL, aH[aM]) | |
227 | 239 | ||
228 | - | func | |
229 | - | then | |
240 | + | func aN (aL,aM) = if ((aM >= aI)) | |
241 | + | then aL | |
230 | 242 | else throw("List size exceeds 6") | |
231 | 243 | ||
232 | - | | |
244 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
233 | 245 | } | |
234 | 246 | } | |
235 | 247 | } | |
236 | 248 | ||
237 | 249 | ||
238 | - | func | |
239 | - | let | |
240 | - | func | |
241 | - | let | |
242 | - | if ((0 > | |
243 | - | then throw(((((("Not enough material idx=" + toString( | |
244 | - | else ( | |
250 | + | func aO (aP,aQ,aR) = { | |
251 | + | let aS = ay(aR) | |
252 | + | func aT (aF,aU) = { | |
253 | + | let aV = (parseIntValue(aQ[aU]) - aS[aU]) | |
254 | + | if ((0 > aV)) | |
255 | + | then throw(((((("Not enough material idx=" + toString(aU)) + ", you have ") + aQ[aU]) + ", but need ") + toString(aS[aU]))) | |
256 | + | else (aF :+ toString(aV)) | |
245 | 257 | } | |
246 | 258 | ||
247 | - | if ( | |
259 | + | if (aP) | |
248 | 260 | then { | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | func | |
253 | - | then | |
254 | - | else | |
261 | + | let aH = [0, 1, 2, 3, 4, 5] | |
262 | + | let aI = size(aH) | |
263 | + | let aJ = nil | |
264 | + | func aK (aL,aM) = if ((aM >= aI)) | |
265 | + | then aL | |
266 | + | else aT(aL, aH[aM]) | |
255 | 267 | ||
256 | - | func | |
257 | - | then | |
268 | + | func aN (aL,aM) = if ((aM >= aI)) | |
269 | + | then aL | |
258 | 270 | else throw("List size exceeds 6") | |
259 | 271 | ||
260 | - | | |
272 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
261 | 273 | } | |
262 | - | else | |
274 | + | else aQ | |
263 | 275 | } | |
264 | 276 | ||
265 | 277 | ||
266 | - | func | |
278 | + | func aW (aX,aY,aZ,ba) = if ((size(aX) != l)) | |
267 | 279 | then throw("Wrong proportions data") | |
268 | 280 | else { | |
269 | - | func | |
270 | - | let | |
271 | - | if ((0 > | |
272 | - | then throw(((((((("Panic! Pieces of type=" + toString( | |
273 | - | else ( | |
281 | + | func bb (aF,bc) = { | |
282 | + | let aV = (parseIntValue(aX[bc]) + ((ba * aY[bc]) * aZ)) | |
283 | + | if ((0 > aV)) | |
284 | + | then throw(((((((("Panic! Pieces of type=" + toString(bc)) + ", sign=") + toString(ba)) + ", terrainCounts[i]=") + toString(aY[bc])) + ", landSizeIndex=") + toString(aZ))) | |
285 | + | else (aF :+ toString(aV)) | |
274 | 286 | } | |
275 | 287 | ||
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | func | |
281 | - | then | |
282 | - | else | |
288 | + | let aB = { | |
289 | + | let aH = [0, 1, 2, 3, 4, 5] | |
290 | + | let aI = size(aH) | |
291 | + | let aJ = nil | |
292 | + | func aK (aL,aM) = if ((aM >= aI)) | |
293 | + | then aL | |
294 | + | else bb(aL, aH[aM]) | |
283 | 295 | ||
284 | - | func | |
285 | - | then | |
296 | + | func aN (aL,aM) = if ((aM >= aI)) | |
297 | + | then aL | |
286 | 298 | else throw("List size exceeds 6") | |
287 | 299 | ||
288 | - | | |
300 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
289 | 301 | } | |
290 | - | makeString( | |
302 | + | makeString(aB, "_") | |
291 | 303 | } | |
292 | 304 | ||
293 | 305 | ||
294 | - | func | |
295 | - | let | |
296 | - | | |
306 | + | func bd (aY,aZ,ba) = { | |
307 | + | let aX = split(valueOrElse(getString(aj()), "0_0_0_0_0_0"), "_") | |
308 | + | aW(aX, aY, aZ, ba) | |
297 | 309 | } | |
298 | 310 | ||
299 | 311 | ||
300 | - | func | |
312 | + | func be (bf) = [(size(split(bf, "A")) - 1), (size(split(bf, "B")) - 1), (size(split(bf, "C")) - 1), (size(split(bf, "D")) - 1), (size(split(bf, "E")) - 1), (size(split(bf, "F")) - 1)] | |
301 | 313 | ||
302 | 314 | ||
303 | - | func | |
304 | - | let c = | |
315 | + | func bg (O) = { | |
316 | + | let c = O | |
305 | 317 | if (("S" == c)) | |
306 | - | then | |
318 | + | then m | |
307 | 319 | else if (("M" == c)) | |
308 | - | then | |
320 | + | then n | |
309 | 321 | else if (("L" == c)) | |
310 | - | then | |
322 | + | then o | |
311 | 323 | else if (("XL" == c)) | |
312 | - | then | |
324 | + | then p | |
313 | 325 | else if (("XXL" == c)) | |
314 | - | then | |
326 | + | then q | |
315 | 327 | else throw("Unknown land size") | |
316 | 328 | } | |
317 | 329 | ||
318 | 330 | ||
319 | - | func | |
320 | - | func | |
321 | - | then toString((parseIntValue(bc | |
322 | - | else bc | |
331 | + | func bh (bi,aU,bj) = { | |
332 | + | func bk (aF,bc) = (aF :+ (if ((bc == aU)) | |
333 | + | then toString((parseIntValue(bi[bc]) - bj)) | |
334 | + | else bi[bc])) | |
323 | 335 | ||
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | func | |
329 | - | then | |
330 | - | else | |
336 | + | let aB = { | |
337 | + | let aH = [0, 1, 2, 3, 4, 5] | |
338 | + | let aI = size(aH) | |
339 | + | let aJ = nil | |
340 | + | func aK (aL,aM) = if ((aM >= aI)) | |
341 | + | then aL | |
342 | + | else bk(aL, aH[aM]) | |
331 | 343 | ||
332 | - | func | |
333 | - | then | |
344 | + | func aN (aL,aM) = if ((aM >= aI)) | |
345 | + | then aL | |
334 | 346 | else throw("List size exceeds 6") | |
335 | 347 | ||
336 | - | | |
348 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
337 | 349 | } | |
338 | - | makeString( | |
350 | + | makeString(aB, "_") | |
339 | 351 | } | |
340 | 352 | ||
341 | 353 | ||
342 | - | func | |
343 | - | func | |
344 | - | let | |
345 | - | ( | |
354 | + | func bl (bm,aY,bn,aZ,bo) = { | |
355 | + | func bp (aF,bc) = { | |
356 | + | let bq = ((fraction(bn, bo, s) * aY[bc]) * aZ) | |
357 | + | (aF :+ toString((parseIntValue(bm[bc]) + bq))) | |
346 | 358 | } | |
347 | 359 | ||
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | func | |
353 | - | then | |
354 | - | else | |
360 | + | let aB = { | |
361 | + | let aH = [0, 1, 2, 3, 4, 5] | |
362 | + | let aI = size(aH) | |
363 | + | let aJ = nil | |
364 | + | func aK (aL,aM) = if ((aM >= aI)) | |
365 | + | then aL | |
366 | + | else bp(aL, aH[aM]) | |
355 | 367 | ||
356 | - | func | |
357 | - | then | |
368 | + | func aN (aL,aM) = if ((aM >= aI)) | |
369 | + | then aL | |
358 | 370 | else throw("List size exceeds 6") | |
359 | 371 | ||
360 | - | | |
372 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
361 | 373 | } | |
362 | - | makeString( | |
374 | + | makeString(aB, "_") | |
363 | 375 | } | |
364 | 376 | ||
365 | 377 | ||
366 | - | func | |
367 | - | then | |
368 | - | else -( | |
378 | + | func br (bs) = if ((bs >= toBigInt(0))) | |
379 | + | then bs | |
380 | + | else -(bs) | |
369 | 381 | ||
370 | 382 | ||
371 | - | let | |
383 | + | let bt = [[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]] | |
372 | 384 | ||
373 | - | func | |
374 | - | let | |
375 | - | let | |
385 | + | func bu (bv,bw) = { | |
386 | + | let bx = toInt((bv % B)) | |
387 | + | let by = if ((bw[0] > bx)) | |
376 | 388 | then "A" | |
377 | - | else if (( | |
389 | + | else if ((bw[1] > bx)) | |
378 | 390 | then "B" | |
379 | - | else if (( | |
391 | + | else if ((bw[2] > bx)) | |
380 | 392 | then "C" | |
381 | - | else if (( | |
393 | + | else if ((bw[3] > bx)) | |
382 | 394 | then "D" | |
383 | - | else if (( | |
395 | + | else if ((bw[4] > bx)) | |
384 | 396 | then "E" | |
385 | 397 | else "F" | |
386 | - | | |
398 | + | by | |
387 | 399 | } | |
388 | 400 | ||
389 | 401 | ||
390 | - | func | |
391 | - | let | |
392 | - | func | |
402 | + | func bz (bA,bB) = { | |
403 | + | let bC = bt[bB] | |
404 | + | func bD (aF,aG) = $Tuple2((((((aF._1 + bu(aF._2, bC)) + bu((aF._2 / B), bC)) + bu((aF._2 / C), bC)) + bu((aF._2 / D), bC)) + bu((aF._2 / E), bC)), (aF._2 / F)) | |
393 | 405 | ||
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | func | |
399 | - | then | |
400 | - | else | |
406 | + | let bE = { | |
407 | + | let aH = [1, 2, 3, 4, 5] | |
408 | + | let aI = size(aH) | |
409 | + | let aJ = $Tuple2("", (bA / A)) | |
410 | + | func aK (aL,aM) = if ((aM >= aI)) | |
411 | + | then aL | |
412 | + | else bD(aL, aH[aM]) | |
401 | 413 | ||
402 | - | func | |
403 | - | then | |
414 | + | func aN (aL,aM) = if ((aM >= aI)) | |
415 | + | then aL | |
404 | 416 | else throw("List size exceeds 5") | |
405 | 417 | ||
406 | - | | |
418 | + | aN(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5) | |
407 | 419 | } | |
408 | - | | |
420 | + | bE._1 | |
409 | 421 | } | |
410 | 422 | ||
411 | 423 | ||
412 | - | func | |
413 | - | let | |
414 | - | [toString(valueOrElse(parseInt( | |
415 | - | then | |
416 | - | else "0_0_0_0_0_0", if ((size(split( | |
417 | - | then | |
418 | - | else "0_0_0_0_0_0", | |
424 | + | func bF (bG) = { | |
425 | + | let bH = split(valueOrElse(getString(bG), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
426 | + | [toString(valueOrElse(parseInt(bH[ar]), 0)), if ((size(split(bH[as], "_")) == l)) | |
427 | + | then bH[as] | |
428 | + | else "0_0_0_0_0_0", if ((size(split(bH[at], "_")) == l)) | |
429 | + | then bH[at] | |
430 | + | else "0_0_0_0_0_0", bH[au]] | |
419 | 431 | } | |
420 | 432 | ||
421 | 433 | ||
422 | - | func | |
434 | + | func bI (aP,bJ,bK,bL,bM) = if (!(sigVerify_8Kb(bL, bM, g))) | |
423 | 435 | then throw("signature does not match") | |
424 | 436 | else { | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | if (( | |
437 | + | let bN = split(toUtf8String(bL), ";") | |
438 | + | let bO = split(split(bN[0], "|")[0], "_") | |
439 | + | let bP = parseIntValue(bO[0]) | |
440 | + | let bQ = parseIntValue(bO[1]) | |
441 | + | let bR = split(bN[1], ":") | |
442 | + | let bS = split(bR[0], "_") | |
443 | + | if ((bS[1] != "E")) | |
432 | 444 | then throw("expedition target location type should be E") | |
433 | 445 | else { | |
434 | - | let | |
435 | - | if (if (( | |
446 | + | let bT = parseIntValue(bR[1]) | |
447 | + | if (if ((bT > (lastBlock.timestamp + t))) | |
436 | 448 | then true | |
437 | - | else ((lastBlock.timestamp - | |
449 | + | else ((lastBlock.timestamp - t) > bT)) | |
438 | 450 | then throw("signature outdated") | |
439 | 451 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | if (( | |
445 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
446 | - | else if ((0 >= | |
452 | + | let bU = toString(bJ) | |
453 | + | let ag = valueOrErrorMessage(getString(ab(bU)), "You don't have a duck staked") | |
454 | + | let bV = ai(ag) | |
455 | + | let bW = valueOrElse(getInteger(bV), 100) | |
456 | + | if ((bW != bP)) | |
457 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bV), 100))) + " from state does not match one from flight log=") + toString(bP))) | |
458 | + | else if ((0 >= bP)) | |
447 | 459 | then throw("You can't fly with zero health") | |
448 | - | else if ((0 >= | |
449 | - | then $Tuple2(((if (!( | |
450 | - | then [ScriptTransfer( | |
451 | - | else nil) :+ IntegerEntry( | |
460 | + | else if ((0 >= bQ)) | |
461 | + | then $Tuple2(((if (!(aP)) | |
462 | + | then [ScriptTransfer(bJ, y, b)] | |
463 | + | else nil) :+ IntegerEntry(bV, 0)), "") | |
452 | 464 | else { | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | $Tuple2([IntegerEntry( | |
465 | + | let bG = af(ag) | |
466 | + | let bX = bF(bG) | |
467 | + | let bY = split(bX[at], "_") | |
468 | + | let bZ = makeString(aO(aP, bY, x), "_") | |
469 | + | let ca = br(toBigInt(bK)) | |
470 | + | let cb = valueOrElse(getInteger(K()), (J + 1)) | |
471 | + | let M = toString(cb) | |
472 | + | let bB = toInt((ca % A)) | |
473 | + | let bf = bz(ca, bB) | |
474 | + | let cc = H[bB] | |
475 | + | let cd = Issue(N(M, "S"), makeString([M, "S", bf, cc], "_"), 1, 0, false) | |
476 | + | let Q = calculateAssetId(cd) | |
477 | + | let ce = toBase58String(Q) | |
478 | + | $Tuple2([IntegerEntry(K(), (cb + 1)), cd, StringEntry(L(M), ce), StringEntry(P(ce), bU), StringEntry(ae(M), bU), IntegerEntry(T(ce), 0), IntegerEntry(U(ce, bU), 0), ScriptTransfer(bJ, 1, Q), StringEntry(ah(ag), makeString([cc, "L", ce], "_")), IntegerEntry(bV, bQ), StringEntry(bG, makeString([bX[ar], bX[as], bZ, bX[au]], ":"))], ce) | |
467 | 479 | } | |
468 | 480 | } | |
469 | 481 | } | |
470 | 482 | } | |
471 | 483 | ||
472 | 484 | ||
473 | - | func | |
474 | - | let | |
475 | - | let | |
476 | - | then | |
485 | + | func cf (cg,ch) = { | |
486 | + | let ci = valueOrElse(getInteger(T(cg)), 0) | |
487 | + | let cj = valueOrElse(getInteger(Y(I, cg)), if (valueOrElse(getBoolean(W(cg)), false)) | |
488 | + | then ch | |
477 | 489 | else 0) | |
478 | - | (( | |
490 | + | ((r + fraction(r, ci, 4)) + fraction(r, (cj * 3), (ch * 20))) | |
479 | 491 | } | |
480 | 492 | ||
481 | 493 | ||
482 | - | func | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | if (( | |
487 | - | then throw((("Duck location type is " + | |
494 | + | func ck (cl) = { | |
495 | + | let ag = valueOrErrorMessage(getString(ab(cl)), "You don't have a duck staked") | |
496 | + | let cm = valueOrElse(getString(ah(ag)), k) | |
497 | + | let cn = split(value(cm), "_") | |
498 | + | if ((cn[ap] != "L")) | |
499 | + | then throw((("Duck location type is " + cn[ap]) + ", but should be L")) | |
488 | 500 | else { | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if (( | |
501 | + | let cg = cn[aq] | |
502 | + | let co = value(assetInfo(fromBase58String(cg))) | |
503 | + | let cp = S(cg) | |
504 | + | let cq = valueOrErrorMessage(getInteger(cp), (("Your duck is on " + co.name) + ", which is not staked")) | |
505 | + | let cr = valueOrErrorMessage(getString(P(cg)), (("NFT " + co.name) + " is orphaned")) | |
506 | + | if ((cr != cl)) | |
495 | 507 | then throw((i + " is not yours")) | |
496 | 508 | else { | |
497 | - | let | |
498 | - | $Tuple4( | |
509 | + | let cs = split(co.description, "_") | |
510 | + | $Tuple4(ag, cg, cs, cq) | |
499 | 511 | } | |
500 | 512 | } | |
501 | 513 | } | |
502 | 514 | ||
503 | 515 | ||
504 | - | func cn (cf,bd) = { | |
505 | - | let co = ce(cf) | |
506 | - | let I = co._3[af] | |
507 | - | let aS = aY(co._3[ag]) | |
508 | - | let bh = (lastBlock.timestamp - co._4) | |
509 | - | if ((0 > bh)) | |
510 | - | then throw(((("Saved timestamp is in future, saved = " + toString(co._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
516 | + | func ct (cl,bj) = if ((0 > bj)) | |
517 | + | then throw("Negative amount") | |
518 | + | else { | |
519 | + | let cu = ck(cl) | |
520 | + | let O = cu._3[al] | |
521 | + | let aY = be(cu._3[am]) | |
522 | + | let bn = (lastBlock.timestamp - cu._4) | |
523 | + | if ((0 > bn)) | |
524 | + | then throw(((("Saved timestamp is in future, saved = " + toString(cu._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
525 | + | else { | |
526 | + | let ch = bg(O) | |
527 | + | let cv = cf(cu._2, ch) | |
528 | + | let cw = fraction(bn, (cv * ch), s) | |
529 | + | if ((bj > cw)) | |
530 | + | then throw(((("Not enough resources, available = " + toString(cw)) + ", requested = ") + toString(bj))) | |
531 | + | else { | |
532 | + | let cx = fraction((cw - bj), s, (cv * ch)) | |
533 | + | let cy = (lastBlock.timestamp - cx) | |
534 | + | let bG = af(cu._1) | |
535 | + | let bX = bF(bG) | |
536 | + | let bm = split(bX[as], "_") | |
537 | + | let cz = bl(bm, aY, (bn - cx), (ch / m), cv) | |
538 | + | $Tuple3([IntegerEntry(S(cu._2), cy), IntegerEntry(ac(i, cu._2, cl), cy)], bG, [bX[ar], cz, bX[at], bX[au]]) | |
539 | + | } | |
540 | + | } | |
541 | + | } | |
542 | + | ||
543 | + | ||
544 | + | func cA (cl,cg,ch) = { | |
545 | + | let cp = S(cg) | |
546 | + | let cq = value(getInteger(cp)) | |
547 | + | let cw = (fraction((lastBlock.timestamp - cq), cf(cg, ch), s) * ch) | |
548 | + | ct(cl, cw) | |
549 | + | } | |
550 | + | ||
551 | + | ||
552 | + | func cB (aP,bJ,cC) = { | |
553 | + | let cl = toString(bJ) | |
554 | + | let cu = ck(cl) | |
555 | + | let ch = bg(cu._3[al]) | |
556 | + | let cD = T(cu._2) | |
557 | + | let cE = valueOrElse(getInteger(cD), 0) | |
558 | + | if ((cE >= 3)) | |
559 | + | then throw("Currently max infrastructure level = 3") | |
511 | 560 | else { | |
512 | - | let cb = ba(I) | |
513 | - | let cp = bZ(co._2, cb) | |
514 | - | let cq = fraction(bh, (cp * cb), n) | |
515 | - | if ((bd > cq)) | |
516 | - | then throw(((("Not enough resources, available = " + toString(cq)) + ", requested = ") + toString(bd))) | |
561 | + | let cF = (cE + 1) | |
562 | + | let cG = fraction(w, (ch * cF), m) | |
563 | + | if (if (!(aP)) | |
564 | + | then (cC != cG) | |
565 | + | else false) | |
566 | + | then throw(("Payment attached should be " + toString(cG))) | |
517 | 567 | else { | |
518 | - | let cr = fraction((cq - bd), n, (cp * cb)) | |
519 | - | let cs = (lastBlock.timestamp - cr) | |
520 | - | let bA = Z(co._1) | |
521 | - | let bR = bz(bA) | |
522 | - | let bg = split(bR[am], "_") | |
523 | - | let ct = bf(bg, aS, (bh - cr), (cb / 25), cp) | |
524 | - | $Tuple3([IntegerEntry(M(co._2), cs), IntegerEntry(W(i, co._2, cf), cs)], bA, [bR[al], ct, bR[an], bR[ao]]) | |
568 | + | let bG = af(cu._1) | |
569 | + | let bX = bF(bG) | |
570 | + | let bY = split(bX[at], "_") | |
571 | + | let bZ = makeString(aO(aP, bY, fraction(v, (ch * cF), m)), "_") | |
572 | + | let cH = cA(cl, cu._2, ch) | |
573 | + | $Tuple2(([IntegerEntry(cD, cF), IntegerEntry(U(cu._2, cl), cF), StringEntry(bG, makeString([bX[ar], cH._3[as], bZ, bX[au]], ":"))] ++ cH._1), cF) | |
525 | 574 | } | |
526 | 575 | } | |
527 | 576 | } | |
528 | 577 | ||
529 | 578 | ||
530 | - | func cu (cf,ca,cb) = { | |
531 | - | let cj = M(ca) | |
532 | - | let ck = value(getInteger(cj)) | |
533 | - | let cq = (fraction((lastBlock.timestamp - ck), bZ(ca, cb), n) * cb) | |
534 | - | cn(cf, cq) | |
535 | - | } | |
536 | - | ||
537 | - | ||
538 | - | func cv (aJ,bD,cw) = { | |
539 | - | let cf = toString(bD) | |
540 | - | let co = ce(cf) | |
541 | - | let cb = ba(co._3[af]) | |
542 | - | let cx = N(co._2) | |
543 | - | let cy = valueOrElse(getInteger(cx), 0) | |
544 | - | if ((cy >= 3)) | |
545 | - | then throw("Currently max infrastructure level = 3") | |
546 | - | else { | |
547 | - | let cz = (cy + 1) | |
548 | - | let cA = fraction(r, (cb * cz), 25) | |
549 | - | if (if (!(aJ)) | |
550 | - | then (cw != cA) | |
551 | - | else false) | |
552 | - | then throw(("Payment attached should be " + toString(cA))) | |
553 | - | else { | |
554 | - | let bA = Z(co._1) | |
555 | - | let bR = bz(bA) | |
556 | - | let bS = split(bR[an], "_") | |
557 | - | let bT = makeString(aI(aJ, bS, fraction(q, (cb * cz), 25)), "_") | |
558 | - | let cB = cu(cf, co._2, cb) | |
559 | - | $Tuple2(([IntegerEntry(cx, cz), IntegerEntry(O(co._2, cf), cz), StringEntry(bA, makeString([bR[al], cB._3[am], bT, bR[ao]], ":"))] ++ cB._1), cz) | |
560 | - | } | |
561 | - | } | |
562 | - | } | |
563 | - | ||
564 | - | ||
565 | - | func cC (cf) = { | |
566 | - | let co = ce(cf) | |
567 | - | let ca = co._2 | |
568 | - | let cD = Q(ca) | |
569 | - | if (valueOrElse(getBoolean(cD), false)) | |
579 | + | func cI (cl) = { | |
580 | + | let cu = ck(cl) | |
581 | + | let cg = cu._2 | |
582 | + | let cJ = W(cg) | |
583 | + | if (valueOrElse(getBoolean(cJ), false)) | |
570 | 584 | then throw("Presale artifact is already activated") | |
571 | - | else if ((parseIntValue( | |
572 | - | then throw((((i + " ") + | |
585 | + | else if ((parseIntValue(cu._3[ak]) > J)) | |
586 | + | then throw((((i + " ") + cg) + " is not eligible for presale artifact")) | |
573 | 587 | else { | |
574 | - | let | |
575 | - | let | |
576 | - | ((((( | |
588 | + | let ch = bg(cu._3[al]) | |
589 | + | let cH = cA(cl, cg, ch) | |
590 | + | (((((cH._1 :+ BooleanEntry(cJ, true)) :+ BooleanEntry(X(cg, cl), true)) :+ IntegerEntry(Y(I, cg), ch)) :+ IntegerEntry(aa(I, cg, cl), ch)) :+ StringEntry(cH._2, makeString(cH._3, ":"))) | |
577 | 591 | } | |
578 | 592 | } | |
579 | 593 | ||
580 | 594 | ||
581 | - | func | |
582 | - | let | |
583 | - | func | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
595 | + | func cK (cL,cF,cM,cl,cN,bK,cO) = { | |
596 | + | let ag = valueOrErrorMessage(getString(ab(cl)), "You don't have a duck staked") | |
597 | + | func cP (aF,cg) = { | |
598 | + | let co = value(assetInfo(fromBase58String(cg))) | |
599 | + | let cp = S(cg) | |
600 | + | let cq = valueOrErrorMessage(getInteger(cp), (("NFT " + co.name) + " is not staked")) | |
601 | + | let cr = valueOrErrorMessage(getString(P(cg)), (("NFT " + co.name) + " is orphaned")) | |
602 | + | if ((cr != cl)) | |
589 | 603 | then throw((i + " is not yours")) | |
590 | 604 | else { | |
591 | - | let | |
592 | - | let | |
593 | - | if (if (( | |
594 | - | then ( | |
605 | + | let cs = split(co.description, "_") | |
606 | + | let cc = cs[an] | |
607 | + | if (if ((aF._3 != "")) | |
608 | + | then (aF._3 != cc) | |
595 | 609 | else false) | |
596 | 610 | then throw("Lands should be on the same continent to merge") | |
597 | 611 | else { | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | then | |
612 | + | let O = cs[al] | |
613 | + | let cQ = aF._1 | |
614 | + | let bc = valueOrErrorMessage(indexOf(cQ, O), "You haven't passed all the lands needed") | |
615 | + | let cR = (take(cQ, bc) + drop(cQ, (bc + 1))) | |
616 | + | let ch = bg(O) | |
617 | + | let cS = (aF._2 + valueOrElse(getInteger(Y(I, cg)), if (valueOrElse(getBoolean(W(cg)), false)) | |
618 | + | then ch | |
605 | 619 | else 0)) | |
606 | - | let | |
607 | - | let | |
608 | - | let c = | |
620 | + | let ci = valueOrElse(getInteger(T(cg)), 0) | |
621 | + | let cT = { | |
622 | + | let c = O | |
609 | 623 | if (("S" == c)) | |
610 | 624 | then 3 | |
611 | 625 | else if (("M" == c)) | |
616 | 630 | then 6 | |
617 | 631 | else throw("Only S, M, L, XL can merge") | |
618 | 632 | } | |
619 | - | if (( | |
633 | + | if ((ci != cT)) | |
620 | 634 | then throw("All lands should be maxed to merge") | |
621 | 635 | else { | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | if ((0 > | |
626 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
636 | + | let M = cs[ak] | |
637 | + | let aY = be(cs[am]) | |
638 | + | let bn = (lastBlock.timestamp - cq) | |
639 | + | if ((0 > bn)) | |
640 | + | then throw(((("Saved timestamp is in future, saved = " + toString(cq)) + ", current = ") + toString(lastBlock.timestamp))) | |
627 | 641 | else { | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | $Tuple6( | |
642 | + | let cv = cf(cg, ch) | |
643 | + | let cz = bl(split(aF._4, "_"), aY, bn, (ch / m), cv) | |
644 | + | let aA = aW(split(aF._6, "_"), aY, (ch / m), -1) | |
645 | + | $Tuple6(cR, cS, cc, cz, (((((((((((((aF._5 :+ DeleteEntry(S(cg))) :+ DeleteEntry(ac(i, cg, cl))) :+ DeleteEntry(L(M))) :+ DeleteEntry(N(M, O))) :+ DeleteEntry(P(cg))) :+ DeleteEntry(T(cg))) :+ DeleteEntry(U(cg, cl))) :+ DeleteEntry(W(cg))) :+ DeleteEntry(X(cg, cl))) :+ DeleteEntry(Y(I, cg))) :+ DeleteEntry(aa(I, cg, cl))) :+ DeleteEntry(ae(M))) :+ Burn(fromBase58String(cg), 1)), aA) | |
632 | 646 | } | |
633 | 647 | } | |
634 | 648 | } | |
635 | 649 | } | |
636 | 650 | } | |
637 | 651 | ||
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | func | |
646 | - | then | |
647 | - | else | |
652 | + | let bG = af(ag) | |
653 | + | let bX = bF(bG) | |
654 | + | let cU = valueOrElse(getString(aj()), "0_0_0_0_0_0") | |
655 | + | let aB = { | |
656 | + | let aH = cN | |
657 | + | let aI = size(aH) | |
658 | + | let aJ = $Tuple6(cM, 0, "", bX[as], nil, cU) | |
659 | + | func aK (aL,aM) = if ((aM >= aI)) | |
660 | + | then aL | |
661 | + | else cP(aL, aH[aM]) | |
648 | 662 | ||
649 | - | func | |
650 | - | then | |
663 | + | func aN (aL,aM) = if ((aM >= aI)) | |
664 | + | then aL | |
651 | 665 | else throw("List size exceeds 4") | |
652 | 666 | ||
653 | - | | |
667 | + | aN(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4) | |
654 | 668 | } | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | $Tuple2(((((((((((((( | |
669 | + | let cc = aB._3 | |
670 | + | let bB = valueOrErrorMessage(indexOf(H, cc), ("Unknown continent: " + cc)) | |
671 | + | let bf = bz(br(toBigInt(bK)), bB) | |
672 | + | let cb = valueOrElse(getInteger(K()), (J + 1)) | |
673 | + | let cV = toString(cb) | |
674 | + | let cd = Issue(N(cV, cL), makeString([cV, cL, bf, cc], "_"), 1, 0, false) | |
675 | + | let Q = calculateAssetId(cd) | |
676 | + | let cW = toBase58String(Q) | |
677 | + | let bZ = makeString(aO((cO > 0), split(bX[at], "_"), cO), "_") | |
678 | + | $Tuple2((((((((((((((aB._5 :+ IntegerEntry(K(), (cb + 1))) :+ cd) :+ StringEntry(L(cV), cW)) :+ StringEntry(P(cW), cl)) :+ StringEntry(ae(cV), cl)) :+ IntegerEntry(Y(I, cW), aB._2)) :+ IntegerEntry(aa(I, cW, cl), aB._2)) :+ IntegerEntry(T(cW), cF)) :+ IntegerEntry(U(cW, cl), cF)) :+ StringEntry(bG, makeString([bX[ar], aB._4, bZ, bX[au]], ":"))) :+ StringEntry(aj(), aB._6)) :+ StringEntry(ah(ag), makeString([cc, "L", cW], "_"))) :+ ScriptTransfer(addressFromStringValue(cl), 1, Q)), cW) | |
665 | 679 | } | |
666 | 680 | ||
667 | 681 | ||
668 | - | func | |
682 | + | func cX (cl,cN,bK) = cK("M", 3, "SSSS", cl, cN, bK, 0) | |
669 | 683 | ||
670 | 684 | ||
671 | - | func | |
672 | - | let | |
673 | - | if (if (!( | |
674 | - | then ( | |
685 | + | func cY (cl,cN,bK,aP,cC) = { | |
686 | + | let cG = (w * 4) | |
687 | + | if (if (!(aP)) | |
688 | + | then (cC != cG) | |
675 | 689 | else false) | |
676 | - | then throw(("Payment attached should be " + toString( | |
677 | - | else | |
690 | + | then throw(("Payment attached should be " + toString(cG))) | |
691 | + | else cK("L", 4, "SMM", cl, cN, bK, (v * 4)) | |
678 | 692 | } | |
679 | 693 | ||
680 | 694 | ||
681 | - | func | |
682 | - | let | |
683 | - | if (if (!( | |
684 | - | then ( | |
695 | + | func cZ (cl,cN,bK,aP,cC) = { | |
696 | + | let cG = (w * 47) | |
697 | + | if (if (!(aP)) | |
698 | + | then (cC != cG) | |
685 | 699 | else false) | |
686 | - | then throw(("Payment attached should be " + toString( | |
687 | - | else | |
700 | + | then throw(("Payment attached should be " + toString(cG))) | |
701 | + | else cK("XL", 5, "SSSML", cl, cN, bK, (v * 47)) | |
688 | 702 | } | |
689 | 703 | ||
690 | 704 | ||
691 | - | func | |
692 | - | let | |
693 | - | if (if (!( | |
694 | - | then ( | |
705 | + | func da (cl,cN,bK,aP,cC) = { | |
706 | + | let cG = (w * 54) | |
707 | + | if (if (!(aP)) | |
708 | + | then (cC != cG) | |
695 | 709 | else false) | |
696 | - | then throw(("Payment attached should be " + toString( | |
697 | - | else | |
710 | + | then throw(("Payment attached should be " + toString(cG))) | |
711 | + | else cK("XXL", 6, "LXL", cl, cN, bK, (v * 54)) | |
698 | 712 | } | |
699 | 713 | ||
700 | 714 | ||
701 | - | func | |
702 | - | let | |
703 | - | let c = size( | |
715 | + | func db (aP,cl,cC,cN,bK) = { | |
716 | + | let dc = { | |
717 | + | let c = size(cN) | |
704 | 718 | if ((4 == c)) | |
705 | - | then | |
719 | + | then cX(cl, cN, bK) | |
706 | 720 | else if ((3 == c)) | |
707 | - | then | |
721 | + | then cY(cl, cN, bK, aP, cC) | |
708 | 722 | else if ((5 == c)) | |
709 | - | then | |
723 | + | then cZ(cl, cN, bK, aP, cC) | |
710 | 724 | else if ((2 == c)) | |
711 | - | then | |
725 | + | then da(cl, cN, bK, aP, cC) | |
712 | 726 | else throw("Unknown merge") | |
713 | 727 | } | |
714 | - | | |
728 | + | dc | |
715 | 729 | } | |
716 | 730 | ||
717 | 731 | ||
718 | - | @Callable(aW) | |
719 | - | func stakeLand () = { | |
720 | - | let cX = value(aW.payments[0]) | |
721 | - | let K = value(cX.assetId) | |
722 | - | let cY = toString(aW.caller) | |
723 | - | if ((cX.amount != 1)) | |
724 | - | then throw((("NFT " + i) + " token should be attached as payment")) | |
725 | - | else { | |
726 | - | let ci = value(assetInfo(K)) | |
727 | - | if ((ci.issuer != this)) | |
728 | - | then throw("Unknown issuer of token") | |
729 | - | else if (!(contains(ci.name, i))) | |
730 | - | then throw((("Only NFT " + i) + " tokens are accepted")) | |
731 | - | else { | |
732 | - | let cZ = drop(ci.name, 4) | |
733 | - | let G = if (contains(cZ, "XXL")) | |
734 | - | then dropRight(cZ, 3) | |
735 | - | else if (contains(cZ, "XL")) | |
736 | - | then dropRight(cZ, 2) | |
737 | - | else dropRight(cZ, 1) | |
738 | - | let da = valueOrErrorMessage(parseInt(G), ("Cannot parse land number from " + ci.name)) | |
739 | - | let ca = toBase58String(K) | |
740 | - | let cj = M(ca) | |
741 | - | if (isDefined(getInteger(cj))) | |
742 | - | then throw((("NFT " + ci.name) + " is already staked")) | |
743 | - | else { | |
744 | - | let cm = split(ci.description, "_") | |
745 | - | let aS = aY(cm[ag]) | |
746 | - | let au = aX(aS, (ba(cm[af]) / 25), 1) | |
747 | - | [IntegerEntry(cj, lastBlock.timestamp), IntegerEntry(W(i, ca, cY), lastBlock.timestamp), StringEntry(J(ca), cY), StringEntry(Y(G), cY), StringEntry(ad(), au)] | |
748 | - | } | |
749 | - | } | |
750 | - | } | |
751 | - | } | |
752 | - | ||
753 | - | ||
754 | - | ||
755 | - | @Callable(aW) | |
756 | - | func unstakeLand (db) = if ((size(aW.payments) != 0)) | |
757 | - | then throw("unstake doesn't require any payments") | |
732 | + | @Callable(bc) | |
733 | + | func stakeLand () = if ((size(bc.payments) != 1)) | |
734 | + | then throw("Exactly one payment required") | |
758 | 735 | else { | |
759 | - | let cf = toString(aW.caller) | |
760 | - | let co = ce(cf) | |
761 | - | let aS = aY(co._3[ag]) | |
762 | - | let cb = ba(co._3[af]) | |
763 | - | let au = aX(aS, (cb / 25), -1) | |
764 | - | let cB = cu(cf, co._2, cb) | |
765 | - | [ScriptTransfer(aW.caller, 1, fromBase58String(co._2)), DeleteEntry(M(co._2)), DeleteEntry(W(i, co._2, cf)), StringEntry(ad(), au), StringEntry(cB._2, makeString(cB._3, ":"))] | |
736 | + | let dd = value(bc.payments[0]) | |
737 | + | let Q = value(dd.assetId) | |
738 | + | let de = toString(bc.caller) | |
739 | + | if ((dd.amount != 1)) | |
740 | + | then throw((("NFT " + i) + " token should be attached as payment")) | |
741 | + | else { | |
742 | + | let co = value(assetInfo(Q)) | |
743 | + | if ((co.issuer != this)) | |
744 | + | then throw("Unknown issuer of token") | |
745 | + | else if (!(contains(co.name, i))) | |
746 | + | then throw((("Only NFT " + i) + " tokens are accepted")) | |
747 | + | else { | |
748 | + | let df = drop(co.name, 4) | |
749 | + | let M = if (contains(df, "XXL")) | |
750 | + | then dropRight(df, 3) | |
751 | + | else if (contains(df, "XL")) | |
752 | + | then dropRight(df, 2) | |
753 | + | else dropRight(df, 1) | |
754 | + | if (!(isDefined(parseInt(M)))) | |
755 | + | then throw(("Cannot parse land number from " + co.name)) | |
756 | + | else { | |
757 | + | let cg = toBase58String(Q) | |
758 | + | let cp = S(cg) | |
759 | + | if (isDefined(getInteger(cp))) | |
760 | + | then throw((("NFT " + co.name) + " is already staked")) | |
761 | + | else { | |
762 | + | let cs = split(co.description, "_") | |
763 | + | let aY = be(cs[am]) | |
764 | + | let aA = bd(aY, (bg(cs[al]) / m), 1) | |
765 | + | [IntegerEntry(cp, lastBlock.timestamp), IntegerEntry(ac(i, cg, de), lastBlock.timestamp), StringEntry(P(cg), de), StringEntry(ae(M), de), StringEntry(aj(), aA)] | |
766 | + | } | |
767 | + | } | |
768 | + | } | |
769 | + | } | |
766 | 770 | } | |
767 | 771 | ||
768 | 772 | ||
769 | 773 | ||
770 | - | @Callable(aW) | |
771 | - | func stakeDuck () = { | |
772 | - | let cX = value(aW.payments[0]) | |
773 | - | let K = value(cX.assetId) | |
774 | - | let cY = toString(aW.caller) | |
775 | - | if ((cX.amount != 1)) | |
776 | - | then throw((("NFT " + j) + " token should be attached as payment")) | |
777 | - | else { | |
778 | - | let ci = value(assetInfo(K)) | |
779 | - | if (if ((ci.issuer != d)) | |
780 | - | then (ci.issuer != e) | |
781 | - | else false) | |
782 | - | then throw((("Unknown issuer of " + j) + " token")) | |
783 | - | else if (!(contains(ci.name, j))) | |
784 | - | then throw((("Only NFT " + j) + " tokens are accepted")) | |
785 | - | else { | |
786 | - | let dc = toBase58String(K) | |
787 | - | let cj = M(dc) | |
788 | - | if (isDefined(getInteger(cj))) | |
789 | - | then throw((("NFT " + ci.name) + " is already staked")) | |
790 | - | else if (isDefined(getString(V(cY)))) | |
791 | - | then throw(("You already staked one duck: " + ci.name)) | |
792 | - | else { | |
793 | - | let dd = ab(dc) | |
794 | - | let de = getString(dd) | |
795 | - | let bP = ac(dc) | |
796 | - | let df = getInteger(bP) | |
797 | - | let bA = Z(dc) | |
798 | - | let dg = getString(bA) | |
799 | - | ([IntegerEntry(cj, lastBlock.timestamp), IntegerEntry(W(j, toBase58String(K), cY), lastBlock.timestamp), StringEntry(L(dc), cY), StringEntry(V(cY), dc)] ++ (if (isDefined(de)) | |
800 | - | then nil | |
801 | - | else ([StringEntry(dd, k)] ++ (if (isDefined(df)) | |
802 | - | then nil | |
803 | - | else ([IntegerEntry(bP, 100)] ++ (if (isDefined(dg)) | |
804 | - | then nil | |
805 | - | else [StringEntry(bA, "0:0_0_0_0_0_0:0_0_0_0_0_0:")])))))) | |
806 | - | } | |
807 | - | } | |
808 | - | } | |
809 | - | } | |
774 | + | @Callable(bc) | |
775 | + | func unstakeLand (dg) = if ((size(bc.payments) != 0)) | |
776 | + | then throw("unstake doesn't require any payments") | |
777 | + | else { | |
778 | + | let cl = toString(bc.caller) | |
779 | + | let cu = ck(cl) | |
780 | + | let aY = be(cu._3[am]) | |
781 | + | let ch = bg(cu._3[al]) | |
782 | + | let aA = bd(aY, (ch / m), -1) | |
783 | + | let cH = cA(cl, cu._2, ch) | |
784 | + | [ScriptTransfer(bc.caller, 1, fromBase58String(cu._2)), DeleteEntry(S(cu._2)), DeleteEntry(ac(i, cu._2, cl)), StringEntry(aj(), aA), StringEntry(cH._2, makeString(cH._3, ":"))] | |
785 | + | } | |
810 | 786 | ||
811 | 787 | ||
812 | 788 | ||
813 | - | @Callable(aW) | |
814 | - | func unstakeDuck (dc) = if ((size(aW.payments) != 0)) | |
789 | + | @Callable(bc) | |
790 | + | func stakeDuck () = if ((size(bc.payments) != 1)) | |
791 | + | then throw("Exactly one payment required") | |
792 | + | else { | |
793 | + | let dd = value(bc.payments[0]) | |
794 | + | let Q = value(dd.assetId) | |
795 | + | let de = toString(bc.caller) | |
796 | + | if ((dd.amount != 1)) | |
797 | + | then throw((("NFT " + j) + " token should be attached as payment")) | |
798 | + | else { | |
799 | + | let co = value(assetInfo(Q)) | |
800 | + | if (if ((co.issuer != d)) | |
801 | + | then (co.issuer != e) | |
802 | + | else false) | |
803 | + | then throw((("Unknown issuer of " + j) + " token")) | |
804 | + | else if (!(contains(co.name, j))) | |
805 | + | then throw((("Only NFT " + j) + " tokens are accepted")) | |
806 | + | else { | |
807 | + | let dh = toBase58String(Q) | |
808 | + | let cp = S(dh) | |
809 | + | if (isDefined(getInteger(cp))) | |
810 | + | then throw((("NFT " + co.name) + " is already staked")) | |
811 | + | else if (isDefined(getString(ab(de)))) | |
812 | + | then throw(("You already staked one duck: " + co.name)) | |
813 | + | else { | |
814 | + | let di = ah(dh) | |
815 | + | let dj = getString(di) | |
816 | + | let bG = af(dh) | |
817 | + | let dk = getString(bG) | |
818 | + | ([IntegerEntry(cp, lastBlock.timestamp), IntegerEntry(ac(j, toBase58String(Q), de), lastBlock.timestamp), StringEntry(R(dh), de), StringEntry(ab(de), dh)] ++ (if (isDefined(dj)) | |
819 | + | then nil | |
820 | + | else ([StringEntry(di, k)] ++ (if (isDefined(dk)) | |
821 | + | then nil | |
822 | + | else ([StringEntry(bG, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(ai(dh), 100)))))) | |
823 | + | } | |
824 | + | } | |
825 | + | } | |
826 | + | } | |
827 | + | ||
828 | + | ||
829 | + | ||
830 | + | @Callable(bc) | |
831 | + | func unstakeDuck (dh) = if ((size(bc.payments) != 0)) | |
815 | 832 | then throw("unstake doesn't require any payments") | |
816 | 833 | else { | |
817 | - | let K = fromBase58String(dc) | |
818 | - | let cY = toString(aW.caller) | |
819 | - | let ci = value(assetInfo(K)) | |
820 | - | if (if ((ci.issuer != d)) | |
821 | - | then (ci.issuer != e) | |
822 | - | else false) | |
823 | - | then throw((("Unknown issuer of " + j) + " token")) | |
824 | - | else if (!(contains(ci.name, j))) | |
825 | - | then throw((("Only NFT " + j) + " tokens can be unstaked")) | |
834 | + | let Q = fromBase58String(dh) | |
835 | + | let de = toString(bc.caller) | |
836 | + | let co = value(assetInfo(Q)) | |
837 | + | let cp = S(toBase58String(Q)) | |
838 | + | if (!(isDefined(cp))) | |
839 | + | then throw((("NFT " + co.name) + " is not staked")) | |
840 | + | else if (!(isDefined(ab(de)))) | |
841 | + | then throw((("The duck " + co.name) + " is not staked")) | |
826 | 842 | else { | |
827 | - | let cj = M(toBase58String(K)) | |
828 | - | if (!(isDefined(cj))) | |
829 | - | then throw((("NFT " + ci.name) + " is not staked")) | |
830 | - | else if (!(isDefined(V(cY)))) | |
831 | - | then throw((("The duck " + ci.name) + " is not staked")) | |
832 | - | else { | |
833 | - | let cl = valueOrErrorMessage(getString(L(toBase58String(K))), (("NFT " + ci.name) + " is orphaned")) | |
834 | - | if ((cl != cY)) | |
835 | - | then throw("Staked NFT is not yours") | |
836 | - | else [ScriptTransfer(aW.caller, 1, K), DeleteEntry(cj), DeleteEntry(ab(dc)), DeleteEntry(L(dc)), DeleteEntry(W(j, dc, cY)), DeleteEntry(V(cY))] | |
837 | - | } | |
843 | + | let cr = valueOrErrorMessage(getString(R(toBase58String(Q))), (("NFT " + co.name) + " is orphaned")) | |
844 | + | if ((cr != de)) | |
845 | + | then throw("Staked NFT is not yours") | |
846 | + | else { | |
847 | + | let bV = ai(dh) | |
848 | + | let dl = getInteger(bV) | |
849 | + | if ((dl != 100)) | |
850 | + | then throw("Please heal your duck before unstaking") | |
851 | + | else [ScriptTransfer(bc.caller, 1, Q), DeleteEntry(cp), DeleteEntry(bV), DeleteEntry(ah(dh)), DeleteEntry(R(dh)), DeleteEntry(ac(j, dh, de)), DeleteEntry(ab(de))] | |
852 | + | } | |
838 | 853 | } | |
839 | 854 | } | |
840 | 855 | ||
841 | 856 | ||
842 | 857 | ||
843 | - | @Callable( | |
844 | - | func claimRes ( | |
858 | + | @Callable(bc) | |
859 | + | func claimRes (bj,dg) = if ((size(bc.payments) != 0)) | |
845 | 860 | then throw("claimRes doesn't require any payments") | |
846 | 861 | else { | |
847 | - | let | |
848 | - | let | |
849 | - | $Tuple2(( | |
862 | + | let cl = toString(bc.originCaller) | |
863 | + | let aV = ct(cl, bj) | |
864 | + | $Tuple2((aV._1 :+ StringEntry(aV._2, makeString(aV._3, ":"))), aV._3[as]) | |
850 | 865 | } | |
851 | 866 | ||
852 | 867 | ||
853 | 868 | ||
854 | - | @Callable( | |
855 | - | func flight ( | |
869 | + | @Callable(bc) | |
870 | + | func flight (bL,bM) = if (!(sigVerify_8Kb(bL, bM, g))) | |
856 | 871 | then throw("signature does not match") | |
857 | - | else if ((size( | |
872 | + | else if ((size(bc.payments) != 0)) | |
858 | 873 | then throw("flight doesn't require any payments") | |
859 | 874 | else { | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | if (if (( | |
875 | + | let bN = split(toUtf8String(bL), ";") | |
876 | + | let bO = split(split(bN[0], "|")[0], "_") | |
877 | + | let bP = parseIntValue(bO[0]) | |
878 | + | let bQ = parseIntValue(bO[1]) | |
879 | + | let dm = split(bN[1], ":") | |
880 | + | let dn = dm[0] | |
881 | + | let bT = parseIntValue(dm[1]) | |
882 | + | if (if ((bT > (lastBlock.timestamp + t))) | |
868 | 883 | then true | |
869 | - | else ((lastBlock.timestamp - | |
884 | + | else ((lastBlock.timestamp - t) > bT)) | |
870 | 885 | then throw("signature outdated") | |
871 | 886 | else { | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | if (( | |
876 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
877 | - | else if ((0 >= | |
887 | + | let ag = valueOrErrorMessage(getString(ab(toString(bc.caller))), "You don't have a duck staked") | |
888 | + | let bV = ai(ag) | |
889 | + | let bW = valueOrElse(getInteger(bV), 100) | |
890 | + | if ((bW != bP)) | |
891 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bV), 100))) + " from state does not match one from flight log=") + toString(bP))) | |
892 | + | else if ((0 >= bP)) | |
878 | 893 | then throw("You can't fly with zero health") | |
879 | 894 | else { | |
880 | - | let | |
881 | - | let | |
882 | - | if (( | |
895 | + | let di = ah(ag) | |
896 | + | let cm = valueOrElse(getString(di), k) | |
897 | + | if ((dn == cm)) | |
883 | 898 | then throw("You can't fly to the same location") | |
884 | - | else $Tuple2([StringEntry( | |
885 | - | then | |
886 | - | else | |
899 | + | else $Tuple2([StringEntry(di, if ((bQ > 0)) | |
900 | + | then dn | |
901 | + | else cm), IntegerEntry(bV, bQ)], unit) | |
887 | 902 | } | |
888 | 903 | } | |
889 | 904 | } | |
890 | 905 | ||
891 | 906 | ||
892 | 907 | ||
893 | - | @Callable( | |
894 | - | func setHealth ( | |
908 | + | @Callable(bc) | |
909 | + | func setHealth (dl,ag) = if (if ((0 > dl)) | |
895 | 910 | then true | |
896 | - | else ( | |
911 | + | else (dl > 100)) | |
897 | 912 | then throw("HP should be within 0..100") | |
898 | - | else [IntegerEntry( | |
913 | + | else [IntegerEntry(ai(ag), dl)] | |
899 | 914 | ||
900 | 915 | ||
901 | 916 | ||
902 | - | @Callable( | |
903 | - | func heal ( | |
917 | + | @Callable(bc) | |
918 | + | func heal (do,bj) = if (if ((0 > do)) | |
904 | 919 | then true | |
905 | - | else ( | |
906 | - | then throw(("Unknown material: " + toString( | |
907 | - | else if ((0 >= | |
908 | - | then throw(("Amount should be positive! " + toString( | |
920 | + | else (do >= l)) | |
921 | + | then throw(("Unknown material: " + toString(do))) | |
922 | + | else if ((0 >= bj)) | |
923 | + | then throw(("Amount should be positive! " + toString(bj))) | |
909 | 924 | else { | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | if (( | |
925 | + | let ag = valueOrErrorMessage(getString(ab(toString(bc.caller))), "You don't have a duck staked") | |
926 | + | let bV = ai(ag) | |
927 | + | let dp = valueOrElse(getInteger(bV), 100) | |
928 | + | if ((dp >= 100)) | |
914 | 929 | then throw("HP should be < 100 to heal") | |
915 | 930 | else { | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | if (( | |
923 | - | then throw(((((("You need " + toString( | |
931 | + | let bG = af(ag) | |
932 | + | let bX = bF(bG) | |
933 | + | let bY = split(bX[at], "_") | |
934 | + | let dq = parseIntValue(bY[do]) | |
935 | + | let dr = min([(bj / h), (100 - dp)]) | |
936 | + | let ds = (dr * h) | |
937 | + | if ((ds > dq)) | |
938 | + | then throw(((((("You need " + toString(ds)) + " of ") + G[do]) + " to heal, but you backpack contains ") + toString(dq))) | |
924 | 939 | else { | |
925 | - | let | |
926 | - | [IntegerEntry( | |
940 | + | let bZ = bh(bY, do, ds) | |
941 | + | [IntegerEntry(bV, (dp + dr)), StringEntry(bG, makeString([bX[ar], bX[as], bZ, bX[au]], ":"))] | |
927 | 942 | } | |
928 | 943 | } | |
929 | 944 | } | |
930 | 945 | ||
931 | 946 | ||
932 | 947 | ||
933 | - | @Callable( | |
934 | - | func updateBackpack ( | |
948 | + | @Callable(bc) | |
949 | + | func updateBackpack (ag,dt) = if ((bc.caller != f)) | |
935 | 950 | then throw("permission denied") | |
936 | - | else $Tuple2([StringEntry( | |
951 | + | else $Tuple2([StringEntry(af(ag), dt)], dt) | |
937 | 952 | ||
938 | 953 | ||
939 | 954 | ||
940 | - | @Callable( | |
941 | - | func expeditionBuy ( | |
955 | + | @Callable(bc) | |
956 | + | func expeditionBuy (bL,bM) = if ((size(bc.payments) != 1)) | |
942 | 957 | then throw("Exactly one payment required") | |
943 | 958 | else { | |
944 | - | let | |
945 | - | if (( | |
959 | + | let dd = value(bc.payments[0]) | |
960 | + | if ((dd.assetId != b)) | |
946 | 961 | then throw("Allowed USDN payment only!") | |
947 | - | else if (( | |
948 | - | then throw(("Payment attached should be " + toString( | |
962 | + | else if ((dd.amount != y)) | |
963 | + | then throw(("Payment attached should be " + toString(y))) | |
949 | 964 | else { | |
950 | - | let aP = bC(false, aW.caller, aW.transactionId, bF, bG) | |
951 | - | $Tuple2((aP._1 :+ ScriptTransfer(f, cX.amount, b)), aP._2) | |
965 | + | let aV = bI(false, bc.caller, bc.transactionId, bL, bM) | |
966 | + | if ((aV._2 == "")) | |
967 | + | then aV | |
968 | + | else $Tuple2((aV._1 :+ ScriptTransfer(f, dd.amount, b)), aV._2) | |
952 | 969 | } | |
953 | 970 | } | |
954 | 971 | ||
955 | 972 | ||
956 | 973 | ||
957 | - | @Callable( | |
958 | - | func expedition ( | |
974 | + | @Callable(bc) | |
975 | + | func expedition (bL,bM) = if ((size(bc.payments) != 0)) | |
959 | 976 | then throw("expedition doesn't require any payments") | |
960 | - | else | |
977 | + | else bI(true, bc.caller, bc.transactionId, bL, bM) | |
961 | 978 | ||
962 | 979 | ||
963 | 980 | ||
964 | - | @Callable( | |
965 | - | func upgradeInfra ( | |
981 | + | @Callable(bc) | |
982 | + | func upgradeInfra (du) = if ((size(bc.payments) != 0)) | |
966 | 983 | then throw("Infrastructure upgrade doesn't require any payments") | |
967 | - | else | |
984 | + | else cB(true, bc.caller, 0) | |
968 | 985 | ||
969 | 986 | ||
970 | 987 | ||
971 | - | @Callable( | |
972 | - | func upgradeInfraUsdn ( | |
988 | + | @Callable(bc) | |
989 | + | func upgradeInfraUsdn (du) = if ((size(bc.payments) != 1)) | |
973 | 990 | then throw("Exactly one payment required") | |
974 | 991 | else { | |
975 | - | let | |
976 | - | if (( | |
992 | + | let dd = value(bc.payments[0]) | |
993 | + | if ((dd.assetId != b)) | |
977 | 994 | then throw("Allowed USDN payment only!") | |
978 | 995 | else { | |
979 | - | let | |
980 | - | $Tuple2(( | |
996 | + | let aV = cB(false, bc.caller, dd.amount) | |
997 | + | $Tuple2((aV._1 :+ ScriptTransfer(f, dd.amount, b)), aV._2) | |
981 | 998 | } | |
982 | 999 | } | |
983 | 1000 | ||
984 | 1001 | ||
985 | 1002 | ||
986 | - | @Callable( | |
987 | - | func activateArtifact ( | |
1003 | + | @Callable(bc) | |
1004 | + | func activateArtifact (dv) = if ((size(bc.payments) != 0)) | |
988 | 1005 | then throw("Artifact activation doesn't require any payments") | |
989 | 1006 | else { | |
990 | - | let | |
991 | - | let c = | |
1007 | + | let aV = { | |
1008 | + | let c = dv | |
992 | 1009 | if (("PRESALE" == c)) | |
993 | - | then | |
1010 | + | then cI(toString(bc.caller)) | |
994 | 1011 | else throw("Unknown artifact") | |
995 | 1012 | } | |
996 | - | | |
1013 | + | aV | |
997 | 1014 | } | |
998 | 1015 | ||
999 | 1016 | ||
1000 | 1017 | ||
1001 | - | @Callable( | |
1002 | - | func mergeLands ( | |
1018 | + | @Callable(bc) | |
1019 | + | func mergeLands (cN) = if ((size(bc.payments) != 0)) | |
1003 | 1020 | then throw("Lands merging doesn't require any payments") | |
1004 | - | else | |
1021 | + | else db(true, toString(bc.caller), 0, cN, bc.transactionId) | |
1005 | 1022 | ||
1006 | 1023 | ||
1007 | 1024 | ||
1008 | - | @Callable( | |
1009 | - | func mergeLandsUsdn ( | |
1025 | + | @Callable(bc) | |
1026 | + | func mergeLandsUsdn (cN) = if ((size(bc.payments) != 1)) | |
1010 | 1027 | then throw("Exactly one payment required") | |
1011 | 1028 | else { | |
1012 | - | let | |
1013 | - | if (( | |
1029 | + | let dd = value(bc.payments[0]) | |
1030 | + | if ((dd.assetId != b)) | |
1014 | 1031 | then throw("Allowed USDN payment only!") | |
1015 | 1032 | else { | |
1016 | - | let | |
1017 | - | $Tuple2(( | |
1033 | + | let aV = db(false, toString(bc.caller), dd.amount, cN, bc.transactionId) | |
1034 | + | $Tuple2((aV._1 :+ ScriptTransfer(f, dd.amount, b)), aV._2) | |
1018 | 1035 | } | |
1019 | 1036 | } | |
1020 | 1037 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = toUtf8String(take(drop(this.bytes, 1), 1)) | |
5 | 5 | ||
6 | 6 | let b = { | |
7 | 7 | let c = a | |
8 | 8 | if (("W" == c)) | |
9 | 9 | then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
10 | 10 | else if (("T" == c)) | |
11 | 11 | then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let d = { | |
16 | 16 | let c = a | |
17 | 17 | if (("W" == c)) | |
18 | 18 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
19 | 19 | else if (("T" == c)) | |
20 | 20 | then this | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let e = { | |
25 | 25 | let c = a | |
26 | 26 | if (("W" == c)) | |
27 | 27 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
28 | 28 | else if (("T" == c)) | |
29 | 29 | then this | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let f = { | |
34 | 34 | let c = a | |
35 | 35 | if (("W" == c)) | |
36 | 36 | then addressFromStringValue("3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D") | |
37 | 37 | else if (("T" == c)) | |
38 | 38 | then addressFromStringValue("3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep") | |
39 | 39 | else throw("Unknown chain") | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | let g = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
43 | 43 | ||
44 | 44 | let h = 10000 | |
45 | 45 | ||
46 | 46 | let i = "LAND" | |
47 | 47 | ||
48 | 48 | let j = "DUCK" | |
49 | 49 | ||
50 | 50 | let k = "Africa_F_Africa" | |
51 | 51 | ||
52 | 52 | let l = 6 | |
53 | 53 | ||
54 | - | let m = | |
54 | + | let m = 25 | |
55 | 55 | ||
56 | - | let n = | |
56 | + | let n = 100 | |
57 | 57 | ||
58 | - | let o = | |
58 | + | let o = 225 | |
59 | 59 | ||
60 | - | let p = | |
60 | + | let p = 400 | |
61 | 61 | ||
62 | - | let q = { | |
62 | + | let q = 625 | |
63 | + | ||
64 | + | let r = 3456000 | |
65 | + | ||
66 | + | let s = 86400000 | |
67 | + | ||
68 | + | let t = 300000 | |
69 | + | ||
70 | + | let u = 158549 | |
71 | + | ||
72 | + | let v = { | |
63 | 73 | let c = a | |
64 | 74 | if (("W" == c)) | |
65 | 75 | then 6307198406 | |
66 | 76 | else if (("T" == c)) | |
67 | 77 | then 63071984 | |
68 | 78 | else throw("Unknown chain") | |
69 | 79 | } | |
70 | 80 | ||
71 | - | let | |
81 | + | let w = { | |
72 | 82 | let c = a | |
73 | 83 | if (("W" == c)) | |
74 | 84 | then 40000000 | |
75 | 85 | else if (("T" == c)) | |
76 | 86 | then 400000 | |
77 | 87 | else throw("Unknown chain") | |
78 | 88 | } | |
79 | 89 | ||
80 | - | let | |
90 | + | let x = { | |
81 | 91 | let c = a | |
82 | 92 | if (("W" == c)) | |
83 | 93 | then 157679960139 | |
84 | 94 | else if (("T" == c)) | |
85 | 95 | then 1576799601 | |
86 | 96 | else throw("Unknown chain") | |
87 | 97 | } | |
88 | 98 | ||
89 | - | let | |
99 | + | let y = { | |
90 | 100 | let c = a | |
91 | 101 | if (("W" == c)) | |
92 | 102 | then 1000000000 | |
93 | 103 | else if (("T" == c)) | |
94 | 104 | then 10000000 | |
95 | 105 | else throw("Unknown chain") | |
96 | 106 | } | |
97 | 107 | ||
98 | - | let | |
108 | + | let z = 1000000 | |
99 | 109 | ||
100 | - | let | |
110 | + | let A = toBigInt(5) | |
101 | 111 | ||
102 | - | let | |
112 | + | let B = toBigInt(20) | |
103 | 113 | ||
104 | - | let | |
114 | + | let C = toBigInt((20 * 20)) | |
105 | 115 | ||
106 | - | let | |
116 | + | let D = toBigInt(((20 * 20) * 20)) | |
107 | 117 | ||
108 | - | let | |
118 | + | let E = toBigInt((((20 * 20) * 20) * 20)) | |
109 | 119 | ||
110 | - | let | |
120 | + | let F = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
111 | 121 | ||
112 | - | let | |
122 | + | let G = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
113 | 123 | ||
114 | - | let | |
124 | + | let H = ["Asia", "Europe", "Americas", "Oceania", "Africa"] | |
115 | 125 | ||
116 | - | let | |
126 | + | let I = "PRESALE" | |
117 | 127 | ||
118 | - | func E () = "nextLandNum" | |
128 | + | let J = 500 | |
129 | + | ||
130 | + | func K () = "nextLandNum" | |
119 | 131 | ||
120 | 132 | ||
121 | - | func | |
133 | + | func L (M) = ("landToAsset_" + M) | |
122 | 134 | ||
123 | 135 | ||
124 | - | func | |
136 | + | func N (M,O) = ((i + M) + O) | |
125 | 137 | ||
126 | 138 | ||
127 | - | func | |
139 | + | func P (Q) = ("nftOwner_" + Q) | |
128 | 140 | ||
129 | 141 | ||
130 | - | func | |
142 | + | func R (Q) = ("duckOwner_" + Q) | |
131 | 143 | ||
132 | 144 | ||
133 | - | func | |
145 | + | func S (Q) = ("stakedTime_" + Q) | |
134 | 146 | ||
135 | 147 | ||
136 | - | func | |
148 | + | func T (Q) = ("infraLevel_" + Q) | |
137 | 149 | ||
138 | 150 | ||
139 | - | func | |
151 | + | func U (Q,V) = ((("infraLevelByAssetIdAndOwner_" + Q) + "_") + V) | |
140 | 152 | ||
141 | 153 | ||
142 | - | func | |
154 | + | func W (Q) = ("presaleArtActivated_" + Q) | |
143 | 155 | ||
144 | 156 | ||
145 | - | func | |
157 | + | func X (Q,V) = ((("presaleArtActivatedByAssetIdAndOwner_" + Q) + "_") + V) | |
146 | 158 | ||
147 | 159 | ||
148 | - | func | |
160 | + | func Y (Z,Q) = makeString(["landArtStatus", Z, Q], "_") | |
149 | 161 | ||
150 | 162 | ||
151 | - | func | |
163 | + | func aa (Z,Q,V) = makeString(["landArtStatusByTypeAssetIdAndOwner", Z, Q, V], "_") | |
152 | 164 | ||
153 | 165 | ||
154 | - | func | |
166 | + | func ab (V) = ("stakedDuckByOwner_" + V) | |
155 | 167 | ||
156 | 168 | ||
157 | - | func | |
169 | + | func ac (ad,Q,V) = ((((("stakedTimeByTypeAssetIdAndOwner_" + ad) + "_") + Q) + "_") + V) | |
158 | 170 | ||
159 | 171 | ||
160 | - | func | |
172 | + | func ae (M) = ("landOwner_" + M) | |
161 | 173 | ||
162 | 174 | ||
163 | - | func | |
175 | + | func af (ag) = ("backPack_" + ag) | |
164 | 176 | ||
165 | 177 | ||
166 | - | func | |
178 | + | func ah (ag) = ("duckLocation_" + ag) | |
167 | 179 | ||
168 | 180 | ||
169 | - | func | |
181 | + | func ai (ag) = ("duckHealth_" + ag) | |
170 | 182 | ||
171 | 183 | ||
172 | - | func | |
184 | + | func aj () = "resTypesProportions" | |
173 | 185 | ||
174 | 186 | ||
175 | - | let | |
187 | + | let ak = 0 | |
176 | 188 | ||
177 | - | let | |
189 | + | let al = 1 | |
178 | 190 | ||
179 | - | let | |
191 | + | let am = 2 | |
180 | 192 | ||
181 | - | let | |
193 | + | let an = 3 | |
182 | 194 | ||
183 | - | let | |
195 | + | let ao = 0 | |
184 | 196 | ||
185 | - | let | |
197 | + | let ap = 1 | |
186 | 198 | ||
187 | - | let | |
199 | + | let aq = 2 | |
188 | 200 | ||
189 | - | let | |
201 | + | let ar = 0 | |
190 | 202 | ||
191 | - | let | |
203 | + | let as = 1 | |
192 | 204 | ||
193 | - | let | |
205 | + | let at = 2 | |
194 | 206 | ||
195 | - | let | |
207 | + | let au = 3 | |
196 | 208 | ||
197 | - | func | |
198 | - | let c = | |
209 | + | func av (aw) = { | |
210 | + | let c = aw | |
199 | 211 | if ($isInstanceOf(c, "String")) | |
200 | 212 | then { | |
201 | - | let | |
202 | - | | |
213 | + | let ax = c | |
214 | + | ax | |
203 | 215 | } | |
204 | 216 | else throw("fail to cast into String") | |
205 | 217 | } | |
206 | 218 | ||
207 | 219 | ||
208 | - | func | |
209 | - | let | |
210 | - | if ((size( | |
220 | + | func ay (az) = { | |
221 | + | let aA = split(value(getString(aj())), "_") | |
222 | + | if ((size(aA) != l)) | |
211 | 223 | then throw("Wrong proportions data") | |
212 | 224 | else { | |
213 | - | let | |
214 | - | let | |
215 | - | if ((0 >= | |
225 | + | let aB = [parseIntValue(aA[0]), parseIntValue(aA[1]), parseIntValue(aA[2]), parseIntValue(aA[3]), parseIntValue(aA[4]), parseIntValue(aA[5])] | |
226 | + | let aC = (((((aB[0] + aB[1]) + aB[2]) + aB[3]) + aB[4]) + aB[5]) | |
227 | + | if ((0 >= aC)) | |
216 | 228 | then throw("No lands staked") | |
217 | 229 | else { | |
218 | - | let | |
219 | - | func | |
230 | + | let aD = fraction(az, z, aC) | |
231 | + | func aE (aF,aG) = (aF :+ fraction(aG, aD, z)) | |
220 | 232 | ||
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | func | |
225 | - | then | |
226 | - | else | |
233 | + | let aH = aB | |
234 | + | let aI = size(aH) | |
235 | + | let aJ = nil | |
236 | + | func aK (aL,aM) = if ((aM >= aI)) | |
237 | + | then aL | |
238 | + | else aE(aL, aH[aM]) | |
227 | 239 | ||
228 | - | func | |
229 | - | then | |
240 | + | func aN (aL,aM) = if ((aM >= aI)) | |
241 | + | then aL | |
230 | 242 | else throw("List size exceeds 6") | |
231 | 243 | ||
232 | - | | |
244 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
233 | 245 | } | |
234 | 246 | } | |
235 | 247 | } | |
236 | 248 | ||
237 | 249 | ||
238 | - | func | |
239 | - | let | |
240 | - | func | |
241 | - | let | |
242 | - | if ((0 > | |
243 | - | then throw(((((("Not enough material idx=" + toString( | |
244 | - | else ( | |
250 | + | func aO (aP,aQ,aR) = { | |
251 | + | let aS = ay(aR) | |
252 | + | func aT (aF,aU) = { | |
253 | + | let aV = (parseIntValue(aQ[aU]) - aS[aU]) | |
254 | + | if ((0 > aV)) | |
255 | + | then throw(((((("Not enough material idx=" + toString(aU)) + ", you have ") + aQ[aU]) + ", but need ") + toString(aS[aU]))) | |
256 | + | else (aF :+ toString(aV)) | |
245 | 257 | } | |
246 | 258 | ||
247 | - | if ( | |
259 | + | if (aP) | |
248 | 260 | then { | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | func | |
253 | - | then | |
254 | - | else | |
261 | + | let aH = [0, 1, 2, 3, 4, 5] | |
262 | + | let aI = size(aH) | |
263 | + | let aJ = nil | |
264 | + | func aK (aL,aM) = if ((aM >= aI)) | |
265 | + | then aL | |
266 | + | else aT(aL, aH[aM]) | |
255 | 267 | ||
256 | - | func | |
257 | - | then | |
268 | + | func aN (aL,aM) = if ((aM >= aI)) | |
269 | + | then aL | |
258 | 270 | else throw("List size exceeds 6") | |
259 | 271 | ||
260 | - | | |
272 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
261 | 273 | } | |
262 | - | else | |
274 | + | else aQ | |
263 | 275 | } | |
264 | 276 | ||
265 | 277 | ||
266 | - | func | |
278 | + | func aW (aX,aY,aZ,ba) = if ((size(aX) != l)) | |
267 | 279 | then throw("Wrong proportions data") | |
268 | 280 | else { | |
269 | - | func | |
270 | - | let | |
271 | - | if ((0 > | |
272 | - | then throw(((((((("Panic! Pieces of type=" + toString( | |
273 | - | else ( | |
281 | + | func bb (aF,bc) = { | |
282 | + | let aV = (parseIntValue(aX[bc]) + ((ba * aY[bc]) * aZ)) | |
283 | + | if ((0 > aV)) | |
284 | + | then throw(((((((("Panic! Pieces of type=" + toString(bc)) + ", sign=") + toString(ba)) + ", terrainCounts[i]=") + toString(aY[bc])) + ", landSizeIndex=") + toString(aZ))) | |
285 | + | else (aF :+ toString(aV)) | |
274 | 286 | } | |
275 | 287 | ||
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | func | |
281 | - | then | |
282 | - | else | |
288 | + | let aB = { | |
289 | + | let aH = [0, 1, 2, 3, 4, 5] | |
290 | + | let aI = size(aH) | |
291 | + | let aJ = nil | |
292 | + | func aK (aL,aM) = if ((aM >= aI)) | |
293 | + | then aL | |
294 | + | else bb(aL, aH[aM]) | |
283 | 295 | ||
284 | - | func | |
285 | - | then | |
296 | + | func aN (aL,aM) = if ((aM >= aI)) | |
297 | + | then aL | |
286 | 298 | else throw("List size exceeds 6") | |
287 | 299 | ||
288 | - | | |
300 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
289 | 301 | } | |
290 | - | makeString( | |
302 | + | makeString(aB, "_") | |
291 | 303 | } | |
292 | 304 | ||
293 | 305 | ||
294 | - | func | |
295 | - | let | |
296 | - | | |
306 | + | func bd (aY,aZ,ba) = { | |
307 | + | let aX = split(valueOrElse(getString(aj()), "0_0_0_0_0_0"), "_") | |
308 | + | aW(aX, aY, aZ, ba) | |
297 | 309 | } | |
298 | 310 | ||
299 | 311 | ||
300 | - | func | |
312 | + | func be (bf) = [(size(split(bf, "A")) - 1), (size(split(bf, "B")) - 1), (size(split(bf, "C")) - 1), (size(split(bf, "D")) - 1), (size(split(bf, "E")) - 1), (size(split(bf, "F")) - 1)] | |
301 | 313 | ||
302 | 314 | ||
303 | - | func | |
304 | - | let c = | |
315 | + | func bg (O) = { | |
316 | + | let c = O | |
305 | 317 | if (("S" == c)) | |
306 | - | then | |
318 | + | then m | |
307 | 319 | else if (("M" == c)) | |
308 | - | then | |
320 | + | then n | |
309 | 321 | else if (("L" == c)) | |
310 | - | then | |
322 | + | then o | |
311 | 323 | else if (("XL" == c)) | |
312 | - | then | |
324 | + | then p | |
313 | 325 | else if (("XXL" == c)) | |
314 | - | then | |
326 | + | then q | |
315 | 327 | else throw("Unknown land size") | |
316 | 328 | } | |
317 | 329 | ||
318 | 330 | ||
319 | - | func | |
320 | - | func | |
321 | - | then toString((parseIntValue(bc | |
322 | - | else bc | |
331 | + | func bh (bi,aU,bj) = { | |
332 | + | func bk (aF,bc) = (aF :+ (if ((bc == aU)) | |
333 | + | then toString((parseIntValue(bi[bc]) - bj)) | |
334 | + | else bi[bc])) | |
323 | 335 | ||
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | func | |
329 | - | then | |
330 | - | else | |
336 | + | let aB = { | |
337 | + | let aH = [0, 1, 2, 3, 4, 5] | |
338 | + | let aI = size(aH) | |
339 | + | let aJ = nil | |
340 | + | func aK (aL,aM) = if ((aM >= aI)) | |
341 | + | then aL | |
342 | + | else bk(aL, aH[aM]) | |
331 | 343 | ||
332 | - | func | |
333 | - | then | |
344 | + | func aN (aL,aM) = if ((aM >= aI)) | |
345 | + | then aL | |
334 | 346 | else throw("List size exceeds 6") | |
335 | 347 | ||
336 | - | | |
348 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
337 | 349 | } | |
338 | - | makeString( | |
350 | + | makeString(aB, "_") | |
339 | 351 | } | |
340 | 352 | ||
341 | 353 | ||
342 | - | func | |
343 | - | func | |
344 | - | let | |
345 | - | ( | |
354 | + | func bl (bm,aY,bn,aZ,bo) = { | |
355 | + | func bp (aF,bc) = { | |
356 | + | let bq = ((fraction(bn, bo, s) * aY[bc]) * aZ) | |
357 | + | (aF :+ toString((parseIntValue(bm[bc]) + bq))) | |
346 | 358 | } | |
347 | 359 | ||
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | func | |
353 | - | then | |
354 | - | else | |
360 | + | let aB = { | |
361 | + | let aH = [0, 1, 2, 3, 4, 5] | |
362 | + | let aI = size(aH) | |
363 | + | let aJ = nil | |
364 | + | func aK (aL,aM) = if ((aM >= aI)) | |
365 | + | then aL | |
366 | + | else bp(aL, aH[aM]) | |
355 | 367 | ||
356 | - | func | |
357 | - | then | |
368 | + | func aN (aL,aM) = if ((aM >= aI)) | |
369 | + | then aL | |
358 | 370 | else throw("List size exceeds 6") | |
359 | 371 | ||
360 | - | | |
372 | + | aN(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6) | |
361 | 373 | } | |
362 | - | makeString( | |
374 | + | makeString(aB, "_") | |
363 | 375 | } | |
364 | 376 | ||
365 | 377 | ||
366 | - | func | |
367 | - | then | |
368 | - | else -( | |
378 | + | func br (bs) = if ((bs >= toBigInt(0))) | |
379 | + | then bs | |
380 | + | else -(bs) | |
369 | 381 | ||
370 | 382 | ||
371 | - | let | |
383 | + | let bt = [[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]] | |
372 | 384 | ||
373 | - | func | |
374 | - | let | |
375 | - | let | |
385 | + | func bu (bv,bw) = { | |
386 | + | let bx = toInt((bv % B)) | |
387 | + | let by = if ((bw[0] > bx)) | |
376 | 388 | then "A" | |
377 | - | else if (( | |
389 | + | else if ((bw[1] > bx)) | |
378 | 390 | then "B" | |
379 | - | else if (( | |
391 | + | else if ((bw[2] > bx)) | |
380 | 392 | then "C" | |
381 | - | else if (( | |
393 | + | else if ((bw[3] > bx)) | |
382 | 394 | then "D" | |
383 | - | else if (( | |
395 | + | else if ((bw[4] > bx)) | |
384 | 396 | then "E" | |
385 | 397 | else "F" | |
386 | - | | |
398 | + | by | |
387 | 399 | } | |
388 | 400 | ||
389 | 401 | ||
390 | - | func | |
391 | - | let | |
392 | - | func | |
402 | + | func bz (bA,bB) = { | |
403 | + | let bC = bt[bB] | |
404 | + | func bD (aF,aG) = $Tuple2((((((aF._1 + bu(aF._2, bC)) + bu((aF._2 / B), bC)) + bu((aF._2 / C), bC)) + bu((aF._2 / D), bC)) + bu((aF._2 / E), bC)), (aF._2 / F)) | |
393 | 405 | ||
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | func | |
399 | - | then | |
400 | - | else | |
406 | + | let bE = { | |
407 | + | let aH = [1, 2, 3, 4, 5] | |
408 | + | let aI = size(aH) | |
409 | + | let aJ = $Tuple2("", (bA / A)) | |
410 | + | func aK (aL,aM) = if ((aM >= aI)) | |
411 | + | then aL | |
412 | + | else bD(aL, aH[aM]) | |
401 | 413 | ||
402 | - | func | |
403 | - | then | |
414 | + | func aN (aL,aM) = if ((aM >= aI)) | |
415 | + | then aL | |
404 | 416 | else throw("List size exceeds 5") | |
405 | 417 | ||
406 | - | | |
418 | + | aN(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5) | |
407 | 419 | } | |
408 | - | | |
420 | + | bE._1 | |
409 | 421 | } | |
410 | 422 | ||
411 | 423 | ||
412 | - | func | |
413 | - | let | |
414 | - | [toString(valueOrElse(parseInt( | |
415 | - | then | |
416 | - | else "0_0_0_0_0_0", if ((size(split( | |
417 | - | then | |
418 | - | else "0_0_0_0_0_0", | |
424 | + | func bF (bG) = { | |
425 | + | let bH = split(valueOrElse(getString(bG), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
426 | + | [toString(valueOrElse(parseInt(bH[ar]), 0)), if ((size(split(bH[as], "_")) == l)) | |
427 | + | then bH[as] | |
428 | + | else "0_0_0_0_0_0", if ((size(split(bH[at], "_")) == l)) | |
429 | + | then bH[at] | |
430 | + | else "0_0_0_0_0_0", bH[au]] | |
419 | 431 | } | |
420 | 432 | ||
421 | 433 | ||
422 | - | func | |
434 | + | func bI (aP,bJ,bK,bL,bM) = if (!(sigVerify_8Kb(bL, bM, g))) | |
423 | 435 | then throw("signature does not match") | |
424 | 436 | else { | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | if (( | |
437 | + | let bN = split(toUtf8String(bL), ";") | |
438 | + | let bO = split(split(bN[0], "|")[0], "_") | |
439 | + | let bP = parseIntValue(bO[0]) | |
440 | + | let bQ = parseIntValue(bO[1]) | |
441 | + | let bR = split(bN[1], ":") | |
442 | + | let bS = split(bR[0], "_") | |
443 | + | if ((bS[1] != "E")) | |
432 | 444 | then throw("expedition target location type should be E") | |
433 | 445 | else { | |
434 | - | let | |
435 | - | if (if (( | |
446 | + | let bT = parseIntValue(bR[1]) | |
447 | + | if (if ((bT > (lastBlock.timestamp + t))) | |
436 | 448 | then true | |
437 | - | else ((lastBlock.timestamp - | |
449 | + | else ((lastBlock.timestamp - t) > bT)) | |
438 | 450 | then throw("signature outdated") | |
439 | 451 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | if (( | |
445 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
446 | - | else if ((0 >= | |
452 | + | let bU = toString(bJ) | |
453 | + | let ag = valueOrErrorMessage(getString(ab(bU)), "You don't have a duck staked") | |
454 | + | let bV = ai(ag) | |
455 | + | let bW = valueOrElse(getInteger(bV), 100) | |
456 | + | if ((bW != bP)) | |
457 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bV), 100))) + " from state does not match one from flight log=") + toString(bP))) | |
458 | + | else if ((0 >= bP)) | |
447 | 459 | then throw("You can't fly with zero health") | |
448 | - | else if ((0 >= | |
449 | - | then $Tuple2(((if (!( | |
450 | - | then [ScriptTransfer( | |
451 | - | else nil) :+ IntegerEntry( | |
460 | + | else if ((0 >= bQ)) | |
461 | + | then $Tuple2(((if (!(aP)) | |
462 | + | then [ScriptTransfer(bJ, y, b)] | |
463 | + | else nil) :+ IntegerEntry(bV, 0)), "") | |
452 | 464 | else { | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | $Tuple2([IntegerEntry( | |
465 | + | let bG = af(ag) | |
466 | + | let bX = bF(bG) | |
467 | + | let bY = split(bX[at], "_") | |
468 | + | let bZ = makeString(aO(aP, bY, x), "_") | |
469 | + | let ca = br(toBigInt(bK)) | |
470 | + | let cb = valueOrElse(getInteger(K()), (J + 1)) | |
471 | + | let M = toString(cb) | |
472 | + | let bB = toInt((ca % A)) | |
473 | + | let bf = bz(ca, bB) | |
474 | + | let cc = H[bB] | |
475 | + | let cd = Issue(N(M, "S"), makeString([M, "S", bf, cc], "_"), 1, 0, false) | |
476 | + | let Q = calculateAssetId(cd) | |
477 | + | let ce = toBase58String(Q) | |
478 | + | $Tuple2([IntegerEntry(K(), (cb + 1)), cd, StringEntry(L(M), ce), StringEntry(P(ce), bU), StringEntry(ae(M), bU), IntegerEntry(T(ce), 0), IntegerEntry(U(ce, bU), 0), ScriptTransfer(bJ, 1, Q), StringEntry(ah(ag), makeString([cc, "L", ce], "_")), IntegerEntry(bV, bQ), StringEntry(bG, makeString([bX[ar], bX[as], bZ, bX[au]], ":"))], ce) | |
467 | 479 | } | |
468 | 480 | } | |
469 | 481 | } | |
470 | 482 | } | |
471 | 483 | ||
472 | 484 | ||
473 | - | func | |
474 | - | let | |
475 | - | let | |
476 | - | then | |
485 | + | func cf (cg,ch) = { | |
486 | + | let ci = valueOrElse(getInteger(T(cg)), 0) | |
487 | + | let cj = valueOrElse(getInteger(Y(I, cg)), if (valueOrElse(getBoolean(W(cg)), false)) | |
488 | + | then ch | |
477 | 489 | else 0) | |
478 | - | (( | |
490 | + | ((r + fraction(r, ci, 4)) + fraction(r, (cj * 3), (ch * 20))) | |
479 | 491 | } | |
480 | 492 | ||
481 | 493 | ||
482 | - | func | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | if (( | |
487 | - | then throw((("Duck location type is " + | |
494 | + | func ck (cl) = { | |
495 | + | let ag = valueOrErrorMessage(getString(ab(cl)), "You don't have a duck staked") | |
496 | + | let cm = valueOrElse(getString(ah(ag)), k) | |
497 | + | let cn = split(value(cm), "_") | |
498 | + | if ((cn[ap] != "L")) | |
499 | + | then throw((("Duck location type is " + cn[ap]) + ", but should be L")) | |
488 | 500 | else { | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if (( | |
501 | + | let cg = cn[aq] | |
502 | + | let co = value(assetInfo(fromBase58String(cg))) | |
503 | + | let cp = S(cg) | |
504 | + | let cq = valueOrErrorMessage(getInteger(cp), (("Your duck is on " + co.name) + ", which is not staked")) | |
505 | + | let cr = valueOrErrorMessage(getString(P(cg)), (("NFT " + co.name) + " is orphaned")) | |
506 | + | if ((cr != cl)) | |
495 | 507 | then throw((i + " is not yours")) | |
496 | 508 | else { | |
497 | - | let | |
498 | - | $Tuple4( | |
509 | + | let cs = split(co.description, "_") | |
510 | + | $Tuple4(ag, cg, cs, cq) | |
499 | 511 | } | |
500 | 512 | } | |
501 | 513 | } | |
502 | 514 | ||
503 | 515 | ||
504 | - | func cn (cf,bd) = { | |
505 | - | let co = ce(cf) | |
506 | - | let I = co._3[af] | |
507 | - | let aS = aY(co._3[ag]) | |
508 | - | let bh = (lastBlock.timestamp - co._4) | |
509 | - | if ((0 > bh)) | |
510 | - | then throw(((("Saved timestamp is in future, saved = " + toString(co._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
516 | + | func ct (cl,bj) = if ((0 > bj)) | |
517 | + | then throw("Negative amount") | |
518 | + | else { | |
519 | + | let cu = ck(cl) | |
520 | + | let O = cu._3[al] | |
521 | + | let aY = be(cu._3[am]) | |
522 | + | let bn = (lastBlock.timestamp - cu._4) | |
523 | + | if ((0 > bn)) | |
524 | + | then throw(((("Saved timestamp is in future, saved = " + toString(cu._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
525 | + | else { | |
526 | + | let ch = bg(O) | |
527 | + | let cv = cf(cu._2, ch) | |
528 | + | let cw = fraction(bn, (cv * ch), s) | |
529 | + | if ((bj > cw)) | |
530 | + | then throw(((("Not enough resources, available = " + toString(cw)) + ", requested = ") + toString(bj))) | |
531 | + | else { | |
532 | + | let cx = fraction((cw - bj), s, (cv * ch)) | |
533 | + | let cy = (lastBlock.timestamp - cx) | |
534 | + | let bG = af(cu._1) | |
535 | + | let bX = bF(bG) | |
536 | + | let bm = split(bX[as], "_") | |
537 | + | let cz = bl(bm, aY, (bn - cx), (ch / m), cv) | |
538 | + | $Tuple3([IntegerEntry(S(cu._2), cy), IntegerEntry(ac(i, cu._2, cl), cy)], bG, [bX[ar], cz, bX[at], bX[au]]) | |
539 | + | } | |
540 | + | } | |
541 | + | } | |
542 | + | ||
543 | + | ||
544 | + | func cA (cl,cg,ch) = { | |
545 | + | let cp = S(cg) | |
546 | + | let cq = value(getInteger(cp)) | |
547 | + | let cw = (fraction((lastBlock.timestamp - cq), cf(cg, ch), s) * ch) | |
548 | + | ct(cl, cw) | |
549 | + | } | |
550 | + | ||
551 | + | ||
552 | + | func cB (aP,bJ,cC) = { | |
553 | + | let cl = toString(bJ) | |
554 | + | let cu = ck(cl) | |
555 | + | let ch = bg(cu._3[al]) | |
556 | + | let cD = T(cu._2) | |
557 | + | let cE = valueOrElse(getInteger(cD), 0) | |
558 | + | if ((cE >= 3)) | |
559 | + | then throw("Currently max infrastructure level = 3") | |
511 | 560 | else { | |
512 | - | let cb = ba(I) | |
513 | - | let cp = bZ(co._2, cb) | |
514 | - | let cq = fraction(bh, (cp * cb), n) | |
515 | - | if ((bd > cq)) | |
516 | - | then throw(((("Not enough resources, available = " + toString(cq)) + ", requested = ") + toString(bd))) | |
561 | + | let cF = (cE + 1) | |
562 | + | let cG = fraction(w, (ch * cF), m) | |
563 | + | if (if (!(aP)) | |
564 | + | then (cC != cG) | |
565 | + | else false) | |
566 | + | then throw(("Payment attached should be " + toString(cG))) | |
517 | 567 | else { | |
518 | - | let cr = fraction((cq - bd), n, (cp * cb)) | |
519 | - | let cs = (lastBlock.timestamp - cr) | |
520 | - | let bA = Z(co._1) | |
521 | - | let bR = bz(bA) | |
522 | - | let bg = split(bR[am], "_") | |
523 | - | let ct = bf(bg, aS, (bh - cr), (cb / 25), cp) | |
524 | - | $Tuple3([IntegerEntry(M(co._2), cs), IntegerEntry(W(i, co._2, cf), cs)], bA, [bR[al], ct, bR[an], bR[ao]]) | |
568 | + | let bG = af(cu._1) | |
569 | + | let bX = bF(bG) | |
570 | + | let bY = split(bX[at], "_") | |
571 | + | let bZ = makeString(aO(aP, bY, fraction(v, (ch * cF), m)), "_") | |
572 | + | let cH = cA(cl, cu._2, ch) | |
573 | + | $Tuple2(([IntegerEntry(cD, cF), IntegerEntry(U(cu._2, cl), cF), StringEntry(bG, makeString([bX[ar], cH._3[as], bZ, bX[au]], ":"))] ++ cH._1), cF) | |
525 | 574 | } | |
526 | 575 | } | |
527 | 576 | } | |
528 | 577 | ||
529 | 578 | ||
530 | - | func cu (cf,ca,cb) = { | |
531 | - | let cj = M(ca) | |
532 | - | let ck = value(getInteger(cj)) | |
533 | - | let cq = (fraction((lastBlock.timestamp - ck), bZ(ca, cb), n) * cb) | |
534 | - | cn(cf, cq) | |
535 | - | } | |
536 | - | ||
537 | - | ||
538 | - | func cv (aJ,bD,cw) = { | |
539 | - | let cf = toString(bD) | |
540 | - | let co = ce(cf) | |
541 | - | let cb = ba(co._3[af]) | |
542 | - | let cx = N(co._2) | |
543 | - | let cy = valueOrElse(getInteger(cx), 0) | |
544 | - | if ((cy >= 3)) | |
545 | - | then throw("Currently max infrastructure level = 3") | |
546 | - | else { | |
547 | - | let cz = (cy + 1) | |
548 | - | let cA = fraction(r, (cb * cz), 25) | |
549 | - | if (if (!(aJ)) | |
550 | - | then (cw != cA) | |
551 | - | else false) | |
552 | - | then throw(("Payment attached should be " + toString(cA))) | |
553 | - | else { | |
554 | - | let bA = Z(co._1) | |
555 | - | let bR = bz(bA) | |
556 | - | let bS = split(bR[an], "_") | |
557 | - | let bT = makeString(aI(aJ, bS, fraction(q, (cb * cz), 25)), "_") | |
558 | - | let cB = cu(cf, co._2, cb) | |
559 | - | $Tuple2(([IntegerEntry(cx, cz), IntegerEntry(O(co._2, cf), cz), StringEntry(bA, makeString([bR[al], cB._3[am], bT, bR[ao]], ":"))] ++ cB._1), cz) | |
560 | - | } | |
561 | - | } | |
562 | - | } | |
563 | - | ||
564 | - | ||
565 | - | func cC (cf) = { | |
566 | - | let co = ce(cf) | |
567 | - | let ca = co._2 | |
568 | - | let cD = Q(ca) | |
569 | - | if (valueOrElse(getBoolean(cD), false)) | |
579 | + | func cI (cl) = { | |
580 | + | let cu = ck(cl) | |
581 | + | let cg = cu._2 | |
582 | + | let cJ = W(cg) | |
583 | + | if (valueOrElse(getBoolean(cJ), false)) | |
570 | 584 | then throw("Presale artifact is already activated") | |
571 | - | else if ((parseIntValue( | |
572 | - | then throw((((i + " ") + | |
585 | + | else if ((parseIntValue(cu._3[ak]) > J)) | |
586 | + | then throw((((i + " ") + cg) + " is not eligible for presale artifact")) | |
573 | 587 | else { | |
574 | - | let | |
575 | - | let | |
576 | - | ((((( | |
588 | + | let ch = bg(cu._3[al]) | |
589 | + | let cH = cA(cl, cg, ch) | |
590 | + | (((((cH._1 :+ BooleanEntry(cJ, true)) :+ BooleanEntry(X(cg, cl), true)) :+ IntegerEntry(Y(I, cg), ch)) :+ IntegerEntry(aa(I, cg, cl), ch)) :+ StringEntry(cH._2, makeString(cH._3, ":"))) | |
577 | 591 | } | |
578 | 592 | } | |
579 | 593 | ||
580 | 594 | ||
581 | - | func | |
582 | - | let | |
583 | - | func | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | if (( | |
595 | + | func cK (cL,cF,cM,cl,cN,bK,cO) = { | |
596 | + | let ag = valueOrErrorMessage(getString(ab(cl)), "You don't have a duck staked") | |
597 | + | func cP (aF,cg) = { | |
598 | + | let co = value(assetInfo(fromBase58String(cg))) | |
599 | + | let cp = S(cg) | |
600 | + | let cq = valueOrErrorMessage(getInteger(cp), (("NFT " + co.name) + " is not staked")) | |
601 | + | let cr = valueOrErrorMessage(getString(P(cg)), (("NFT " + co.name) + " is orphaned")) | |
602 | + | if ((cr != cl)) | |
589 | 603 | then throw((i + " is not yours")) | |
590 | 604 | else { | |
591 | - | let | |
592 | - | let | |
593 | - | if (if (( | |
594 | - | then ( | |
605 | + | let cs = split(co.description, "_") | |
606 | + | let cc = cs[an] | |
607 | + | if (if ((aF._3 != "")) | |
608 | + | then (aF._3 != cc) | |
595 | 609 | else false) | |
596 | 610 | then throw("Lands should be on the same continent to merge") | |
597 | 611 | else { | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | then | |
612 | + | let O = cs[al] | |
613 | + | let cQ = aF._1 | |
614 | + | let bc = valueOrErrorMessage(indexOf(cQ, O), "You haven't passed all the lands needed") | |
615 | + | let cR = (take(cQ, bc) + drop(cQ, (bc + 1))) | |
616 | + | let ch = bg(O) | |
617 | + | let cS = (aF._2 + valueOrElse(getInteger(Y(I, cg)), if (valueOrElse(getBoolean(W(cg)), false)) | |
618 | + | then ch | |
605 | 619 | else 0)) | |
606 | - | let | |
607 | - | let | |
608 | - | let c = | |
620 | + | let ci = valueOrElse(getInteger(T(cg)), 0) | |
621 | + | let cT = { | |
622 | + | let c = O | |
609 | 623 | if (("S" == c)) | |
610 | 624 | then 3 | |
611 | 625 | else if (("M" == c)) | |
612 | 626 | then 4 | |
613 | 627 | else if (("L" == c)) | |
614 | 628 | then 5 | |
615 | 629 | else if (("XL" == c)) | |
616 | 630 | then 6 | |
617 | 631 | else throw("Only S, M, L, XL can merge") | |
618 | 632 | } | |
619 | - | if (( | |
633 | + | if ((ci != cT)) | |
620 | 634 | then throw("All lands should be maxed to merge") | |
621 | 635 | else { | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | if ((0 > | |
626 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
636 | + | let M = cs[ak] | |
637 | + | let aY = be(cs[am]) | |
638 | + | let bn = (lastBlock.timestamp - cq) | |
639 | + | if ((0 > bn)) | |
640 | + | then throw(((("Saved timestamp is in future, saved = " + toString(cq)) + ", current = ") + toString(lastBlock.timestamp))) | |
627 | 641 | else { | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | $Tuple6( | |
642 | + | let cv = cf(cg, ch) | |
643 | + | let cz = bl(split(aF._4, "_"), aY, bn, (ch / m), cv) | |
644 | + | let aA = aW(split(aF._6, "_"), aY, (ch / m), -1) | |
645 | + | $Tuple6(cR, cS, cc, cz, (((((((((((((aF._5 :+ DeleteEntry(S(cg))) :+ DeleteEntry(ac(i, cg, cl))) :+ DeleteEntry(L(M))) :+ DeleteEntry(N(M, O))) :+ DeleteEntry(P(cg))) :+ DeleteEntry(T(cg))) :+ DeleteEntry(U(cg, cl))) :+ DeleteEntry(W(cg))) :+ DeleteEntry(X(cg, cl))) :+ DeleteEntry(Y(I, cg))) :+ DeleteEntry(aa(I, cg, cl))) :+ DeleteEntry(ae(M))) :+ Burn(fromBase58String(cg), 1)), aA) | |
632 | 646 | } | |
633 | 647 | } | |
634 | 648 | } | |
635 | 649 | } | |
636 | 650 | } | |
637 | 651 | ||
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | func | |
646 | - | then | |
647 | - | else | |
652 | + | let bG = af(ag) | |
653 | + | let bX = bF(bG) | |
654 | + | let cU = valueOrElse(getString(aj()), "0_0_0_0_0_0") | |
655 | + | let aB = { | |
656 | + | let aH = cN | |
657 | + | let aI = size(aH) | |
658 | + | let aJ = $Tuple6(cM, 0, "", bX[as], nil, cU) | |
659 | + | func aK (aL,aM) = if ((aM >= aI)) | |
660 | + | then aL | |
661 | + | else cP(aL, aH[aM]) | |
648 | 662 | ||
649 | - | func | |
650 | - | then | |
663 | + | func aN (aL,aM) = if ((aM >= aI)) | |
664 | + | then aL | |
651 | 665 | else throw("List size exceeds 4") | |
652 | 666 | ||
653 | - | | |
667 | + | aN(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4) | |
654 | 668 | } | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | $Tuple2(((((((((((((( | |
669 | + | let cc = aB._3 | |
670 | + | let bB = valueOrErrorMessage(indexOf(H, cc), ("Unknown continent: " + cc)) | |
671 | + | let bf = bz(br(toBigInt(bK)), bB) | |
672 | + | let cb = valueOrElse(getInteger(K()), (J + 1)) | |
673 | + | let cV = toString(cb) | |
674 | + | let cd = Issue(N(cV, cL), makeString([cV, cL, bf, cc], "_"), 1, 0, false) | |
675 | + | let Q = calculateAssetId(cd) | |
676 | + | let cW = toBase58String(Q) | |
677 | + | let bZ = makeString(aO((cO > 0), split(bX[at], "_"), cO), "_") | |
678 | + | $Tuple2((((((((((((((aB._5 :+ IntegerEntry(K(), (cb + 1))) :+ cd) :+ StringEntry(L(cV), cW)) :+ StringEntry(P(cW), cl)) :+ StringEntry(ae(cV), cl)) :+ IntegerEntry(Y(I, cW), aB._2)) :+ IntegerEntry(aa(I, cW, cl), aB._2)) :+ IntegerEntry(T(cW), cF)) :+ IntegerEntry(U(cW, cl), cF)) :+ StringEntry(bG, makeString([bX[ar], aB._4, bZ, bX[au]], ":"))) :+ StringEntry(aj(), aB._6)) :+ StringEntry(ah(ag), makeString([cc, "L", cW], "_"))) :+ ScriptTransfer(addressFromStringValue(cl), 1, Q)), cW) | |
665 | 679 | } | |
666 | 680 | ||
667 | 681 | ||
668 | - | func | |
682 | + | func cX (cl,cN,bK) = cK("M", 3, "SSSS", cl, cN, bK, 0) | |
669 | 683 | ||
670 | 684 | ||
671 | - | func | |
672 | - | let | |
673 | - | if (if (!( | |
674 | - | then ( | |
685 | + | func cY (cl,cN,bK,aP,cC) = { | |
686 | + | let cG = (w * 4) | |
687 | + | if (if (!(aP)) | |
688 | + | then (cC != cG) | |
675 | 689 | else false) | |
676 | - | then throw(("Payment attached should be " + toString( | |
677 | - | else | |
690 | + | then throw(("Payment attached should be " + toString(cG))) | |
691 | + | else cK("L", 4, "SMM", cl, cN, bK, (v * 4)) | |
678 | 692 | } | |
679 | 693 | ||
680 | 694 | ||
681 | - | func | |
682 | - | let | |
683 | - | if (if (!( | |
684 | - | then ( | |
695 | + | func cZ (cl,cN,bK,aP,cC) = { | |
696 | + | let cG = (w * 47) | |
697 | + | if (if (!(aP)) | |
698 | + | then (cC != cG) | |
685 | 699 | else false) | |
686 | - | then throw(("Payment attached should be " + toString( | |
687 | - | else | |
700 | + | then throw(("Payment attached should be " + toString(cG))) | |
701 | + | else cK("XL", 5, "SSSML", cl, cN, bK, (v * 47)) | |
688 | 702 | } | |
689 | 703 | ||
690 | 704 | ||
691 | - | func | |
692 | - | let | |
693 | - | if (if (!( | |
694 | - | then ( | |
705 | + | func da (cl,cN,bK,aP,cC) = { | |
706 | + | let cG = (w * 54) | |
707 | + | if (if (!(aP)) | |
708 | + | then (cC != cG) | |
695 | 709 | else false) | |
696 | - | then throw(("Payment attached should be " + toString( | |
697 | - | else | |
710 | + | then throw(("Payment attached should be " + toString(cG))) | |
711 | + | else cK("XXL", 6, "LXL", cl, cN, bK, (v * 54)) | |
698 | 712 | } | |
699 | 713 | ||
700 | 714 | ||
701 | - | func | |
702 | - | let | |
703 | - | let c = size( | |
715 | + | func db (aP,cl,cC,cN,bK) = { | |
716 | + | let dc = { | |
717 | + | let c = size(cN) | |
704 | 718 | if ((4 == c)) | |
705 | - | then | |
719 | + | then cX(cl, cN, bK) | |
706 | 720 | else if ((3 == c)) | |
707 | - | then | |
721 | + | then cY(cl, cN, bK, aP, cC) | |
708 | 722 | else if ((5 == c)) | |
709 | - | then | |
723 | + | then cZ(cl, cN, bK, aP, cC) | |
710 | 724 | else if ((2 == c)) | |
711 | - | then | |
725 | + | then da(cl, cN, bK, aP, cC) | |
712 | 726 | else throw("Unknown merge") | |
713 | 727 | } | |
714 | - | | |
728 | + | dc | |
715 | 729 | } | |
716 | 730 | ||
717 | 731 | ||
718 | - | @Callable(aW) | |
719 | - | func stakeLand () = { | |
720 | - | let cX = value(aW.payments[0]) | |
721 | - | let K = value(cX.assetId) | |
722 | - | let cY = toString(aW.caller) | |
723 | - | if ((cX.amount != 1)) | |
724 | - | then throw((("NFT " + i) + " token should be attached as payment")) | |
725 | - | else { | |
726 | - | let ci = value(assetInfo(K)) | |
727 | - | if ((ci.issuer != this)) | |
728 | - | then throw("Unknown issuer of token") | |
729 | - | else if (!(contains(ci.name, i))) | |
730 | - | then throw((("Only NFT " + i) + " tokens are accepted")) | |
731 | - | else { | |
732 | - | let cZ = drop(ci.name, 4) | |
733 | - | let G = if (contains(cZ, "XXL")) | |
734 | - | then dropRight(cZ, 3) | |
735 | - | else if (contains(cZ, "XL")) | |
736 | - | then dropRight(cZ, 2) | |
737 | - | else dropRight(cZ, 1) | |
738 | - | let da = valueOrErrorMessage(parseInt(G), ("Cannot parse land number from " + ci.name)) | |
739 | - | let ca = toBase58String(K) | |
740 | - | let cj = M(ca) | |
741 | - | if (isDefined(getInteger(cj))) | |
742 | - | then throw((("NFT " + ci.name) + " is already staked")) | |
743 | - | else { | |
744 | - | let cm = split(ci.description, "_") | |
745 | - | let aS = aY(cm[ag]) | |
746 | - | let au = aX(aS, (ba(cm[af]) / 25), 1) | |
747 | - | [IntegerEntry(cj, lastBlock.timestamp), IntegerEntry(W(i, ca, cY), lastBlock.timestamp), StringEntry(J(ca), cY), StringEntry(Y(G), cY), StringEntry(ad(), au)] | |
748 | - | } | |
749 | - | } | |
750 | - | } | |
751 | - | } | |
752 | - | ||
753 | - | ||
754 | - | ||
755 | - | @Callable(aW) | |
756 | - | func unstakeLand (db) = if ((size(aW.payments) != 0)) | |
757 | - | then throw("unstake doesn't require any payments") | |
732 | + | @Callable(bc) | |
733 | + | func stakeLand () = if ((size(bc.payments) != 1)) | |
734 | + | then throw("Exactly one payment required") | |
758 | 735 | else { | |
759 | - | let cf = toString(aW.caller) | |
760 | - | let co = ce(cf) | |
761 | - | let aS = aY(co._3[ag]) | |
762 | - | let cb = ba(co._3[af]) | |
763 | - | let au = aX(aS, (cb / 25), -1) | |
764 | - | let cB = cu(cf, co._2, cb) | |
765 | - | [ScriptTransfer(aW.caller, 1, fromBase58String(co._2)), DeleteEntry(M(co._2)), DeleteEntry(W(i, co._2, cf)), StringEntry(ad(), au), StringEntry(cB._2, makeString(cB._3, ":"))] | |
736 | + | let dd = value(bc.payments[0]) | |
737 | + | let Q = value(dd.assetId) | |
738 | + | let de = toString(bc.caller) | |
739 | + | if ((dd.amount != 1)) | |
740 | + | then throw((("NFT " + i) + " token should be attached as payment")) | |
741 | + | else { | |
742 | + | let co = value(assetInfo(Q)) | |
743 | + | if ((co.issuer != this)) | |
744 | + | then throw("Unknown issuer of token") | |
745 | + | else if (!(contains(co.name, i))) | |
746 | + | then throw((("Only NFT " + i) + " tokens are accepted")) | |
747 | + | else { | |
748 | + | let df = drop(co.name, 4) | |
749 | + | let M = if (contains(df, "XXL")) | |
750 | + | then dropRight(df, 3) | |
751 | + | else if (contains(df, "XL")) | |
752 | + | then dropRight(df, 2) | |
753 | + | else dropRight(df, 1) | |
754 | + | if (!(isDefined(parseInt(M)))) | |
755 | + | then throw(("Cannot parse land number from " + co.name)) | |
756 | + | else { | |
757 | + | let cg = toBase58String(Q) | |
758 | + | let cp = S(cg) | |
759 | + | if (isDefined(getInteger(cp))) | |
760 | + | then throw((("NFT " + co.name) + " is already staked")) | |
761 | + | else { | |
762 | + | let cs = split(co.description, "_") | |
763 | + | let aY = be(cs[am]) | |
764 | + | let aA = bd(aY, (bg(cs[al]) / m), 1) | |
765 | + | [IntegerEntry(cp, lastBlock.timestamp), IntegerEntry(ac(i, cg, de), lastBlock.timestamp), StringEntry(P(cg), de), StringEntry(ae(M), de), StringEntry(aj(), aA)] | |
766 | + | } | |
767 | + | } | |
768 | + | } | |
769 | + | } | |
766 | 770 | } | |
767 | 771 | ||
768 | 772 | ||
769 | 773 | ||
770 | - | @Callable(aW) | |
771 | - | func stakeDuck () = { | |
772 | - | let cX = value(aW.payments[0]) | |
773 | - | let K = value(cX.assetId) | |
774 | - | let cY = toString(aW.caller) | |
775 | - | if ((cX.amount != 1)) | |
776 | - | then throw((("NFT " + j) + " token should be attached as payment")) | |
777 | - | else { | |
778 | - | let ci = value(assetInfo(K)) | |
779 | - | if (if ((ci.issuer != d)) | |
780 | - | then (ci.issuer != e) | |
781 | - | else false) | |
782 | - | then throw((("Unknown issuer of " + j) + " token")) | |
783 | - | else if (!(contains(ci.name, j))) | |
784 | - | then throw((("Only NFT " + j) + " tokens are accepted")) | |
785 | - | else { | |
786 | - | let dc = toBase58String(K) | |
787 | - | let cj = M(dc) | |
788 | - | if (isDefined(getInteger(cj))) | |
789 | - | then throw((("NFT " + ci.name) + " is already staked")) | |
790 | - | else if (isDefined(getString(V(cY)))) | |
791 | - | then throw(("You already staked one duck: " + ci.name)) | |
792 | - | else { | |
793 | - | let dd = ab(dc) | |
794 | - | let de = getString(dd) | |
795 | - | let bP = ac(dc) | |
796 | - | let df = getInteger(bP) | |
797 | - | let bA = Z(dc) | |
798 | - | let dg = getString(bA) | |
799 | - | ([IntegerEntry(cj, lastBlock.timestamp), IntegerEntry(W(j, toBase58String(K), cY), lastBlock.timestamp), StringEntry(L(dc), cY), StringEntry(V(cY), dc)] ++ (if (isDefined(de)) | |
800 | - | then nil | |
801 | - | else ([StringEntry(dd, k)] ++ (if (isDefined(df)) | |
802 | - | then nil | |
803 | - | else ([IntegerEntry(bP, 100)] ++ (if (isDefined(dg)) | |
804 | - | then nil | |
805 | - | else [StringEntry(bA, "0:0_0_0_0_0_0:0_0_0_0_0_0:")])))))) | |
806 | - | } | |
807 | - | } | |
808 | - | } | |
809 | - | } | |
774 | + | @Callable(bc) | |
775 | + | func unstakeLand (dg) = if ((size(bc.payments) != 0)) | |
776 | + | then throw("unstake doesn't require any payments") | |
777 | + | else { | |
778 | + | let cl = toString(bc.caller) | |
779 | + | let cu = ck(cl) | |
780 | + | let aY = be(cu._3[am]) | |
781 | + | let ch = bg(cu._3[al]) | |
782 | + | let aA = bd(aY, (ch / m), -1) | |
783 | + | let cH = cA(cl, cu._2, ch) | |
784 | + | [ScriptTransfer(bc.caller, 1, fromBase58String(cu._2)), DeleteEntry(S(cu._2)), DeleteEntry(ac(i, cu._2, cl)), StringEntry(aj(), aA), StringEntry(cH._2, makeString(cH._3, ":"))] | |
785 | + | } | |
810 | 786 | ||
811 | 787 | ||
812 | 788 | ||
813 | - | @Callable(aW) | |
814 | - | func unstakeDuck (dc) = if ((size(aW.payments) != 0)) | |
789 | + | @Callable(bc) | |
790 | + | func stakeDuck () = if ((size(bc.payments) != 1)) | |
791 | + | then throw("Exactly one payment required") | |
792 | + | else { | |
793 | + | let dd = value(bc.payments[0]) | |
794 | + | let Q = value(dd.assetId) | |
795 | + | let de = toString(bc.caller) | |
796 | + | if ((dd.amount != 1)) | |
797 | + | then throw((("NFT " + j) + " token should be attached as payment")) | |
798 | + | else { | |
799 | + | let co = value(assetInfo(Q)) | |
800 | + | if (if ((co.issuer != d)) | |
801 | + | then (co.issuer != e) | |
802 | + | else false) | |
803 | + | then throw((("Unknown issuer of " + j) + " token")) | |
804 | + | else if (!(contains(co.name, j))) | |
805 | + | then throw((("Only NFT " + j) + " tokens are accepted")) | |
806 | + | else { | |
807 | + | let dh = toBase58String(Q) | |
808 | + | let cp = S(dh) | |
809 | + | if (isDefined(getInteger(cp))) | |
810 | + | then throw((("NFT " + co.name) + " is already staked")) | |
811 | + | else if (isDefined(getString(ab(de)))) | |
812 | + | then throw(("You already staked one duck: " + co.name)) | |
813 | + | else { | |
814 | + | let di = ah(dh) | |
815 | + | let dj = getString(di) | |
816 | + | let bG = af(dh) | |
817 | + | let dk = getString(bG) | |
818 | + | ([IntegerEntry(cp, lastBlock.timestamp), IntegerEntry(ac(j, toBase58String(Q), de), lastBlock.timestamp), StringEntry(R(dh), de), StringEntry(ab(de), dh)] ++ (if (isDefined(dj)) | |
819 | + | then nil | |
820 | + | else ([StringEntry(di, k)] ++ (if (isDefined(dk)) | |
821 | + | then nil | |
822 | + | else ([StringEntry(bG, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(ai(dh), 100)))))) | |
823 | + | } | |
824 | + | } | |
825 | + | } | |
826 | + | } | |
827 | + | ||
828 | + | ||
829 | + | ||
830 | + | @Callable(bc) | |
831 | + | func unstakeDuck (dh) = if ((size(bc.payments) != 0)) | |
815 | 832 | then throw("unstake doesn't require any payments") | |
816 | 833 | else { | |
817 | - | let K = fromBase58String(dc) | |
818 | - | let cY = toString(aW.caller) | |
819 | - | let ci = value(assetInfo(K)) | |
820 | - | if (if ((ci.issuer != d)) | |
821 | - | then (ci.issuer != e) | |
822 | - | else false) | |
823 | - | then throw((("Unknown issuer of " + j) + " token")) | |
824 | - | else if (!(contains(ci.name, j))) | |
825 | - | then throw((("Only NFT " + j) + " tokens can be unstaked")) | |
834 | + | let Q = fromBase58String(dh) | |
835 | + | let de = toString(bc.caller) | |
836 | + | let co = value(assetInfo(Q)) | |
837 | + | let cp = S(toBase58String(Q)) | |
838 | + | if (!(isDefined(cp))) | |
839 | + | then throw((("NFT " + co.name) + " is not staked")) | |
840 | + | else if (!(isDefined(ab(de)))) | |
841 | + | then throw((("The duck " + co.name) + " is not staked")) | |
826 | 842 | else { | |
827 | - | let cj = M(toBase58String(K)) | |
828 | - | if (!(isDefined(cj))) | |
829 | - | then throw((("NFT " + ci.name) + " is not staked")) | |
830 | - | else if (!(isDefined(V(cY)))) | |
831 | - | then throw((("The duck " + ci.name) + " is not staked")) | |
832 | - | else { | |
833 | - | let cl = valueOrErrorMessage(getString(L(toBase58String(K))), (("NFT " + ci.name) + " is orphaned")) | |
834 | - | if ((cl != cY)) | |
835 | - | then throw("Staked NFT is not yours") | |
836 | - | else [ScriptTransfer(aW.caller, 1, K), DeleteEntry(cj), DeleteEntry(ab(dc)), DeleteEntry(L(dc)), DeleteEntry(W(j, dc, cY)), DeleteEntry(V(cY))] | |
837 | - | } | |
843 | + | let cr = valueOrErrorMessage(getString(R(toBase58String(Q))), (("NFT " + co.name) + " is orphaned")) | |
844 | + | if ((cr != de)) | |
845 | + | then throw("Staked NFT is not yours") | |
846 | + | else { | |
847 | + | let bV = ai(dh) | |
848 | + | let dl = getInteger(bV) | |
849 | + | if ((dl != 100)) | |
850 | + | then throw("Please heal your duck before unstaking") | |
851 | + | else [ScriptTransfer(bc.caller, 1, Q), DeleteEntry(cp), DeleteEntry(bV), DeleteEntry(ah(dh)), DeleteEntry(R(dh)), DeleteEntry(ac(j, dh, de)), DeleteEntry(ab(de))] | |
852 | + | } | |
838 | 853 | } | |
839 | 854 | } | |
840 | 855 | ||
841 | 856 | ||
842 | 857 | ||
843 | - | @Callable( | |
844 | - | func claimRes ( | |
858 | + | @Callable(bc) | |
859 | + | func claimRes (bj,dg) = if ((size(bc.payments) != 0)) | |
845 | 860 | then throw("claimRes doesn't require any payments") | |
846 | 861 | else { | |
847 | - | let | |
848 | - | let | |
849 | - | $Tuple2(( | |
862 | + | let cl = toString(bc.originCaller) | |
863 | + | let aV = ct(cl, bj) | |
864 | + | $Tuple2((aV._1 :+ StringEntry(aV._2, makeString(aV._3, ":"))), aV._3[as]) | |
850 | 865 | } | |
851 | 866 | ||
852 | 867 | ||
853 | 868 | ||
854 | - | @Callable( | |
855 | - | func flight ( | |
869 | + | @Callable(bc) | |
870 | + | func flight (bL,bM) = if (!(sigVerify_8Kb(bL, bM, g))) | |
856 | 871 | then throw("signature does not match") | |
857 | - | else if ((size( | |
872 | + | else if ((size(bc.payments) != 0)) | |
858 | 873 | then throw("flight doesn't require any payments") | |
859 | 874 | else { | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | if (if (( | |
875 | + | let bN = split(toUtf8String(bL), ";") | |
876 | + | let bO = split(split(bN[0], "|")[0], "_") | |
877 | + | let bP = parseIntValue(bO[0]) | |
878 | + | let bQ = parseIntValue(bO[1]) | |
879 | + | let dm = split(bN[1], ":") | |
880 | + | let dn = dm[0] | |
881 | + | let bT = parseIntValue(dm[1]) | |
882 | + | if (if ((bT > (lastBlock.timestamp + t))) | |
868 | 883 | then true | |
869 | - | else ((lastBlock.timestamp - | |
884 | + | else ((lastBlock.timestamp - t) > bT)) | |
870 | 885 | then throw("signature outdated") | |
871 | 886 | else { | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | if (( | |
876 | - | then throw(((("oldHealth=" + toString(valueOrElse(getInteger( | |
877 | - | else if ((0 >= | |
887 | + | let ag = valueOrErrorMessage(getString(ab(toString(bc.caller))), "You don't have a duck staked") | |
888 | + | let bV = ai(ag) | |
889 | + | let bW = valueOrElse(getInteger(bV), 100) | |
890 | + | if ((bW != bP)) | |
891 | + | then throw(((("oldHealth=" + toString(valueOrElse(getInteger(bV), 100))) + " from state does not match one from flight log=") + toString(bP))) | |
892 | + | else if ((0 >= bP)) | |
878 | 893 | then throw("You can't fly with zero health") | |
879 | 894 | else { | |
880 | - | let | |
881 | - | let | |
882 | - | if (( | |
895 | + | let di = ah(ag) | |
896 | + | let cm = valueOrElse(getString(di), k) | |
897 | + | if ((dn == cm)) | |
883 | 898 | then throw("You can't fly to the same location") | |
884 | - | else $Tuple2([StringEntry( | |
885 | - | then | |
886 | - | else | |
899 | + | else $Tuple2([StringEntry(di, if ((bQ > 0)) | |
900 | + | then dn | |
901 | + | else cm), IntegerEntry(bV, bQ)], unit) | |
887 | 902 | } | |
888 | 903 | } | |
889 | 904 | } | |
890 | 905 | ||
891 | 906 | ||
892 | 907 | ||
893 | - | @Callable( | |
894 | - | func setHealth ( | |
908 | + | @Callable(bc) | |
909 | + | func setHealth (dl,ag) = if (if ((0 > dl)) | |
895 | 910 | then true | |
896 | - | else ( | |
911 | + | else (dl > 100)) | |
897 | 912 | then throw("HP should be within 0..100") | |
898 | - | else [IntegerEntry( | |
913 | + | else [IntegerEntry(ai(ag), dl)] | |
899 | 914 | ||
900 | 915 | ||
901 | 916 | ||
902 | - | @Callable( | |
903 | - | func heal ( | |
917 | + | @Callable(bc) | |
918 | + | func heal (do,bj) = if (if ((0 > do)) | |
904 | 919 | then true | |
905 | - | else ( | |
906 | - | then throw(("Unknown material: " + toString( | |
907 | - | else if ((0 >= | |
908 | - | then throw(("Amount should be positive! " + toString( | |
920 | + | else (do >= l)) | |
921 | + | then throw(("Unknown material: " + toString(do))) | |
922 | + | else if ((0 >= bj)) | |
923 | + | then throw(("Amount should be positive! " + toString(bj))) | |
909 | 924 | else { | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | if (( | |
925 | + | let ag = valueOrErrorMessage(getString(ab(toString(bc.caller))), "You don't have a duck staked") | |
926 | + | let bV = ai(ag) | |
927 | + | let dp = valueOrElse(getInteger(bV), 100) | |
928 | + | if ((dp >= 100)) | |
914 | 929 | then throw("HP should be < 100 to heal") | |
915 | 930 | else { | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | if (( | |
923 | - | then throw(((((("You need " + toString( | |
931 | + | let bG = af(ag) | |
932 | + | let bX = bF(bG) | |
933 | + | let bY = split(bX[at], "_") | |
934 | + | let dq = parseIntValue(bY[do]) | |
935 | + | let dr = min([(bj / h), (100 - dp)]) | |
936 | + | let ds = (dr * h) | |
937 | + | if ((ds > dq)) | |
938 | + | then throw(((((("You need " + toString(ds)) + " of ") + G[do]) + " to heal, but you backpack contains ") + toString(dq))) | |
924 | 939 | else { | |
925 | - | let | |
926 | - | [IntegerEntry( | |
940 | + | let bZ = bh(bY, do, ds) | |
941 | + | [IntegerEntry(bV, (dp + dr)), StringEntry(bG, makeString([bX[ar], bX[as], bZ, bX[au]], ":"))] | |
927 | 942 | } | |
928 | 943 | } | |
929 | 944 | } | |
930 | 945 | ||
931 | 946 | ||
932 | 947 | ||
933 | - | @Callable( | |
934 | - | func updateBackpack ( | |
948 | + | @Callable(bc) | |
949 | + | func updateBackpack (ag,dt) = if ((bc.caller != f)) | |
935 | 950 | then throw("permission denied") | |
936 | - | else $Tuple2([StringEntry( | |
951 | + | else $Tuple2([StringEntry(af(ag), dt)], dt) | |
937 | 952 | ||
938 | 953 | ||
939 | 954 | ||
940 | - | @Callable( | |
941 | - | func expeditionBuy ( | |
955 | + | @Callable(bc) | |
956 | + | func expeditionBuy (bL,bM) = if ((size(bc.payments) != 1)) | |
942 | 957 | then throw("Exactly one payment required") | |
943 | 958 | else { | |
944 | - | let | |
945 | - | if (( | |
959 | + | let dd = value(bc.payments[0]) | |
960 | + | if ((dd.assetId != b)) | |
946 | 961 | then throw("Allowed USDN payment only!") | |
947 | - | else if (( | |
948 | - | then throw(("Payment attached should be " + toString( | |
962 | + | else if ((dd.amount != y)) | |
963 | + | then throw(("Payment attached should be " + toString(y))) | |
949 | 964 | else { | |
950 | - | let aP = bC(false, aW.caller, aW.transactionId, bF, bG) | |
951 | - | $Tuple2((aP._1 :+ ScriptTransfer(f, cX.amount, b)), aP._2) | |
965 | + | let aV = bI(false, bc.caller, bc.transactionId, bL, bM) | |
966 | + | if ((aV._2 == "")) | |
967 | + | then aV | |
968 | + | else $Tuple2((aV._1 :+ ScriptTransfer(f, dd.amount, b)), aV._2) | |
952 | 969 | } | |
953 | 970 | } | |
954 | 971 | ||
955 | 972 | ||
956 | 973 | ||
957 | - | @Callable( | |
958 | - | func expedition ( | |
974 | + | @Callable(bc) | |
975 | + | func expedition (bL,bM) = if ((size(bc.payments) != 0)) | |
959 | 976 | then throw("expedition doesn't require any payments") | |
960 | - | else | |
977 | + | else bI(true, bc.caller, bc.transactionId, bL, bM) | |
961 | 978 | ||
962 | 979 | ||
963 | 980 | ||
964 | - | @Callable( | |
965 | - | func upgradeInfra ( | |
981 | + | @Callable(bc) | |
982 | + | func upgradeInfra (du) = if ((size(bc.payments) != 0)) | |
966 | 983 | then throw("Infrastructure upgrade doesn't require any payments") | |
967 | - | else | |
984 | + | else cB(true, bc.caller, 0) | |
968 | 985 | ||
969 | 986 | ||
970 | 987 | ||
971 | - | @Callable( | |
972 | - | func upgradeInfraUsdn ( | |
988 | + | @Callable(bc) | |
989 | + | func upgradeInfraUsdn (du) = if ((size(bc.payments) != 1)) | |
973 | 990 | then throw("Exactly one payment required") | |
974 | 991 | else { | |
975 | - | let | |
976 | - | if (( | |
992 | + | let dd = value(bc.payments[0]) | |
993 | + | if ((dd.assetId != b)) | |
977 | 994 | then throw("Allowed USDN payment only!") | |
978 | 995 | else { | |
979 | - | let | |
980 | - | $Tuple2(( | |
996 | + | let aV = cB(false, bc.caller, dd.amount) | |
997 | + | $Tuple2((aV._1 :+ ScriptTransfer(f, dd.amount, b)), aV._2) | |
981 | 998 | } | |
982 | 999 | } | |
983 | 1000 | ||
984 | 1001 | ||
985 | 1002 | ||
986 | - | @Callable( | |
987 | - | func activateArtifact ( | |
1003 | + | @Callable(bc) | |
1004 | + | func activateArtifact (dv) = if ((size(bc.payments) != 0)) | |
988 | 1005 | then throw("Artifact activation doesn't require any payments") | |
989 | 1006 | else { | |
990 | - | let | |
991 | - | let c = | |
1007 | + | let aV = { | |
1008 | + | let c = dv | |
992 | 1009 | if (("PRESALE" == c)) | |
993 | - | then | |
1010 | + | then cI(toString(bc.caller)) | |
994 | 1011 | else throw("Unknown artifact") | |
995 | 1012 | } | |
996 | - | | |
1013 | + | aV | |
997 | 1014 | } | |
998 | 1015 | ||
999 | 1016 | ||
1000 | 1017 | ||
1001 | - | @Callable( | |
1002 | - | func mergeLands ( | |
1018 | + | @Callable(bc) | |
1019 | + | func mergeLands (cN) = if ((size(bc.payments) != 0)) | |
1003 | 1020 | then throw("Lands merging doesn't require any payments") | |
1004 | - | else | |
1021 | + | else db(true, toString(bc.caller), 0, cN, bc.transactionId) | |
1005 | 1022 | ||
1006 | 1023 | ||
1007 | 1024 | ||
1008 | - | @Callable( | |
1009 | - | func mergeLandsUsdn ( | |
1025 | + | @Callable(bc) | |
1026 | + | func mergeLandsUsdn (cN) = if ((size(bc.payments) != 1)) | |
1010 | 1027 | then throw("Exactly one payment required") | |
1011 | 1028 | else { | |
1012 | - | let | |
1013 | - | if (( | |
1029 | + | let dd = value(bc.payments[0]) | |
1030 | + | if ((dd.assetId != b)) | |
1014 | 1031 | then throw("Allowed USDN payment only!") | |
1015 | 1032 | else { | |
1016 | - | let | |
1017 | - | $Tuple2(( | |
1033 | + | let aV = db(false, toString(bc.caller), dd.amount, cN, bc.transactionId) | |
1034 | + | $Tuple2((aV._1 :+ ScriptTransfer(f, dd.amount, b)), aV._2) | |
1018 | 1035 | } | |
1019 | 1036 | } | |
1020 | 1037 | ||
1021 | 1038 |
github/deemru/w8io/169f3d6 391.00 ms ◑