tx · QDipQwukBdKDYsuEeDmstNiS9Cd2u3MJg87PZr6Yqtr 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL: -0.05000000 Waves 2021.01.22 16:43 [1364725] smart account 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL > SELF 0.00000000 Waves
{ "type": 13, "id": "QDipQwukBdKDYsuEeDmstNiS9Cd2u3MJg87PZr6Yqtr", "fee": 5000000, "feeAssetId": null, "timestamp": 1611323019607, "version": 2, "chainId": 84, "sender": "3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL", "senderPublicKey": "DfBpAEVbFfW1EMhjQ2DgbCDVQCY5L1nwL9NdWEmu4j3P", "proofs": [ "5qqczMUCcwtWUvdpdjkQvTEErQt3BTqFDvHEhi4vwT2SvaiSk2BGLYMLpFHDg6uo3Jsbuhvj7SG3za7FhMtULJ5n" ], "script": "base64:AAIEAAAAAAAAAE8IAhIFCgMICAgSBAoCCAgSBAoCCAgSBAoCCAgSCAoGCAEICAgIEgYKBAgICAESBAoCCAgSBAoCCAgSBgoECAgICBIHCgUICAgIARIDCgEIAAAAIAAAAAAETk9ORQIAAAAETk9ORQAAAAAOcmViaXJ0aEFzc2V0SWQBAAAAIE5SiPQ7HWpJaPwC+8nKRjrQfJdgOfgLUzaZtoFyMAwxAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FAQAAAA9nZXRCb29sZWFuQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEludGVnZXJCeUtle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AAAgAAAAECAAAAIENhbGxlciBpcyBub3QgdGhlIENvbnRyYWN0IG93bmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDADAwMJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAABHhowAGCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAX14QABgkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAHc1lAAYDCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAjw0YACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcHJQAIjA==", "height": 1364725, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hm6Y3du1HNRjr838WGhxFkPFUY5UWv3cczMmN9eco3Lx Next: FwrtiRG5GrwcEs9koPKDQS4DkgqpKcWY4bvirqZJUkNz Diff:
Old | New | Differences | |
---|---|---|---|
80 | 80 | func C (t,m,y) = ((((m + "_") + t) + "_isDelivered_") + y) | |
81 | 81 | ||
82 | 82 | ||
83 | - | func D ( | |
83 | + | func D (E) = (E + "_data") | |
84 | 84 | ||
85 | 85 | ||
86 | - | func | |
86 | + | func F (G) = (G + "_data") | |
87 | 87 | ||
88 | 88 | ||
89 | - | func | |
89 | + | func H (I) = (I + "_tokens") | |
90 | 90 | ||
91 | 91 | ||
92 | - | func | |
92 | + | func J (t) = c(s(t)) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func K ( | |
95 | + | func K (E) = g(H(E)) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func L ( | |
98 | + | func L (t) = c(u(t)) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func M (t) = c( | |
101 | + | func M (t,m,y) = c(x(t, m, y)) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func N (t,m | |
104 | + | func N (t,m) = c(w(t, m)) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func O (t,m) = | |
107 | + | func O (t,m,y) = g(z(t, m, y)) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func P (t,m,y) = | |
110 | + | func P (t,m,y) = c(C(t, m, y)) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func Q (t,m | |
113 | + | func Q (t,m) = h(v(t, m)) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func R (t,m) = | |
116 | + | func R (t,m) = c(B(t, m)) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func S ( | |
119 | + | func S (E) = c(D(E)) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func T ( | |
122 | + | func T (G) = c(F(G)) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func U (H) = c(G(H)) | |
126 | - | ||
127 | - | ||
128 | - | @Callable(V) | |
129 | - | func registerRetailer (m,W,J) = if ((this != V.caller)) | |
125 | + | @Callable(U) | |
126 | + | func registerRetailer (m,V,I) = if ((this != U.caller)) | |
130 | 127 | then throw("Caller is not the Contract owner") | |
131 | 128 | else { | |
132 | - | let | |
133 | - | [BooleanEntry(I | |
129 | + | let E = p(m) | |
130 | + | [BooleanEntry(H(I), true), StringEntry(D(E), V)] | |
134 | 131 | } | |
135 | 132 | ||
136 | 133 | ||
137 | 134 | ||
138 | - | @Callable( | |
139 | - | func updateRetailer (m, | |
135 | + | @Callable(U) | |
136 | + | func updateRetailer (m,V) = if ((this != U.caller)) | |
140 | 137 | then throw("Caller is not the Contract owner") | |
141 | 138 | else { | |
142 | - | let | |
143 | - | let | |
144 | - | if (( | |
139 | + | let E = p(m) | |
140 | + | let W = S(m) | |
141 | + | if ((W == a)) | |
145 | 142 | then throw("Courier does not exist on the Blockchain") | |
146 | - | else [StringEntry( | |
143 | + | else [StringEntry(F(E), V)] | |
147 | 144 | } | |
148 | 145 | ||
149 | 146 | ||
150 | 147 | ||
151 | - | @Callable( | |
152 | - | func registerCourier (r, | |
148 | + | @Callable(U) | |
149 | + | func registerCourier (r,X) = if ((this != U.caller)) | |
153 | 150 | then throw("Caller is not the Contract owner") | |
154 | 151 | else { | |
155 | - | let | |
156 | - | [StringEntry(G | |
152 | + | let G = q(r) | |
153 | + | [StringEntry(F(G), X)] | |
157 | 154 | } | |
158 | 155 | ||
159 | 156 | ||
160 | 157 | ||
161 | - | @Callable( | |
162 | - | func updateCourier (r, | |
158 | + | @Callable(U) | |
159 | + | func updateCourier (r,X) = if ((this != U.caller)) | |
163 | 160 | then throw("Caller is not the Contract owner") | |
164 | 161 | else { | |
165 | - | let | |
166 | - | let | |
167 | - | if (( | |
162 | + | let G = q(r) | |
163 | + | let Y = T(r) | |
164 | + | if ((Y == a)) | |
168 | 165 | then throw("Courier does not exist on the Blockchain") | |
169 | - | else [StringEntry(G | |
166 | + | else [StringEntry(F(G), X)] | |
170 | 167 | } | |
171 | 168 | ||
172 | 169 | ||
173 | 170 | ||
174 | - | @Callable( | |
175 | - | func addOrder (n,aa | |
171 | + | @Callable(U) | |
172 | + | func addOrder (n,Z,aa,m,V,j) = if ((this != U.caller)) | |
176 | 173 | then throw("Caller is not the Contract owner") | |
177 | 174 | else { | |
178 | 175 | let t = l(m, n) | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | if ((0 >= | |
176 | + | let ab = i(j, t) | |
177 | + | let E = p(m) | |
178 | + | let ac = (Z * 100000000) | |
179 | + | if ((0 >= Z)) | |
183 | 180 | then throw("You cannot create an order with shipping costs lower than 0") | |
184 | - | else if (( | |
181 | + | else if ((L(t) != a)) | |
185 | 182 | then throw("An order with the same id already exists") | |
186 | - | else [StringEntry(E | |
183 | + | else [StringEntry(D(E), V), StringEntry(s(t), j), StringEntry(u(t), m), IntegerEntry(v(t, m), ac), StringEntry(B(ab, m), aa), StringEntry(x(t, m, ""), "open")] | |
187 | 184 | } | |
188 | 185 | ||
189 | 186 | ||
190 | 187 | ||
191 | - | @Callable( | |
192 | - | func setOrderIsAccepted (m,n,y, | |
188 | + | @Callable(U) | |
189 | + | func setOrderIsAccepted (m,n,y,ad) = if ((this != U.caller)) | |
193 | 190 | then throw("Caller is not the Contract owner") | |
194 | 191 | else { | |
195 | 192 | let t = l(m, n) | |
196 | - | let j = | |
197 | - | let | |
198 | - | let | |
199 | - | if (( | |
193 | + | let j = J(t) | |
194 | + | let ab = i(j, t) | |
195 | + | let aa = R(ab, m) | |
196 | + | if ((L(t) != m)) | |
200 | 197 | then throw("The requested order does not exist") | |
201 | - | else if (( | |
198 | + | else if ((M(t, m, "") != "open")) | |
202 | 199 | then throw("The requested order is no longer available") | |
203 | - | else [DeleteEntry(B( | |
200 | + | else [DeleteEntry(B(ab, m)), DeleteEntry(x(t, m, "")), StringEntry(x(t, m, y), aa), BooleanEntry(z(t, m, y), false), IntegerEntry(A(t, m, y), ad), StringEntry(w(t, m), y)] | |
204 | 201 | } | |
205 | 202 | ||
206 | 203 | ||
207 | 204 | ||
208 | - | @Callable( | |
209 | - | func setOrderIsInDelivery (m,n) = if ((this != | |
205 | + | @Callable(U) | |
206 | + | func setOrderIsInDelivery (m,n) = if ((this != U.caller)) | |
210 | 207 | then throw("Caller is not the Contract owner") | |
211 | 208 | else { | |
212 | 209 | let t = l(m, n) | |
213 | - | let y = | |
214 | - | if (( | |
210 | + | let y = N(t, m) | |
211 | + | if ((L(t) != m)) | |
215 | 212 | then throw("The requested order does not exist") | |
216 | 213 | else if ((y == a)) | |
217 | 214 | then throw("The requested order is not accepted yet") | |
218 | - | else if (( | |
215 | + | else if ((O(t, m, y) != false)) | |
219 | 216 | then throw("The requested order is no longer available") | |
220 | 217 | else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")] | |
221 | 218 | } | |
222 | 219 | ||
223 | 220 | ||
224 | 221 | ||
225 | - | @Callable( | |
226 | - | func setOrderIsDelivered (m,n | |
222 | + | @Callable(U) | |
223 | + | func setOrderIsDelivered (m,n) = if ((this != U.caller)) | |
227 | 224 | then throw("Caller is not the Contract owner") | |
228 | 225 | else { | |
229 | 226 | let t = l(m, n) | |
230 | - | let y = | |
231 | - | let | |
232 | - | let | |
233 | - | if (( | |
227 | + | let y = N(t, m) | |
228 | + | let aa = M(t, m, y) | |
229 | + | let ac = Q(t, m) | |
230 | + | if ((L(t) != m)) | |
234 | 231 | then throw("The requested order does not exist") | |
235 | 232 | else if ((y == a)) | |
236 | 233 | then throw("There was no courier set! Something went wrong with the order.") | |
237 | - | else if (( | |
234 | + | else if ((P(t, m, y) != "inDelivery")) | |
238 | 235 | then throw("The requested order was already delivered") | |
239 | - | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(C(t, m, "")), StringEntry(C(t, m, y), | |
236 | + | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(C(t, m, "")), StringEntry(C(t, m, y), aa), ScriptTransfer(addressFromStringValue(y), ac, unit)] | |
240 | 237 | } | |
241 | 238 | ||
242 | 239 | ||
243 | 240 | ||
244 | - | @Callable( | |
245 | - | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != | |
241 | + | @Callable(U) | |
242 | + | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != U.caller)) | |
246 | 243 | then throw("Caller is not the Contract owner") | |
247 | 244 | else { | |
248 | 245 | let t = l(m, n) | |
249 | - | let | |
250 | - | let | |
251 | - | if (( | |
246 | + | let ab = i(j, t) | |
247 | + | let aa = M(t, m, y) | |
248 | + | if ((L(t) != m)) | |
252 | 249 | then throw("The requested order does not exist") | |
253 | - | else if (( | |
250 | + | else if ((aa == a)) | |
254 | 251 | then throw("The requested order does not exist or is not accepted yet") | |
255 | - | else if (( | |
252 | + | else if ((O(t, m, y) == a)) | |
256 | 253 | then throw("The requested order is not accepted yet") | |
257 | - | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(A(t, m, y)), StringEntry(B( | |
254 | + | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(A(t, m, y)), StringEntry(B(ab, m), aa), StringEntry(x(t, m, ""), "open")] | |
258 | 255 | } | |
259 | 256 | ||
260 | 257 | ||
261 | 258 | ||
262 | - | @Callable( | |
263 | - | func cancelOpenOrderByRetailer (m,n,j, | |
259 | + | @Callable(U) | |
260 | + | func cancelOpenOrderByRetailer (m,n,j,ae,Z) = if ((this != U.caller)) | |
264 | 261 | then throw("Caller is not the Contract owner") | |
265 | 262 | else { | |
266 | 263 | let t = l(m, n) | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | if (( | |
264 | + | let ab = i(j, t) | |
265 | + | let E = p(m) | |
266 | + | let ac = (Z * 100000000) | |
267 | + | if ((L(t) != m)) | |
271 | 268 | then throw("The requested order does not exist") | |
272 | - | else if (( | |
269 | + | else if ((O(t, m, "") == "open")) | |
273 | 270 | then throw("The requested order is already accepted and can no longer be canceled in this way") | |
274 | - | else [DeleteEntry(s(t)), DeleteEntry(u(t)), DeleteEntry(v(t, m)), DeleteEntry(B( | |
271 | + | else [DeleteEntry(s(t)), DeleteEntry(u(t)), DeleteEntry(v(t, m)), DeleteEntry(B(ab, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ae), ac, unit)] | |
275 | 272 | } | |
276 | 273 | ||
277 | 274 | ||
278 | 275 | ||
279 | - | @Callable( | |
280 | - | func deleteEntry (d) = if ((this != | |
276 | + | @Callable(U) | |
277 | + | func deleteEntry (d) = if ((this != U.caller)) | |
281 | 278 | then throw("Caller is not the Contract owner") | |
282 | 279 | else [DeleteEntry(d)] | |
283 | 280 | ||
284 | 281 | ||
285 | - | @Verifier( | |
286 | - | func | |
287 | - | let e = | |
282 | + | @Verifier(af) | |
283 | + | func ag () = { | |
284 | + | let e = af | |
288 | 285 | if ($isInstanceOf(e, "SetScriptTransaction")) | |
289 | - | then sigVerify( | |
286 | + | then sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey) | |
290 | 287 | else if ($isInstanceOf(e, "InvokeScriptTransaction")) | |
291 | - | then sigVerify( | |
288 | + | then sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey) | |
292 | 289 | else if ($isInstanceOf(e, "TransferTransaction")) | |
293 | 290 | then { | |
294 | - | let | |
295 | - | if (if (if (( | |
291 | + | let ah = e | |
292 | + | if (if (if ((ah.amount == 300000000)) | |
296 | 293 | then true | |
297 | - | else ( | |
294 | + | else (ah.amount == 400000000)) | |
298 | 295 | then true | |
299 | - | else ( | |
296 | + | else (ah.amount == 500000000)) | |
300 | 297 | then true | |
301 | - | else if (( | |
302 | - | then sigVerify( | |
298 | + | else if ((ah.amount == 600000000)) | |
299 | + | then sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey) | |
303 | 300 | else false | |
304 | 301 | } | |
305 | 302 | else false |
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 = base58'6Gjo6dZNLzun8w7uzWuH1t6hoGph9KrMcf1qjbEzBsVJ' | |
7 | 7 | ||
8 | 8 | func c (d) = { | |
9 | 9 | let e = getString(this, d) | |
10 | 10 | if ($isInstanceOf(e, "String")) | |
11 | 11 | then { | |
12 | 12 | let f = e | |
13 | 13 | f | |
14 | 14 | } | |
15 | 15 | else a | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func g (d) = { | |
20 | 20 | let e = getBoolean(this, d) | |
21 | 21 | if ($isInstanceOf(e, "Boolean")) | |
22 | 22 | then { | |
23 | 23 | let f = e | |
24 | 24 | f | |
25 | 25 | } | |
26 | 26 | else a | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func h (d) = { | |
31 | 31 | let e = getInteger(this, d) | |
32 | 32 | if ($isInstanceOf(e, "Int")) | |
33 | 33 | then { | |
34 | 34 | let f = e | |
35 | 35 | f | |
36 | 36 | } | |
37 | 37 | else -1 | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func i (j,k) = ((j + "_") + k) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func l (m,n) = { | |
45 | 45 | let o = (m + n) | |
46 | 46 | ("order_" + toBase58String(sha256(toBytes(o)))) | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func p (m) = ("retailer_" + toBase58String(sha256(toBytes(m)))) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func q (r) = ("courier_" + toBase58String(sha256(toBytes(r)))) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func s (t) = (t + "_city") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func u (t) = (t + "_retailer") | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func v (t,m) = (((m + "_") + t) + "_shipping") | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func w (t,m) = (((m + "_") + t) + "_courierId") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func x (t,m,y) = ((((m + "_") + t) + "_data_courier_") + y) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func z (t,m,y) = (((((m + "_") + t) + "_data_courier_") + y) + "_isInDelivery") | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func A (t,m,y) = (((((m + "_") + t) + "_data_courier_") + y) + "_acceptedAt") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func B (t,m) = (((m + "_") + t) + "_data_open") | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func C (t,m,y) = ((((m + "_") + t) + "_isDelivered_") + y) | |
81 | 81 | ||
82 | 82 | ||
83 | - | func D ( | |
83 | + | func D (E) = (E + "_data") | |
84 | 84 | ||
85 | 85 | ||
86 | - | func | |
86 | + | func F (G) = (G + "_data") | |
87 | 87 | ||
88 | 88 | ||
89 | - | func | |
89 | + | func H (I) = (I + "_tokens") | |
90 | 90 | ||
91 | 91 | ||
92 | - | func | |
92 | + | func J (t) = c(s(t)) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func K ( | |
95 | + | func K (E) = g(H(E)) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func L ( | |
98 | + | func L (t) = c(u(t)) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func M (t) = c( | |
101 | + | func M (t,m,y) = c(x(t, m, y)) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func N (t,m | |
104 | + | func N (t,m) = c(w(t, m)) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func O (t,m) = | |
107 | + | func O (t,m,y) = g(z(t, m, y)) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func P (t,m,y) = | |
110 | + | func P (t,m,y) = c(C(t, m, y)) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func Q (t,m | |
113 | + | func Q (t,m) = h(v(t, m)) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func R (t,m) = | |
116 | + | func R (t,m) = c(B(t, m)) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func S ( | |
119 | + | func S (E) = c(D(E)) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func T ( | |
122 | + | func T (G) = c(F(G)) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func U (H) = c(G(H)) | |
126 | - | ||
127 | - | ||
128 | - | @Callable(V) | |
129 | - | func registerRetailer (m,W,J) = if ((this != V.caller)) | |
125 | + | @Callable(U) | |
126 | + | func registerRetailer (m,V,I) = if ((this != U.caller)) | |
130 | 127 | then throw("Caller is not the Contract owner") | |
131 | 128 | else { | |
132 | - | let | |
133 | - | [BooleanEntry(I | |
129 | + | let E = p(m) | |
130 | + | [BooleanEntry(H(I), true), StringEntry(D(E), V)] | |
134 | 131 | } | |
135 | 132 | ||
136 | 133 | ||
137 | 134 | ||
138 | - | @Callable( | |
139 | - | func updateRetailer (m, | |
135 | + | @Callable(U) | |
136 | + | func updateRetailer (m,V) = if ((this != U.caller)) | |
140 | 137 | then throw("Caller is not the Contract owner") | |
141 | 138 | else { | |
142 | - | let | |
143 | - | let | |
144 | - | if (( | |
139 | + | let E = p(m) | |
140 | + | let W = S(m) | |
141 | + | if ((W == a)) | |
145 | 142 | then throw("Courier does not exist on the Blockchain") | |
146 | - | else [StringEntry( | |
143 | + | else [StringEntry(F(E), V)] | |
147 | 144 | } | |
148 | 145 | ||
149 | 146 | ||
150 | 147 | ||
151 | - | @Callable( | |
152 | - | func registerCourier (r, | |
148 | + | @Callable(U) | |
149 | + | func registerCourier (r,X) = if ((this != U.caller)) | |
153 | 150 | then throw("Caller is not the Contract owner") | |
154 | 151 | else { | |
155 | - | let | |
156 | - | [StringEntry(G | |
152 | + | let G = q(r) | |
153 | + | [StringEntry(F(G), X)] | |
157 | 154 | } | |
158 | 155 | ||
159 | 156 | ||
160 | 157 | ||
161 | - | @Callable( | |
162 | - | func updateCourier (r, | |
158 | + | @Callable(U) | |
159 | + | func updateCourier (r,X) = if ((this != U.caller)) | |
163 | 160 | then throw("Caller is not the Contract owner") | |
164 | 161 | else { | |
165 | - | let | |
166 | - | let | |
167 | - | if (( | |
162 | + | let G = q(r) | |
163 | + | let Y = T(r) | |
164 | + | if ((Y == a)) | |
168 | 165 | then throw("Courier does not exist on the Blockchain") | |
169 | - | else [StringEntry(G | |
166 | + | else [StringEntry(F(G), X)] | |
170 | 167 | } | |
171 | 168 | ||
172 | 169 | ||
173 | 170 | ||
174 | - | @Callable( | |
175 | - | func addOrder (n,aa | |
171 | + | @Callable(U) | |
172 | + | func addOrder (n,Z,aa,m,V,j) = if ((this != U.caller)) | |
176 | 173 | then throw("Caller is not the Contract owner") | |
177 | 174 | else { | |
178 | 175 | let t = l(m, n) | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | if ((0 >= | |
176 | + | let ab = i(j, t) | |
177 | + | let E = p(m) | |
178 | + | let ac = (Z * 100000000) | |
179 | + | if ((0 >= Z)) | |
183 | 180 | then throw("You cannot create an order with shipping costs lower than 0") | |
184 | - | else if (( | |
181 | + | else if ((L(t) != a)) | |
185 | 182 | then throw("An order with the same id already exists") | |
186 | - | else [StringEntry(E | |
183 | + | else [StringEntry(D(E), V), StringEntry(s(t), j), StringEntry(u(t), m), IntegerEntry(v(t, m), ac), StringEntry(B(ab, m), aa), StringEntry(x(t, m, ""), "open")] | |
187 | 184 | } | |
188 | 185 | ||
189 | 186 | ||
190 | 187 | ||
191 | - | @Callable( | |
192 | - | func setOrderIsAccepted (m,n,y, | |
188 | + | @Callable(U) | |
189 | + | func setOrderIsAccepted (m,n,y,ad) = if ((this != U.caller)) | |
193 | 190 | then throw("Caller is not the Contract owner") | |
194 | 191 | else { | |
195 | 192 | let t = l(m, n) | |
196 | - | let j = | |
197 | - | let | |
198 | - | let | |
199 | - | if (( | |
193 | + | let j = J(t) | |
194 | + | let ab = i(j, t) | |
195 | + | let aa = R(ab, m) | |
196 | + | if ((L(t) != m)) | |
200 | 197 | then throw("The requested order does not exist") | |
201 | - | else if (( | |
198 | + | else if ((M(t, m, "") != "open")) | |
202 | 199 | then throw("The requested order is no longer available") | |
203 | - | else [DeleteEntry(B( | |
200 | + | else [DeleteEntry(B(ab, m)), DeleteEntry(x(t, m, "")), StringEntry(x(t, m, y), aa), BooleanEntry(z(t, m, y), false), IntegerEntry(A(t, m, y), ad), StringEntry(w(t, m), y)] | |
204 | 201 | } | |
205 | 202 | ||
206 | 203 | ||
207 | 204 | ||
208 | - | @Callable( | |
209 | - | func setOrderIsInDelivery (m,n) = if ((this != | |
205 | + | @Callable(U) | |
206 | + | func setOrderIsInDelivery (m,n) = if ((this != U.caller)) | |
210 | 207 | then throw("Caller is not the Contract owner") | |
211 | 208 | else { | |
212 | 209 | let t = l(m, n) | |
213 | - | let y = | |
214 | - | if (( | |
210 | + | let y = N(t, m) | |
211 | + | if ((L(t) != m)) | |
215 | 212 | then throw("The requested order does not exist") | |
216 | 213 | else if ((y == a)) | |
217 | 214 | then throw("The requested order is not accepted yet") | |
218 | - | else if (( | |
215 | + | else if ((O(t, m, y) != false)) | |
219 | 216 | then throw("The requested order is no longer available") | |
220 | 217 | else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")] | |
221 | 218 | } | |
222 | 219 | ||
223 | 220 | ||
224 | 221 | ||
225 | - | @Callable( | |
226 | - | func setOrderIsDelivered (m,n | |
222 | + | @Callable(U) | |
223 | + | func setOrderIsDelivered (m,n) = if ((this != U.caller)) | |
227 | 224 | then throw("Caller is not the Contract owner") | |
228 | 225 | else { | |
229 | 226 | let t = l(m, n) | |
230 | - | let y = | |
231 | - | let | |
232 | - | let | |
233 | - | if (( | |
227 | + | let y = N(t, m) | |
228 | + | let aa = M(t, m, y) | |
229 | + | let ac = Q(t, m) | |
230 | + | if ((L(t) != m)) | |
234 | 231 | then throw("The requested order does not exist") | |
235 | 232 | else if ((y == a)) | |
236 | 233 | then throw("There was no courier set! Something went wrong with the order.") | |
237 | - | else if (( | |
234 | + | else if ((P(t, m, y) != "inDelivery")) | |
238 | 235 | then throw("The requested order was already delivered") | |
239 | - | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(C(t, m, "")), StringEntry(C(t, m, y), | |
236 | + | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(C(t, m, "")), StringEntry(C(t, m, y), aa), ScriptTransfer(addressFromStringValue(y), ac, unit)] | |
240 | 237 | } | |
241 | 238 | ||
242 | 239 | ||
243 | 240 | ||
244 | - | @Callable( | |
245 | - | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != | |
241 | + | @Callable(U) | |
242 | + | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != U.caller)) | |
246 | 243 | then throw("Caller is not the Contract owner") | |
247 | 244 | else { | |
248 | 245 | let t = l(m, n) | |
249 | - | let | |
250 | - | let | |
251 | - | if (( | |
246 | + | let ab = i(j, t) | |
247 | + | let aa = M(t, m, y) | |
248 | + | if ((L(t) != m)) | |
252 | 249 | then throw("The requested order does not exist") | |
253 | - | else if (( | |
250 | + | else if ((aa == a)) | |
254 | 251 | then throw("The requested order does not exist or is not accepted yet") | |
255 | - | else if (( | |
252 | + | else if ((O(t, m, y) == a)) | |
256 | 253 | then throw("The requested order is not accepted yet") | |
257 | - | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(A(t, m, y)), StringEntry(B( | |
254 | + | else [DeleteEntry(x(t, m, y)), DeleteEntry(z(t, m, y)), DeleteEntry(A(t, m, y)), StringEntry(B(ab, m), aa), StringEntry(x(t, m, ""), "open")] | |
258 | 255 | } | |
259 | 256 | ||
260 | 257 | ||
261 | 258 | ||
262 | - | @Callable( | |
263 | - | func cancelOpenOrderByRetailer (m,n,j, | |
259 | + | @Callable(U) | |
260 | + | func cancelOpenOrderByRetailer (m,n,j,ae,Z) = if ((this != U.caller)) | |
264 | 261 | then throw("Caller is not the Contract owner") | |
265 | 262 | else { | |
266 | 263 | let t = l(m, n) | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | if (( | |
264 | + | let ab = i(j, t) | |
265 | + | let E = p(m) | |
266 | + | let ac = (Z * 100000000) | |
267 | + | if ((L(t) != m)) | |
271 | 268 | then throw("The requested order does not exist") | |
272 | - | else if (( | |
269 | + | else if ((O(t, m, "") == "open")) | |
273 | 270 | then throw("The requested order is already accepted and can no longer be canceled in this way") | |
274 | - | else [DeleteEntry(s(t)), DeleteEntry(u(t)), DeleteEntry(v(t, m)), DeleteEntry(B( | |
271 | + | else [DeleteEntry(s(t)), DeleteEntry(u(t)), DeleteEntry(v(t, m)), DeleteEntry(B(ab, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ae), ac, unit)] | |
275 | 272 | } | |
276 | 273 | ||
277 | 274 | ||
278 | 275 | ||
279 | - | @Callable( | |
280 | - | func deleteEntry (d) = if ((this != | |
276 | + | @Callable(U) | |
277 | + | func deleteEntry (d) = if ((this != U.caller)) | |
281 | 278 | then throw("Caller is not the Contract owner") | |
282 | 279 | else [DeleteEntry(d)] | |
283 | 280 | ||
284 | 281 | ||
285 | - | @Verifier( | |
286 | - | func | |
287 | - | let e = | |
282 | + | @Verifier(af) | |
283 | + | func ag () = { | |
284 | + | let e = af | |
288 | 285 | if ($isInstanceOf(e, "SetScriptTransaction")) | |
289 | - | then sigVerify( | |
286 | + | then sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey) | |
290 | 287 | else if ($isInstanceOf(e, "InvokeScriptTransaction")) | |
291 | - | then sigVerify( | |
288 | + | then sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey) | |
292 | 289 | else if ($isInstanceOf(e, "TransferTransaction")) | |
293 | 290 | then { | |
294 | - | let | |
295 | - | if (if (if (( | |
291 | + | let ah = e | |
292 | + | if (if (if ((ah.amount == 300000000)) | |
296 | 293 | then true | |
297 | - | else ( | |
294 | + | else (ah.amount == 400000000)) | |
298 | 295 | then true | |
299 | - | else ( | |
296 | + | else (ah.amount == 500000000)) | |
300 | 297 | then true | |
301 | - | else if (( | |
302 | - | then sigVerify( | |
298 | + | else if ((ah.amount == 600000000)) | |
299 | + | then sigVerify(af.bodyBytes, af.proofs[0], af.senderPublicKey) | |
303 | 300 | else false | |
304 | 301 | } | |
305 | 302 | else false | |
306 | 303 | } | |
307 | 304 |
github/deemru/w8io/026f985 78.20 ms ◑