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/ldVVW12gAQVpc05mdAEHYXNzZXRJZAQHJG1hdGNoMAkA7AcBBQdhc3NldElkAwkAAQIFByRtYXRjaDACBUFzc2V0BAV0b2tlbgUHJG1hdGNoMAMDCQAAAggFBXRva2VuCGRlY2ltYWxzAAAJAAACCAUFdG9rZW4IcXVhbnRpdHkAAQcJAAACCAUFdG9rZW4KcmVpc3N1YWJsZQcHBwIBaQEJc2V0UGF1c2VkAQVwYXVzZQQGY2FsbGVyC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CQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAhFuZnRfc2VsbGluZ19wcmljZQURbmZ0X3NlbGxpbmdfcHJpY2UJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJANgEAQUHaXNzdWVJZAUJc2VwYXJhdG9yAgpuZnRfb25TZWxsBQpuZnRfb25TZWxsCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQDYBAEFB2lzc3VlSWQFCXNlcGFyYXRvcgIIbmZ0X2RhdGEFCG5mdF9kYXRhCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQDYBAEFBHR4SWQFCXNlcGFyYXRvcgIJaXNzdWVfbmZ0CQDYBAEFB2lzc3VlSWQFA25pbADELRyw", "height": 2487899, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ZokrGVqdVQSbgN1a4wHrk4arwEAqoFxVTZ87obBtdbo Next: HmmAm6GuWHs7aYstqE6RH2WdFoqw5442xUoP5bKbM5Mc Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | ||
18 | 18 | let h = "bid" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = true | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
23 | 23 | ||
24 | - | func k (l) = { | |
25 | - | let m = assetInfo(l) | |
26 | - | if ($isInstanceOf(m, "Asset")) | |
24 | + | let k = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
25 | + | ||
26 | + | func l (m) = { | |
27 | + | let n = assetInfo(m) | |
28 | + | if ($isInstanceOf(n, "Asset")) | |
27 | 29 | then { | |
28 | - | let | |
29 | - | if (if (( | |
30 | - | then ( | |
30 | + | let o = n | |
31 | + | if (if ((o.decimals == 0)) | |
32 | + | then (o.quantity == 1) | |
31 | 33 | else false) | |
32 | - | then ( | |
34 | + | then (o.reissuable == false) | |
33 | 35 | else false | |
34 | 36 | } | |
35 | 37 | else false | |
36 | 38 | } | |
37 | 39 | ||
38 | 40 | ||
39 | - | func o (p) = { | |
40 | - | let m = p | |
41 | - | if ($isInstanceOf(m, "Boolean")) | |
42 | - | then { | |
43 | - | let p = m | |
44 | - | (p == true) | |
45 | - | } | |
46 | - | else false | |
47 | - | } | |
48 | - | ||
49 | - | ||
50 | - | @Callable(q) | |
51 | - | func createNft (r,s,t,u,v,w,x,y,z) = { | |
52 | - | let A = Issue(r, x, 1, 0, false) | |
53 | - | let B = calculateAssetId(A) | |
54 | - | let C = q.transactionId | |
55 | - | if (!(o(true))) | |
56 | - | then throw("paused for sometimes") | |
57 | - | else [A, ScriptTransfer(q.caller, 1, B), StringEntry(((toBase58String(B) + a) + "Owner"), toString(q.caller)), StringEntry(((toBase58String(B) + a) + "nft_type"), u), StringEntry(((toBase58String(B) + a) + "nft_tags"), v), StringEntry(((toBase58String(B) + a) + "nft_dAppAddress"), t), IntegerEntry(((toBase58String(B) + a) + "nft_selling_price"), w), StringEntry(((toBase58String(B) + a) + "nft_onSell"), y), StringEntry(((toBase58String(B) + a) + "nft_data"), z), StringEntry(((toBase58String(C) + a) + "issue_nft"), toBase58String(B))] | |
41 | + | @Callable(p) | |
42 | + | func setPaused (q) = { | |
43 | + | let r = p.caller.bytes | |
44 | + | if ((q == "true")) | |
45 | + | then [StringEntry(q, "true")] | |
46 | + | else if ((i == false)) | |
47 | + | then [StringEntry(q, "false")] | |
48 | + | else nil | |
58 | 49 | } | |
59 | 50 | ||
60 | 51 | ||
61 | 52 | ||
62 | - | @Callable( | |
63 | - | func | |
64 | - | let | |
65 | - | | |
66 | - | | |
67 | - | | |
68 | - | ||
69 | - | ||
53 | + | @Callable(p) | |
54 | + | func createNft (q,s,t,u,v,w,x,y,z,A) = { | |
55 | + | let B = Issue(s, y, 1, 0, false) | |
56 | + | let C = calculateAssetId(B) | |
57 | + | let D = p.transactionId | |
58 | + | if ((q == "true")) | |
59 | + | then throw("sfsffref") | |
60 | + | else [B, ScriptTransfer(p.caller, 1, C), StringEntry(((toBase58String(C) + a) + "Owner"), toString(p.caller)), StringEntry(((toBase58String(C) + a) + "nft_type"), v), StringEntry(((toBase58String(C) + a) + "nft_tags"), w), StringEntry(((toBase58String(C) + a) + "nft_dAppAddress"), u), IntegerEntry(((toBase58String(C) + a) + "nft_selling_price"), x), StringEntry(((toBase58String(C) + a) + "nft_onSell"), z), StringEntry(((toBase58String(C) + a) + "nft_data"), A), StringEntry(((toBase58String(D) + a) + "issue_nft"), toBase58String(C))] | |
70 | 61 | } | |
71 | 62 | ||
72 | 63 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_" | |
5 | 5 | ||
6 | 6 | let b = "buy" | |
7 | 7 | ||
8 | 8 | let c = "price" | |
9 | 9 | ||
10 | 10 | let d = "sell" | |
11 | 11 | ||
12 | 12 | let e = 30 | |
13 | 13 | ||
14 | 14 | let f = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' | |
15 | 15 | ||
16 | 16 | let g = base58'' | |
17 | 17 | ||
18 | 18 | let h = "bid" | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = true | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED") | |
23 | 23 | ||
24 | - | func k (l) = { | |
25 | - | let m = assetInfo(l) | |
26 | - | if ($isInstanceOf(m, "Asset")) | |
24 | + | let k = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq' | |
25 | + | ||
26 | + | func l (m) = { | |
27 | + | let n = assetInfo(m) | |
28 | + | if ($isInstanceOf(n, "Asset")) | |
27 | 29 | then { | |
28 | - | let | |
29 | - | if (if (( | |
30 | - | then ( | |
30 | + | let o = n | |
31 | + | if (if ((o.decimals == 0)) | |
32 | + | then (o.quantity == 1) | |
31 | 33 | else false) | |
32 | - | then ( | |
34 | + | then (o.reissuable == false) | |
33 | 35 | else false | |
34 | 36 | } | |
35 | 37 | else false | |
36 | 38 | } | |
37 | 39 | ||
38 | 40 | ||
39 | - | func o (p) = { | |
40 | - | let m = p | |
41 | - | if ($isInstanceOf(m, "Boolean")) | |
42 | - | then { | |
43 | - | let p = m | |
44 | - | (p == true) | |
45 | - | } | |
46 | - | else false | |
47 | - | } | |
48 | - | ||
49 | - | ||
50 | - | @Callable(q) | |
51 | - | func createNft (r,s,t,u,v,w,x,y,z) = { | |
52 | - | let A = Issue(r, x, 1, 0, false) | |
53 | - | let B = calculateAssetId(A) | |
54 | - | let C = q.transactionId | |
55 | - | if (!(o(true))) | |
56 | - | then throw("paused for sometimes") | |
57 | - | else [A, ScriptTransfer(q.caller, 1, B), StringEntry(((toBase58String(B) + a) + "Owner"), toString(q.caller)), StringEntry(((toBase58String(B) + a) + "nft_type"), u), StringEntry(((toBase58String(B) + a) + "nft_tags"), v), StringEntry(((toBase58String(B) + a) + "nft_dAppAddress"), t), IntegerEntry(((toBase58String(B) + a) + "nft_selling_price"), w), StringEntry(((toBase58String(B) + a) + "nft_onSell"), y), StringEntry(((toBase58String(B) + a) + "nft_data"), z), StringEntry(((toBase58String(C) + a) + "issue_nft"), toBase58String(B))] | |
41 | + | @Callable(p) | |
42 | + | func setPaused (q) = { | |
43 | + | let r = p.caller.bytes | |
44 | + | if ((q == "true")) | |
45 | + | then [StringEntry(q, "true")] | |
46 | + | else if ((i == false)) | |
47 | + | then [StringEntry(q, "false")] | |
48 | + | else nil | |
58 | 49 | } | |
59 | 50 | ||
60 | 51 | ||
61 | 52 | ||
62 | - | @Callable( | |
63 | - | func | |
64 | - | let | |
65 | - | | |
66 | - | | |
67 | - | | |
68 | - | ||
69 | - | ||
53 | + | @Callable(p) | |
54 | + | func createNft (q,s,t,u,v,w,x,y,z,A) = { | |
55 | + | let B = Issue(s, y, 1, 0, false) | |
56 | + | let C = calculateAssetId(B) | |
57 | + | let D = p.transactionId | |
58 | + | if ((q == "true")) | |
59 | + | then throw("sfsffref") | |
60 | + | else [B, ScriptTransfer(p.caller, 1, C), StringEntry(((toBase58String(C) + a) + "Owner"), toString(p.caller)), StringEntry(((toBase58String(C) + a) + "nft_type"), v), StringEntry(((toBase58String(C) + a) + "nft_tags"), w), StringEntry(((toBase58String(C) + a) + "nft_dAppAddress"), u), IntegerEntry(((toBase58String(C) + a) + "nft_selling_price"), x), StringEntry(((toBase58String(C) + a) + "nft_onSell"), z), StringEntry(((toBase58String(C) + a) + "nft_data"), A), StringEntry(((toBase58String(D) + a) + "issue_nft"), toBase58String(C))] | |
70 | 61 | } | |
71 | 62 | ||
72 | 63 |
github/deemru/w8io/169f3d6 33.63 ms ◑