tx · 4dj42gwoP8PmJ1skb67H6qwZ9PT4FNWyn7dUpNbkEGZ3 3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1: -0.01000000 Waves 2022.05.18 10:14 [2056782] smart account 3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1 > SELF 0.00000000 Waves
{ "type": 13, "id": "4dj42gwoP8PmJ1skb67H6qwZ9PT4FNWyn7dUpNbkEGZ3", "fee": 1000000, "feeAssetId": null, "timestamp": 1652858129758, "version": 2, "chainId": 84, "sender": "3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1", "senderPublicKey": "8rTCUHVm1p6iEchTjpJ1a7SbCaayaRrp4FegpAsirYag", "proofs": [ "wFLwJUNKamXKX5Kne9qW8BUUavw4KFcxNcDQuE4MTPSUswFUwaavrANsYYC8rNsCkKzph18eJUC6d5QciF1XkDU" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAA4AAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAUUkVXQVJEX1BPT0xfRElWSVNJT04AAAAAAAAAAAQAAAAAElRPX1RIRV9SRVdBUkRfUE9PTAkAAGkAAAACBQAAAA1SRVdBUkRfQU1PVU5UBQAAABRSRVdBUkRfUE9PTF9ESVZJU0lPTgAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAHvH0AAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAA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gcGF5bWVudCBhbW91bnQgb3IgYXNzZXQJAAACAAAAAQIAAAAOb3V0IG9mIGNvbnRleHQJAAACAAAAAQIAAAALd3JvbmcgY29sb3IJAAACAAAAAQIAAAAcZ2FtZSBpcyBub3QgYWN0aXZlIHJpZ2h0IG5vdwAAAADwRFRm", "height": 2056782, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4qnRHdcZffviYiMBbK3JiwXPtoQg1xLJZMskRp6m18mU Next: C4Yrn9JEDYQqf53XaKB9ADZ7W4Uie3dK5dZGUoovGzeo 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'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
7 | 7 | ||
8 | 8 | let c = b | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = 1201 | |
13 | 13 | ||
14 | 14 | let f = 0 | |
15 | 15 | ||
16 | 16 | let g = 601 | |
17 | 17 | ||
18 | 18 | let h = 100000000 | |
19 | 19 | ||
20 | 20 | let i = 4 | |
21 | 21 | ||
22 | 22 | let j = (h / i) | |
23 | 23 | ||
24 | 24 | let k = 2028020 | |
25 | 25 | ||
26 | 26 | let l = (k + (1440 * 30)) | |
27 | 27 | ||
28 | 28 | let m = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"] | |
29 | 29 | ||
30 | 30 | func n (o) = { | |
31 | 31 | let p = a | |
32 | 32 | if ((size(o.payments) == 0)) | |
33 | 33 | then throw("Payment not attached") | |
34 | 34 | else { | |
35 | 35 | let q = o.payments[0] | |
36 | 36 | let r = q.assetId | |
37 | 37 | if ($isInstanceOf(r, "ByteVector")) | |
38 | 38 | then { | |
39 | 39 | let s = r | |
40 | 40 | if ((s == p)) | |
41 | 41 | then (q.amount == 1000000) | |
42 | 42 | else false | |
43 | 43 | } | |
44 | 44 | else throw("Wrong payment asset") | |
45 | 45 | } | |
46 | 46 | } | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(o) | |
50 | 50 | func coordinates (t,u) = if (if ((height > k)) | |
51 | 51 | then (l > height) | |
52 | 52 | else false) | |
53 | 53 | then { | |
54 | 54 | let v = containsElement(m, t) | |
55 | 55 | if (v) | |
56 | 56 | then { | |
57 | 57 | let w = toBase58String(o.caller.bytes) | |
58 | 58 | let x = split(u, "_") | |
59 | 59 | let y = valueOrElse(parseInt(x[0]), 0) | |
60 | 60 | let z = valueOrElse(parseInt(x[1]), 0) | |
61 | 61 | if (if (((y % 8) != 0)) | |
62 | 62 | then ((z % 8) != 0) | |
63 | 63 | else false) | |
64 | 64 | then throw("not cool.") | |
65 | 65 | else { | |
66 | 66 | let A = ((toString(y) + "_") + toString(z)) | |
67 | 67 | let B = (((w + "_") + A) + "_c") | |
68 | 68 | if (if (if (if ((y >= d)) | |
69 | 69 | then (e > y) | |
70 | 70 | else false) | |
71 | 71 | then (z >= f) | |
72 | 72 | else false) | |
73 | 73 | then (g > z) | |
74 | 74 | else false) | |
75 | 75 | then if (n(o)) | |
76 | 76 | then { | |
77 | 77 | let C = "reward_pool" | |
78 | 78 | let D = j | |
79 | 79 | let E = height | |
80 | 80 | let F = ("0_" + toString(height)) | |
81 | 81 | let G = valueOrElse(getString(this, "reward_pool"), F) | |
82 | 82 | let H = split(G, "_") | |
83 | 83 | let I = valueOrElse(parseInt(H[0]), 0) | |
84 | 84 | let J = valueOrElse(parseInt(H[1]), height) | |
85 | 85 | let K = (I + D) | |
86 | 86 | [StringEntry(B, t), StringEntry(C, ((toString(K) + "_") + toString(height))), ScriptTransfer(o.caller, h, c)] | |
87 | 87 | } | |
88 | 88 | else throw("Wrong payment amount or asset") | |
89 | 89 | else throw("out of context") | |
90 | 90 | } | |
91 | 91 | } | |
92 | 92 | else throw("wrong color") | |
93 | 93 | } | |
94 | 94 | else throw("game is not active right now") | |
95 | 95 | ||
96 | 96 |
github/deemru/w8io/026f985 20.79 ms ◑