tx · AZVy4uBASEEoqJgtR6ssvbrZDkeCwwtLGrGxGenycMF6

3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw:  -0.01000000 Waves

2023.03.13 09:22 [2487899] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves

{ "type": 13, "id": "AZVy4uBASEEoqJgtR6ssvbrZDkeCwwtLGrGxGenycMF6", "fee": 1000000, "feeAssetId": null, "timestamp": 1678688658448, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "2oi9v7iiua7zTWpSdfBymASWEGqw8yFrEFcG9ANXXBx2FNsd9kHWtDpVuDVWA4Sm2jyFR8xtdCHBqv1wHvnfRZVt" ], "script": "base64:BgIVCAISAwoBCBIMCgoICAgICAgBCAgIDAAJc2VwYXJhdG9yAgFfAARrQnV5AgNidXkABmtQcmljZQIFcHJpY2UABWtTZWxsAgRzZWxsABJtYXhBdWN0aW9uRHVyYXRpb24AHgAFdGVhbXMBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+AAVXQVZFUwEAAARrQmlkAgNiaWQABnBhdXNlZAYADHN0YXR1c0Zvck5GVAkAlgoEAgRPUEVOAgZDTE9TRUQCCFJFV0FSREVEAghDQU5DRUxFRAALZEFwcEFkZHJlc3MBGgFUSrhPbN7C2pPt9I7pSjb41U9/ldVVW12gAQVpc05mdAEHYXNzZXRJZAQHJG1hdGNoMAkA7AcBBQdhc3NldElkAwkAAQIFByRtYXRjaDACBUFzc2V0BAV0b2tlbgUHJG1hdGNoMAMDCQAAAggFBXRva2VuCGRlY2ltYWxzAAAJAAACCAUFdG9rZW4IcXVhbnRpdHkAAQcJAAACCAUFdG9rZW4KcmVpc3N1YWJsZQcHBwIBaQEJc2V0UGF1c2VkAQVwYXVzZQQGY2FsbGVy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ICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAhFuZnRfc2VsbGluZ19wcmljZQURbmZ0X3NlbGxpbmdfcHJpY2UJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAgpuZnRfb25TZWxsBQpuZnRfb25TZWxsCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQDYBAEFB2lzc3VlSWQFCXNlcGFyYXRvcgIIbmZ0X2RhdGEFCG5mdF9kYXRhCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQDYBAEFBHR4SWQFCXNlcGFyYXRvcgIJaXNzdWVfbmZ0CQDYBAEFB2lzc3VlSWQFA25pbADELRyw", "height": 2487899, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ZokrGVqdVQSbgN1a4wHrk4arwEAqoFxVTZ87obBtdbo Next: HmmAm6GuWHs7aYstqE6RH2WdFoqw5442xUoP5bKbM5Mc Diff:
OldNewDifferences
1717
1818 let kBid = "bid"
1919
20+let paused = true
21+
2022 let statusForNFT = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED")
2123
2224 let dAppAddress = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq'
3335 }
3436
3537
36-func onNft (paused) = match paused {
37- case paused: Boolean =>
38- (paused == true)
39- case _ =>
40- false
41-}
42-
43-
4438 @Callable(i)
45-func createNft (nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = {
46- let newToken = Issue(nft_name, nft_description, 1, 0, false)
47- let issueId = calculateAssetId(newToken)
48- let txId = i.transactionId
49- if (!(onNft(true)))
50- then throw("paused for sometimes")
51- else [newToken, ScriptTransfer(i.caller, 1, issueId), StringEntry(((toBase58String(issueId) + separator) + "Owner"), toString(i.caller)), StringEntry(((toBase58String(issueId) + separator) + "nft_type"), nft_type), StringEntry(((toBase58String(issueId) + separator) + "nft_tags"), nft_tags), StringEntry(((toBase58String(issueId) + separator) + "nft_dAppAddress"), nft_dAppAddress), IntegerEntry(((toBase58String(issueId) + separator) + "nft_selling_price"), nft_selling_price), StringEntry(((toBase58String(issueId) + separator) + "nft_onSell"), nft_onSell), StringEntry(((toBase58String(issueId) + separator) + "nft_data"), nft_data), StringEntry(((toBase58String(txId) + separator) + "issue_nft"), toBase58String(issueId))]
39+func setPaused (pause) = {
40+ let caller = i.caller.bytes
41+ if ((pause == "true"))
42+ then [StringEntry(pause, "true")]
43+ else if ((paused == false))
44+ then [StringEntry(pause, "false")]
45+ else nil
5246 }
5347
5448
5549
5650 @Callable(i)
57-func setPaused (paused) = {
58- let caller = i.caller.bytes
59- if ((paused == "true"))
60- then [BooleanEntry(paused, true)]
61- else if ((paused == "false"))
62- then [BooleanEntry(paused, false)]
63- else nil
51+func createNft (pause,nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = {
52+ let newToken = Issue(nft_name, nft_description, 1, 0, false)
53+ let issueId = calculateAssetId(newToken)
54+ let txId = i.transactionId
55+ if ((pause == "true"))
56+ then throw("sfsffref")
57+ else [newToken, ScriptTransfer(i.caller, 1, issueId), StringEntry(((toBase58String(issueId) + separator) + "Owner"), toString(i.caller)), StringEntry(((toBase58String(issueId) + separator) + "nft_type"), nft_type), StringEntry(((toBase58String(issueId) + separator) + "nft_tags"), nft_tags), StringEntry(((toBase58String(issueId) + separator) + "nft_dAppAddress"), nft_dAppAddress), IntegerEntry(((toBase58String(issueId) + separator) + "nft_selling_price"), nft_selling_price), StringEntry(((toBase58String(issueId) + separator) + "nft_onSell"), nft_onSell), StringEntry(((toBase58String(issueId) + separator) + "nft_data"), nft_data), StringEntry(((toBase58String(txId) + separator) + "issue_nft"), toBase58String(issueId))]
6458 }
6559
6660
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "_"
55
66 let kBuy = "buy"
77
88 let kPrice = "price"
99
1010 let kSell = "sell"
1111
1212 let maxAuctionDuration = 30
1313
1414 let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
1515
1616 let WAVES = base58''
1717
1818 let kBid = "bid"
1919
20+let paused = true
21+
2022 let statusForNFT = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED")
2123
2224 let dAppAddress = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq'
2325
2426 func isNft (assetId) = match assetInfo(assetId) {
2527 case token: Asset =>
2628 if (if ((token.decimals == 0))
2729 then (token.quantity == 1)
2830 else false)
2931 then (token.reissuable == false)
3032 else false
3133 case _ =>
3234 false
3335 }
3436
3537
36-func onNft (paused) = match paused {
37- case paused: Boolean =>
38- (paused == true)
39- case _ =>
40- false
41-}
42-
43-
4438 @Callable(i)
45-func createNft (nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = {
46- let newToken = Issue(nft_name, nft_description, 1, 0, false)
47- let issueId = calculateAssetId(newToken)
48- let txId = i.transactionId
49- if (!(onNft(true)))
50- then throw("paused for sometimes")
51- else [newToken, ScriptTransfer(i.caller, 1, issueId), StringEntry(((toBase58String(issueId) + separator) + "Owner"), toString(i.caller)), StringEntry(((toBase58String(issueId) + separator) + "nft_type"), nft_type), StringEntry(((toBase58String(issueId) + separator) + "nft_tags"), nft_tags), StringEntry(((toBase58String(issueId) + separator) + "nft_dAppAddress"), nft_dAppAddress), IntegerEntry(((toBase58String(issueId) + separator) + "nft_selling_price"), nft_selling_price), StringEntry(((toBase58String(issueId) + separator) + "nft_onSell"), nft_onSell), StringEntry(((toBase58String(issueId) + separator) + "nft_data"), nft_data), StringEntry(((toBase58String(txId) + separator) + "issue_nft"), toBase58String(issueId))]
39+func setPaused (pause) = {
40+ let caller = i.caller.bytes
41+ if ((pause == "true"))
42+ then [StringEntry(pause, "true")]
43+ else if ((paused == false))
44+ then [StringEntry(pause, "false")]
45+ else nil
5246 }
5347
5448
5549
5650 @Callable(i)
57-func setPaused (paused) = {
58- let caller = i.caller.bytes
59- if ((paused == "true"))
60- then [BooleanEntry(paused, true)]
61- else if ((paused == "false"))
62- then [BooleanEntry(paused, false)]
63- else nil
51+func createNft (pause,nft_name,nft_owner,nft_dAppAddress,nft_type,nft_tags,nft_selling_price,nft_description,nft_onSell,nft_data) = {
52+ let newToken = Issue(nft_name, nft_description, 1, 0, false)
53+ let issueId = calculateAssetId(newToken)
54+ let txId = i.transactionId
55+ if ((pause == "true"))
56+ then throw("sfsffref")
57+ else [newToken, ScriptTransfer(i.caller, 1, issueId), StringEntry(((toBase58String(issueId) + separator) + "Owner"), toString(i.caller)), StringEntry(((toBase58String(issueId) + separator) + "nft_type"), nft_type), StringEntry(((toBase58String(issueId) + separator) + "nft_tags"), nft_tags), StringEntry(((toBase58String(issueId) + separator) + "nft_dAppAddress"), nft_dAppAddress), IntegerEntry(((toBase58String(issueId) + separator) + "nft_selling_price"), nft_selling_price), StringEntry(((toBase58String(issueId) + separator) + "nft_onSell"), nft_onSell), StringEntry(((toBase58String(issueId) + separator) + "nft_data"), nft_data), StringEntry(((toBase58String(txId) + separator) + "issue_nft"), toBase58String(issueId))]
6458 }
6559
6660

github/deemru/w8io/169f3d6 
39.48 ms