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:BgIKCAISBgoECAgIAQEAEm1heEF1Y3Rpb25EdXJhdGlvbgAHAQFpAQphZGRBdWN0aW9uBAVzdGFydANlbmQKc3RhcnRQcmljZQhkdXJhdGlvbgQEdHhJZAkA2AQBCAUBaQ10cmFuc2FjdGlvbklkBAVuZnRJZAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAVwcmljZQkBBXZhbHVlAQUKc3RhcnRQcmljZQQJZW5kSGVpZ2h0CQBkAggFCWxhc3RCbG9jawZoZWlnaHQFCGR1cmF0aW9uBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEEWNoZWNrTmZ0QXVjdGlvbmVkBAckbWF0Y2gwCQCdCAIFBHRoaXMJAKwCAgkArAICCQDYBAEFBW5mdElkAgtuZnRfc3RhdHVzXwkA2AQBBQZjYWxsZXIDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBgcDCQAAAggJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBQR1bml0CQACAQIQTkZUIG5vdCBhdHRhY2hlZAMJAAACBRFjaG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View: original | compacted Prev: CHsvREfCBsemVaShopucsz5AHmprXPsaxSabXs7fDaf Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 7 | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func addAuction (c,d,e,f) = { | |
8 | 8 | let g = toBase58String(b.transactionId) | |
9 | 9 | let h = value(b.payments[0].assetId) | |
10 | 10 | let i = value(e) | |
11 | 11 | let j = (lastBlock.height + f) | |
12 | 12 | let k = b.caller.bytes | |
13 | 13 | let l = { | |
14 | 14 | let m = getString(this, ((toBase58String(h) + "nft_status_") + toBase58String(k))) | |
15 | 15 | if ($isInstanceOf(m, "String")) | |
16 | 16 | then { | |
17 | 17 | let n = m | |
18 | 18 | true | |
19 | 19 | } | |
20 | 20 | else false | |
21 | 21 | } | |
22 | 22 | if ((b.payments[0].assetId == unit)) | |
23 | 23 | then throw("NFT not attached") | |
24 | 24 | else if ((l == true)) | |
25 | 25 | then throw("Already in auction list") | |
26 | 26 | else if ((f > a)) | |
27 | 27 | then throw(("Duration is too long. Must be less than or equal to 7 " + toString(a))) | |
28 | 28 | 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")] | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 |
github/deemru/w8io/026f985 36.89 ms ◑