tx · Hm9vYwtJyf9k9fa78KfXJCXyES2gGkJCuN4M35W17c1E

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00200000 Waves

2023.03.05 00:53 [2475887] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "Hm9vYwtJyf9k9fa78KfXJCXyES2gGkJCuN4M35W17c1E", "fee": 200000, "feeAssetId": null, "timestamp": 1677966913142, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "2ynp3n7At6Hrkwb7J19GPbbC94rADhnqpXdN7d2BAtHhfXAsT8f6XkQFoEmeVZhpJyBzsYzsi68MsLoznCT2ndns" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzAgt0b3RhbEFtb3VudAENdHJhbnNmZXJPck5vdAICdG8HYXNzZXRJZAMJAAACBQJ0bwUEdGhpcwkBC1N0cmluZ0VudHJ5AgIAAgAJAQ5TY3JpcHRUcmFuc2ZlcgMFAnRvAAEFB2Fzc2V0SWQCAWkBBGluaXQDDmNvbGxlY3Rpb25OYW1lBnN5bWJvbAtkZXNjcmlwdGlvbgMJAAACCAUBaQZjYWxsZXIFBHRoaXMJAMwIAgkBC1N0cmluZ0VudHJ5AgIOY29sbGVjdGlvbk5hbWUFDmNvbGxlY3Rpb25OYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQICBnN5bWJvbAUGc3ltYm9sCQDMCAIJAQtTdHJpbmdFbnRyeQICC2Rlc2NyaXB0aW9uBQtkZXNjcmlwdGlvbgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQAAAUDbmlsCQACAQIJb25seSBkQXBwAWkBBG1pbnQCAnRvCHRva2VuVVJJAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwQHdG9rZW5JZAkAZAIFC3RvdGFsQW1vdW50AAEEBG5hbWUJAKwCAgkArAICBQZzeW1ib2wCAS0JAKQDAQUHdG9rZW5JZAQFYXNzZXQJAMMIBwUEbmFtZQULZGVzY3JpcHRpb24AAQAABwUEdW5pdAUGaGVpZ2h0BAdhc3NldElkCQC4CAEFBWFzc2V0BAl0b0FkZHJlc3MJAQdBZGRyZXNzAQkA2QQBBQJ0bwQIdHJhbnNmZXIJAQ10cmFuc2Zlck9yTm90AgUJdG9BZGRyZXNzBQdhc3NldElkAwkAAAIFCHRyYW5zZmVyBQh0cmFuc2ZlcgkAzAgCBQVhc3NldAkAzAgCBQh0cmFuc2ZlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQFB3Rva2VuSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUEbmFtZQUIdG9rZW5VUkkFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECCW9ubHkgZEFwcADCCsV2", "height": 2475887, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CiHKjxnZu2cWLWizDDc4W8kJVUZMx6QZkdkYK7Pee36k Next: Ag6N2TAFL6k7p9xrPVjWTP17CgwyzgGw8TxmEUmJ4MDX Diff:
OldNewDifferences
2525 func mint (to,tokenURI) = if ((i.caller == this))
2626 then {
2727 let tokenId = (totalAmount + 1)
28- let preName = ((symbol + "-") + toString(tokenId))
29- let name = if ((size(preName) > 16))
30- then toString(tokenId)
31- else preName
28+ let name = ((symbol + "-") + toString(tokenId))
3229 let asset = Issue(name, description, 1, 0, false, unit, height)
3330 let assetId = calculateAssetId(asset)
3431 let toAddress = Address(fromBase58String(to))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let collectionName = getStringValue(this, "collectionName")
55
66 let symbol = getStringValue(this, "collectionName")
77
88 let description = getStringValue(this, "description")
99
1010 let totalAmount = getIntegerValue(this, "totalAmount")
1111
1212 func transferOrNot (to,assetId) = if ((to == this))
1313 then StringEntry("", "")
1414 else ScriptTransfer(to, 1, assetId)
1515
1616
1717 @Callable(i)
1818 func init (collectionName,symbol,description) = if ((i.caller == this))
1919 then [StringEntry("collectionName", collectionName), StringEntry("symbol", symbol), StringEntry("description", description), IntegerEntry("totalAmount", 0)]
2020 else throw("only dApp")
2121
2222
2323
2424 @Callable(i)
2525 func mint (to,tokenURI) = if ((i.caller == this))
2626 then {
2727 let tokenId = (totalAmount + 1)
28- let preName = ((symbol + "-") + toString(tokenId))
29- let name = if ((size(preName) > 16))
30- then toString(tokenId)
31- else preName
28+ let name = ((symbol + "-") + toString(tokenId))
3229 let asset = Issue(name, description, 1, 0, false, unit, height)
3330 let assetId = calculateAssetId(asset)
3431 let toAddress = Address(fromBase58String(to))
3532 let transfer = transferOrNot(toAddress, assetId)
3633 if ((transfer == transfer))
3734 then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
3835 else throw("Strict value is not equal to itself.")
3936 }
4037 else throw("only dApp")
4138
4239

github/deemru/w8io/026f985 
24.78 ms