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