tx · 5EYbiWHVeSukBD6qsTLy98kywESkHwWSc5dNAnbYBy9s

3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss:  -0.04000000 Waves

2020.08.15 15:16 [1133688] smart account 3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss > SELF 0.00000000 Waves

{ "type": 13, "id": "5EYbiWHVeSukBD6qsTLy98kywESkHwWSc5dNAnbYBy9s", "fee": 4000000, "feeAssetId": null, "timestamp": 1597493798851, "version": 1, "sender": "3N1x2A7NumZqydu5zGntLZSMe26rcpdyoss", "senderPublicKey": "7EaUr5Z6zmEQJXz7jVWXjW7xbJLakPjxFPTZFogi8wzr", "proofs": [ "2hrna1YE9gFqxdot74fEA21JBgXpLQSKYWLGKB3ontqLqGcArhGGCqUb1ctpdSHnwbqFS5ERTfameGrtLkjK5W4D" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAAwBAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAACW9wcG9uZW50XwUAAAAJcGx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bGVyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAHYmFsYW5jZQkAA+sAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABWFzc2V0AwkAAGYAAAACAAAAAAAAAABkBQAAAAdiYWxhbmNlCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAAFYXNzZXQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAFwYDBU=", "chainId": 84, "height": 1133688, "spentComplexity": 0 } View: original | compacted Prev: BV4Yy3sPf2aYGmmW25RSdCysMLo85eN6fRZoc1WnBRSr Next: JDxJDWkBBhbBim54wg2nGwYkwyg5ihxq4pD5dYHJADqF Diff:
OldNewDifferences
8181 func cos (rad) = sin((157079 - rad))
8282
8383
84-func asin (x) = if (if ((-100000 > x))
85- then true
86- else (x > 100000))
87- then throw("The asin implementation is defined for x [-1,1]!")
88- else if ((0 > x))
89- then {
90- let x1 = (-1 * x)
91- let val4 = ((((((-1873 * x1) / 100000) + 7426) * x1) / 100000) - 21211)
92- let val6 = (((val4 * x1) / 100000) + 157072)
93- let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
94- -((157080 - ((root * val6) / 100000)))
95- }
96- else {
97- let val2 = (((-1873 * x) / 100000) + 7426)
98- let val4 = (((val2 * x) / 100000) - 21211)
99- let val6 = (((val4 * x) / 100000) + 157072)
100- let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
101- (157080 - ((root * val6) / 100000))
102- }
84+func asin (x) = if ((-100000 >= x))
85+ then -157080
86+ else if ((x >= 100000))
87+ then 157080
88+ else if ((0 > x))
89+ then {
90+ let x1 = (-1 * x)
91+ let val2 = (((-1873 * x1) / 100000) + 7426)
92+ let val4 = (((val2 * x1) / 100000) - 21211)
93+ let val6 = (((val4 * x1) / 100000) + 157072)
94+ let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
95+ -((157080 - ((root * val6) / 100000)))
96+ }
97+ else {
98+ let val2 = (((-1873 * x) / 100000) + 7426)
99+ let val4 = (((val2 * x) / 100000) - 21211)
100+ let val6 = (((val4 * x) / 100000) + 157072)
101+ let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
102+ (157080 - ((root * val6) / 100000))
103+ }
103104
104105
105106 func atan (x) = {
113114
114115
115116 func atan2 (y,x) = if ((x > 0))
116- then atan(((y * 100000) / x))
117+ then atan((y / x))
117118 else if (if ((0 > x))
118119 then (y >= 0)
119120 else false)
120- then (atan(((y * 100000) / x)) + 314159)
121+ then (atan((y / x)) + 314159)
121122 else if (if ((0 > x))
122123 then (0 > y)
123124 else false)
124- then (atan(((y * 100000) / x)) - 314159)
125+ then (atan((y / x)) - 314159)
125126 else if (if ((x == 0))
126127 then (y > 0)
127128 else false)
143144 let dLonSin = sin((dLon / 2))
144145 let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
145146 let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN)))
146- ((637100000000 * theta) / 100000)
147+ (6371000 * theta)
147148 }
148149
149150
154155 let sinTh = sin(th)
155156 let cosTh = cos(th)
156157 let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
157- let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 10000000000), (cosTh - ((sinLat * sinLat) / 100000))))
158+ let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sinLat) / 100000))))
158159 [newLat, newLon]
159160 }
160161
173174 }
174175
175176
176-func coordinatesToAngleInRad (lat1,lon1,lat2,lon2) = {
177- let dLon = (lon1 - lon2)
178- let x = (sin(dLon) * cos(lat2))
179- let y = ((cos(lat1) * sin(lat2)) - ((sin(lat1) * cos(lat2)) * cos(dLon)))
180- ((atan2(y, x) + 628318) % 628318)
181- }
182-
183-
184177 @Callable(i)
185178 func startGame (latitude,longitude) = {
186179 let asset = base58''
187180 let payment = value(i.payment)
188181 let caller = toString(i.caller)
189- let opponentLatitude = ((latitude * 1745) / 100000)
190- let opponentLongitude = ((longitude * 1745) / 100000)
191- let coordinates = setCoords(caller, opponentLatitude, opponentLongitude)
182+ let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000))
192183 let openGame = getString(this, "openGame")
193- if ((payment.amount >= 1))
184+ if (if ((payment.assetId == asset))
185+ then (payment.amount >= 1)
186+ else false)
194187 then {
195188 let gameId = getString(this, ("gameId_" + caller))
196189 if (if ((gameId != ""))
203196 then true
204197 else (openGame == caller))
205198 then WriteSet(DataEntry("openGame", caller) :: coordinates)
206- else {
207- let playerLatitude = getIntegerValue(this, ("positionLat_" + value(openGame)))
208- let playerLongitude = getIntegerValue(this, ("positionLon_" + value(openGame)))
209- let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
210- let hash = sha256(toBytes(distanceBetweenPlayers))
211- let number = toInt(hash)
212- let offset = ((number % (628318 / 4)) - (628318 / 8))
213- let playerYaw = coordinatesToAngleInRad(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
214- let playerOffsetYaw = (playerYaw + offset)
215- let opponentYaw = ((playerYaw + 314159) % 628318)
216- let opponentOffsetYaw = (opponentYaw + offset)
217- WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], DataEntry(("opponentOffsetYaw_" + caller), playerOffsetYaw), DataEntry(("opponentOffsetYaw_" + value(openGame)), opponentOffsetYaw), setGameData(value(openGame), caller)])
218- }
199+ else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)])
219200 }
220201 else throw("Please pay the token")
221202 }
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
84-func asin (x) = if (if ((-100000 > x))
85- then true
86- else (x > 100000))
87- then throw("The asin implementation is defined for x [-1,1]!")
88- else if ((0 > x))
89- then {
90- let x1 = (-1 * x)
91- let val4 = ((((((-1873 * x1) / 100000) + 7426) * x1) / 100000) - 21211)
92- let val6 = (((val4 * x1) / 100000) + 157072)
93- let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
94- -((157080 - ((root * val6) / 100000)))
95- }
96- else {
97- let val2 = (((-1873 * x) / 100000) + 7426)
98- let val4 = (((val2 * x) / 100000) - 21211)
99- let val6 = (((val4 * x) / 100000) + 157072)
100- let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
101- (157080 - ((root * val6) / 100000))
102- }
84+func asin (x) = if ((-100000 >= x))
85+ then -157080
86+ else if ((x >= 100000))
87+ then 157080
88+ else if ((0 > x))
89+ then {
90+ let x1 = (-1 * x)
91+ let val2 = (((-1873 * x1) / 100000) + 7426)
92+ let val4 = (((val2 * x1) / 100000) - 21211)
93+ let val6 = (((val4 * x1) / 100000) + 157072)
94+ let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
95+ -((157080 - ((root * val6) / 100000)))
96+ }
97+ else {
98+ let val2 = (((-1873 * x) / 100000) + 7426)
99+ let val4 = (((val2 * x) / 100000) - 21211)
100+ let val6 = (((val4 * x) / 100000) + 157072)
101+ let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
102+ (157080 - ((root * val6) / 100000))
103+ }
103104
104105
105106 func atan (x) = {
106107 let xPow2 = ((x * x) / 100000)
107108 if ((-100000 > x))
108109 then (-157079 - ((x * 100000) / (xPow2 + 28000)))
109110 else if ((x > 100000))
110111 then (157079 - ((x * 100000) / (xPow2 + 28000)))
111112 else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000)))
112113 }
113114
114115
115116 func atan2 (y,x) = if ((x > 0))
116- then atan(((y * 100000) / x))
117+ then atan((y / x))
117118 else if (if ((0 > x))
118119 then (y >= 0)
119120 else false)
120- then (atan(((y * 100000) / x)) + 314159)
121+ then (atan((y / x)) + 314159)
121122 else if (if ((0 > x))
122123 then (0 > y)
123124 else false)
124- then (atan(((y * 100000) / x)) - 314159)
125+ then (atan((y / x)) - 314159)
125126 else if (if ((x == 0))
126127 then (y > 0)
127128 else false)
128129 then 157080
129130 else if (if ((x == 0))
130131 then (0 > y)
131132 else false)
132133 then -157080
133134 else 0
134135
135136
136137 func calculateShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665)
137138
138139
139140 func gpsDistance (lat1,lon1,lat2,lon2) = {
140141 let dLat = (lat1 - lat2)
141142 let dLon = (lon1 - lon2)
142143 let dLatSin = sin((dLat / 2))
143144 let dLonSin = sin((dLon / 2))
144145 let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
145146 let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN)))
146- ((637100000000 * theta) / 100000)
147+ (6371000 * theta)
147148 }
148149
149150
150151 func calculateImpactPosition (lat,lon,dist,yaw) = {
151152 let th = (dist / 6371000)
152153 let sinLat = sin(lat)
153154 let cosLat = cos(lat)
154155 let sinTh = sin(th)
155156 let cosTh = cos(th)
156157 let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
157- let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 10000000000), (cosTh - ((sinLat * sinLat) / 100000))))
158+ let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sinLat) / 100000))))
158159 [newLat, newLon]
159160 }
160161
161162
162163 func calculateShot (pitch,yaw,force,playerKey,opponentKey) = {
163164 let playerLatitude = getIntegerValue(this, ("positionLat_" + playerKey))
164165 let playerLongitude = getIntegerValue(this, ("positionLon_" + playerKey))
165166 let opponentLatitude = getIntegerValue(this, ("positionLat_" + opponentKey))
166167 let opponentLongitude = getIntegerValue(this, ("positionLon_" + opponentKey))
167168 let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
168169 let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
169170 let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
170171 let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
171172 let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
172173 impactDistance :: impactPosition
173174 }
174175
175176
176-func coordinatesToAngleInRad (lat1,lon1,lat2,lon2) = {
177- let dLon = (lon1 - lon2)
178- let x = (sin(dLon) * cos(lat2))
179- let y = ((cos(lat1) * sin(lat2)) - ((sin(lat1) * cos(lat2)) * cos(dLon)))
180- ((atan2(y, x) + 628318) % 628318)
181- }
182-
183-
184177 @Callable(i)
185178 func startGame (latitude,longitude) = {
186179 let asset = base58''
187180 let payment = value(i.payment)
188181 let caller = toString(i.caller)
189- let opponentLatitude = ((latitude * 1745) / 100000)
190- let opponentLongitude = ((longitude * 1745) / 100000)
191- let coordinates = setCoords(caller, opponentLatitude, opponentLongitude)
182+ let coordinates = setCoords(caller, ((latitude * 1745) / 100000), ((longitude * 1745) / 100000))
192183 let openGame = getString(this, "openGame")
193- if ((payment.amount >= 1))
184+ if (if ((payment.assetId == asset))
185+ then (payment.amount >= 1)
186+ else false)
194187 then {
195188 let gameId = getString(this, ("gameId_" + caller))
196189 if (if ((gameId != ""))
197190 then (gameId != unit)
198191 else false)
199192 then throw("Please finish your current game, before starting another one")
200193 else if (!(isDefined(openGame)))
201194 then WriteSet(DataEntry("openGame", caller) :: coordinates)
202195 else if (if ((openGame == ""))
203196 then true
204197 else (openGame == caller))
205198 then WriteSet(DataEntry("openGame", caller) :: coordinates)
206- else {
207- let playerLatitude = getIntegerValue(this, ("positionLat_" + value(openGame)))
208- let playerLongitude = getIntegerValue(this, ("positionLon_" + value(openGame)))
209- let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
210- let hash = sha256(toBytes(distanceBetweenPlayers))
211- let number = toInt(hash)
212- let offset = ((number % (628318 / 4)) - (628318 / 8))
213- let playerYaw = coordinatesToAngleInRad(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
214- let playerOffsetYaw = (playerYaw + offset)
215- let opponentYaw = ((playerYaw + 314159) % 628318)
216- let opponentOffsetYaw = (opponentYaw + offset)
217- WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], DataEntry(("opponentOffsetYaw_" + caller), playerOffsetYaw), DataEntry(("opponentOffsetYaw_" + value(openGame)), opponentOffsetYaw), setGameData(value(openGame), caller)])
218- }
199+ else WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], setGameData(value(openGame), caller)])
219200 }
220201 else throw("Please pay the token")
221202 }
222203
223204
224205
225206 @Callable(i)
226207 func executeShot (pitch,yaw,force) = {
227208 let asset = base58''
228209 let caller = toString(i.caller)
229210 let opponent = getStringValue(this, ("opponent_" + caller))
230211 let gameId = getGameId(caller)
231212 if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
232213 then throw("Please wait for your turn.")
233214 else {
234215 let shotData = calculateShot(pitch, yaw, force, caller, opponent)
235216 if ((1000 > shotData[0]))
236217 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)]))
237218 else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[1]), DataEntry(("lastShotLon_" + gameId), shotData[2])])
238219 }
239220 }
240221
241222
242223
243224 @Callable(i)
244225 func faucet () = {
245226 let asset = base58''
246227 let caller = toString(i.caller)
247228 let balance = assetBalance(i.caller, asset)
248229 if ((100 > balance))
249230 then TransferSet([ScriptTransfer(i.caller, 100, asset)])
250231 else TransferSet(nil)
251232 }
252233
253234

github/deemru/w8io/026f985 
55.83 ms