tx · CDijiWij7941BZEzASHTh2otV7jfTBSVhjPKHaghJRk2 3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm: -0.05000000 Waves 2021.03.26 06:38 [1454172] smart account 3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm > SELF 0.00000000 Waves
{ "type": 13, "id": "CDijiWij7941BZEzASHTh2otV7jfTBSVhjPKHaghJRk2", "fee": 5000000, "feeAssetId": null, "timestamp": 1616729956062, "version": 2, "chainId": 84, "sender": "3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm", "senderPublicKey": "HGQSJy3ik1sdoefTWS4qQBxDJZThuqyPuQmf1z87CU7q", "proofs": [ "4JXGkPhoukCcdfnvc6wV8o6t6w5aewKfAGNvYM2bpPayWCnyCib8vzwcr1y7xVmsy4NsCYa2uufo69bafLnjzdsu" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAADAAAAAAlsaWN6YmFORlQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAACU5GVHRva2VucwAAAAAMa29sZWpueXRva2VuCQAAZAAAAAIFAAAACWxpY3piYU5GVAAAAAAAAAAAAQAAAAAPa29sZWpueXRva2VudHh0CQABpAAAAAEFAAAADGtvbGVqbnl0b2tlbgAAAAIAAAABaQEAAAAJY3JlYXRlTkZUAAAAAAMJAQAAAAEhAAAAAQkAAGYAAAACBQAAAAlsaWN6YmFORlQAAAAAAAAAAGQEAAAABWFzc2V0CQAEQwAAAAcJAAEsAAAAAgUAAAAPa29sZWpueXRva2VudHh0AgAAAA8gTkZUIDEwMDAgV0FWRVMCAAAAOUR6acSZa2kgdGVtdSB0b2tlbm93aSBtb3puYSB1enlza2HEhyBkb3TEmXAgZG8gMTAwMCBXQVZFUwAAAAAAAAAAAQAAAAAAAAAAAAcFAAAABHVuaXQAAAAAAAAAAAAEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQEAAAAC25hendhdG9rZ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oAAAAGY2FsbGVyAgAAAAFfBQAAAANORlQGCQAAAgAAAAECAAAAG0p1xbwgcG9kcGlzeXdhxYJlxZsgdHltIE5GVAQAAAAObGljemJhcG9kcGlzb3cEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkABCUAAAABCAUAAAABagAAAAZjYWxsZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAUAAAABdAAAAAAAAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAAAWoAAAAGY2FsbGVyAgAAAAFfBQAAAANORlQGCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQAEJQAAAAEIBQAAAAFqAAAABmNhbGxlcgkAAGQAAAACBQAAAA5saWN6YmFwb2RwaXNvdwAAAAAAAAAAAQUAAAADbmlsAAAAAF0OUQM=", "height": 1454172, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fganigzf21tpP5ZMLFFSo2wGTjd3D9BjdxCoeLR8DJEy Next: 3rkQGBnfXSMau8RpmN6EeuuDEqi9duFeUcqE8mnevXMc Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | @Callable(i) | |
24 | 24 | func singnNFT (j) = { | |
25 | 25 | let k = { | |
26 | - | let l = assetInfo(valueOrErrorMessage(fromBase58String(j), "Błędny | |
26 | + | let l = assetInfo(valueOrErrorMessage(fromBase58String(j), "Błędny Asset")) | |
27 | 27 | if ($isInstanceOf(l, "Asset")) | |
28 | 28 | then { | |
29 | 29 | let m = l | |
30 | 30 | m.issuer | |
31 | 31 | } | |
32 | - | else throw("Błędny | |
32 | + | else throw("Błędny Asset") | |
33 | 33 | } | |
34 | 34 | if ((this != k)) | |
35 | 35 | then throw("Błędny NFT") | |
36 | - | else if ((assetBalance(i.caller, | |
36 | + | else if ((assetBalance(i.caller, fromBase58String(j)) != 1)) | |
37 | 37 | then throw("Nie posiadasz tego NFT") | |
38 | 38 | else if ((getBoolean(this, ((toString(i.caller) + "_") + j)) == true)) | |
39 | 39 | then throw("Już podpisywałeś tym NFT") |
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 (!((a > 100))) | |
12 | 12 | then { | |
13 | 13 | let e = Issue((c + " NFT 1000 WAVES"), "Dzięki temu tokenowi mozna uzyskać dotęp do 1000 WAVES", 1, 0, false, unit, 0) | |
14 | 14 | let f = calculateAssetId(e) | |
15 | 15 | let g = toBase58String(f) | |
16 | 16 | let h = transferTransactionById(base58'3N99w48M6Xg9uY1R1HoDHmBpQff3Ni5vGpm') | |
17 | 17 | [e, IntegerEntry("NFTtokens", (a + 1)), StringEntry((c + " token"), g), ScriptTransfer(d.caller, 1, f)] | |
18 | 18 | } | |
19 | 19 | else throw("Nie mozna już generować tokenów") | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(i) | |
24 | 24 | func singnNFT (j) = { | |
25 | 25 | let k = { | |
26 | - | let l = assetInfo(valueOrErrorMessage(fromBase58String(j), "Błędny | |
26 | + | let l = assetInfo(valueOrErrorMessage(fromBase58String(j), "Błędny Asset")) | |
27 | 27 | if ($isInstanceOf(l, "Asset")) | |
28 | 28 | then { | |
29 | 29 | let m = l | |
30 | 30 | m.issuer | |
31 | 31 | } | |
32 | - | else throw("Błędny | |
32 | + | else throw("Błędny Asset") | |
33 | 33 | } | |
34 | 34 | if ((this != k)) | |
35 | 35 | then throw("Błędny NFT") | |
36 | - | else if ((assetBalance(i.caller, | |
36 | + | else if ((assetBalance(i.caller, fromBase58String(j)) != 1)) | |
37 | 37 | then throw("Nie posiadasz tego NFT") | |
38 | 38 | else if ((getBoolean(this, ((toString(i.caller) + "_") + j)) == true)) | |
39 | 39 | then throw("Już podpisywałeś tym NFT") | |
40 | 40 | else { | |
41 | 41 | let n = { | |
42 | 42 | let l = getInteger(this, toString(i.caller)) | |
43 | 43 | if ($isInstanceOf(l, "Int")) | |
44 | 44 | then { | |
45 | 45 | let m = l | |
46 | 46 | m | |
47 | 47 | } | |
48 | 48 | else 0 | |
49 | 49 | } | |
50 | 50 | [BooleanEntry(((toString(i.caller) + "_") + j), true), IntegerEntry(toString(i.caller), (n + 1))] | |
51 | 51 | } | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 |
github/deemru/w8io/03bedc9 27.05 ms ◑![]()