tx · F1K3EZZBf3KMLediA5nNHpFdq4hJTah6J91F7qq5HoB1 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb: -0.00100000 Waves 2023.03.05 01:03 [2475897] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves
{ "type": 13, "id": "F1K3EZZBf3KMLediA5nNHpFdq4hJTah6J91F7qq5HoB1", "fee": 100000, "feeAssetId": null, "timestamp": 1677967447684, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "PujxahRRFtZn3XhnczByMaSsGi2H61qLVnKkzTRkevozjXkk3Uzj1zcNU7jbutwWkP7M2D81jftXK5WMgnMiZXx" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwILdG90YWxBbW91bnQBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJpbmdFbnRyeQICAAIACQEOU2NyaXB0VHJhbnNmZXIDBQJ0bwABBQdhc3NldElkAgFpAQRpbml0Aw5jb2xsZWN0aW9uTmFtZQZzeW1ib2wLZGVzY3JpcHRpb24DCQAAAggFAWkGY2FsbGVyBQR0aGlzCQDMCAIJAQtTdHJpbmdFbnRyeQICDmNvbGxlY3Rpb25OYW1lBQ5jb2xsZWN0aW9uTmFtZQkAzAgCCQELU3RyaW5nRW50cnkCAgZzeW1ib2wFBnN5bWJvbAkAzAgCCQELU3RyaW5nRW50cnkCAgtkZXNjcmlwdGlvbgULZGVzY3JpcHRpb24JAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50AAAFA25pbAkAAgECCW9ubHkgZEFwcAFpAQRtaW50AgJ0bwh0b2tlblVSSQMJAAACCAUBaQZjYWxsZXIFBHRoaXMEB3Rva2VuSWQJAGQCBQt0b3RhbEFtb3VudAABBAdwcmVOYW1lCQCsAgIJAKwCAgUGc3ltYm9sAgEjCQCkAwEFB3Rva2VuSWQEBG5hbWUDCQBmAgkAsQIBBQdwcmVOYW1lABAFB3ByZU5hbWUJAKQDAQUHdG9rZW5JZAkAzAgCCQEMSW50ZWdlckVudHJ5AgIGZGVidWcxCQCxAgEFB3ByZU5hbWUJAMwIAgkBC1N0cmluZ0VudHJ5AgIGZGVidWcyBQdwcmVOYW1lCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgt0b3RhbEFtb3VudAUHdG9rZW5JZAkAzAgCCQELU3RyaW5nRW50cnkCBQRuYW1lBQh0b2tlblVSSQUDbmlsCQACAQIJb25seSBkQXBwANG/Q54=", "height": 2475897, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ALcqw4h5gRDQ1wJAPhnKjbBgNH8yfNLXiHUm5kc8JrK6 Next: 86sC3yH4G7wxSYr9UsYWeQveL85wSnD5NAk7w4umpkv1 Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | func mint (to,tokenURI) = if ((i.caller == this)) | |
26 | 26 | then { | |
27 | 27 | let tokenId = (totalAmount + 1) | |
28 | - | let preName = ((symbol + " | |
28 | + | let preName = ((symbol + "#") + toString(tokenId)) | |
29 | 29 | let name = if ((size(preName) > 16)) | |
30 | 30 | then preName | |
31 | 31 | else toString(tokenId) | |
32 | - | [IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
32 | + | [IntegerEntry("debug1", size(preName)), StringEntry("debug2", preName), IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
33 | 33 | } | |
34 | 34 | else throw("only dApp") | |
35 | 35 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let collectionName = getStringValue(this, "collectionName") | |
5 | 5 | ||
6 | 6 | let symbol = getStringValue(this, "symbol") | |
7 | 7 | ||
8 | 8 | let description = getStringValue(this, "description") | |
9 | 9 | ||
10 | 10 | let totalAmount = getIntegerValue(this, "totalAmount") | |
11 | 11 | ||
12 | 12 | func transferOrNot (to,assetId) = if ((to == this)) | |
13 | 13 | then StringEntry("", "") | |
14 | 14 | else ScriptTransfer(to, 1, assetId) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(i) | |
18 | 18 | func init (collectionName,symbol,description) = if ((i.caller == this)) | |
19 | 19 | then [StringEntry("collectionName", collectionName), StringEntry("symbol", symbol), StringEntry("description", description), IntegerEntry("totalAmount", 0)] | |
20 | 20 | else throw("only dApp") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | 25 | func mint (to,tokenURI) = if ((i.caller == this)) | |
26 | 26 | then { | |
27 | 27 | let tokenId = (totalAmount + 1) | |
28 | - | let preName = ((symbol + " | |
28 | + | let preName = ((symbol + "#") + toString(tokenId)) | |
29 | 29 | let name = if ((size(preName) > 16)) | |
30 | 30 | then preName | |
31 | 31 | else toString(tokenId) | |
32 | - | [IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
32 | + | [IntegerEntry("debug1", size(preName)), StringEntry("debug2", preName), IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
33 | 33 | } | |
34 | 34 | else throw("only dApp") | |
35 | 35 | ||
36 | 36 |
github/deemru/w8io/169f3d6 26.66 ms ◑