tx · 3BJqnDuXnrnoLxfWkeXrcaSz2nfbUuxZxGHNK1CpL4kL 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc: -0.01000000 Waves 2022.04.21 08:43 [2017896] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves
{ "type": 13, "id": "3BJqnDuXnrnoLxfWkeXrcaSz2nfbUuxZxGHNK1CpL4kL", "fee": 1000000, "feeAssetId": null, "timestamp": 1650519799196, "version": 2, "chainId": 84, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "2pVALxuMz6Zo1Jo1DeB1Bau9t4irzthrxFo2MCCJqxWZQcRKw3EK2F4FbjQRbdCXY85YgpgffmX25j2YejmBFqRG" ], "script": "base64:AAIFAAAAAAAAAA4IAhIECgIICBIECgIIAQAAAAoAAAAAA1NFUAIAAAACX18BAAAAEWtleUNvbnRyb2xBZGRyZXNzAAAAAAIAAAAcJXMlc19fY29uZmlnX19jb250cm9sQWRkcmVzcwEAAAAOa2V5UmVzdEFkZHJlc3MAAAAAAgAAABklcyVzX19jb25maWdfX3Jlc3RBZGRyZXNzAQAAAAxnZXRTdHJPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACCQABLAAAAAICAAAAD01hbmRhdG9yeSB0aGlzLgUAAAADa2V5AgAAAA8gaXMgbm90IGRlZmluZWQBAAAAEGdldEFkZHJlc3NPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEJAQAAAAxnZXRTdHJPckZhaWwAAAABBQAAAANrZXkJAAEsAAAAAgIAAAAfZmFpbCB0byBwYXJzZSBhZGRyZXNzIGZvciB0aGlzLgUAAAADa2V5AQ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AAAAgUAAAADbmlsCQEAAAALcHJvZHVjZUpzb24AAAABCQAETAAAAAICAAAAEWduc2J0SW5mb1JFQURPTkxZCQAETAAAAAIFAAAACWduc2J0SW5mbwkABEwAAAACAgAAABBzd2FwSW5mb1JFQURPTkxZCQAETAAAAAIFAAAACHN3YXBJbmZvBQAAAANuaWwAAAAAN9fLXA==", "height": 2017896, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 74UBUAKrHFCoSq99AUi2AsvK96x8TGeBhKiARnwV3RUZ Next: HiYMz66R8BGkRkbVVSzGbXo2YUZRgHtgwWBfSPY3W8Nq Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b () = "%s%s__config__controlAddress" | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func c () = "%s%s__config__restAddress" | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func d (e) = valueOrErrorMessage(getString(this, e), (("Mandatory this." + e) + " is not defined")) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (e) = valueOrErrorMessage(addressFromString(d(e)), ("fail to parse address for this." + e)) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g (h) = { | |
19 | 19 | let i = h | |
20 | 20 | if ($isInstanceOf(i, "String")) | |
21 | 21 | then { | |
22 | 22 | let j = i | |
23 | 23 | j | |
24 | 24 | } | |
25 | 25 | else throw("fail to cast into String") | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func k (l) = { | |
30 | 30 | let m = valueOrErrorMessage(indexOf(l, a), "unsupported REST format") | |
31 | 31 | let n = take(l, m) | |
32 | 32 | let o = drop(l, (m + size(a))) | |
33 | 33 | $Tuple2(n, o) | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func p (q) = { | |
38 | 38 | let r = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
39 | 39 | let s = size(q) | |
40 | 40 | if (((s % 2) != 0)) | |
41 | 41 | then throw("only even args size is accepeted") | |
42 | 42 | else if ((s > size(r))) | |
43 | 43 | then throw(("strMap length is greater then " + toString(size(r)))) | |
44 | 44 | else { | |
45 | 45 | func p (t,u) = if (if (((u % 2) == 0)) | |
46 | 46 | then (s >= (u + 1)) | |
47 | 47 | else false) | |
48 | 48 | then (((((t + " | |
49 | 49 | \"") + q[u]) + "\": \"") + q[(u + 1)]) + "\", | |
50 | 50 | ") | |
51 | 51 | else t | |
52 | 52 | ||
53 | 53 | let v = { | |
54 | 54 | let w = r | |
55 | 55 | let x = size(w) | |
56 | 56 | let y = "" | |
57 | 57 | func z (A,B) = if ((B >= x)) | |
58 | 58 | then A | |
59 | 59 | else p(A, w[B]) | |
60 | 60 | ||
61 | 61 | func C (A,B) = if ((B >= x)) | |
62 | 62 | then A | |
63 | 63 | else throw("List size exceeds 20") | |
64 | 64 | ||
65 | 65 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
66 | 66 | } | |
67 | 67 | (("{" + dropRight(v, 2)) + "}") | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | let D = f(b()) | |
73 | 73 | ||
74 | 74 | let E = f(c()) | |
75 | 75 | ||
76 | 76 | @Callable(F) | |
77 | 77 | func constructor (G,H) = if ((F.caller != this)) | |
78 | 78 | then throw("not authorized") | |
79 | 79 | else [StringEntry(b(), G), StringEntry(c(), H)] | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | ||
83 | 83 | @Callable(F) | |
84 | 84 | func nsbtPageREADONLY (I,J) = { | |
85 | 85 | let K = g(invoke(E, "gnsbtInfoREADONLY", [I, J], nil)) | |
86 | 86 | let L = k(K) | |
87 | 87 | let M = L._1 | |
88 | 88 | let N = L._2 | |
89 | 89 | let O = g(invoke(E, "swapInfoREADONLY", [I], nil)) | |
90 | 90 | let P = split(O, a) | |
91 | 91 | let Q = P[8] | |
92 | 92 | $Tuple2(nil, p(["gnsbtInfoREADONLY", K, "swapInfoREADONLY", O])) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 |
github/deemru/w8io/026f985 25.96 ms ◑