tx · FM7YtskvWKUPLXtMwZNjVLLXVFtTcm1ySS5j5wKUdsJX 3NCjNMztVAxwWaZDDiAPjw54WHidjcagGcD: -0.01000000 Waves 2020.07.28 21:14 [1107783] smart account 3NCjNMztVAxwWaZDDiAPjw54WHidjcagGcD > SELF 0.00000000 Waves
{ "type": 13, "id": "FM7YtskvWKUPLXtMwZNjVLLXVFtTcm1ySS5j5wKUdsJX", "fee": 1000000, "feeAssetId": null, "timestamp": 1595960117699, "version": 1, "sender": "3NCjNMztVAxwWaZDDiAPjw54WHidjcagGcD", "senderPublicKey": "6XjjDoV8qkvEQ7e3FT8x9NyswjdCaeBDBHVJAahqcHE7", "proofs": [ "rLRj1YY7y1VZ56WmdetVeiVgH5aCDpxrMJR59onQL6cfxMyX9yb22RoQEbdqxfpyb8RfJT4fvo14pvruejU8Use" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAA0BAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAANcG9zaXRpb25Mb25nXwUAAAADa2V5BQAAAAlsb25naXR1ZGUFAAAAA25pbAEAAAALc2V0R2FtZURhdGEAAAACAAAACXBsYXllcktleQAAAAtvcHBvbmVudEtleQQAAAAGZ2FtZUlkCQABLAAAAAIJAAEsAAAAAgUAAAAJcGxheWVyS2V5AgAAAAFfBQAAAAtvcHBvbmVudEtleQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAdnYW1lSWRfBQAAAAlwbGF5ZXJLZXkFAAAABmdhbWVJZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAlvcHBvbmVudF8FAA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View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLong_" + key), longitude)] | |
5 | + | ||
6 | + | ||
7 | + | func setGameData (playerKey,opponentKey) = { | |
8 | + | let gameId = ((playerKey + "_") + opponentKey) | |
9 | + | [DataEntry(("gameId_" + playerKey), gameId), DataEntry(("opponent_" + playerKey), opponentKey), DataEntry(("gameId_" + opponentKey), gameId), DataEntry(("opponent_" + opponentKey), playerKey), DataEntry(("game_" + gameId), true), DataEntry(("gameTurn_" + gameId), playerKey), DataEntry(("gameWinner_" + gameId), "")] | |
10 | + | } | |
11 | + | ||
12 | + | ||
13 | + | func getGameId (key) = getStringValue(this, ("gameId_" + key)) | |
14 | + | ||
15 | + | ||
16 | + | func sin (rad) = { | |
17 | + | let factor = (rad / 628318) | |
18 | + | if ((0 > rad)) | |
19 | + | then { | |
20 | + | let positive = -(rad) | |
21 | + | if ((positive > 628318)) | |
22 | + | then { | |
23 | + | let norm = (positive + (factor * 628318)) | |
24 | + | if ((norm > 314159)) | |
25 | + | then { | |
26 | + | let norm2 = (norm - 314159) | |
27 | + | let a = ((16 * norm2) * (314159 - norm2)) | |
28 | + | let b = (493480220050 - (a / 4)) | |
29 | + | ((a * 100000) / b) | |
30 | + | } | |
31 | + | else { | |
32 | + | let a = ((16 * norm) * (314159 - norm)) | |
33 | + | let b = (493480220050 - (a / 4)) | |
34 | + | ((-(a) * 100000) / b) | |
35 | + | } | |
36 | + | } | |
37 | + | else if ((positive > 314159)) | |
38 | + | then { | |
39 | + | let norm = (positive - 314159) | |
40 | + | let a = ((16 * norm) * (314159 - norm)) | |
41 | + | let b = (493480220050 - (a / 4)) | |
42 | + | ((a * 100000) / b) | |
43 | + | } | |
44 | + | else { | |
45 | + | let a = ((16 * positive) * (314159 - positive)) | |
46 | + | let b = (493480220050 - (a / 4)) | |
47 | + | ((-(a) * 100000) / b) | |
48 | + | } | |
49 | + | } | |
50 | + | else if ((rad > 628318)) | |
51 | + | then { | |
52 | + | let norm = (rad - (factor * 628318)) | |
53 | + | if ((norm > 314159)) | |
54 | + | then { | |
55 | + | let norm2 = (norm - 314159) | |
56 | + | let a = ((16 * norm2) * (314159 - norm2)) | |
57 | + | let b = (493480220050 - (a / 4)) | |
58 | + | ((-(a) * 100000) / b) | |
59 | + | } | |
60 | + | else { | |
61 | + | let a = ((16 * norm) * (314159 - norm)) | |
62 | + | let b = (493480220050 - (a / 4)) | |
63 | + | ((a * 100000) / b) | |
64 | + | } | |
65 | + | } | |
66 | + | else if ((rad > 314159)) | |
67 | + | then { | |
68 | + | let norm = (rad - 314159) | |
69 | + | let a = ((16 * norm) * (314159 - norm)) | |
70 | + | let b = (493480220050 - (a / 4)) | |
71 | + | ((-(a) * 100000) / b) | |
72 | + | } | |
73 | + | else { | |
74 | + | let a = ((16 * rad) * (314159 - rad)) | |
75 | + | let b = (493480220050 - (a / 4)) | |
76 | + | ((a * 100000) / b) | |
77 | + | } | |
78 | + | } | |
79 | + | ||
80 | + | ||
81 | + | func cos (rad) = sin((157079 - rad)) | |
82 | + | ||
83 | + | ||
84 | + | func asin (x) = { | |
85 | + | let xPow2 = ((x * x) / 10000000000) | |
86 | + | let xPow3 = ((x * x) * x) | |
87 | + | let val2 = (xPow3 / 60000000000) | |
88 | + | let val3 = (((xPow3 * 3) / 400000000000) * xPow2) | |
89 | + | let val4 = ((((xPow3 * 15) / 3360000000000) * xPow2) * xPow2) | |
90 | + | let val5 = (((((xPow3 * 105) / 34560000000000) * xPow2) * xPow2) * xPow2) | |
91 | + | ((((x + val2) + val3) + val4) + val5) | |
92 | + | } | |
93 | + | ||
94 | + | ||
95 | + | func atan (x) = if ((x > 100000)) | |
96 | + | then { | |
97 | + | let xInv = (10000000000 / x) | |
98 | + | let xInvPow2 = ((xInv * xInv) / 10000000000) | |
99 | + | let xInvPow3 = ((xInv * xInv) * xInv) | |
100 | + | let val2 = (xInvPow3 / 30000000000) | |
101 | + | let val3 = ((xInvPow3 / 50000000000) * xInvPow2) | |
102 | + | let val4 = (((xInvPow3 / 70000000000) * xInvPow2) * xInvPow2) | |
103 | + | let val5 = ((((xInvPow3 / 90000000000) * xInvPow2) * xInvPow2) * xInvPow2) | |
104 | + | (((((157080 - xInv) + val2) - val3) + val4) - val5) | |
105 | + | } | |
106 | + | else if ((-100000 > x)) | |
107 | + | then { | |
108 | + | let xInv = (10000000000 / x) | |
109 | + | let xInvPow2 = ((xInv * xInv) / 10000000000) | |
110 | + | let xInvPow3 = ((xInv * xInv) * xInv) | |
111 | + | let val2 = (xInvPow3 / 30000000000) | |
112 | + | let val3 = ((xInvPow3 / 50000000000) * xInvPow2) | |
113 | + | let val4 = (((xInvPow3 / 70000000000) * xInvPow2) * xInvPow2) | |
114 | + | let val5 = ((((xInvPow3 / 90000000000) * xInvPow2) * xInvPow2) * xInvPow2) | |
115 | + | (((((val2 - val3) + val4) - 157080) - xInv) - val5) | |
116 | + | } | |
117 | + | else { | |
118 | + | let xPow2 = ((x * x) / 10000000000) | |
119 | + | let xPow3 = ((x * x) * x) | |
120 | + | let val2 = (xPow3 / 30000000000) | |
121 | + | let val3 = ((xPow3 / 50000000000) * xPow2) | |
122 | + | let val4 = (((xPow3 / 70000000000) * xPow2) * xPow2) | |
123 | + | let val5 = ((((xPow3 / 90000000000) * xPow2) * xPow2) * xPow2) | |
124 | + | ((((x - val2) + val3) - val4) + val5) | |
125 | + | } | |
126 | + | ||
127 | + | ||
128 | + | func atan2 (y,x) = if ((x > 0)) | |
129 | + | then atan((y / x)) | |
130 | + | else if (if ((0 > x)) | |
131 | + | then (y >= 0) | |
132 | + | else false) | |
133 | + | then (atan((y / x)) + 314159) | |
134 | + | else if (if ((0 > x)) | |
135 | + | then (0 > y) | |
136 | + | else false) | |
137 | + | then (atan((y / x)) - 314159) | |
138 | + | else if (if ((x == 0)) | |
139 | + | then (y > 0) | |
140 | + | else false) | |
141 | + | then 157080 | |
142 | + | else if (if ((x == 0)) | |
143 | + | then (0 > y) | |
144 | + | else false) | |
145 | + | then -157080 | |
146 | + | else 0 | |
147 | + | ||
148 | + | ||
149 | + | func sqrt (x) = if ((2 > x)) | |
150 | + | then x | |
151 | + | else { | |
152 | + | let x1 = ((316 + (x / 316)) / 2) | |
153 | + | let x2 = ((x1 + (x / x1)) / 2) | |
154 | + | let x3 = ((x2 + (x / x2)) / 2) | |
155 | + | let x4 = ((x3 + (x / x3)) / 2) | |
156 | + | let x5 = ((x4 + (x / x4)) / 2) | |
157 | + | let x6 = ((x5 + (x / x5)) / 2) | |
158 | + | let x7 = ((x6 + (x / x6)) / 2) | |
159 | + | let x8 = ((x7 + (x / x7)) / 2) | |
160 | + | let x9 = ((x8 + (x / x8)) / 2) | |
161 | + | ((x9 + (x / x9)) / 2) | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | func getShotDistance (v,pitch) = (((2 * ((v * v) / 100000)) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665) | |
166 | + | ||
167 | + | ||
168 | + | func distance (lat1,lon1,lat2,lon2) = { | |
169 | + | let dLat = (lat1 - lat2) | |
170 | + | let dLon = (lon1 - lon2) | |
171 | + | let dLatSin = sin((dLat / 2)) | |
172 | + | let dLonSin = sin((dLon / 2)) | |
173 | + | let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000))) | |
174 | + | let theta = (2 * asin(sqrt(hav))) | |
175 | + | (637100000 * theta) | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func impact (lat,lon,dist,yaw) = { | |
180 | + | let th = (dist / 637100) | |
181 | + | let sinLat = sin(lat) | |
182 | + | let cosLat = cos(lat) | |
183 | + | let sinTh = sin(th) | |
184 | + | let cosTh = cos(th) | |
185 | + | let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000))) | |
186 | + | let newLon = (lon + (atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sinLat) / 100000))) * 100)) | |
187 | + | [newLat, newLon] | |
188 | + | } | |
189 | + | ||
190 | + | ||
191 | + | func gotHit (pitch,yaw,force,playerKey,opponentKey) = { | |
192 | + | let playerLat = getIntegerValue(this, ("positionLat_" + playerKey)) | |
193 | + | let playerLon = getIntegerValue(this, ("positionLong_" + playerKey)) | |
194 | + | let opponentLat = getIntegerValue(this, ("positionLat_" + opponentKey)) | |
195 | + | let opponentLon = getIntegerValue(this, ("positionLat_" + opponentKey)) | |
196 | + | let distanceBetweenPlayers = (distance(playerLat, playerLon, opponentLat, opponentLon) / 100000) | |
197 | + | let optimalVelocity = (sqrt(((distanceBetweenPlayers * 980665) / 10000)) * 1000) | |
198 | + | let playerShotReach = getShotDistance(((optimalVelocity * force) / 100000), pitch) | |
199 | + | let impactPosition = impact(playerLat, playerLon, playerShotReach, yaw) | |
200 | + | let impactDistance = (distance(impactPosition[0], impactPosition[1], opponentLat, opponentLon) / 100000) | |
201 | + | (100 > impactDistance) | |
202 | + | } | |
203 | + | ||
204 | + | ||
205 | + | @Callable(i) | |
206 | + | func startGame (latitude,longitude) = { | |
207 | + | let caller = toString(i.caller) | |
208 | + | let coordinates = setCoords(caller, (latitude * 1745), (longitude * 1745)) | |
209 | + | let openGame = getString(this, "openGame") | |
210 | + | let gameId = getString(this, ("gameId_" + caller)) | |
211 | + | if (if ((gameId != "")) | |
212 | + | then (gameId != unit) | |
213 | + | else false) | |
214 | + | then throw("Please finish your current game, before starting another one") | |
215 | + | else if (!(isDefined(openGame))) | |
216 | + | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
217 | + | else if (if ((openGame == "")) | |
218 | + | then true | |
219 | + | else (openGame == caller)) | |
220 | + | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
221 | + | else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)]) | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | @Callable(i) | |
227 | + | func executeShot (pitch,yaw,force) = { | |
228 | + | let asset = base58'' | |
229 | + | let caller = toString(i.caller) | |
230 | + | let opponent = getStringValue(this, ("opponent_" + caller)) | |
231 | + | let gameId = getGameId(caller) | |
232 | + | if ((getStringValue(this, ("gameTurn_" + gameId)) != caller)) | |
233 | + | then throw("please wait for your turn") | |
234 | + | else if (gotHit(pitch, yaw, force, caller, opponent)) | |
235 | + | then ScriptResult(WriteSet([DataEntry(("game_" + gameId), false), DataEntry(("gameWinner_" + gameId), caller)]), TransferSet([ScriptTransfer(i.caller, 0, asset)])) | |
236 | + | else WriteSet([DataEntry(("gameTurn_" + gameId), opponent)]) | |
237 | + | } | |
238 | + | ||
239 | + | ||
240 | + | ||
241 | + | @Callable(i) | |
242 | + | func faucet () = { | |
243 | + | let asset = base58'' | |
244 | + | let caller = toString(i.caller) | |
245 | + | let balance = assetBalance(i.caller, asset) | |
246 | + | if ((1000 > balance)) | |
247 | + | then TransferSet([ScriptTransfer(i.caller, 100, asset)]) | |
248 | + | else TransferSet(nil) | |
249 | + | } | |
250 | + | ||
251 | + |
github/deemru/w8io/026f985 26.86 ms ◑