tx · JB2dPyxFbf7qq27aZ57vP21U9CiRKR1hTg3LUQHRqEKS 3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7: -0.01000000 Waves 2022.11.07 10:49 [2306440] smart account 3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7 > SELF 0.00000000 Waves
{ "type": 13, "id": "JB2dPyxFbf7qq27aZ57vP21U9CiRKR1hTg3LUQHRqEKS", "fee": 1000000, "feeAssetId": null, "timestamp": 1667807340121, "version": 2, "chainId": 84, "sender": "3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7", "senderPublicKey": "DTmTTp6Rb9XUrniBAnWwdNc39UfdmzmtFCBgey4hsnE", "proofs": [ "4nx3UECfmkntTMZFoDkKNoGjmcWeRDYif2hq3mqLMJ7xDgeG8RNTqV5shrrVrhqCYW2qdCBSXMQZ5kiuuuwBYQRW" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEBEgUKAwEBARIECgIICBIDCgEIAAAAEgAAAAANUEFZTUVOVF9BU1NFVAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQAAAAADFJFV0FSRF9BU1NFVAEAAAAgITlE6Sl8X8+K+DOSOPUkvq8L9vq51QOPRS3GqFK/+rkAAAAABmFkbVB1YgEAAAAgAzE8E3rcXzF1OuMAzzMaXCnJteRr390CYXJiTeh4zHcAAAAABnBpeGVscwUAAAAMUkVXQVJEX0FTU0VUAAAAAAR4TUlOAAAAAAAAAAAAAAAAAAR4TUFYAAAAAAAAAASxAAAAAAR5TUlOAAAAAAAAAAAAAAAAAAR5TUFYAAAAAAAAAAJZAAAAAA1SRVdBUkRfQU1PVU5UAAAAAAAAD0JAAAAAAA5SRUlTU1VFX0FNT1VOVAAAAAAAABbjYAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAIw91AAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAAWgAAAAAA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ACCQABLAAAAAICAAAABmNvdW50XwkAAaQAAAABBQAAAAdzZXNzaW9uAgAAAAFfBQAAAApjdXJyZW50S2V5CQAAZAAAAAIFAAAAC3dhbGxldENvdW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAAMUkVXQVJEX0FTU0VUBQAAAA5SRUlTU1VFX0FNT1VOVAYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1SRVdBUkRfQU1PVU5UBQAAAAxSRVdBUkRfQVNTRVQFAAAAA25pbAkAAAIAAAABAgAAAB1Xcm9uZyBwYXltZW50IGFtb3VudCBvciBhc3NldAkAAAIAAAABAgAAAA5vdXQgb2YgY29udGV4dAkAAAIAAAABAgAAAAt3cm9uZyBjb2xvcgkAAAIAAAABAgAAABxnYW1lIGlzIG5vdCBhY3RpdmUgcmlnaHQgbm93AAAAAWkBAAAABmRlbGV0ZQAAAAEAAAADYXJnCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2FyZwUAAAADbmlsAAAAAI9SMwQ=", "height": 2306440, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HYBL2Nmumkix3Md7QDHHEijPUVEueWPr1yUVWEu97bWY Next: FmRZQiAMcGTTamFkZhTBhgwq2ixiMAnK62AApcmRa6QK Full:
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 | 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 = 1000 | |
35 | 35 | ||
36 | 36 | let q = ["7076E9", "5FD8F1", "D30831", "183937", "FFD345", "B04249", "FFB087", "360A90", "000000", "969696", "FF0200", "800080", "020080", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "9F7E69", "FFEEE2", "983C95"] | |
37 | 37 | ||
38 | 38 | func r (s) = { | |
39 | 39 | let t = a | |
40 | 40 | if ((size(s.payments) == 0)) | |
41 | 41 | then throw("Payment not attached") | |
42 | 42 | else { | |
43 | 43 | let u = s.payments[0] | |
44 | 44 | let v = u.assetId | |
45 | 45 | if ($isInstanceOf(v, "ByteVector")) | |
46 | 46 | then { | |
47 | 47 | let w = v | |
48 | 48 | if ((w == t)) | |
49 | 49 | then (u.amount == m) | |
50 | 50 | else false | |
51 | 51 | } | |
52 | 52 | else throw("Wrong payment asset") | |
53 | 53 | } | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | @Callable(s) | |
58 | 58 | func activeSession (x) = if ((s.callerPublicKey == c)) | |
59 | 59 | then [IntegerEntry(n, x)] | |
60 | 60 | else throw("you are not allowed") | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | ||
64 | 64 | @Callable(s) | |
65 | 65 | func settings (x,y,z) = if ((s.callerPublicKey == c)) | |
66 | 66 | then { | |
67 | 67 | let A = (y + (1440 * z)) | |
68 | 68 | [IntegerEntry((("settings_" + toString(x)) + "_startHeight"), y), IntegerEntry((("settings_" + toString(x)) + "_endHeight"), A)] | |
69 | 69 | } | |
70 | 70 | else throw("you are not allowed") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(s) | |
75 | 75 | func coordinates (B,C) = { | |
76 | 76 | let x = valueOrElse(getInteger(this, n), 0) | |
77 | 77 | let D = toBase58String(s.caller.bytes) | |
78 | 78 | let y = valueOrElse(getInteger(this, (("settings_" + toString(x)) + "_startHeight")), k) | |
79 | 79 | let A = valueOrElse(getInteger(this, (("settings_" + toString(x)) + "_endHeight")), l) | |
80 | 80 | let E = valueOrElse(getInteger(this, ((("count_" + toString(x)) + "_") + D)), 0) | |
81 | 81 | if (if ((height > y)) | |
82 | 82 | then (A > height) | |
83 | 83 | else false) | |
84 | 84 | then { | |
85 | 85 | let F = containsElement(q, B) | |
86 | 86 | if (F) | |
87 | 87 | then { | |
88 | 88 | let G = split(C, "_") | |
89 | 89 | let H = valueOrElse(parseInt(G[0]), 0) | |
90 | 90 | let I = valueOrElse(parseInt(G[1]), 0) | |
91 | 91 | if (if (((H % 8) != 0)) | |
92 | 92 | then ((I % 8) != 0) | |
93 | 93 | else false) | |
94 | 94 | then throw("not cool.") | |
95 | 95 | else { | |
96 | 96 | let J = ((toString(H) + "_") + toString(I)) | |
97 | 97 | let K = valueOrElse(getInteger(this, ("stats_" + toString(x))), 0) | |
98 | 98 | let L = (((((D + "_") + J) + "_") + toString(x)) + "_c") | |
99 | 99 | if (if (if (if (if (if ((H >= e)) | |
100 | 100 | then (f > H) | |
101 | 101 | else false) | |
102 | 102 | then (I >= g) | |
103 | 103 | else false) | |
104 | 104 | then (h > I) | |
105 | 105 | else false) | |
106 | 106 | then (o >= K) | |
107 | 107 | else false) | |
108 | 108 | then (p >= E) | |
109 | 109 | else false) | |
110 | 110 | then if (r(s)) | |
111 | 111 | then [StringEntry(L, B), IntegerEntry(("stats_" + toString(x)), (K + 1)), IntegerEntry(((("count_" + toString(x)) + "_") + D), (E + 1)), Reissue(b, j, true), ScriptTransfer(s.caller, i, b)] | |
112 | 112 | else throw("Wrong payment amount or asset") | |
113 | 113 | else throw("out of context") | |
114 | 114 | } | |
115 | 115 | } | |
116 | 116 | else throw("wrong color") | |
117 | 117 | } | |
118 | 118 | else throw("game is not active right now") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | ||
123 | 123 | @Callable(s) | |
124 | 124 | func delete (M) = [DeleteEntry(M)] | |
125 | 125 | ||
126 | 126 |
github/deemru/w8io/026f985 35.76 ms ◑