tx · 6icbE26qEKyLWgiT71GpYe7fDUcg7MMZpWTu615wa2W5 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw: -0.01000000 Waves 2023.02.03 16:13 [2433479] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves
{ "type": 13, "id": "6icbE26qEKyLWgiT71GpYe7fDUcg7MMZpWTu615wa2W5", "fee": 1000000, "feeAssetId": null, "timestamp": 1675430123868, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "phcYr9853232iPq1oQKiwKpw4nV62ZVXACCk1suQY3VjovSqfSmvzzhz2E6aYQ4utSEi8Urw4iCUSVnnxUbktQo" ], "script": "base64:BgIHCAISAwoBCAABAWkBB21pbnROZnQBDWlwZnNJbWFnZUhhc2gECXJlY2lwaWVudAgFAWkGY2FsbGVyBAZhc3NldDEJAMIIBQIFYWFhYWECB3N3c2RzZHMAAQAABwQIYXNzZXRJZDEJALgIAQUGYXNzZXQxBAZhc3NldDIJAMIIBQIFYmJiYmICDXNkZmRzZmRzZmRzZmQAAQAABwQIYXNzZXRJZDIJALgIAQUGYXNzZXQyCQDMCAIFBmFzc2V0MQkAzAgCBQZhc3NldDIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFCGFzc2V0SWQxAgVfaXBmcwUNaXBmc0ltYWdlSGFzaAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUIYXNzZXRJZDICBV9pcGZzBQ1pcGZzSW1hZ2VIYXNoCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudAABBQhhc3NldElkMQkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQlyZWNpcGllbnQAAQUIYXNzZXRJZDIFA25pbADL0bcM", "height": 2433479, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fnzs9WCXL7dNjyL4jSMkinsjV8Hq3L7SncYdbwfG5sox Next: H1WDTBPQKWELXXXeeP5gcUNF2RfG2va7meXqvPboTuCd Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func mintNft (ipfsImageHash | |
7 | + | func mintNft (ipfsImageHash) = { | |
8 | 8 | let recipient = i.caller | |
9 | - | let asset = Issue(_name, _description, quantity, 0, false) | |
10 | - | let assetId = calculateAssetId(asset) | |
11 | - | [asset, ScriptTransfer(recipient, quantity, assetId), StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId) + "_name"), _name), StringEntry((toBase58String(assetId) + "_description"), _description), IntegerEntry((toBase58String(assetId) + "quantity"), quantity)] | |
9 | + | let asset1 = Issue("aaaaa", "swsdsds", 1, 0, false) | |
10 | + | let assetId1 = calculateAssetId(asset1) | |
11 | + | let asset2 = Issue("bbbbb", "sdfdsfdsfdsfd", 1, 0, false) | |
12 | + | let assetId2 = calculateAssetId(asset2) | |
13 | + | [asset1, asset2, StringEntry((toBase58String(assetId1) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId2) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)] | |
12 | 14 | } | |
13 | 15 | ||
14 | 16 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func mintNft (ipfsImageHash | |
7 | + | func mintNft (ipfsImageHash) = { | |
8 | 8 | let recipient = i.caller | |
9 | - | let asset = Issue(_name, _description, quantity, 0, false) | |
10 | - | let assetId = calculateAssetId(asset) | |
11 | - | [asset, ScriptTransfer(recipient, quantity, assetId), StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId) + "_name"), _name), StringEntry((toBase58String(assetId) + "_description"), _description), IntegerEntry((toBase58String(assetId) + "quantity"), quantity)] | |
9 | + | let asset1 = Issue("aaaaa", "swsdsds", 1, 0, false) | |
10 | + | let assetId1 = calculateAssetId(asset1) | |
11 | + | let asset2 = Issue("bbbbb", "sdfdsfdsfdsfd", 1, 0, false) | |
12 | + | let assetId2 = calculateAssetId(asset2) | |
13 | + | [asset1, asset2, StringEntry((toBase58String(assetId1) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId2) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)] | |
12 | 14 | } | |
13 | 15 | ||
14 | 16 |
github/deemru/w8io/026f985 37.40 ms ◑