tx · GQkSzkfpfKuDezTo4a9ZWEw2Y963pkrp7nMJz1F8svDG
3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR: -0.01000000 Waves
2021.12.22 22:01 [1845860] smart account 3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR > SELF 0.00000000 Waves
{
"type": 13,
"id": "GQkSzkfpfKuDezTo4a9ZWEw2Y963pkrp7nMJz1F8svDG",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1640199670340,
"version": 2,
"chainId": 84,
"sender": "3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR",
"senderPublicKey": "JBFUVQjjvtMqXZeeeJLQyEP8RPmvMWbZHyCfGFnrmWJZ",
"proofs": [
"3VvP6WZCuKCtk7oYKj26aSngjsnVe6kVWk4pt9ZRvDUvKmQgrFSTQF75zTfUjTJEtA5YsTDC2zMJiMLJWMfVc8CN"
],
"script": "base64:AAIFAAAAAAAAAgcIAhIFCgMICAgaFAoBQRIPY2FsY1RvdGFsUmV3YXJkGg8KAUISCm5ld0JhbGFuY2UaEgoBQxINbmV3U2F2ZVJld2FyZBoGCgFhEgFpGgsKAWISBmFjdGlvbhoJCgFjEgR0eXBlGhAKAWQSC3ZhbHVlQWN0aW9uGhIKAWUSDXRyYW5zYWN0aW9uSWQaFwoBZhISY3VycmVudFdhbGxldEJ5dGVzGg4KAWcSCXBheUFtb3VudBoSCgFoEg1jdXJyZW50V2FsbGV0GgwKAWkSB25hbWVOZnQaDgoBahIJdGltZXN0YW1wGhAKAWsSC2V4YW5CYWxhbmNlGgwKAWwSByRtYXRjaDAaBgoBbRIBdBoMCgFuEgdiYWxhbmNlGg8KAW8SCmhpc3RvcmljSWQaFAoBcBIPaW5pdGlhbFBvd2VyTmZ0GgoKAXESBXBvd2VyGg0KAXISCG5mdFBvd2VyGhQKAXMSD3Jld2FyZFRpbWVzdGFtcBoPCgF0EgpzYXZlUmV3YXJkGhUKAXUSEG5ld1Rva2VuUHVyY2hhc2UaFQoBdh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WgCAAAAIzNON1ltMVdLM1phRnA3VmZqdno2S0ZSR0Y2QXhzQVhtNzZXBwkAAAAAAAACBQAAAAFnAAAAAAAAD0JABwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAABYwAAAAAAAAAAAQkAAlkAAAABBQAAAAFkBQAAAANuaWwDAwMJAAAAAAAAAgUAAAABYgIAAAAHUmVxdWVzdAkAAGYAAAACBQAAAAFBAAAAAAAAAAAABwkAAAAAAAACBQAAAAFnAAAAAAAAD0JABwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAA1iYWxhbmNlX2V4YW5fBQAAAAFoBQAAAAFCCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEXJld2FyZF90aW1lc3RhbXBfBQAAAAFoBQAAAAF4CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADHNhdmVfcmV3YXJkXwUAAAABaAAAAAAAAAAAAAUAAAADbmlsCQAAAgAAAAECAAAAXldlIHdlcmUgdW5hYmxlIHRvIGZ1bGZpbGwgeW91ciByZXF1ZXN0ISBNYWtlIHN1cmUgeW91IGhhdmUgZW5vdWdoIGJhbGFuY2UgZm9yIHRoZSB0cmFuc2FjdGlvbiEAAAAAR2JjIA==",
"height": 1845860,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 42yeq2QMRqJWxt1Y73nTeJ5C3pzMa9ATEvkPtPetJoJg
Next: 5b21zdMqf2sbpgBmpPoMFDEvssfCvG675sBYAQP8mt1n
Diff:
Old | New | | Differences |
---|
12 | 12 | | let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e) |
---|
13 | 13 | | let j = take(toString(lastBlock.timestamp), 10) |
---|
14 | 14 | | let k = { |
---|
| 15 | + | let l = getInteger(this, ("exan_balance_" + h)) |
---|
| 16 | + | if ($isInstanceOf(l, "Int")) |
---|
| 17 | + | then { |
---|
| 18 | + | let m = l |
---|
| 19 | + | m |
---|
| 20 | + | } |
---|
| 21 | + | else 0 |
---|
| 22 | + | } |
---|
| 23 | + | let n = { |
---|
15 | 24 | | let l = getInteger(this, ("balance_exan_" + h)) |
---|
16 | 25 | | if ($isInstanceOf(l, "Int")) |
---|
17 | 26 | | then { |
---|
|
20 | 29 | | } |
---|
21 | 30 | | else 0 |
---|
22 | 31 | | } |
---|
23 | | - | let n = { |
---|
| 32 | + | let o = { |
---|
24 | 33 | | let l = getInteger(this, "historicId") |
---|
25 | 34 | | if ($isInstanceOf(l, "Int")) |
---|
26 | 35 | | then { |
---|
|
29 | 38 | | } |
---|
30 | 39 | | else 0 |
---|
31 | 40 | | } |
---|
32 | | - | let o = { |
---|
| 41 | + | let p = { |
---|
33 | 42 | | let l = getInteger(this, ("List_NFT_" + c)) |
---|
34 | 43 | | if ($isInstanceOf(l, "Int")) |
---|
35 | 44 | | then { |
---|
|
38 | 47 | | } |
---|
39 | 48 | | else 0 |
---|
40 | 49 | | } |
---|
41 | | - | let p = { |
---|
| 50 | + | let q = { |
---|
42 | 51 | | let l = getInteger(this, ("power_" + h)) |
---|
43 | 52 | | if ($isInstanceOf(l, "Int")) |
---|
44 | 53 | | then { |
---|
|
47 | 56 | | } |
---|
48 | 57 | | else 0 |
---|
49 | 58 | | } |
---|
50 | | - | let q = { |
---|
| 59 | + | let r = { |
---|
51 | 60 | | let l = getInteger(this, d) |
---|
52 | 61 | | if ($isInstanceOf(l, "Int")) |
---|
53 | 62 | | then { |
---|
|
56 | 65 | | } |
---|
57 | 66 | | else 0 |
---|
58 | 67 | | } |
---|
59 | | - | let r = { |
---|
| 68 | + | let s = { |
---|
60 | 69 | | let l = getInteger(this, ("reward_timestamp_" + h)) |
---|
61 | 70 | | if ($isInstanceOf(l, "Int")) |
---|
62 | 71 | | then { |
---|
|
65 | 74 | | } |
---|
66 | 75 | | else 0 |
---|
67 | 76 | | } |
---|
68 | | - | let s = { |
---|
| 77 | + | let t = { |
---|
69 | 78 | | let l = getInteger(this, ("save_reward_" + h)) |
---|
70 | 79 | | if ($isInstanceOf(l, "Int")) |
---|
71 | 80 | | then { |
---|
|
74 | 83 | | } |
---|
75 | 84 | | else 0 |
---|
76 | 85 | | } |
---|
77 | | - | let t = (a.payments[0].amount * 10000) |
---|
78 | | - | let u = (p + o) |
---|
79 | | - | let v = parseIntValue(j) |
---|
80 | | - | let w = (v - r) |
---|
81 | | - | let x = if ((p > 0)) |
---|
82 | | - | then (86400 / (p / 100)) |
---|
| 86 | + | let u = (a.payments[0].amount * 10000) |
---|
| 87 | + | let v = (k + u) |
---|
| 88 | + | let w = (q + p) |
---|
| 89 | + | let x = parseIntValue(j) |
---|
| 90 | + | let y = (x - s) |
---|
| 91 | + | let z = if ((q > 0)) |
---|
| 92 | + | then (86400 / (q / 100)) |
---|
83 | 93 | | else 0 |
---|
84 | | - | let y = if ((x > 0)) |
---|
85 | | - | then ((w * 100000000) / x) |
---|
| 94 | + | let A = if ((z > 0)) |
---|
| 95 | + | then ((y * 100000000) / z) |
---|
86 | 96 | | else 0 |
---|
87 | | - | let z = ((k + y) + s) |
---|
88 | | - | let A = if ((p == 0)) |
---|
| 97 | + | let B = ((n + A) + t) |
---|
| 98 | + | let C = if ((q == 0)) |
---|
89 | 99 | | then 0 |
---|
90 | | - | else (s + y) |
---|
| 100 | + | else (t + A) |
---|
91 | 101 | | if ((b == "Buy Tokens")) |
---|
92 | | - | then [IntegerEntry(((("token_balance_" + h) + "_") + e), t)] |
---|
| 102 | + | then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)] |
---|
93 | 103 | | else if (if ((b == "Buy NFT")) |
---|
94 | | - | then ((g / 100000) == o) |
---|
| 104 | + | then ((g / 100000) == p) |
---|
95 | 105 | | else false) |
---|
96 | | - | then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, o), IntegerEntry(("power_" + h), u), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), A)] |
---|
| 106 | + | then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)] |
---|
97 | 107 | | else if (if (if ((b == "Send NFT")) |
---|
98 | 108 | | then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") |
---|
99 | 109 | | else false) |
---|
|
101 | 111 | | else false) |
---|
102 | 112 | | then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))] |
---|
103 | 113 | | else if (if (if ((b == "Request")) |
---|
104 | | - | then (y > 0) |
---|
| 114 | + | then (A > 0) |
---|
105 | 115 | | else false) |
---|
106 | 116 | | then (g == 1000000) |
---|
107 | 117 | | else false) |
---|
108 | | - | then [IntegerEntry(("balance_exan_" + h), z), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), 0)] |
---|
| 118 | + | then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)] |
---|
109 | 119 | | else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!") |
---|
110 | 120 | | } |
---|
111 | 121 | | |
---|
Full:
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) = { |
---|
8 | 8 | | let e = toBase58String(a.transactionId) |
---|
9 | 9 | | let f = a.caller |
---|
10 | 10 | | let g = value(a.payments[0].amount) |
---|
11 | 11 | | let h = toBase58String(a.caller.bytes) |
---|
12 | 12 | | let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e) |
---|
13 | 13 | | let j = take(toString(lastBlock.timestamp), 10) |
---|
14 | 14 | | let k = { |
---|
| 15 | + | let l = getInteger(this, ("exan_balance_" + h)) |
---|
| 16 | + | if ($isInstanceOf(l, "Int")) |
---|
| 17 | + | then { |
---|
| 18 | + | let m = l |
---|
| 19 | + | m |
---|
| 20 | + | } |
---|
| 21 | + | else 0 |
---|
| 22 | + | } |
---|
| 23 | + | let n = { |
---|
15 | 24 | | let l = getInteger(this, ("balance_exan_" + h)) |
---|
16 | 25 | | if ($isInstanceOf(l, "Int")) |
---|
17 | 26 | | then { |
---|
18 | 27 | | let m = l |
---|
19 | 28 | | m |
---|
20 | 29 | | } |
---|
21 | 30 | | else 0 |
---|
22 | 31 | | } |
---|
23 | | - | let n = { |
---|
| 32 | + | let o = { |
---|
24 | 33 | | let l = getInteger(this, "historicId") |
---|
25 | 34 | | if ($isInstanceOf(l, "Int")) |
---|
26 | 35 | | then { |
---|
27 | 36 | | let m = l |
---|
28 | 37 | | m |
---|
29 | 38 | | } |
---|
30 | 39 | | else 0 |
---|
31 | 40 | | } |
---|
32 | | - | let o = { |
---|
| 41 | + | let p = { |
---|
33 | 42 | | let l = getInteger(this, ("List_NFT_" + c)) |
---|
34 | 43 | | if ($isInstanceOf(l, "Int")) |
---|
35 | 44 | | then { |
---|
36 | 45 | | let m = l |
---|
37 | 46 | | m |
---|
38 | 47 | | } |
---|
39 | 48 | | else 0 |
---|
40 | 49 | | } |
---|
41 | | - | let p = { |
---|
| 50 | + | let q = { |
---|
42 | 51 | | let l = getInteger(this, ("power_" + h)) |
---|
43 | 52 | | if ($isInstanceOf(l, "Int")) |
---|
44 | 53 | | then { |
---|
45 | 54 | | let m = l |
---|
46 | 55 | | m |
---|
47 | 56 | | } |
---|
48 | 57 | | else 0 |
---|
49 | 58 | | } |
---|
50 | | - | let q = { |
---|
| 59 | + | let r = { |
---|
51 | 60 | | let l = getInteger(this, d) |
---|
52 | 61 | | if ($isInstanceOf(l, "Int")) |
---|
53 | 62 | | then { |
---|
54 | 63 | | let m = l |
---|
55 | 64 | | m |
---|
56 | 65 | | } |
---|
57 | 66 | | else 0 |
---|
58 | 67 | | } |
---|
59 | | - | let r = { |
---|
| 68 | + | let s = { |
---|
60 | 69 | | let l = getInteger(this, ("reward_timestamp_" + h)) |
---|
61 | 70 | | if ($isInstanceOf(l, "Int")) |
---|
62 | 71 | | then { |
---|
63 | 72 | | let m = l |
---|
64 | 73 | | m |
---|
65 | 74 | | } |
---|
66 | 75 | | else 0 |
---|
67 | 76 | | } |
---|
68 | | - | let s = { |
---|
| 77 | + | let t = { |
---|
69 | 78 | | let l = getInteger(this, ("save_reward_" + h)) |
---|
70 | 79 | | if ($isInstanceOf(l, "Int")) |
---|
71 | 80 | | then { |
---|
72 | 81 | | let m = l |
---|
73 | 82 | | m |
---|
74 | 83 | | } |
---|
75 | 84 | | else 0 |
---|
76 | 85 | | } |
---|
77 | | - | let t = (a.payments[0].amount * 10000) |
---|
78 | | - | let u = (p + o) |
---|
79 | | - | let v = parseIntValue(j) |
---|
80 | | - | let w = (v - r) |
---|
81 | | - | let x = if ((p > 0)) |
---|
82 | | - | then (86400 / (p / 100)) |
---|
| 86 | + | let u = (a.payments[0].amount * 10000) |
---|
| 87 | + | let v = (k + u) |
---|
| 88 | + | let w = (q + p) |
---|
| 89 | + | let x = parseIntValue(j) |
---|
| 90 | + | let y = (x - s) |
---|
| 91 | + | let z = if ((q > 0)) |
---|
| 92 | + | then (86400 / (q / 100)) |
---|
83 | 93 | | else 0 |
---|
84 | | - | let y = if ((x > 0)) |
---|
85 | | - | then ((w * 100000000) / x) |
---|
| 94 | + | let A = if ((z > 0)) |
---|
| 95 | + | then ((y * 100000000) / z) |
---|
86 | 96 | | else 0 |
---|
87 | | - | let z = ((k + y) + s) |
---|
88 | | - | let A = if ((p == 0)) |
---|
| 97 | + | let B = ((n + A) + t) |
---|
| 98 | + | let C = if ((q == 0)) |
---|
89 | 99 | | then 0 |
---|
90 | | - | else (s + y) |
---|
| 100 | + | else (t + A) |
---|
91 | 101 | | if ((b == "Buy Tokens")) |
---|
92 | | - | then [IntegerEntry(((("token_balance_" + h) + "_") + e), t)] |
---|
| 102 | + | then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)] |
---|
93 | 103 | | else if (if ((b == "Buy NFT")) |
---|
94 | | - | then ((g / 100000) == o) |
---|
| 104 | + | then ((g / 100000) == p) |
---|
95 | 105 | | else false) |
---|
96 | | - | then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, o), IntegerEntry(("power_" + h), u), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), A)] |
---|
| 106 | + | then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)] |
---|
97 | 107 | | else if (if (if ((b == "Send NFT")) |
---|
98 | 108 | | then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") |
---|
99 | 109 | | else false) |
---|
100 | 110 | | then (g == 1000000) |
---|
101 | 111 | | else false) |
---|
102 | 112 | | then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))] |
---|
103 | 113 | | else if (if (if ((b == "Request")) |
---|
104 | | - | then (y > 0) |
---|
| 114 | + | then (A > 0) |
---|
105 | 115 | | else false) |
---|
106 | 116 | | then (g == 1000000) |
---|
107 | 117 | | else false) |
---|
108 | | - | then [IntegerEntry(("balance_exan_" + h), z), IntegerEntry(("reward_timestamp_" + h), v), IntegerEntry(("save_reward_" + h), 0)] |
---|
| 118 | + | then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)] |
---|
109 | 119 | | else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!") |
---|
110 | 120 | | } |
---|
111 | 121 | | |
---|
112 | 122 | | |
---|