tx · 4YdrN9SbP5gDcsg8rsztKTL7kEzB6m3BtfF4PUW9AM5n

3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss:  -0.04000000 Waves

2020.08.15 15:50 [1133727] smart account 3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss > SELF 0.00000000 Waves

{ "type": 13, "id": "4YdrN9SbP5gDcsg8rsztKTL7kEzB6m3BtfF4PUW9AM5n", "fee": 4000000, "feeAssetId": null, "timestamp": 1597495841435, "version": 1, "sender": "3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss", "senderPublicKey": "7EaUr5Z6zmEQJXz7jVWXjW7xbJLakPjxFPTZFogi8wzr", "proofs": [ "42WhekmQsZyPT4xjx64vKe2jSRsTKGhALBbPScFrit3mQjTjshx7hRv37Qs2Q8hahKJuFTiewkGVEzzQhcvyRLQ6" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAAwBAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAACW9wcG9uZW50XwUA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BAAAAAdiYWxhbmNlCQAD6wAAAAIIBQAAAAFpAAAABmNhbGxlcgUAAAAFYXNzZXQDCQAAZgAAAAIAAAAAAAAAAGQFAAAAB2JhbGFuY2UJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAABkBQAAAAVhc3NldAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAAAYA7k+Q==", "chainId": 84, "height": 1133727, "spentComplexity": 0 } View: original | compacted Prev: 7Ev9iREU7YX7zGyBmbEbqrnHAd3WcWSkMi1GQK7xDmHc Next: EzPMnZCDmx7c9iUWpC6emevcEpJtRynYmsQgnp2kfr1P 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 ((-100000 >= x))
8585 then -157080
8686 else if ((x >= 100000))
8787 then 157080
8888 else if ((0 > x))
8989 then {
9090 let x1 = (-1 * x)
9191 let val2 = (((-1873 * x1) / 100000) + 7426)
9292 let val4 = (((val2 * x1) / 100000) - 21211)
9393 let val6 = (((val4 * x1) / 100000) + 157072)
9494 let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
9595 -((157080 - ((root * val6) / 100000)))
9696 }
9797 else {
9898 let val2 = (((-1873 * x) / 100000) + 7426)
9999 let val4 = (((val2 * x) / 100000) - 21211)
100100 let val6 = (((val4 * x) / 100000) + 157072)
101101 let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
102102 (157080 - ((root * val6) / 100000))
103103 }
104104
105105
106106 func atan (x) = {
107107 let xPow2 = ((x * x) / 100000)
108108 if ((-100000 > x))
109109 then (-157079 - ((x * 100000) / (xPow2 + 28000)))
110110 else if ((x > 100000))
111111 then (157079 - ((x * 100000) / (xPow2 + 28000)))
112112 else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000)))
113113 }
114114
115115
116116 func atan2 (y,x) = if ((x > 0))
117117 then atan(((y * 100000) / x))
118118 else if (if ((0 > x))
119119 then (y >= 0)
120120 else false)
121121 then (atan(((y * 100000) / x)) + 314159)
122122 else if (if ((0 > x))
123123 then (0 > y)
124124 else false)
125125 then (atan(((y * 100000) / x)) - 314159)
126126 else if (if ((x == 0))
127127 then (y > 0)
128128 else false)
129129 then 157080
130130 else if (if ((x == 0))
131131 then (0 > y)
132132 else false)
133133 then -157080
134134 else 0
135135
136136
137137 func calculateShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665)
138138
139139
140140 func gpsDistance (lat1,lon1,lat2,lon2) = {
141141 let dLat = (lat1 - lat2)
142142 let dLon = (lon1 - lon2)
143143 let dLatSin = sin((dLat / 2))
144144 let dLonSin = sin((dLon / 2))
145145 let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
146146 let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN)))
147147 ((637100000000 * theta) / 100000)
148148 }
149149
150150
151151 func calculateImpactPosition (lat,lon,dist,yaw) = {
152152 let th = (dist / 6371000)
153153 let sinLat = sin(lat)
154154 let cosLat = cos(lat)
155155 let sinTh = sin(th)
156156 let cosTh = cos(th)
157157 let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
158158 let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 10000000000), (cosTh - ((sinLat * sinLat) / 100000))))
159159 [newLat, newLon]
160160 }
161161
162162
163163 func calculateShot (pitch,yaw,force,playerKey,opponentKey) = {
164164 let playerLatitude = getIntegerValue(this, ("positionLat_" + playerKey))
165165 let playerLongitude = getIntegerValue(this, ("positionLon_" + playerKey))
166166 let opponentLatitude = getIntegerValue(this, ("positionLat_" + opponentKey))
167167 let opponentLongitude = getIntegerValue(this, ("positionLon_" + opponentKey))
168168 let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
169169 let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
170170 let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
171171 let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
172172 let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
173173 impactDistance :: impactPosition
174174 }
175175
176176
177177 @Callable(i)
178178 func startGame (latitude,longitude) = {
179179 let caller = toString(i.caller)
180180 let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000))
181181 let openGame = getString(this, "openGame")
182182 let gameId = getString(this, ("gameId_" + caller))
183183 if (if ((gameId != ""))
184184 then (gameId != unit)
185185 else false)
186186 then throw("Please finish your current game, before starting another one")
187187 else if (!(isDefined(openGame)))
188188 then WriteSet(DataEntry("openGame", caller) :: coordinates)
189189 else if (if ((openGame == ""))
190190 then true
191191 else (openGame == caller))
192192 then WriteSet(DataEntry("openGame", caller) :: coordinates)
193193 else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)])
194194 }
195195
196196
197197
198198 @Callable(i)
199199 func executeShot (pitch,yaw,force) = {
200200 let asset = base58'2e7YjDturbLp4vF3ZtJzsV56ukLGaJTHQqTzCrqV7EJw'
201201 let caller = toString(i.caller)
202202 let opponent = getStringValue(this, ("opponent_" + caller))
203203 let gameId = getGameId(caller)
204204 if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
205205 then throw("Please wait for your turn.")
206206 else {
207207 let shotData = calculateShot(pitch, yaw, force, caller, opponent)
208208 if ((1000 > shotData[0]))
209209 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)]))
210210 else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[1]), DataEntry(("lastShotLon_" + gameId), shotData[2])])
211211 }
212212 }
213213
214214
215215
216216 @Callable(i)
217217 func faucet () = {
218218 let asset = base58'2e7YjDturbLp4vF3ZtJzsV56ukLGaJTHQqTzCrqV7EJw'
219219 let caller = toString(i.caller)
220220 let balance = assetBalance(i.caller, asset)
221221 if ((100 > balance))
222222 then TransferSet([ScriptTransfer(i.caller, 100, asset)])
223223 else TransferSet(nil)
224224 }
225225
226226

github/deemru/w8io/026f985 
36.47 ms