tx · FDbSwW8swCGVRa5dWeD1HSAGCirkpHUPipLmZC19Yh9M

3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo:  -0.01000000 Waves

2022.12.07 13:38 [2349823] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves

{ "type": 13, "id": "FDbSwW8swCGVRa5dWeD1HSAGCirkpHUPipLmZC19Yh9M", "fee": 1000000, "feeAssetId": null, "timestamp": 1670409484575, "version": 2, "chainId": 84, "sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo", "senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V", "proofs": [ "3M1EsBC4r87Mvj4KxQVhUuU1mnhnrrsYLhNJPxv1BBUsLGN5Np6j8rzEM8iNC1UKK8WWRLK2djWarbrjQ8nNsuyG" ], "script": "base64:BgIKCAISBgoECAgIAQEAEm1heEF1Y3Rpb25EdXJhdGlvbgAHAQFpAQphZGRBdWN0aW9uBAVzdGFydANlbmQKc3RhcnRQcmljZQhkdXJhdGlvbgQEdHhJZAkA2AQBCAUBaQ10cmFuc2FjdGlvbklkBAVuZnRJZAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAVwcmljZQkBBXZhbHVlAQUKc3RhcnRQcmljZQQJZW5kSGVpZ2h0CQBkAggFCWxhc3RCbG9jawZoZWlnaHQFCGR1cmF0aW9uBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEEWNoZWNrTmZ0QXVjdGlvbmVkBAckbWF0Y2gwCQCdCAIFBHRoaXMJAKwCAgkArAICCQDYBAEFBW5mdElkAgtuZnRfc3RhdHVzXwkA2AQBBQZjYWxsZXIDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBgcDCQAAAggJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBQR1bml0CQACAQIQTkZUIG5vdCBhdHRhY2hlZAMJAAACBRFja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} View: original | compacted Prev: CHsvREfCBsemVaShopucsz5AHmprXPsaxSabXs7fDaf Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 7
55
66 @Callable(b)
77 func addAuction (c,d,e,f) = {
88 let g = toBase58String(b.transactionId)
99 let h = value(b.payments[0].assetId)
1010 let i = value(e)
1111 let j = (lastBlock.height + f)
1212 let k = b.caller.bytes
1313 let l = {
1414 let m = getString(this, ((toBase58String(h) + "nft_status_") + toBase58String(k)))
1515 if ($isInstanceOf(m, "String"))
1616 then {
1717 let n = m
1818 true
1919 }
2020 else false
2121 }
2222 if ((b.payments[0].assetId == unit))
2323 then throw("NFT not attached")
2424 else if ((l == true))
2525 then throw("Already in auction list")
2626 else if ((f > a))
2727 then throw(("Duration is too long. Must be less than or equal to 7 " + toString(a)))
2828 else [StringEntry(((g + "_nft_start_auction_date_") + toBase58String(k)), c), StringEntry(((g + "_nft_end_auction_date_") + toBase58String(k)), d), StringEntry((g + "_nft_start_price"), e), StringEntry((g + "_nft_owner"), toString(b.caller)), StringEntry((g + "_nft_on_auction"), toBase58String(h)), StringEntry((g + "_previous_bidder"), "none"), StringEntry((g + "_highest_bid"), "0"), StringEntry((g + "_winner_of_nft"), "0"), StringEntry((g + "_bidder_count"), "0"), StringEntry((g + "_nft_status"), "OPEN")]
2929 }
3030
3131

github/deemru/w8io/026f985 
36.89 ms