tx · AuFcT1ZoSk1wbREDdd1uFD1qytRd6CEonaUEGzEQ8fRc

3MtJGiTA9X9WpQdFEbrDGysqHQHBZtf6Sns:  -0.01900000 Waves

2020.07.09 14:54 [1079665] smart account 3MtJGiTA9X9WpQdFEbrDGysqHQHBZtf6Sns > SELF 0.00000000 Waves

{ "type": 13, "id": "AuFcT1ZoSk1wbREDdd1uFD1qytRd6CEonaUEGzEQ8fRc", "fee": 1900000, "feeAssetId": null, "timestamp": 1594295712454, "version": 1, "sender": "3MtJGiTA9X9WpQdFEbrDGysqHQHBZtf6Sns", "senderPublicKey": "9LxKf4ukaXnEB35ZWRUSYGBtoe42xygrqKWGCVfU9Crs", "proofs": [ "4HUL1yYHCJfHVVmndStH2rMAzWUQ8e8CVurRgHBJpkyCMyhUJwcP3uU76kEYRDqw5QGkQMKyZ3KuEFpcDXHUeVKC" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIBAQAAAAIBAAAACWdldENvb3JkcwAAAAEAAAADa2V5CQAETAAAAAIJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQkABEwAAAACCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAANcG9zaXRpb25Mb25nXwUAAAADa2V5BQAAAANuaWwBAAAACXNldENvb3JkcwAAAAMAAAADa2V5AAAACGxhdGl0dWRlAAAACWxvbmdpdHVkZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwb3NpdGlvbkxhdF8FAAAAA2tleQUAAAAIbGF0aXR1ZGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAANcG9zaXRpb25Mb25nXwUAAAADa2V5BQAAAAlsb25naXR1ZGUFAAAAA25pbAAAAAEAAAABaQEAAAAJc3RhcnRHYW1lAAAAAgAAAAhsYXRpdHVkZQAAAAlsb25naXR1ZGUEAAAABmNhbGxlcgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAA3JldAkBAAAACXNldENvb3JkcwAAAAMFAAAABmNhbGxlcgUAAAAIbGF0aXR1ZGUFAAAACWxvbmdpdHVkZQQAAAAIb3BlbkdhbWUJAAQdAAAAAgUAAAAEdGhpcwIAAAAIb3BlbkdhbWUDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAhvcGVuR2FtZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIb3BlbkdhbWUFAAAABmNhbGxlcgUAAAADcmV0AwMJAAAAAAAAAgUAAAAIb3BlbkdhbWUCAAAAAAYJAAAAAAAAAgUAAAAIb3BlbkdhbWUFAAAABmNhbGxlcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIb3BlbkdhbWUFAAAABmNhbGxlcgUAAAADcmV0CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhvcGVuR2FtZQIAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAVnYW1lXwkBAAAABXZhbHVlAAAAAQUAAAAIb3BlbkdhbWUCAAAAAV8FAAAABmNhbGxlcgYFAAAAA3JldAAAAAA7qvCH", "chainId": 84, "height": 1079665, "spentComplexity": 0 } View: original | compacted Prev: DCjA7aCkZLxQJvvubZLfkvjmTUH2sHWbjhgYXFwrQS7j Next: 768x2jcxqTaFA6TyvCNvt6gq52v7CbrMFY3YWftLqm2q Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getCoords (key) = [getInteger(this, ("positionLat_" + key)), getInteger(this, ("positionLong_" + key))]
55
66
77 func setCoords (key,latitude,longitude) = [DataEntry(("positionLat_" + key), latitude), DataEntry(("positionLong_" + key), longitude)]
88
99
1010 @Callable(i)
1111 func startGame (latitude,longitude) = {
1212 let caller = toString(i.caller)
1313 let ret = setCoords(caller, latitude, longitude)
1414 let openGame = getString(this, "openGame")
1515 if (!(isDefined(openGame)))
1616 then WriteSet(DataEntry("openGame", caller) :: ret)
1717 else if (if ((openGame == ""))
1818 then true
1919 else (openGame == caller))
2020 then WriteSet(DataEntry("openGame", caller) :: ret)
2121 else WriteSet([DataEntry("openGame", ""), DataEntry(((("game_" + value(openGame)) + "_") + caller), true)] :: ret)
2222 }
2323
2424

github/deemru/w8io/026f985 
34.07 ms