tx · 5AZF7tFWV7MnqAB7NFBLRD7rngzgYY6GrDqT2aVQaaQc

3N4Gvj55qidiVSNrYzqNAVj8fc3R2Tphh1f:  -0.04000000 Waves

2020.08.27 00:22 [1150215] smart account 3N4Gvj55qidiVSNrYzqNAVj8fc3R2Tphh1f > SELF 0.00000000 Waves

{ "type": 13, "id": "5AZF7tFWV7MnqAB7NFBLRD7rngzgYY6GrDqT2aVQaaQc", "fee": 4000000, "feeAssetId": null, "timestamp": 1598476977583, "version": 1, "sender": "3N4Gvj55qidiVSNrYzqNAVj8fc3R2Tphh1f", "senderPublicKey": "Dg6SQzocBNbYBfLgVZXEzuSsoiGQoiGbjqU5jGXVY1Dw", "proofs": [ "4LxuDP9ia1RXAgEweLKn3RqVoDoB2FmBnTeoUNZixvpXaP9PrhAQEs2jrzGavg96ByNDTi8sUd4hJ7Q3fSjEVV2q" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAAwBAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAA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vdERhdGEAAAAAAAAAAAIFAAAAA25pbAAAAAFpAQAAAAZmYXVjZXQAAAAABAAAAAVhc3NldAUAAAAEdW5pdAQAAAAGY2FsbGVyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAHYmFsYW5jZQkAA+sAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABWFzc2V0AwkAAGYAAAACAAAAAAAAAABkBQAAAAdiYWxhbmNlCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAAFYXNzZXQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAKM11TM=", "chainId": 84, "height": 1150215, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EX8GggxXedVL3RB7YuGAECtcfd323unmmVhrWtVcZj6D Next: FV8QoZUhqA2sr97KyRqduMzPiuvc851WmwiUBET2GFbm Diff:
OldNewDifferences
170170 then (payment.amount >= 1)
171171 else false)
172172 then {
173- let gameId = getString(this, ("gameId_" + caller))
174- let gameActive = getBoolean(this, value(gameId))
175- if (if (if ((gameId != ""))
176- then (gameId != unit)
177- else false)
173+ let gameId = getStringValue(this, ("gameId_" + caller))
174+ let gameActive = getBooleanValue(this, gameId)
175+ if (if ((gameId != ""))
178176 then !(value(gameActive))
179177 else false)
180178 then throw("Please finish your current game, before starting another one")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLon_" + key), longitude)]
55
66
77 func setGameData (playerKey,opponentKey) = {
88 let gameId = ((playerKey + "_") + opponentKey)
99 [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), "")]
1010 }
1111
1212
1313 func getGameId (key) = getStringValue(this, ("gameId_" + key))
1414
1515
1616 func sin (rad) = {
1717 let factor = (rad / 628318)
1818 if ((0 > rad))
1919 then {
2020 let positive = -(rad)
2121 if ((positive > 628318))
2222 then {
2323 let norm = (positive + (factor * 628318))
2424 if ((norm > 314159))
2525 then {
2626 let a = ((16 * (norm - 314159)) * (314159 - (norm - 314159)))
2727 ((a * 100000) / (493480220050 - (a / 4)))
2828 }
2929 else {
3030 let a = ((16 * norm) * (314159 - norm))
3131 ((-(a) * 100000) / (493480220050 - (a / 4)))
3232 }
3333 }
3434 else if ((positive > 314159))
3535 then {
3636 let a = ((16 * (positive - 314159)) * (314159 - (positive - 314159)))
3737 ((a * 100000) / (493480220050 - (a / 4)))
3838 }
3939 else {
4040 let a = ((16 * positive) * (314159 - positive))
4141 ((-(a) * 100000) / (493480220050 - (a / 4)))
4242 }
4343 }
4444 else if ((rad > 628318))
4545 then {
4646 let norm = (rad - (factor * 628318))
4747 if ((norm > 314159))
4848 then {
4949 let a = ((16 * (norm - 314159)) * (314159 - (norm - 314159)))
5050 ((-(a) * 100000) / (493480220050 - (a / 4)))
5151 }
5252 else {
5353 let a = ((16 * norm) * (314159 - norm))
5454 ((a * 100000) / (493480220050 - (a / 4)))
5555 }
5656 }
5757 else if ((rad > 314159))
5858 then {
5959 let a = ((16 * (rad - 314159)) * (314159 - (rad - 314159)))
6060 ((-(a) * 100000) / (493480220050 - (a / 4)))
6161 }
6262 else {
6363 let a = ((16 * rad) * (314159 - rad))
6464 ((a * 100000) / (493480220050 - (a / 4)))
6565 }
6666 }
6767
6868
6969 func cos (rad) = sin((157079 - rad))
7070
7171
7272 func asin (x) = if ((-100000 >= x))
7373 then -157079
7474 else if ((x >= 100000))
7575 then 157079
7676 else if ((0 > x))
7777 then {
7878 let x1 = (-1 * x)
7979 let val2 = (((-1873 * x1) / 100000) + 7426)
8080 let val4 = (((val2 * x1) / 100000) - 21211)
8181 let val6 = (((val4 * x1) / 100000) + 157072)
8282 let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
8383 -((157079 - ((root * val6) / 100000)))
8484 }
8585 else {
8686 let val2 = (((-1873 * x) / 100000) + 7426)
8787 let val4 = (((val2 * x) / 100000) - 21211)
8888 let val6 = (((val4 * x) / 100000) + 157072)
8989 let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
9090 (157079 - ((root * val6) / 100000))
9191 }
9292
9393
9494 func atan (x) = {
9595 let xPow2 = ((x * x) / 100000)
9696 if ((-100000 > x))
9797 then (-157079 - ((x * 100000) / (xPow2 + 28000)))
9898 else if ((x > 100000))
9999 then (157079 - ((x * 100000) / (xPow2 + 28000)))
100100 else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000)))
101101 }
102102
103103
104104 func atan2 (y,x) = if ((x > 0))
105105 then atan((y / x))
106106 else if (if ((0 > x))
107107 then (y >= 0)
108108 else false)
109109 then (atan((y / x)) + 314159)
110110 else if (if ((0 > x))
111111 then (0 > y)
112112 else false)
113113 then (atan((y / x)) - 314159)
114114 else if (if ((x == 0))
115115 then (y > 0)
116116 else false)
117117 then 157079
118118 else if (if ((x == 0))
119119 then (0 > y)
120120 else false)
121121 then -157079
122122 else 0
123123
124124
125125 func calculateShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665)
126126
127127
128128 func gpsDistance (lat1,lon1,lat2,lon2) = {
129129 let dLatSin = sin(((lat1 - lat2) / 2))
130130 let dLonSin = sin(((lon1 - lon2) / 2))
131131 let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
132132 let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN)))
133133 (6371000 * theta)
134134 }
135135
136136
137137 func calculateImpactPosition (lat,lon,dist,yaw) = {
138138 let sinLat = sin(lat)
139139 let cosLat = cos(lat)
140140 let sinTh = sin((dist / 6371000))
141141 let cosTh = cos((dist / 6371000))
142142 let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
143143 let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sin(newLat)) / 100000))))
144144 [newLat, newLon]
145145 }
146146
147147
148148 func calculateShot (pitch,yaw,force,playerKey,opponentKey) = {
149149 let playerLatitude = getIntegerValue(this, ("positionLat_" + playerKey))
150150 let playerLongitude = getIntegerValue(this, ("positionLon_" + playerKey))
151151 let opponentLatitude = getIntegerValue(this, ("positionLat_" + opponentKey))
152152 let opponentLongitude = getIntegerValue(this, ("positionLon_" + opponentKey))
153153 let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
154154 let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
155155 let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
156156 let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
157157 let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
158158 impactDistance :: impactPosition
159159 }
160160
161161
162162 @Callable(i)
163163 func startGame (latitude,longitude) = {
164164 let asset = unit
165165 let payment = value(i.payment)
166166 let caller = toString(i.caller)
167167 let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000))
168168 let openGame = getString(this, "openGame")
169169 if (if ((payment.assetId == asset))
170170 then (payment.amount >= 1)
171171 else false)
172172 then {
173- let gameId = getString(this, ("gameId_" + caller))
174- let gameActive = getBoolean(this, value(gameId))
175- if (if (if ((gameId != ""))
176- then (gameId != unit)
177- else false)
173+ let gameId = getStringValue(this, ("gameId_" + caller))
174+ let gameActive = getBooleanValue(this, gameId)
175+ if (if ((gameId != ""))
178176 then !(value(gameActive))
179177 else false)
180178 then throw("Please finish your current game, before starting another one")
181179 else if (!(isDefined(openGame)))
182180 then WriteSet(DataEntry("openGame", caller) :: coordinates)
183181 else if (if ((openGame == ""))
184182 then true
185183 else (openGame == caller))
186184 then WriteSet(DataEntry("openGame", caller) :: coordinates)
187185 else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)])
188186 }
189187 else throw("Please pay the token")
190188 }
191189
192190
193191
194192 @Callable(i)
195193 func executeShot (pitch,yaw,force) = {
196194 let asset = unit
197195 let caller = toString(i.caller)
198196 let opponent = getStringValue(this, ("opponent_" + caller))
199197 let gameId = getGameId(caller)
200198 if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
201199 then throw("Please wait for your turn.")
202200 else {
203201 let shotData = calculateShot(pitch, yaw, force, caller, opponent)
204202 if ((((shotData[0] / 5) + 1000000000) > shotData[0]))
205203 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)]))
206204 else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[1]), DataEntry(("lastShotLon_" + gameId), shotData[2])])
207205 }
208206 }
209207
210208
211209
212210 @Callable(i)
213211 func faucet () = {
214212 let asset = unit
215213 let caller = toString(i.caller)
216214 let balance = assetBalance(i.caller, asset)
217215 if ((100 > balance))
218216 then TransferSet([ScriptTransfer(i.caller, 100, asset)])
219217 else TransferSet(nil)
220218 }
221219
222220

github/deemru/w8io/026f985 
36.18 ms