tx · EJPUpxVs3zJzoLTGnWByDYb6Vsz9w8DR7Vv2HvJ9Hdu2

3Mv8VUoVKevJodzBJKsqHEdrheDruTeNcye:  -0.04000000 Waves

2020.09.02 15:57 [1159797] smart account 3Mv8VUoVKevJodzBJKsqHEdrheDruTeNcye > SELF 0.00000000 Waves

{ "type": 13, "id": "EJPUpxVs3zJzoLTGnWByDYb6Vsz9w8DR7Vv2HvJ9Hdu2", "fee": 4000000, "feeAssetId": null, "timestamp": 1599051504478, "version": 1, "sender": "3Mv8VUoVKevJodzBJKsqHEdrheDruTeNcye", "senderPublicKey": "FPgnjQzRFcjm83CEBmAzXmUFV6ghHwvr2FcP65idu6qw", "proofs": [ "3RCG9qjffgunTori7UBPLgXYdyCzC4BmYjRSsaYBYfrJqEQHtrKBLS5LWveKQCzr9UadzJq8DkJpUr3jtwLugzi7" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAA0BAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAACW9wcG9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VuaXQEAAAABmNhbGxlcgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAB2JhbGFuY2UJAAPrAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAVhc3NldAMJAABmAAAAAgAAAAAAAAAAZAUAAAAHYmFsYW5jZQkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAABWFzc2V0BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAB0HvH0", "chainId": 84, "height": 1159797, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4VA9Jdo7PcCJVeouVNwTq65UHCkCX1X5LJaRC8Q5Qby2 Next: 5h2FLyRB2i4NUzZAXaQQusc3n2cfFh77FDAKXp5a4ttx Diff:
OldNewDifferences
161161
162162 func aj (F,G,H,I) = {
163163 let ak = (G - I)
164- let A = ((j(ak) * p(H)) / 100000)
164+ let A = (j(ak) * p(H))
165165 let r = (((p(F) * j(H)) - (((j(F) * p(H)) * p(ak)) / 100000)) / 100000)
166166 ((z(A, r) + 628318) % 628318)
167167 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c,d) = [DataEntry(("positionLat_" + b), c), DataEntry(("positionLon_" + b), d)]
55
66
77 func e (f,g) = {
88 let h = ((f + "_") + g)
99 [DataEntry(("gameId_" + f), h), DataEntry(("opponent_" + f), g), DataEntry(("gameId_" + g), h), DataEntry(("opponent_" + g), f), DataEntry(("game_" + h), true), DataEntry(("gameTurn_" + h), f), DataEntry(("gameWinner_" + h), "")]
1010 }
1111
1212
1313 func i (b) = getStringValue(this, ("gameId_" + b))
1414
1515
1616 func j (k) = {
1717 let l = (k / 628318)
1818 if ((0 > k))
1919 then {
2020 let m = -(k)
2121 if ((m > 628318))
2222 then {
2323 let n = (m + (l * 628318))
2424 if ((n > 314159))
2525 then {
2626 let o = ((16 * (n - 314159)) * (314159 - (n - 314159)))
2727 ((o * 100000) / (493480220050 - (o / 4)))
2828 }
2929 else {
3030 let o = ((16 * n) * (314159 - n))
3131 ((-(o) * 100000) / (493480220050 - (o / 4)))
3232 }
3333 }
3434 else if ((m > 314159))
3535 then {
3636 let o = ((16 * (m - 314159)) * (314159 - (m - 314159)))
3737 ((o * 100000) / (493480220050 - (o / 4)))
3838 }
3939 else {
4040 let o = ((16 * m) * (314159 - m))
4141 ((-(o) * 100000) / (493480220050 - (o / 4)))
4242 }
4343 }
4444 else if ((k > 628318))
4545 then {
4646 let n = (k - (l * 628318))
4747 if ((n > 314159))
4848 then {
4949 let o = ((16 * (n - 314159)) * (314159 - (n - 314159)))
5050 ((-(o) * 100000) / (493480220050 - (o / 4)))
5151 }
5252 else {
5353 let o = ((16 * n) * (314159 - n))
5454 ((o * 100000) / (493480220050 - (o / 4)))
5555 }
5656 }
5757 else if ((k > 314159))
5858 then {
5959 let o = ((16 * (k - 314159)) * (314159 - (k - 314159)))
6060 ((-(o) * 100000) / (493480220050 - (o / 4)))
6161 }
6262 else {
6363 let o = ((16 * k) * (314159 - k))
6464 ((o * 100000) / (493480220050 - (o / 4)))
6565 }
6666 }
6767
6868
6969 func p (k) = j((157079 - k))
7070
7171
7272 func q (r) = if ((-100000 >= r))
7373 then -157079
7474 else if ((r >= 100000))
7575 then 157079
7676 else if ((0 > r))
7777 then {
7878 let s = (-1 * r)
7979 let t = (((-1873 * s) / 100000) + 7426)
8080 let u = (((t * s) / 100000) - 21211)
8181 let v = (((u * s) / 100000) + 157072)
8282 let w = pow((100000 - s), 5, 5, 1, 5, HALFEVEN)
8383 -((157079 - ((w * v) / 100000)))
8484 }
8585 else {
8686 let t = (((-1873 * r) / 100000) + 7426)
8787 let u = (((t * r) / 100000) - 21211)
8888 let v = (((u * r) / 100000) + 157072)
8989 let w = pow((100000 - r), 5, 5, 1, 5, HALFEVEN)
9090 (157079 - ((w * v) / 100000))
9191 }
9292
9393
9494 func x (r) = {
9595 let y = ((r * r) / 100000)
9696 if ((-100000 > r))
9797 then (-157079 - ((r * 100000) / (y + 28000)))
9898 else if ((r > 100000))
9999 then (157079 - ((r * 100000) / (y + 28000)))
100100 else ((r * 100000) / (100000 + ((28000 * y) / 100000)))
101101 }
102102
103103
104104 func z (A,r) = if ((r > 0))
105105 then x((A / r))
106106 else if (if ((0 > r))
107107 then (A >= 0)
108108 else false)
109109 then (x((A / r)) + 314159)
110110 else if (if ((0 > r))
111111 then (0 > A)
112112 else false)
113113 then (x((A / r)) - 314159)
114114 else if (if ((r == 0))
115115 then (A > 0)
116116 else false)
117117 then 157079
118118 else if (if ((r == 0))
119119 then (0 > A)
120120 else false)
121121 then -157079
122122 else 0
123123
124124
125125 func B (C,D) = (((2 * C) * ((p(D) * j(D)) / 100000)) / 980665)
126126
127127
128128 func E (F,G,H,I) = {
129129 let J = j(((F - H) / 2))
130130 let K = j(((G - I) / 2))
131131 let L = ((J * J) + (((p(F) * p(H)) / 100000) * ((K * K) / 100000)))
132132 let M = (2 * q(pow((L / 1000), 7, 5, 1, 5, HALFEVEN)))
133133 (6371000 * M)
134134 }
135135
136136
137137 func N (O,P,Q,R) = {
138138 let S = j(O)
139139 let T = p(O)
140140 let U = j((Q / 6371000))
141141 let V = p((Q / 6371000))
142142 let W = q((((S * V) / 100000) + (((T * U) * p(R)) / 10000000000)))
143143 let X = (P + z((((j(R) * U) * T) / 100000), (V - ((S * j(W)) / 100000))))
144144 [W, X]
145145 }
146146
147147
148148 func Y (D,R,Z,f,g) = {
149149 let aa = getIntegerValue(this, ("positionLat_" + f))
150150 let ab = getIntegerValue(this, ("positionLon_" + f))
151151 let ac = getIntegerValue(this, ("positionLat_" + g))
152152 let ad = getIntegerValue(this, ("positionLon_" + g))
153153 let ae = E(aa, ab, ac, ad)
154154 let af = ((ae * 980665) / 100000)
155155 let ag = B(((af * Z) / 100000), D)
156156 let ah = N(aa, ab, ag, R)
157157 let ai = E(ah[0], ah[1], ac, ad)
158158 [ai, ae] :: ah
159159 }
160160
161161
162162 func aj (F,G,H,I) = {
163163 let ak = (G - I)
164- let A = ((j(ak) * p(H)) / 100000)
164+ let A = (j(ak) * p(H))
165165 let r = (((p(F) * j(H)) - (((j(F) * p(H)) * p(ak)) / 100000)) / 100000)
166166 ((z(A, r) + 628318) % 628318)
167167 }
168168
169169
170170 @Callable(al)
171171 func startGame (c,d) = {
172172 let am = unit
173173 let an = value(al.payment)
174174 let ao = toString(al.caller)
175175 let ac = ((c * 1745) / 100000)
176176 let ad = ((d * 1745) / 100000)
177177 let ap = a(ao, ac, ad)
178178 let aq = getString(this, "openGame")
179179 if (if ((an.assetId == am))
180180 then (an.amount >= 1)
181181 else false)
182182 then {
183183 let h = getString(this, ("gameId_" + ao))
184184 if (if ((h != ""))
185185 then (h != unit)
186186 else false)
187187 then throw("Please finish your current game, before starting another one")
188188 else if (!(isDefined(aq)))
189189 then WriteSet(DataEntry("openGame", ao) :: ap)
190190 else if (if ((aq == ""))
191191 then true
192192 else (aq == ao))
193193 then WriteSet(DataEntry("openGame", ao) :: ap)
194194 else {
195195 let aa = getIntegerValue(this, ("positionLat_" + value(aq)))
196196 let ab = getIntegerValue(this, ("positionLon_" + value(aq)))
197197 let ae = E(aa, ab, ac, ad)
198198 let ar = sha256(toBytes(ae))
199199 let as = toInt(ar)
200200 let at = ((as % (628318 / 4)) - (628318 / 8))
201201 let au = aj(aa, ab, ac, ad)
202202 let av = (au + at)
203203 let aw = ((au + 314159) % 628318)
204204 let ax = (aw + at)
205205 WriteSet([DataEntry("openGame", ""), ap[0], ap[1], DataEntry(("opponentOffsetYaw_" + ao), av), DataEntry(("opponentOffsetYaw_" + value(aq)), ax), e(value(aq), ao)])
206206 }
207207 }
208208 else throw("Please pay the token")
209209 }
210210
211211
212212
213213 @Callable(al)
214214 func executeShot (D,R,Z) = {
215215 let am = unit
216216 let ao = toString(al.caller)
217217 let ay = getStringValue(this, ("opponent_" + ao))
218218 let h = i(ao)
219219 if ((getStringValue(this, ("gameTurn_" + h)) != ao))
220220 then throw("Please wait for your turn.")
221221 else {
222222 let az = Y(D, R, Z, ao, ay)
223223 if ((((az[1] / 5) + 1000000000) > az[0]))
224224 then ScriptResult(WriteSet([DataEntry(("game_" + h), false), DataEntry(("gameWinner_" + h), ao), DataEntry(("gameId_" + ao), ""), DataEntry(("gameId_" + ay), ""), DataEntry(("lastShotDistance_" + h), az[0]), DataEntry(("lastShotLat_" + h), az[2]), DataEntry(("lastShotLon_" + h), az[3])]), TransferSet([ScriptTransfer(al.caller, 2, am)]))
225225 else WriteSet([DataEntry(("gameTurn_" + h), ay), DataEntry(("lastShotDistance_" + h), az[0]), DataEntry(("lastShotLat_" + h), az[2]), DataEntry(("lastShotLon_" + h), az[3])])
226226 }
227227 }
228228
229229
230230
231231 @Callable(al)
232232 func faucet () = {
233233 let am = unit
234234 let ao = toString(al.caller)
235235 let aA = assetBalance(al.caller, am)
236236 if ((100 > aA))
237237 then TransferSet([ScriptTransfer(al.caller, 100, am)])
238238 else TransferSet(nil)
239239 }
240240
241241

github/deemru/w8io/026f985 
40.19 ms