tx · 6y5mXHWyoT5BUa2uA45J8w2JtBUqD8Qqx1ugtK9GVtKU 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.03.09 00:21 [2481644] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "6y5mXHWyoT5BUa2uA45J8w2JtBUqD8Qqx1ugtK9GVtKU", "fee": 1000000, "feeAssetId": null, "timestamp": 1678310479519, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "kFa8zfHrZg4SNWk9SkxXPDsFwrroFZP9C35kf7rn8hUhRCotVmdiQ3wK843UB3gtdxAmTEsMnMSkG22Fn3reqsU" ], "script": "base64:BgIgCAISBAoCCAESBAoCGBgSBAoCCAgSAwoBCBIFCgMICAgCAAxvcHRpb25zX2FkZHIJAQdBZGRyZXNzAQEaAVRBW/gr9hfqKqHLxIrx+8e7siBhMf6HIMEABHRVU0QBIKskSmq2Qkbr0vzjebBhusOuaVdNUnrKRRynQB0RsCkOBQFpAQ1yZWlzc3VlVG9rZW5zAgV0b2tlbghxdWFudGl0eQQJYWRtaW5MaXN0BAckbWF0Y2gwCQCdCAIFDG9wdGlvbnNfYWRkcgIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGlzdAUQY2FsbGVyQWRkcmVzc1N0cgQHaXNBZG1pbgQHJG1hdGNoMAUEd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AgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAMCEPQUEdFVTRAUDbmlsBQR1bml0CQACAQIVQ2FuIGJlIHVzZWQgb25seSBvbmNlAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIPRGF0YVRyYW5zYWN0aW9uBANkdHgFByRtYXRjaDAHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5mgqe5A==", "height": 2481644, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9ApoWDviDiZiFesUQkzoGc112Gw9dBdmrmx9KEohSP8F Next: Sve5MDcEV9GqtZfEyZpxS8QdF5sN55vEhf6rqjqHqqQ Diff:
Old | New | Differences | |
---|---|---|---|
36 | 36 | if ((k != "no admin")) | |
37 | 37 | then { | |
38 | 38 | let l = Reissue(fromBase58String(d), e, true) | |
39 | - | $Tuple2([l], | |
39 | + | $Tuple2([l], "Reissue error") | |
40 | 40 | } | |
41 | 41 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
42 | 42 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6') | |
5 | 5 | ||
6 | 6 | let b = base58'CX4p6XcuSBUvv44r1avCqYka5PYAVzBK5hSXaT7maU85' | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func reissueTokens (d,e) = { | |
10 | 10 | let f = { | |
11 | 11 | let g = getString(a, "admin_list") | |
12 | 12 | if ($isInstanceOf(g, "Unit")) | |
13 | 13 | then "unset" | |
14 | 14 | else if ($isInstanceOf(g, "String")) | |
15 | 15 | then { | |
16 | 16 | let h = g | |
17 | 17 | h | |
18 | 18 | } | |
19 | 19 | else throw("Match error") | |
20 | 20 | } | |
21 | 21 | let i = toString(c.caller) | |
22 | 22 | if ((f != "unset")) | |
23 | 23 | then { | |
24 | 24 | let j = getString(addressFromStringValue(f), i) | |
25 | 25 | let k = { | |
26 | 26 | let g = j | |
27 | 27 | if ($isInstanceOf(g, "String")) | |
28 | 28 | then { | |
29 | 29 | let h = g | |
30 | 30 | h | |
31 | 31 | } | |
32 | 32 | else if ($isInstanceOf(g, "Unit")) | |
33 | 33 | then "no admin" | |
34 | 34 | else throw("Match error") | |
35 | 35 | } | |
36 | 36 | if ((k != "no admin")) | |
37 | 37 | then { | |
38 | 38 | let l = Reissue(fromBase58String(d), e, true) | |
39 | - | $Tuple2([l], | |
39 | + | $Tuple2([l], "Reissue error") | |
40 | 40 | } | |
41 | 41 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
42 | 42 | } | |
43 | 43 | else throw("Unset admin list") | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | ||
48 | 48 | @Callable(c) | |
49 | 49 | func setOptions (m,n) = { | |
50 | 50 | let o = size(m) | |
51 | 51 | if ((100 >= o)) | |
52 | 52 | then { | |
53 | 53 | let f = { | |
54 | 54 | let g = getString(this, "admin_list") | |
55 | 55 | if ($isInstanceOf(g, "Unit")) | |
56 | 56 | then "unset" | |
57 | 57 | else if ($isInstanceOf(g, "String")) | |
58 | 58 | then { | |
59 | 59 | let h = g | |
60 | 60 | h | |
61 | 61 | } | |
62 | 62 | else throw("Match error") | |
63 | 63 | } | |
64 | 64 | func p (q,r) = { | |
65 | 65 | let s = q | |
66 | 66 | let t = s._1 | |
67 | 67 | let u = s._2 | |
68 | 68 | $Tuple2((t :+ StringEntry(m[u], r)), (u + 1)) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | let v = { | |
72 | 72 | let w = n | |
73 | 73 | let x = size(w) | |
74 | 74 | let y = $Tuple2(nil, 0) | |
75 | 75 | func z (A,B) = if ((B >= x)) | |
76 | 76 | then A | |
77 | 77 | else p(A, w[B]) | |
78 | 78 | ||
79 | 79 | func C (A,B) = if ((B >= x)) | |
80 | 80 | then A | |
81 | 81 | else throw("List size exceeds 100") | |
82 | 82 | ||
83 | 83 | C(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(z(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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
84 | 84 | } | |
85 | 85 | let i = toString(c.caller) | |
86 | 86 | if ((f != "unset")) | |
87 | 87 | then { | |
88 | 88 | let j = getString(addressFromStringValue(f), i) | |
89 | 89 | let k = { | |
90 | 90 | let g = j | |
91 | 91 | if ($isInstanceOf(g, "String")) | |
92 | 92 | then { | |
93 | 93 | let h = g | |
94 | 94 | h | |
95 | 95 | } | |
96 | 96 | else if ($isInstanceOf(g, "Unit")) | |
97 | 97 | then "no admin" | |
98 | 98 | else throw("Match error") | |
99 | 99 | } | |
100 | 100 | func D (E) = { | |
101 | 101 | let F = split(E, "|") | |
102 | 102 | StringEntry(F[0], F[1]) | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | if ((k != "no admin")) | |
106 | 106 | then v | |
107 | 107 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
108 | 108 | } | |
109 | 109 | else throw("Unset admin list") | |
110 | 110 | } | |
111 | 111 | else throw("The number of list elements must not exceed 100") | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | ||
116 | 116 | @Callable(c) | |
117 | 117 | func setOption (G,H) = { | |
118 | 118 | let f = { | |
119 | 119 | let g = getString(this, "admin_list") | |
120 | 120 | if ($isInstanceOf(g, "Unit")) | |
121 | 121 | then "unset" | |
122 | 122 | else if ($isInstanceOf(g, "String")) | |
123 | 123 | then { | |
124 | 124 | let h = g | |
125 | 125 | h | |
126 | 126 | } | |
127 | 127 | else throw("Match error") | |
128 | 128 | } | |
129 | 129 | let i = toString(c.caller) | |
130 | 130 | if ((f != "unset")) | |
131 | 131 | then { | |
132 | 132 | let j = getString(addressFromStringValue(f), i) | |
133 | 133 | let k = { | |
134 | 134 | let g = j | |
135 | 135 | if ($isInstanceOf(g, "String")) | |
136 | 136 | then { | |
137 | 137 | let h = g | |
138 | 138 | h | |
139 | 139 | } | |
140 | 140 | else if ($isInstanceOf(g, "Unit")) | |
141 | 141 | then "no admin" | |
142 | 142 | else throw("Match error") | |
143 | 143 | } | |
144 | 144 | if ((k != "no admin")) | |
145 | 145 | then $Tuple2([StringEntry(G, H)], unit) | |
146 | 146 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
147 | 147 | } | |
148 | 148 | else throw("Unset admin list") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | ||
153 | 153 | @Callable(c) | |
154 | 154 | func delOption (G) = { | |
155 | 155 | let f = { | |
156 | 156 | let g = getString(this, "admin_list") | |
157 | 157 | if ($isInstanceOf(g, "Unit")) | |
158 | 158 | then "unset" | |
159 | 159 | else if ($isInstanceOf(g, "String")) | |
160 | 160 | then { | |
161 | 161 | let h = g | |
162 | 162 | h | |
163 | 163 | } | |
164 | 164 | else throw("Match error") | |
165 | 165 | } | |
166 | 166 | let i = toString(c.caller) | |
167 | 167 | if ((f != "unset")) | |
168 | 168 | then { | |
169 | 169 | let j = getString(addressFromStringValue(f), i) | |
170 | 170 | let k = { | |
171 | 171 | let g = j | |
172 | 172 | if ($isInstanceOf(g, "String")) | |
173 | 173 | then { | |
174 | 174 | let h = g | |
175 | 175 | h | |
176 | 176 | } | |
177 | 177 | else if ($isInstanceOf(g, "Unit")) | |
178 | 178 | then "no admin" | |
179 | 179 | else throw("Match error") | |
180 | 180 | } | |
181 | 181 | if ((k != "no admin")) | |
182 | 182 | then $Tuple2([DeleteEntry(G)], unit) | |
183 | 183 | else throw((((((("You not admin: " + f) + ", isAdmin: ") + k) + ", callerAddressStr: ") + i) + ", ")) | |
184 | 184 | } | |
185 | 185 | else throw("Unset admin list") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(c) | |
191 | 191 | func regProvider (I,J,K) = { | |
192 | 192 | let L = { | |
193 | 193 | let g = getString(this, toBase58String(c.caller.bytes)) | |
194 | 194 | if ($isInstanceOf(g, "String")) | |
195 | 195 | then { | |
196 | 196 | let M = g | |
197 | 197 | M | |
198 | 198 | } | |
199 | 199 | else "unset" | |
200 | 200 | } | |
201 | 201 | if ((L != "unset")) | |
202 | 202 | then $Tuple2([StringEntry(toBase58String(c.caller.bytes), ((((I + "|") + J) + "|") + K)), ScriptTransfer(c.caller, 1000000, unit), ScriptTransfer(c.caller, 1000000, b)], unit) | |
203 | 203 | else throw("Can be used only once") | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Verifier(N) | |
208 | 208 | func O () = { | |
209 | 209 | let g = N | |
210 | 210 | if ($isInstanceOf(g, "DataTransaction")) | |
211 | 211 | then { | |
212 | 212 | let P = g | |
213 | 213 | false | |
214 | 214 | } | |
215 | 215 | else sigVerify(N.bodyBytes, N.proofs[0], N.senderPublicKey) | |
216 | 216 | } | |
217 | 217 |
github/deemru/w8io/169f3d6 46.05 ms ◑