tx · 7kyXjvAqah74bzw8FGx31V31u1AxXisiwy4kJjRH1Mqr

3N37A69qLQj49KGRgWhx9C8Zxb1UjHfL8os:  -0.01000000 Waves

2020.07.10 10:36 [1080868] smart account 3N37A69qLQj49KGRgWhx9C8Zxb1UjHfL8os > SELF 0.00000000 Waves

{ "type": 13, "id": "7kyXjvAqah74bzw8FGx31V31u1AxXisiwy4kJjRH1Mqr", "fee": 1000000, "feeAssetId": null, "timestamp": 1594366579901, "version": 1, "sender": "3N37A69qLQj49KGRgWhx9C8Zxb1UjHfL8os", "senderPublicKey": "2H7prj9bMBS9xMv4iNhFyNLKx38JpRZ6tnf1GNHu9xUX", "proofs": [ "3rZWBiXJx17o7TPTG9cBzZDWJkzKsG18MWdr7SnuEeXdMUdj9M7jmwFRLoQjeW6XnFpAFmwZHSfLMzKWERwfgpjr" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIBAQAAAAIBAAAACWdldENvb3JkcwAAAAEAAAADa2V5CQAETAAAAAIJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQkABEwAAAACCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAANcG9zaXRpb25Mb25nXwUAAAADa2V5BQAAAANuaWwBAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAANcG9zaXRpb25Mb25nXwUAAAADa2V5BQAAAAlsb25naXR1ZGUFAAAAA25pbAAAAAEAAAABaQEAAAAJc3RhcnRHYW1lAAAAAgAAAAhsYXRpdHVkZQAAAAlsb25naXR1ZGUEAAAABmNhbGxlcgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAA3JldAkBAAAACXNldENvb3JkcwAAAAMFAAAABmNhbGxlcgUAAAAIbGF0aXR1ZGUFAAAACWxvbmdpdHVkZQQAAAAIb3BlbkdhbWUJAAQdAAAAAgUAAAAEdGhpcwIAAAAIb3BlbkdhbWUDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAhvcGVuR2FtZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIb3BlbkdhbWUFAAAABmNhbGxlcgUAAAADcmV0AwMJAAAAAAAAAgUAAAAIb3BlbkdhbWUCAAAAAAYJAAAAAAAAAgUAAAAIb3BlbkdhbWUFAAAABmNhbGxlcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIb3BlbkdhbWUFAAAABmNhbGxlcgUAAAADcmV0CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhvcGVuR2FtZQIAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAVnYW1lXwkBAAAABXZhbHVlAAAAAQUAAAAIb3BlbkdhbWUCAAAAAV8FAAAABmNhbGxlcgYFAAAAA3JldAAAAAA7qvCH", "chainId": 84, "height": 1080868, "spentComplexity": 0 } View: original | compacted Prev: none Next: 5ehFhHmVg3aZJX7wthgQMpTNf9ctEcMYwXQzT5tbGrHS Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getCoords (key) = [getInteger(this, ("positionLat_" + key)), getInteger(this, ("positionLong_" + key))]
5+
6+
7+func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLong_" + key), longitude)]
8+
9+
10+@Callable(i)
11+func startGame (latitude,longitude) = {
12+ let caller = toString(i.caller)
13+ let ret = setCoords(caller, latitude, longitude)
14+ let openGame = getString(this, "openGame")
15+ if (!(isDefined(openGame)))
16+ then WriteSet(DataEntry("openGame", caller) :: ret)
17+ else if (if ((openGame == ""))
18+ then true
19+ else (openGame == caller))
20+ then WriteSet(DataEntry("openGame", caller) :: ret)
21+ else WriteSet([DataEntry("openGame", ""), DataEntry(((("game_" + value(openGame)) + "_") + caller), true)] :: ret)
22+ }
23+
24+

github/deemru/w8io/169f3d6 
16.10 ms