tx · DBeDRLq26FcBFVrFkdAJR5BVmcpDUyJFQXDPTDseyTkU

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00200000 Waves

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

{ "type": 13, "id": "DBeDRLq26FcBFVrFkdAJR5BVmcpDUyJFQXDPTDseyTkU", "fee": 200000, "feeAssetId": null, "timestamp": 1677967580712, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "2wi77hp1uo67Wuo4YB1ukgPpvnTP6VRh2ZdLb6DNfYDBcSFdrbYtYY2mW1yQNgJZjbny8Qt5eeTfvb5uKGSpJyhe" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwILdG90YWxBbW91bnQBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJpbmdFbnRyeQICDtC60L7RgdGC0YvQu9GMAg7QutC+0YHRgtGL0LvRjAkBDlNjcmlwdFRyYW5zZmVyAwUCdG8AAQUHYXNzZXRJZAIBaQEEaW5pdAMOY29sbGVjdGlvbk5hbWUGc3ltYm9sC2Rlc2NyaXB0aW9uAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwkAzAgCCQELU3RyaW5nRW50cnkCAg5jb2xsZWN0aW9uTmFtZQUOY29sbGVjdGlvbk5hbWUJAMwIAgkBC1N0cmluZ0VudHJ5AgIGc3ltYm9sBQZzeW1ib2wJAMwIAgkBC1N0cmluZ0VudHJ5AgILZGVzY3JpcHRpb24FC2Rlc2NyaXB0aW9uCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgt0b3RhbEFtb3VudAAABQNuaWwJAAIBAglvbmx5IGRBcHABaQEEbWludAICdG8IdG9rZW5VUkkDCQAAAggFAWkGY2FsbGVyBQR0aGlzBAd0b2tlbklkCQBkAgULdG90YWxBbW91bnQAAQQHcHJlTmFtZQkArAICCQCsAgIFBnN5bWJvbAIBIwkApAMBBQd0b2tlbklkBARuYW1lAwkAZwIAEAkAsQIBBQdwcmVOYW1lBQdwcmVOYW1lCQCkAwEFB3Rva2VuSWQEBWFzc2V0CQDDCAcFBG5hbWUFC2Rlc2NyaXB0aW9uAAEAAAcFBHVuaXQFBmhlaWdodAQHYXNzZXRJZAkAuAgBBQVhc3NldAQJdG9BZGRyZXNzCQEHQWRkcmVzcwEJANkEAQUCdG8ECHRyYW5zZmVyCQENdHJhbnNmZXJPck5vdAIFCXRvQWRkcmVzcwUHYXNzZXRJZAMJAAACBQh0cmFuc2ZlcgUIdHJhbnNmZXIJAMwIAgUFYXNzZXQJAMwIAgUIdHJhbnNmZXIJAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50BQd0b2tlbklkCQDMCAIJAQtTdHJpbmdFbnRyeQIFBG5hbWUFCHRva2VuVVJJBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAglvbmx5IGRBcHAApr3A7g==", "height": 2475901, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 86sC3yH4G7wxSYr9UsYWeQveL85wSnD5NAk7w4umpkv1 Next: 4Xi4rFrEpcz4r8Rq9mo52Bnh6jSbiocR5cWEZ9V6w1uv Diff:
OldNewDifferences
1010 let totalAmount = getIntegerValue(this, "totalAmount")
1111
1212 func transferOrNot (to,assetId) = if ((to == this))
13- then StringEntry("", "")
13+ then StringEntry("костыль", "костыль")
1414 else ScriptTransfer(to, 1, assetId)
1515
1616
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))
13- then StringEntry("", "")
13+ 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 ((16 >= size(preName)))
3030 then preName
3131 else toString(tokenId)
3232 let asset = Issue(name, description, 1, 0, false, unit, height)
3333 let assetId = calculateAssetId(asset)
3434 let toAddress = Address(fromBase58String(to))
3535 let transfer = transferOrNot(toAddress, assetId)
3636 if ((transfer == transfer))
3737 then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)]
3838 else throw("Strict value is not equal to itself.")
3939 }
4040 else throw("only dApp")
4141
4242

github/deemru/w8io/026f985 
23.81 ms