tx · hW5NGJqommpzcKw9eKko9R3HuwNHZzoqzDrqV7g7JMp

3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W:  -0.01000000 Waves

2021.09.18 19:07 [1708714] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves

{ "type": 13, "id": "hW5NGJqommpzcKw9eKko9R3HuwNHZzoqzDrqV7g7JMp", "fee": 1000000, "feeAssetId": null, "timestamp": 1631981239691, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "25XU77jmQThs3oE7wiTX5FuTfxqeJpLmmkBXAByEb5HdN6W6kUT3yraCY9EozFJbYnyzXeEGvWyH3KMQpCUiAnAD" ], "script": "base64:AAIFAAAAAAAAAQEIAhIFCgMICAgaBwoCYTESAWkaDAoCYTISBmFjdGlvbhoKCgJhMxIEdHlwZRoRCgJhNBILdmFsdWVBY3Rpb24aEwoCYTUSDXRyYW5zYWN0aW9uSWQaGAoCYTYSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhNxIJcGF5QW1vdW50GhMKAmE4Eg1jdXJyZW50V2FsbGV0Gg0KAmE5EgduYW1lTmZ0GhAKAmIxEgpoaXN0b3JpY0lkGg0KAmIyEgckbWF0Y2gwGgcKAmIzEgF0GhUKAmI0Eg9pbml0aWFsUG93ZXJOZnQaCwoCYjUSBXBvd2VyGg4KAmI2EghuZXdQb3dlcgAAAAAAAAABAAAAAmExAQAAAAVzdGFydAAAAAMAAAACYTIAAAACYTMAAAACYTQEAAAAAmE1CQACWAAAAAEIBQAAAAJhMQAAAA10cmFuc2FjdGlvbklkBAAAAAJhNggFAAAAAmExAAAABmNhbGxlcgQAAAACYTcJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAAJhMQAAAAhwYXltZW50cwAAAAAAA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cl8FAAAAAmE4BQAAAAJiNgUAAAADbmlsAwMJAAAAAAAAAgUAAAACYTICAAAACFNlbmQgTkZUCQAAAAAAAAIFAAAAAmE4AgAAACMzTjdZbTFXSzNaYUZwN1ZmanZ6NktGUkdGNkF4c0FYbTc2VwcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAAAmEzAAAAAAAAAAABCQACWQAAAAEFAAAAAmE0BQAAAANuaWwJAAACAAAAAQIAAAAtQWxnbyBkZXUgZXJyYWRvISBWZXJpZmlxdWUgc3VhIHNvbGljaXRhw6fDo28hAAAAABykW44=", "height": 1708714, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7qDM7wP9mPK4cyHZAwrKbAygvyy7MVcsXgY2wjgwXPS7 Next: A4Ksn7CLQ63cajTkFDzQZB41KasKtLfMwfhEnN2ajtRe Diff:
OldNewDifferences
3636 else if (if ((action == "Send NFT"))
3737 then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
3838 else false)
39- then [ScriptTransfer(Address(fromBase58String(type)), 1, toBytes(valueAction))]
39+ then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
4040 else throw("Algo deu errado! Verifique sua solicitação!")
4141 }
4242
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) = {
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 historicId = match getInteger(this, "historicId") {
1414 case t: Int =>
1515 t
1616 case _ =>
1717 0
1818 }
1919 let initialPowerNft = match getInteger(this, ("List_NFT_" + type)) {
2020 case t: Int =>
2121 t
2222 case _ =>
2323 0
2424 }
2525 let power = match getInteger(this, ("power_" + currentWallet)) {
2626 case t: Int =>
2727 t
2828 case _ =>
2929 0
3030 }
3131 let newPower = (power + initialPowerNft)
3232 if (if ((action == "Buy NFT"))
3333 then ((payAmount / 100000) == initialPowerNft)
3434 else false)
3535 then [Issue(((take(type, 6) + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft), IntegerEntry(("power_" + currentWallet), newPower)]
3636 else if (if ((action == "Send NFT"))
3737 then (currentWallet == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
3838 else false)
39- then [ScriptTransfer(Address(fromBase58String(type)), 1, toBytes(valueAction))]
39+ then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
4040 else throw("Algo deu errado! Verifique sua solicitação!")
4141 }
4242
4343

github/deemru/w8io/873ac7e 
20.00 ms