tx · 8hbayCiFBFQG3P9k4SGqK51NxcuyfPv7U9WA4w9DFfXq

3Ms6oEAsTYT2dQtS8ZGVA4oZP1fhrxAk1Tx:  -0.01000000 Waves

2021.09.23 00:56 [1714833] smart account 3Ms6oEAsTYT2dQtS8ZGVA4oZP1fhrxAk1Tx > SELF 0.00000000 Waves

{ "type": 13, "id": "8hbayCiFBFQG3P9k4SGqK51NxcuyfPv7U9WA4w9DFfXq", "fee": 1000000, "feeAssetId": null, "timestamp": 1632347781264, "version": 2, "chainId": 84, "sender": "3Ms6oEAsTYT2dQtS8ZGVA4oZP1fhrxAk1Tx", "senderPublicKey": "Cm1D8kS2reexSyqiFSwmW7Bi3GoanYf2eNkZD1tCYmLi", "proofs": [ "37GChqR1iWsmEJ97tPGHcHrRpgjvVWbUoomNUPGU4gXujQGn3X9eCNfH8fVMpYCEXfuiHPHzsdLZUxngvo9ufu5Z" ], "script": "base64:AAIFAAAAAAAAAksIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmJhbGFuY2VTbGkaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaEAoCYjYSCmhpc3RvcmljSWQaFQoCYjcSD2luaXRpYWxQb3dlck5mdBoLCgJiOBIFcG93ZXIaDgoCYjkSCG5mdFBvd2VyGhUKAmMxEg9yZXdhcmRUaW1lc3RhbXAaEAoCYzISCnNhdmVSZXdhcmQaEgoCYzMSDHNhdmVXYXJwb2ludBoOCgJjNBIIbmV3UG93ZXIaEAoCYzUSCm5ld1Bvd2VyVXAaGQoCYzY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AAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADHNhdmVfcmV3YXJkXwUAAAACYTkAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAOc2F2ZV93YXJwb2ludF8FAAAAAmE5AAAAAAAAAAAABQAAAANuaWwJAAACAAAAAQIAAABnTsOjbyBmb2kgcG9zc2l2ZWwgYXRlbmRlciBhIHN1YSBzb2xpY2l0YcOnw6NvISBWZXJpZmlxdWUgc2UgcG9zc3VpIHNhbGRvIHN1ZmljaWVudGUgcGFyYSBhIHRyYW5zYcOnw6NvIQAAAACJV7GA", "height": 1714833, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8E3ti5AnJduWYafBsUNzEheobKsbPfZ4kKF9woLioNhh Next: 964EvWf31NEsi3JUo2ciQXztovwwC3snAVWMK6nCH6Yv Diff:
OldNewDifferences
7373 let newBalance = ((balanceSli + calcTotalReward) + saveReward)
7474 let newSaveReward = (saveReward + calcTotalReward)
7575 let newSaveWarpoint = (saveWarpoint + calcRequestTimestamp)
76- if (true)
77- then [DeleteEntry("List_NFT_Sky")]
78- else if (if ((action == "Buy NFT"))
79- then ((payAmount / 100000) == initialPowerNft)
76+ if (if ((action == "Buy NFT"))
77+ then ((payAmount / 100000) == initialPowerNft)
78+ else false)
79+ 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)]
80+ else if (if ((action == "Send NFT"))
81+ then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
8082 else false)
81- 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)]
82- else if (if ((action == "Send NFT"))
83- then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
83+ then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
84+ else if (if (if ((action == "Power Up"))
85+ then (nftPower != 0)
8486 else false)
85- then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
86- else if (if (if ((action == "Power Up"))
87- then (nftPower != 0)
87+ then ((payAmount / 100000) == number)
88+ else false)
89+ then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)]
90+ else if (if ((action == "Request"))
91+ then (calcTotalReward > 0)
8892 else false)
89- then ((payAmount / 100000) == number)
90- else false)
91- then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)]
92- else if (if ((action == "Request"))
93- then (calcTotalReward > 0)
94- else false)
95- then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0)]
96- else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!")
93+ then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0)]
94+ else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!")
9795 }
9896
9997
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func start (action,type,valueAction,number) = {
88 let transactionId = toBase58String(i.transactionId)
99 let currentWalletBytes = i.caller
1010 let payAmount = value(i.payments[0].amount)
1111 let currentWallet = toBase58String(i.caller.bytes)
1212 let nameNft = ((((((("nft_" + type) + "_") + take(transactionId, 10)) + "_") + currentWallet) + "_") + transactionId)
1313 let timestamp = take(toString(lastBlock.timestamp), 10)
1414 let balanceSli = match getInteger(this, ("balance_sli_" + currentWallet)) {
1515 case t: Int =>
1616 t
1717 case _ =>
1818 0
1919 }
2020 let historicId = match getInteger(this, "historicId") {
2121 case t: Int =>
2222 t
2323 case _ =>
2424 0
2525 }
2626 let initialPowerNft = match getInteger(this, ("List_NFT_" + type)) {
2727 case t: Int =>
2828 t
2929 case _ =>
3030 0
3131 }
3232 let power = match getInteger(this, ("power_" + currentWallet)) {
3333 case t: Int =>
3434 t
3535 case _ =>
3636 0
3737 }
3838 let nftPower = match getInteger(this, valueAction) {
3939 case t: Int =>
4040 t
4141 case _ =>
4242 0
4343 }
4444 let rewardTimestamp = match getInteger(this, ("reward_timestamp_" + currentWallet)) {
4545 case t: Int =>
4646 t
4747 case _ =>
4848 0
4949 }
5050 let saveReward = match getInteger(this, ("save_reward_" + currentWallet)) {
5151 case t: Int =>
5252 t
5353 case _ =>
5454 0
5555 }
5656 let saveWarpoint = match getInteger(this, ("save_warpoint_" + currentWallet)) {
5757 case t: Int =>
5858 t
5959 case _ =>
6060 0
6161 }
6262 let newPower = (power + initialPowerNft)
6363 let newPowerUp = (nftPower + number)
6464 let newPowerMorePowerUp = (number + power)
6565 let nowTimestamp = parseIntValue(timestamp)
6666 let calcRequestTimestamp = (nowTimestamp - rewardTimestamp)
6767 let calcReward24hours = if ((power > 0))
6868 then (86400 / (power / 100))
6969 else 0
7070 let calcTotalReward = if ((calcReward24hours > 0))
7171 then ((calcRequestTimestamp * 100000000) / calcReward24hours)
7272 else 0
7373 let newBalance = ((balanceSli + calcTotalReward) + saveReward)
7474 let newSaveReward = (saveReward + calcTotalReward)
7575 let newSaveWarpoint = (saveWarpoint + calcRequestTimestamp)
76- if (true)
77- then [DeleteEntry("List_NFT_Sky")]
78- else if (if ((action == "Buy NFT"))
79- then ((payAmount / 100000) == initialPowerNft)
76+ if (if ((action == "Buy NFT"))
77+ then ((payAmount / 100000) == initialPowerNft)
78+ else false)
79+ 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)]
80+ else if (if ((action == "Send NFT"))
81+ then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
8082 else false)
81- 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)]
82- else if (if ((action == "Send NFT"))
83- then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
83+ then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
84+ else if (if (if ((action == "Power Up"))
85+ then (nftPower != 0)
8486 else false)
85- then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
86- else if (if (if ((action == "Power Up"))
87- then (nftPower != 0)
87+ then ((payAmount / 100000) == number)
88+ else false)
89+ then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)]
90+ else if (if ((action == "Request"))
91+ then (calcTotalReward > 0)
8892 else false)
89- then ((payAmount / 100000) == number)
90- else false)
91- then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), newSaveReward), IntegerEntry(("save_warpoint_" + currentWallet), newSaveWarpoint)]
92- else if (if ((action == "Request"))
93- then (calcTotalReward > 0)
94- else false)
95- then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0)]
96- else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!")
93+ then [IntegerEntry(("balance_sli_" + currentWallet), newBalance), IntegerEntry(("reward_timestamp_" + currentWallet), nowTimestamp), IntegerEntry(("save_reward_" + currentWallet), 0), IntegerEntry(("save_warpoint_" + currentWallet), 0)]
94+ else throw("Não foi possivel atender a sua solicitação! Verifique se possui saldo suficiente para a transação!")
9795 }
9896
9997

github/deemru/w8io/169f3d6 
41.02 ms