tx · 85gpZfgFMmUQNQpmkjP2FaMhNDZVFvvE53GNeLzADvRL 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01000000 Waves 2021.12.11 11:45 [1829350] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "85gpZfgFMmUQNQpmkjP2FaMhNDZVFvvE53GNeLzADvRL", "fee": 1000000, "feeAssetId": null, "timestamp": 1639212349801, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "3j6iWEcz4x38yTNrzyf8ZDqaP44bP4jB7LGSZ6jHxXfuuR8FwTiQUjAHNd4kSQAUNz1ua6xBqkb3xSmzucJL63gF" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAACAAAAAAV0b2tlbgEAAAAg5zmYC5DQKkfOfYR6rLZt3/lvGLH9m+/aCHI3ec3qXmYAAAAAB2FpcmRyb3AJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVS+Xxmw1G5CNHxEd2QN+w1gvRpGRxhc54oAAAACAAAAAWkBAAAABXJlc2V0AAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADGJ1cm5pbmdzdGFnZQAAAAAAAAAAAAUAAAADbmlsAAAAAWkBAAAABGNhbGwAAAABAAAABGlkNTgEAAAAC2N1cnJlbnR0aW1lBAAAAAckbWF0Y2gwCQAD7QAAAAEFAAAABmhlaWdodAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAJQmxvY2tJbmZvBAAAAAVibG9jawUAAAAHJG1hdGNoMAgFAAAABWJsb2NrAAAACXRpbWVzdGFtcAkAAAIAAAABAgAA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AEsAAAAAgIAAAAMcmVzZWl2ZWQgaW4gCQABpAAAAAEFAAAAC2N1cnJlbnR0aW1lAgAAAAACAAAAFWNhbnQgZmluZCB0cmFuc2FjdGlvbgMFAAAACWlzcHJvb3ZlZAMJAABmAAAAAgUAAAAKYnVybmFtb3VudAAAAAAAAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAxjYWxsZXJBZHJlc3MFAAAACmRyb3BhbW91bnQFAAAABXRva2VuCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAAGcmVzdWx0CQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAFdG9rZW4AAAAAAAAAA+cFAAAAA25pbAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAtjdXJyZW50dGltZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAxjYWxsZXJBZHJlc3MFAAAACmRyb3BhbW91bnQFAAAABXRva2VuBQAAAANuaWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZyZXN1bHQFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAjpTt/w==", "height": 1829350, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2AyZ25iTsheeDdqQ3g2X6zrAY7bEAcjyCwjghGcxmAGx Next: BKiUxiX31xrvnKvU4fKkyBxwGt2PdizczEBMmjdAMHpq Diff:
Old | New | Differences | |
---|---|---|---|
71 | 71 | } | |
72 | 72 | else b | |
73 | 73 | } | |
74 | - | let t = { | |
75 | - | let f = getInteger(toBase58String(c.caller.bytes)) | |
76 | - | if ($isInstanceOf(f, "Int")) | |
77 | - | then { | |
78 | - | let j = f | |
79 | - | true | |
80 | - | } | |
81 | - | else false | |
82 | - | } | |
74 | + | let t = if ((take(valueOrElse(getStringValue(toBase58String(c.caller.bytes)), ""), 8) == "received")) | |
75 | + | then true | |
76 | + | else false | |
83 | 77 | let u = if (if (if ((r > o)) | |
84 | 78 | then true | |
85 | 79 | else (n != s)) | |
89 | 83 | else true | |
90 | 84 | let v = if (p) | |
91 | 85 | then if ((r > o)) | |
92 | - | then ("out of time range: " + toString(r)) | |
86 | + | then ("transaction is out of time range: " + toString(r)) | |
93 | 87 | else ("" + (if ((n != s)) | |
94 | - | then (((" incorrect sender: " + toString(n)) + " / ") + toString(s)) | |
88 | + | then ((("it is incorrect sender: " + toString(n)) + " / ") + toString(s)) | |
95 | 89 | else ("" + (if (t) | |
96 | - | then getStringValue( | |
90 | + | then getStringValue(toBase58String(c.caller.bytes)) | |
97 | 91 | else ("" + (if (u) | |
98 | 92 | then ("reseived in " + toString(e)) | |
99 | 93 | else "")))))) | |
100 | 94 | else "cant find transaction" | |
101 | 95 | if (u) | |
102 | 96 | then if ((i > 0)) | |
103 | - | then [ | |
97 | + | then [ScriptTransfer(n, k, a), StringEntry(toBase58String(c.caller.bytes), v), Burn(a, 999)] | |
104 | 98 | else [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a)] | |
105 | - | else [StringEntry( | |
99 | + | else [StringEntry(toBase58String(c.caller.bytes), v)] | |
106 | 100 | } | |
107 | 101 | else throw("Strict value is not equal to itself.") | |
108 | 102 | } |
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 | - | let t = { | |
75 | - | let f = getInteger(toBase58String(c.caller.bytes)) | |
76 | - | if ($isInstanceOf(f, "Int")) | |
77 | - | then { | |
78 | - | let j = f | |
79 | - | true | |
80 | - | } | |
81 | - | else false | |
82 | - | } | |
74 | + | let t = if ((take(valueOrElse(getStringValue(toBase58String(c.caller.bytes)), ""), 8) == "received")) | |
75 | + | then true | |
76 | + | else false | |
83 | 77 | let u = if (if (if ((r > o)) | |
84 | 78 | then true | |
85 | 79 | else (n != s)) | |
86 | 80 | then true | |
87 | 81 | else t) | |
88 | 82 | then false | |
89 | 83 | else true | |
90 | 84 | let v = if (p) | |
91 | 85 | then if ((r > o)) | |
92 | - | then ("out of time range: " + toString(r)) | |
86 | + | then ("transaction is out of time range: " + toString(r)) | |
93 | 87 | else ("" + (if ((n != s)) | |
94 | - | then (((" incorrect sender: " + toString(n)) + " / ") + toString(s)) | |
88 | + | then ((("it is incorrect sender: " + toString(n)) + " / ") + toString(s)) | |
95 | 89 | else ("" + (if (t) | |
96 | - | then getStringValue( | |
90 | + | then getStringValue(toBase58String(c.caller.bytes)) | |
97 | 91 | else ("" + (if (u) | |
98 | 92 | then ("reseived in " + toString(e)) | |
99 | 93 | else "")))))) | |
100 | 94 | else "cant find transaction" | |
101 | 95 | if (u) | |
102 | 96 | then if ((i > 0)) | |
103 | - | then [ | |
97 | + | then [ScriptTransfer(n, k, a), StringEntry(toBase58String(c.caller.bytes), v), Burn(a, 999)] | |
104 | 98 | else [IntegerEntry(toBase58String(c.caller.bytes), e), ScriptTransfer(n, k, a)] | |
105 | - | else [StringEntry( | |
99 | + | else [StringEntry(toBase58String(c.caller.bytes), v)] | |
106 | 100 | } | |
107 | 101 | else throw("Strict value is not equal to itself.") | |
108 | 102 | } | |
109 | 103 | ||
110 | 104 |
github/deemru/w8io/026f985 39.58 ms ◑