tx · 33wdTTV341VaS4z1bxxPiyRaqmQTXUd8hydcFpAbUc5k 3N4Gvj55qidiVSNrYzqNAVj8fc3R2Tphh1f: -0.04000000 Waves 2020.08.27 14:58 [1151085] smart account 3N4Gvj55qidiVSNrYzqNAVj8fc3R2Tphh1f > SELF 0.00000000 Waves
{ "type": 13, "id": "33wdTTV341VaS4z1bxxPiyRaqmQTXUd8hydcFpAbUc5k", "fee": 4000000, "feeAssetId": null, "timestamp": 1598529538219, "version": 1, "sender": "3N4Gvj55qidiVSNrYzqNAVj8fc3R2Tphh1f", "senderPublicKey": "Dg6SQzocBNbYBfLgVZXEzuSsoiGQoiGbjqU5jGXVY1Dw", "proofs": [ "5Hhu7J7MNZ73aiJjtygxNYS8fKZKroUbmknkiFGqveow4NW9YhahxHUQhnv3gtf3Xkx5DkZyDGbzsxy6wg52aqHi" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAAwBAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAACW9wcG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84, "height": 1151085, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4v4irga722LGQDinggbFYPz8q7C4MeQmzQe8azDWYPxj Next: GD1WQS2SiFDCLgfpwAfaSbqXrg8dixaEXjGJX8Z2TqC8 Diff:
Old | New | Differences | |
---|---|---|---|
179 | 179 | if (if ((gameActive == unit)) | |
180 | 180 | then true | |
181 | 181 | else value(gameActive)) | |
182 | - | then throw( | |
182 | + | then throw(toString(value(gameActive))) | |
183 | 183 | else if (!(isDefined(openGame))) | |
184 | 184 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
185 | 185 | else if (if ((openGame == "")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLon_" + key), longitude)] | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func setGameData (playerKey,opponentKey) = { | |
8 | 8 | let gameId = ((playerKey + "_") + opponentKey) | |
9 | 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 | 10 | } | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getGameId (key) = getStringValue(this, ("gameId_" + key)) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func sin (rad) = { | |
17 | 17 | let factor = (rad / 628318) | |
18 | 18 | if ((0 > rad)) | |
19 | 19 | then { | |
20 | 20 | let positive = -(rad) | |
21 | 21 | if ((positive > 628318)) | |
22 | 22 | then { | |
23 | 23 | let norm = (positive + (factor * 628318)) | |
24 | 24 | if ((norm > 314159)) | |
25 | 25 | then { | |
26 | 26 | let a = ((16 * (norm - 314159)) * (314159 - (norm - 314159))) | |
27 | 27 | ((a * 100000) / (493480220050 - (a / 4))) | |
28 | 28 | } | |
29 | 29 | else { | |
30 | 30 | let a = ((16 * norm) * (314159 - norm)) | |
31 | 31 | ((-(a) * 100000) / (493480220050 - (a / 4))) | |
32 | 32 | } | |
33 | 33 | } | |
34 | 34 | else if ((positive > 314159)) | |
35 | 35 | then { | |
36 | 36 | let a = ((16 * (positive - 314159)) * (314159 - (positive - 314159))) | |
37 | 37 | ((a * 100000) / (493480220050 - (a / 4))) | |
38 | 38 | } | |
39 | 39 | else { | |
40 | 40 | let a = ((16 * positive) * (314159 - positive)) | |
41 | 41 | ((-(a) * 100000) / (493480220050 - (a / 4))) | |
42 | 42 | } | |
43 | 43 | } | |
44 | 44 | else if ((rad > 628318)) | |
45 | 45 | then { | |
46 | 46 | let norm = (rad - (factor * 628318)) | |
47 | 47 | if ((norm > 314159)) | |
48 | 48 | then { | |
49 | 49 | let a = ((16 * (norm - 314159)) * (314159 - (norm - 314159))) | |
50 | 50 | ((-(a) * 100000) / (493480220050 - (a / 4))) | |
51 | 51 | } | |
52 | 52 | else { | |
53 | 53 | let a = ((16 * norm) * (314159 - norm)) | |
54 | 54 | ((a * 100000) / (493480220050 - (a / 4))) | |
55 | 55 | } | |
56 | 56 | } | |
57 | 57 | else if ((rad > 314159)) | |
58 | 58 | then { | |
59 | 59 | let a = ((16 * (rad - 314159)) * (314159 - (rad - 314159))) | |
60 | 60 | ((-(a) * 100000) / (493480220050 - (a / 4))) | |
61 | 61 | } | |
62 | 62 | else { | |
63 | 63 | let a = ((16 * rad) * (314159 - rad)) | |
64 | 64 | ((a * 100000) / (493480220050 - (a / 4))) | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func cos (rad) = sin((157079 - rad)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func asin (x) = if ((-100000 >= x)) | |
73 | 73 | then -157079 | |
74 | 74 | else if ((x >= 100000)) | |
75 | 75 | then 157079 | |
76 | 76 | else if ((0 > x)) | |
77 | 77 | then { | |
78 | 78 | let x1 = (-1 * x) | |
79 | 79 | let val2 = (((-1873 * x1) / 100000) + 7426) | |
80 | 80 | let val4 = (((val2 * x1) / 100000) - 21211) | |
81 | 81 | let val6 = (((val4 * x1) / 100000) + 157072) | |
82 | 82 | let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN) | |
83 | 83 | -((157079 - ((root * val6) / 100000))) | |
84 | 84 | } | |
85 | 85 | else { | |
86 | 86 | let val2 = (((-1873 * x) / 100000) + 7426) | |
87 | 87 | let val4 = (((val2 * x) / 100000) - 21211) | |
88 | 88 | let val6 = (((val4 * x) / 100000) + 157072) | |
89 | 89 | let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN) | |
90 | 90 | (157079 - ((root * val6) / 100000)) | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func atan (x) = { | |
95 | 95 | let xPow2 = ((x * x) / 100000) | |
96 | 96 | if ((-100000 > x)) | |
97 | 97 | then (-157079 - ((x * 100000) / (xPow2 + 28000))) | |
98 | 98 | else if ((x > 100000)) | |
99 | 99 | then (157079 - ((x * 100000) / (xPow2 + 28000))) | |
100 | 100 | else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000))) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func atan2 (y,x) = if ((x > 0)) | |
105 | 105 | then atan((y / x)) | |
106 | 106 | else if (if ((0 > x)) | |
107 | 107 | then (y >= 0) | |
108 | 108 | else false) | |
109 | 109 | then (atan((y / x)) + 314159) | |
110 | 110 | else if (if ((0 > x)) | |
111 | 111 | then (0 > y) | |
112 | 112 | else false) | |
113 | 113 | then (atan((y / x)) - 314159) | |
114 | 114 | else if (if ((x == 0)) | |
115 | 115 | then (y > 0) | |
116 | 116 | else false) | |
117 | 117 | then 157079 | |
118 | 118 | else if (if ((x == 0)) | |
119 | 119 | then (0 > y) | |
120 | 120 | else false) | |
121 | 121 | then -157079 | |
122 | 122 | else 0 | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func calculateShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func gpsDistance (lat1,lon1,lat2,lon2) = { | |
129 | 129 | let dLatSin = sin(((lat1 - lat2) / 2)) | |
130 | 130 | let dLonSin = sin(((lon1 - lon2) / 2)) | |
131 | 131 | let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000))) | |
132 | 132 | let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN))) | |
133 | 133 | (6371000 * theta) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func calculateImpactPosition (lat,lon,dist,yaw) = { | |
138 | 138 | let sinLat = sin(lat) | |
139 | 139 | let cosLat = cos(lat) | |
140 | 140 | let sinTh = sin((dist / 6371000)) | |
141 | 141 | let cosTh = cos((dist / 6371000)) | |
142 | 142 | let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000))) | |
143 | 143 | let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sin(newLat)) / 100000)))) | |
144 | 144 | [newLat, newLon] | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func calculateShot (pitch,yaw,force,playerKey,opponentKey) = { | |
149 | 149 | let playerLatitude = getIntegerValue(this, ("positionLat_" + playerKey)) | |
150 | 150 | let playerLongitude = getIntegerValue(this, ("positionLon_" + playerKey)) | |
151 | 151 | let opponentLatitude = getIntegerValue(this, ("positionLat_" + opponentKey)) | |
152 | 152 | let opponentLongitude = getIntegerValue(this, ("positionLon_" + opponentKey)) | |
153 | 153 | let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude) | |
154 | 154 | let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000) | |
155 | 155 | let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch) | |
156 | 156 | let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw) | |
157 | 157 | let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude) | |
158 | 158 | impactDistance :: impactPosition | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(i) | |
163 | 163 | func startGame (latitude,longitude) = { | |
164 | 164 | let asset = unit | |
165 | 165 | let payment = value(i.payment) | |
166 | 166 | let caller = toString(i.caller) | |
167 | 167 | let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000)) | |
168 | 168 | let openGame = getString(this, "openGame") | |
169 | 169 | if (if ((payment.assetId == asset)) | |
170 | 170 | then (payment.amount >= 1) | |
171 | 171 | else false) | |
172 | 172 | then { | |
173 | 173 | let gameId = getString(this, ("gameId_" + caller)) | |
174 | 174 | if (if ((gameId != "")) | |
175 | 175 | then (gameId != unit) | |
176 | 176 | else false) | |
177 | 177 | then { | |
178 | 178 | let gameActive = getBoolean(this, value(gameId)) | |
179 | 179 | if (if ((gameActive == unit)) | |
180 | 180 | then true | |
181 | 181 | else value(gameActive)) | |
182 | - | then throw( | |
182 | + | then throw(toString(value(gameActive))) | |
183 | 183 | else if (!(isDefined(openGame))) | |
184 | 184 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
185 | 185 | else if (if ((openGame == "")) | |
186 | 186 | then true | |
187 | 187 | else (openGame == caller)) | |
188 | 188 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
189 | 189 | else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)]) | |
190 | 190 | } | |
191 | 191 | else if (!(isDefined(openGame))) | |
192 | 192 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
193 | 193 | else if (if ((openGame == "")) | |
194 | 194 | then true | |
195 | 195 | else (openGame == caller)) | |
196 | 196 | then WriteSet(DataEntry("openGame", caller) :: coordinates) | |
197 | 197 | else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)]) | |
198 | 198 | } | |
199 | 199 | else throw("Please pay the token") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | 205 | func executeShot (pitch,yaw,force) = { | |
206 | 206 | let asset = unit | |
207 | 207 | let caller = toString(i.caller) | |
208 | 208 | let opponent = getStringValue(this, ("opponent_" + caller)) | |
209 | 209 | let gameId = getGameId(caller) | |
210 | 210 | if ((getStringValue(this, ("gameTurn_" + gameId)) != caller)) | |
211 | 211 | then throw("Please wait for your turn.") | |
212 | 212 | else { | |
213 | 213 | let shotData = calculateShot(pitch, yaw, force, caller, opponent) | |
214 | 214 | if ((((shotData[0] / 5) + 1000000000) > shotData[0])) | |
215 | 215 | then ScriptResult(WriteSet([DataEntry(("game_" + gameId), false), DataEntry(("gameWinner_" + gameId), caller), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[1]), DataEntry(("lastShotLon_" + gameId), shotData[2])]), TransferSet([ScriptTransfer(i.caller, 2, asset)])) | |
216 | 216 | else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[1]), DataEntry(("lastShotLon_" + gameId), shotData[2])]) | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | ||
222 | 222 | @Callable(i) | |
223 | 223 | func faucet () = { | |
224 | 224 | let asset = unit | |
225 | 225 | let caller = toString(i.caller) | |
226 | 226 | let balance = assetBalance(i.caller, asset) | |
227 | 227 | if ((100 > balance)) | |
228 | 228 | then TransferSet([ScriptTransfer(i.caller, 100, asset)]) | |
229 | 229 | else TransferSet(nil) | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 |
github/deemru/w8io/026f985 42.50 ms ◑