tx · 4MGQL72d2Hch3ryn1PJSynuTXwNxKLNZ5zs4vp1JRBnB 3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7: -0.01000000 Waves 2022.11.07 14:00 [2306637] smart account 3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7 > SELF 0.00000000 Waves
{ "type": 13, "id": "4MGQL72d2Hch3ryn1PJSynuTXwNxKLNZ5zs4vp1JRBnB", "fee": 1000000, "feeAssetId": null, "timestamp": 1667818827211, "version": 2, "chainId": 84, "sender": "3N1A95vbYuuE2ZFFUu6S1UubcE3eSpJNDE7", "senderPublicKey": "DTmTTp6Rb9XUrniBAnWwdNc39UfdmzmtFCBgey4hsnE", "proofs": [ "5UqHNBKx74yckCsHTNELerU6AXJ2fAQLXVnUM8wtaKpRMhb7257D1gvJSPENLhNRSXTc48QKsVnCiBLZnWinEFNH" ], "script": "base64:AAIFAAAAAAAAABQIAhIDCgEBEgUKAwEBARIECgIICAAAABIAAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAICE5ROkpfF/Pivgzkjj1JL6vC/b6udUDj0UtxqhSv/q5AAAAAAZhZG1QdWIBAAAAIAMxPBN63F8xdTrjAM8zGlwpybXka9/dAmFyYk3oeMx3AAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAAAA9CQAAAAAAOUkVJU1NVRV9BTU9VTlQAAAAAAAAW42AAAAAADFNUQVJUX0hFSUdIVAAAAAAAACMPdQAAAAAKRU5EX0hFSUdIVAkAAGQAAAACBQAAAAxTVEFSVF9IRUlHSFQJAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAABwAAAA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AEsAAAAAgkAASwAAAACAgAAAAZjb3VudF8JAAGkAAAAAQUAAAAHc2Vzc2lvbgIAAAABXwUAAAAKY3VycmVudEtleQkAAGQAAAACBQAAAAt3YWxsZXRDb3VudAAAAAAAAAAAAQkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAADFJFV0FSRF9BU1NFVAUAAAAOUkVJU1NVRV9BTU9VTlQGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANUkVXQVJEX0FNT1VOVAUAAAAMUkVXQVJEX0FTU0VUBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQJAAACAAAAAQIAAAAOb3V0IG9mIGNvbnRleHQJAAACAAAAAQIAAAALd3JvbmcgY29sb3IJAAACAAAAAQIAAAAcZ2FtZSBpcyBub3QgYWN0aXZlIHJpZ2h0IG5vdwAAAACsMXal", "height": 2306637, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: An9XGqsnitv3Tp8iNNo6H7dXJZhFaAYik9G6LVPwN2gr Next: FefvJAdEMh7idFpWPKRmqSCtqkr9ZLVEvFqJ4qLoTdm6 Diff:
Old | New | Differences | |
---|---|---|---|
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | - | ||
123 | - | @Callable(s) | |
124 | - | func delete (M) = [DeleteEntry(M)] | |
125 | - | ||
126 | - |
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 | - | ||
123 | - | @Callable(s) | |
124 | - | func delete (M) = [DeleteEntry(M)] | |
125 | - | ||
126 | - |
github/deemru/w8io/169f3d6 38.70 ms ◑