tx · 3d4wAXwBmh6xisSe1aYTFdZzFNFh8geYsS1ctPMrH4qc 3MvtnRD5xfCdnvEmTSGt6qtWWq7aMfjGzZd: -0.01400000 Waves 2021.02.02 18:55 [1380751] smart account 3MvtnRD5xfCdnvEmTSGt6qtWWq7aMfjGzZd > SELF 0.00000000 Waves
{ "type": 13, "id": "3d4wAXwBmh6xisSe1aYTFdZzFNFh8geYsS1ctPMrH4qc", "fee": 1400000, "feeAssetId": null, "timestamp": 1612281467847, "version": 2, "chainId": 84, "sender": "3MvtnRD5xfCdnvEmTSGt6qtWWq7aMfjGzZd", "senderPublicKey": "B1WfWcxSgmqwtCovPFXz78QoMVqRT2nB3QyeKT8PjtL8", "proofs": [ "2QEyJ2XwKmAgKLAJd8SVN63tCZWeMLDnmkoMiarR3HAfW6vKGQt6CjmmkX6CVbAr6XNNV9rP36GwgSjadqWRGYjr" ], "script": "base64:AAIEAAAAAAAAABEIAhIDCgEIEgMKAQgSAwoBGAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAABkFDVElWRQIAAAAGYWN0aXZlAAAAAAdkYXBwS2V5AgAAAARkYXBwAAAAAAhvd25lcktleQIAAAAFb3duZXIBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAAC2dldFN0ckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAEWdldEV4dE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5A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AAAAAAAAANBQAAAA4kYWNjMTMzNzMwMzc1NwQAAAAOJGFjYzE0MzczMDM3NTcJAQAAAAd1cGREYXRhAAAAAgUAAAAOJGFjYzEzMzczMDM3NTcJAAGRAAAAAgUAAAANJGxpc3QzNzMwMzc1NwAAAAAAAAAADQMJAAAAAAAAAgUAAAANJHNpemUzNzMwMzc1NwAAAAAAAAAADgUAAAAOJGFjYzE0MzczMDM3NTcEAAAADiRhY2MxNTM3MzAzNzU3CQEAAAAHdXBkRGF0YQAAAAIFAAAADiRhY2MxNDM3MzAzNzU3CQABkQAAAAIFAAAADSRsaXN0MzczMDM3NTcAAAAAAAAAAA4DCQAAAAAAAAIFAAAADSRzaXplMzczMDM3NTcAAAAAAAAAAA8FAAAADiRhY2MxNTM3MzAzNzU3BAAAAA4kYWNjMTYzNzMwMzc1NwkBAAAAB3VwZERhdGEAAAACBQAAAA4kYWNjMTUzNzMwMzc1NwkAAZEAAAACBQAAAA0kbGlzdDM3MzAzNzU3AAAAAAAAAAAPCQAAAgAAAAECAAAAE0xpc3Qgc2l6ZSBleGNlZWQgMTUAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQnd7Io=", "height": 1380751, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "none" | |
5 | + | ||
6 | + | let b = "active" | |
7 | + | ||
8 | + | let c = "dapp" | |
9 | + | ||
10 | + | let d = "owner" | |
11 | + | ||
12 | + | func e (f) = { | |
13 | + | let g = getInteger(this, f) | |
14 | + | if ($isInstanceOf(g, "Int")) | |
15 | + | then { | |
16 | + | let h = g | |
17 | + | h | |
18 | + | } | |
19 | + | else 0 | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | func i (f) = { | |
24 | + | let g = getString(this, f) | |
25 | + | if ($isInstanceOf(g, "String")) | |
26 | + | then { | |
27 | + | let h = g | |
28 | + | h | |
29 | + | } | |
30 | + | else a | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | func j (f) = { | |
35 | + | let g = getInteger(this, f) | |
36 | + | if ($isInstanceOf(g, "Int")) | |
37 | + | then { | |
38 | + | let h = g | |
39 | + | h | |
40 | + | } | |
41 | + | else 0 | |
42 | + | } | |
43 | + | ||
44 | + | ||
45 | + | func k (l,f) = { | |
46 | + | let g = getString(l, f) | |
47 | + | if ($isInstanceOf(g, "String")) | |
48 | + | then { | |
49 | + | let h = g | |
50 | + | h | |
51 | + | } | |
52 | + | else a | |
53 | + | } | |
54 | + | ||
55 | + | ||
56 | + | func m (n) = ("key_" + n) | |
57 | + | ||
58 | + | ||
59 | + | func o (n) = i(m(n)) | |
60 | + | ||
61 | + | ||
62 | + | func p (q) = { | |
63 | + | let g = assetInfo(q) | |
64 | + | if ($isInstanceOf(g, "Asset")) | |
65 | + | then { | |
66 | + | let r = g | |
67 | + | r | |
68 | + | } | |
69 | + | else throw("Not a key") | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | func s (t,u) = { | |
74 | + | let v = split(u, "#") | |
75 | + | if ((v[0] == "set")) | |
76 | + | then if ((v[1] == "string")) | |
77 | + | then StringEntry(v[2], v[3]) :: t | |
78 | + | else IntegerEntry(v[2], parseIntValue(v[3])) :: t | |
79 | + | else DeleteEntry(v[1]) :: t | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | @Callable(w) | |
84 | + | func addKey (x) = { | |
85 | + | let y = toBase58String(w.caller.bytes) | |
86 | + | let z = p(fromBase58String(x)) | |
87 | + | let A = addressFromStringValue(i(c)) | |
88 | + | let B = addressFromStringValue(i(d)) | |
89 | + | if ((z.issuer != A)) | |
90 | + | then throw("Wrong key issuer") | |
91 | + | else if (if ((B != w.caller)) | |
92 | + | then (A != w.caller) | |
93 | + | else false) | |
94 | + | then throw("Not permitted") | |
95 | + | else if ((o(x) != a)) | |
96 | + | then throw("This key is already assigned") | |
97 | + | else [StringEntry(m(x), b)] | |
98 | + | } | |
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | @Callable(w) | |
103 | + | func removeKey (x) = { | |
104 | + | let A = addressFromStringValue(i(c)) | |
105 | + | let B = addressFromStringValue(i(d)) | |
106 | + | if (if ((B != w.caller)) | |
107 | + | then (A != w.caller) | |
108 | + | else false) | |
109 | + | then throw("Not permitted") | |
110 | + | else [DeleteEntry(m(x))] | |
111 | + | } | |
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | @Callable(w) | |
116 | + | func updateData (C) = { | |
117 | + | let A = addressFromStringValue(i(c)) | |
118 | + | if ((A != w.caller)) | |
119 | + | then throw("Not permitted") | |
120 | + | else { | |
121 | + | let D = C | |
122 | + | let E = size(D) | |
123 | + | let F = nil | |
124 | + | if ((E == 0)) | |
125 | + | then F | |
126 | + | else { | |
127 | + | let G = s(F, D[0]) | |
128 | + | if ((E == 1)) | |
129 | + | then G | |
130 | + | else { | |
131 | + | let H = s(G, D[1]) | |
132 | + | if ((E == 2)) | |
133 | + | then H | |
134 | + | else { | |
135 | + | let I = s(H, D[2]) | |
136 | + | if ((E == 3)) | |
137 | + | then I | |
138 | + | else { | |
139 | + | let J = s(I, D[3]) | |
140 | + | if ((E == 4)) | |
141 | + | then J | |
142 | + | else { | |
143 | + | let K = s(J, D[4]) | |
144 | + | if ((E == 5)) | |
145 | + | then K | |
146 | + | else { | |
147 | + | let L = s(K, D[5]) | |
148 | + | if ((E == 6)) | |
149 | + | then L | |
150 | + | else { | |
151 | + | let M = s(L, D[6]) | |
152 | + | if ((E == 7)) | |
153 | + | then M | |
154 | + | else { | |
155 | + | let N = s(M, D[7]) | |
156 | + | if ((E == 8)) | |
157 | + | then N | |
158 | + | else { | |
159 | + | let O = s(N, D[8]) | |
160 | + | if ((E == 9)) | |
161 | + | then O | |
162 | + | else { | |
163 | + | let P = s(O, D[9]) | |
164 | + | if ((E == 10)) | |
165 | + | then P | |
166 | + | else { | |
167 | + | let Q = s(P, D[10]) | |
168 | + | if ((E == 11)) | |
169 | + | then Q | |
170 | + | else { | |
171 | + | let R = s(Q, D[11]) | |
172 | + | if ((E == 12)) | |
173 | + | then R | |
174 | + | else { | |
175 | + | let S = s(R, D[12]) | |
176 | + | if ((E == 13)) | |
177 | + | then S | |
178 | + | else { | |
179 | + | let T = s(S, D[13]) | |
180 | + | if ((E == 14)) | |
181 | + | then T | |
182 | + | else { | |
183 | + | let U = s(T, D[14]) | |
184 | + | if ((E == 15)) | |
185 | + | then U | |
186 | + | else { | |
187 | + | let V = s(U, D[15]) | |
188 | + | throw("List size exceed 15") | |
189 | + | } | |
190 | + | } | |
191 | + | } | |
192 | + | } | |
193 | + | } | |
194 | + | } | |
195 | + | } | |
196 | + | } | |
197 | + | } | |
198 | + | } | |
199 | + | } | |
200 | + | } | |
201 | + | } | |
202 | + | } | |
203 | + | } | |
204 | + | } | |
205 | + | } | |
206 | + | } | |
207 | + | ||
208 | + | ||
209 | + | @Verifier(W) | |
210 | + | func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey) | |
211 | + |
github/deemru/w8io/169f3d6 26.47 ms ◑