tx · Bt8Dcxqm3s4GyWSuqjKeshuZHQRuqyZJKgD13yWAVFBa 3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1: -0.01000000 Waves 2022.05.10 17:07 [2045676] smart account 3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1 > SELF 0.00000000 Waves
{ "type": 13, "id": "Bt8Dcxqm3s4GyWSuqjKeshuZHQRuqyZJKgD13yWAVFBa", "fee": 1000000, "feeAssetId": null, "timestamp": 1652191712925, "version": 2, "chainId": 84, "sender": "3N9K49ZpyQLL9gJjVdxQhu37f8YZdAzakR1", "senderPublicKey": "8rTCUHVm1p6iEchTjpJ1a7SbCaayaRrp4FegpAsirYag", "proofs": [ "C8m2yMnpnccPhhkvHmx76kKBZEE7Sf5PTFJz7KCZk1yqDrEHPUe1AuDMsBEhLahYvTPnGX1kyQ4W4rPfHuM1UGG" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAwAAAAADVBBWU1FTlRfQVNTRVQBAAAAAAAAAAAMUkVXQVJEX0FTU0VUAQAAACAtNxOB0yQ3XZ/hb3bT0Q+T7yws9N2JrVxKVuh8yQFyGwAAAAAGcGl4ZWxzBQAAAAxSRVdBUkRfQVNTRVQAAAAABHhNSU4AAAAAAAAAAAAAAAAABHhNQVgAAAAAAAAABLEAAAAABHlNSU4AAAAAAAAAAAAAAAAABHlNQVgAAAAAAAAAAlkAAAAADVJFV0FSRF9BTU9VTlQAAAAAAAX14QAAAAAADFNUQVJUX0hFSUdIVAAAAAAAAB7x9AAAAAAKRU5EX0hFSUdIVAkAAGQAAAACBQAAAAxTVEFSVF9IRUlHSFQJAABoAAAAAgAAAAAAAAAFoAAAAAAAAAAAHgAAAAAGY29sb3JzCQAETAAAAAICAAAAAzAwMAkABEwAAAACAgAAAANmZmYJAARMAAAAAgIAAAAGMDAwMDAwCQAETAAAAAICAAAABmZmZmZmZgkABEwAAAACAgAAAAZGRjAyMDAJAARMAAAAAgIAAAAGODAwMDgwCQAETAA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BTU9VTlQFAAAABnBpeGVscwUAAAADbmlsCQAAAgAAAAECAAAAHVdyb25nIHBheW1lbnQgYW1vdW50IG9yIGFzc2V0CQAAAgAAAAECAAAADm91dCBvZiBjb250ZXh0CQAAAgAAAAECAAAAC3dyb25nIGNvbG9yCQAAAgAAAAECAAAAHGdhbWUgaXMgbm90IGFjdGl2ZSByaWdodCBub3cAAAAACINO2Q==", "height": 2045676, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7hJsMQGDPd5AkTXq5ZkCuxSEGHnJstwffnTuCEn57LCo Next: BShwJ5wR3qCneu6tu2Wh5XqXbERPpppKheyeiDPECjuM 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'' | |
5 | 5 | ||
6 | 6 | let b = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
7 | 7 | ||
68 | 68 | else false) | |
69 | 69 | then (g > x) | |
70 | 70 | else false) | |
71 | - | then { | |
72 | - | let A = getString(this, z) | |
73 | - | if (l(m)) | |
74 | - | then [StringEntry(z, r), ScriptTransfer(m.caller, h, c)] | |
75 | - | else throw("Wrong payment amount or asset") | |
76 | - | } | |
71 | + | then if (l(m)) | |
72 | + | then [StringEntry(z, r), ScriptTransfer(m.caller, h, c)] | |
73 | + | else throw("Wrong payment amount or asset") | |
77 | 74 | else throw("out of context") | |
78 | 75 | } | |
79 | 76 | } | |
82 | 79 | else throw("game is not active right now") | |
83 | 80 | ||
84 | 81 | ||
85 | - | ||
86 | - | @Callable(m) | |
87 | - | func shutdown () = throw("test") | |
88 | - | ||
89 | - |
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'' | |
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 | - | then { | |
72 | - | let A = getString(this, z) | |
73 | - | if (l(m)) | |
74 | - | then [StringEntry(z, r), ScriptTransfer(m.caller, h, c)] | |
75 | - | else throw("Wrong payment amount or asset") | |
76 | - | } | |
71 | + | then if (l(m)) | |
72 | + | then [StringEntry(z, r), ScriptTransfer(m.caller, h, c)] | |
73 | + | else throw("Wrong payment amount or asset") | |
77 | 74 | else throw("out of context") | |
78 | 75 | } | |
79 | 76 | } | |
80 | 77 | else throw("wrong color") | |
81 | 78 | } | |
82 | 79 | else throw("game is not active right now") | |
83 | 80 | ||
84 | 81 | ||
85 | - | ||
86 | - | @Callable(m) | |
87 | - | func shutdown () = throw("test") | |
88 | - | ||
89 | - |
github/deemru/w8io/169f3d6 53.36 ms ◑