tx · CvQZQoJvqUETUbv9PZ6RgjtdnV3F44hCzYRgZKghpaPC

3MsHkgNdxBJg9SEFvbYyf69SP75SNJnatPk:  -0.04000000 Waves

2020.08.07 10:06 [1121677] smart account 3MsHkgNdxBJg9SEFvbYyf69SP75SNJnatPk > SELF 0.00000000 Waves

{ "type": 13, "id": "CvQZQoJvqUETUbv9PZ6RgjtdnV3F44hCzYRgZKghpaPC", "fee": 4000000, "feeAssetId": null, "timestamp": 1596784011568, "version": 1, "sender": "3MsHkgNdxBJg9SEFvbYyf69SP75SNJnatPk", "senderPublicKey": "8Ko3jocxxhmjmdtwfEBZsmgNZpuBgqdpq5GPXiUMASrL", "proofs": [ "XWK2gLLJ22hZhfLPGhsCiEwV3C2PFF6LDeCZi6uaEFxdAJt3RxPwzSvRN3ZsZ3ayR7WG9SB1FMMPkez7QXZ5K6x" ], "script": "base64:AAIDAAAAAAAAACIIARIECgIBARIFCgMBAQESABIECgIBARIJCgcBAQEBAQEBAAAADAEAAAAJc2V0Q29vcmRzAAAAAwAAAANrZXkAAAAIbGF0aXR1ZGUAAAAJbG9uZ2l0dWRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAADHBvc2l0aW9uTGF0XwUAAAADa2V5BQAAAAhsYXRpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxvbl8FAAAAA2tleQUAAAAJbG9uZ2l0dWRlBQAAAANuaWwBAAAAC3NldEdhbWVEYXRhAAAAAgAAAAlwbGF5ZXJLZXkAAAALb3Bwb25lbnRLZXkEAAAABmdhbWVJZAkAASwAAAACCQABLAAAAAIFAAAACXBsYXllcktleQIAAAABXwUAAAALb3Bwb25lbnRLZXkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAHZ2FtZUlkXwUAAAAJcGxheWVyS2V5BQAAAAZnYW1lSWQJAARMAAAAAgkBAAAACURhdGFFbnR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XllclNob3RSZWFjaAkBAAAAD2dldFNob3REaXN0YW5jZQAAAAIJAABpAAAAAgkAAGgAAAACBQAAAA9vcHRpbWFsVmVsb2NpdHkFAAAABWZvcmNlAAAAAAAAAYagBQAAAAVwaXRjaAQAAAAOaW1wYWN0UG9zaXRpb24JAQAAAAZpbXBhY3QAAAAEBQAAAARsYXQxBQAAAARsb24xBQAAAA9wbGF5ZXJTaG90UmVhY2gFAAAAA3lhdwQAAAAOaW1wYWN0RGlzdGFuY2UJAQAAAAhkaXN0YW5jZQAAAAQJAAGRAAAAAgUAAAAOaW1wYWN0UG9zaXRpb24AAAAAAAAAAAAJAAGRAAAAAgUAAAAOaW1wYWN0UG9zaXRpb24AAAAAAAAAAAEFAAAABGxhdDIFAAAABGxvbjIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAF2ltcGFjdERpc3RhbmNlLWNhbGNTaG90BQAAAA5pbXBhY3REaXN0YW5jZQUAAAADbmlsAAAAAAB5f+8=", "chainId": 84, "height": 1121677, "spentComplexity": 0 } View: original | compacted Prev: 6r4wzpv9qQFgUX2WYwvcm5PRCecJdhw69cpkMKLD3f58 Next: 2wNYkKvFrEgDs3uoZNMuJeFXTetv8zkPEEo1z7p8tZuy Diff:
OldNewDifferences
242242 let playerShotReach = getShotDistance(((optimalVelocity * force) / 100000), pitch)
243243 let impactPosition = impact(lat1, lon1, playerShotReach, yaw)
244244 let impactDistance = distance(impactPosition[0], impactPosition[1], lat2, lon2)
245- WriteSet([DataEntry("impactDistance-calcShot", impactPosition[0])])
245+ WriteSet([DataEntry("impactDistance-calcShot", impactDistance)])
246246 }
247247
248248
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 ((0 > x))
8585 then {
8686 let x1 = (-1 * x)
8787 let val2 = (((-1873 * x1) / 100000) + 7426)
8888 let val4 = (((val2 * x1) / 100000) - 21211)
8989 let val6 = (((val4 * x1) / 100000) + 157072)
9090 let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
9191 -((157080 - ((root * val6) / 100000)))
9292 }
9393 else {
9494 let val2 = (((-1873 * x) / 100000) + 7426)
9595 let val4 = (((val2 * x) / 100000) - 21211)
9696 let val6 = (((val4 * x) / 100000) + 157072)
9797 let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
9898 (157080 - ((root * val6) / 100000))
9999 }
100100
101101
102102 func atan (x) = {
103103 let xPow2 = ((x * x) / 100000)
104104 if ((-100000 > x))
105105 then (-157079 - ((x * 100000) / (xPow2 + 28000)))
106106 else if ((x > 100000))
107107 then (157079 - ((x * 100000) / (xPow2 + 28000)))
108108 else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000)))
109109 }
110110
111111
112112 func atan2 (y,x) = if ((x > 0))
113113 then atan(((y * 100000) / x))
114114 else if (if ((0 > x))
115115 then (y >= 0)
116116 else false)
117117 then (atan(((y * 100000) / x)) + 314159)
118118 else if (if ((0 > x))
119119 then (0 > y)
120120 else false)
121121 then (atan(((y * 100000) / x)) - 314159)
122122 else if (if ((x == 0))
123123 then (y > 0)
124124 else false)
125125 then 157080
126126 else if (if ((x == 0))
127127 then (0 > y)
128128 else false)
129129 then -157080
130130 else 0
131131
132132
133133 func getShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665)
134134
135135
136136 func distance (lat1,lon1,lat2,lon2) = {
137137 let dLat = (lat1 - lat2)
138138 let dLon = (lon1 - lon2)
139139 let dLatSin = sin((dLat / 2))
140140 let dLonSin = sin((dLon / 2))
141141 let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
142142 let theta = (2 * asin(pow((hav / 100000), 5, 5, 1, 5, HALFEVEN)))
143143 ((637100000000 * theta) / 100000)
144144 }
145145
146146
147147 func impact (lat,lon,dist,yaw) = {
148148 let th = (dist / 6371000)
149149 let sinLat = sin(lat)
150150 let cosLat = cos(lat)
151151 let sinTh = sin(th)
152152 let cosTh = cos(th)
153153 let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
154154 let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 10000000000), (cosTh - ((sinLat * sinLat) / 100000))))
155155 [newLat, newLon]
156156 }
157157
158158
159159 func gotHit (pitch,yaw,force,playerKey,opponentKey) = {
160160 let playerLat = getIntegerValue(this, ("positionLat_" + playerKey))
161161 let playerLon = getIntegerValue(this, ("positionLon_" + playerKey))
162162 let opponentLat = getIntegerValue(this, ("positionLat_" + opponentKey))
163163 let opponentLon = getIntegerValue(this, ("positionLon_" + opponentKey))
164164 let distanceBetweenPlayers = distance(playerLat, playerLon, opponentLat, opponentLon)
165165 let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
166166 let playerShotReach = getShotDistance(((optimalVelocity * force) / 100000), pitch)
167167 let impactPosition = impact(playerLat, playerLon, playerShotReach, yaw)
168168 let impactDistance = distance(impactPosition[0], impactPosition[1], opponentLat, opponentLon)
169169 impactDistance
170170 }
171171
172172
173173 @Callable(i)
174174 func startGame (latitude,longitude) = {
175175 let caller = toString(i.caller)
176176 let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000))
177177 let openGame = getString(this, "openGame")
178178 let gameId = getString(this, ("gameId_" + caller))
179179 if (if ((gameId != ""))
180180 then (gameId != unit)
181181 else false)
182182 then throw("Please finish your current game, before starting another one")
183183 else if (!(isDefined(openGame)))
184184 then WriteSet(DataEntry("openGame", caller) :: coordinates)
185185 else if (if ((openGame == ""))
186186 then true
187187 else (openGame == caller))
188188 then WriteSet(DataEntry("openGame", caller) :: coordinates)
189189 else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)])
190190 }
191191
192192
193193
194194 @Callable(i)
195195 func executeShot (pitch,yaw,force) = {
196196 let asset = base58''
197197 let caller = toString(i.caller)
198198 let opponent = getStringValue(this, ("opponent_" + caller))
199199 let gameId = getGameId(caller)
200200 if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
201201 then throw("please wait for your turn")
202202 else {
203203 let impDist = gotHit(pitch, yaw, force, caller, opponent)
204204 if ((1000 > impDist))
205205 then ScriptResult(WriteSet([DataEntry(("game_" + gameId), false), DataEntry(("gameWinner_" + gameId), caller)]), TransferSet([ScriptTransfer(i.caller, 2, asset)]))
206206 else WriteSet([DataEntry(("gameTurn_" + gameId), opponent)])
207207 }
208208 }
209209
210210
211211
212212 @Callable(i)
213213 func faucet () = {
214214 let asset = base58''
215215 let caller = toString(i.caller)
216216 let balance = assetBalance(i.caller, asset)
217217 if ((100 > balance))
218218 then TransferSet([ScriptTransfer(i.caller, 100, asset)])
219219 else TransferSet(nil)
220220 }
221221
222222
223223
224224 @Callable(i)
225225 func changeCoords (latitude,longitude) = {
226226 let caller = toString(i.caller)
227227 let currentLat = getInteger(this, ("positionLat_" + caller))
228228 if (isDefined(currentLat))
229229 then {
230230 let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000))
231231 WriteSet(coordinates)
232232 }
233233 else WriteSet(nil)
234234 }
235235
236236
237237
238238 @Callable(i)
239239 func calcShot (lat1,lon1,lat2,lon2,pitch,yaw,force) = {
240240 let distanceBetweenPlayers = distance(lat1, lon1, lat2, lon2)
241241 let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
242242 let playerShotReach = getShotDistance(((optimalVelocity * force) / 100000), pitch)
243243 let impactPosition = impact(lat1, lon1, playerShotReach, yaw)
244244 let impactDistance = distance(impactPosition[0], impactPosition[1], lat2, lon2)
245- WriteSet([DataEntry("impactDistance-calcShot", impactPosition[0])])
245+ WriteSet([DataEntry("impactDistance-calcShot", impactDistance)])
246246 }
247247
248248

github/deemru/w8io/026f985 
51.29 ms