tx · 3td3F8iaLJFqKkGXQmwmFVv729QR1eSggvGKoZRUdbKU 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL: -0.05000000 Waves 2021.01.19 17:58 [1360453] smart account 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL > SELF 0.00000000 Waves
{ "type": 13, "id": "3td3F8iaLJFqKkGXQmwmFVv729QR1eSggvGKoZRUdbKU", "fee": 5000000, "feeAssetId": null, "timestamp": 1611068282804, "version": 2, "chainId": 84, "sender": "3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL", "senderPublicKey": "DfBpAEVbFfW1EMhjQ2DgbCDVQCY5L1nwL9NdWEmu4j3P", "proofs": [ "3gjG64ngHZ984MoA3eDgZHX144e2Q6UixX2HZQQtaiMv23M2g5NofHQrLqXYFtYiGyqND17AtYoWQLhuszrQHBpm" ], "script": "base64:AAIEAAAAAAAAAE4IAhIECgIICBIECgIICBIECgIICBIECgIICBIICgYIAQgICAgSBgoECAgIARIECgIICBIECgIICBIGCgQICAgIEgcKBQgICAgBEgMKAQgAAAAgAAAAAAROT05FAgAAAAROT05FAAAAAA5yZWJpcnRoQXNzZXRJZAEAAAAgTlKI9Dsdaklo/AL7ycpGOtB8l2A5+AtTNpm2gXIwDDEBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAA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N0IG93bmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDADAwMJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAABHhowAGCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAX14QABgkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAHc1lAAYDCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAjw0YACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcHaVU5iw==", "height": 1360453, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FMUq6yHPxiTBdgvM3CsPq7YdRGmqfCjQFGnmwRTYjYAx Next: 5UvmJJCUvggSzwgEGgrHE4v5rhtzuVo2zWd5UKFpv8qY Diff:
Old | New | Differences | |
---|---|---|---|
86 | 86 | func F (G) = (G + "_data") | |
87 | 87 | ||
88 | 88 | ||
89 | - | func H ( | |
89 | + | func H (E) = (E + "_tokens") | |
90 | 90 | ||
91 | 91 | ||
92 | - | func I (t) = c( | |
92 | + | func I (t) = c(s(t)) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func J ( | |
95 | + | func J (E) = g(H(E)) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func K (t | |
98 | + | func K (t) = c(u(t)) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func L (t,m,y) = | |
101 | + | func L (t,m,y) = c(x(t, m, y)) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func M (t,m | |
104 | + | func M (t,m) = c(w(t, m)) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func N (t,m) = | |
107 | + | func N (t,m,y) = g(z(t, m, y)) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func O (t,m) = c( | |
110 | + | func O (t,m,y) = c(C(t, m, y)) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func P ( | |
113 | + | func P (t,m) = h(v(t, m)) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func Q ( | |
116 | + | func Q (t,m) = c(B(t, m)) | |
117 | 117 | ||
118 | 118 | ||
119 | - | @Callable(R) | |
120 | - | func registerRetailer (m,S) = if ((this != R.caller)) | |
119 | + | func R (E) = c(D(E)) | |
120 | + | ||
121 | + | ||
122 | + | func S (G) = c(F(G)) | |
123 | + | ||
124 | + | ||
125 | + | @Callable(T) | |
126 | + | func registerRetailer (m,U) = if ((this != T.caller)) | |
121 | 127 | then throw("Caller is not the Contract owner") | |
122 | 128 | else { | |
123 | 129 | let E = p(m) | |
124 | - | [StringEntry(D(E), | |
130 | + | [BooleanEntry(H(E), true), StringEntry(D(E), U)] | |
125 | 131 | } | |
126 | 132 | ||
127 | 133 | ||
128 | 134 | ||
129 | - | @Callable( | |
130 | - | func updateRetailer (m, | |
135 | + | @Callable(T) | |
136 | + | func updateRetailer (m,U) = if ((this != T.caller)) | |
131 | 137 | then throw("Caller is not the Contract owner") | |
132 | 138 | else { | |
133 | 139 | let E = p(m) | |
134 | - | let | |
135 | - | if (( | |
140 | + | let V = R(m) | |
141 | + | if ((V == a)) | |
136 | 142 | then throw("Courier does not exist on the Blockchain") | |
137 | - | else [StringEntry(F(E), | |
143 | + | else [StringEntry(F(E), U)] | |
138 | 144 | } | |
139 | 145 | ||
140 | 146 | ||
141 | 147 | ||
142 | - | @Callable( | |
143 | - | func registerCourier (r, | |
148 | + | @Callable(T) | |
149 | + | func registerCourier (r,W) = if ((this != T.caller)) | |
144 | 150 | then throw("Caller is not the Contract owner") | |
145 | 151 | else { | |
146 | 152 | let G = q(r) | |
147 | - | [StringEntry(F(G), | |
153 | + | [StringEntry(F(G), W)] | |
148 | 154 | } | |
149 | 155 | ||
150 | 156 | ||
151 | 157 | ||
152 | - | @Callable( | |
153 | - | func updateCourier (r, | |
158 | + | @Callable(T) | |
159 | + | func updateCourier (r,W) = if ((this != T.caller)) | |
154 | 160 | then throw("Caller is not the Contract owner") | |
155 | 161 | else { | |
156 | 162 | let G = q(r) | |
157 | - | let | |
158 | - | if (( | |
163 | + | let X = S(r) | |
164 | + | if ((X == a)) | |
159 | 165 | then throw("Courier does not exist on the Blockchain") | |
160 | - | else [StringEntry(F(G), | |
166 | + | else [StringEntry(F(G), W)] | |
161 | 167 | } | |
162 | 168 | ||
163 | 169 | ||
164 | 170 | ||
165 | - | @Callable( | |
166 | - | func addOrder (n, | |
171 | + | @Callable(T) | |
172 | + | func addOrder (n,Y,Z,m,U,j) = if ((this != T.caller)) | |
167 | 173 | then throw("Caller is not the Contract owner") | |
168 | 174 | else { | |
169 | 175 | let t = l(m, n) | |
170 | - | let | |
176 | + | let aa = i(j, t) | |
171 | 177 | let E = p(m) | |
172 | - | let | |
173 | - | if ((0 >= | |
178 | + | let ab = (Y * 100000000) | |
179 | + | if ((0 >= Y)) | |
174 | 180 | then throw("You cannot create an order with shipping costs lower than 0") | |
175 | - | else if (( | |
181 | + | else if ((K(t) != a)) | |
176 | 182 | then throw("An order with the same id already exists") | |
177 | - | else [StringEntry(D(E), | |
183 | + | else [StringEntry(D(E), U), StringEntry(s(t), j), StringEntry(u(t), m), IntegerEntry(v(t, m), ab), StringEntry(B(aa, m), Z), StringEntry(x(t, m, ""), "open")] | |
178 | 184 | } | |
179 | 185 | ||
180 | 186 | ||
181 | 187 | ||
182 | - | @Callable( | |
183 | - | func setOrderIsAccepted (m,n,y, | |
188 | + | @Callable(T) | |
189 | + | func setOrderIsAccepted (m,n,y,ac) = if ((this != T.caller)) | |
184 | 190 | then throw("Caller is not the Contract owner") | |
185 | 191 | else { | |
186 | 192 | let t = l(m, n) | |
187 | - | let j = | |
188 | - | let | |
189 | - | let | |
190 | - | if (( | |
193 | + | let j = I(t) | |
194 | + | let aa = i(j, t) | |
195 | + | let Z = Q(aa, m) | |
196 | + | if ((K(t) != m)) | |
191 | 197 | then throw("The requested order does not exist") | |
192 | - | else if (( | |
198 | + | else if ((L(t, m, "") != "open")) | |
193 | 199 | then throw("The requested order is no longer available") | |
194 | - | else [DeleteEntry(B( | |
200 | + | else [DeleteEntry(B(aa, m)), DeleteEntry(x(t, m, "")), StringEntry(x(t, m, y), Z), BooleanEntry(z(t, m, y), false), IntegerEntry(A(t, m, y), ac), StringEntry(w(t, m), y)] | |
195 | 201 | } | |
196 | 202 | ||
197 | 203 | ||
198 | 204 | ||
199 | - | @Callable( | |
200 | - | func setOrderIsInDelivery (m,n) = if ((this != | |
205 | + | @Callable(T) | |
206 | + | func setOrderIsInDelivery (m,n) = if ((this != T.caller)) | |
201 | 207 | then throw("Caller is not the Contract owner") | |
202 | 208 | else { | |
203 | 209 | let t = l(m, n) | |
204 | - | let y = | |
205 | - | if (( | |
210 | + | let y = M(t, m) | |
211 | + | if ((K(t) != m)) | |
206 | 212 | then throw("The requested order does not exist") | |
207 | 213 | else if ((y == a)) | |
208 | 214 | then throw("The requested order is not accepted yet") | |
209 | - | else if (( | |
215 | + | else if ((N(t, m, y) != false)) | |
210 | 216 | then throw("The requested order is no longer available") | |
211 | 217 | else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")] | |
212 | 218 | } | |
213 | 219 | ||
214 | 220 | ||
215 | 221 | ||
216 | - | @Callable( | |
217 | - | func setOrderIsDelivered (m,n) = if ((this != | |
222 | + | @Callable(T) | |
223 | + | func setOrderIsDelivered (m,n) = if ((this != T.caller)) | |
218 | 224 | then throw("Caller is not the Contract owner") | |
219 | 225 | else { | |
220 | 226 | let t = l(m, n) | |
221 | - | let y = | |
222 | - | let | |
223 | - | let | |
224 | - | if (( | |
227 | + | let y = M(t, m) | |
228 | + | let Z = L(t, m, y) | |
229 | + | let ab = P(t, m) | |
230 | + | if ((K(t) != m)) | |
225 | 231 | then throw("The requested order does not exist") | |
226 | 232 | else if ((y == a)) | |
227 | 233 | then throw("There was no courier set! Something went wrong with the order.") | |
228 | - | else if (( | |
234 | + | else if ((O(t, m, y) != "inDelivery")) | |
229 | 235 | then throw("The requested order was already delivered") | |
230 | - | 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), Z), ScriptTransfer(addressFromStringValue(y), ab, unit)] | |
231 | 237 | } | |
232 | 238 | ||
233 | 239 | ||
234 | 240 | ||
235 | - | @Callable( | |
236 | - | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != | |
241 | + | @Callable(T) | |
242 | + | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != T.caller)) | |
237 | 243 | then throw("Caller is not the Contract owner") | |
238 | 244 | else { | |
239 | 245 | let t = l(m, n) | |
240 | - | let | |
241 | - | let | |
242 | - | if (( | |
246 | + | let aa = i(j, t) | |
247 | + | let Z = L(t, m, y) | |
248 | + | if ((K(t) != m)) | |
243 | 249 | then throw("The requested order does not exist") | |
244 | - | else if (( | |
250 | + | else if ((Z == a)) | |
245 | 251 | then throw("The requested order does not exist or is not accepted yet") | |
246 | - | else if (( | |
252 | + | else if ((N(t, m, y) == a)) | |
247 | 253 | then throw("The requested order is not accepted yet") | |
248 | - | 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(aa, m), Z), StringEntry(x(t, m, ""), "open")] | |
249 | 255 | } | |
250 | 256 | ||
251 | 257 | ||
252 | 258 | ||
253 | - | @Callable( | |
254 | - | func cancelOpenOrderByRetailer (m,n,j, | |
259 | + | @Callable(T) | |
260 | + | func cancelOpenOrderByRetailer (m,n,j,ad,Y) = if ((this != T.caller)) | |
255 | 261 | then throw("Caller is not the Contract owner") | |
256 | 262 | else { | |
257 | 263 | let t = l(m, n) | |
258 | - | let | |
264 | + | let aa = i(j, t) | |
259 | 265 | let E = p(m) | |
260 | - | let | |
261 | - | if (( | |
266 | + | let ab = (Y * 100000000) | |
267 | + | if ((K(t) != m)) | |
262 | 268 | then throw("The requested order does not exist") | |
263 | - | else if (( | |
269 | + | else if ((N(t, m, "") == "open")) | |
264 | 270 | then throw("The requested order is already accepted and can no longer be canceled in this way") | |
265 | - | 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(aa, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ad), ab, unit)] | |
266 | 272 | } | |
267 | 273 | ||
268 | 274 | ||
269 | 275 | ||
270 | - | @Callable( | |
271 | - | func deleteEntry (d) = if ((this != | |
276 | + | @Callable(T) | |
277 | + | func deleteEntry (d) = if ((this != T.caller)) | |
272 | 278 | then throw("Caller is not the Contract owner") | |
273 | 279 | else [DeleteEntry(d)] | |
274 | 280 | ||
275 | 281 | ||
276 | - | @Verifier( | |
277 | - | func | |
278 | - | let e = | |
282 | + | @Verifier(ae) | |
283 | + | func af () = { | |
284 | + | let e = ae | |
279 | 285 | if ($isInstanceOf(e, "SetScriptTransaction")) | |
280 | - | then sigVerify( | |
286 | + | then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
281 | 287 | else if ($isInstanceOf(e, "InvokeScriptTransaction")) | |
282 | - | then sigVerify( | |
288 | + | then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
283 | 289 | else if ($isInstanceOf(e, "TransferTransaction")) | |
284 | 290 | then { | |
285 | - | let | |
286 | - | if (if (if (( | |
291 | + | let ag = e | |
292 | + | if (if (if ((ag.amount == 300000000)) | |
287 | 293 | then true | |
288 | - | else ( | |
294 | + | else (ag.amount == 400000000)) | |
289 | 295 | then true | |
290 | - | else ( | |
296 | + | else (ag.amount == 500000000)) | |
291 | 297 | then true | |
292 | - | else if (( | |
293 | - | then sigVerify( | |
298 | + | else if ((ag.amount == 600000000)) | |
299 | + | then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
294 | 300 | else false | |
295 | 301 | } | |
296 | 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 | 83 | func D (E) = (E + "_data") | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func F (G) = (G + "_data") | |
87 | 87 | ||
88 | 88 | ||
89 | - | func H ( | |
89 | + | func H (E) = (E + "_tokens") | |
90 | 90 | ||
91 | 91 | ||
92 | - | func I (t) = c( | |
92 | + | func I (t) = c(s(t)) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func J ( | |
95 | + | func J (E) = g(H(E)) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func K (t | |
98 | + | func K (t) = c(u(t)) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func L (t,m,y) = | |
101 | + | func L (t,m,y) = c(x(t, m, y)) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func M (t,m | |
104 | + | func M (t,m) = c(w(t, m)) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func N (t,m) = | |
107 | + | func N (t,m,y) = g(z(t, m, y)) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func O (t,m) = c( | |
110 | + | func O (t,m,y) = c(C(t, m, y)) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func P ( | |
113 | + | func P (t,m) = h(v(t, m)) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func Q ( | |
116 | + | func Q (t,m) = c(B(t, m)) | |
117 | 117 | ||
118 | 118 | ||
119 | - | @Callable(R) | |
120 | - | func registerRetailer (m,S) = if ((this != R.caller)) | |
119 | + | func R (E) = c(D(E)) | |
120 | + | ||
121 | + | ||
122 | + | func S (G) = c(F(G)) | |
123 | + | ||
124 | + | ||
125 | + | @Callable(T) | |
126 | + | func registerRetailer (m,U) = if ((this != T.caller)) | |
121 | 127 | then throw("Caller is not the Contract owner") | |
122 | 128 | else { | |
123 | 129 | let E = p(m) | |
124 | - | [StringEntry(D(E), | |
130 | + | [BooleanEntry(H(E), true), StringEntry(D(E), U)] | |
125 | 131 | } | |
126 | 132 | ||
127 | 133 | ||
128 | 134 | ||
129 | - | @Callable( | |
130 | - | func updateRetailer (m, | |
135 | + | @Callable(T) | |
136 | + | func updateRetailer (m,U) = if ((this != T.caller)) | |
131 | 137 | then throw("Caller is not the Contract owner") | |
132 | 138 | else { | |
133 | 139 | let E = p(m) | |
134 | - | let | |
135 | - | if (( | |
140 | + | let V = R(m) | |
141 | + | if ((V == a)) | |
136 | 142 | then throw("Courier does not exist on the Blockchain") | |
137 | - | else [StringEntry(F(E), | |
143 | + | else [StringEntry(F(E), U)] | |
138 | 144 | } | |
139 | 145 | ||
140 | 146 | ||
141 | 147 | ||
142 | - | @Callable( | |
143 | - | func registerCourier (r, | |
148 | + | @Callable(T) | |
149 | + | func registerCourier (r,W) = if ((this != T.caller)) | |
144 | 150 | then throw("Caller is not the Contract owner") | |
145 | 151 | else { | |
146 | 152 | let G = q(r) | |
147 | - | [StringEntry(F(G), | |
153 | + | [StringEntry(F(G), W)] | |
148 | 154 | } | |
149 | 155 | ||
150 | 156 | ||
151 | 157 | ||
152 | - | @Callable( | |
153 | - | func updateCourier (r, | |
158 | + | @Callable(T) | |
159 | + | func updateCourier (r,W) = if ((this != T.caller)) | |
154 | 160 | then throw("Caller is not the Contract owner") | |
155 | 161 | else { | |
156 | 162 | let G = q(r) | |
157 | - | let | |
158 | - | if (( | |
163 | + | let X = S(r) | |
164 | + | if ((X == a)) | |
159 | 165 | then throw("Courier does not exist on the Blockchain") | |
160 | - | else [StringEntry(F(G), | |
166 | + | else [StringEntry(F(G), W)] | |
161 | 167 | } | |
162 | 168 | ||
163 | 169 | ||
164 | 170 | ||
165 | - | @Callable( | |
166 | - | func addOrder (n, | |
171 | + | @Callable(T) | |
172 | + | func addOrder (n,Y,Z,m,U,j) = if ((this != T.caller)) | |
167 | 173 | then throw("Caller is not the Contract owner") | |
168 | 174 | else { | |
169 | 175 | let t = l(m, n) | |
170 | - | let | |
176 | + | let aa = i(j, t) | |
171 | 177 | let E = p(m) | |
172 | - | let | |
173 | - | if ((0 >= | |
178 | + | let ab = (Y * 100000000) | |
179 | + | if ((0 >= Y)) | |
174 | 180 | then throw("You cannot create an order with shipping costs lower than 0") | |
175 | - | else if (( | |
181 | + | else if ((K(t) != a)) | |
176 | 182 | then throw("An order with the same id already exists") | |
177 | - | else [StringEntry(D(E), | |
183 | + | else [StringEntry(D(E), U), StringEntry(s(t), j), StringEntry(u(t), m), IntegerEntry(v(t, m), ab), StringEntry(B(aa, m), Z), StringEntry(x(t, m, ""), "open")] | |
178 | 184 | } | |
179 | 185 | ||
180 | 186 | ||
181 | 187 | ||
182 | - | @Callable( | |
183 | - | func setOrderIsAccepted (m,n,y, | |
188 | + | @Callable(T) | |
189 | + | func setOrderIsAccepted (m,n,y,ac) = if ((this != T.caller)) | |
184 | 190 | then throw("Caller is not the Contract owner") | |
185 | 191 | else { | |
186 | 192 | let t = l(m, n) | |
187 | - | let j = | |
188 | - | let | |
189 | - | let | |
190 | - | if (( | |
193 | + | let j = I(t) | |
194 | + | let aa = i(j, t) | |
195 | + | let Z = Q(aa, m) | |
196 | + | if ((K(t) != m)) | |
191 | 197 | then throw("The requested order does not exist") | |
192 | - | else if (( | |
198 | + | else if ((L(t, m, "") != "open")) | |
193 | 199 | then throw("The requested order is no longer available") | |
194 | - | else [DeleteEntry(B( | |
200 | + | else [DeleteEntry(B(aa, m)), DeleteEntry(x(t, m, "")), StringEntry(x(t, m, y), Z), BooleanEntry(z(t, m, y), false), IntegerEntry(A(t, m, y), ac), StringEntry(w(t, m), y)] | |
195 | 201 | } | |
196 | 202 | ||
197 | 203 | ||
198 | 204 | ||
199 | - | @Callable( | |
200 | - | func setOrderIsInDelivery (m,n) = if ((this != | |
205 | + | @Callable(T) | |
206 | + | func setOrderIsInDelivery (m,n) = if ((this != T.caller)) | |
201 | 207 | then throw("Caller is not the Contract owner") | |
202 | 208 | else { | |
203 | 209 | let t = l(m, n) | |
204 | - | let y = | |
205 | - | if (( | |
210 | + | let y = M(t, m) | |
211 | + | if ((K(t) != m)) | |
206 | 212 | then throw("The requested order does not exist") | |
207 | 213 | else if ((y == a)) | |
208 | 214 | then throw("The requested order is not accepted yet") | |
209 | - | else if (( | |
215 | + | else if ((N(t, m, y) != false)) | |
210 | 216 | then throw("The requested order is no longer available") | |
211 | 217 | else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")] | |
212 | 218 | } | |
213 | 219 | ||
214 | 220 | ||
215 | 221 | ||
216 | - | @Callable( | |
217 | - | func setOrderIsDelivered (m,n) = if ((this != | |
222 | + | @Callable(T) | |
223 | + | func setOrderIsDelivered (m,n) = if ((this != T.caller)) | |
218 | 224 | then throw("Caller is not the Contract owner") | |
219 | 225 | else { | |
220 | 226 | let t = l(m, n) | |
221 | - | let y = | |
222 | - | let | |
223 | - | let | |
224 | - | if (( | |
227 | + | let y = M(t, m) | |
228 | + | let Z = L(t, m, y) | |
229 | + | let ab = P(t, m) | |
230 | + | if ((K(t) != m)) | |
225 | 231 | then throw("The requested order does not exist") | |
226 | 232 | else if ((y == a)) | |
227 | 233 | then throw("There was no courier set! Something went wrong with the order.") | |
228 | - | else if (( | |
234 | + | else if ((O(t, m, y) != "inDelivery")) | |
229 | 235 | then throw("The requested order was already delivered") | |
230 | - | 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), Z), ScriptTransfer(addressFromStringValue(y), ab, unit)] | |
231 | 237 | } | |
232 | 238 | ||
233 | 239 | ||
234 | 240 | ||
235 | - | @Callable( | |
236 | - | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != | |
241 | + | @Callable(T) | |
242 | + | func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != T.caller)) | |
237 | 243 | then throw("Caller is not the Contract owner") | |
238 | 244 | else { | |
239 | 245 | let t = l(m, n) | |
240 | - | let | |
241 | - | let | |
242 | - | if (( | |
246 | + | let aa = i(j, t) | |
247 | + | let Z = L(t, m, y) | |
248 | + | if ((K(t) != m)) | |
243 | 249 | then throw("The requested order does not exist") | |
244 | - | else if (( | |
250 | + | else if ((Z == a)) | |
245 | 251 | then throw("The requested order does not exist or is not accepted yet") | |
246 | - | else if (( | |
252 | + | else if ((N(t, m, y) == a)) | |
247 | 253 | then throw("The requested order is not accepted yet") | |
248 | - | 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(aa, m), Z), StringEntry(x(t, m, ""), "open")] | |
249 | 255 | } | |
250 | 256 | ||
251 | 257 | ||
252 | 258 | ||
253 | - | @Callable( | |
254 | - | func cancelOpenOrderByRetailer (m,n,j, | |
259 | + | @Callable(T) | |
260 | + | func cancelOpenOrderByRetailer (m,n,j,ad,Y) = if ((this != T.caller)) | |
255 | 261 | then throw("Caller is not the Contract owner") | |
256 | 262 | else { | |
257 | 263 | let t = l(m, n) | |
258 | - | let | |
264 | + | let aa = i(j, t) | |
259 | 265 | let E = p(m) | |
260 | - | let | |
261 | - | if (( | |
266 | + | let ab = (Y * 100000000) | |
267 | + | if ((K(t) != m)) | |
262 | 268 | then throw("The requested order does not exist") | |
263 | - | else if (( | |
269 | + | else if ((N(t, m, "") == "open")) | |
264 | 270 | then throw("The requested order is already accepted and can no longer be canceled in this way") | |
265 | - | 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(aa, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ad), ab, unit)] | |
266 | 272 | } | |
267 | 273 | ||
268 | 274 | ||
269 | 275 | ||
270 | - | @Callable( | |
271 | - | func deleteEntry (d) = if ((this != | |
276 | + | @Callable(T) | |
277 | + | func deleteEntry (d) = if ((this != T.caller)) | |
272 | 278 | then throw("Caller is not the Contract owner") | |
273 | 279 | else [DeleteEntry(d)] | |
274 | 280 | ||
275 | 281 | ||
276 | - | @Verifier( | |
277 | - | func | |
278 | - | let e = | |
282 | + | @Verifier(ae) | |
283 | + | func af () = { | |
284 | + | let e = ae | |
279 | 285 | if ($isInstanceOf(e, "SetScriptTransaction")) | |
280 | - | then sigVerify( | |
286 | + | then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
281 | 287 | else if ($isInstanceOf(e, "InvokeScriptTransaction")) | |
282 | - | then sigVerify( | |
288 | + | then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
283 | 289 | else if ($isInstanceOf(e, "TransferTransaction")) | |
284 | 290 | then { | |
285 | - | let | |
286 | - | if (if (if (( | |
291 | + | let ag = e | |
292 | + | if (if (if ((ag.amount == 300000000)) | |
287 | 293 | then true | |
288 | - | else ( | |
294 | + | else (ag.amount == 400000000)) | |
289 | 295 | then true | |
290 | - | else ( | |
296 | + | else (ag.amount == 500000000)) | |
291 | 297 | then true | |
292 | - | else if (( | |
293 | - | then sigVerify( | |
298 | + | else if ((ag.amount == 600000000)) | |
299 | + | then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
294 | 300 | else false | |
295 | 301 | } | |
296 | 302 | else false | |
297 | 303 | } | |
298 | 304 |
github/deemru/w8io/026f985 74.32 ms ◑