tx · DSwxhVbBnNBu8WsXLtzNjuJzbN4YvW9dX3AgPVEgMr68 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01000000 Waves 2023.01.30 15:04 [2427679] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "DSwxhVbBnNBu8WsXLtzNjuJzbN4YvW9dX3AgPVEgMr68", "fee": 1000000, "feeAssetId": null, "timestamp": 1675080314186, "version": 2, "chainId": 84, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "3MZ8rXn9qnPRAh2DsG2JWi66T16TGsmGJrJP4LMZKj9aNWJC5y9FMiy8pwNmodtgk48FYogKrewJV5KMNDBUKFNF" ], "script": "base64:BgIgCAISBAoCCAgSBwoFCAgICAgSBAoCCAgSABIFCgMIAQQVAAdWRVJTSU9OAgUxLjEuOQEOZ2V0U3RyaW5nQnlLZXkBA2tleQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzBQNrZXkCAAAPc3RvcmFnZVZlcmlmaWVyCQEFdmFsdWUBCQCmCAEJAQ5nZXRTdHJpbmdCeUtleQECE2NvbmZfb3JhY2xlX2FkZHJlc3MABGJhbmsJAQ5nZXRTdHJpbmdCeUtleQECGWNvbmZfZmVlX3JlY2VpdmVyX2FkZHJlc3MADWFjY2VwdGVkVG9rZW4JAQ5nZXRTdHJpbmdCeUtleQECFmNvbmZfYWNjZXB0ZWRfdG9rZW5faWQABnVzZG5JRAkBDmdldFN0cmluZ0J5S2V5AQIMY29uZl91c2RuX2lkAAVjaHJpcwkBDmdldFN0cmluZ0J5S2V5AQISY29uZl9hZG1pbl9hZGRyZXNzABNzaWduX2FydF91c2Vyc19kYXBwCQEOZ2V0U3RyaW5nQnlLZXkBAiBjb25mX3NpZ25fYXJ0X3VzZXJzX2RhcHBfYWRkcmVzc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ZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJANkEAQkBCGFzU3RyaW5nAQkAkQMCCAUDaW52BGFyZ3MABAMDAwMJAAACCAUDaW52CGZ1bmN0aW9uAhNyZXZva2VDZXJ0aWZpY2F0aW9uCQAAAggFA2ludgRkQXBwBQR0aGlzBwkAAAIIBQNpbnYDZmVlAKDCHgcJAAACCAUDaW52CmZlZUFzc2V0SWQFBHVuaXQHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQDZBAEJAQhhc1N0cmluZwEJAJEDAggFA2ludgRhcmdzAAEJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXml82NV", "height": 2427679, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C3wwimAiH4FDwpKSrAdK8hLK9Q5wdwNjPw3jTuht68Yw Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.1.9" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let d = value(addressFromString(b("conf_oracle_address"))) | |
10 | 10 | ||
11 | 11 | let e = b("conf_fee_receiver_address") | |
12 | 12 | ||
13 | 13 | let f = b("conf_accepted_token_id") | |
14 | 14 | ||
15 | 15 | let g = b("conf_usdn_id") | |
16 | 16 | ||
17 | 17 | let h = b("conf_admin_address") | |
18 | 18 | ||
19 | 19 | let i = b("conf_sign_art_users_dapp_address") | |
20 | 20 | ||
21 | 21 | let j = 1 | |
22 | 22 | ||
23 | 23 | func k (l,m) = { | |
24 | 24 | let n = getString(this, (l + m)) | |
25 | 25 | if ($isInstanceOf(n, "String")) | |
26 | 26 | then { | |
27 | 27 | let o = n | |
28 | 28 | o | |
29 | 29 | } | |
30 | 30 | else "NONE" | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func p (m,q) = { | |
35 | 35 | let n = getString(this, ((m + "@") + q)) | |
36 | 36 | if ($isInstanceOf(n, "String")) | |
37 | 37 | then { | |
38 | 38 | let o = n | |
39 | 39 | o | |
40 | 40 | } | |
41 | 41 | else "NONE" | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func r (m) = { | |
46 | 46 | let n = getString(this, m) | |
47 | 47 | if ($isInstanceOf(n, "String")) | |
48 | 48 | then { | |
49 | 49 | let o = n | |
50 | 50 | o | |
51 | 51 | } | |
52 | 52 | else "NONE" | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func s (t) = { | |
57 | 57 | let n = getInteger(this, ("addr_WHITELISTED_" + t)) | |
58 | 58 | if ($isInstanceOf(n, "Int")) | |
59 | 59 | then { | |
60 | 60 | let o = n | |
61 | 61 | o | |
62 | 62 | } | |
63 | 63 | else 0 | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func u (v) = if (if (if ((size(v) == 35)) | |
68 | 68 | then (take(v, 2) == "3P") | |
69 | 69 | else false) | |
70 | 70 | then true | |
71 | 71 | else (take(v, 2) == "3N")) | |
72 | 72 | then true | |
73 | 73 | else (take(v, 2) == "3M") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func w (x,v) = if ((size(v) > 0)) | |
77 | 77 | then (x + 1) | |
78 | 78 | else (x + 0) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func y (c) = { | |
82 | 82 | let n = getString(this, c) | |
83 | 83 | if ($isInstanceOf(n, "String")) | |
84 | 84 | then { | |
85 | 85 | let o = n | |
86 | 86 | if ((o == "PENDING")) | |
87 | 87 | then true | |
88 | 88 | else false | |
89 | 89 | } | |
90 | 90 | else false | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func z (A) = take(drop(A, 1), value(indexOf(drop(A, 1), "\""))) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func B (A,c) = { | |
98 | 98 | let C = value(indexOf(A, (("\"" + c) + "\":"))) | |
99 | 99 | let D = drop(A, ((C + size(c)) + 3)) | |
100 | 100 | let E = z(D) | |
101 | 101 | E | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func F (A,c) = { | |
106 | 106 | let C = value(indexOf(A, (("\"" + c) + "\":"))) | |
107 | 107 | let D = take(A, ((C + size(c)) + 3)) | |
108 | 108 | D | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func G (A,c) = { | |
113 | 113 | let C = value(indexOf(A, (("\"" + c) + "\":"))) | |
114 | 114 | let D = takeRight(A, (size(A) - ((((C + size(c)) + 3) + 0) + 2))) | |
115 | 115 | D | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func H (I) = { | |
120 | 120 | let n = I | |
121 | 121 | if ($isInstanceOf(n, "String")) | |
122 | 122 | then { | |
123 | 123 | let J = n | |
124 | 124 | J | |
125 | 125 | } | |
126 | 126 | else throw("Sponsored Public Key String expected") | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | @Callable(K) | |
131 | 131 | func setConf (c,L) = { | |
132 | 132 | let M = toString(K.caller) | |
133 | 133 | if (containsElement([h, toString(this)], M)) | |
134 | 134 | then if (contains(c, "conf_")) | |
135 | 135 | then [StringEntry(c, L)] | |
136 | 136 | else throw("Entries starting with conf_ only") | |
137 | 137 | else throw("You are not allowed to change this") | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(K) | |
143 | 143 | func fileCertification (N,O,m,P,Q) = { | |
144 | 144 | let R = value(K.transactionId) | |
145 | 145 | let S = k(N, m) | |
146 | 146 | let T = r(m) | |
147 | 147 | let U = (this == K.caller) | |
148 | 148 | let t = if (U) | |
149 | 149 | then toString(addressFromPublicKey(fromBase58String(Q))) | |
150 | 150 | else toBase58String(K.caller.bytes) | |
151 | 151 | let V = s(t) | |
152 | 152 | if ((S != "NONE")) | |
153 | 153 | then throw("This entry already exist") | |
154 | 154 | else if ((T != "NONE")) | |
155 | 155 | then throw("This uuid already exist") | |
156 | 156 | else if ((size(m) != 36)) | |
157 | 157 | then throw("Uuid should be 36 characters.") | |
158 | 158 | else if ((size(N) != 64)) | |
159 | 159 | then throw("Hash should be 64 characters.") | |
160 | 160 | else if ((size(O) > 100)) | |
161 | 161 | then throw("Title is too long, 100 characters max.") | |
162 | 162 | else if (if (if (contains(N, "\"")) | |
163 | 163 | then true | |
164 | 164 | else contains(O, "\"")) | |
165 | 165 | then true | |
166 | 166 | else contains(P, "\"")) | |
167 | 167 | then throw("No \" allowed") | |
168 | 168 | else { | |
169 | 169 | let D = (((((((("{\"hash\":\"" + N) + "\",\"timestamp\":") + toString(lastBlock.timestamp)) + ",\"title\":\"") + O) + "\",\"ipfs\":\"") + P) + "\"}") | |
170 | 170 | if ((V > 0)) | |
171 | 171 | then { | |
172 | 172 | let W = if ((size(P) != 0)) | |
173 | 173 | then (1 + j) | |
174 | 174 | else 1 | |
175 | 175 | if ((0 > (V - W))) | |
176 | 176 | then throw("Not enough credit") | |
177 | 177 | else [StringEntry(m, toBase58String(R)), StringEntry((N + m), toBase58String(R)), StringEntry((O + m), toBase58String(R)), IntegerEntry(("addr_WHITELISTED_" + t), (V - W)), StringEntry(((("data_fc_" + toBase58String(R)) + "_") + t), D), ScriptTransfer(addressFromStringValue(t), 0, fromBase58String(f))] | |
178 | 178 | } | |
179 | 179 | else if (!(U)) | |
180 | 180 | then { | |
181 | 181 | let X = value(K.payments[0]) | |
182 | 182 | let Y = value(X.amount) | |
183 | 183 | let Z = if (isDefined(X.assetId)) | |
184 | 184 | then value(X.assetId) | |
185 | 185 | else throw("Waves is not accepted as payment") | |
186 | 186 | let aa = getIntegerValue(d, ("certification_fee_" + toBase58String(value(Z)))) | |
187 | 187 | let ab = if ((size(P) != 0)) | |
188 | 188 | then (aa + (j * aa)) | |
189 | 189 | else aa | |
190 | 190 | if ((fromBase58String(f) != Z)) | |
191 | 191 | then throw("This token is not accepted at the moment") | |
192 | 192 | else if (if ((Y != ab)) | |
193 | 193 | then (0 >= V) | |
194 | 194 | else false) | |
195 | 195 | then throw("The price is wrong") | |
196 | 196 | else [StringEntry(m, toBase58String(R)), StringEntry((N + m), toBase58String(R)), StringEntry((O + m), toBase58String(R)), StringEntry(((("data_fc_" + toBase58String(R)) + "_") + t), D), ScriptTransfer(addressFromStringValue(e), ab, X.assetId)] | |
197 | 197 | } | |
198 | 198 | else throw("You are not allowed to do that") | |
199 | 199 | } | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(K) | |
205 | 205 | func revokeCertification (ac,Q) = { | |
206 | 206 | let R = value(K.transactionId) | |
207 | 207 | let U = (this == K.caller) | |
208 | 208 | let t = if (U) | |
209 | 209 | then toString(addressFromPublicKey(fromBase58String(Q))) | |
210 | 210 | else toBase58String(K.caller.bytes) | |
211 | 211 | let S = { | |
212 | 212 | let n = getString(this, ((("data_fc_" + ac) + "_") + t)) | |
213 | 213 | if ($isInstanceOf(n, "String")) | |
214 | 214 | then { | |
215 | 215 | let o = n | |
216 | 216 | o | |
217 | 217 | } | |
218 | 218 | else "NONE" | |
219 | 219 | } | |
220 | 220 | let ad = { | |
221 | 221 | let n = getString(this, ("STATUS_FC_" + ac)) | |
222 | 222 | if ($isInstanceOf(n, "String")) | |
223 | 223 | then { | |
224 | 224 | let o = n | |
225 | 225 | o | |
226 | 226 | } | |
227 | 227 | else "NONE" | |
228 | 228 | } | |
229 | 229 | let V = s(t) | |
230 | 230 | let ae = (((dropRight(S, 1) + ",\"status\":\"REVOKED_") + toBase58String(R)) + "\"}") | |
231 | 231 | if ((ad != "NONE")) | |
232 | 232 | then throw("This certification have already been revoked.") | |
233 | 233 | else if ((S == "NONE")) | |
234 | 234 | then throw("You cannot change the status of this certification.") | |
235 | 235 | else if ((V > 0)) | |
236 | 236 | then [IntegerEntry(("addr_WHITELISTED_" + t), (V - 1)), StringEntry(("STATUS_FC_" + ac), ("REVOKED_" + toBase58String(R))), StringEntry(((("data_fc_" + ac) + "_") + t), ae), ScriptTransfer(addressFromStringValue(t), 0, fromBase58String(f))] | |
237 | 237 | else if (!(U)) | |
238 | 238 | then { | |
239 | 239 | let X = value(K.payments[0]) | |
240 | 240 | let Y = value(X.amount) | |
241 | 241 | let Z = if (isDefined(X.assetId)) | |
242 | 242 | then value(X.assetId) | |
243 | 243 | else throw("Waves is not accepted as payment") | |
244 | 244 | let aa = getIntegerValue(d, ("certification_fee_" + toBase58String(value(Z)))) | |
245 | 245 | if ((fromBase58String(f) != Z)) | |
246 | 246 | then throw("This token is not accepted at the moment") | |
247 | 247 | else if (if ((Y != aa)) | |
248 | 248 | then (0 >= V) | |
249 | 249 | else false) | |
250 | 250 | then throw("The price is wrong") | |
251 | 251 | else [StringEntry(("STATUS_FC_" + ac), ("REVOKED_" + toBase58String(R))), StringEntry(((("data_fc_" + ac) + "_") + t), ae), ScriptTransfer(addressFromStringValue(e), Y, X.assetId)] | |
252 | 252 | } | |
253 | 253 | else throw("You are not allowed to do that") | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(K) | |
259 | 259 | func usdnSignCredits () = { | |
260 | 260 | let X = value(K.payments[0]) | |
261 | 261 | let t = toBase58String(K.caller.bytes) | |
262 | 262 | let af = value(X.assetId) | |
263 | 263 | let Y = value(X.amount) | |
264 | 264 | let ag = ((Y * 2) / 1000000) | |
265 | 265 | let V = s(t) | |
266 | 266 | if ((toBase58String(af) != g)) | |
267 | 267 | then throw("Only USDN can be exchanged") | |
268 | 268 | else if (if (((Y % 1000000) != 0)) | |
269 | 269 | then ((Y % 1000000) != 500000) | |
270 | 270 | else false) | |
271 | 271 | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(Y), 6)) + ".") + takeRight(toString(Y), 6))) | |
272 | 272 | else [IntegerEntry(("addr_WHITELISTED_" + t), (V + ag)), ScriptTransfer(addressFromStringValue(e), Y, af)] | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(ah) | |
278 | 278 | func whitelistFreeCertifications (ai,Y,aj) = { | |
279 | 279 | let M = toString(addressFromPublicKey(ah.callerPublicKey)) | |
280 | 280 | let R = toBase58String(ah.transactionId) | |
281 | 281 | if (containsElement([h, i], M)) | |
282 | 282 | then { | |
283 | 283 | let ak = valueOrElse(getInteger(this, ("addr_WHITELISTED_" + ai)), 0) | |
284 | 284 | let al = if (aj) | |
285 | 285 | then (ak + Y) | |
286 | 286 | else Y | |
287 | 287 | [IntegerEntry(("addr_WHITELISTED_" + ai), al)] | |
288 | 288 | } | |
289 | 289 | else throw("You are not authorized to whitelist txs") | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | @Verifier(am) | |
294 | 294 | func an () = { | |
295 | 295 | let n = am | |
296 | 296 | if ($isInstanceOf(n, "InvokeScriptTransaction")) | |
297 | 297 | then { | |
298 | 298 | let ao = n | |
299 | 299 | if (if (if (if ((ao.function == "fileCertification")) | |
300 | 300 | then (ao.dApp == this) | |
301 | 301 | else false) | |
302 | 302 | then (ao.fee == 500000) | |
303 | 303 | else false) | |
304 | 304 | then (ao.feeAssetId == unit) | |
305 | 305 | else false) | |
306 | 306 | then sigVerify(am.bodyBytes, am.proofs[0], fromBase58String(H(ao.args[4]))) | |
307 | 307 | else if (if (if (if ((ao.function == "revokeCertification")) | |
308 | 308 | then (ao.dApp == this) | |
309 | 309 | else false) | |
310 | 310 | then (ao.fee == 500000) | |
311 | 311 | else false) | |
312 | 312 | then (ao.feeAssetId == unit) | |
313 | 313 | else false) | |
314 | 314 | then sigVerify(am.bodyBytes, am.proofs[0], fromBase58String(H(ao.args[1]))) | |
315 | 315 | else sigVerify(am.bodyBytes, am.proofs[0], am.senderPublicKey) | |
316 | 316 | } | |
317 | 317 | else sigVerify(am.bodyBytes, am.proofs[0], am.senderPublicKey) | |
318 | 318 | } | |
319 | 319 |
github/deemru/w8io/026f985 42.78 ms ◑