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+4AAAABCQACWQAAAAEJAQAAAAd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Z1Njb3JlVmFsdWUFAAAACnRoaXNTZW5kZXIFAAAADm1hdGNoaW5nU2VuZGVyBAAAAARkcmF3CQAAAAAAAAIFAAAAEm1hdGNoaW5nU2NvcmVWYWx1ZQUAAAAOdGhpc1Njb3JlVmFsdWUDBQAAAARkcmF3CQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIb3BlbkdhbWUCAAAABG5vbmUFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAA5tYXRjaGluZ1NlbmRlcgAAAAAABfXhAAUAAAANZ2FtaW5nQXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAp0aGlzU2VuZGVyAAAAAAAF9eEABQAAAA1nYW1pbmdBc3NldElkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhvcGVuR2FtZQIAAAAEbm9uZQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABndpbm5lcgAAAAAAC+vCAAUAAAANZ2FtaW5nQXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAGlRoaXMgc2hvdWxkIG5ldmVyIGhhcHBlbjIhCQAAAgAAAAECAAAAGlRoaXMgc2hvdWxkIG5ldmVyIGhhcHBlbjMhCQAAAgAAAAECAAAAE0ludmFsaWQgcGF5bWVudCB0eCEAAAAAqzXZwA==", "chainId": 84, "height": 629422, "spentComplexity": 0 } View: original | compacted Prev: 5yrMjUbU83CqUQrokoBcsFahUkVZzZkSmonHFKxKfNsa Next: none Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | then ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(t, 100000000, a), ScriptTransfer(m, 100000000, a)])) | |
94 | 94 | else ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(z, 200000000, a)])) | |
95 | 95 | } | |
96 | - | else throw("This should never | |
96 | + | else throw("This should never happen2!") | |
97 | 97 | } | |
98 | - | else throw("This should never | |
98 | + | else throw("This should never happen3!") | |
99 | 99 | } | |
100 | 100 | else throw("Invalid payment tx!") | |
101 | 101 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = fromBase58String("Dn16hCQTuJsfeCcwS6onUzLTNRzbLUb7zEGHpRKKPJ5o") | |
5 | 5 | ||
6 | 6 | func b (c) = { | |
7 | 7 | let d = { | |
8 | 8 | let e = transferTransactionById(fromBase58String(extract(c))) | |
9 | 9 | if ($isInstanceOf(e, "TransferTransaction")) | |
10 | 10 | then { | |
11 | 11 | let f = e | |
12 | 12 | f.sender | |
13 | 13 | } | |
14 | 14 | else throw("Transaction is no transfer tx!") | |
15 | 15 | } | |
16 | 16 | d | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func g (c) = { | |
21 | 21 | let h = { | |
22 | 22 | let e = transferTransactionById(fromBase58String(extract(c))) | |
23 | 23 | if ($isInstanceOf(e, "TransferTransaction")) | |
24 | 24 | then { | |
25 | 25 | let f = e | |
26 | 26 | f.amount | |
27 | 27 | } | |
28 | 28 | else throw("Transaction is no transfer tx!") | |
29 | 29 | } | |
30 | 30 | h | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func i (c) = { | |
35 | 35 | let j = { | |
36 | 36 | let e = transferTransactionById(fromBase58String(extract(c))) | |
37 | 37 | if ($isInstanceOf(e, "TransferTransaction")) | |
38 | 38 | then { | |
39 | 39 | let f = e | |
40 | 40 | f.assetId | |
41 | 41 | } | |
42 | 42 | else throw("Transaction is no transfer tx!") | |
43 | 43 | } | |
44 | 44 | j | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func k (l,m) = { | |
49 | 49 | let h = g(l) | |
50 | 50 | let n = b(l) | |
51 | 51 | let j = i(l) | |
52 | 52 | if (if ((n == m)) | |
53 | 53 | then (h == 100000000) | |
54 | 54 | else false) | |
55 | 55 | then (j == a) | |
56 | 56 | else false | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(o) | |
61 | 61 | func registerGame (p) = { | |
62 | 62 | let q = { | |
63 | 63 | let e = getString(this, "openGame") | |
64 | 64 | if ($isInstanceOf(e, "String")) | |
65 | 65 | then { | |
66 | 66 | let r = e | |
67 | 67 | r | |
68 | 68 | } | |
69 | 69 | else throw("Initiating impossible!") | |
70 | 70 | } | |
71 | 71 | let m = b(p) | |
72 | 72 | let s = k(p, m) | |
73 | 73 | if (s) | |
74 | 74 | then if ((q == "none")) | |
75 | 75 | then WriteSet([DataEntry("openGame", p)]) | |
76 | 76 | else { | |
77 | 77 | let t = b(q) | |
78 | 78 | let u = getInteger(t, (q + "_score")) | |
79 | 79 | let v = getInteger(m, (p + "_score")) | |
80 | 80 | let e = u | |
81 | 81 | if ($isInstanceOf(e, "Int")) | |
82 | 82 | then { | |
83 | 83 | let w = e | |
84 | 84 | let x = v | |
85 | 85 | if ($isInstanceOf(x, "Int")) | |
86 | 86 | then { | |
87 | 87 | let y = x | |
88 | 88 | let z = if ((y > w)) | |
89 | 89 | then m | |
90 | 90 | else t | |
91 | 91 | let A = (w == y) | |
92 | 92 | if (A) | |
93 | 93 | then ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(t, 100000000, a), ScriptTransfer(m, 100000000, a)])) | |
94 | 94 | else ScriptResult(WriteSet([DataEntry("openGame", "none")]), TransferSet([ScriptTransfer(z, 200000000, a)])) | |
95 | 95 | } | |
96 | - | else throw("This should never | |
96 | + | else throw("This should never happen2!") | |
97 | 97 | } | |
98 | - | else throw("This should never | |
98 | + | else throw("This should never happen3!") | |
99 | 99 | } | |
100 | 100 | else throw("Invalid payment tx!") | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 |
github/deemru/w8io/169f3d6 38.17 ms ◑