tx · Ag6N2TAFL6k7p9xrPVjWTP17CgwyzgGw8TxmEUmJ4MDX 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb: -0.00100000 Waves 2023.03.05 00:55 [2475889] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves
{ "type": 13, "id": "Ag6N2TAFL6k7p9xrPVjWTP17CgwyzgGw8TxmEUmJ4MDX", "fee": 100000, "feeAssetId": null, "timestamp": 1677967033500, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "r57ptDVK8R9soewjkPLoj9iuumEXZdB24BafQiRyYFE55tuJHXBJvZLQXPTDZHipUZQa4gMPw74bZw7ZXb7B5Wy" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzAgt0b3RhbEFtb3VudAENdHJhbnNmZXJPck5vdAICdG8HYXNzZXRJZAMJAAACBQJ0bwUEdGhpcwkBC1N0cmluZ0VudHJ5AgIAAgAJAQ5TY3JpcHRUcmFuc2ZlcgMFAnRvAAEFB2Fzc2V0SWQCAWkBBGluaXQDDmNvbGxlY3Rpb25OYW1lBnN5bWJvbAtkZXNjcmlwdGlvbgMJAAACCAUBaQZjYWxsZXIFBHRoaXMJAMwIAgkBC1N0cmluZ0VudHJ5AgIOY29sbGVjdGlvbk5hbWUFDmNvbGxlY3Rpb25OYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQICBnN5bWJvbAUGc3ltYm9sCQDMCAIJAQtTdHJpbmdFbnRyeQICC2Rlc2NyaXB0aW9uBQtkZXNjcmlwdGlvbgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQAAAUDbmlsCQACAQIJb25seSBkQXBwAWkBBG1pbnQCAnRvCHRva2VuVVJJAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwQHdG9rZW5JZAkAZAIFC3RvdGFsQW1vdW50AAEEBG5hbWUJAKwCAgkArAICBQZzeW1ib2wCAS0JAKQDAQUHdG9rZW5JZAkAzAgCCQELU3RyaW5nRW50cnkCAgRuYW1lBQRuYW1lCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgt0b3RhbEFtb3VudAUHdG9rZW5JZAkAzAgCCQELU3RyaW5nRW50cnkCBQRuYW1lBQh0b2tlblVSSQUDbmlsCQACAQIJb25seSBkQXBwAORS/X8=", "height": 2475889, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hm9vYwtJyf9k9fa78KfXJCXyES2gGkJCuN4M35W17c1E Next: 9hWny2C9WsjYgjmijcT2S1UhwuHxkVUU7up9C4Sgt4oh Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | then { | |
27 | 27 | let tokenId = (totalAmount + 1) | |
28 | 28 | let name = ((symbol + "-") + toString(tokenId)) | |
29 | - | let asset = Issue(name, description, 1, 0, false, unit, height) | |
30 | - | let assetId = calculateAssetId(asset) | |
31 | - | let toAddress = Address(fromBase58String(to)) | |
32 | - | let transfer = transferOrNot(toAddress, assetId) | |
33 | - | if ((transfer == transfer)) | |
34 | - | then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
35 | - | else throw("Strict value is not equal to itself.") | |
29 | + | [StringEntry("name", name), IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
36 | 30 | } | |
37 | 31 | else throw("only dApp") | |
38 | 32 |
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, "collectionName") | |
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 | 28 | let name = ((symbol + "-") + toString(tokenId)) | |
29 | - | let asset = Issue(name, description, 1, 0, false, unit, height) | |
30 | - | let assetId = calculateAssetId(asset) | |
31 | - | let toAddress = Address(fromBase58String(to)) | |
32 | - | let transfer = transferOrNot(toAddress, assetId) | |
33 | - | if ((transfer == transfer)) | |
34 | - | then [asset, transfer, IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
35 | - | else throw("Strict value is not equal to itself.") | |
29 | + | [StringEntry("name", name), IntegerEntry("totalAmount", tokenId), StringEntry(name, tokenURI)] | |
36 | 30 | } | |
37 | 31 | else throw("only dApp") | |
38 | 32 | ||
39 | 33 |
github/deemru/w8io/026f985 25.92 ms ◑