tx · ArJnxN7ttboxVyVm4epF1o5zHyHMdFohmUcJdzEMLmWv 3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq: -0.01000000 Waves 2022.11.01 15:14 [2298035] smart account 3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq > SELF 0.00000000 Waves
{ "type": 13, "id": "ArJnxN7ttboxVyVm4epF1o5zHyHMdFohmUcJdzEMLmWv", "fee": 1000000, "feeAssetId": null, "timestamp": 1667304846018, "version": 2, "chainId": 84, "sender": "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq", "senderPublicKey": "H6UqxUDcJamDRg1uykVcWMn4zhAMTV7i1nfPq1moLWmJ", "proofs": [ "32tztkVRhNWZC9opYSShxAMR84Cxxvw21wrkYWaM1Qu8MhbsKZYRodoWB7j36L7CdJuEvvhACSA8LxoN6zEWteWW" ], "script": "base64:AAIFAAAAAAAAABcIAhILCgkICAgICAEICAgSBgoECAgBCAAAAAEAAAAABXdhdmVzAQAAAAAAAAACAAAAAWkBAAAAB2FkZEl0ZW0AAAAJAAAACG5mdF9uYW1lAAAACW5mdF9vd25lcgAAAA9uZnRfZEFwcEFkZHJlc3MAAAAIbmZ0X3R5cGUAAAAIbmZ0X3RhZ3MAAAARbmZ0X3NlbGxpbmdfcHJpY2UAAAAPbmZ0X2Rlc2NyaXB0aW9uAAAACm5mdF9vblNlbGwAAAAIbmZ0X2RhdGEEAAAABWFzc2V0CQAEQwAAAAcFAAAACG5mdF9uYW1lBQAAAA9uZnRfZGVzY3JpcHRpb24AAAAAAAAAAAEAAAAAAAAAAAAHBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACG5mdF9uYW1lBQAAAAhuZnRfbmFtZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAluZnRfb3duZXIFAAAACW5mdF9vd25lcgkABEwAA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uZnRfaWQFAAAABm5mdF9pZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAABJhc3NldF9vd25lckFkZHJlc3MFAAAADG93bmVyQWRkcmVzcwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAOcGFpZF9mb3JfYXNzZXQFAAAACXBheUFtb3VudAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAABVyZWFsX2lzc3Vlcl9uZnRfdHhfaWQFAAAAEXJlYWxJc3N1ZXJORlRUeElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEHBheW1lbnRSZWNpcGllbnQFAAAACXBheUFtb3VudAUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Z/OXAw==", "height": 2298035, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DhUKZ73uXDEQtWvPSqk89whxJ7t9GskdmJyRVenRRP49 Next: 54bAor4xKKgYE3aXBHGquu6X8GtTvNCM5K9wDwPjDqnL Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | @Callable(i) | |
16 | 16 | func BuyItem (nft_id,ownerAddress,payAmount,realIssuerNFTTxId) = { | |
17 | 17 | let paymentData = i.payments | |
18 | - | let assetId = fromBase58String(" | |
18 | + | let assetId = fromBase58String("BQ3eyFVvWRd9aovEsbtMCepqej8ZcDnjjeDqF9CsK8if") | |
19 | 19 | let paymentRecipient = Address(fromBase58String(ownerAddress)) | |
20 | - | [StringEntry("nft_id", nft_id), StringEntry("asset_ownerAddress", ownerAddress), IntegerEntry("paid_for_asset", payAmount), StringEntry("real_issuer_nft_tx_id", realIssuerNFTTxId), ScriptTransfer(i.caller, 1, assetId)] | |
20 | + | [StringEntry("nft_id", nft_id), StringEntry("asset_ownerAddress", ownerAddress), IntegerEntry("paid_for_asset", payAmount), StringEntry("real_issuer_nft_tx_id", realIssuerNFTTxId), ScriptTransfer(paymentRecipient, payAmount, unit), ScriptTransfer(i.caller, 1, assetId)] | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let waves = base58'' | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func addItem (nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = { | |
8 | 8 | let asset = Issue(nft_name, nft_description, 1, 0, false, unit, 0) | |
9 | 9 | let assetId = calculateAssetId(asset) | |
10 | 10 | [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)] | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func BuyItem (nft_id,ownerAddress,payAmount,realIssuerNFTTxId) = { | |
17 | 17 | let paymentData = i.payments | |
18 | - | let assetId = fromBase58String(" | |
18 | + | let assetId = fromBase58String("BQ3eyFVvWRd9aovEsbtMCepqej8ZcDnjjeDqF9CsK8if") | |
19 | 19 | let paymentRecipient = Address(fromBase58String(ownerAddress)) | |
20 | - | [StringEntry("nft_id", nft_id), StringEntry("asset_ownerAddress", ownerAddress), IntegerEntry("paid_for_asset", payAmount), StringEntry("real_issuer_nft_tx_id", realIssuerNFTTxId), ScriptTransfer(i.caller, 1, assetId)] | |
20 | + | [StringEntry("nft_id", nft_id), StringEntry("asset_ownerAddress", ownerAddress), IntegerEntry("paid_for_asset", payAmount), StringEntry("real_issuer_nft_tx_id", realIssuerNFTTxId), ScriptTransfer(paymentRecipient, payAmount, unit), ScriptTransfer(i.caller, 1, assetId)] | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Verifier(tx) | |
25 | 25 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
26 | 26 |
github/deemru/w8io/026f985 22.04 ms ◑