tx · 6Qv4iWKXgWXR9Y51btDWgvHPLKJfDf5U8Dvja2m5rAmv

3N2Fq3xoRamZ62SFkonL1kcSs9womjpF7KQ:  -0.01400000 Waves

2022.07.04 20:05 [2125207] smart account 3N2Fq3xoRamZ62SFkonL1kcSs9womjpF7KQ > SELF 0.00000000 Waves

{ "type": 13, "id": "6Qv4iWKXgWXR9Y51btDWgvHPLKJfDf5U8Dvja2m5rAmv", "fee": 1400000, "feeAssetId": null, "timestamp": 1656954354486, "version": 2, "chainId": 84, "sender": "3N2Fq3xoRamZ62SFkonL1kcSs9womjpF7KQ", "senderPublicKey": "9s1gudEMHm746dNqnAUyThSzsf5cNdcNTuBE1ABNtZ5C", "proofs": [ "5cnBdJuYP8XCagi5Vi67833f3E3cN9YgmLfkfJgTzCbRpNnkL1JwjDs6eHocoe57mHi3DZh51AYFYVMhs6EMzWih" ], "script": "base64:AAIFAAAAAAAAAAwIAhIGCgQICAgIEgAAAAADAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAABAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAABAAAACGNoZWNrTkZUAAAAAQAAAAVhc3NldAMDAwkAAAAAAAACCAgFAAAABWFzc2V0AAAABmlzc3VlcgAAAAVieXRlcwgFAAAABHRoaXMAAAAFYnl0ZXMJAAAAAAAAAggFAAAABWFzc2V0AAAACGRlY2ltYWxzAAAAAAAAAAAABwkAAAAAAAACCAUAAAAFYXNzZXQAAAAKcmVpc3N1YWJsZQcHCQAA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AAgkAASwAAAACCQABLAAAAAICAAAAC2NvbGxlY3Rpb25fBQAAABBjb2xsZWN0aW9uRG9tYWluAgAAAAVfc2l6ZQkAAGUAAAACBQAAAAZuZnROdW0AAAAAAAAAAAEJAARMAAAAAgUAAAAQdXBkYXRlQ29sbGVjdGlvbgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAAAAAAAAAAEJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACCQABLAAAAAICAAAABG5mdF8FAAAACmFzc2V0SWRTdHICAAAABV9kYXRhCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgkAASwAAAACAgAAAARuZnRfBQAAAAphc3NldElkU3RyAgAAAAZfaW1hZ2UJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACCQABLAAAAAICAAAABG5mdF8FAAAACmFzc2V0SWRTdHICAAAAB19pc3N1ZXIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAALY29sbGVjdGlvbl8FAAAAEGNvbGxlY3Rpb25Eb21haW4CAAAACV9hc3NldElkXwUAAAAKYXNzZXRJZFN0cgUAAAADbmlsCQAAAgAAAAECAAAAFkl2YWxpZCBjb2xsZWN0aW9uIG5hbWUJAAACAAAAAQIAAAATSXZhbGlkIE5GVCBhdHRhY2hlZAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kMulUw==", "height": 2125207, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5UfWwd8UygKEG7SE9xGzvhHU4jGWCSLWMm1Jr21p16Zp Next: none Diff:
OldNewDifferences
3333
3434
3535 @Callable(h)
36-func createNFT (i,j,k,l) = if ((toString(h.caller) == "3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z"))
36+func createNFT (i,j,k,l) = if ((toString(h.caller) == "3MuocfPorcMAUnSc35WpLgUKFQJKm611111"))
3737 then throw("issuance of new NFTs is limited")
3838 else if ((indexOf(k, "https://") != 0))
3939 then throw("https link to image required")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = getInteger(this, b)
66 if ($isInstanceOf(c, "Int"))
77 then {
88 let d = c
99 d
1010 }
1111 else 0
1212 }
1313
1414
1515 func e (b) = {
1616 let c = getString(this, b)
1717 if ($isInstanceOf(c, "String"))
1818 then {
1919 let d = c
2020 d
2121 }
2222 else ""
2323 }
2424
2525
2626 func f (g) = if (if (if ((g.issuer.bytes == this.bytes))
2727 then (g.decimals == 0)
2828 else false)
2929 then (g.reissuable == false)
3030 else false)
3131 then (g.quantity == 1)
3232 else false
3333
3434
3535 @Callable(h)
36-func createNFT (i,j,k,l) = if ((toString(h.caller) == "3MuocfPorcMAUnSc35WpLgUKFQJKm6RC55Z"))
36+func createNFT (i,j,k,l) = if ((toString(h.caller) == "3MuocfPorcMAUnSc35WpLgUKFQJKm611111"))
3737 then throw("issuance of new NFTs is limited")
3838 else if ((indexOf(k, "https://") != 0))
3939 then throw("https link to image required")
4040 else {
4141 let g = Issue(i, j, 1, 0, false, unit, 0)
4242 let m = calculateAssetId(g)
4343 let n = toBase58String(m)
4444 let o = ((toString(h.caller) + "_") + (if ((size(l) > 0))
4545 then l
4646 else "basic"))
4747 let p = (a((("collection_" + o) + "_size")) + 1)
4848 $Tuple2([StringEntry((("nft_" + n) + "_data"), (((("{'collection': '" + o) + "', 'num': ") + toString(p)) + "}")), StringEntry((("nft_" + n) + "_image"), k), StringEntry((("nft_" + n) + "_issuer"), toString(h.caller)), IntegerEntry((("collection_" + o) + "_size"), p), StringEntry(((("collection_" + o) + "_assetId_") + n), n), g, ScriptTransfer(h.caller, 1, m)], n)
4949 }
5050
5151
5252
5353 @Callable(h)
5454 func burnNFT () = {
5555 let m = value(value(h.payments[0]).assetId)
5656 let g = value(assetInfo(m))
5757 if (if ((value(h.payments[0]).amount == 1))
5858 then f(g)
5959 else false)
6060 then {
6161 let n = toBase58String(m)
6262 let q = e((("nft_" + n) + "_issuer"))
6363 let r = e((("nft_" + n) + "_data"))
6464 let s = split(r, ", ")
6565 let t = split(s[0], ": ")
6666 let o = dropRight(drop(t[1], 1), 1)
6767 let p = a((("collection_" + o) + "_size"))
6868 if ((p > 0))
6969 then {
7070 let u = if ((p == 1))
7171 then DeleteEntry((("collection_" + o) + "_size"))
7272 else IntegerEntry((("collection_" + o) + "_size"), (p - 1))
7373 [u, Burn(m, 1), DeleteEntry((("nft_" + n) + "_data")), DeleteEntry((("nft_" + n) + "_image")), DeleteEntry((("nft_" + n) + "_issuer")), DeleteEntry(((("collection_" + o) + "_assetId_") + n))]
7474 }
7575 else throw("Ivalid collection name")
7676 }
7777 else throw("Ivalid NFT attached")
7878 }
7979
8080
8181 @Verifier(v)
8282 func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
8383

github/deemru/w8io/026f985 
22.05 ms