tx · 3cVugXbFsmefaV6GXEanYzPWutNWtGWaGBYqE3rJQ2qN 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves 2021.09.19 17:25 [1710040] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{ "type": 13, "id": "3cVugXbFsmefaV6GXEanYzPWutNWtGWaGBYqE3rJQ2qN", "fee": 1000000, "feeAssetId": null, "timestamp": 1632061521562, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "3QkUZWe4VQsVXeTQtzC1Cwn4TGAHYYRC6eWRYzRcBVeNPgCPcUNWhty8j9H22wFiGwZpVts3LjTDxibuhksPD3zW" ], "script": "base64:AAIFAAAAAAAAAYoIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmhpc3RvcmljSWQaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaFQoCYjYSD2luaXRpYWxQb3dlck5mdBoLCgJiNxIFcG93ZXIaDgoCYjgSCG5mdFBvd2VyGhYKAmI5EhByZXF1ZXN0VGltZXN0YW1wGg4KAmMxEghuZXdQb3dlchoQCgJjMhIKbmV3UG93ZXJVcBoZCgJjMxITbmV3UG93ZXJNb3JlUG93ZXJVcBoSCgJjNBIMbmV3VGltZXN0YW1wAAAAAAAAAAEAAAACYTEBAAAABXN0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AAAAIFAAAAAmEyAgAAAAhQb3dlciBVcAkBAAAAAiE9AAAAAgUAAAACYjgAAAAAAAAAAAAHCQAAAAAAAAIJAABpAAAAAgUAAAACYTgAAAAAAAABhqAFAAAAAmE1BwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAACYTQFAAAAAmMyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAABnBvd2VyXwUAAAACYTkFAAAAAmMzBQAAAANuaWwDCQAAAAAAAAIFAAAAAmEyAgAAAAdSZXF1ZXN0CQAAAgAAAAEJAAGkAAAAAQkABLEAAAABCQABmwAAAAEJAAEvAAAAAgkAAaQAAAABBQAAAAJiMgAAAAAAAAAACgkAAAIAAAABAgAAAC1BbGdvIGRldSBlcnJhZG8hIFZlcmlmaXF1ZSBzdWEgc29saWNpdGHDp8OjbyEAAAAA4DwiLg==", "height": 1710040, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5nViZxbacUnWCB27PuH2qgpXQ8LArYTkcHhaJaEPFLJN Next: 6yXBYNUukz9CECoGcGxhCZYLrN9LmZxAmvCnQEapxnFE Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | let h = value(a.payments[0].amount) | |
11 | 11 | let i = toBase58String(a.caller.bytes) | |
12 | 12 | let j = ((((((("nft_" + c) + "_") + take(f, 10)) + "_") + i) + "_") + f) | |
13 | - | let k = | |
13 | + | let k = lastBlock.timestamp | |
14 | 14 | let l = { | |
15 | 15 | let m = getInteger(this, "historicId") | |
16 | 16 | if ($isInstanceOf(m, "Int")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func start (b,c,d,e) = { | |
8 | 8 | let f = toBase58String(a.transactionId) | |
9 | 9 | let g = a.caller | |
10 | 10 | let h = value(a.payments[0].amount) | |
11 | 11 | let i = toBase58String(a.caller.bytes) | |
12 | 12 | let j = ((((((("nft_" + c) + "_") + take(f, 10)) + "_") + i) + "_") + f) | |
13 | - | let k = | |
13 | + | let k = lastBlock.timestamp | |
14 | 14 | let l = { | |
15 | 15 | let m = getInteger(this, "historicId") | |
16 | 16 | if ($isInstanceOf(m, "Int")) | |
17 | 17 | then { | |
18 | 18 | let n = m | |
19 | 19 | n | |
20 | 20 | } | |
21 | 21 | else 0 | |
22 | 22 | } | |
23 | 23 | let o = { | |
24 | 24 | let m = getInteger(this, ("List_NFT_" + c)) | |
25 | 25 | if ($isInstanceOf(m, "Int")) | |
26 | 26 | then { | |
27 | 27 | let n = m | |
28 | 28 | n | |
29 | 29 | } | |
30 | 30 | else 0 | |
31 | 31 | } | |
32 | 32 | let p = { | |
33 | 33 | let m = getInteger(this, ("power_" + i)) | |
34 | 34 | if ($isInstanceOf(m, "Int")) | |
35 | 35 | then { | |
36 | 36 | let n = m | |
37 | 37 | n | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | let q = { | |
42 | 42 | let m = getInteger(this, d) | |
43 | 43 | if ($isInstanceOf(m, "Int")) | |
44 | 44 | then { | |
45 | 45 | let n = m | |
46 | 46 | n | |
47 | 47 | } | |
48 | 48 | else 0 | |
49 | 49 | } | |
50 | 50 | let r = { | |
51 | 51 | let m = getInteger(this, "request_timestamp") | |
52 | 52 | if ($isInstanceOf(m, "Int")) | |
53 | 53 | then { | |
54 | 54 | let n = m | |
55 | 55 | n | |
56 | 56 | } | |
57 | 57 | else 0 | |
58 | 58 | } | |
59 | 59 | let s = (p + o) | |
60 | 60 | let t = (q + e) | |
61 | 61 | let u = (e + p) | |
62 | 62 | let v = (k + 86400) | |
63 | 63 | if (if ((b == "Buy NFT")) | |
64 | 64 | then ((h / 100000) == o) | |
65 | 65 | else false) | |
66 | 66 | then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, o), IntegerEntry(("power_" + i), s), IntegerEntry(("timestamp_" + i), toInt(toBytes(take(toString(k), 10))))] | |
67 | 67 | else if (if ((b == "Send NFT")) | |
68 | 68 | then (i == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
69 | 69 | else false) | |
70 | 70 | then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))] | |
71 | 71 | else if (if (if ((b == "Power Up")) | |
72 | 72 | then (q != 0) | |
73 | 73 | else false) | |
74 | 74 | then ((h / 100000) == e) | |
75 | 75 | else false) | |
76 | 76 | then [IntegerEntry(d, t), IntegerEntry(("power_" + i), u)] | |
77 | 77 | else if ((b == "Request")) | |
78 | 78 | then throw(toString(toInt(toBytes(take(toString(k), 10))))) | |
79 | 79 | else throw("Algo deu errado! Verifique sua solicitação!") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 |
github/deemru/w8io/026f985 24.18 ms ◑