tx · 6X3G5WNARZrccX77f6LxBrYZBoAGEi2K99P1FTsARY1x

3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx:  -0.01000000 Waves

2023.03.28 19:27 [2510036] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves

{ "type": 13, "id": "6X3G5WNARZrccX77f6LxBrYZBoAGEi2K99P1FTsARY1x", "fee": 1000000, "feeAssetId": null, "timestamp": 1680021000706, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "2aUGMNwGqK95o9GUcLRv4ySDPesAYRaJSyzMAQt1vveFbcpXqWHjgcR6TJKRssuYJxejbShKZe47EYAwfgyfKaeC" ], "script": "base64:BgIICAISBAoCGAEAAQFpAQ5idXlBbGxQcm9kdWN0cwIHbmZ0SW5mbwt0b3RhbGFtb3VudAQFYnV5ZXIIBQFpBmNhbGxlcgQFdGVhbXMBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+BAxidXllckJhbGFuY2UJAPAHAgUFYnV5ZXIFBXRlYW1zBAZhbW91bnQJAQV2YWx1ZQEICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50BARuZlQxCQC1CQIJAJEDAgUHbmZ0SW5mbwAAAgFfBARuZlQyCQC1CQIJAJEDAgUHbmZ0SW5mbwABAgFfBARuZlQzCQC1CQIJAJEDAgUHbmZ0SW5mbwACAgFfBARuZlQ0CQC1CQIJAJEDAgUHbmZ0SW5mbwADAgFfBARuZlQ1CQC1CQIJAJEDAgUHbmZ0SW5mbwAEAgFfAwkAZgIFC3RvdGFsYW1vdW50BQZhbW91bnQJAAIBAhx5b3VyIHBheWluZyBhbW91bnQgaXMgd3JvbmcgAwkAZgIFBmFtb3VudAUMYnV5ZXJCYWxhbmNlCQACAQI6QnV5ZXIgZG9lcyBub3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G5mVDEAAAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQVidXllcgABCQDZBAEJAJEDAgUEbmZUMgAACQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQkA2QQBCQCRAwIFBG5mVDEAAQkBDXBhcnNlSW50VmFsdWUBCQCRAwIFBG5mVDEAAgkA2QQBCQCRAwIFBG5mVDEAAwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQkAkQMCBQRuZlQyAAEJAQ1wYXJzZUludFZhbHVlAQkAkQMCBQRuZlQyAAIJANkEAQkAkQMCBQRuZlQyAAMFA25pbAUDbmlsAKUS/kc=", "height": 2510036, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 24jF4pDyg7kFTqAn9NKxoc28K135hh2VaTtKQY9kBq8D Next: HoY6WWRmE3QJPgZsbsJbbckR9xXK6fjTfVpHbPqriHYa Diff:
OldNewDifferences
1919 else if ((g > f))
2020 then throw("Buyer does not have enough funds to complete the purchase.")
2121 else if ((size(b) == 1))
22- then [StringEntry((((((((("first_nft_Info=" + "nftId") + h[0]) + "seller_address") + h[1]) + "price") + h[2]) + "currency") + h[3]), ("buyer" + toString(d))), ScriptTransfer(d, 1, fromBase58String(h[0])), ScriptTransfer(Address(fromBase58String(h[1])), ((parseIntValue(h[2]) / 100) * 975), e)]
22+ then [StringEntry((((((((("first_nft_Info=" + "nftId") + h[0]) + "seller_address") + h[1]) + "price") + h[2]) + "currency") + h[3]), ("buyer" + toString(d))), ScriptTransfer(d, 1, fromBase58String(h[0])), ScriptTransfer(Address(fromBase58String(h[1])), parseIntValue(h[2]), e)]
2323 else if ((size(b) == 2))
2424 then [StringEntry((((((("first_nft_Info=" + "nftId") + h[0]) + "seller_address") + h[1]) + "price") + h[2]), ("buyer" + toString(d))), StringEntry((((((("second_nft_Info=" + "nftId") + i[0]) + "seller_address") + i[1]) + "price") + i[2]), ("buyer" + toString(d))), ScriptTransfer(d, 1, fromBase58String(h[0])), ScriptTransfer(d, 1, fromBase58String(i[0])), ScriptTransfer(Address(fromBase58String(h[1])), parseIntValue(h[2]), fromBase58String(h[3])), ScriptTransfer(Address(fromBase58String(i[1])), parseIntValue(i[2]), fromBase58String(i[3]))]
2525 else nil
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func buyAllProducts (b,c) = {
88 let d = a.caller
99 let e = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
1010 let f = assetBalance(d, e)
1111 let g = value(a.payments[0].amount)
1212 let h = split(b[0], "_")
1313 let i = split(b[1], "_")
1414 let j = split(b[2], "_")
1515 let k = split(b[3], "_")
1616 let l = split(b[4], "_")
1717 if ((c > g))
1818 then throw("your paying amount is wrong ")
1919 else if ((g > f))
2020 then throw("Buyer does not have enough funds to complete the purchase.")
2121 else if ((size(b) == 1))
22- then [StringEntry((((((((("first_nft_Info=" + "nftId") + h[0]) + "seller_address") + h[1]) + "price") + h[2]) + "currency") + h[3]), ("buyer" + toString(d))), ScriptTransfer(d, 1, fromBase58String(h[0])), ScriptTransfer(Address(fromBase58String(h[1])), ((parseIntValue(h[2]) / 100) * 975), e)]
22+ then [StringEntry((((((((("first_nft_Info=" + "nftId") + h[0]) + "seller_address") + h[1]) + "price") + h[2]) + "currency") + h[3]), ("buyer" + toString(d))), ScriptTransfer(d, 1, fromBase58String(h[0])), ScriptTransfer(Address(fromBase58String(h[1])), parseIntValue(h[2]), e)]
2323 else if ((size(b) == 2))
2424 then [StringEntry((((((("first_nft_Info=" + "nftId") + h[0]) + "seller_address") + h[1]) + "price") + h[2]), ("buyer" + toString(d))), StringEntry((((((("second_nft_Info=" + "nftId") + i[0]) + "seller_address") + i[1]) + "price") + i[2]), ("buyer" + toString(d))), ScriptTransfer(d, 1, fromBase58String(h[0])), ScriptTransfer(d, 1, fromBase58String(i[0])), ScriptTransfer(Address(fromBase58String(h[1])), parseIntValue(h[2]), fromBase58String(h[3])), ScriptTransfer(Address(fromBase58String(i[1])), parseIntValue(i[2]), fromBase58String(i[3]))]
2525 else nil
2626 }
2727
2828

github/deemru/w8io/169f3d6 
86.17 ms