tx · 7gyfLNWYowBXMhj6emju9BMcn69YrRG6khV2MhxdG1nW 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo: -0.01000000 Waves 2022.11.09 08:51 [2309195] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves
{ "type": 13, "id": "7gyfLNWYowBXMhj6emju9BMcn69YrRG6khV2MhxdG1nW", "fee": 1000000, "feeAssetId": null, "timestamp": 1667972859893, "version": 2, "chainId": 84, "sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo", "senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V", "proofs": [ "T3gu2cAqwZukByxa4nYUyE5ftVx1kzHtUZcK6t6fWaJmUJNSqgZHRnQMZVTvquHS5CLC5TG5an7WoiER4CoL6BV" ], "script": "base64:BgIOCAISCgoIAQgICAgIAQEAAQFpAQZidXluZnQIBmFtb3VudAdhc3NldElkBW5mdGlkC2NyZWF0b3JBZGRyCXNhbGVPd25lcgZjYWxsZXIOYW1vdW50Rm9yT3duZXIQYW1vdW50Rm9yQ3JlYXRvcgQMb3duZXJBZGRyZXNzCAUBaQZjYWxsZXIEBUFsaWNlCQEHQWRkcmVzcwEBGgFUolA1z6MMrG/q4XCt3z9rz9e8jR7/tzd1CQDMCAIJAQxJbnRlZ2VyRW50cnkCAhBhbW91bnRGb3JDcmVhdG9yBRBhbW91bnRGb3JDcmVhdG9yCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg5hbW91bnRGb3JPd25lcgUOYW1vdW50Rm9yT3duZXIJAMwIAgkBDEludGVnZXJFbnRyeQICBmFtb3VudAUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQICB2Fzc2V0aWQFB2Fzc2V0SWQJAMwIAgkBC1N0cmluZ0VudHJ5AgIFbmZ0aWQFBW5mdGlkCQDMCAIJAQtTdHJpbmdFbnRyeQICC2NyZWF0b3JBZGRyBQtjcmVhdG9yQWRkcgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKUIAQUMb3duZXJBZGRyZXNzAglzYWxlT3duZXIFCXNhbGVPd25lcgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKUIAQUMb3duZXJBZGRyZXNzAgZjYWxsZXIFBmNhbGxlcgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKUIAQUMb3duZXJBZGRyZXNzAgtjcmVhdG9yQWRkcgULY3JlYXRvckFkZHIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQClCAEFDG93bmVyQWRkcmVzcwIJc2FsZU93bmVyBQlzYWxlT3duZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQClCAEFDG93bmVyQWRkcmVzcwIGY2FsbGVyBQZjYWxsZXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUFQWxpY2UFDmFtb3VudEZvck93bmVyBQR1bml0BQNuaWwAng2S4A==", "height": 2309195, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GjJ2S5f2HEmdTDWRFwmPyZ7GwZB3ohvaxsgz88DCx59D Next: H7E5moqAsnN6YmXWFpA3weygGmgyhvb4546hCbjsyk4K Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 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)] | |
8 | + | let ownerAddress = i.caller | |
9 | + | let Alice = Address(base58'3N4iKL6ikwxiL7yNvWQmw7rg3wGna8uL6LU') | |
10 | + | [IntegerEntry("amountForCreator", amountForCreator), IntegerEntry("amountForOwner", amountForOwner), IntegerEntry("amount", amount), StringEntry("assetid", assetId), StringEntry("nftid", nftid), StringEntry("creatorAddr", creatorAddr), StringEntry((toString(ownerAddress) + "saleOwner"), saleOwner), StringEntry((toString(ownerAddress) + "caller"), caller), StringEntry((toString(ownerAddress) + "creatorAddr"), creatorAddr), StringEntry((toString(ownerAddress) + "saleOwner"), saleOwner), StringEntry((toString(ownerAddress) + "caller"), caller), ScriptTransfer(Alice, amountForOwner, unit)] | |
10 | 11 | } | |
11 | 12 | ||
12 | 13 |
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 | 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)] | |
8 | + | let ownerAddress = i.caller | |
9 | + | let Alice = Address(base58'3N4iKL6ikwxiL7yNvWQmw7rg3wGna8uL6LU') | |
10 | + | [IntegerEntry("amountForCreator", amountForCreator), IntegerEntry("amountForOwner", amountForOwner), IntegerEntry("amount", amount), StringEntry("assetid", assetId), StringEntry("nftid", nftid), StringEntry("creatorAddr", creatorAddr), StringEntry((toString(ownerAddress) + "saleOwner"), saleOwner), StringEntry((toString(ownerAddress) + "caller"), caller), StringEntry((toString(ownerAddress) + "creatorAddr"), creatorAddr), StringEntry((toString(ownerAddress) + "saleOwner"), saleOwner), StringEntry((toString(ownerAddress) + "caller"), caller), ScriptTransfer(Alice, amountForOwner, unit)] | |
10 | 11 | } | |
11 | 12 | ||
12 | 13 |
github/deemru/w8io/026f985 20.11 ms ◑