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