tx · EAb2VRaotmCe9EYZtDqibgkXBDWcTfkg1YMvoKaNfTo1

3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh:  -0.01100000 Waves

2024.09.12 19:58 [3280688] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves

{ "type": 13, "id": "EAb2VRaotmCe9EYZtDqibgkXBDWcTfkg1YMvoKaNfTo1", "fee": 1100000, "feeAssetId": null, "timestamp": 1726160338311, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "4oT4uHWqpoVTQZLTWSzABpFiFaeRQYMVHSvcSRwhbTsTQZ2vyswaM2R6XqQqZvoZwj8MhUTxvMViKFywLSmwSpyx" ], "script": "base64:BgIjCAISBAoCCAgSBAoCCAESAwoBBBIDCgEBEgASABIAEgMKAQgmAANTRVACAl9fAAVNVUxUOACAwtcvABRXTEcyQUNSRVNfTVVMVElQTElFUgDIAQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAFmRlZmF1bHRSZXN0MkFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQRndZdGE4YmlFejMxenBlRmU1REpLOHdFNXRyU3BRVkY4AwkAAAIBAVQFByRtYXRjaDACIzNON1V1WWFyNjI2NFA1OEZCaFZXS1BRQWg0WXVhMmhnbmd2CQACAQINVW5rbm93biBjaGFpbgAVb2xkU3Rha2luZ0NvbnRyYWN0U3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUExuY1h0UzFVODNENmNRYkZEM0g4ckJIUExnenhTRktaMQMJAAACAQFUBQckbWF0Y2gwAiMzTkRDeUJHNXE4NUp1YVJpaWdVZUV0YWlueWpDUVQzWHBabQkAAgECDVVua25vd24gY2hhaW4BD2d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YWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEAYgBjAGQJAJYKBAAAAAAAAAAACQCUCgIFA25pbAULbGFuZHNSZXN1bHQAypZN0A==", "height": 3280688, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9o6RQBmnKktY7PVY2spYEQLrsLeLGRdjUASy1UbziKmJ Next: 2SFwhzQcmyifc9R4pTxhQE7gxp823tV6Exq8LGtGxndX Diff:
OldNewDifferences
105105
106106 func P (N) = {
107107 let f = N
108+ if ($isInstanceOf(f, "(Int, Int, Int, Int)"))
109+ then {
110+ let O = f
111+ O
112+ }
113+ else throw("fail to cast into (Int, Int, Int, Int)")
114+ }
115+
116+
117+func Q (N) = {
118+ let f = N
108119 if ($isInstanceOf(f, "(Int, Int, Int)"))
109120 then {
110121 let O = f
114125 }
115126
116127
117-func Q (N) = {
128+func R (N) = {
118129 let f = N
119130 if ($isInstanceOf(f, "(Int, Int)"))
120131 then {
125136 }
126137
127138
128-func R (N,S) = {
129- let T = pow(10, 0, S, 0, 0, DOWN)
130- let U = toString((N % T))
131- let V = drop(toString(T), (1 + size(U)))
132- (((toString((N / T)) + ".") + V) + U)
139+func S (N,T) = {
140+ let U = pow(10, 0, T, 0, 0, DOWN)
141+ let V = toString((N % U))
142+ let W = drop(toString(U), (1 + size(V)))
143+ (((toString((N / U)) + ".") + W) + V)
133144 }
134145
135146
136-func W (z) = ("acresStakedAmountByUser_" + z)
147+func X (z) = ("acresStakedAmountByUser_" + z)
137148
138149
139-let X = "acresStakedAmountTotal"
150+let Y = "acresStakedAmountTotal"
140151
141-func Y (Z) = if (if ((Z.originCaller != t))
152+func Z (aa) = if (if ((aa.originCaller != t))
142153 then valueOrElse(getBoolean(x()), false)
143154 else false)
144155 then throw("Contracts are under maintenance")
145- else [StringEntry(y(toString(Z.originCaller)), toBase58String(Z.transactionId))]
156+ else [StringEntry(y(toString(aa.originCaller)), toBase58String(aa.transactionId))]
146157
147158
148-func aa (ab,i) = {
149- let ac = invoke(v, "onStakeUnstakeLand", [i], nil)
150- if ((ac == ac))
159+func ab (ac,i) = {
160+ let ad = invoke(v, "onStakeUnstakeLand", [i], nil)
161+ if ((ad == ad))
151162 then {
152- let ad = lastBlock.timestamp
153- let ae = F(i)
154- let af = W(i)
155- let ag = valueOrElse(getInteger(af), 0)
156- let ah = valueOrElse(getInteger(X), 0)
157- $Tuple2([IntegerEntry(ae, lastBlock.timestamp), IntegerEntry(af, (ag + ab)), IntegerEntry(X, (ah + ab))], ac)
163+ let ae = lastBlock.timestamp
164+ let af = F(i)
165+ let ag = X(i)
166+ let ah = valueOrElse(getInteger(ag), 0)
167+ let ai = valueOrElse(getInteger(Y), 0)
168+ $Tuple2([IntegerEntry(af, lastBlock.timestamp), IntegerEntry(ag, (ah + ac)), IntegerEntry(Y, (ai + ac))], ad)
158169 }
159170 else throw("Strict value is not equal to itself.")
160171 }
161172
162173
163-@Callable(Z)
164-func constructorV1 (ai,aj) = if ((Z.caller != this))
174+@Callable(aa)
175+func constructorV1 (aj,ak) = if ((aa.caller != this))
165176 then throw("Permission denied")
166177 else {
167- let ak = addressFromStringValue(aj)
168-[IntegerEntry(C, getIntegerValue(ak, C)), BinaryEntry(D, getBinaryValue(ak, D)), StringEntry(n(), ai), StringEntry(w, aj)]
178+ let al = addressFromStringValue(ak)
179+[IntegerEntry(C, getIntegerValue(al, C)), BinaryEntry(D, getBinaryValue(al, D)), StringEntry(n(), aj), StringEntry(w, ak)]
169180 }
170181
171182
172183
173-@Callable(Z)
174-func saveInteger (j,al) = if ((Z.caller != this))
184+@Callable(aa)
185+func saveInteger (j,am) = if ((aa.caller != this))
175186 then throw("saveInteger is not public method")
176- else [IntegerEntry(j, al)]
187+ else [IntegerEntry(j, am)]
177188
178189
179190
180-@Callable(Z)
181-func setBlocked (am) = if ((Z.caller != this))
191+@Callable(aa)
192+func setBlocked (an) = if ((aa.caller != this))
182193 then throw("permission denied")
183- else [BooleanEntry(x(), am)]
194+ else [BooleanEntry(x(), an)]
184195
185196
186197
187-@Callable(Z)
188-func unstakeAcres (al) = {
189- let an = Y(Z)
190- if ((0 >= al))
198+@Callable(aa)
199+func unstakeAcres (am) = {
200+ let ao = Z(aa)
201+ if ((0 >= am))
191202 then throw("Amount should be positive")
192203 else {
193- let i = toString(Z.caller)
194- if ((size(Z.payments) != 0))
204+ let i = toString(aa.caller)
205+ if ((size(aa.payments) != 0))
195206 then throw("No payments required")
196207 else {
197- let ae = F(i)
198- let af = W(i)
199- let ag = valueOrElse(getInteger(af), 0)
200- if ((al > ag))
201- then throw(((("You have only " + R(ag, 8)) + " ACRES staked, tried to unstake ") + R(al, 8)))
208+ let af = F(i)
209+ let ag = X(i)
210+ let ah = valueOrElse(getInteger(ag), 0)
211+ if ((am > ah))
212+ then throw(((("You have only " + S(ah, 8)) + " ACRES staked, tried to unstake ") + S(am, 8)))
202213 else {
203- let ah = valueOrElse(getInteger(X), 0)
204- let ac = invoke(v, "onStakeUnstakeLand", [i], nil)
205- $Tuple2(([IntegerEntry(ae, lastBlock.timestamp), IntegerEntry(af, (ag - al)), IntegerEntry(X, (ah - al)), ScriptTransfer(Z.caller, al, E)] ++ an), ac)
214+ let ai = valueOrElse(getInteger(Y), 0)
215+ let ad = invoke(v, "onStakeUnstakeLand", [i], nil)
216+ $Tuple2(([IntegerEntry(af, lastBlock.timestamp), IntegerEntry(ag, (ah - am)), IntegerEntry(Y, (ai - am)), ScriptTransfer(aa.caller, am, E)] ++ ao), ad)
206217 }
207218 }
208219 }
210221
211222
212223
213-@Callable(Z)
224+@Callable(aa)
214225 func stakeAcres () = {
215- let an = Y(Z)
216- let i = toString(Z.caller)
217- if ((size(Z.payments) != 1))
226+ let ao = Z(aa)
227+ let i = toString(aa.caller)
228+ if ((size(aa.payments) != 1))
218229 then throw("exactly 1 payment must be attached")
219230 else {
220- let ao = Z.payments[0]
221- let ab = ao.amount
222- if (if (!(isDefined(ao.assetId)))
231+ let ap = aa.payments[0]
232+ let ac = ap.amount
233+ if (if (!(isDefined(ap.assetId)))
223234 then true
224- else (value(ao.assetId) != E))
235+ else (value(ap.assetId) != E))
225236 then throw("ACRES payments only!")
226237 else {
227- let ap = aa(ab, i)
228- let aq = ap._1
229- let ar = ap._2
230- $Tuple2((aq ++ an), ar)
238+ let aq = ab(ac, i)
239+ let ar = aq._1
240+ let as = aq._2
241+ $Tuple2((ar ++ ao), as)
231242 }
232243 }
233244 }
234245
235246
236247
237-@Callable(Z)
248+@Callable(aa)
238249 func buyAcres () = {
239- let an = Y(Z)
240- let i = toString(Z.caller)
241- if ((size(Z.payments) != 1))
250+ let ao = Z(aa)
251+ let i = toString(aa.caller)
252+ if ((size(aa.payments) != 1))
242253 then throw("exactly 1 payment must be attached")
243254 else {
244- let ao = Z.payments[0]
245- let ab = ao.amount
246- if (if (!(isDefined(ao.assetId)))
255+ let ap = aa.payments[0]
256+ let ac = ap.amount
257+ if (if (!(isDefined(ap.assetId)))
247258 then true
248- else (value(ao.assetId) != B))
259+ else (value(ap.assetId) != B))
249260 then throw("WLGOLD payments only!")
250- else if ((b > ab))
251- then throw((("Min payment should be " + R(b, 8)) + " WLGOLD"))
261+ else if ((b > ac))
262+ then throw((("Min payment should be " + S(b, 8)) + " WLGOLD"))
252263 else {
253- let as = (ab * c)
254- let at = J(invoke(u, "burnWlgold", nil, [AttachedPayment(B, ab)]))
255- $Tuple2(([ScriptTransfer(Z.caller, as, E)] ++ an), at)
264+ let at = (ac * c)
265+ let au = J(invoke(u, "burnWlgold", nil, [AttachedPayment(B, ac)]))
266+ $Tuple2(([ScriptTransfer(aa.caller, at, E)] ++ ao), au)
256267 }
257268 }
258269 }
259270
260271
261272
262-@Callable(Z)
273+@Callable(aa)
263274 func convertOldStakes () = {
264- let i = toString(Z.caller)
265- if ((size(Z.payments) != 0))
275+ let i = toString(aa.caller)
276+ if ((size(aa.payments) != 0))
266277 then throw("No payments required")
267278 else {
268- let au = addressFromStringValue(getStringValue(w))
269- let al = valueOrElse(getInteger(au, W(i)), 0)
270- let av = if ((al > 0))
271- then Q(invoke(au, "unstakeAcresCallback", [al, i], nil))
279+ let av = addressFromStringValue(getStringValue(w))
280+ let am = valueOrElse(getInteger(av, X(i)), 0)
281+ let aw = if ((am > 0))
282+ then R(invoke(av, "unstakeAcresCallback", [am, i], nil))
272283 else 0
273- let aw = addressFromStringValue(g)
274- let ax = getString(aw, G(i))
275- let ay = if (isDefined(ax))
284+ let ax = addressFromStringValue(g)
285+ let ay = getString(ax, G(i))
286+ let az = if (isDefined(ay))
276287 then {
277- let az = split_51C(value(ax), "_")
278- func aA (aB,aC) = if ((aC == ""))
288+ let aA = split_51C(value(ay), "_")
289+ func aB (aC,aD) = if ((aD == ""))
279290 then throw("landAssetId is required")
280291 else {
281- let aD = M(invoke(aw, "unstakeLandCallback", [aC, i], nil))
282- $Tuple4((aB._1 + aD._1), (aB._2 + aD._2), (aB._3 + aD._3), (aB._4 + aD._4))
292+ let aE = M(invoke(ax, "unstakeLandCallback", [aD, i], nil))
293+ $Tuple4((aC._1 + aE._1), (aC._2 + aE._2), (aC._3 + aE._3), (aC._4 + aE._4))
283294 }
284295
285- let aE = {
286- let aF = az
287- let aG = size(aF)
288- let aH = $Tuple4(0, 0, 0, 0)
289- func aI (aJ,aK) = if ((aK >= aG))
290- then aJ
291- else aA(aJ, aF[aK])
296+ let aF = {
297+ let aG = aA
298+ let aH = size(aG)
299+ let aI = $Tuple4(0, 0, 0, 0)
300+ func aJ (aK,aL) = if ((aL >= aH))
301+ then aK
302+ else aB(aK, aG[aL])
292303
293- func aL (aJ,aK) = if ((aK >= aG))
294- then aJ
304+ func aM (aK,aL) = if ((aL >= aH))
305+ then aK
295306 else throw("List size exceeds 100")
296307
297- aL(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aH, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
308+ aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
298309 }
299- let aM = invoke(aw, "unstakeLandsFinalizeCallback", [i], nil)
300- if ((aM == aM))
310+ let aN = invoke(ax, "unstakeLandsFinalizeCallback", [i], nil)
311+ if ((aN == aN))
301312 then {
302- let aN = invoke(au, "requestAcresCallback", [(((aE._1 + aE._2) + aE._3) + aE._4), i], nil)
303- if ((aN == aN))
313+ let aO = invoke(av, "requestAcresCallback", [(((aF._1 + aF._2) + aF._3) + aF._4), i], nil)
314+ if ((aO == aO))
304315 then {
305- let aO = Issue("FPOWER10", "FarmingPower +10% NFT for WavesLands game", 1, 0, false)
306- $Tuple5(aE._1, aE._2, aE._3, aE._4, [aO, ScriptTransfer(Z.caller, 1, calculateAssetId(aO))])
316+ let aP = Issue("FPOWER10", "FarmingPower +10% NFT for WavesLands game", 1, 0, false)
317+ $Tuple5(aF._1, aF._2, aF._3, aF._4, [aP, ScriptTransfer(aa.caller, 1, calculateAssetId(aP))])
307318 }
308319 else throw("Strict value is not equal to itself.")
309320 }
310321 else throw("Strict value is not equal to itself.")
311322 }
312323 else $Tuple5(0, 0, 0, 0, nil)
313- let aP = valueOrElse(getString(aw, I(i)), "")
314- let aQ = if ((aP != ""))
315- then P(invoke(aw, "unstakeDuckCallback", [aP, i], nil))
324+ let aQ = valueOrElse(getString(ax, I(i)), "")
325+ let aR = if ((aQ != ""))
326+ then Q(invoke(ax, "unstakeDuckCallback", [aQ, i], nil))
316327 else $Tuple3(0, 0, 0)
317- let aR = aa((((((((av + ay._1) + ay._2) + ay._3) + ay._4) + aQ._1) + aQ._2) + aQ._3), i)
318- $Tuple2((ay._5 ++ aR._1), aR._2)
328+ let aS = ab((((((((aw + az._1) + az._2) + az._3) + az._4) + aR._1) + aR._2) + aR._3), i)
329+ $Tuple2((az._5 ++ aS._1), aS._2)
319330 }
320331 }
321332
322333
323334
324-@Callable(Z)
325-func convertOldStakesREADONLY () = $Tuple2(nil, 0)
335+@Callable(aa)
336+func unstakeLandsREADONLY (i) = {
337+ let ax = addressFromStringValue(g)
338+ let ay = getString(ax, G(i))
339+ let az = if (isDefined(ay))
340+ then {
341+ let aA = split_51C(value(ay), "_")
342+ func aB (aC,aD) = if ((aD == ""))
343+ then throw("landAssetId is required")
344+ else {
345+ let aE = P(invoke(ax, "unstakeLandREADONLY", [aD, i], nil))
346+ $Tuple4((aC._1 + aE._1), (aC._2 + aE._2), (aC._3 + aE._3), (aC._4 + aE._4))
347+ }
348+
349+ let aG = aA
350+ let aH = size(aG)
351+ let aI = $Tuple4(0, 0, 0, 0)
352+ func aJ (aK,aL) = if ((aL >= aH))
353+ then aK
354+ else aB(aK, aG[aL])
355+
356+ func aM (aK,aL) = if ((aL >= aH))
357+ then aK
358+ else throw("List size exceeds 100")
359+
360+ aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
361+ }
362+ else $Tuple4(0, 0, 0, 0)
363+ $Tuple2(nil, az)
364+ }
326365
327366
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 100000000
77
88 let c = 200
99
1010 let d = take(drop(this.bytes, 1), 1)
1111
1212 let e = {
1313 let f = d
1414 if ((base58'2W' == f))
1515 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
1616 else if ((base58'2T' == f))
1717 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
1818 else throw("Unknown chain")
1919 }
2020
2121 let g = {
2222 let f = d
2323 if ((base58'2W' == f))
2424 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
2525 else if ((base58'2T' == f))
2626 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
2727 else throw("Unknown chain")
2828 }
2929
3030 func h (i,j) = valueOrErrorMessage(getString(i, j), makeString(["mandatory ", toString(i), ".", j, " is not defined"], ""))
3131
3232
3333 let k = 1
3434
3535 let l = 2
3636
3737 func m () = "%s__restConfig"
3838
3939
4040 func n () = "%s__rest2Addr"
4141
4242
4343 func o (p) = split_4C(h(p, m()), a)
4444
4545
4646 func q (r,s) = valueOrErrorMessage(addressFromString(r[s]), ("Rest cfg doesn't contain address at index " + toString(s)))
4747
4848
4949 let t = addressFromStringValue(valueOrElse(getString(this, n()), e))
5050
5151 let r = o(t)
5252
5353 let u = q(r, k)
5454
5555 let v = q(r, l)
5656
5757 let w = "oldAcresContract"
5858
5959 func x () = "contractsBlocked"
6060
6161
6262 func y (z) = ("lastTxIdByUser_" + z)
6363
6464
6565 let A = "wlg_assetId"
6666
6767 let B = valueOrErrorMessage(getBinary(v, A), "WLGOLD is not issued yet")
6868
6969 let C = "acresIssuedAmount"
7070
7171 let D = "acresAssetId"
7272
7373 let E = valueOrErrorMessage(getBinary(u, D), "ACRES is not issued yet")
7474
7575 func F (z) = ("acresStakedTimeByUser_" + z)
7676
7777
7878 func G (H) = ("stakedLandsByOwner_" + H)
7979
8080
8181 func I (H) = ("stakedDuckByOwner_" + H)
8282
8383
8484 func J (K) = {
8585 let f = K
8686 if ($isInstanceOf(f, "Int"))
8787 then {
8888 let L = f
8989 L
9090 }
9191 else throw("fail to cast into Int")
9292 }
9393
9494
9595 func M (N) = {
9696 let f = N
9797 if ($isInstanceOf(f, "(Int, Int, Int, Int, Int)"))
9898 then {
9999 let O = f
100100 O
101101 }
102102 else throw("fail to cast into (Int, Int, Int, Int, Int)")
103103 }
104104
105105
106106 func P (N) = {
107107 let f = N
108+ if ($isInstanceOf(f, "(Int, Int, Int, Int)"))
109+ then {
110+ let O = f
111+ O
112+ }
113+ else throw("fail to cast into (Int, Int, Int, Int)")
114+ }
115+
116+
117+func Q (N) = {
118+ let f = N
108119 if ($isInstanceOf(f, "(Int, Int, Int)"))
109120 then {
110121 let O = f
111122 O
112123 }
113124 else throw("fail to cast into (Int, Int, Int)")
114125 }
115126
116127
117-func Q (N) = {
128+func R (N) = {
118129 let f = N
119130 if ($isInstanceOf(f, "(Int, Int)"))
120131 then {
121132 let O = f
122133 O._1
123134 }
124135 else throw("fail to cast into (Int, Int)")
125136 }
126137
127138
128-func R (N,S) = {
129- let T = pow(10, 0, S, 0, 0, DOWN)
130- let U = toString((N % T))
131- let V = drop(toString(T), (1 + size(U)))
132- (((toString((N / T)) + ".") + V) + U)
139+func S (N,T) = {
140+ let U = pow(10, 0, T, 0, 0, DOWN)
141+ let V = toString((N % U))
142+ let W = drop(toString(U), (1 + size(V)))
143+ (((toString((N / U)) + ".") + W) + V)
133144 }
134145
135146
136-func W (z) = ("acresStakedAmountByUser_" + z)
147+func X (z) = ("acresStakedAmountByUser_" + z)
137148
138149
139-let X = "acresStakedAmountTotal"
150+let Y = "acresStakedAmountTotal"
140151
141-func Y (Z) = if (if ((Z.originCaller != t))
152+func Z (aa) = if (if ((aa.originCaller != t))
142153 then valueOrElse(getBoolean(x()), false)
143154 else false)
144155 then throw("Contracts are under maintenance")
145- else [StringEntry(y(toString(Z.originCaller)), toBase58String(Z.transactionId))]
156+ else [StringEntry(y(toString(aa.originCaller)), toBase58String(aa.transactionId))]
146157
147158
148-func aa (ab,i) = {
149- let ac = invoke(v, "onStakeUnstakeLand", [i], nil)
150- if ((ac == ac))
159+func ab (ac,i) = {
160+ let ad = invoke(v, "onStakeUnstakeLand", [i], nil)
161+ if ((ad == ad))
151162 then {
152- let ad = lastBlock.timestamp
153- let ae = F(i)
154- let af = W(i)
155- let ag = valueOrElse(getInteger(af), 0)
156- let ah = valueOrElse(getInteger(X), 0)
157- $Tuple2([IntegerEntry(ae, lastBlock.timestamp), IntegerEntry(af, (ag + ab)), IntegerEntry(X, (ah + ab))], ac)
163+ let ae = lastBlock.timestamp
164+ let af = F(i)
165+ let ag = X(i)
166+ let ah = valueOrElse(getInteger(ag), 0)
167+ let ai = valueOrElse(getInteger(Y), 0)
168+ $Tuple2([IntegerEntry(af, lastBlock.timestamp), IntegerEntry(ag, (ah + ac)), IntegerEntry(Y, (ai + ac))], ad)
158169 }
159170 else throw("Strict value is not equal to itself.")
160171 }
161172
162173
163-@Callable(Z)
164-func constructorV1 (ai,aj) = if ((Z.caller != this))
174+@Callable(aa)
175+func constructorV1 (aj,ak) = if ((aa.caller != this))
165176 then throw("Permission denied")
166177 else {
167- let ak = addressFromStringValue(aj)
168-[IntegerEntry(C, getIntegerValue(ak, C)), BinaryEntry(D, getBinaryValue(ak, D)), StringEntry(n(), ai), StringEntry(w, aj)]
178+ let al = addressFromStringValue(ak)
179+[IntegerEntry(C, getIntegerValue(al, C)), BinaryEntry(D, getBinaryValue(al, D)), StringEntry(n(), aj), StringEntry(w, ak)]
169180 }
170181
171182
172183
173-@Callable(Z)
174-func saveInteger (j,al) = if ((Z.caller != this))
184+@Callable(aa)
185+func saveInteger (j,am) = if ((aa.caller != this))
175186 then throw("saveInteger is not public method")
176- else [IntegerEntry(j, al)]
187+ else [IntegerEntry(j, am)]
177188
178189
179190
180-@Callable(Z)
181-func setBlocked (am) = if ((Z.caller != this))
191+@Callable(aa)
192+func setBlocked (an) = if ((aa.caller != this))
182193 then throw("permission denied")
183- else [BooleanEntry(x(), am)]
194+ else [BooleanEntry(x(), an)]
184195
185196
186197
187-@Callable(Z)
188-func unstakeAcres (al) = {
189- let an = Y(Z)
190- if ((0 >= al))
198+@Callable(aa)
199+func unstakeAcres (am) = {
200+ let ao = Z(aa)
201+ if ((0 >= am))
191202 then throw("Amount should be positive")
192203 else {
193- let i = toString(Z.caller)
194- if ((size(Z.payments) != 0))
204+ let i = toString(aa.caller)
205+ if ((size(aa.payments) != 0))
195206 then throw("No payments required")
196207 else {
197- let ae = F(i)
198- let af = W(i)
199- let ag = valueOrElse(getInteger(af), 0)
200- if ((al > ag))
201- then throw(((("You have only " + R(ag, 8)) + " ACRES staked, tried to unstake ") + R(al, 8)))
208+ let af = F(i)
209+ let ag = X(i)
210+ let ah = valueOrElse(getInteger(ag), 0)
211+ if ((am > ah))
212+ then throw(((("You have only " + S(ah, 8)) + " ACRES staked, tried to unstake ") + S(am, 8)))
202213 else {
203- let ah = valueOrElse(getInteger(X), 0)
204- let ac = invoke(v, "onStakeUnstakeLand", [i], nil)
205- $Tuple2(([IntegerEntry(ae, lastBlock.timestamp), IntegerEntry(af, (ag - al)), IntegerEntry(X, (ah - al)), ScriptTransfer(Z.caller, al, E)] ++ an), ac)
214+ let ai = valueOrElse(getInteger(Y), 0)
215+ let ad = invoke(v, "onStakeUnstakeLand", [i], nil)
216+ $Tuple2(([IntegerEntry(af, lastBlock.timestamp), IntegerEntry(ag, (ah - am)), IntegerEntry(Y, (ai - am)), ScriptTransfer(aa.caller, am, E)] ++ ao), ad)
206217 }
207218 }
208219 }
209220 }
210221
211222
212223
213-@Callable(Z)
224+@Callable(aa)
214225 func stakeAcres () = {
215- let an = Y(Z)
216- let i = toString(Z.caller)
217- if ((size(Z.payments) != 1))
226+ let ao = Z(aa)
227+ let i = toString(aa.caller)
228+ if ((size(aa.payments) != 1))
218229 then throw("exactly 1 payment must be attached")
219230 else {
220- let ao = Z.payments[0]
221- let ab = ao.amount
222- if (if (!(isDefined(ao.assetId)))
231+ let ap = aa.payments[0]
232+ let ac = ap.amount
233+ if (if (!(isDefined(ap.assetId)))
223234 then true
224- else (value(ao.assetId) != E))
235+ else (value(ap.assetId) != E))
225236 then throw("ACRES payments only!")
226237 else {
227- let ap = aa(ab, i)
228- let aq = ap._1
229- let ar = ap._2
230- $Tuple2((aq ++ an), ar)
238+ let aq = ab(ac, i)
239+ let ar = aq._1
240+ let as = aq._2
241+ $Tuple2((ar ++ ao), as)
231242 }
232243 }
233244 }
234245
235246
236247
237-@Callable(Z)
248+@Callable(aa)
238249 func buyAcres () = {
239- let an = Y(Z)
240- let i = toString(Z.caller)
241- if ((size(Z.payments) != 1))
250+ let ao = Z(aa)
251+ let i = toString(aa.caller)
252+ if ((size(aa.payments) != 1))
242253 then throw("exactly 1 payment must be attached")
243254 else {
244- let ao = Z.payments[0]
245- let ab = ao.amount
246- if (if (!(isDefined(ao.assetId)))
255+ let ap = aa.payments[0]
256+ let ac = ap.amount
257+ if (if (!(isDefined(ap.assetId)))
247258 then true
248- else (value(ao.assetId) != B))
259+ else (value(ap.assetId) != B))
249260 then throw("WLGOLD payments only!")
250- else if ((b > ab))
251- then throw((("Min payment should be " + R(b, 8)) + " WLGOLD"))
261+ else if ((b > ac))
262+ then throw((("Min payment should be " + S(b, 8)) + " WLGOLD"))
252263 else {
253- let as = (ab * c)
254- let at = J(invoke(u, "burnWlgold", nil, [AttachedPayment(B, ab)]))
255- $Tuple2(([ScriptTransfer(Z.caller, as, E)] ++ an), at)
264+ let at = (ac * c)
265+ let au = J(invoke(u, "burnWlgold", nil, [AttachedPayment(B, ac)]))
266+ $Tuple2(([ScriptTransfer(aa.caller, at, E)] ++ ao), au)
256267 }
257268 }
258269 }
259270
260271
261272
262-@Callable(Z)
273+@Callable(aa)
263274 func convertOldStakes () = {
264- let i = toString(Z.caller)
265- if ((size(Z.payments) != 0))
275+ let i = toString(aa.caller)
276+ if ((size(aa.payments) != 0))
266277 then throw("No payments required")
267278 else {
268- let au = addressFromStringValue(getStringValue(w))
269- let al = valueOrElse(getInteger(au, W(i)), 0)
270- let av = if ((al > 0))
271- then Q(invoke(au, "unstakeAcresCallback", [al, i], nil))
279+ let av = addressFromStringValue(getStringValue(w))
280+ let am = valueOrElse(getInteger(av, X(i)), 0)
281+ let aw = if ((am > 0))
282+ then R(invoke(av, "unstakeAcresCallback", [am, i], nil))
272283 else 0
273- let aw = addressFromStringValue(g)
274- let ax = getString(aw, G(i))
275- let ay = if (isDefined(ax))
284+ let ax = addressFromStringValue(g)
285+ let ay = getString(ax, G(i))
286+ let az = if (isDefined(ay))
276287 then {
277- let az = split_51C(value(ax), "_")
278- func aA (aB,aC) = if ((aC == ""))
288+ let aA = split_51C(value(ay), "_")
289+ func aB (aC,aD) = if ((aD == ""))
279290 then throw("landAssetId is required")
280291 else {
281- let aD = M(invoke(aw, "unstakeLandCallback", [aC, i], nil))
282- $Tuple4((aB._1 + aD._1), (aB._2 + aD._2), (aB._3 + aD._3), (aB._4 + aD._4))
292+ let aE = M(invoke(ax, "unstakeLandCallback", [aD, i], nil))
293+ $Tuple4((aC._1 + aE._1), (aC._2 + aE._2), (aC._3 + aE._3), (aC._4 + aE._4))
283294 }
284295
285- let aE = {
286- let aF = az
287- let aG = size(aF)
288- let aH = $Tuple4(0, 0, 0, 0)
289- func aI (aJ,aK) = if ((aK >= aG))
290- then aJ
291- else aA(aJ, aF[aK])
296+ let aF = {
297+ let aG = aA
298+ let aH = size(aG)
299+ let aI = $Tuple4(0, 0, 0, 0)
300+ func aJ (aK,aL) = if ((aL >= aH))
301+ then aK
302+ else aB(aK, aG[aL])
292303
293- func aL (aJ,aK) = if ((aK >= aG))
294- then aJ
304+ func aM (aK,aL) = if ((aL >= aH))
305+ then aK
295306 else throw("List size exceeds 100")
296307
297- aL(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(aH, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
308+ aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
298309 }
299- let aM = invoke(aw, "unstakeLandsFinalizeCallback", [i], nil)
300- if ((aM == aM))
310+ let aN = invoke(ax, "unstakeLandsFinalizeCallback", [i], nil)
311+ if ((aN == aN))
301312 then {
302- let aN = invoke(au, "requestAcresCallback", [(((aE._1 + aE._2) + aE._3) + aE._4), i], nil)
303- if ((aN == aN))
313+ let aO = invoke(av, "requestAcresCallback", [(((aF._1 + aF._2) + aF._3) + aF._4), i], nil)
314+ if ((aO == aO))
304315 then {
305- let aO = Issue("FPOWER10", "FarmingPower +10% NFT for WavesLands game", 1, 0, false)
306- $Tuple5(aE._1, aE._2, aE._3, aE._4, [aO, ScriptTransfer(Z.caller, 1, calculateAssetId(aO))])
316+ let aP = Issue("FPOWER10", "FarmingPower +10% NFT for WavesLands game", 1, 0, false)
317+ $Tuple5(aF._1, aF._2, aF._3, aF._4, [aP, ScriptTransfer(aa.caller, 1, calculateAssetId(aP))])
307318 }
308319 else throw("Strict value is not equal to itself.")
309320 }
310321 else throw("Strict value is not equal to itself.")
311322 }
312323 else $Tuple5(0, 0, 0, 0, nil)
313- let aP = valueOrElse(getString(aw, I(i)), "")
314- let aQ = if ((aP != ""))
315- then P(invoke(aw, "unstakeDuckCallback", [aP, i], nil))
324+ let aQ = valueOrElse(getString(ax, I(i)), "")
325+ let aR = if ((aQ != ""))
326+ then Q(invoke(ax, "unstakeDuckCallback", [aQ, i], nil))
316327 else $Tuple3(0, 0, 0)
317- let aR = aa((((((((av + ay._1) + ay._2) + ay._3) + ay._4) + aQ._1) + aQ._2) + aQ._3), i)
318- $Tuple2((ay._5 ++ aR._1), aR._2)
328+ let aS = ab((((((((aw + az._1) + az._2) + az._3) + az._4) + aR._1) + aR._2) + aR._3), i)
329+ $Tuple2((az._5 ++ aS._1), aS._2)
319330 }
320331 }
321332
322333
323334
324-@Callable(Z)
325-func convertOldStakesREADONLY () = $Tuple2(nil, 0)
335+@Callable(aa)
336+func unstakeLandsREADONLY (i) = {
337+ let ax = addressFromStringValue(g)
338+ let ay = getString(ax, G(i))
339+ let az = if (isDefined(ay))
340+ then {
341+ let aA = split_51C(value(ay), "_")
342+ func aB (aC,aD) = if ((aD == ""))
343+ then throw("landAssetId is required")
344+ else {
345+ let aE = P(invoke(ax, "unstakeLandREADONLY", [aD, i], nil))
346+ $Tuple4((aC._1 + aE._1), (aC._2 + aE._2), (aC._3 + aE._3), (aC._4 + aE._4))
347+ }
348+
349+ let aG = aA
350+ let aH = size(aG)
351+ let aI = $Tuple4(0, 0, 0, 0)
352+ func aJ (aK,aL) = if ((aL >= aH))
353+ then aK
354+ else aB(aK, aG[aL])
355+
356+ func aM (aK,aL) = if ((aL >= aH))
357+ then aK
358+ else throw("List size exceeds 100")
359+
360+ aM(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aJ(aI, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
361+ }
362+ else $Tuple4(0, 0, 0, 0)
363+ $Tuple2(nil, az)
364+ }
326365
327366

github/deemru/w8io/026f985 
114.69 ms