tx · ALcqw4h5gRDQ1wJAPhnKjbBgNH8yfNLXiHUm5kc8JrK6

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00100000 Waves

2023.03.05 01:01 [2475895] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "ALcqw4h5gRDQ1wJAPhnKjbBgNH8yfNLXiHUm5kc8JrK6", "fee": 100000, "feeAssetId": null, "timestamp": 1677967298367, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "3p3kTw1XNfRhrJ3SG57Hps3KocQ1eAeGkAbYFqw6qjNVNruATRKC4XCcxQxTEes8MC6ePr4oZHLoLMTazbpgiw1t" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwILdG90YWxBbW91bnQBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJpbmdFbnRyeQICAAIACQEOU2NyaXB0VHJhbnNmZXIDBQJ0bwABBQdhc3NldElkAgFpAQRpbml0Aw5jb2xsZWN0aW9uTmFtZQZzeW1ib2wLZGVzY3JpcHRpb24DCQAAAggFAWkGY2FsbGVyBQR0aGlzCQDMCAIJAQtTdHJpbmdFbnRyeQICDmNvbGxlY3Rpb25OYW1lBQ5jb2xsZWN0aW9uTmFtZQkAzAgCCQELU3RyaW5nRW50cnkCAgZzeW1ib2wFBnN5bWJvbAkAzAgCCQELU3RyaW5nRW50cnkCAgtkZXNjcmlwdGlvbgULZGVzY3JpcHRpb24JAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50AAAFA25pbAkAAgECCW9ubHkgZEFwcAFpAQRtaW50AgJ0bwh0b2tlblVSSQMJAAACCAUBaQZjYWxsZXIFBHRoaXMEB3Rva2VuSWQJAGQCBQt0b3RhbEFtb3VudAABBAdwcmVOYW1lCQCsAgIJAKwCAgUGc3ltYm9sAgEtCQCkAwEFB3Rva2VuSWQEBG5hbWUDCQBmAgkAsQIBBQdwcmVOYW1lABAFB3ByZU5hbWUJAKQDAQUHdG9rZW5JZAkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQFB3Rva2VuSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUEbmFtZQUIdG9rZW5VUkkFA25pbAkAAgECCW9ubHkgZEFwcADKS9Gv", "height": 2475895, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CEo7CHjkmf2NViY8wHFKwkrxv2vzkd2tT854vzH1Jt13 Next: F1K3EZZBf3KMLediA5nNHpFdq4hJTah6J91F7qq5HoB1 Diff:
OldNewDifferences
2929 let name = if ((size(preName) > 16))
3030 then preName
3131 else toString(tokenId)
32- let asset = Issue(name, description, 1, 0, false, unit, height)
33- let assetId = calculateAssetId(asset)
34- let toAddress = Address(fromBase58String(to))
35- let transfer = transferOrNot(toAddress, assetId)
36- if ((transfer == transfer))
37- then [IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
38- else throw("Strict value is not equal to itself.")
32+[IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
3933 }
4034 else throw("only dApp")
4135
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, "symbol")
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)
2828 let preName = ((symbol + "-") + toString(tokenId))
2929 let name = if ((size(preName) > 16))
3030 then preName
3131 else toString(tokenId)
32- let asset = Issue(name, description, 1, 0, false, unit, height)
33- let assetId = calculateAssetId(asset)
34- let toAddress = Address(fromBase58String(to))
35- let transfer = transferOrNot(toAddress, assetId)
36- if ((transfer == transfer))
37- then [IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
38- else throw("Strict value is not equal to itself.")
32+[IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
3933 }
4034 else throw("only dApp")
4135
4236

github/deemru/w8io/169f3d6 
20.58 ms