tx · Br4fhLmwPcsF1VLZ1W7Vf6oJpW5dn6efxJLkXvYtwPm 3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7: -0.01000000 Waves 2022.11.07 10:38 [2306431] smart account 3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7 > SELF 0.00000000 Waves
{ "type": 13, "id": "Br4fhLmwPcsF1VLZ1W7Vf6oJpW5dn6efxJLkXvYtwPm", "fee": 1000000, "feeAssetId": null, "timestamp": 1667806748770, "version": 2, "chainId": 84, "sender": "3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7", "senderPublicKey": "DTmTTp6Rb9XUrniBAnWwdNc39UfdmzmtFCBgey4hsnE", "proofs": [ "3yJ65hEts1SPMCHxaQ65EQyzHvxRL3fUdqbdEbRArffpXhW75BdUVC8rH7kzJPMiqasM838iNrLfhwaXoGRZp5iR" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEBEgUKAwEBARIECgIICBIDCgEIAAAAEQAAAAANUEFZTUVOVF9BU1NFVAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQAAAAADFJFV0FSRF9BU1NFVAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAABmFkbVB1YgEAAAAgAzE8E3rcXzF1OuMAzzMaXCnJteRr390CYXJiTeh4zHcAAAAABnBpeGVscwUAAAAMUkVXQVJEX0FTU0VUAAAAAAR4TUlOAAAAAAAAAAAAAAAAAAR4TUFYAAAAAAAAAASxAAAAAAR5TUlOAAAAAAAAAAAAAAAAAAR5TUFYAAAAAAAAAAJZAAAAAA1SRVdBUkRfQU1PVU5UAAAAAAAAD0JAAAAAAA5SRUlTU1VFX0FNT1VOVAAAAAAAABbjYAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAIw91AAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAAWgAAAAAAA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Y29sb3IJAAACAAAAAQIAAAAcZ2FtZSBpcyBub3QgYWN0aXZlIHJpZ2h0IG5vdwAAAAFpAQAAAAZkZWxldGUAAAABAAAAA2FyZwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANhcmcFAAAAA25pbAAAAAC5Uhdg", "height": 2306431, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7didCQbCL9i9yKggAwfEV1qWRJZWYahunAZCBnr7b6gm Next: HYBL2Nmumkix3Md7QDHHEijPUVEueWPr1yUVWEu97bWY Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'DTmTTp6Rb9XUrniBAnWwdNc39UfdmzmtFCBgey4hsnE' | |
9 | 9 | ||
10 | 10 | let d = b | |
11 | 11 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' | |
5 | 5 | ||
6 | 6 | let b = base58'3Eh6z6z6ouFpWxGKrPaPnZwmDnDjgYHV6tqCmZf2G7tk' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'DTmTTp6Rb9XUrniBAnWwdNc39UfdmzmtFCBgey4hsnE' | |
9 | 9 | ||
10 | 10 | let d = b | |
11 | 11 | ||
12 | 12 | let e = 0 | |
13 | 13 | ||
14 | 14 | let f = 1201 | |
15 | 15 | ||
16 | 16 | let g = 0 | |
17 | 17 | ||
18 | 18 | let h = 601 | |
19 | 19 | ||
20 | 20 | let i = 1000000 | |
21 | 21 | ||
22 | 22 | let j = 1500000 | |
23 | 23 | ||
24 | 24 | let k = 2297717 | |
25 | 25 | ||
26 | 26 | let l = (k + (1440 * 7)) | |
27 | 27 | ||
28 | 28 | let m = 100000 | |
29 | 29 | ||
30 | 30 | let n = "active_session" | |
31 | 31 | ||
32 | 32 | let o = 22500 | |
33 | 33 | ||
34 | 34 | let p = ["7076E9", "5FD8F1", "D30831", "183937", "FFD345", "B04249", "FFB087", "360A90", "000000", "969696", "FF0200", "800080", "020080", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "9F7E69", "FFEEE2", "983C95"] | |
35 | 35 | ||
36 | 36 | func q (r) = { | |
37 | 37 | let s = a | |
38 | 38 | if ((size(r.payments) == 0)) | |
39 | 39 | then throw("Payment not attached") | |
40 | 40 | else { | |
41 | 41 | let t = r.payments[0] | |
42 | 42 | let u = t.assetId | |
43 | 43 | if ($isInstanceOf(u, "ByteVector")) | |
44 | 44 | then { | |
45 | 45 | let v = u | |
46 | 46 | if ((v == s)) | |
47 | 47 | then (t.amount == m) | |
48 | 48 | else false | |
49 | 49 | } | |
50 | 50 | else throw("Wrong payment asset") | |
51 | 51 | } | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | @Callable(r) | |
56 | 56 | func activeSession (w) = if ((r.callerPublicKey == c)) | |
57 | 57 | then [IntegerEntry(n, w)] | |
58 | 58 | else throw("you are not allowed") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | ||
62 | 62 | @Callable(r) | |
63 | 63 | func settings (w,x,y) = if ((r.callerPublicKey == c)) | |
64 | 64 | then { | |
65 | 65 | let z = (x + (1440 * y)) | |
66 | 66 | [IntegerEntry((("settings_" + toString(w)) + "_startHeight"), x), IntegerEntry((("settings_" + toString(w)) + "_endHeight"), z)] | |
67 | 67 | } | |
68 | 68 | else throw("you are not allowed") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(r) | |
73 | 73 | func coordinates (A,B) = { | |
74 | 74 | let w = valueOrElse(getInteger(this, n), 0) | |
75 | 75 | let x = valueOrElse(getInteger(this, (("settings_" + toString(w)) + "_startHeight")), k) | |
76 | 76 | let z = valueOrElse(getInteger(this, (("settings_" + toString(w)) + "_endHeight")), l) | |
77 | 77 | if (if ((height > x)) | |
78 | 78 | then (z > height) | |
79 | 79 | else false) | |
80 | 80 | then { | |
81 | 81 | let C = containsElement(p, A) | |
82 | 82 | if (C) | |
83 | 83 | then { | |
84 | 84 | let D = toBase58String(r.caller.bytes) | |
85 | 85 | let E = split(B, "_") | |
86 | 86 | let F = valueOrElse(parseInt(E[0]), 0) | |
87 | 87 | let G = valueOrElse(parseInt(E[1]), 0) | |
88 | 88 | if (if (((F % 8) != 0)) | |
89 | 89 | then ((G % 8) != 0) | |
90 | 90 | else false) | |
91 | 91 | then throw("not cool.") | |
92 | 92 | else { | |
93 | 93 | let H = ((toString(F) + "_") + toString(G)) | |
94 | 94 | let I = valueOrElse(getInteger(this, ("stats_" + toString(w))), 0) | |
95 | 95 | let J = (((((D + "_") + H) + "_") + toString(w)) + "_c") | |
96 | 96 | if (if (if (if (if ((F >= e)) | |
97 | 97 | then (f > F) | |
98 | 98 | else false) | |
99 | 99 | then (G >= g) | |
100 | 100 | else false) | |
101 | 101 | then (h > G) | |
102 | 102 | else false) | |
103 | 103 | then (o >= I) | |
104 | 104 | else false) | |
105 | 105 | then if (q(r)) | |
106 | 106 | then [StringEntry(J, A), IntegerEntry(("stats_" + toString(w)), (I + 1)), Reissue(b, j, true), ScriptTransfer(r.caller, i, b)] | |
107 | 107 | else throw("Wrong payment amount or asset") | |
108 | 108 | else throw("out of context") | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | else throw("wrong color") | |
112 | 112 | } | |
113 | 113 | else throw("game is not active right now") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(r) | |
119 | 119 | func delete (K) = [DeleteEntry(K)] | |
120 | 120 | ||
121 | 121 |
github/deemru/w8io/026f985 23.05 ms ◑