tx · GjJ2S5f2HEmdTDWRFwmPyZ7GwZB3ohvaxsgz88DCx59D

3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo:  -0.01000000 Waves

2022.11.07 15:34 [2306737] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves

{ "type": 13, "id": "GjJ2S5f2HEmdTDWRFwmPyZ7GwZB3ohvaxsgz88DCx59D", "fee": 1000000, "feeAssetId": null, "timestamp": 1667824245912, "version": 2, "chainId": 84, "sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo", "senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V", "proofs": [ "Vnm9yEWfq7MjMZvdLSEapcM7p9qRwjMitGTBKPdTYCyDpkQr9DWTSbD62Da4X91X8yXwa13tfT4PJ5XxiQkXL6v" ], "script": "base64:BgIOCAISCgoIAQgICAgIAQEAAQFpAQZidXluZnQIBmFtb3VudAdhc3NldElkBW5mdGlkC2NyZWF0b3JBZGRyCXNhbGVPd25lcgZjYWxsZXIOYW1vdW50Rm9yT3duZXIQYW1vdW50Rm9yQ3JlYXRvcgQLdXNlckFkZHJlc3MIBQFpBmNhbGxlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQClCAEFC3VzZXJBZGRyZXNzAhBhbW91bnRGb3JDcmVhdG9yBRBhbW91bnRGb3JDcmVhdG9yCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKUIAQULdXNlckFkZHJlc3MCDmFtb3VudEZvck93bmVyBQ5hbW91bnRGb3JPd25lcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQClCAEFC3VzZXJBZGRyZXNzAgZhbW91bnQFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKUIAQULdXNlckFkZHJlc3MCB2Fzc2V0aWQFB2Fzc2V0SWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQClCAEFC3VzZXJBZGRyZXNzAgVuZnRpZAUFbmZ0aWQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQClCAEFC3VzZXJBZGRyZXNzAgtjcmVhdG9yQWRkcgULY3JlYXRvckFkZHIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQClCAEFC3VzZXJBZGRyZXNzAglzYWxlT3duZXIFCXNhbGVPd25lcgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKUIAQULdXNlckFkZHJlc3MCBmNhbGxlcgUGY2FsbGVyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkApQgBBQt1c2VyQWRkcmVzcwILY3JlYXRvckFkZHIFC2NyZWF0b3JBZGRyCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkApQgBBQt1c2VyQWRkcmVzcwIJc2FsZU93bmVyBQlzYWxlT3duZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQClCAEFC3VzZXJBZGRyZXNzAgZjYWxsZXIFBmNhbGxlcgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQt1c2VyQWRkcmVzcwUOYW1vdW50Rm9yT3duZXIFBHVuaXQFA25pbAB0LU5a", "height": 2306737, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7VD8g2Ga1bqhk7xhyRHKSUR5rmXy5veDBLLADWTkSh9C Next: 7gyfLNWYowBXMhj6emju9BMcn69YrRG6khV2MhxdG1nW Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func buyItem (nft_name,amount,nft_description,nft_price) = {
8- let ownerAddress = i.caller
9-[StringEntry((toString(ownerAddress) + "nft_name"), nft_name), IntegerEntry((toString(ownerAddress) + "amount"), amount), StringEntry((toString(ownerAddress) + "nft_description"), nft_description), IntegerEntry((toString(ownerAddress) + "nft_price"), nft_price), ScriptTransfer(ownerAddress, nft_price, unit)]
7+func buynft (amount,assetId,nftid,creatorAddr,saleOwner,caller,amountForOwner,amountForCreator) = {
8+ let userAddress = i.caller
9+[IntegerEntry((toString(userAddress) + "amountForCreator"), amountForCreator), IntegerEntry((toString(userAddress) + "amountForOwner"), amountForOwner), IntegerEntry((toString(userAddress) + "amount"), amount), StringEntry((toString(userAddress) + "assetid"), assetId), StringEntry((toString(userAddress) + "nftid"), nftid), StringEntry((toString(userAddress) + "creatorAddr"), creatorAddr), StringEntry((toString(userAddress) + "saleOwner"), saleOwner), StringEntry((toString(userAddress) + "caller"), caller), StringEntry((toString(userAddress) + "creatorAddr"), creatorAddr), StringEntry((toString(userAddress) + "saleOwner"), saleOwner), StringEntry((toString(userAddress) + "caller"), caller), ScriptTransfer(userAddress, amountForOwner, unit)]
1010 }
1111
1212

github/deemru/w8io/026f985 
22.99 ms