tx · 7tR92wrGrPZnQmj3JSivqhxHn2mdsrxvaatQfRzsQ7qj 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h: -0.01400000 Waves 2021.09.29 08:35 [1723819] smart account 3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h > SELF 0.00000000 Waves
{ "type": 13, "id": "7tR92wrGrPZnQmj3JSivqhxHn2mdsrxvaatQfRzsQ7qj", "fee": 1400000, "feeAssetId": null, "timestamp": 1632893752549, "version": 2, "chainId": 84, "sender": "3Mzms5gHUDYufDRjSVN7g9DcCMG77pzFN4h", "senderPublicKey": "CU8dJ2mJQjVBWaDHwXjPztuVdy9XAyAnTuqSCKuNPARn", "proofs": [ "52yvtKFEdxUzhNv55qkeGHHSEGsNsTxZP4WioSFLWHyrFC9e53yjHYTCKD5gb1rVtnQ8tdy85q6BowMz6YGBXFtE" ], "script": "base64:AAIFAAAAAAAAAB0IAhIDCgEBEgASBwoFCAgICAgSBAoCCAgSAwoBCAAAABMAAAAAD3N0b3JhZ2VWZXJpZmllcgkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAJc2lnbkFkbWluAgAAACMzTjF3UGdIRnRlem1SVkJhcW9valA4WEp3VGthcms0aGJpZgAAAAAIZmVlQWRtaW4CAAAAIzNOMXdQZ0hGdGV6bVJWQmFxb29qUDhYSndUa2FyazRoYmlmAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAAJc2lnblRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAANYWNjZXB0ZWRUb2tlbgEAAAAgYfHkwqhFFD81I1SLw0GO/ozjwqWx6THXqSKcOOhu9fcAAAAABnVzZG5JRAIAAAAsM0tGWEJHR0xDakE1WjJEdVc0RHE5ZkREckhqSkpQMVpFa2FvYWpTenV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bGVyBQAAAAlzaWduQWRtaW4JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAABbJAG4", "height": 1723819, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6hxkDUmwFCNq3KcJgrwBsXWybdESaPvQt4urz2icGUbv Next: Atw1mY2PkAnrYuQrUPX2XobfSXsRpW5qVtrGGxRfNHdj Diff:
Old | New | Differences | |
---|---|---|---|
127 | 127 | then throw("Accept SIGN token only") | |
128 | 128 | else { | |
129 | 129 | let L = getIntegerValue(a, ("certification_fee_" + toBase58String(value(K)))) | |
130 | - | let M = (L / J) | |
131 | - | if ((0 >= M)) | |
132 | - | then throw("Not enough for at least 1 credit") | |
133 | - | else [IntegerEntry(("credits_" + toBase58String(f)), M), ScriptTransfer(addressFromStringValue(h), J, I.assetId)] | |
130 | + | if (true) | |
131 | + | then throw(("Uy! " + toString(L))) | |
132 | + | else { | |
133 | + | let M = (L / J) | |
134 | + | if ((0 >= M)) | |
135 | + | then throw("Not enough for at least 1 credit") | |
136 | + | else [IntegerEntry(("credits_" + toBase58String(f)), M), ScriptTransfer(addressFromStringValue(h), J, I.assetId)] | |
137 | + | } | |
134 | 138 | } | |
135 | 139 | } | |
136 | 140 |
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 | - | let M = (L / J) | |
131 | - | if ((0 >= M)) | |
132 | - | then throw("Not enough for at least 1 credit") | |
133 | - | else [IntegerEntry(("credits_" + toBase58String(f)), M), ScriptTransfer(addressFromStringValue(h), J, I.assetId)] | |
130 | + | if (true) | |
131 | + | then throw(("Uy! " + toString(L))) | |
132 | + | else { | |
133 | + | let M = (L / J) | |
134 | + | if ((0 >= M)) | |
135 | + | then throw("Not enough for at least 1 credit") | |
136 | + | else [IntegerEntry(("credits_" + toBase58String(f)), M), ScriptTransfer(addressFromStringValue(h), J, I.assetId)] | |
137 | + | } | |
134 | 138 | } | |
135 | 139 | } | |
136 | 140 | ||
137 | 141 | ||
138 | 142 | ||
139 | 143 | @Callable(N) | |
140 | 144 | func fileCertification (O,P,m,B,Q) = { | |
141 | 145 | let R = value(N.transactionId) | |
142 | 146 | let S = k(O, m) | |
143 | 147 | let T = r(m) | |
144 | 148 | let H = toBase58String(N.caller.bytes) | |
145 | 149 | if ((S != "NONE")) | |
146 | 150 | then throw("This entry already exist") | |
147 | 151 | else if ((T != "NONE")) | |
148 | 152 | then throw("This uuid already exist") | |
149 | 153 | else if ((size(m) != 36)) | |
150 | 154 | then throw("Uuid should be 36 characters.") | |
151 | 155 | else if ((size(O) != 64)) | |
152 | 156 | then throw("Hash should be 64 characters.") | |
153 | 157 | else if ((size(P) > 150)) | |
154 | 158 | then throw("Title is too long, 150 characters max.") | |
155 | 159 | else { | |
156 | 160 | let I = value(N.payments[0]) | |
157 | 161 | let J = value(I.amount) | |
158 | 162 | let K = if (isDefined(I.assetId)) | |
159 | 163 | then value(I.assetId) | |
160 | 164 | else throw("Waves is not accepted as payment") | |
161 | 165 | let U = getIntegerValue(this, ("certification_fee_" + toBase58String(value(K)))) | |
162 | 166 | let V = i(("credits_" + toBase58String(f))) | |
163 | 167 | if ((0 >= V)) | |
164 | 168 | then throw("Not enough credit on the dapp, please refill") | |
165 | 169 | else if ((f != K)) | |
166 | 170 | then throw("This token is not accepted at the moment") | |
167 | 171 | else if ((J != U)) | |
168 | 172 | then throw("The price is wrong") | |
169 | 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)] | |
170 | 174 | } | |
171 | 175 | } | |
172 | 176 | ||
173 | 177 | ||
174 | 178 | ||
175 | 179 | @Callable(N) | |
176 | 180 | func revokeCertification (W,Q) = { | |
177 | 181 | let R = value(N.transactionId) | |
178 | 182 | let H = toBase58String(N.caller.bytes) | |
179 | 183 | let S = { | |
180 | 184 | let n = getString(this, ((("data_fc_" + W) + "_") + H)) | |
181 | 185 | if ($isInstanceOf(n, "String")) | |
182 | 186 | then { | |
183 | 187 | let o = n | |
184 | 188 | o | |
185 | 189 | } | |
186 | 190 | else "NONE" | |
187 | 191 | } | |
188 | 192 | let X = { | |
189 | 193 | let n = getString(this, ("STATUS_FC_" + W)) | |
190 | 194 | if ($isInstanceOf(n, "String")) | |
191 | 195 | then { | |
192 | 196 | let o = n | |
193 | 197 | o | |
194 | 198 | } | |
195 | 199 | else "NONE" | |
196 | 200 | } | |
197 | 201 | let Y = (((dropRight(S, 1) + ",\"status\":\"REVOKED_") + toBase58String(R)) + "\"}") | |
198 | 202 | if ((X != "NONE")) | |
199 | 203 | then throw("This certification have already been revoked.") | |
200 | 204 | else if ((S == "NONE")) | |
201 | 205 | then throw("You cannot change the status of this certification.") | |
202 | 206 | else { | |
203 | 207 | let I = value(N.payments[0]) | |
204 | 208 | let J = value(I.amount) | |
205 | 209 | let K = if (isDefined(I.assetId)) | |
206 | 210 | then value(I.assetId) | |
207 | 211 | else throw("Waves is not accepted as payment") | |
208 | 212 | let U = getIntegerValue(this, ("certification_fee_" + toBase58String(value(K)))) | |
209 | 213 | let V = getIntegerValue(this, ("credits_" + toBase58String(f))) | |
210 | 214 | if ((0 >= V)) | |
211 | 215 | then throw("Not enough credit on the dapp, please refill") | |
212 | 216 | else if ((f != K)) | |
213 | 217 | then throw("This token is not accepted at the moment") | |
214 | 218 | else if ((J != U)) | |
215 | 219 | then throw("The price is wrong") | |
216 | 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)] | |
217 | 221 | } | |
218 | 222 | } | |
219 | 223 | ||
220 | 224 | ||
221 | 225 | ||
222 | 226 | @Callable(F) | |
223 | 227 | func deleteEntry (Z) = { | |
224 | 228 | let aa = toString(addressFromPublicKey(F.callerPublicKey)) | |
225 | 229 | if ((aa == b)) | |
226 | 230 | then [DeleteEntry(Z)] | |
227 | 231 | else throw("no") | |
228 | 232 | } | |
229 | 233 | ||
230 | 234 |
github/deemru/w8io/026f985 39.64 ms ◑