tx · 4nMw3HvfnHmWZmQcKHZetZNdkQYHhWAZHytdCmYexemd

3MzqDsrJ19a1wqwLNC9WZhHixkTczC1HLFb:  -0.09000000 Waves

2019.08.13 17:29 [629422] smart account 3MzqDsrJ19a1wqwLNC9WZhHixkTczC1HLFb > SELF 0.00000000 Waves

{ "type": 13, "id": "4nMw3HvfnHmWZmQcKHZetZNdkQYHhWAZHytdCmYexemd", "fee": 9000000, "feeAssetId": null, "timestamp": 1565706515351, "version": 1, "sender": "3MzqDsrJ19a1wqwLNC9WZhHixkTczC1HLFb", "senderPublicKey": "CB6swHXQ614ikcpiGn6fBKJyMgXNMNj4ghov1JM9BJmm", "proofs": [ "56S6qmFDzbT5VukwqQvhH3tg26s2MrNwXTs1frB959PKPpWY3Ao7CZBYoaZkChaFAyu97HbBAHEniGr1fGxhGLgG" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAA1nYW1pbmdBc3NldElkCQACWQAAAAECAAAALERuMTZoQ1FUdUpzZmVDY3dTNm9uVXpMVE5SemJMVWI3ekVHSHBSS0tQSjVvAQAAABZnZXRTZW5kZXJGcm9tUGF5bWVudFR4AAAAAQAAAAx0cmFuc2ZlclR4SWQEAAAAEHRyYW5zZmVyVHhTZW5kZXIEAAAAByRtYXRjaDAJAAPuAAAAAQkAAlkAAAABCQEAAAAHZXh0cmFjdAAAAAEFAAAADHRyYW5zZmVyVHhJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAIBQAAAAJ0eAAAAAZzZW5kZXIJAAACAAAAAQIAAAAeVHJhbnNhY3Rpb24gaXMgbm8gdHJhbnNmZXIgdHghBQAAABB0cmFuc2ZlclR4U2VuZGVyAQAAABZnZXRBbW91bnRGcm9tUGF5bWVudFR4AAAAAQAAAAx0cmFuc2ZlclR4SWQEAAAABmFtb3VudAQAAAAHJG1hdGNoMAkAA+4AAAABCQACWQAAAAEJAQAAAA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luZ1Njb3JlVmFsdWUFAAAACnRoaXNTZW5kZXIFAAAADm1hdGNoaW5nU2VuZGVyBAAAAARkcmF3CQAAAAAAAAIFAAAAEm1hdGNoaW5nU2NvcmVWYWx1ZQUAAAAOdGhpc1Njb3JlVmFsdWUDBQAAAARkcmF3CQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIb3BlbkdhbWUCAAAABG5vbmUFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAA5tYXRjaGluZ1NlbmRlcgAAAAAABfXhAAUAAAANZ2FtaW5nQXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAp0aGlzU2VuZGVyAAAAAAAF9eEABQAAAA1nYW1pbmdBc3NldElkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhvcGVuR2FtZQIAAAAEbm9uZQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABndpbm5lcgAAAAAAC+vCAAUAAAANZ2FtaW5nQXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAGlRoaXMgc2hvdWxkIG5ldmVyIGhhcHBlbjIhCQAAAgAAAAECAAAAGlRoaXMgc2hvdWxkIG5ldmVyIGhhcHBlbjMhCQAAAgAAAAECAAAAE0ludmFsaWQgcGF5bWVudCB0eCEAAAAAqzXZwA==", "chainId": 84, "height": 629422, "spentComplexity": 0 } View: original | compacted Prev: 5yrMjUbU83CqUQrokoBcsFahUkVZzZkSmonHFKxKfNsa Next: none Diff:
OldNewDifferences
9393 then ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(t, 100000000, a), ScriptTransfer(m, 100000000, a)]))
9494 else ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(z, 200000000, a)]))
9595 }
96- else throw("This should never happen!")
96+ else throw("This should never happen2!")
9797 }
98- else throw("This should never happen!")
98+ else throw("This should never happen3!")
9999 }
100100 else throw("Invalid payment tx!")
101101 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase58String("Dn16hCQTuJsfeCcwS6onUzLTNRzbLUb7zEGHpRKKPJ5o")
55
66 func b (c) = {
77 let d = {
88 let e = transferTransactionById(fromBase58String(extract(c)))
99 if ($isInstanceOf(e, "TransferTransaction"))
1010 then {
1111 let f = e
1212 f.sender
1313 }
1414 else throw("Transaction is no transfer tx!")
1515 }
1616 d
1717 }
1818
1919
2020 func g (c) = {
2121 let h = {
2222 let e = transferTransactionById(fromBase58String(extract(c)))
2323 if ($isInstanceOf(e, "TransferTransaction"))
2424 then {
2525 let f = e
2626 f.amount
2727 }
2828 else throw("Transaction is no transfer tx!")
2929 }
3030 h
3131 }
3232
3333
3434 func i (c) = {
3535 let j = {
3636 let e = transferTransactionById(fromBase58String(extract(c)))
3737 if ($isInstanceOf(e, "TransferTransaction"))
3838 then {
3939 let f = e
4040 f.assetId
4141 }
4242 else throw("Transaction is no transfer tx!")
4343 }
4444 j
4545 }
4646
4747
4848 func k (l,m) = {
4949 let h = g(l)
5050 let n = b(l)
5151 let j = i(l)
5252 if (if ((n == m))
5353 then (h == 100000000)
5454 else false)
5555 then (j == a)
5656 else false
5757 }
5858
5959
6060 @Callable(o)
6161 func registerGame (p) = {
6262 let q = {
6363 let e = getString(this, "openGame")
6464 if ($isInstanceOf(e, "String"))
6565 then {
6666 let r = e
6767 r
6868 }
6969 else throw("Initiating impossible!")
7070 }
7171 let m = b(p)
7272 let s = k(p, m)
7373 if (s)
7474 then if ((q == "none"))
7575 then WriteSet([DataEntry("openGame", p)])
7676 else {
7777 let t = b(q)
7878 let u = getInteger(t, (q + "_score"))
7979 let v = getInteger(m, (p + "_score"))
8080 let e = u
8181 if ($isInstanceOf(e, "Int"))
8282 then {
8383 let w = e
8484 let x = v
8585 if ($isInstanceOf(x, "Int"))
8686 then {
8787 let y = x
8888 let z = if ((y > w))
8989 then m
9090 else t
9191 let A = (w == y)
9292 if (A)
9393 then ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(t, 100000000, a), ScriptTransfer(m, 100000000, a)]))
9494 else ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(z, 200000000, a)]))
9595 }
96- else throw("This should never happen!")
96+ else throw("This should never happen2!")
9797 }
98- else throw("This should never happen!")
98+ else throw("This should never happen3!")
9999 }
100100 else throw("Invalid payment tx!")
101101 }
102102
103103

github/deemru/w8io/169f3d6 
38.17 ms