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