tx · 6dgBXERjrCGQj6AwFgaeGSSzbt7x9UD84hNYtwQ1C8r6

3N8JRFtN7gKsEJYLLZYVvoPC9hvpXhv3XsW:  -0.01000000 Waves

2020.09.03 16:31 [1161276] smart account 3N8JRFtN7gKsEJYLLZYVvoPC9hvpXhv3XsW > SELF 0.00000000 Waves

{ "type": 13, "id": "6dgBXERjrCGQj6AwFgaeGSSzbt7x9UD84hNYtwQ1C8r6", "fee": 1000000, "feeAssetId": null, "timestamp": 1599139867648, "version": 1, "sender": "3N8JRFtN7gKsEJYLLZYVvoPC9hvpXhv3XsW", "senderPublicKey": "GWcarxWn2yffQ1gHo1xmnQ4RgrZdaDU6uEtjBTejLB8R", "proofs": [ "UgezTNnXnoEChUb1w6YRBZoJWGZoHVsiRH8vZrwdhmUa7qDJ9s3AFbg4w2sx9f6Cs9ngMKyUo3u5pdp38KcY5LZ" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIBARIFCgMBAQESAAAAAA0BAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcG9zaXRpb25Mb25fBQAAAANrZXkFAAAACWxvbmdpdHVkZQUAAAADbmlsAQAAAAtzZXRHYW1lRGF0YQAAAAIAAAAJcGxheWVyS2V5AAAAC29wcG9uZW50S2V5BAAAAAZnYW1lSWQJAAEsAAAAAgkAASwAAAACBQAAAAlwbGF5ZXJLZXkCAAAAAV8FAAAAC29wcG9uZW50S2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB2dhbWVJZF8FAAAACXBsYXllcktleQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAA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FYXNzZXQFAAAABHVuaXQEAAAABmNhbGxlcgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAB2JhbGFuY2UJAAPrAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAVhc3NldAMJAABmAAAAAgAAAAAAO5rKAAUAAAAHYmFsYW5jZQkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAADuaygAFAAAABWFzc2V0BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAACfng9x", "chainId": 84, "height": 1161276, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLon_" + key), longitude)]
5+
6+
7+func setGameData (playerKey,opponentKey) = {
8+ let gameId = ((playerKey + "_") + opponentKey)
9+[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), "")]
10+ }
11+
12+
13+func getGameId (key) = getStringValue(this, ("gameId_" + key))
14+
15+
16+func sin (rad) = {
17+ let factor = (rad / 628318)
18+ if ((0 > rad))
19+ then {
20+ let positive = -(rad)
21+ if ((positive > 628318))
22+ then {
23+ let norm = (positive + (factor * 628318))
24+ if ((norm > 314159))
25+ then {
26+ let a = ((16 * (norm - 314159)) * (314159 - (norm - 314159)))
27+ ((a * 100000) / (493480220050 - (a / 4)))
28+ }
29+ else {
30+ let a = ((16 * norm) * (314159 - norm))
31+ ((-(a) * 100000) / (493480220050 - (a / 4)))
32+ }
33+ }
34+ else if ((positive > 314159))
35+ then {
36+ let a = ((16 * (positive - 314159)) * (314159 - (positive - 314159)))
37+ ((a * 100000) / (493480220050 - (a / 4)))
38+ }
39+ else {
40+ let a = ((16 * positive) * (314159 - positive))
41+ ((-(a) * 100000) / (493480220050 - (a / 4)))
42+ }
43+ }
44+ else if ((rad > 628318))
45+ then {
46+ let norm = (rad - (factor * 628318))
47+ if ((norm > 314159))
48+ then {
49+ let a = ((16 * (norm - 314159)) * (314159 - (norm - 314159)))
50+ ((-(a) * 100000) / (493480220050 - (a / 4)))
51+ }
52+ else {
53+ let a = ((16 * norm) * (314159 - norm))
54+ ((a * 100000) / (493480220050 - (a / 4)))
55+ }
56+ }
57+ else if ((rad > 314159))
58+ then {
59+ let a = ((16 * (rad - 314159)) * (314159 - (rad - 314159)))
60+ ((-(a) * 100000) / (493480220050 - (a / 4)))
61+ }
62+ else {
63+ let a = ((16 * rad) * (314159 - rad))
64+ ((a * 100000) / (493480220050 - (a / 4)))
65+ }
66+ }
67+
68+
69+func cos (rad) = sin((157079 - rad))
70+
71+
72+func asin (x) = if ((-100000 >= x))
73+ then -157079
74+ else if ((x >= 100000))
75+ then 157079
76+ else if ((0 > x))
77+ then {
78+ let x1 = (-1 * x)
79+ let val2 = (((-1873 * x1) / 100000) + 7426)
80+ let val4 = (((val2 * x1) / 100000) - 21211)
81+ let val6 = (((val4 * x1) / 100000) + 157072)
82+ let root = pow((100000 - x1), 5, 5, 1, 5, HALFEVEN)
83+ -((157079 - ((root * val6) / 100000)))
84+ }
85+ else {
86+ let val2 = (((-1873 * x) / 100000) + 7426)
87+ let val4 = (((val2 * x) / 100000) - 21211)
88+ let val6 = (((val4 * x) / 100000) + 157072)
89+ let root = pow((100000 - x), 5, 5, 1, 5, HALFEVEN)
90+ (157079 - ((root * val6) / 100000))
91+ }
92+
93+
94+func atan (x) = {
95+ let xPow2 = ((x * x) / 100000)
96+ if ((-100000 > x))
97+ then (-157079 - ((x * 100000) / (xPow2 + 28000)))
98+ else if ((x > 100000))
99+ then (157079 - ((x * 100000) / (xPow2 + 28000)))
100+ else ((x * 100000) / (100000 + ((28000 * xPow2) / 100000)))
101+ }
102+
103+
104+func atan2 (y,x) = if ((x > 0))
105+ then atan((y / x))
106+ else if (if ((0 > x))
107+ then (y >= 0)
108+ else false)
109+ then (atan((y / x)) + 314159)
110+ else if (if ((0 > x))
111+ then (0 > y)
112+ else false)
113+ then (atan((y / x)) - 314159)
114+ else if (if ((x == 0))
115+ then (y > 0)
116+ else false)
117+ then 157079
118+ else if (if ((x == 0))
119+ then (0 > y)
120+ else false)
121+ then -157079
122+ else 0
123+
124+
125+func calculateShotDistance (v,pitch) = (((2 * v) * ((cos(pitch) * sin(pitch)) / 100000)) / 980665)
126+
127+
128+func gpsDistance (lat1,lon1,lat2,lon2) = {
129+ let dLatSin = sin(((lat1 - lat2) / 2))
130+ let dLonSin = sin(((lon1 - lon2) / 2))
131+ let hav = ((dLatSin * dLatSin) + (((cos(lat1) * cos(lat2)) / 100000) * ((dLonSin * dLonSin) / 100000)))
132+ let theta = (2 * asin(pow((hav / 1000), 7, 5, 1, 5, HALFEVEN)))
133+ (6371000 * theta)
134+ }
135+
136+
137+func calculateImpactPosition (lat,lon,dist,yaw) = {
138+ let sinLat = sin(lat)
139+ let cosLat = cos(lat)
140+ let sinTh = sin((dist / 6371000))
141+ let cosTh = cos((dist / 6371000))
142+ let newLat = asin((((sinLat * cosTh) / 100000) + (((cosLat * sinTh) * cos(yaw)) / 10000000000)))
143+ let newLon = (lon + atan2((((sin(yaw) * sinTh) * cosLat) / 100000), (cosTh - ((sinLat * sin(newLat)) / 100000))))
144+[newLat, newLon]
145+ }
146+
147+
148+func calculateShot (pitch,yaw,force,playerKey,opponentKey) = {
149+ let playerLatitude = getIntegerValue(this, ("positionLat_" + playerKey))
150+ let playerLongitude = getIntegerValue(this, ("positionLon_" + playerKey))
151+ let opponentLatitude = getIntegerValue(this, ("positionLat_" + opponentKey))
152+ let opponentLongitude = getIntegerValue(this, ("positionLon_" + opponentKey))
153+ let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
154+ let optimalVelocity = ((distanceBetweenPlayers * 980665) / 100000)
155+ let playerShotReach = calculateShotDistance(((optimalVelocity * force) / 100000), pitch)
156+ let impactPosition = calculateImpactPosition(playerLatitude, playerLongitude, playerShotReach, yaw)
157+ let impactDistance = gpsDistance(impactPosition[0], impactPosition[1], opponentLatitude, opponentLongitude)
158+[impactDistance, distanceBetweenPlayers] :: impactPosition
159+ }
160+
161+
162+func coordinatesToAngleInRad (lat1,lon1,lat2,lon2) = {
163+ let dLon = (lon1 - lon2)
164+ let y = (sin(dLon) * cos(lat2))
165+ let x = (((cos(lat1) * sin(lat2)) - (((sin(lat1) * cos(lat2)) * cos(dLon)) / 100000)) / 100000)
166+ ((atan2(y, x) + 628318) % 628318)
167+ }
168+
169+
170+@Callable(i)
171+func startGame (latitude,longitude) = {
172+ let asset = base58'WAVES'
173+ let payment = value(i.payment)
174+ let caller = toString(i.caller)
175+ let opponentLatitude = ((latitude * 1745) / 100000)
176+ let opponentLongitude = ((longitude * 1745) / 100000)
177+ let coordinates = setCoords(caller, opponentLatitude, opponentLongitude)
178+ let openGame = getString(this, "openGame")
179+ if (if ((payment.assetId == asset))
180+ then (payment.amount >= 100000000)
181+ else false)
182+ then {
183+ let gameId = getString(this, ("gameId_" + caller))
184+ if (if ((gameId != ""))
185+ then (gameId != unit)
186+ else false)
187+ then throw("Please finish your current game, before starting another one")
188+ else if (!(isDefined(openGame)))
189+ then WriteSet(DataEntry("openGame", caller) :: coordinates)
190+ else if (if ((openGame == ""))
191+ then true
192+ else (openGame == caller))
193+ then WriteSet(DataEntry("openGame", caller) :: coordinates)
194+ else {
195+ let playerLatitude = getIntegerValue(this, ("positionLat_" + value(openGame)))
196+ let playerLongitude = getIntegerValue(this, ("positionLon_" + value(openGame)))
197+ let distanceBetweenPlayers = gpsDistance(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
198+ let hash = sha256(toBytes(distanceBetweenPlayers))
199+ let number = toInt(hash)
200+ let offset = ((number % (628318 / 4)) - (628318 / 8))
201+ let playerYaw = coordinatesToAngleInRad(playerLatitude, playerLongitude, opponentLatitude, opponentLongitude)
202+ let playerOffsetYaw = (playerYaw + offset)
203+ let opponentYaw = ((playerYaw + 314159) % 628318)
204+ let opponentOffsetYaw = (opponentYaw + offset)
205+ WriteSet([DataEntry("openGame", ""), coordinates[0], coordinates[1], DataEntry(("opponentOffsetYaw_" + caller), playerOffsetYaw), DataEntry(("opponentOffsetYaw_" + value(openGame)), opponentOffsetYaw), setGameData(value(openGame), caller)])
206+ }
207+ }
208+ else throw("Please pay the token")
209+ }
210+
211+
212+
213+@Callable(i)
214+func executeShot (pitch,yaw,force) = {
215+ let asset = unit
216+ let caller = toString(i.caller)
217+ let opponent = getStringValue(this, ("opponent_" + caller))
218+ let gameId = getGameId(caller)
219+ if ((getStringValue(this, ("gameTurn_" + gameId)) != caller))
220+ then throw("Please wait for your turn.")
221+ else {
222+ let shotData = calculateShot(pitch, yaw, force, caller, opponent)
223+ if ((((shotData[1] / 5) + 1500000000) > shotData[0]))
224+ 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)]))
225+ else WriteSet([DataEntry(("gameTurn_" + gameId), opponent), DataEntry(("lastShotDistance_" + gameId), shotData[0]), DataEntry(("lastShotLat_" + gameId), shotData[2]), DataEntry(("lastShotLon_" + gameId), shotData[3])])
226+ }
227+ }
228+
229+
230+
231+@Callable(i)
232+func faucet () = {
233+ let asset = unit
234+ let caller = toString(i.caller)
235+ let balance = assetBalance(i.caller, asset)
236+ if ((1000000000 > balance))
237+ then TransferSet([ScriptTransfer(i.caller, 1000000000, asset)])
238+ else TransferSet(nil)
239+ }
240+
241+

github/deemru/w8io/026f985 
26.50 ms