tx · 7ZRzbzHxPAohtfKGr54pniPDtxRWfpduqbw7vCpgm2zF

3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss:  -0.04000000 Waves

2020.08.26 16:33 [1149737] smart account 3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss > SELF 0.00000000 Waves

{ "type": 13, "id": "7ZRzbzHxPAohtfKGr54pniPDtxRWfpduqbw7vCpgm2zF", "fee": 4000000, "feeAssetId": null, "timestamp": 1598448838524, "version": 1, "sender": "3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss", "senderPublicKey": "7EaUr5Z6zmEQJXz7jVWXjW7xbJLakPjxFPTZFogi8wzr", "proofs": [ "5Pxt32XVrZBYNJdhHovDYNqfmg6zLABGA5B27vSxxefPcXc7vAk38gvAG5QprLPTWzdnv9rAKVPo3jRxyBZKPPNb" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAA0BAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAACW9wcG9uZW50XwUAAAA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AAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAABWFzc2V0BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAAp8J9c", "chainId": 84, "height": 1149737, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: KBVmbsJWPj72FrbD5c796Ext9XfkhgiqvEc2dxizpgq Next: GamSdocX62oKKoVeMVNkgwXfGQTX8DS9supQpymGwp4i 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 norm2 = (norm - 314159)
2727 let a = ((16 * norm2) * (314159 - norm2))
2828 let b = (493480220050 - (a / 4))
2929 ((a * 100000) / b)
3030 }
3131 else {
3232 let a = ((16 * norm) * (314159 - norm))
3333 let b = (493480220050 - (a / 4))
3434 ((-(a) * 100000) / b)
3535 }
3636 }
3737 else if ((positive > 314159))
3838 then {
3939 let norm = (positive - 314159)
4040 let a = ((16 * norm) * (314159 - norm))
4141 let b = (493480220050 - (a / 4))
4242 ((a * 100000) / b)
4343 }
4444 else {
4545 let a = ((16 * positive) * (314159 - positive))
4646 let b = (493480220050 - (a / 4))
4747 ((-(a) * 100000) / b)
4848 }
4949 }
5050 else if ((rad > 628318))
5151 then {
5252 let norm = (rad - (factor * 628318))
5353 if ((norm > 314159))
5454 then {
5555 let norm2 = (norm - 314159)
5656 let a = ((16 * norm2) * (314159 - norm2))
5757 let b = (493480220050 - (a / 4))
5858 ((-(a) * 100000) / b)
5959 }
6060 else {
6161 let a = ((16 * norm) * (314159 - norm))
6262 let b = (493480220050 - (a / 4))
6363 ((a * 100000) / b)
6464 }
6565 }
6666 else if ((rad > 314159))
6767 then {
6868 let norm = (rad - 314159)
6969 let a = ((16 * norm) * (314159 - norm))
7070 let b = (493480220050 - (a / 4))
7171 ((-(a) * 100000) / b)
7272 }
7373 else {
7474 let a = ((16 * rad) * (314159 - rad))
7575 let b = (493480220050 - (a / 4))
7676 ((a * 100000) / b)
7777 }
7878 }
7979
8080
8181 func cos (rad) = sin((157079 - rad))
8282
8383
8484 func asin (x) = if (if ((-100000 > x))
8585 then true
8686 else (x > 100000))
8787 then throw("The asin implementation is defined for x [-1,1]!")
8888 else if ((0 > x))
8989 then {
9090 let x1 = (-1 * x)
9191 let val4 = ((((((-1873 * x1) / 100000) + 7426) * x1) / 100000) - 21211)
9292 let val6 = (((val4 * x1) / 100000) + 157072)
9393 let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
9494 -((157080 - ((root * val6) / 100000)))
9595 }
9696 else {
9797 let val2 = (((-1873 * x) / 100000) + 7426)
9898 let val4 = (((val2 * x) / 100000) - 21211)
9999 let val6 = (((val4 * x) / 100000) + 157072)
100100 let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
101101 (157080 - ((root * val6) / 100000))
102102 }
103103
104104
105105 func atan (x) = {
106106 let xPow2 = ((x * x) / 100000)
107107 if ((-100000 > x))
108108 then (-157079 - ((x * 100000) / (xPow2 + 28000)))
109109 else if ((x > 100000))
110110 then (157079 - ((x * 100000) / (xPow2 + 28000)))
111111 else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000)))
112112 }
113113
114114
115115 func atan2 (y,x) = if ((x > 0))
116116 then atan(((y * 100000) / x))
117117 else if (if ((0 > x))
118118 then (y >= 0)
119119 else false)
120120 then (atan(((y * 100000) / x)) + 314159)
121121 else if (if ((0 > x))
122122 then (0 > y)
123123 else false)
124124 then (atan(((y * 100000) / x)) - 314159)
125125 else if (if ((x == 0))
126126 then (y > 0)
127127 else false)
128128 then 157080
129129 else if (if ((x == 0))
130130 then (0 > y)
131131 else false)
132132 then -157080
133133 else 0
134134
135135
136136 func calculateShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665)
137137
138138
139139 func gpsDistance (lat1,lon1,lat2,lon2) = {
140140 let dLat = (lat1 - lat2)
141141 let dLon = (lon1 - lon2)
142142 let dLatSin = sin((dLat / 2))
143143 let dLonSin = sin((dLon / 2))
144144 let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
145145 let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN)))
146146 ((637100000000 * theta) / 100000)
147147 }
148148
149149
150150 func calculateImpactPosition (lat,lon,dist,yaw) = {
151151 let th = (dist / 6371000)
152152 let sinLat = sin(lat)
153153 let cosLat = cos(lat)
154154 let sinTh = sin(th)
155155 let cosTh = cos(th)
156156 let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
157157 let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 10000000000), (cosTh - ((sinLat * sinLat) / 100000))))
158158 [newLat, newLon]
159159 }
160160
161161
162162 func calculateShot (pitch,yaw,force,playerKey,opponentKey) = {
163163 let playerLatitude = getIntegerValue(this, ("positionLat_" + playerKey))
164164 let playerLongitude = getIntegerValue(this, ("positionLon_" + playerKey))
165165 let opponentLatitude = getIntegerValue(this, ("positionLat_" + opponentKey))
166166 let opponentLongitude = getIntegerValue(this, ("positionLon_" + opponentKey))
167167 let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
168168 let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
169169 let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
170170 let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
171171 let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
172172 impactDistance :: impactPosition
173173 }
174174
175175
176176 func coordinatesToAngleInRad (lat1,lon1,lat2,lon2) = {
177177 let dLon = (lon2 - lon1)
178178 let y = ((sin(dLon) * cos(lat2)) / 100000)
179179 let x = (((cos(lat1) * sin(lat2)) - (((sin(lat1) * cos(lat2)) * cos(dLon)) / 100000)) / 100000)
180180 ((atan2(y, x) + 628318) % 628318)
181181 }
182182
183183
184184 @Callable(i)
185185 func startGame (latitude,longitude) = {
186186 let asset = base58''
187187 let caller = toString(i.caller)
188188 let opponentLatitude = ((latitude * 1745) / 100000)
189189 let opponentLongitude = ((longitude * 1745) / 100000)
190190 let coordinates = setCoords(caller, opponentLatitude, opponentLongitude)
191191 let openGame = getString(this, "openGame")
192192 if (true)
193193 then {
194194 let gameId = getString(this, ("gameId_" + caller))
195195 if (if ((gameId != ""))
196196 then (gameId != unit)
197197 else false)
198198 then throw("Please finish your current game, before starting another one")
199199 else if (!(isDefined(openGame)))
200200 then WriteSet(DataEntry("openGame", caller) :: coordinates)
201201 else if (if ((openGame == ""))
202202 then true
203203 else (openGame == caller))
204204 then WriteSet(DataEntry("openGame", caller) :: coordinates)
205205 else {
206206 let playerLatitude = getIntegerValue(this, ("positionLat_" + value(openGame)))
207207 let playerLongitude = getIntegerValue(this, ("positionLon_" + value(openGame)))
208208 let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
209209 let hash = sha256(toBytes(distanceBetweenPlayers))
210210 let number = toInt(hash)
211211 let offset = ((number % (628318 / 4)) - (628318 / 8))
212212 let playerYaw = coordinatesToAngleInRad(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
213213 let playerOffsetYaw = (playerYaw + offset)
214214 let opponentYaw = ((playerYaw + 314159) % 628318)
215215 let opponentOffsetYaw = (opponentYaw + offset)
216216 WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], DataEntry(("opponentOffsetYaw_" + caller), playerOffsetYaw), DataEntry(("opponentOffsetYaw_" + value(openGame)), opponentOffsetYaw), setGameData(value(openGame), caller)])
217217 }
218218 }
219219 else throw("Please pay the token")
220220 }
221221
222222
223223
224224 @Callable(i)
225225 func executeShot (pitch,yaw,force) = {
226226 let asset = base58''
227227 let caller = toString(i.caller)
228228 let opponent = getStringValue(this, ("opponent_" + caller))
229229 let gameId = getGameId(caller)
230230 if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
231231 then throw("Please wait for your turn.")
232232 else {
233233 let shotData = calculateShot(pitch, yaw, force, caller, opponent)
234234 if ((1000 > shotData[0]))
235235 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)]))
236236 else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[1]), DataEntry(("lastShotLon_" + gameId), shotData[2])])
237237 }
238238 }
239239
240240
241241
242242 @Callable(i)
243243 func faucet () = {
244244 let asset = base58''
245245 let caller = toString(i.caller)
246246 let balance = assetBalance(i.caller, asset)
247247 if ((100 > balance))
248248 then TransferSet([ScriptTransfer(i.caller, 100, asset)])
249249 else TransferSet(nil)
250250 }
251251
252252

github/deemru/w8io/026f985 
45.38 ms