tx · BKjicZnuDgfGMqZLrPuopmrWmDwfNwuWNA3pnGFGTXnW 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves 2021.09.22 04:01 [1713563] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{ "type": 13, "id": "BKjicZnuDgfGMqZLrPuopmrWmDwfNwuWNA3pnGFGTXnW", "fee": 1000000, "feeAssetId": null, "timestamp": 1632272494805, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "55p2pGVK7ae7GRNAmYhJha6e9zSZB5RQP8gXa3fWRaMBLrTxobLXHLe83Asis84LJHu1XorYNez7XVseydmMYyvA" ], "script": "base64:AAIFAAAAAAAAAksIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmJhbGFuY2VTbGkaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaEAoCYjYSCmhpc3RvcmljSWQaFQoCYjcSD2luaXRpYWxQb3dlck5mdBoLCgJiOBIFcG93ZXIaDgoCYjkSCG5mdFBvd2VyGhUKAmMxEg9yZXdhcmRUaW1lc3RhbXAaEAoCYzISCnNhdmVSZXdhcmQaEgoCYzMSDHNhdmVXYXJwb2ludBoOCgJjNBIIbmV3UG93ZXIaEAoCYzUSCm5ld1Bvd2VyVXAaGQoCYzYSE25ld1Bv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AAACCQABLAAAAAICAAAADHNhdmVfcmV3YXJkXwUAAAACYTkAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAOc2F2ZV93YXJwb2ludF8FAAAAAmE5AAAAAAAAAAAABQAAAANuaWwJAAACAAAAAQIAAABnTsOjbyBmb2kgcG9zc2l2ZWwgYXRlbmRlciBhIHN1YSBzb2xpY2l0YcOnw6NvISBWZXJpZmlxdWUgc2UgcG9zc3VpIHNhbGRvIHN1ZmljaWVudGUgcGFyYSBhIHRyYW5zYcOnw6NvIQAAAACbrj0q", "height": 1713563, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4boA3RXvQ9vqRMmBENw4JVjFspA9tKQvFUvFRYDA3Poq Next: 6C2okKqqVPwSawx3hTFBu4GWdDBo85JL8wqzbnt6p3bH Diff:
Old | New | Differences | |
---|---|---|---|
69 | 69 | let newBalance = ((balanceSli + calcTotalReward) + saveReward) | |
70 | 70 | let newSaveReward = (saveReward + calcTotalReward) | |
71 | 71 | let newSaveWarpoint = (saveWarpoint + calcRequestTimestamp) | |
72 | - | if (if ((action == "Buy NFT")) | |
73 | - | then ((payAmount / 100000) == initialPowerNft) | |
74 | - | else false) | |
75 | - | then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
76 | - | else if (if ((action == "Send NFT")) | |
77 | - | then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
72 | + | if (true) | |
73 | + | then [DeleteEntry("ListNft_Boss")] | |
74 | + | else if (if ((action == "Buy NFT")) | |
75 | + | then ((payAmount / 100000) == initialPowerNft) | |
78 | 76 | else false) | |
79 | - | then [ | |
80 | - | else if (if ( | |
81 | - | then ( | |
77 | + | then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
78 | + | else if (if ((action == "Send NFT")) | |
79 | + | then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
82 | 80 | else false) | |
83 | - | then ((payAmount / 100000) == number) | |
84 | - | else false) | |
85 | - | then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
86 | - | else if (if ((action == "Request")) | |
87 | - | then (calcTotalReward > 0) | |
81 | + | then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))] | |
82 | + | else if (if (if ((action == "Power Up")) | |
83 | + | then (nftPower != 0) | |
88 | 84 | else false) | |
89 | - | then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0), DeleteEntry("ListNft_Boss")] | |
90 | - | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
85 | + | then ((payAmount / 100000) == number) | |
86 | + | else false) | |
87 | + | then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
88 | + | else if (if ((action == "Request")) | |
89 | + | then (calcTotalReward > 0) | |
90 | + | else false) | |
91 | + | then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0)] | |
92 | + | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
91 | 93 | } | |
92 | 94 | ||
93 | 95 |
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(i) | |
7 | 7 | func start (action,type,valueAction,number) = { | |
8 | 8 | let transactionId = toBase58String(i.transactionId) | |
9 | 9 | let currentWalletBytes = i.caller | |
10 | 10 | let payAmount = value(i.payments[0].amount) | |
11 | 11 | let currentWallet = toBase58String(i.caller.bytes) | |
12 | 12 | let nameNft = ((((((("nft_" + type) + "_") + take(transactionId, 10)) + "_") + currentWallet) + "_") + transactionId) | |
13 | 13 | let timestamp = take(toString(lastBlock.timestamp), 10) | |
14 | 14 | let balanceSli = match getInteger(this, ("balance_sli_" + currentWallet)) { | |
15 | 15 | case t: Int => | |
16 | 16 | t | |
17 | 17 | case _ => | |
18 | 18 | 0 | |
19 | 19 | } | |
20 | 20 | let historicId = match getInteger(this, "historicId") { | |
21 | 21 | case t: Int => | |
22 | 22 | t | |
23 | 23 | case _ => | |
24 | 24 | 0 | |
25 | 25 | } | |
26 | 26 | let initialPowerNft = match getInteger(this, ("List_NFT_" + type)) { | |
27 | 27 | case t: Int => | |
28 | 28 | t | |
29 | 29 | case _ => | |
30 | 30 | 0 | |
31 | 31 | } | |
32 | 32 | let power = match getInteger(this, ("power_" + currentWallet)) { | |
33 | 33 | case t: Int => | |
34 | 34 | t | |
35 | 35 | case _ => | |
36 | 36 | 0 | |
37 | 37 | } | |
38 | 38 | let nftPower = match getInteger(this, valueAction) { | |
39 | 39 | case t: Int => | |
40 | 40 | t | |
41 | 41 | case _ => | |
42 | 42 | 0 | |
43 | 43 | } | |
44 | 44 | let rewardTimestamp = match getInteger(this, ("reward_timestamp_" + currentWallet)) { | |
45 | 45 | case t: Int => | |
46 | 46 | t | |
47 | 47 | case _ => | |
48 | 48 | 0 | |
49 | 49 | } | |
50 | 50 | let saveReward = match getInteger(this, ("save_reward_" + currentWallet)) { | |
51 | 51 | case t: Int => | |
52 | 52 | t | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | let saveWarpoint = match getInteger(this, ("save_warpoint_" + currentWallet)) { | |
57 | 57 | case t: Int => | |
58 | 58 | t | |
59 | 59 | case _ => | |
60 | 60 | 0 | |
61 | 61 | } | |
62 | 62 | let newPower = (power + initialPowerNft) | |
63 | 63 | let newPowerUp = (nftPower + number) | |
64 | 64 | let newPowerMorePowerUp = (number + power) | |
65 | 65 | let nowTimestamp = parseIntValue(timestamp) | |
66 | 66 | let calcRequestTimestamp = (nowTimestamp - rewardTimestamp) | |
67 | 67 | let calcReward24hours = (86400 / (power / 100)) | |
68 | 68 | let calcTotalReward = ((calcRequestTimestamp * 100000000) / calcReward24hours) | |
69 | 69 | let newBalance = ((balanceSli + calcTotalReward) + saveReward) | |
70 | 70 | let newSaveReward = (saveReward + calcTotalReward) | |
71 | 71 | let newSaveWarpoint = (saveWarpoint + calcRequestTimestamp) | |
72 | - | if (if ((action == "Buy NFT")) | |
73 | - | then ((payAmount / 100000) == initialPowerNft) | |
74 | - | else false) | |
75 | - | then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
76 | - | else if (if ((action == "Send NFT")) | |
77 | - | then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
72 | + | if (true) | |
73 | + | then [DeleteEntry("ListNft_Boss")] | |
74 | + | else if (if ((action == "Buy NFT")) | |
75 | + | then ((payAmount / 100000) == initialPowerNft) | |
78 | 76 | else false) | |
79 | - | then [ | |
80 | - | else if (if ( | |
81 | - | then ( | |
77 | + | then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
78 | + | else if (if ((action == "Send NFT")) | |
79 | + | then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
82 | 80 | else false) | |
83 | - | then ((payAmount / 100000) == number) | |
84 | - | else false) | |
85 | - | then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
86 | - | else if (if ((action == "Request")) | |
87 | - | then (calcTotalReward > 0) | |
81 | + | then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))] | |
82 | + | else if (if (if ((action == "Power Up")) | |
83 | + | then (nftPower != 0) | |
88 | 84 | else false) | |
89 | - | then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0), DeleteEntry("ListNft_Boss")] | |
90 | - | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
85 | + | then ((payAmount / 100000) == number) | |
86 | + | else false) | |
87 | + | then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)] | |
88 | + | else if (if ((action == "Request")) | |
89 | + | then (calcTotalReward > 0) | |
90 | + | else false) | |
91 | + | then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0)] | |
92 | + | else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!") | |
91 | 93 | } | |
92 | 94 | ||
93 | 95 |
github/deemru/w8io/026f985 27.13 ms ◑