tx · BqQg14HADszBxWRmgzrDMqXeaM4QMYaHYZrY5mFacQEU 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01000000 Waves 2021.12.11 11:53 [1829361] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "BqQg14HADszBxWRmgzrDMqXeaM4QMYaHYZrY5mFacQEU", "fee": 1000000, "feeAssetId": null, "timestamp": 1639212930074, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "5QuhaJJ5pyDnh1fseapfCCiwcKdBmsrCnEM9QNYaSsmvA8RjiYkimmj3ZxTx7VYqQ6iQRq74Wzn9DbSSF7PDEKqX" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADGJ1cm5pbmdzdGFnZQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAABGNhbGwAAAABAAAABGlkNTgEAAAAC2N1cnJlbnR0aW1lBAAAAAckbWF0Y2gwCQAD7QAAAAEFAAAABmhlaWdodAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAJQmxvY2tJbmZvBAAAAAVibG9jawUAAAAHJG1hdGNoMAgFAAAABWJsb2NrAAAACXRpbWVzdGFtcAkAAAIAAAABAgAAAB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biAJAAGkAAAAAQUAAAALY3VycmVudHRpbWUCAAAAAAIAAAAVY2FudCBmaW5kIHRyYW5zYWN0aW9uAwUAAAAJaXNwcm9vdmVkAwkAAGYAAAACBQAAAApidXJuYW1vdW50AAAAAAAAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADGNhbGxlckFkcmVzcwUAAAAKZHJvcGFtb3VudAUAAAAFdG9rZW4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZyZXN1bHQJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAV0b2tlbgAAAAAAAAAD5wUAAAADbmlsCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAAC2N1cnJlbnR0aW1lCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADGNhbGxlckFkcmVzcwUAAAAKZHJvcGFtb3VudAUAAAAFdG9rZW4FAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABnJlc3VsdAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAD98QmA", "height": 1829361, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BKiUxiX31xrvnKvU4fKkyBxwGt2PdizczEBMmjdAMHpq Next: 6hAR8Lyx1XZ6uBvpWBi1e9hkttvMKa13CMB9MoS8cLNz Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'GZc7eKnq2KJwqetRmUzSqr2ZaCGseDZufSocz83sUNoo' | |
5 | 5 | ||
6 | 6 | let b = Address(base58'3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV') | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func reset () = [DeleteEntry(toBase58String(c.caller.bytes)), IntegerEntry("burningstage", 0)] | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(c) | |
14 | 14 | func call (d) = { | |
15 | 15 | let e = { | |
16 | 16 | let f = blockInfoByHeight(height) | |
17 | 17 | if ($isInstanceOf(f, "BlockInfo")) | |
18 | 18 | then { | |
19 | 19 | let g = f | |
20 | 20 | g.timestamp | |
21 | 21 | } | |
22 | 22 | else throw("Can't find block") | |
23 | 23 | } | |
24 | 24 | let h = assetBalance(b, a) | |
25 | 25 | let i = { | |
26 | 26 | let f = getInteger("burningstage") | |
27 | 27 | if ($isInstanceOf(f, "Int")) | |
28 | 28 | then { | |
29 | 29 | let j = f | |
30 | 30 | if (if ((getIntegerValue("burningstage") == 0)) | |
31 | 31 | then (e > 1639131654752) | |
32 | 32 | else false) | |
33 | 33 | then fraction(h, 10, 100) | |
34 | 34 | else 0 | |
35 | 35 | } | |
36 | 36 | else throw("no burningstage") | |
37 | 37 | } | |
38 | 38 | let k = 100 | |
39 | 39 | let l = if ((h > k)) | |
40 | 40 | then true | |
41 | 41 | else throw("not enough") | |
42 | 42 | if ((l == l)) | |
43 | 43 | then { | |
44 | 44 | let m = fromBase58String(d) | |
45 | 45 | let n = Address(c.caller.bytes) | |
46 | 46 | let o = 1639148135492 | |
47 | 47 | let p = { | |
48 | 48 | let f = transferTransactionById(m) | |
49 | 49 | if ($isInstanceOf(f, "TransferTransaction")) | |
50 | 50 | then { | |
51 | 51 | let q = f | |
52 | 52 | true | |
53 | 53 | } | |
54 | 54 | else false | |
55 | 55 | } | |
56 | 56 | let r = { | |
57 | 57 | let f = transferTransactionById(m) | |
58 | 58 | if ($isInstanceOf(f, "TransferTransaction")) | |
59 | 59 | then { | |
60 | 60 | let q = f | |
61 | 61 | q.timestamp | |
62 | 62 | } | |
63 | 63 | else 9999999999999 | |
64 | 64 | } | |
65 | 65 | let s = { | |
66 | 66 | let f = transferTransactionById(m) | |
67 | 67 | if ($isInstanceOf(f, "TransferTransaction")) | |
68 | 68 | then { | |
69 | 69 | let q = f | |
70 | 70 | q.sender | |
71 | 71 | } | |
72 | 72 | else b | |
73 | 73 | } | |
74 | 74 | let t = if ((take(valueOrElse(getString(toBase58String(c.caller.bytes)), ""), 8) == "received")) | |
75 | 75 | then true | |
76 | 76 | else false | |
77 | 77 | let u = if (if (if ((r > o)) | |
78 | 78 | then true | |
79 | 79 | else (n != s)) | |
80 | 80 | then true | |
81 | 81 | else t) | |
82 | 82 | then false | |
83 | 83 | else true | |
84 | 84 | let v = if (p) | |
85 | 85 | then if ((r > o)) | |
86 | 86 | then ("transaction is out of time range: " + toString(r)) | |
87 | 87 | else ("" + (if ((n != s)) | |
88 | 88 | then ((("it is incorrect sender: " + toString(n)) + " / ") + toString(s)) | |
89 | 89 | else ("" + (if (t) | |
90 | 90 | then getStringValue(toBase58String(c.caller.bytes)) | |
91 | 91 | else ("" + (if (u) | |
92 | 92 | then ("reseived in " + toString(e)) | |
93 | 93 | else "")))))) | |
94 | 94 | else "cant find transaction" | |
95 | 95 | if (u) | |
96 | 96 | then if ((i > 0)) | |
97 | 97 | then [ScriptTransfer(n, k, a), StringEntry(toBase58String(c.caller.bytes), v), Burn(a, 999)] | |
98 | 98 | else [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a)] | |
99 | 99 | else [StringEntry(toBase58String(c.caller.bytes), v)] | |
100 | 100 | } | |
101 | 101 | else throw("Strict value is not equal to itself.") | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 |
github/deemru/w8io/026f985 20.45 ms ◑