tx · Hzh9ZQ6YwiFDo8YMCBBqFQWDiq9mFu9DULKChreyCSJa

3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W:  -0.01000000 Waves

2021.09.19 17:58 [1710072] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves

{ "type": 13, "id": "Hzh9ZQ6YwiFDo8YMCBBqFQWDiq9mFu9DULKChreyCSJa", "fee": 1000000, "feeAssetId": null, "timestamp": 1632063506280, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "2Rztrn2kBjJJXAmfaLWYRam4jTPwwpfFtJ7KTYLGs4YMYDdmH5fGZ9vrH3Cuuff8tYfqFiLbER9PU8A6ANhdWfxm" ], "script": "base64:AAIFAAAAAAAAAYoIAhIGCgQICAgBGgcKAmExEgFpGgwKAmEyEgZhY3Rpb24aCgoCYTMSBHR5cGUaEQoCYTQSC3ZhbHVlQWN0aW9uGgwKAmE1EgZudW1iZXIaEwoCYTYSDXRyYW5zYWN0aW9uSWQaGAoCYTcSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhOBIJcGF5QW1vdW50GhMKAmE5Eg1jdXJyZW50V2FsbGV0Gg0KAmIxEgduYW1lTmZ0Gg8KAmIyEgl0aW1lc3RhbXAaEAoCYjMSCmhpc3RvcmljSWQaDQoCYjQSByRtYXRjaDAaBwoCYjUSAXQaFQoCYjYSD2luaXRpYWxQb3dlck5mdBoLCgJiNxIFcG93ZXIaDgoCYjgSCG5mdFBvd2VyGhYKAmI5EhByZXF1ZXN0VGltZXN0YW1wGg4KAmMxEghuZXdQb3dlchoQCgJjMhIKbmV3UG93ZXJVcBoZCgJjMxITbmV3UG93ZXJNb3JlUG93ZXJVcBoSCgJjNBIMbmV3VGltZXN0YW1wAAAAAAAAAAEAAAACY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AAEFAAAAAmE0BQAAAANuaWwDAwMJAAAAAAAAAgUAAAACYTICAAAACFBvd2VyIFVwCQEAAAACIT0AAAACBQAAAAJiOAAAAAAAAAAAAAcJAAAAAAAAAgkAAGkAAAACBQAAAAJhOAAAAAAAAAGGoAUAAAACYTUHCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAJhNAUAAAACYzIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAGcG93ZXJfBQAAAAJhOQUAAAACYzMFAAAAA25pbAMJAAAAAAAAAgUAAAACYTICAAAAB1JlcXVlc3QJAAACAAAAAQkAAaQAAAABCQAAZQAAAAIFAAAAAmIyAAAAAXv+jsqoCQAAAgAAAAECAAAALUFsZ28gZGV1IGVycmFkbyEgVmVyaWZpcXVlIHN1YSBzb2xpY2l0YcOnw6NvIQAAAABK7CNk", "height": 1710072, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4UE2GqyZkUyLnvw6C7teBFQizPThhfZENqe4EhxcqMo3 Next: EhHetNkcvcMavkdpeD8ncv1qDCpZpYxPWQ7e7Q7LBSPW Diff:
OldNewDifferences
6060 else false)
6161 then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp)]
6262 else if ((action == "Request"))
63- then throw(toString((timestamp - 1632063376045)))
63+ then throw(toString((timestamp - 1632063376040)))
6464 else throw("Algo deu errado! Verifique sua solicitação!")
6565 }
6666
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 = (lastBlock.timestamp - 999)
1414 let historicId = match getInteger(this, "historicId") {
1515 case t: Int =>
1616 t
1717 case _ =>
1818 0
1919 }
2020 let initialPowerNft = match getInteger(this, ("List_NFT_" + type)) {
2121 case t: Int =>
2222 t
2323 case _ =>
2424 0
2525 }
2626 let power = match getInteger(this, ("power_" + currentWallet)) {
2727 case t: Int =>
2828 t
2929 case _ =>
3030 0
3131 }
3232 let nftPower = match getInteger(this, valueAction) {
3333 case t: Int =>
3434 t
3535 case _ =>
3636 0
3737 }
3838 let requestTimestamp = match getInteger(this, "request_timestamp") {
3939 case t: Int =>
4040 t
4141 case _ =>
4242 0
4343 }
4444 let newPower = (power + initialPowerNft)
4545 let newPowerUp = (nftPower + number)
4646 let newPowerMorePowerUp = (number + power)
4747 let newTimestamp = (timestamp + 86400)
4848 if (if ((action == "Buy NFT"))
4949 then ((payAmount / 100000) == initialPowerNft)
5050 else false)
5151 then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower), IntegerEntry(("timestamp_" + currentWallet), toInt(toBytes(take(toString(timestamp), 10))))]
5252 else if (if ((action == "Send NFT"))
5353 then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
5454 else false)
5555 then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
5656 else if (if (if ((action == "Power Up"))
5757 then (nftPower != 0)
5858 else false)
5959 then ((payAmount / 100000) == number)
6060 else false)
6161 then [IntegerEntry(valueAction, newPowerUp), IntegerEntry(("power_" + currentWallet), newPowerMorePowerUp)]
6262 else if ((action == "Request"))
63- then throw(toString((timestamp - 1632063376045)))
63+ then throw(toString((timestamp - 1632063376040)))
6464 else throw("Algo deu errado! Verifique sua solicitação!")
6565 }
6666
6767

github/deemru/w8io/026f985 
22.13 ms