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+AtTNpm2gXIwDDEBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAA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WN0IG93bmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDADAwMJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAABHhowAGCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAX14QABgkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAHc1lAAYDCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAjw0YACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcHaVU5iw==", "height": 1360453, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FMUq6yHPxiTBdgvM3CsPq7YdRGmqfCjQFGnmwRTYjYAx Next: 5UvmJJCUvggSzwgEGgrHE4v5rhtzuVo2zWd5UKFpv8qY Diff:
OldNewDifferences
8686 func F (G) = (G + "_data")
8787
8888
89-func H (t) = c(s(t))
89+func H (E) = (E + "_tokens")
9090
9191
92-func I (t) = c(u(t))
92+func I (t) = c(s(t))
9393
9494
95-func J (t,m,y) = c(x(t, m, y))
95+func J (E) = g(H(E))
9696
9797
98-func K (t,m) = c(w(t, m))
98+func K (t) = c(u(t))
9999
100100
101-func L (t,m,y) = g(z(t, m, y))
101+func L (t,m,y) = c(x(t, m, y))
102102
103103
104-func M (t,m,y) = c(C(t, m, y))
104+func M (t,m) = c(w(t, m))
105105
106106
107-func N (t,m) = h(v(t, m))
107+func N (t,m,y) = g(z(t, m, y))
108108
109109
110-func O (t,m) = c(B(t, m))
110+func O (t,m,y) = c(C(t, m, y))
111111
112112
113-func P (E) = c(D(E))
113+func P (t,m) = h(v(t, m))
114114
115115
116-func Q (G) = c(F(G))
116+func Q (t,m) = c(B(t, m))
117117
118118
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))
121127 then throw("Caller is not the Contract owner")
122128 else {
123129 let E = p(m)
124-[StringEntry(D(E), S)]
130+[BooleanEntry(H(E), true), StringEntry(D(E), U)]
125131 }
126132
127133
128134
129-@Callable(R)
130-func updateRetailer (m,S) = if ((this != R.caller))
135+@Callable(T)
136+func updateRetailer (m,U) = if ((this != T.caller))
131137 then throw("Caller is not the Contract owner")
132138 else {
133139 let E = p(m)
134- let T = P(m)
135- if ((T == a))
140+ let V = R(m)
141+ if ((V == a))
136142 then throw("Courier does not exist on the Blockchain")
137- else [StringEntry(F(E), S)]
143+ else [StringEntry(F(E), U)]
138144 }
139145
140146
141147
142-@Callable(R)
143-func registerCourier (r,U) = if ((this != R.caller))
148+@Callable(T)
149+func registerCourier (r,W) = if ((this != T.caller))
144150 then throw("Caller is not the Contract owner")
145151 else {
146152 let G = q(r)
147-[StringEntry(F(G), U)]
153+[StringEntry(F(G), W)]
148154 }
149155
150156
151157
152-@Callable(R)
153-func updateCourier (r,U) = if ((this != R.caller))
158+@Callable(T)
159+func updateCourier (r,W) = if ((this != T.caller))
154160 then throw("Caller is not the Contract owner")
155161 else {
156162 let G = q(r)
157- let V = Q(r)
158- if ((V == a))
163+ let X = S(r)
164+ if ((X == a))
159165 then throw("Courier does not exist on the Blockchain")
160- else [StringEntry(F(G), U)]
166+ else [StringEntry(F(G), W)]
161167 }
162168
163169
164170
165-@Callable(R)
166-func addOrder (n,W,X,m,S,j) = if ((this != R.caller))
171+@Callable(T)
172+func addOrder (n,Y,Z,m,U,j) = if ((this != T.caller))
167173 then throw("Caller is not the Contract owner")
168174 else {
169175 let t = l(m, n)
170- let Y = i(j, t)
176+ let aa = i(j, t)
171177 let E = p(m)
172- let Z = (W * 100000000)
173- if ((0 >= W))
178+ let ab = (Y * 100000000)
179+ if ((0 >= Y))
174180 then throw("You cannot create an order with shipping costs lower than 0")
175- else if ((I(t) != a))
181+ else if ((K(t) != a))
176182 then throw("An order with the same id already exists")
177- else [StringEntry(D(E), S), StringEntry(s(t), j), StringEntry(u(t), m), IntegerEntry(v(t, m), Z), StringEntry(B(Y, m), X), StringEntry(x(t, m, ""), "open")]
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")]
178184 }
179185
180186
181187
182-@Callable(R)
183-func setOrderIsAccepted (m,n,y,aa) = if ((this != R.caller))
188+@Callable(T)
189+func setOrderIsAccepted (m,n,y,ac) = if ((this != T.caller))
184190 then throw("Caller is not the Contract owner")
185191 else {
186192 let t = l(m, n)
187- let j = H(t)
188- let Y = i(j, t)
189- let X = O(Y, m)
190- if ((I(t) != m))
193+ let j = I(t)
194+ let aa = i(j, t)
195+ let Z = Q(aa, m)
196+ if ((K(t) != m))
191197 then throw("The requested order does not exist")
192- else if ((J(t, m, "") != "open"))
198+ else if ((L(t, m, "") != "open"))
193199 then throw("The requested order is no longer available")
194- else [DeleteEntry(B(Y, m)), DeleteEntry(x(t, m, "")), StringEntry(x(t, m, y), X), BooleanEntry(z(t, m, y), false), IntegerEntry(A(t, m, y), aa), StringEntry(w(t, m), y)]
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)]
195201 }
196202
197203
198204
199-@Callable(R)
200-func setOrderIsInDelivery (m,n) = if ((this != R.caller))
205+@Callable(T)
206+func setOrderIsInDelivery (m,n) = if ((this != T.caller))
201207 then throw("Caller is not the Contract owner")
202208 else {
203209 let t = l(m, n)
204- let y = K(t, m)
205- if ((I(t) != m))
210+ let y = M(t, m)
211+ if ((K(t) != m))
206212 then throw("The requested order does not exist")
207213 else if ((y == a))
208214 then throw("The requested order is not accepted yet")
209- else if ((L(t, m, y) != false))
215+ else if ((N(t, m, y) != false))
210216 then throw("The requested order is no longer available")
211217 else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")]
212218 }
213219
214220
215221
216-@Callable(R)
217-func setOrderIsDelivered (m,n) = if ((this != R.caller))
222+@Callable(T)
223+func setOrderIsDelivered (m,n) = if ((this != T.caller))
218224 then throw("Caller is not the Contract owner")
219225 else {
220226 let t = l(m, n)
221- let y = K(t, m)
222- let X = J(t, m, y)
223- let Z = N(t, m)
224- if ((I(t) != m))
227+ let y = M(t, m)
228+ let Z = L(t, m, y)
229+ let ab = P(t, m)
230+ if ((K(t) != m))
225231 then throw("The requested order does not exist")
226232 else if ((y == a))
227233 then throw("There was no courier set! Something went wrong with the order.")
228- else if ((M(t, m, y) != "inDelivery"))
234+ else if ((O(t, m, y) != "inDelivery"))
229235 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), X), ScriptTransfer(addressFromStringValue(y), Z, unit)]
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)]
231237 }
232238
233239
234240
235-@Callable(R)
236-func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != R.caller))
241+@Callable(T)
242+func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != T.caller))
237243 then throw("Caller is not the Contract owner")
238244 else {
239245 let t = l(m, n)
240- let Y = i(j, t)
241- let X = J(t, m, y)
242- if ((I(t) != m))
246+ let aa = i(j, t)
247+ let Z = L(t, m, y)
248+ if ((K(t) != m))
243249 then throw("The requested order does not exist")
244- else if ((X == a))
250+ else if ((Z == a))
245251 then throw("The requested order does not exist or is not accepted yet")
246- else if ((L(t, m, y) == a))
252+ else if ((N(t, m, y) == a))
247253 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(Y, m), X), StringEntry(x(t, m, ""), "open")]
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")]
249255 }
250256
251257
252258
253-@Callable(R)
254-func cancelOpenOrderByRetailer (m,n,j,ab,W) = if ((this != R.caller))
259+@Callable(T)
260+func cancelOpenOrderByRetailer (m,n,j,ad,Y) = if ((this != T.caller))
255261 then throw("Caller is not the Contract owner")
256262 else {
257263 let t = l(m, n)
258- let Y = i(j, t)
264+ let aa = i(j, t)
259265 let E = p(m)
260- let Z = (W * 100000000)
261- if ((I(t) != m))
266+ let ab = (Y * 100000000)
267+ if ((K(t) != m))
262268 then throw("The requested order does not exist")
263- else if ((L(t, m, "") == "open"))
269+ else if ((N(t, m, "") == "open"))
264270 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(Y, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ab), Z, unit)]
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)]
266272 }
267273
268274
269275
270-@Callable(R)
271-func deleteEntry (d) = if ((this != R.caller))
276+@Callable(T)
277+func deleteEntry (d) = if ((this != T.caller))
272278 then throw("Caller is not the Contract owner")
273279 else [DeleteEntry(d)]
274280
275281
276-@Verifier(ac)
277-func ad () = {
278- let e = ac
282+@Verifier(ae)
283+func af () = {
284+ let e = ae
279285 if ($isInstanceOf(e, "SetScriptTransaction"))
280- then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
286+ then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
281287 else if ($isInstanceOf(e, "InvokeScriptTransaction"))
282- then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
288+ then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
283289 else if ($isInstanceOf(e, "TransferTransaction"))
284290 then {
285- let ae = e
286- if (if (if ((ae.amount == 300000000))
291+ let ag = e
292+ if (if (if ((ag.amount == 300000000))
287293 then true
288- else (ae.amount == 400000000))
294+ else (ag.amount == 400000000))
289295 then true
290- else (ae.amount == 500000000))
296+ else (ag.amount == 500000000))
291297 then true
292- else if ((ae.amount == 600000000))
293- then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
298+ else if ((ag.amount == 600000000))
299+ then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
294300 else false
295301 }
296302 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "NONE"
55
66 let b = base58'6Gjo6dZNLzun8w7uzWuH1t6hoGph9KrMcf1qjbEzBsVJ'
77
88 func c (d) = {
99 let e = getString(this, d)
1010 if ($isInstanceOf(e, "String"))
1111 then {
1212 let f = e
1313 f
1414 }
1515 else a
1616 }
1717
1818
1919 func g (d) = {
2020 let e = getBoolean(this, d)
2121 if ($isInstanceOf(e, "Boolean"))
2222 then {
2323 let f = e
2424 f
2525 }
2626 else a
2727 }
2828
2929
3030 func h (d) = {
3131 let e = getInteger(this, d)
3232 if ($isInstanceOf(e, "Int"))
3333 then {
3434 let f = e
3535 f
3636 }
3737 else -1
3838 }
3939
4040
4141 func i (j,k) = ((j + "_") + k)
4242
4343
4444 func l (m,n) = {
4545 let o = (m + n)
4646 ("order_" + toBase58String(sha256(toBytes(o))))
4747 }
4848
4949
5050 func p (m) = ("retailer_" + toBase58String(sha256(toBytes(m))))
5151
5252
5353 func q (r) = ("courier_" + toBase58String(sha256(toBytes(r))))
5454
5555
5656 func s (t) = (t + "_city")
5757
5858
5959 func u (t) = (t + "_retailer")
6060
6161
6262 func v (t,m) = (((m + "_") + t) + "_shipping")
6363
6464
6565 func w (t,m) = (((m + "_") + t) + "_courierId")
6666
6767
6868 func x (t,m,y) = ((((m + "_") + t) + "_data_courier_") + y)
6969
7070
7171 func z (t,m,y) = (((((m + "_") + t) + "_data_courier_") + y) + "_isInDelivery")
7272
7373
7474 func A (t,m,y) = (((((m + "_") + t) + "_data_courier_") + y) + "_acceptedAt")
7575
7676
7777 func B (t,m) = (((m + "_") + t) + "_data_open")
7878
7979
8080 func C (t,m,y) = ((((m + "_") + t) + "_isDelivered_") + y)
8181
8282
8383 func D (E) = (E + "_data")
8484
8585
8686 func F (G) = (G + "_data")
8787
8888
89-func H (t) = c(s(t))
89+func H (E) = (E + "_tokens")
9090
9191
92-func I (t) = c(u(t))
92+func I (t) = c(s(t))
9393
9494
95-func J (t,m,y) = c(x(t, m, y))
95+func J (E) = g(H(E))
9696
9797
98-func K (t,m) = c(w(t, m))
98+func K (t) = c(u(t))
9999
100100
101-func L (t,m,y) = g(z(t, m, y))
101+func L (t,m,y) = c(x(t, m, y))
102102
103103
104-func M (t,m,y) = c(C(t, m, y))
104+func M (t,m) = c(w(t, m))
105105
106106
107-func N (t,m) = h(v(t, m))
107+func N (t,m,y) = g(z(t, m, y))
108108
109109
110-func O (t,m) = c(B(t, m))
110+func O (t,m,y) = c(C(t, m, y))
111111
112112
113-func P (E) = c(D(E))
113+func P (t,m) = h(v(t, m))
114114
115115
116-func Q (G) = c(F(G))
116+func Q (t,m) = c(B(t, m))
117117
118118
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))
121127 then throw("Caller is not the Contract owner")
122128 else {
123129 let E = p(m)
124-[StringEntry(D(E), S)]
130+[BooleanEntry(H(E), true), StringEntry(D(E), U)]
125131 }
126132
127133
128134
129-@Callable(R)
130-func updateRetailer (m,S) = if ((this != R.caller))
135+@Callable(T)
136+func updateRetailer (m,U) = if ((this != T.caller))
131137 then throw("Caller is not the Contract owner")
132138 else {
133139 let E = p(m)
134- let T = P(m)
135- if ((T == a))
140+ let V = R(m)
141+ if ((V == a))
136142 then throw("Courier does not exist on the Blockchain")
137- else [StringEntry(F(E), S)]
143+ else [StringEntry(F(E), U)]
138144 }
139145
140146
141147
142-@Callable(R)
143-func registerCourier (r,U) = if ((this != R.caller))
148+@Callable(T)
149+func registerCourier (r,W) = if ((this != T.caller))
144150 then throw("Caller is not the Contract owner")
145151 else {
146152 let G = q(r)
147-[StringEntry(F(G), U)]
153+[StringEntry(F(G), W)]
148154 }
149155
150156
151157
152-@Callable(R)
153-func updateCourier (r,U) = if ((this != R.caller))
158+@Callable(T)
159+func updateCourier (r,W) = if ((this != T.caller))
154160 then throw("Caller is not the Contract owner")
155161 else {
156162 let G = q(r)
157- let V = Q(r)
158- if ((V == a))
163+ let X = S(r)
164+ if ((X == a))
159165 then throw("Courier does not exist on the Blockchain")
160- else [StringEntry(F(G), U)]
166+ else [StringEntry(F(G), W)]
161167 }
162168
163169
164170
165-@Callable(R)
166-func addOrder (n,W,X,m,S,j) = if ((this != R.caller))
171+@Callable(T)
172+func addOrder (n,Y,Z,m,U,j) = if ((this != T.caller))
167173 then throw("Caller is not the Contract owner")
168174 else {
169175 let t = l(m, n)
170- let Y = i(j, t)
176+ let aa = i(j, t)
171177 let E = p(m)
172- let Z = (W * 100000000)
173- if ((0 >= W))
178+ let ab = (Y * 100000000)
179+ if ((0 >= Y))
174180 then throw("You cannot create an order with shipping costs lower than 0")
175- else if ((I(t) != a))
181+ else if ((K(t) != a))
176182 then throw("An order with the same id already exists")
177- else [StringEntry(D(E), S), StringEntry(s(t), j), StringEntry(u(t), m), IntegerEntry(v(t, m), Z), StringEntry(B(Y, m), X), StringEntry(x(t, m, ""), "open")]
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")]
178184 }
179185
180186
181187
182-@Callable(R)
183-func setOrderIsAccepted (m,n,y,aa) = if ((this != R.caller))
188+@Callable(T)
189+func setOrderIsAccepted (m,n,y,ac) = if ((this != T.caller))
184190 then throw("Caller is not the Contract owner")
185191 else {
186192 let t = l(m, n)
187- let j = H(t)
188- let Y = i(j, t)
189- let X = O(Y, m)
190- if ((I(t) != m))
193+ let j = I(t)
194+ let aa = i(j, t)
195+ let Z = Q(aa, m)
196+ if ((K(t) != m))
191197 then throw("The requested order does not exist")
192- else if ((J(t, m, "") != "open"))
198+ else if ((L(t, m, "") != "open"))
193199 then throw("The requested order is no longer available")
194- else [DeleteEntry(B(Y, m)), DeleteEntry(x(t, m, "")), StringEntry(x(t, m, y), X), BooleanEntry(z(t, m, y), false), IntegerEntry(A(t, m, y), aa), StringEntry(w(t, m), y)]
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)]
195201 }
196202
197203
198204
199-@Callable(R)
200-func setOrderIsInDelivery (m,n) = if ((this != R.caller))
205+@Callable(T)
206+func setOrderIsInDelivery (m,n) = if ((this != T.caller))
201207 then throw("Caller is not the Contract owner")
202208 else {
203209 let t = l(m, n)
204- let y = K(t, m)
205- if ((I(t) != m))
210+ let y = M(t, m)
211+ if ((K(t) != m))
206212 then throw("The requested order does not exist")
207213 else if ((y == a))
208214 then throw("The requested order is not accepted yet")
209- else if ((L(t, m, y) != false))
215+ else if ((N(t, m, y) != false))
210216 then throw("The requested order is no longer available")
211217 else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")]
212218 }
213219
214220
215221
216-@Callable(R)
217-func setOrderIsDelivered (m,n) = if ((this != R.caller))
222+@Callable(T)
223+func setOrderIsDelivered (m,n) = if ((this != T.caller))
218224 then throw("Caller is not the Contract owner")
219225 else {
220226 let t = l(m, n)
221- let y = K(t, m)
222- let X = J(t, m, y)
223- let Z = N(t, m)
224- if ((I(t) != m))
227+ let y = M(t, m)
228+ let Z = L(t, m, y)
229+ let ab = P(t, m)
230+ if ((K(t) != m))
225231 then throw("The requested order does not exist")
226232 else if ((y == a))
227233 then throw("There was no courier set! Something went wrong with the order.")
228- else if ((M(t, m, y) != "inDelivery"))
234+ else if ((O(t, m, y) != "inDelivery"))
229235 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), X), ScriptTransfer(addressFromStringValue(y), Z, unit)]
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)]
231237 }
232238
233239
234240
235-@Callable(R)
236-func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != R.caller))
241+@Callable(T)
242+func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != T.caller))
237243 then throw("Caller is not the Contract owner")
238244 else {
239245 let t = l(m, n)
240- let Y = i(j, t)
241- let X = J(t, m, y)
242- if ((I(t) != m))
246+ let aa = i(j, t)
247+ let Z = L(t, m, y)
248+ if ((K(t) != m))
243249 then throw("The requested order does not exist")
244- else if ((X == a))
250+ else if ((Z == a))
245251 then throw("The requested order does not exist or is not accepted yet")
246- else if ((L(t, m, y) == a))
252+ else if ((N(t, m, y) == a))
247253 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(Y, m), X), StringEntry(x(t, m, ""), "open")]
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")]
249255 }
250256
251257
252258
253-@Callable(R)
254-func cancelOpenOrderByRetailer (m,n,j,ab,W) = if ((this != R.caller))
259+@Callable(T)
260+func cancelOpenOrderByRetailer (m,n,j,ad,Y) = if ((this != T.caller))
255261 then throw("Caller is not the Contract owner")
256262 else {
257263 let t = l(m, n)
258- let Y = i(j, t)
264+ let aa = i(j, t)
259265 let E = p(m)
260- let Z = (W * 100000000)
261- if ((I(t) != m))
266+ let ab = (Y * 100000000)
267+ if ((K(t) != m))
262268 then throw("The requested order does not exist")
263- else if ((L(t, m, "") == "open"))
269+ else if ((N(t, m, "") == "open"))
264270 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(Y, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ab), Z, unit)]
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)]
266272 }
267273
268274
269275
270-@Callable(R)
271-func deleteEntry (d) = if ((this != R.caller))
276+@Callable(T)
277+func deleteEntry (d) = if ((this != T.caller))
272278 then throw("Caller is not the Contract owner")
273279 else [DeleteEntry(d)]
274280
275281
276-@Verifier(ac)
277-func ad () = {
278- let e = ac
282+@Verifier(ae)
283+func af () = {
284+ let e = ae
279285 if ($isInstanceOf(e, "SetScriptTransaction"))
280- then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
286+ then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
281287 else if ($isInstanceOf(e, "InvokeScriptTransaction"))
282- then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
288+ then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
283289 else if ($isInstanceOf(e, "TransferTransaction"))
284290 then {
285- let ae = e
286- if (if (if ((ae.amount == 300000000))
291+ let ag = e
292+ if (if (if ((ag.amount == 300000000))
287293 then true
288- else (ae.amount == 400000000))
294+ else (ag.amount == 400000000))
289295 then true
290- else (ae.amount == 500000000))
296+ else (ag.amount == 500000000))
291297 then true
292- else if ((ae.amount == 600000000))
293- then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
298+ else if ((ag.amount == 600000000))
299+ then sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
294300 else false
295301 }
296302 else false
297303 }
298304

github/deemru/w8io/026f985 
74.32 ms