tx · 6Fsf4AyN7k7jZsBU6N3xK5o4xTobqC8gFWEDqCM1oMfM

3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy:  -0.01000000 Waves

2023.01.19 13:42 [2411705] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves

{ "type": 13, "id": "6Fsf4AyN7k7jZsBU6N3xK5o4xTobqC8gFWEDqCM1oMfM", "fee": 1000000, "feeAssetId": null, "timestamp": 1674124971583, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "2QRbfY7nuftiDhCpEPN4RNN3TMv3yj31Ghtv9DS2i7a7J1SVd939bhfiJjYgWitCKZ5GzqQwV1K8eyvonbrGG3L5" ], "script": "base64:BgITCAISAwoBCBIECgIICBIECgIICCQABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2RuQXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEDCQAAAgEBVAUHJG1hdGNoMAEg93bq9/eDymXbbhPuAjvPWCmVqcHRjfJL2mzYHWKAyN4JAAIBAg1Vbmtub3duIGNoYWluAA9lY29ub215Q29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQEEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQMnNrMUtuY1N4UmFaczhiNENXR1B3MmprdnZhdjc0dTREAwkAAAIBAVQFByRtYXRjaDACIzNOOHk0d3hYM0pDNFRkckNKQlhYMTZTaldmNlgyNTZocmVwCQACAQINVW5rbm93biBjaGFpbgAPc3Rha2luZ0NvbnRyYWN0CQERQGV4dHJOYXRpdmUoMTA2MikBBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y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9fCQCkAwEIBQxwcm9kdWN0aXZpdHkCXzEJAMwIAgkAuQkCCQDMCAICBCVzJXMJAMwIAgINbGFuZEFydGVmYWN0cwkAzAgCCQCsAgICCFBSRVNBTEU6CQCkAwEIBQxwcm9kdWN0aXZpdHkCXzIFA25pbAUDU0VQCQDMCAIJAKwCAgIQJXMlc19fYXZhaWxSZXNfXwUGcmVzU3RyCQDMCAIJAKwCAgIUJXMlc19fbmVlZE1hdGVyaWFsX18FCm5lZWRNYXRTdHIJAMwIAgkArAICAhMlcyVzX19kdWNrQXNzZXRJZF9fCAUIZHVja0luZm8CXzEJAMwIAgkArAICAhAlcyVzX19sb2NhdGlvbl9fCAUIZHVja0luZm8CXzIJAMwIAgkArAICAg4lcyVkX19oZWFsdGhfXwkApAMBCAUIZHVja0luZm8CXzMJAMwIAgkArAICAhAlcyVzX19iYWNrUGFja19fCAUIZHVja0luZm8CXzQJAMwIAgkAuQkCCQDMCAICBiVzJWQlZAkAzAgCAgZ3YWxsZXQJAMwIAgkApAMBCQCRAwIFCGJhbGFuY2VzAAAJAMwIAgkApAMBCQCRAwIFCGJhbGFuY2VzAAEFA25pbAUDU0VQBQNuaWwArQG37A==", "height": 2411705, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5KcT4xXUZVYQvXbnho3Vpc9Qt8aJnW7u3fDe8r8y7Ch6 Next: CNjDxuPevRC6iUYR6Ym6yWH57kkKV7NWCpwpCpgSF6mF Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = toUtf8String(take(drop(this.bytes, 1), 1))
4+let a = take(drop(this.bytes, 1), 1)
55
66 let b = {
77 let c = a
8- if (("W" == c))
8+ if ((base58'2W' == c))
99 then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
10- else if (("T" == c))
10+ else if ((base58'2T' == c))
1111 then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1212 else throw("Unknown chain")
1313 }
1414
1515 let d = addressFromStringValue({
1616 let c = a
17- if (("W" == c))
17+ if ((base58'2W' == c))
1818 then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D"
19- else if (("T" == c))
19+ else if ((base58'2T' == c))
2020 then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep"
2121 else throw("Unknown chain")
2222 })
2323
2424 let e = addressFromStringValue({
2525 let c = a
26- if (("W" == c))
26+ if ((base58'2W' == c))
2727 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
28- else if (("T" == c))
28+ else if ((base58'2T' == c))
2929 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
3030 else throw("Unknown chain")
3131 })
3232
3333 let f = {
3434 let c = a
35- if (("W" == c))
35+ if ((base58'2W' == c))
3636 then 6307198406
37- else if (("T" == c))
37+ else if ((base58'2T' == c))
3838 then 63071984
3939 else throw("Unknown chain")
4040 }
247247 }
248248 else $Tuple4("", "", -1, "")
249249 let ap = ac(ad)
250- $Tuple2(nil, [("%s%d__stakedTime__" + toString(ar)), ("%s%s__owner__" + as), ("%s%s__description__" + az), ("%s%d__infraLevel__" + toString(aA._1)), ("%s%d__artPieces__" + toString(aA._2)), ("%s%s__availRes__" + aD), ("%s%s__needMaterial__" + aF), ("%s%s__duckAssetId__" + aG._1), ("%s%s__location__" + aG._2), ("%s%d__health__" + toString(aG._3)), ("%s%s__backPack__" + aG._4), makeString(["%s%d%d", "wallet", toString(ap[0]), toString(ap[1])], i)])
250+ $Tuple2(nil, [("%s%d__stakedTime__" + toString(ar)), ("%s%s__owner__" + as), ("%s%s__description__" + az), ("%s%d__infraLevel__" + toString(aA._1)), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(aA._2))], i), ("%s%s__availRes__" + aD), ("%s%s__needMaterial__" + aF), ("%s%s__duckAssetId__" + aG._1), ("%s%s__location__" + aG._2), ("%s%d__health__" + toString(aG._3)), ("%s%s__backPack__" + aG._4), makeString(["%s%d%d", "wallet", toString(ap[0]), toString(ap[1])], i)])
251251 }
252252 }
253253
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = toUtf8String(take(drop(this.bytes, 1), 1))
4+let a = take(drop(this.bytes, 1), 1)
55
66 let b = {
77 let c = a
8- if (("W" == c))
8+ if ((base58'2W' == c))
99 then base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
10- else if (("T" == c))
10+ else if ((base58'2T' == c))
1111 then base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
1212 else throw("Unknown chain")
1313 }
1414
1515 let d = addressFromStringValue({
1616 let c = a
17- if (("W" == c))
17+ if ((base58'2W' == c))
1818 then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D"
19- else if (("T" == c))
19+ else if ((base58'2T' == c))
2020 then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep"
2121 else throw("Unknown chain")
2222 })
2323
2424 let e = addressFromStringValue({
2525 let c = a
26- if (("W" == c))
26+ if ((base58'2W' == c))
2727 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
28- else if (("T" == c))
28+ else if ((base58'2T' == c))
2929 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
3030 else throw("Unknown chain")
3131 })
3232
3333 let f = {
3434 let c = a
35- if (("W" == c))
35+ if ((base58'2W' == c))
3636 then 6307198406
37- else if (("T" == c))
37+ else if ((base58'2T' == c))
3838 then 63071984
3939 else throw("Unknown chain")
4040 }
4141
4242 let g = "LAND"
4343
4444 let h = "DUCK"
4545
4646 let i = "__"
4747
4848 let j = "PRESALE"
4949
5050 let k = 3456000
5151
5252 let l = 86400000
5353
5454 let m = 6
5555
5656 let n = 25
5757
5858 let o = 100
5959
6060 let p = 225
6161
6262 let q = 400
6363
6464 let r = 625
6565
6666 let s = 0
6767
6868 let t = 1
6969
7070 let u = 2
7171
7272 let v = 3
7373
7474 func w (x) = ("duckOwner_" + x)
7575
7676
7777 func y (x) = ("stakedTime_" + x)
7878
7979
8080 func z (A) = ("stakedDuckByOwner_" + A)
8181
8282
8383 func B (C,x,A) = ((((("stakedTimeByTypeAssetIdAndOwner_" + C) + "_") + x) + "_") + A)
8484
8585
8686 func D (E) = ("backPack_" + E)
8787
8888
8989 func F (E) = ("duckLocation_" + E)
9090
9191
9292 func G (E) = ("duckHealth_" + E)
9393
9494
9595 func H (x) = ("nftOwner_" + x)
9696
9797
9898 func I (x) = ("infraLevel_" + x)
9999
100100
101101 func J (K,x) = makeString(["landArtStatus", K, x], "_")
102102
103103
104104 func L (x) = ("presaleArtActivated_" + x)
105105
106106
107107 func M (N) = {
108108 let c = N
109109 if ($isInstanceOf(c, "List[Any]"))
110110 then {
111111 let O = c
112112 if ((size(O) != m))
113113 then throw(("Array size is " + toString(size(O))))
114114 else {
115115 func P (Q,R) = {
116116 let S = R
117117 if ($isInstanceOf(S, "Int"))
118118 then {
119119 let T = S
120120 (Q :+ toString(T))
121121 }
122122 else throw("List type is not Int")
123123 }
124124
125125 let U = {
126126 let V = O
127127 let W = size(V)
128128 let X = nil
129129 func Y (Z,aa) = if ((aa >= W))
130130 then Z
131131 else P(Z, V[aa])
132132
133133 func ab (Z,aa) = if ((aa >= W))
134134 then Z
135135 else throw("List size exceeds 6")
136136
137137 ab(Y(Y(Y(Y(Y(Y(X, 0), 1), 2), 3), 4), 5), 6)
138138 }
139139 makeString(U, "_")
140140 }
141141 }
142142 else throw("fail to cast into List")
143143 }
144144
145145
146146 func ac (ad) = {
147147 let ae = addressFromString(ad)
148148 let af = if (isDefined(ae))
149149 then wavesBalance(value(ae))
150150 else BalanceDetails(0, 0, 0, 0)
151151 let ag = if (isDefined(ae))
152152 then assetBalance(value(ae), b)
153153 else 0
154154 [af.available, ag]
155155 }
156156
157157
158158 func ah (ai,aj) = {
159159 let ak = valueOrElse(getInteger(e, I(ai)), 0)
160160 let al = valueOrElse(getInteger(e, J(j, ai)), if (valueOrElse(getBoolean(e, L(ai)), false))
161161 then aj
162162 else 0)
163163 $Tuple3(ak, al, ((k + fraction(k, ak, 4)) + fraction(k, (al * 3), (aj * 20))))
164164 }
165165
166166
167167 func am (an) = {
168168 let c = an
169169 if (("S" == c))
170170 then n
171171 else if (("M" == c))
172172 then o
173173 else if (("L" == c))
174174 then p
175175 else if (("XL" == c))
176176 then q
177177 else if (("XXL" == c))
178178 then r
179179 else throw("Unknown land size")
180180 }
181181
182182
183183 @Callable(ao)
184184 func walletInfoREADONLY (ad) = {
185185 let ap = ac(ad)
186186 $Tuple2(nil, makeString(["%s%d%d", "wallet", toString(ap[0]), toString(ap[1])], i))
187187 }
188188
189189
190190
191191 @Callable(ao)
192192 func duckInfoREADONLY (E,ad) = {
193193 let ae = addressFromString(ad)
194194 let aq = fromBase58String(E)
195195 if ((E == ""))
196196 then throw("duckAssetId is required")
197197 else {
198198 let ar = valueOrElse(getInteger(e, y(E)), 0)
199199 let as = if ((ar > 0))
200200 then value(getString(e, w(E)))
201201 else if (if (isDefined(ae))
202202 then (assetBalance(value(ae), aq) == 1)
203203 else false)
204204 then ad
205205 else throw("unknown owner")
206206 let at = value(assetInfo(aq))
207207 let au = at.name
208208 let av = valueOrElse(getString(e, F(E)), "")
209209 let aw = valueOrElse(getInteger(e, G(E)), -1)
210210 let ax = valueOrElse(getString(e, D(E)), "0:0_0_0_0_0_0:0_0_0_0_0_0:")
211211 let ap = ac(ad)
212212 $Tuple2(nil, [("%s%d__stakedTime__" + toString(ar)), ("%s%s__owner__" + as), ("%s%s__name__" + au), ("%s%s__location__" + av), ("%s%d__health__" + toString(aw)), ("%s%s__backPack__" + ax), makeString(["%s%d%d", "wallet", toString(ap[0]), toString(ap[1])], i)])
213213 }
214214 }
215215
216216
217217
218218 @Callable(ao)
219219 func landInfoREADONLY (ai,ad) = {
220220 let ae = addressFromString(ad)
221221 let ay = fromBase58String(ai)
222222 if ((ai == ""))
223223 then throw("landAssetId is required")
224224 else {
225225 let ar = valueOrElse(getInteger(e, y(ai)), 0)
226226 let as = if ((ar > 0))
227227 then value(getString(e, H(ai)))
228228 else if (if (isDefined(ae))
229229 then (assetBalance(value(ae), ay) == 1)
230230 else false)
231231 then ad
232232 else ""
233233 let az = value(assetInfo(ay)).description
234234 let aj = am(split(az, "_")[t])
235235 let aA = ah(ai, aj)
236236 let aB = (lastBlock.timestamp - ar)
237237 let aC = fraction(aB, (aA._3 * aj), l)
238238 let aD = if ((ar > 0))
239239 then M(invoke(e, "splitByProportionsREADONLY", [aC], nil))
240240 else ""
241241 let aE = fraction(f, (aj * (aA._1 + 1)), n)
242242 let aF = M(invoke(e, "splitByProportionsREADONLY", [aE], nil))
243243 let aG = if (isDefined(ae))
244244 then {
245245 let E = value(getString(e, z(ad)))
246246 $Tuple4(E, valueOrElse(getString(e, F(E)), ""), valueOrElse(getInteger(e, G(E)), -1), valueOrElse(getString(e, D(E)), "0:0_0_0_0_0_0:0_0_0_0_0_0:"))
247247 }
248248 else $Tuple4("", "", -1, "")
249249 let ap = ac(ad)
250- $Tuple2(nil, [("%s%d__stakedTime__" + toString(ar)), ("%s%s__owner__" + as), ("%s%s__description__" + az), ("%s%d__infraLevel__" + toString(aA._1)), ("%s%d__artPieces__" + toString(aA._2)), ("%s%s__availRes__" + aD), ("%s%s__needMaterial__" + aF), ("%s%s__duckAssetId__" + aG._1), ("%s%s__location__" + aG._2), ("%s%d__health__" + toString(aG._3)), ("%s%s__backPack__" + aG._4), makeString(["%s%d%d", "wallet", toString(ap[0]), toString(ap[1])], i)])
250+ $Tuple2(nil, [("%s%d__stakedTime__" + toString(ar)), ("%s%s__owner__" + as), ("%s%s__description__" + az), ("%s%d__infraLevel__" + toString(aA._1)), makeString(["%s%s", "landArtefacts", ("PRESALE:" + toString(aA._2))], i), ("%s%s__availRes__" + aD), ("%s%s__needMaterial__" + aF), ("%s%s__duckAssetId__" + aG._1), ("%s%s__location__" + aG._2), ("%s%d__health__" + toString(aG._3)), ("%s%s__backPack__" + aG._4), makeString(["%s%d%d", "wallet", toString(ap[0]), toString(ap[1])], i)])
251251 }
252252 }
253253
254254

github/deemru/w8io/026f985 
46.14 ms