tx · H59DAQKCN8HtqrBsTMMiDFFwwUa3fdjnPVU1bMXUnhw2 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo: -0.01000000 Waves 2022.11.16 15:34 [2319680] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves
{ "type": 13, "id": "H59DAQKCN8HtqrBsTMMiDFFwwUa3fdjnPVU1bMXUnhw2", "fee": 1000000, "feeAssetId": null, "timestamp": 1668601929480, "version": 2, "chainId": 84, "sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo", "senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V", "proofs": [ "46B9aectpifek8eGfwhLcWypbkzzghbHDY2oCRKNgCQS4cpjvQYBYxwyPTxuQJMv2bhy3dgVNTKk1go4D7cxYZVF" ], "script": "base64:BgIOCAISCgoICAgICAgBCAgFAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAFa1NlbGwCBHNlbGwABmtQcmljZQIFcHJpY2UBBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIBQV0b2tlbgpyZWlzc3VhYmxlBwcHAQFpAQhpc3N1ZU5mdAgIbmZ0X25hbWUJbmZ0X293bmVyD25mdF9kQXBwQWRkcmVzcwhuZnRfdHlwZQhuZnRfdGFncxFuZnRfc2VsbGluZ19wcmljZQ9uZnRfZGVzY3JpcHRpb24IbmZ0X2RhdGEECG5ld1Rva2VuCQDCCAUFCG5mdF9uYW1lBQ9uZnRfZGVzY3JpcHRpb24AAQAABwQHaXNzdWVJZAkAuAgBBQhuZXdUb2tlbgkAzAgCBQhuZXdUb2tlbgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgkA2AQBBQdpc3N1ZUlkBQlzZXBhcmF0b3ICCW5mdF9vd25lcgkApQgBCAUBaQZjYWxsZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAghuZnRfdHlwZQUIbmZ0X3R5cGUJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAghuZnRfdGFncwUIbmZ0X3RhZ3MJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAg9uZnRfZEFwcEFkZHJlc3MFD25mdF9kQXBwQWRkcmVzcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAhFuZnRfc2VsbGluZ19wcmljZQURbmZ0X3NlbGxpbmdfcHJpY2UJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAghuZnRfZGF0YQUIbmZ0X2RhdGEJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAg5pc3N1ZU5mdFRvVXNlcgkA3AQBBQdpc3N1ZUlkBQNuaWwA/5LzWw==", "height": 2319680, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F7WLkbPxZwuAt7Btq8SbePaDv8FYY42x9hzTKfVnfb3C Next: A12bMRMab78VriVJji5js5gfuY1FtAP6XVsSSCrafqFg Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | - | func issueNft (j,k,l,m,n,o,p,q | |
29 | - | let | |
30 | - | let | |
31 | - | [ | |
28 | + | func issueNft (j,k,l,m,n,o,p,q) = { | |
29 | + | let r = Issue(j, p, 1, 0, false) | |
30 | + | let s = calculateAssetId(r) | |
31 | + | [r, StringEntry(((toBase58String(s) + a) + "nft_owner"), toString(i.caller)), StringEntry(((toBase58String(s) + a) + "nft_type"), m), StringEntry(((toBase58String(s) + a) + "nft_tags"), n), StringEntry(((toBase58String(s) + a) + "nft_dAppAddress"), l), IntegerEntry(((toBase58String(s) + a) + "nft_selling_price"), o), StringEntry(((toBase58String(s) + a) + "nft_data"), q), StringEntry(((toBase58String(s) + a) + "issueNftToUser"), toBase16String(s))] | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = "buy" | |
7 | 7 | ||
8 | 8 | let c = "sell" | |
9 | 9 | ||
10 | 10 | let d = "price" | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = assetInfo(f) | |
14 | 14 | if ($isInstanceOf(g, "Asset")) | |
15 | 15 | then { | |
16 | 16 | let h = g | |
17 | 17 | if (if ((h.decimals == 0)) | |
18 | 18 | then (h.quantity == 1) | |
19 | 19 | else false) | |
20 | 20 | then (h.reissuable == false) | |
21 | 21 | else false | |
22 | 22 | } | |
23 | 23 | else false | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | @Callable(i) | |
28 | - | func issueNft (j,k,l,m,n,o,p,q | |
29 | - | let | |
30 | - | let | |
31 | - | [ | |
28 | + | func issueNft (j,k,l,m,n,o,p,q) = { | |
29 | + | let r = Issue(j, p, 1, 0, false) | |
30 | + | let s = calculateAssetId(r) | |
31 | + | [r, StringEntry(((toBase58String(s) + a) + "nft_owner"), toString(i.caller)), StringEntry(((toBase58String(s) + a) + "nft_type"), m), StringEntry(((toBase58String(s) + a) + "nft_tags"), n), StringEntry(((toBase58String(s) + a) + "nft_dAppAddress"), l), IntegerEntry(((toBase58String(s) + a) + "nft_selling_price"), o), StringEntry(((toBase58String(s) + a) + "nft_data"), q), StringEntry(((toBase58String(s) + a) + "issueNftToUser"), toBase16String(s))] | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 |
github/deemru/w8io/026f985 24.16 ms ◑