tx · BMx1xQkK1Y8BHY5H4tqoJR8FUxjMm8KZNfzFTf46yGvK

3MsNU6eQC1F3m7yiqmkkw733kiE45J5NL8B:  -0.04000000 Waves

2020.09.03 20:32 [1161509] smart account 3MsNU6eQC1F3m7yiqmkkw733kiE45J5NL8B > SELF 0.00000000 Waves

{ "type": 13, "id": "BMx1xQkK1Y8BHY5H4tqoJR8FUxjMm8KZNfzFTf46yGvK", "fee": 4000000, "feeAssetId": null, "timestamp": 1599154348129, "version": 1, "sender": "3MsNU6eQC1F3m7yiqmkkw733kiE45J5NL8B", "senderPublicKey": "ACwRxGgCQ8fyGhT2BkKEzPGCySdsKfjqs1w8xb51zhTR", "proofs": [ "2i5tkrUqUzzEUtmTyBm2KeFo9evSfAk2LEq831jFxPwFgBpZTTdagiBkEwvaaezEkxSa6msbP4QFePp4Jb5etuig" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIBARIFCgMBAQESABIAAAAADAEAAAAJc2V0Q29vcmRzAAAAAwAAAANrZXkAAAAIbGF0aXR1ZGUAAAAJbG9uZ2l0dWRlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAADHBvc2l0aW9uTGF0XwUAAAADa2V5BQAAAAhsYXRpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxvbl8FAAAAA2tleQUAAAAJbG9uZ2l0dWRlBQAAAANuaWwBAAAAC3NldEdhbWVEYXRhAAAAAgAAAAlwbGF5ZXJLZXkAAAALb3Bwb25lbnRLZXkEAAAABmdhbWVJZAkAASwAAAACCQABLAAAAAIFAAAACXBsYXllcktleQIAAAABXwUAAAALb3Bwb25lbnRLZXkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAHZ2FtZUlkXwUAAAAJcGxheWVyS2V5BQAAAAZnYW1lSWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAA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AACCQABLAAAAAICAAAADGxhc3RTaG90TG9uXwUAAAAGZ2FtZUlkCQABkQAAAAIFAAAACHNob3REYXRhAAAAAAAAAAADBQAAAANuaWwAAAABaQEAAAAGZmF1Y2V0AAAAAAQAAAAFYXNzZXQBAAAAAAQAAAAGY2FsbGVyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAHYmFsYW5jZQkAA+sAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABWFzc2V0AwkAAGYAAAACAAAAAAA7msoABQAAAAdiYWxhbmNlCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAO5rKAAUAAAAFYXNzZXQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAWkBAAAADHNldEdhbWVGYWxzZQAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAATGdhbWVfM05EQVNkY2dMTkplYnpZOHE1Y293cDZYWFA2R29TTGhjOG5fM011REdrUHdvQ2tVU0U0OUJmQjRKc3VHWUxSTmJMalhnZGIHBQAAAANuaWwAAAAA2jN4qQ==", "chainId": 84, "height": 1161509, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EftcYGhRWxfkDR3j63cXGUKLxRP3QXteahyWCy86PqAs Next: none Diff:
OldNewDifferences
219219
220220
221221 @Callable(i)
222-func testFunctions (playerLatitude,playerLongitude,opponentLatitude,opponentLongitude,pitch,yaw,force) = {
223- let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
224- let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
225- let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
226- let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
227- let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
228- WriteSet([DataEntry("optVel", optimalVelocity), DataEntry("reach", playerShotReach), DataEntry("dist", distanceBetweenPlayers), DataEntry("impLat", impactPosition[0]), DataEntry("impLon", impactPosition[1]), DataEntry("impDist", impactDistance)])
229- }
222+func setGameFalse () = WriteSet([DataEntry("game_3NDASdcgLNJebzY8q5cowp6XXP6GoSLhc8n_3MuDGkPwoCkUSE49BfB4JsuGYLRNbLjXgdb", false)])
230223
231224
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, distanceBetweenPlayers] :: impactPosition
159159 }
160160
161161
162162 @Callable(i)
163163 func startGame (latitude,longitude) = {
164164 let asset = base58''
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 >= 100000000)
171171 else false)
172172 then {
173173 let gameId = getString(this, ("gameId_" + caller))
174174 if (if ((gameId != ""))
175175 then (gameId != unit)
176176 else false)
177177 then throw("Please finish your current game, before starting another one")
178178 else if (!(isDefined(openGame)))
179179 then WriteSet(DataEntry("openGame", caller) :: coordinates)
180180 else if (if ((openGame == ""))
181181 then true
182182 else (openGame == caller))
183183 then WriteSet(DataEntry("openGame", caller) :: coordinates)
184184 else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)])
185185 }
186186 else throw("Please pay the token")
187187 }
188188
189189
190190
191191 @Callable(i)
192192 func executeShot (pitch,yaw,force) = {
193193 let asset = base58''
194194 let caller = toString(i.caller)
195195 let opponent = getStringValue(this, ("opponent_" + caller))
196196 let gameId = getGameId(caller)
197197 if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
198198 then throw("Please wait for your turn.")
199199 else {
200200 let shotData = calculateShot(pitch, yaw, force, caller, opponent)
201201 if ((((shotData[1] / 5) + 1000000000) > shotData[0]))
202202 then ScriptResult(WriteSet([DataEntry(("game_" + gameId), false), DataEntry(("gameWinner_" + gameId), caller), DataEntry(("gameId_" + caller), ""), DataEntry(("gameId_" + opponent), ""), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[2]), DataEntry(("lastShotLon_" + gameId), shotData[3])]), TransferSet([ScriptTransfer(i.caller, 200000000, asset)]))
203203 else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[2]), DataEntry(("lastShotLon_" + gameId), shotData[3])])
204204 }
205205 }
206206
207207
208208
209209 @Callable(i)
210210 func faucet () = {
211211 let asset = base58''
212212 let caller = toString(i.caller)
213213 let balance = assetBalance(i.caller, asset)
214214 if ((1000000000 > balance))
215215 then TransferSet([ScriptTransfer(i.caller, 1000000000, asset)])
216216 else TransferSet(nil)
217217 }
218218
219219
220220
221221 @Callable(i)
222-func testFunctions (playerLatitude,playerLongitude,opponentLatitude,opponentLongitude,pitch,yaw,force) = {
223- let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
224- let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
225- let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
226- let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
227- let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
228- WriteSet([DataEntry("optVel", optimalVelocity), DataEntry("reach", playerShotReach), DataEntry("dist", distanceBetweenPlayers), DataEntry("impLat", impactPosition[0]), DataEntry("impLon", impactPosition[1]), DataEntry("impDist", impactDistance)])
229- }
222+func setGameFalse () = WriteSet([DataEntry("game_3NDASdcgLNJebzY8q5cowp6XXP6GoSLhc8n_3MuDGkPwoCkUSE49BfB4JsuGYLRNbLjXgdb", false)])
230223
231224

github/deemru/w8io/026f985 
68.29 ms