tx · BMx1xQkK1Y8BHY5H4tqoJR8FUxjMm8KZNfzFTf46yGvK 3MsNU6eQC1F3m7yiqmkkw733kiE45J5NL8B: -0.04000000 Waves 2020.09.03 20:32 [1161509] smart account 3MsNU6eQC1F3m7yiqmkkw733kiE45J5NL8B > SELF 0.00000000 Waves
{ "type": 13, "id": "BMx1xQkK1Y8BHY5H4tqoJR8FUxjMm8KZNfzFTf46yGvK", "fee": 4000000, "feeAssetId": null, "timestamp": 1599154348129, "version": 1, "sender": "3MsNU6eQC1F3m7yiqmkkw733kiE45J5NL8B", "senderPublicKey": "ACwRxGgCQ8fyGhT2BkKEzPGCySdsKfjqs1w8xb51zhTR", "proofs": [ "2i5tkrUqUzzEUtmTyBm2KeFo9evSfAk2LEq831jFxPwFgBpZTTdagiBkEwvaaezEkxSa6msbP4QFePp4Jb5etuig" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIBARIFCgMBAQESABIAAAAADAEAAAAJc2V0Q29vcmRzAAAAAwAAAANrZXkAAAAIbGF0aXR1ZGUAAAAJbG9uZ2l0dWRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAADHBvc2l0aW9uTGF0XwUAAAADa2V5BQAAAAhsYXRpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxvbl8FAAAAA2tleQUAAAAJbG9uZ2l0dWRlBQAAAANuaWwBAAAAC3NldEdhbWVEYXRhAAAAAgAAAAlwbGF5ZXJLZXkAAAALb3Bwb25lbnRLZXkEAAAABmdhbWVJZAkAASwAAAACCQABLAAAAAIFAAAACXBsYXllcktleQIAAAABXwUAAAALb3Bwb25lbnRLZXkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAHZ2FtZUlkXwUAAAAJcGxheWVyS2V5BQAAAAZnYW1lSWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAA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ACCQABLAAAAAICAAAADGxhc3RTaG90TG9uXwUAAAAGZ2FtZUlkCQABkQAAAAIFAAAACHNob3REYXRhAAAAAAAAAAADBQAAAANuaWwAAAABaQEAAAAGZmF1Y2V0AAAAAAQAAAAFYXNzZXQBAAAAAAQAAAAGY2FsbGVyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAHYmFsYW5jZQkAA+sAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABWFzc2V0AwkAAGYAAAACAAAAAAA7msoABQAAAAdiYWxhbmNlCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAO5rKAAUAAAAFYXNzZXQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAWkBAAAADHNldEdhbWVGYWxzZQAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAATGdhbWVfM05EQVNkY2dMTkplYnpZOHE1Y293cDZYWFA2R29TTGhjOG5fM011REdrUHdvQ2tVU0U0OUJmQjRKc3VHWUxSTmJMalhnZGIHBQAAAANuaWwAAAAA2jN4qQ==", "chainId": 84, "height": 1161509, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EftcYGhRWxfkDR3j63cXGUKLxRP3QXteahyWCy86PqAs Next: none Diff:
Old | New | Differences | |
---|---|---|---|
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(aj) | |
222 | - | func testFunctions (aa,ab,ac,ad,D,R,Z) = { | |
223 | - | let ae = E(aa, ab, ac, ad) | |
224 | - | let af = ((ae * 980665) / 100000) | |
225 | - | let ag = B(((af * Z) / 100000), D) | |
226 | - | let ah = N(aa, ab, ag, R) | |
227 | - | let ai = E(ah[0], ah[1], ac, ad) | |
228 | - | WriteSet([DataEntry("optVel", af), DataEntry("reach", ag), DataEntry("dist", ae), DataEntry("impLat", ah[0]), DataEntry("impLon", ah[1]), DataEntry("impDist", ai)]) | |
229 | - | } | |
222 | + | func setGameFalse () = WriteSet([DataEntry("game_3NDASdcgLNJebzY8q5cowp6XXP6GoSLhc8n_3MuDGkPwoCkUSE49BfB4JsuGYLRNbLjXgdb", false)]) | |
230 | 223 | ||
231 | 224 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c,d) = [DataEntry(("positionLat_" + b), c), DataEntry(("positionLon_" + b), d)] | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func e (f,g) = { | |
8 | 8 | let h = ((f + "_") + g) | |
9 | 9 | [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), "")] | |
10 | 10 | } | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func i (b) = getStringValue(this, ("gameId_" + b)) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func j (k) = { | |
17 | 17 | let l = (k / 628318) | |
18 | 18 | if ((0 > k)) | |
19 | 19 | then { | |
20 | 20 | let m = -(k) | |
21 | 21 | if ((m > 628318)) | |
22 | 22 | then { | |
23 | 23 | let n = (m + (l * 628318)) | |
24 | 24 | if ((n > 314159)) | |
25 | 25 | then { | |
26 | 26 | let o = ((16 * (n - 314159)) * (314159 - (n - 314159))) | |
27 | 27 | ((o * 100000) / (493480220050 - (o / 4))) | |
28 | 28 | } | |
29 | 29 | else { | |
30 | 30 | let o = ((16 * n) * (314159 - n)) | |
31 | 31 | ((-(o) * 100000) / (493480220050 - (o / 4))) | |
32 | 32 | } | |
33 | 33 | } | |
34 | 34 | else if ((m > 314159)) | |
35 | 35 | then { | |
36 | 36 | let o = ((16 * (m - 314159)) * (314159 - (m - 314159))) | |
37 | 37 | ((o * 100000) / (493480220050 - (o / 4))) | |
38 | 38 | } | |
39 | 39 | else { | |
40 | 40 | let o = ((16 * m) * (314159 - m)) | |
41 | 41 | ((-(o) * 100000) / (493480220050 - (o / 4))) | |
42 | 42 | } | |
43 | 43 | } | |
44 | 44 | else if ((k > 628318)) | |
45 | 45 | then { | |
46 | 46 | let n = (k - (l * 628318)) | |
47 | 47 | if ((n > 314159)) | |
48 | 48 | then { | |
49 | 49 | let o = ((16 * (n - 314159)) * (314159 - (n - 314159))) | |
50 | 50 | ((-(o) * 100000) / (493480220050 - (o / 4))) | |
51 | 51 | } | |
52 | 52 | else { | |
53 | 53 | let o = ((16 * n) * (314159 - n)) | |
54 | 54 | ((o * 100000) / (493480220050 - (o / 4))) | |
55 | 55 | } | |
56 | 56 | } | |
57 | 57 | else if ((k > 314159)) | |
58 | 58 | then { | |
59 | 59 | let o = ((16 * (k - 314159)) * (314159 - (k - 314159))) | |
60 | 60 | ((-(o) * 100000) / (493480220050 - (o / 4))) | |
61 | 61 | } | |
62 | 62 | else { | |
63 | 63 | let o = ((16 * k) * (314159 - k)) | |
64 | 64 | ((o * 100000) / (493480220050 - (o / 4))) | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func p (k) = j((157079 - k)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func q (r) = if ((-100000 >= r)) | |
73 | 73 | then -157079 | |
74 | 74 | else if ((r >= 100000)) | |
75 | 75 | then 157079 | |
76 | 76 | else if ((0 > r)) | |
77 | 77 | then { | |
78 | 78 | let s = (-1 * r) | |
79 | 79 | let t = (((-1873 * s) / 100000) + 7426) | |
80 | 80 | let u = (((t * s) / 100000) - 21211) | |
81 | 81 | let v = (((u * s) / 100000) + 157072) | |
82 | 82 | let w = pow((100000 - s), 5, 5, 1, 5, HALFEVEN) | |
83 | 83 | -((157079 - ((w * v) / 100000))) | |
84 | 84 | } | |
85 | 85 | else { | |
86 | 86 | let t = (((-1873 * r) / 100000) + 7426) | |
87 | 87 | let u = (((t * r) / 100000) - 21211) | |
88 | 88 | let v = (((u * r) / 100000) + 157072) | |
89 | 89 | let w = pow((100000 - r), 5, 5, 1, 5, HALFEVEN) | |
90 | 90 | (157079 - ((w * v) / 100000)) | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func x (r) = { | |
95 | 95 | let y = ((r * r) / 100000) | |
96 | 96 | if ((-100000 > r)) | |
97 | 97 | then (-157079 - ((r * 100000) / (y + 28000))) | |
98 | 98 | else if ((r > 100000)) | |
99 | 99 | then (157079 - ((r * 100000) / (y + 28000))) | |
100 | 100 | else ((r * 100000) / (100000 + ((28000 * y) / 100000))) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func z (A,r) = if ((r > 0)) | |
105 | 105 | then x((A / r)) | |
106 | 106 | else if (if ((0 > r)) | |
107 | 107 | then (A >= 0) | |
108 | 108 | else false) | |
109 | 109 | then (x((A / r)) + 314159) | |
110 | 110 | else if (if ((0 > r)) | |
111 | 111 | then (0 > A) | |
112 | 112 | else false) | |
113 | 113 | then (x((A / r)) - 314159) | |
114 | 114 | else if (if ((r == 0)) | |
115 | 115 | then (A > 0) | |
116 | 116 | else false) | |
117 | 117 | then 157079 | |
118 | 118 | else if (if ((r == 0)) | |
119 | 119 | then (0 > A) | |
120 | 120 | else false) | |
121 | 121 | then -157079 | |
122 | 122 | else 0 | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func B (C,D) = (((2 * C) * ((p(D) * j(D)) / 100000)) / 980665) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func E (F,G,H,I) = { | |
129 | 129 | let J = j(((F - H) / 2)) | |
130 | 130 | let K = j(((G - I) / 2)) | |
131 | 131 | let L = ((J * J) + (((p(F) * p(H)) / 100000) * ((K * K) / 100000))) | |
132 | 132 | let M = (2 * q(pow((L / 1000), 7, 5, 1, 5, HALFEVEN))) | |
133 | 133 | (6371000 * M) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func N (O,P,Q,R) = { | |
138 | 138 | let S = j(O) | |
139 | 139 | let T = p(O) | |
140 | 140 | let U = j((Q / 6371000)) | |
141 | 141 | let V = p((Q / 6371000)) | |
142 | 142 | let W = q((((S * V) / 100000) + (((T * U) * p(R)) / 10000000000))) | |
143 | 143 | let X = (P + z((((j(R) * U) * T) / 100000), (V - ((S * j(W)) / 100000)))) | |
144 | 144 | [W, X] | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func Y (D,R,Z,f,g) = { | |
149 | 149 | let aa = getIntegerValue(this, ("positionLat_" + f)) | |
150 | 150 | let ab = getIntegerValue(this, ("positionLon_" + f)) | |
151 | 151 | let ac = getIntegerValue(this, ("positionLat_" + g)) | |
152 | 152 | let ad = getIntegerValue(this, ("positionLon_" + g)) | |
153 | 153 | let ae = E(aa, ab, ac, ad) | |
154 | 154 | let af = ((ae * 980665) / 100000) | |
155 | 155 | let ag = B(((af * Z) / 100000), D) | |
156 | 156 | let ah = N(aa, ab, ag, R) | |
157 | 157 | let ai = E(ah[0], ah[1], ac, ad) | |
158 | 158 | [ai, ae] :: ah | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(aj) | |
163 | 163 | func startGame (c,d) = { | |
164 | 164 | let ak = base58'' | |
165 | 165 | let al = value(aj.payment) | |
166 | 166 | let am = toString(aj.caller) | |
167 | 167 | let an = a(am, ((c * 1745) / 100000), ((d * 1745) / 100000)) | |
168 | 168 | let ao = getString(this, "openGame") | |
169 | 169 | if (if ((al.assetId == ak)) | |
170 | 170 | then (al.amount >= 100000000) | |
171 | 171 | else false) | |
172 | 172 | then { | |
173 | 173 | let h = getString(this, ("gameId_" + am)) | |
174 | 174 | if (if ((h != "")) | |
175 | 175 | then (h != unit) | |
176 | 176 | else false) | |
177 | 177 | then throw("Please finish your current game, before starting another one") | |
178 | 178 | else if (!(isDefined(ao))) | |
179 | 179 | then WriteSet(DataEntry("openGame", am) :: an) | |
180 | 180 | else if (if ((ao == "")) | |
181 | 181 | then true | |
182 | 182 | else (ao == am)) | |
183 | 183 | then WriteSet(DataEntry("openGame", am) :: an) | |
184 | 184 | else WriteSet([DataEntry("openGame", ""), an[0], an[1], e(value(ao), am)]) | |
185 | 185 | } | |
186 | 186 | else throw("Please pay the token") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(aj) | |
192 | 192 | func executeShot (D,R,Z) = { | |
193 | 193 | let ak = base58'' | |
194 | 194 | let am = toString(aj.caller) | |
195 | 195 | let ap = getStringValue(this, ("opponent_" + am)) | |
196 | 196 | let h = i(am) | |
197 | 197 | if ((getStringValue(this, ("gameTurn_" + h)) != am)) | |
198 | 198 | then throw("Please wait for your turn.") | |
199 | 199 | else { | |
200 | 200 | let aq = Y(D, R, Z, am, ap) | |
201 | 201 | if ((((aq[1] / 5) + 1000000000) > aq[0])) | |
202 | 202 | then ScriptResult(WriteSet([DataEntry(("game_" + h), false), DataEntry(("gameWinner_" + h), am), DataEntry(("gameId_" + am), ""), DataEntry(("gameId_" + ap), ""), DataEntry(("lastShotDistance_" + h), aq[0]), DataEntry(("lastShotLat_" + h), aq[2]), DataEntry(("lastShotLon_" + h), aq[3])]), TransferSet([ScriptTransfer(aj.caller, 200000000, ak)])) | |
203 | 203 | else WriteSet([DataEntry(("gameTurn_" + h), ap), DataEntry(("lastShotDistance_" + h), aq[0]), DataEntry(("lastShotLat_" + h), aq[2]), DataEntry(("lastShotLon_" + h), aq[3])]) | |
204 | 204 | } | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | ||
209 | 209 | @Callable(aj) | |
210 | 210 | func faucet () = { | |
211 | 211 | let ak = base58'' | |
212 | 212 | let am = toString(aj.caller) | |
213 | 213 | let ar = assetBalance(aj.caller, ak) | |
214 | 214 | if ((1000000000 > ar)) | |
215 | 215 | then TransferSet([ScriptTransfer(aj.caller, 1000000000, ak)]) | |
216 | 216 | else TransferSet(nil) | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(aj) | |
222 | - | func testFunctions (aa,ab,ac,ad,D,R,Z) = { | |
223 | - | let ae = E(aa, ab, ac, ad) | |
224 | - | let af = ((ae * 980665) / 100000) | |
225 | - | let ag = B(((af * Z) / 100000), D) | |
226 | - | let ah = N(aa, ab, ag, R) | |
227 | - | let ai = E(ah[0], ah[1], ac, ad) | |
228 | - | WriteSet([DataEntry("optVel", af), DataEntry("reach", ag), DataEntry("dist", ae), DataEntry("impLat", ah[0]), DataEntry("impLon", ah[1]), DataEntry("impDist", ai)]) | |
229 | - | } | |
222 | + | func setGameFalse () = WriteSet([DataEntry("game_3NDASdcgLNJebzY8q5cowp6XXP6GoSLhc8n_3MuDGkPwoCkUSE49BfB4JsuGYLRNbLjXgdb", false)]) | |
230 | 223 | ||
231 | 224 |
github/deemru/w8io/026f985 38.18 ms ◑