tx · 8LvUcmjwtPzxisufx5B4beEy6GWsoTxR6thFxJmmf6Fo 3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR: -0.01000000 Waves 2022.11.04 09:51 [2302029] smart account 3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR > SELF 0.00000000 Waves
{ "type": 13, "id": "8LvUcmjwtPzxisufx5B4beEy6GWsoTxR6thFxJmmf6Fo", "fee": 1000000, "feeAssetId": null, "timestamp": 1667544462925, "version": 2, "chainId": 84, "sender": "3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR", "senderPublicKey": "GjnhUMpwQus4JiztKNVi1bLKtwBS2UT3YpxVyqsYB4KG", "proofs": [ "4C6xBSBpaxSgaNQ5VdouiotRQZYDkXWmFqZncxxaXcPQTjQ51K3WiB4Sovn9xeJfjeq9fpFZ1YzjJSGoPaGNgupD" ], "script": "base64:AAIFAAAAAAAAAAsIAhIHCgUIAQgIAQAAAAAAAAABAAAAAWkBAAAAB2J1eUl0ZW0AAAAFAAAACG5mdF9uYW1lAAAABmFtb3VudAAAAA9jcmVhdG9yX2FkZHJlc3MAAAAPbmZ0X2Rlc2NyaXB0aW9uAAAACW5mdF9wcmljZQQAAAAMb3duZXJBZGRyZXNzCAUAAAABaQAAAAZjYWxsZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAIbmZ0X25hbWUFAAAACG5mdF9uYW1lCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZhbW91bnQFAAAABmFtb3VudAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAA9uZnRfZGVzY3JpcHRpb24FAAAAD25mdF9kZXNjcmlwdGlvbgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJbmZ0X3ByaWNlBQAAAAluZnRfcHJpY2UJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAMb3duZXJBZGRyZXNzBQAAAAluZnRfcHJpY2UFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAMb3duZXJBZGRyZXNzBQAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAB2g58C", "height": 2302029, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8ZMMnXANfUcpYfpudyLgVjnAn49RhVfQ5TDVoDGd3M9t Next: E5m1BFr7cNoebVYRfmAzLpEQUz9FJPX1Rq2ooWT8MEqA Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func addItem (nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = { | |
8 | - | let asset = Issue(nft_name, nft_description, 1, 0, false, unit, 0) | |
9 | - | let assetId = calculateAssetId(asset) | |
10 | - | let ownerAddress = toString(i.caller) | |
11 | - | [StringEntry("nft_name", nft_name), StringEntry("nft_owner", nft_owner), StringEntry("nft_dAppAddress", nft_dAppAddress), StringEntry("nft_type", nft_type), StringEntry("nft_tags", nft_tags), IntegerEntry("nft_selling_price", nft_selling_price), StringEntry("nft_description", nft_description), StringEntry("nft_onSell", nft_onSell), StringEntry("nft_data", nft_data), asset, ScriptTransfer(i.caller, 1, assetId)] | |
7 | + | func buyItem (nft_name,amount,creator_address,nft_description,nft_price) = { | |
8 | + | let ownerAddress = i.caller | |
9 | + | [StringEntry("nft_name", nft_name), IntegerEntry("amount", amount), StringEntry("nft_description", nft_description), IntegerEntry("nft_price", nft_price), ScriptTransfer(ownerAddress, nft_price, unit), ScriptTransfer(ownerAddress, amount, unit)] | |
12 | 10 | } | |
13 | 11 | ||
14 | 12 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func addItem (nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = { | |
8 | - | let asset = Issue(nft_name, nft_description, 1, 0, false, unit, 0) | |
9 | - | let assetId = calculateAssetId(asset) | |
10 | - | let ownerAddress = toString(i.caller) | |
11 | - | [StringEntry("nft_name", nft_name), StringEntry("nft_owner", nft_owner), StringEntry("nft_dAppAddress", nft_dAppAddress), StringEntry("nft_type", nft_type), StringEntry("nft_tags", nft_tags), IntegerEntry("nft_selling_price", nft_selling_price), StringEntry("nft_description", nft_description), StringEntry("nft_onSell", nft_onSell), StringEntry("nft_data", nft_data), asset, ScriptTransfer(i.caller, 1, assetId)] | |
7 | + | func buyItem (nft_name,amount,creator_address,nft_description,nft_price) = { | |
8 | + | let ownerAddress = i.caller | |
9 | + | [StringEntry("nft_name", nft_name), IntegerEntry("amount", amount), StringEntry("nft_description", nft_description), IntegerEntry("nft_price", nft_price), ScriptTransfer(ownerAddress, nft_price, unit), ScriptTransfer(ownerAddress, amount, unit)] | |
12 | 10 | } | |
13 | 11 | ||
14 | 12 |
github/deemru/w8io/169f3d6 21.56 ms ◑