tx · DC6sYHZtrR9KvuVjj1A5MPy6w9B85U5TnzWvdR6dshAX 3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm: -0.05000000 Waves 2021.04.05 22:19 [1469556] smart account 3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm > SELF 0.00000000 Waves
{ "type": 13, "id": "DC6sYHZtrR9KvuVjj1A5MPy6w9B85U5TnzWvdR6dshAX", "fee": 5000000, "feeAssetId": null, "timestamp": 1617650379586, "version": 2, "chainId": 84, "sender": "3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm", "senderPublicKey": "HGQSJy3ik1sdoefTWS4qQBxDJZThuqyPuQmf1z87CU7q", "proofs": [ "We74DAAnBKYUdifGUuXEcJY6Vb5VzhCDsjYUHtuby65vHoJZJdui5RTzCwadwSdut4dL22VtfTtVT4vs3b6Myux" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAADAAAAAAlsaWN6YmFORlQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAACU5GVHRva2VucwAAAAAMa29sZWpueXRva2VuCQAAZAAAAAIFAAAACWxpY3piYU5GVAAAAAAAAAAAAQAAAAAPa29sZWpueXRva2VudHh0CQABpAAAAAEFAAAADGtvbGVqbnl0b2tlbgAAAAIAAAABaQEAAAAJY3JlYXRlTkZUAAAAAAMJAABmAAAAAgUAAAAMa29sZWpueXRva2VuAAAAAAAAAABkCQAAAgAAAAECAAAAR05pZSBtb3puYSBqdcW8IGdlbmVyb3dhxIcgdG9rZW7Ds3cgLyBUb2tlbnMgY2FuIG5vIGxvbmdlciBiZSBnZW5lcmF0ZWQgAwkBAAAAAiE9AAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAAIAAAABAgAAAHBNdXNpc3ogd3lrb25hxIcgcMWCYXRub8WbxIcgemEgd3lnZW5lcm93YW5pZSBORlQgMTAgV0FWRVMgLyBZb3UgbmVlZ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VCAxIFdBVkVTIC8gWW91IG11c3QgaGF2ZSBwYXltZW50IGZvciBORlQgMSBXQVZFUyBzaWduaW5nAwMJAABmAAAAAgAAAAAABfXhAAgJAAGRAAAAAggFAAAAAWoAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BgkBAAAAAiE9AAAAAggJAAGRAAAAAggFAAAAAWoAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAAEdW5pdAkAAAIAAAABAgAAAFRLb3N6dCBwb2RwaXNhbmlhIHByemV6IE5GVCB0byAxIFdBVkVTIC8gWW91IG5lZWQgdG8gbWFrZSBORlQgMSBXQVZFUyBzaWduaW5nIHBheW1lbnQEAAAADmxpY3piYXBvZHBpc293BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAQlAAAAAQgFAAAAAWoAAAAGY2FsbGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAFAAAAAXQAAAAAAAAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFqAAAABmNhbGxlcgIAAAABXwUAAAAHVHhJZE5GVAYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWoAAAAGY2FsbGVyCQAAZAAAAAIFAAAADmxpY3piYXBvZHBpc293AAAAAAAAAAABBQAAAANuaWwAAAAAvc/9UQ==", "height": 1469556, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6de97xuFRzVFJQNVKShGt2R3obdVtxZRtVFWz9zqAdSK Next: none Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | else if ((getBoolean(this, ((toString(h.caller) + "_") + i)) == true)) | |
44 | 44 | then throw("Już podpisywałeś tym NFT / You already signed the NFT with this") | |
45 | 45 | else if ((size(h.payments) != 1)) | |
46 | - | then throw("Musisz wykonać płatność za podpisanie NFT 1 WAVES") | |
46 | + | then throw("Musisz wykonać płatność za podpisanie NFT 1 WAVES / You must have payment for NFT 1 WAVES signing") | |
47 | 47 | else if (if ((100000000 > h.payments[0].amount)) | |
48 | 48 | then true | |
49 | 49 | else (h.payments[0].assetId != unit)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = getIntegerValue(this, "NFTtokens") | |
5 | 5 | ||
6 | 6 | let b = (a + 1) | |
7 | 7 | ||
8 | 8 | let c = toString(b) | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func createNFT () = if ((b > 100)) | |
12 | 12 | then throw("Nie mozna już generować tokenów / Tokens can no longer be generated ") | |
13 | 13 | else if ((size(d.payments) != 1)) | |
14 | 14 | then throw("Musisz wykonać płatność za wygenerowanie NFT 10 WAVES / You need to make a payment to generate NFT 10 WAVES ") | |
15 | 15 | else if (if ((1000000000 > d.payments[0].amount)) | |
16 | 16 | then true | |
17 | 17 | else (d.payments[0].assetId != unit)) | |
18 | 18 | then throw("Koszt wygenerowania nowego NFT to 10 WAVES / The cost of generating a new NFT is 10 WAVES ") | |
19 | 19 | else { | |
20 | 20 | let e = Issue((c + "NFT"), "Dzięki temu tokenowi mozna uzyskać dotęp do 1000 WAVES pod adresem ... więcej informacji na stronie www / With this token, you can access 1000 WAVES at ... more information at www ", 1, 0, false, unit, 0) | |
21 | 21 | let f = calculateAssetId(e) | |
22 | 22 | let g = toBase58String(f) | |
23 | 23 | [e, IntegerEntry("NFTtokens", (a + 1)), StringEntry((c + " token"), g), ScriptTransfer(d.caller, 1, f)] | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(h) | |
29 | 29 | func signNFT (i) = { | |
30 | 30 | let j = { | |
31 | 31 | let k = assetInfo(valueOrErrorMessage(fromBase58String(i), "Błędny Asset / Wrong Asset")) | |
32 | 32 | if ($isInstanceOf(k, "Asset")) | |
33 | 33 | then { | |
34 | 34 | let l = k | |
35 | 35 | l.issuer | |
36 | 36 | } | |
37 | 37 | else throw("Błędny Asset / Wrong Asset") | |
38 | 38 | } | |
39 | 39 | if ((this != j)) | |
40 | 40 | then throw("Błędny NFT / Wrong NFT") | |
41 | 41 | else if ((assetBalance(h.caller, fromBase58String(i)) != 1)) | |
42 | 42 | then throw("Nie posiadasz tego NFT / You don't own this NFT") | |
43 | 43 | else if ((getBoolean(this, ((toString(h.caller) + "_") + i)) == true)) | |
44 | 44 | then throw("Już podpisywałeś tym NFT / You already signed the NFT with this") | |
45 | 45 | else if ((size(h.payments) != 1)) | |
46 | - | then throw("Musisz wykonać płatność za podpisanie NFT 1 WAVES") | |
46 | + | then throw("Musisz wykonać płatność za podpisanie NFT 1 WAVES / You must have payment for NFT 1 WAVES signing") | |
47 | 47 | else if (if ((100000000 > h.payments[0].amount)) | |
48 | 48 | then true | |
49 | 49 | else (h.payments[0].assetId != unit)) | |
50 | 50 | then throw("Koszt podpisania przez NFT to 1 WAVES / You need to make NFT 1 WAVES signing payment") | |
51 | 51 | else { | |
52 | 52 | let m = { | |
53 | 53 | let k = getInteger(this, toString(h.caller)) | |
54 | 54 | if ($isInstanceOf(k, "Int")) | |
55 | 55 | then { | |
56 | 56 | let l = k | |
57 | 57 | l | |
58 | 58 | } | |
59 | 59 | else 0 | |
60 | 60 | } | |
61 | 61 | [BooleanEntry(((toString(h.caller) + "_") + i), true), IntegerEntry(toString(h.caller), (m + 1))] | |
62 | 62 | } | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 |
github/deemru/w8io/03bedc9 41.48 ms ◑![]()