tx · Bcab8Ckhp5h5TJFYVTJZ2i3STm1owW4u9HTgcy7ffEVr

3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm:  -0.05000000 Waves

2021.03.26 12:58 [1454560] smart account 3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm > SELF 0.00000000 Waves

{ "type": 13, "id": "Bcab8Ckhp5h5TJFYVTJZ2i3STm1owW4u9HTgcy7ffEVr", "fee": 5000000, "feeAssetId": null, "timestamp": 1616752700294, "version": 2, "chainId": 84, "sender": "3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm", "senderPublicKey": "HGQSJy3ik1sdoefTWS4qQBxDJZThuqyPuQmf1z87CU7q", "proofs": [ "5jbpGXgs3K1KU2vgv4R6EJcB1aSLboCi9b92YLmrnV7MUufLYcdsvW73FQU8CWWWJEUve99vM2rrgpRCAAqW86as" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAADAAAAAAlsaWN6YmFORlQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAACU5GVHRva2VucwAAAAAMa29sZWpueXRva2VuCQAAZAAAAAIFAAAACWxpY3piYU5GVAAAAAAAAAAAAQAAAAAPa29sZWpueXRva2VudHh0CQABpAAAAAEFAAAADGtvbGVqbnl0b2tlbgAAAAIAAAABaQEAAAAJY3JlYXRlTkZUAAAAAAMJAABmAAAAAgUAAAAMa29sZWpueXRva2VuAAAAAAAAAABkCQAAAgAAAAECAAAAIk5pZSBtb3puYSBqdcW8IGdlbmVyb3dhxIcgdG9rZW7Ds3cDAwkAAGYAAAACAAAAAAAAAAAKCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQGCQEAAAACIT0AAAACCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAAR1bml0CQAAAgAAAAECAAAAKktvc3p0IHd5Z2VuZXJvd2F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EmWRueSBBc3NldAMJAQAAAAIhPQAAAAIFAAAABHRoaXMFAAAACU5GVGlzc3VlcgkAAAIAAAABAgAAAAxCxYLEmWRueSBORlQDCQEAAAACIT0AAAACCQAD8AAAAAIIBQAAAAFqAAAABmNhbGxlcgkAAlkAAAABBQAAAANORlQAAAAAAAAAAAEJAAACAAAAAQIAAAAWTmllIHBvc2lhZGFzeiB0ZWdvIE5GVAMJAAAAAAAAAgkABBsAAAACBQAAAAR0aGlzCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABagAAAAZjYWxsZXICAAAAAV8FAAAAA05GVAYJAAACAAAAAQIAAAAbSnXFvCBwb2RwaXN5d2HFgmXFmyB0eW0gTkZUBAAAAA5saWN6YmFwb2RwaXNvdwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQAEJQAAAAEIBQAAAAFqAAAABmNhbGxlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF0BQAAAAckbWF0Y2gwBQAAAAF0AAAAAAAAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABagAAAAZjYWxsZXICAAAAAV8FAAAAA05GVAYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWoAAAAGY2FsbGVyCQAAZAAAAAIFAAAADmxpY3piYXBvZHBpc293AAAAAAAAAAABBQAAAANuaWwAAAAADIR2Yg==", "height": 1454560, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J2piwzJswGHTzQoQyABZofLgNyshQazAwifYJ1H6mRhv Next: 3z4DhU9saLSDEdQRmuKs3MRgezannQUpdJuDeXKhi5xW Diff:
OldNewDifferences
1010 @Callable(i)
1111 func createNFT () = if ((kolejnytoken > 100))
1212 then throw("Nie mozna już generować tokenów")
13- else if (!(if ((i.payments[0].amount >= 10))
13+ else if (if ((10 > i.payments[0].amount))
1414 then true
15- else (i.payments[0].assetId == unit)))
15+ else (i.payments[0].assetId != unit))
1616 then throw("Koszt wygenerowania nowego NFT to 10 WAVES")
1717 else {
1818 let asset = Issue((kolejnytokentxt + " NFT 1000 WAVES"), "Dzięki temu tokenowi mozna uzyskać dotęp do 1000 WAVES pod adresem ... więcej informacji na stronie www", 1, 0, false, unit, 0)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let liczbaNFT = getIntegerValue(this, "NFTtokens")
55
66 let kolejnytoken = (liczbaNFT + 1)
77
88 let kolejnytokentxt = toString(kolejnytoken)
99
1010 @Callable(i)
1111 func createNFT () = if ((kolejnytoken > 100))
1212 then throw("Nie mozna już generować tokenów")
13- else if (!(if ((i.payments[0].amount >= 10))
13+ else if (if ((10 > i.payments[0].amount))
1414 then true
15- else (i.payments[0].assetId == unit)))
15+ else (i.payments[0].assetId != unit))
1616 then throw("Koszt wygenerowania nowego NFT to 10 WAVES")
1717 else {
1818 let asset = Issue((kolejnytokentxt + " NFT 1000 WAVES"), "Dzięki temu tokenowi mozna uzyskać dotęp do 1000 WAVES pod adresem ... więcej informacji na stronie www", 1, 0, false, unit, 0)
1919 let assetId = calculateAssetId(asset)
2020 let nazwatokena = toBase58String(assetId)
2121 let a = transferTransactionById(base58'3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm')
2222 [asset, IntegerEntry("NFTtokens", (liczbaNFT + 1)), StringEntry((kolejnytokentxt + " token"), nazwatokena), ScriptTransfer(i.caller, 1, assetId)]
2323 }
2424
2525
2626
2727 @Callable(j)
2828 func singnNFT (NFT) = {
2929 let NFTissuer = match assetInfo(valueOrErrorMessage(fromBase58String(NFT), "Błędny Asset")) {
3030 case t: Asset =>
3131 t.issuer
3232 case _ =>
3333 throw("Błędny Asset")
3434 }
3535 if ((this != NFTissuer))
3636 then throw("Błędny NFT")
3737 else if ((assetBalance(j.caller, fromBase58String(NFT)) != 1))
3838 then throw("Nie posiadasz tego NFT")
3939 else if ((getBoolean(this, ((toString(j.caller) + "_") + NFT)) == true))
4040 then throw("Już podpisywałeś tym NFT")
4141 else {
4242 let liczbapodpisow = match getInteger(this, toString(j.caller)) {
4343 case t: Int =>
4444 t
4545 case _ =>
4646 0
4747 }
4848 [BooleanEntry(((toString(j.caller) + "_") + NFT), true), IntegerEntry(toString(j.caller), (liczbapodpisow + 1))]
4949 }
5050 }
5151
5252

github/deemru/w8io/169f3d6 
25.49 ms