tx · 8hBUeuB97gPFHdy76vXaNxKpaYbBc3jsGzbEtjEGMsHd 3N5Sns8QYmySnDbSZWqMC869WJDRaxnDX19: -0.01000000 Waves 2022.05.11 22:54 [2047451] smart account 3N5Sns8QYmySnDbSZWqMC869WJDRaxnDX19 > SELF 0.00000000 Waves
{ "type": 13, "id": "8hBUeuB97gPFHdy76vXaNxKpaYbBc3jsGzbEtjEGMsHd", "fee": 1000000, "feeAssetId": null, "timestamp": 1652298895808, "version": 2, "chainId": 84, "sender": "3N5Sns8QYmySnDbSZWqMC869WJDRaxnDX19", "senderPublicKey": "E9qCg8KrCfnpnZKmDXGtU2DZfAGHR2xnPnTqtwYjsjto", "proofs": [ "3zwS6tPHBanLTGDauR19KSkwQqoKgdJyqrfXrRGytvLwt3zWhSkfSjappncumD9wKcc1aRhnq3x9EHYgwXXYUdJs" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAwAAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAHvH0AAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAAWgAAAAAAAAAAAeAAAAAAZjb2xvcnMJAARMAAAAAgIAAAADMDAwCQAETAAAAAICAAAAA2ZmZgkABEwAAAACAgAAAAYwMDAwMDAJAARMAAAAAgIAAAAGZmZmZmZmCQAETAAAAAICAAAABkZGMDIwM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FpAAAABmNhbGxlcgUAAAANUkVXQVJEX0FNT1VOVAUAAAAGcGl4ZWxzBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQJAAACAAAAAQIAAAAOb3V0IG9mIGNvbnRleHQJAAACAAAAAQIAAAALd3JvbmcgY29sb3IJAAACAAAAAQIAAAAcZ2FtZSBpcyBub3QgYWN0aXZlIHJpZ2h0IG5vdwAAAACskK+T", "height": 2047451, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5bZqzSzxmtLPEnJ4Ps6wvtSXejsGfabLYwN3kvR7QkJZ Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58'' | |
4 | + | let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' | |
5 | 5 | ||
6 | 6 | let b = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58'' | |
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 = 2028020 | |
21 | 21 | ||
22 | 22 | let j = (i + (1440 * 30)) | |
23 | 23 | ||
24 | 24 | let k = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"] | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = a | |
28 | 28 | if ((size(m.payments) == 0)) | |
29 | 29 | then throw("Payment not attached") | |
30 | 30 | else { | |
31 | 31 | let o = m.payments[0] | |
32 | 32 | let p = o.assetId | |
33 | 33 | if ($isInstanceOf(p, "ByteVector")) | |
34 | 34 | then { | |
35 | 35 | let q = p | |
36 | 36 | if ((q == n)) | |
37 | 37 | then (o.amount == 1000000) | |
38 | 38 | else false | |
39 | 39 | } | |
40 | 40 | else throw("Wrong payment asset") | |
41 | 41 | } | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | @Callable(m) | |
46 | 46 | func coordinates (r,s) = if (if ((height > i)) | |
47 | 47 | then (j > height) | |
48 | 48 | else false) | |
49 | 49 | then { | |
50 | 50 | let t = containsElement(k, r) | |
51 | 51 | if (t) | |
52 | 52 | then { | |
53 | 53 | let u = toBase58String(m.caller.bytes) | |
54 | 54 | let v = split(s, "_") | |
55 | 55 | let w = valueOrElse(parseInt(v[0]), 0) | |
56 | 56 | let x = valueOrElse(parseInt(v[1]), 0) | |
57 | 57 | if (if (((w % 8) != 0)) | |
58 | 58 | then ((x % 8) != 0) | |
59 | 59 | else false) | |
60 | 60 | then throw("not cool.") | |
61 | 61 | else { | |
62 | 62 | let y = ((toString(w) + "_") + toString(x)) | |
63 | 63 | let z = (((u + "_") + y) + "_c") | |
64 | 64 | if (if (if (if ((w >= d)) | |
65 | 65 | then (e > w) | |
66 | 66 | else false) | |
67 | 67 | then (x >= f) | |
68 | 68 | else false) | |
69 | 69 | then (g > x) | |
70 | 70 | else false) | |
71 | 71 | then if (l(m)) | |
72 | 72 | then [StringEntry(z, r), ScriptTransfer(m.caller, h, c)] | |
73 | 73 | else throw("Wrong payment amount or asset") | |
74 | 74 | else throw("out of context") | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | else throw("wrong color") | |
78 | 78 | } | |
79 | 79 | else throw("game is not active right now") | |
80 | 80 | ||
81 | 81 |
github/deemru/w8io/169f3d6 21.63 ms ◑