tx · 12Ge9EWPQkiPJFsFfVJsuy3YdnTMveW8AqKtUhVyqV4v 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves 2021.09.21 18:08 [1712966] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{ "type": 13, "id": "12Ge9EWPQkiPJFsFfVJsuy3YdnTMveW8AqKtUhVyqV4v", "fee": 1000000, "feeAssetId": null, "timestamp": 1632236950566, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "45DU5gWJijYBFQHrE6u5X52P5aEkFUAQvBDwu283aAC5hGDx5CBJkxLsPgoTCFTRFo3XPFhp6tX6pCFNoQBrq8qa" ], "script": "base64:AAIFAAAAAAAAAksIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmJhbGFuY2VTbGkaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaEAoCYjYSCmhpc3RvcmljSWQaFQoCYjcSD2luaXRpYWxQb3dlck5mdBoLCgJiOBIFcG93ZXIaDgoCYjkSCG5mdFBvd2VyGhUKAmMxEg9yZXdhcmRUaW1lc3RhbXAaEAoCYzISCnNhdmVSZXdhcmQaEgoCYzMSDHNhdmVXYXJwb2ludBoOCgJjNBIIbmV3UG93ZXIaEAoCYzUSCm5ld1Bvd2VyVXAaGQoCYzYS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AAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAAAmEzAAAAAAAAAAABCQACWQAAAAEFAAAAAmE0BQAAAANuaWwDAwMJAAAAAAAAAgUAAAACYTICAAAACFBvd2VyIFVwCQEAAAACIT0AAAACBQAAAAJiOQAAAAAAAAAAAAcJAAAAAAAAAgkAAGkAAAACBQAAAAJhOAAAAAAAAAGGoAUAAAACYTUHCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAJhNAUAAAACYzUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAGcG93ZXJfBQAAAAJhOQUAAAACYzYFAAAAA25pbAMDCQAAAAAAAAIFAAAAAmEyAgAAAAdSZXF1ZXN0CQAAZgAAAAIFAAAAAmQxAAAAAAAAAAAABwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAAxiYWxhbmNlX3NsaV8FAAAAAmE5BQAAAAJkMgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAABFyZXdhcmRfdGltZXN0YW1wXwUAAAACYTkFAAAAAmM3BQAAAANuaWwJAAACAAAAAQIAAABnTsOjbyBmb2kgcG9zc2l2ZWwgYXRlbmRlciBhIHN1YSBzb2xpY2l0YcOnw6NvISBWZXJpZmlxdWUgc2UgcG9zc3VpIHNhbGRvIHN1ZmljaWVudGUgcGFyYSBhIHRyYW5zYcOnw6NvIQAAAADgoPlF", "height": 1712966, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5NSWewXfJReqXat9sCQEKW3hzXL4J5AvQeLGjyhC6Wue Next: C85KUP26GBjjJGCwux9FJ1LviP8QnsKLNMUHsL1modK1 Diff:
Old | New | Differences | |
---|---|---|---|
65 | 65 | } | |
66 | 66 | else 0 | |
67 | 67 | } | |
68 | - | let t = (q + p) | |
69 | - | let u = (r + e) | |
70 | - | let v = (e + q) | |
71 | - | let w = parseIntValue(k) | |
72 | - | let x = (w - s) | |
73 | - | let y = (86400 / (q / 100)) | |
74 | - | let z = ((x * 100000000) / y) | |
75 | - | let A = (l + z) | |
68 | + | let t = { | |
69 | + | let m = getInteger(this, ("save_reward_" + i)) | |
70 | + | if ($isInstanceOf(m, "Int")) | |
71 | + | then { | |
72 | + | let n = m | |
73 | + | n | |
74 | + | } | |
75 | + | else 0 | |
76 | + | } | |
77 | + | let u = { | |
78 | + | let m = getInteger(this, ("save_warpoint_" + i)) | |
79 | + | if ($isInstanceOf(m, "Int")) | |
80 | + | then { | |
81 | + | let n = m | |
82 | + | n | |
83 | + | } | |
84 | + | else 0 | |
85 | + | } | |
86 | + | let v = (q + p) | |
87 | + | let w = (r + e) | |
88 | + | let x = (e + q) | |
89 | + | let y = parseIntValue(k) | |
90 | + | let z = (y - s) | |
91 | + | let A = (86400 / (q / 100)) | |
92 | + | let B = ((z * 100000000) / A) | |
93 | + | let C = (l + B) | |
94 | + | let D = (t + B) | |
95 | + | let E = (u + z) | |
76 | 96 | if (if ((b == "Buy NFT")) | |
77 | 97 | then ((h / 100000) == p) | |
78 | 98 | else false) | |
79 | - | then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), | |
99 | + | then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), v), IntegerEntry(("reward_timestamp_" + i), y), IntegerEntry(("save_reward_" + i), D), IntegerEntry(("save_warpoint_" + i), E)] | |
80 | 100 | else if (if ((b == "Send NFT")) | |
81 | 101 | then (i == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
82 | 102 | else false) | |
86 | 106 | else false) | |
87 | 107 | then ((h / 100000) == e) | |
88 | 108 | else false) | |
89 | - | then [IntegerEntry(d, | |
109 | + | then [IntegerEntry(d, w), IntegerEntry(("power_" + i), x)] | |
90 | 110 | else if (if ((b == "Request")) | |
91 | - | then ( | |
111 | + | then (B > 0) | |
92 | 112 | else false) | |
93 | - | then [IntegerEntry(("balance_sli_" + i), | |
113 | + | then [IntegerEntry(("balance_sli_" + i), C), IntegerEntry(("reward_timestamp_" + i), y)] | |
94 | 114 | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
95 | 115 | } | |
96 | 116 |
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 | - | let t = (q + p) | |
69 | - | let u = (r + e) | |
70 | - | let v = (e + q) | |
71 | - | let w = parseIntValue(k) | |
72 | - | let x = (w - s) | |
73 | - | let y = (86400 / (q / 100)) | |
74 | - | let z = ((x * 100000000) / y) | |
75 | - | let A = (l + z) | |
68 | + | let t = { | |
69 | + | let m = getInteger(this, ("save_reward_" + i)) | |
70 | + | if ($isInstanceOf(m, "Int")) | |
71 | + | then { | |
72 | + | let n = m | |
73 | + | n | |
74 | + | } | |
75 | + | else 0 | |
76 | + | } | |
77 | + | let u = { | |
78 | + | let m = getInteger(this, ("save_warpoint_" + i)) | |
79 | + | if ($isInstanceOf(m, "Int")) | |
80 | + | then { | |
81 | + | let n = m | |
82 | + | n | |
83 | + | } | |
84 | + | else 0 | |
85 | + | } | |
86 | + | let v = (q + p) | |
87 | + | let w = (r + e) | |
88 | + | let x = (e + q) | |
89 | + | let y = parseIntValue(k) | |
90 | + | let z = (y - s) | |
91 | + | let A = (86400 / (q / 100)) | |
92 | + | let B = ((z * 100000000) / A) | |
93 | + | let C = (l + B) | |
94 | + | let D = (t + B) | |
95 | + | let E = (u + z) | |
76 | 96 | if (if ((b == "Buy NFT")) | |
77 | 97 | then ((h / 100000) == p) | |
78 | 98 | else false) | |
79 | - | then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), | |
99 | + | then [Issue(((take(c, 6) + "_") + take(f, 9)), "", 1, 0, false), IntegerEntry(j, p), IntegerEntry(("power_" + i), v), IntegerEntry(("reward_timestamp_" + i), y), IntegerEntry(("save_reward_" + i), D), IntegerEntry(("save_warpoint_" + i), E)] | |
80 | 100 | else if (if ((b == "Send NFT")) | |
81 | 101 | then (i == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
82 | 102 | else false) | |
83 | 103 | then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))] | |
84 | 104 | else if (if (if ((b == "Power Up")) | |
85 | 105 | then (r != 0) | |
86 | 106 | else false) | |
87 | 107 | then ((h / 100000) == e) | |
88 | 108 | else false) | |
89 | - | then [IntegerEntry(d, | |
109 | + | then [IntegerEntry(d, w), IntegerEntry(("power_" + i), x)] | |
90 | 110 | else if (if ((b == "Request")) | |
91 | - | then ( | |
111 | + | then (B > 0) | |
92 | 112 | else false) | |
93 | - | then [IntegerEntry(("balance_sli_" + i), | |
113 | + | then [IntegerEntry(("balance_sli_" + i), C), IntegerEntry(("reward_timestamp_" + i), y)] | |
94 | 114 | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
95 | 115 | } | |
96 | 116 | ||
97 | 117 |
github/deemru/w8io/026f985 26.44 ms ◑