tx · G5qB2yXbnR7ZTgevapKu3eNYdGnphfZzafN9W3HzjXK3

3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W:  -0.01000000 Waves

2021.09.16 05:59 [1705029] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves

{ "type": 13, "id": "G5qB2yXbnR7ZTgevapKu3eNYdGnphfZzafN9W3HzjXK3", "fee": 1000000, "feeAssetId": null, "timestamp": 1631761192593, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "HyPiV9oUwPD43KL3aA34VRdfFjfrHFQAzC3uEvcbaYkpeFTWg3pZgQKKgBnHaQ9vjcqeZHJSxb2EgSp3RPbFTHh" ], "script": "base64:AAIFAAAAAAAAAN4IAhIFCgMICAgaBwoCYTESAWkaDAoCYTISBmFjdGlvbhoKCgJhMxIEdHlwZRoRCgJhNBILdmFsdWVBY3Rpb24aEwoCYTUSDXRyYW5zYWN0aW9uSWQaEAoCYTYSCmN1cnJlbnRLZXkaDwoCYTcSCXBheUFtb3VudBoVCgJhOBIPY3VycmVudEtleUJ5dGVzGg0KAmE5EgduYW1lTmZ0GhAKAmIxEgpoaXN0b3JpY0lkGg0KAmIyEgckbWF0Y2gwGgcKAmIzEgF0GhUKAmI0Eg9pbml0aWFsUG93ZXJOZnQAAAAAAAAAAQAAAAJhMQEAAAAFc3RhcnQAAAADAAAAAmEyAAAAAmEzAAAAAmE0BAAAAAJhNQkAAlgAAAABCAUAAAACYTEAAAANdHJhbnNhY3Rpb25JZAQAAAACYTYIBQAAAAJhMQAAAAZjYWxsZXIEAAAAAmE3CQEAAAAFdmFsdWUAAAABCAkAAZEAAAACCAUAAAACYTEAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAJhOAkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAEbmZ0XwUAAAACYTMCAAAAAV8JAAEvAAAAAgUAAAACYTUAAAAAAAAAAAoCAAAAAV8FAAAAAmE4AgAAAAFfBQAAAAJhNQQAAAACYjEEAAAAAmIyCQAEGgAAAAIFAAAABHRoaXMCAAAACmhpc3RvcmljSWQDCQAAAQAAAAIFAAAAAmIyAgAAAANJbnQEAAAAAmIzBQAAAAJiMgUAAAACYjMAAAAAAAAAAAAEAAAAAmI0BAAAAAJiMgkABBoAAAACBQAAAAR0aGlzBQAAAAJhMwMJAAABAAAAAgUAAAACYjICAAAAA0ludAQAAAACYjMFAAAAAmIyBQAAAAJiMwAAAAAAAAAAZAMJAAAAAAAAAgUAAAACYTICAAAAB0J1eSBORlQJAARMAAAAAgkABEIAAAAFCQABLAAAAAIJAAEsAAAAAgUAAAACYTMCAAAAAV8JAAEvAAAAAgUAAAACYTUAAAAAAAAAAAkCAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAAmE5BQAAAAJiNAUAAAADbmlsAwMJAAAAAAAAAgUAAAACYTICAAAACFNlbmQgTkZUCQAAAAAAAAIFAAAAAmE4AgAAACMzTjdZbTFXSzNaYUZwN1ZmanZ6NktGUkdGNkF4c0FYbTc2VwcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAAAmEzAAAAAAAAAAABCQACWQAAAAEFAAAAAmE0BQAAAANuaWwJAAACAAAAAQIAAAAtQWxnbyBkZXUgZXJyYWRvISBWZXJpZmlxdWUgc3VhIHNvbGljaXRhw6fDo28hAAAAADJfx30=", "height": 1705029, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4vQio1DchHgUtyDhTGAHRj5uBWKKcBtQ2fJ6rx6T2g4K Next: 87HBxcXXaK3M6AtQwLAPB3G4fUzrJhSoRvdgGmUu4UEV Diff:
OldNewDifferences
99 let currentKey = i.caller
1010 let payAmount = value(i.payments[0].amount)
1111 let currentKeyBytes = toBase58String(i.caller.bytes)
12- let nameNft = ((((((type + "_") + take(transactionId, 10)) + "_") + currentKeyBytes) + "_") + transactionId)
12+ let nameNft = ((((((("nft_" + type) + "_") + take(transactionId, 10)) + "_") + currentKeyBytes) + "_") + transactionId)
1313 let historicId = match getInteger(this, "historicId") {
1414 case t: Int =>
1515 t
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 currentKey = i.caller
1010 let payAmount = value(i.payments[0].amount)
1111 let currentKeyBytes = toBase58String(i.caller.bytes)
12- let nameNft = ((((((type + "_") + take(transactionId, 10)) + "_") + currentKeyBytes) + "_") + transactionId)
12+ let nameNft = ((((((("nft_" + type) + "_") + take(transactionId, 10)) + "_") + currentKeyBytes) + "_") + 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, type) {
2020 case t: Int =>
2121 t
2222 case _ =>
2323 100
2424 }
2525 if ((action == "Buy NFT"))
2626 then [Issue(((type + "_") + take(transactionId, 9)), "", 1, 0, false), IntegerEntry(nameNft, initialPowerNft)]
2727 else if (if ((action == "Send NFT"))
2828 then (currentKeyBytes == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
2929 else false)
3030 then [ScriptTransfer(Address(fromBase58String(type)), 1, fromBase58String(valueAction))]
3131 else throw("Algo deu errado! Verifique sua solicitação!")
3232 }
3333
3434

github/deemru/w8io/169f3d6 
46.77 ms