tx · 7KoAtZCHHNbLjesFVTNtpyg1rcM8TDSXtEc1p6enmtca 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves 2021.09.21 02:35 [1712059] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{ "type": 13, "id": "7KoAtZCHHNbLjesFVTNtpyg1rcM8TDSXtEc1p6enmtca", "fee": 1000000, "feeAssetId": null, "timestamp": 1632180966811, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "4x8c438nyMtdvza69Muz3UrEpSCopMF7EUs2ABZzfTJT2ttTsAv5qUNRpEaBtqC1qR5TXRPtmnZmyRdSdXcQfALy" ], "script": "base64:AAIFAAAAAAAAAfkIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmJhbGFuY2VTbGkaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaEAoCYjYSCmhpc3RvcmljSWQaFQoCYjcSD2luaXRpYWxQb3dlck5mdBoLCgJiOBIFcG93ZXIaDgoCYjkSCG5mdFBvd2VyGhUKAmMxEg9yZXdhcmRUaW1lc3RhbXAaDgoCYzISCG5ld1Bvd2VyGhAKAmMzEgpuZXdQb3dlclVwGhkKAmM0EhNuZXdQb3dlck1vcmVQb3dlclVwGhIKAmM1Egxub3dUaW1lc3RhbXAaGgo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AAAAQIAAABnTsOjbyBmb2kgcG9zc2l2ZWwgYXRlbmRlciBhIHN1YSBzb2xpY2l0YcOnw6NvISBWZXJpZmlxdWUgc2UgcG9zc3VpIHNhbGRvIHN1ZmljaWVudGUgcGFyYSBhIHRyYW5zYcOnw6NvIQAAAADdm+P2", "height": 1712059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9mXqgSHmu8uX4zKSjypSwfLYtJTGvgmvMzHmr8j4UaNc Next: 7EP4g26uD6KRji195TohVgC5ihDN27wGHLtFhEMtn2AB Diff:
Old | New | Differences | |
---|---|---|---|
90 | 90 | else if (if ((b == "Request")) | |
91 | 91 | then (z > 0) | |
92 | 92 | else false) | |
93 | - | then [IntegerEntry(("balance_sli_" + i), A), IntegerEntry(("reward_timestamp_" + i), | |
93 | + | then [IntegerEntry(("balance_sli_" + i), A), IntegerEntry(("reward_timestamp_" + i), w)] | |
94 | 94 | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
95 | 95 | } | |
96 | 96 |
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 | 13 | let k = take(toString(lastBlock.timestamp), 10) | |
14 | 14 | let l = { | |
15 | 15 | let m = getInteger(this, ("balance_sli_" + i)) | |
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, "historicId") | |
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, ("List_NFT_" + c)) | |
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, ("power_" + i)) | |
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, d) | |
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 = { | |
60 | 60 | let m = getInteger(this, ("reward_timestamp_" + i)) | |
61 | 61 | if ($isInstanceOf(m, "Int")) | |
62 | 62 | then { | |
63 | 63 | let n = m | |
64 | 64 | n | |
65 | 65 | } | |
66 | 66 | else 0 | |
67 | 67 | } | |
68 | 68 | let t = (q + p) | |
69 | 69 | let u = (r + e) | |
70 | 70 | let v = (e + q) | |
71 | 71 | let w = parseIntValue(k) | |
72 | 72 | let x = (w - s) | |
73 | 73 | let y = (86400 / (q / 100)) | |
74 | 74 | let z = ((x * 100000000) / y) | |
75 | 75 | let A = (l + z) | |
76 | 76 | if (if ((b == "Buy NFT")) | |
77 | 77 | then ((h / 100000) == p) | |
78 | 78 | else false) | |
79 | 79 | then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), t), IntegerEntry(("reward_timestamp_" + i), w)] | |
80 | 80 | else if (if ((b == "Send NFT")) | |
81 | 81 | then (i == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
82 | 82 | else false) | |
83 | 83 | then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))] | |
84 | 84 | else if (if (if ((b == "Power Up")) | |
85 | 85 | then (r != 0) | |
86 | 86 | else false) | |
87 | 87 | then ((h / 100000) == e) | |
88 | 88 | else false) | |
89 | 89 | then [IntegerEntry(d, u), IntegerEntry(("power_" + i), v)] | |
90 | 90 | else if (if ((b == "Request")) | |
91 | 91 | then (z > 0) | |
92 | 92 | else false) | |
93 | - | then [IntegerEntry(("balance_sli_" + i), A), IntegerEntry(("reward_timestamp_" + i), | |
93 | + | then [IntegerEntry(("balance_sli_" + i), A), IntegerEntry(("reward_timestamp_" + i), w)] | |
94 | 94 | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 |
github/deemru/w8io/026f985 22.51 ms ◑