tx · VCyz55DrHA7ssaQC2qnfheGS55MNjxaJLP7Kqi6bXK1 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7: -0.01400000 Waves 2021.07.31 04:34 [1637154] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves
{ "type": 13, "id": "VCyz55DrHA7ssaQC2qnfheGS55MNjxaJLP7Kqi6bXK1", "fee": 1400000, "feeAssetId": null, "timestamp": 1627695220019, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "41vT4hi7Jxx2AS33bWUed3tmi7PKVeAExZuCo9TpAGK1xhcdMpUqqrQFGpHAbMfUK3NqZbtE4suouuAnFuPc9YcJ" ], "script": "base64:AAIEAAAAAAAAAC0IAhIDCgEIEgUKAwgBCBIGCgQICAEIEgMKAQgSAwoBCBIECgIICBIFCgMICAgAAAAgAAAAAAROT05FAgAAAAROT05FAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAIRkVBVFVSRUQCAAAACGZlYXR1cmVkAAAAAAhERUxJU1RFRAIAAAAIZGVsaXN0ZWQAAAAABlZPVElORwIAAAAGdm90aW5nAAAAAAZSRVZFQUwCAAAABnJldmVhbAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEF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kABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAQZ2V0S2V5SXRlbVN0YXR1cwAAAAEFAAAABGl0ZW0FAAAACW5ld1N0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQdjkUcP", "height": 1637154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: gNQTakaPDe32YC6Dd7Y3uhJtHC47eLb2zPfHSUSL2oa Next: GYujRyAXesV6ihRh3Q5zWD9ZQAigXjpxVarDn1f5gaEv Diff:
Old | New | Differences | |
---|---|---|---|
162 | 162 | let q = toBase58String(T.caller.bytes) | |
163 | 163 | let n = o(q) | |
164 | 164 | let W = N(u) | |
165 | - | if ((n == a)) | |
166 | - | then throw("You should register as supplier to remove an item") | |
167 | - | else if (if ((u == a)) | |
168 | - | then true | |
169 | - | else (q != W)) | |
170 | - | then throw(("You don't owned item " + u)) | |
171 | - | else [StringEntry(v(u), r), IntegerEntry(w(u), V), StringEntry(x(u), U)] | |
165 | + | if ((1 == 1)) | |
166 | + | then throw(((((("-> " + q) + " === ") + W) + " -- / ") + u)) | |
167 | + | else if ((n == a)) | |
168 | + | then throw("You should register as supplier to remove an item") | |
169 | + | else if (if ((u == a)) | |
170 | + | then true | |
171 | + | else (q != W)) | |
172 | + | then throw(("You don't owned item " + u)) | |
173 | + | else [StringEntry(v(u), r), IntegerEntry(w(u), V), StringEntry(x(u), U)] | |
172 | 174 | } | |
173 | 175 | ||
174 | 176 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "NONE" | |
5 | 5 | ||
6 | 6 | let b = 3 | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = "featured" | |
11 | 11 | ||
12 | 12 | let e = "delisted" | |
13 | 13 | ||
14 | 14 | let f = "voting" | |
15 | 15 | ||
16 | 16 | let g = "reveal" | |
17 | 17 | ||
18 | 18 | func h (i) = { | |
19 | 19 | let j = getString(this, i) | |
20 | 20 | if ($isInstanceOf(j, "String")) | |
21 | 21 | then { | |
22 | 22 | let k = j | |
23 | 23 | k | |
24 | 24 | } | |
25 | 25 | else a | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func l (i) = { | |
30 | 30 | let j = getInteger(this, i) | |
31 | 31 | if ($isInstanceOf(j, "Int")) | |
32 | 32 | then { | |
33 | 33 | let k = j | |
34 | 34 | k | |
35 | 35 | } | |
36 | 36 | else 0 | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func m (n) = (n + "_account") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func o (n) = h(m(n)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (q,r) = { | |
47 | 47 | let s = (q + r) | |
48 | 48 | ("item_" + toBase58String(sha256(toBytes(s)))) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t (u) = (u + "_owner") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func v (u) = (u + "_title") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func w (u) = (u + "_price") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func x (u) = (u + "_data") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func y (u,z) = (((u + "_") + z) + "_commit") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func A (u) = (u + "_cmtcnt") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func B (u,z) = (((u + "_") + z) + "_reveal") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (u) = (u + "_status") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D (u,E) = ((u + "_res:") + E) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func F (z,u) = (((u + "_") + z) + "_cnt") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func G (n) = (n + "_balance") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func H (n) = { | |
86 | 86 | let I = G(n) | |
87 | 87 | let j = getInteger(this, I) | |
88 | 88 | if ($isInstanceOf(j, "Int")) | |
89 | 89 | then { | |
90 | 90 | let k = j | |
91 | 91 | k | |
92 | 92 | } | |
93 | 93 | else 0 | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func J (z,u) = { | |
98 | 98 | let K = F(z, u) | |
99 | 99 | let j = getInteger(this, K) | |
100 | 100 | if ($isInstanceOf(j, "Int")) | |
101 | 101 | then { | |
102 | 102 | let k = j | |
103 | 103 | k | |
104 | 104 | } | |
105 | 105 | else 0 | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func L (u) = { | |
110 | 110 | let M = w(u) | |
111 | 111 | getIntegerValue(this, M) | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func N (n) = h(t(n)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func O (u,z) = h(y(u, z)) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func P (u) = l(A(u)) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func Q (u,z) = h(B(u, z)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func R (u) = h(C(u)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func S (u,E) = l(D(u, E)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | @Callable(T) | |
134 | 134 | func registerSupplier (U) = { | |
135 | 135 | let q = toBase58String(T.caller.bytes) | |
136 | 136 | let n = o(q) | |
137 | 137 | if ((n != a)) | |
138 | 138 | then throw("This address has already registred as supplier") | |
139 | 139 | else [StringEntry(m(q), U)] | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(T) | |
145 | 145 | func addItem (r,V,U) = { | |
146 | 146 | let q = toBase58String(T.caller.bytes) | |
147 | 147 | let n = o(q) | |
148 | 148 | let u = p(q, r) | |
149 | 149 | if ((n == a)) | |
150 | 150 | then throw("You should register as supplier to add an item") | |
151 | 151 | else if ((0 >= V)) | |
152 | 152 | then throw("Purchase amount cannot be less than item price") | |
153 | 153 | else if ((N(u) != a)) | |
154 | 154 | then throw("An item already exists") | |
155 | 155 | else [StringEntry(t(u), q), StringEntry(v(u), r), IntegerEntry(w(u), V), StringEntry(x(u), U)] | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(T) | |
161 | 161 | func updateItem (u,r,V,U) = { | |
162 | 162 | let q = toBase58String(T.caller.bytes) | |
163 | 163 | let n = o(q) | |
164 | 164 | let W = N(u) | |
165 | - | if ((n == a)) | |
166 | - | then throw("You should register as supplier to remove an item") | |
167 | - | else if (if ((u == a)) | |
168 | - | then true | |
169 | - | else (q != W)) | |
170 | - | then throw(("You don't owned item " + u)) | |
171 | - | else [StringEntry(v(u), r), IntegerEntry(w(u), V), StringEntry(x(u), U)] | |
165 | + | if ((1 == 1)) | |
166 | + | then throw(((((("-> " + q) + " === ") + W) + " -- / ") + u)) | |
167 | + | else if ((n == a)) | |
168 | + | then throw("You should register as supplier to remove an item") | |
169 | + | else if (if ((u == a)) | |
170 | + | then true | |
171 | + | else (q != W)) | |
172 | + | then throw(("You don't owned item " + u)) | |
173 | + | else [StringEntry(v(u), r), IntegerEntry(w(u), V), StringEntry(x(u), U)] | |
172 | 174 | } | |
173 | 175 | ||
174 | 176 | ||
175 | 177 | ||
176 | 178 | @Callable(T) | |
177 | 179 | func removeItem (u) = { | |
178 | 180 | let q = toBase58String(T.caller.bytes) | |
179 | 181 | let n = o(q) | |
180 | 182 | let W = N(u) | |
181 | 183 | if ((n == a)) | |
182 | 184 | then throw("You should register as supplier to remove an item") | |
183 | 185 | else if (if ((u == a)) | |
184 | 186 | then true | |
185 | 187 | else (q != W)) | |
186 | 188 | then throw(("You don't owned item " + u)) | |
187 | 189 | else [DeleteEntry(t(u)), DeleteEntry(v(u)), DeleteEntry(w(u)), DeleteEntry(x(u))] | |
188 | 190 | } | |
189 | 191 | ||
190 | 192 | ||
191 | 193 | ||
192 | 194 | @Callable(T) | |
193 | 195 | func purchase (u) = { | |
194 | 196 | let X = T.payments[0] | |
195 | 197 | if (isDefined(X.assetId)) | |
196 | 198 | then throw("You can buy tokens only with Waves tokens") | |
197 | 199 | else { | |
198 | 200 | let Y = toBase58String(T.caller.bytes) | |
199 | 201 | let V = L(u) | |
200 | 202 | let q = N(u) | |
201 | 203 | if ((V > X.amount)) | |
202 | 204 | then throw("Purchase amount cannot be less than item price") | |
203 | 205 | else if ((X.amount > V)) | |
204 | 206 | then throw("Purchase amount cannot be higher than item price") | |
205 | 207 | else if ((q == a)) | |
206 | 208 | then throw("Supplier does not exists") | |
207 | 209 | else { | |
208 | 210 | let Z = F(Y, u) | |
209 | 211 | let aa = (J(Y, u) + 1) | |
210 | 212 | let I = G(q) | |
211 | 213 | let ab = (H(q) + X.amount) | |
212 | 214 | [IntegerEntry(Z, aa), IntegerEntry(I, ab)] | |
213 | 215 | } | |
214 | 216 | } | |
215 | 217 | } | |
216 | 218 | ||
217 | 219 | ||
218 | 220 | ||
219 | 221 | @Callable(T) | |
220 | 222 | func voteCommit (u,ac) = { | |
221 | 223 | let z = toBase58String(T.caller.bytes) | |
222 | 224 | let ad = P(u) | |
223 | 225 | let ae = R(u) | |
224 | 226 | if ((ad >= b)) | |
225 | 227 | then throw("Reached max number of voters") | |
226 | 228 | else if ((O(u, z) != a)) | |
227 | 229 | then throw("You voted already") | |
228 | 230 | else if ((t(u) == a)) | |
229 | 231 | then throw("Item does not exists") | |
230 | 232 | else if (if ((ae != a)) | |
231 | 233 | then (ae != f) | |
232 | 234 | else false) | |
233 | 235 | then throw("Voting is not active for this item now") | |
234 | 236 | else { | |
235 | 237 | let af = if ((ad == b)) | |
236 | 238 | then g | |
237 | 239 | else f | |
238 | 240 | [StringEntry(y(u, z), ac), IntegerEntry(A(u), (ad + 1)), StringEntry(C(u), af)] | |
239 | 241 | } | |
240 | 242 | } | |
241 | 243 | ||
242 | 244 | ||
243 | 245 | ||
244 | 246 | @Callable(T) | |
245 | 247 | func voteReveal (u,E,ag) = { | |
246 | 248 | let z = toBase58String(T.caller.bytes) | |
247 | 249 | let ae = R(u) | |
248 | 250 | let ah = (S(u, E) + 1) | |
249 | 251 | let ai = toBase58String(sha256(toBytes(((u + E) + ag)))) | |
250 | 252 | if ((ai != O(u, z))) | |
251 | 253 | then throw("Reveal data is not valid") | |
252 | 254 | else if ((b > P(u))) | |
253 | 255 | then throw("Max number of voters not reached") | |
254 | 256 | else if ((Q(u, z) != a)) | |
255 | 257 | then throw("You voted already") | |
256 | 258 | else if (if ((ae != f)) | |
257 | 259 | then (ae != g) | |
258 | 260 | else false) | |
259 | 261 | then throw("Voting is not active for this item now") | |
260 | 262 | else if (if ((E != d)) | |
261 | 263 | then (E != e) | |
262 | 264 | else false) | |
263 | 265 | then throw("Provided voting option is incorrect") | |
264 | 266 | else { | |
265 | 267 | let af = if ((ah >= c)) | |
266 | 268 | then E | |
267 | 269 | else g | |
268 | 270 | [StringEntry(B(u, z), E), IntegerEntry(D(u, z), ah), StringEntry(C(u), af)] | |
269 | 271 | } | |
270 | 272 | } | |
271 | 273 | ||
272 | 274 | ||
273 | 275 | @Verifier(aj) | |
274 | 276 | func ak () = { | |
275 | 277 | let j = aj | |
276 | 278 | if ($isInstanceOf(j, "SetScriptTransaction")) | |
277 | 279 | then { | |
278 | 280 | let al = j | |
279 | 281 | sigVerify(aj.bodyBytes, aj.proofs[0], aj.senderPublicKey) | |
280 | 282 | } | |
281 | 283 | else false | |
282 | 284 | } | |
283 | 285 |
github/deemru/w8io/026f985 40.43 ms ◑