tx · FM7oQEjeePCqXvW5bg3bghixggux158zh2WdCWfeHLX 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h: -0.01400000 Waves 2021.09.29 08:42 [1723829] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves
{ "type": 13, "id": "FM7oQEjeePCqXvW5bg3bghixggux158zh2WdCWfeHLX", "fee": 1400000, "feeAssetId": null, "timestamp": 1632894224244, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "gmYcuuCgyNvjJj6qX87sCcvJVEcgAXwPf6ZajkZJxzqJVvn5HaEwGMxFK6PaBynm7mCNVHVrsV9We39q2NzeZrs" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAABMAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNOMXdQZ0hGdGV6bVJWQmFxb29qUDhYSndUa2FyazRoYmlmAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAABnVzZG5JRAIAAAAsM0tGWEJHR0xDakE1WjJEdVc0RHE5ZkREckhqSkpQMVpFa2FvYWpTenVLc0MAAAAACHNpZ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xsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAJc2lnbkFkbWluCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAACbm8AAAAAt7AyJQ==", "height": 1723829, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Atw1mY2PkAnrYuQrUPX2XobfSXsRpW5qVtrGGxRfNHdj Next: CQZKyPQQLi9xTV1sQPqeoHdXzEA6af74zetaaFpTkrKR Diff:
Old | New | Differences | |
---|---|---|---|
128 | 128 | else { | |
129 | 129 | let L = getIntegerValue(a, ("certification_fee_" + toBase58String(value(K)))) | |
130 | 130 | if (true) | |
131 | - | then throw(("Uy! " + toString(( | |
131 | + | then throw(("Uy! " + toString((L / 100000000)))) | |
132 | 132 | else { | |
133 | - | let M = (L / | |
133 | + | let M = ((L / 100000000) / J) | |
134 | 134 | if ((0 >= M)) | |
135 | 135 | then throw("Not enough for at least 1 credit") | |
136 | 136 | else [IntegerEntry(("credits_" + toBase58String(f)), M), ScriptTransfer(addressFromStringValue(h), J, I.assetId)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif" | |
7 | 7 | ||
8 | 8 | let c = "3N1wPgHFtezmRVBaqoojP8XJwTkark4hbif" | |
9 | 9 | ||
10 | 10 | let d = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
11 | 11 | ||
12 | 12 | let e = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
13 | 13 | ||
14 | 14 | let f = base58'7bLUm2XNLWvVwgC9aPp9fNNAMVtbGwhwkqdgomJAgVbC' | |
15 | 15 | ||
16 | 16 | let g = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
17 | 17 | ||
18 | 18 | let h = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
19 | 19 | ||
20 | 20 | func i (j) = valueOrElse(getInteger(this, j), 0) | |
21 | 21 | ||
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) = if (if (if ((size(t) == 35)) | |
57 | 57 | then (take(t, 2) == "3P") | |
58 | 58 | else false) | |
59 | 59 | then true | |
60 | 60 | else (take(t, 2) == "3N")) | |
61 | 61 | then true | |
62 | 62 | else (take(t, 2) == "3M") | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func u (v,t) = if ((size(t) > 0)) | |
66 | 66 | then (v + 1) | |
67 | 67 | else (v + 0) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func w (j) = { | |
71 | 71 | let n = getString(this, j) | |
72 | 72 | if ($isInstanceOf(n, "String")) | |
73 | 73 | then { | |
74 | 74 | let o = n | |
75 | 75 | if ((o == "PENDING")) | |
76 | 76 | then true | |
77 | 77 | else false | |
78 | 78 | } | |
79 | 79 | else false | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func x (y) = take(drop(y, 1), value(indexOf(drop(y, 1), "\""))) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func z (y,j) = { | |
87 | 87 | let A = value(indexOf(y, (("\"" + j) + "\":"))) | |
88 | 88 | let B = drop(y, ((A + size(j)) + 3)) | |
89 | 89 | let C = x(B) | |
90 | 90 | C | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func D (y,j) = { | |
95 | 95 | let A = value(indexOf(y, (("\"" + j) + "\":"))) | |
96 | 96 | let B = take(y, ((A + size(j)) + 3)) | |
97 | 97 | B | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func E (y,j) = { | |
102 | 102 | let A = value(indexOf(y, (("\"" + j) + "\":"))) | |
103 | 103 | let B = takeRight(y, (size(y) - ((((A + size(j)) + 3) + 0) + 2))) | |
104 | 104 | B | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | @Callable(F) | |
109 | 109 | func setFee (G) = { | |
110 | 110 | let H = toBase58String(F.caller.bytes) | |
111 | 111 | if ((H == c)) | |
112 | 112 | then [IntegerEntry(("certification_fee_" + toBase58String(f)), G)] | |
113 | 113 | else throw("You are not allowed to change fee") | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(F) | |
119 | 119 | func refillCredits () = { | |
120 | 120 | let H = toBase58String(F.caller.bytes) | |
121 | 121 | let I = value(F.payments[0]) | |
122 | 122 | let J = value(I.amount) | |
123 | 123 | let K = if (isDefined(I.assetId)) | |
124 | 124 | then value(I.assetId) | |
125 | 125 | else throw("Accept SIGN token only") | |
126 | 126 | if ((e != K)) | |
127 | 127 | then throw("Accept SIGN token only") | |
128 | 128 | else { | |
129 | 129 | let L = getIntegerValue(a, ("certification_fee_" + toBase58String(value(K)))) | |
130 | 130 | if (true) | |
131 | - | then throw(("Uy! " + toString(( | |
131 | + | then throw(("Uy! " + toString((L / 100000000)))) | |
132 | 132 | else { | |
133 | - | let M = (L / | |
133 | + | let M = ((L / 100000000) / J) | |
134 | 134 | if ((0 >= M)) | |
135 | 135 | then throw("Not enough for at least 1 credit") | |
136 | 136 | else [IntegerEntry(("credits_" + toBase58String(f)), M), ScriptTransfer(addressFromStringValue(h), J, I.assetId)] | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | ||
143 | 143 | @Callable(N) | |
144 | 144 | func fileCertification (O,P,m,B,Q) = { | |
145 | 145 | let R = value(N.transactionId) | |
146 | 146 | let S = k(O, m) | |
147 | 147 | let T = r(m) | |
148 | 148 | let H = toBase58String(N.caller.bytes) | |
149 | 149 | if ((S != "NONE")) | |
150 | 150 | then throw("This entry already exist") | |
151 | 151 | else if ((T != "NONE")) | |
152 | 152 | then throw("This uuid already exist") | |
153 | 153 | else if ((size(m) != 36)) | |
154 | 154 | then throw("Uuid should be 36 characters.") | |
155 | 155 | else if ((size(O) != 64)) | |
156 | 156 | then throw("Hash should be 64 characters.") | |
157 | 157 | else if ((size(P) > 150)) | |
158 | 158 | then throw("Title is too long, 150 characters max.") | |
159 | 159 | else { | |
160 | 160 | let I = value(N.payments[0]) | |
161 | 161 | let J = value(I.amount) | |
162 | 162 | let K = if (isDefined(I.assetId)) | |
163 | 163 | then value(I.assetId) | |
164 | 164 | else throw("Waves is not accepted as payment") | |
165 | 165 | let U = getIntegerValue(this, ("certification_fee_" + toBase58String(value(K)))) | |
166 | 166 | let V = i(("credits_" + toBase58String(f))) | |
167 | 167 | if ((0 >= V)) | |
168 | 168 | then throw("Not enough credit on the dapp, please refill") | |
169 | 169 | else if ((f != K)) | |
170 | 170 | then throw("This token is not accepted at the moment") | |
171 | 171 | else if ((J != U)) | |
172 | 172 | then throw("The price is wrong") | |
173 | 173 | else [StringEntry(m, toBase58String(R)), StringEntry((O + m), toBase58String(R)), StringEntry((P + m), toBase58String(R)), StringEntry(((("data_fc_" + toBase58String(R)) + "_") + H), B), IntegerEntry(("credits_" + toBase58String(f)), (V - 1)), ScriptTransfer(addressFromStringValue(d), J, I.assetId)] | |
174 | 174 | } | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(N) | |
180 | 180 | func revokeCertification (W,Q) = { | |
181 | 181 | let R = value(N.transactionId) | |
182 | 182 | let H = toBase58String(N.caller.bytes) | |
183 | 183 | let S = { | |
184 | 184 | let n = getString(this, ((("data_fc_" + W) + "_") + H)) | |
185 | 185 | if ($isInstanceOf(n, "String")) | |
186 | 186 | then { | |
187 | 187 | let o = n | |
188 | 188 | o | |
189 | 189 | } | |
190 | 190 | else "NONE" | |
191 | 191 | } | |
192 | 192 | let X = { | |
193 | 193 | let n = getString(this, ("STATUS_FC_" + W)) | |
194 | 194 | if ($isInstanceOf(n, "String")) | |
195 | 195 | then { | |
196 | 196 | let o = n | |
197 | 197 | o | |
198 | 198 | } | |
199 | 199 | else "NONE" | |
200 | 200 | } | |
201 | 201 | let Y = (((dropRight(S, 1) + ",\"status\":\"REVOKED_") + toBase58String(R)) + "\"}") | |
202 | 202 | if ((X != "NONE")) | |
203 | 203 | then throw("This certification have already been revoked.") | |
204 | 204 | else if ((S == "NONE")) | |
205 | 205 | then throw("You cannot change the status of this certification.") | |
206 | 206 | else { | |
207 | 207 | let I = value(N.payments[0]) | |
208 | 208 | let J = value(I.amount) | |
209 | 209 | let K = if (isDefined(I.assetId)) | |
210 | 210 | then value(I.assetId) | |
211 | 211 | else throw("Waves is not accepted as payment") | |
212 | 212 | let U = getIntegerValue(this, ("certification_fee_" + toBase58String(value(K)))) | |
213 | 213 | let V = getIntegerValue(this, ("credits_" + toBase58String(f))) | |
214 | 214 | if ((0 >= V)) | |
215 | 215 | then throw("Not enough credit on the dapp, please refill") | |
216 | 216 | else if ((f != K)) | |
217 | 217 | then throw("This token is not accepted at the moment") | |
218 | 218 | else if ((J != U)) | |
219 | 219 | then throw("The price is wrong") | |
220 | 220 | else [StringEntry(("STATUS_FC_" + W), ("REVOKED_" + toBase58String(R))), StringEntry(((("data_fc_" + W) + "_") + H), Y), IntegerEntry(("credits_" + toBase58String(f)), (V - 1)), ScriptTransfer(addressFromStringValue(d), J, I.assetId)] | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(F) | |
227 | 227 | func deleteEntry (Z) = { | |
228 | 228 | let aa = toString(addressFromPublicKey(F.callerPublicKey)) | |
229 | 229 | if ((aa == b)) | |
230 | 230 | then [DeleteEntry(Z)] | |
231 | 231 | else throw("no") | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 |
github/deemru/w8io/026f985 31.47 ms ◑