tx · smnsNuALuinS5x3D9cwXpRdKm7ZdUGUSjXcV9nCQ6nr

3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL:  -0.05000000 Waves

2021.01.15 17:31 [1354659] smart account 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL > SELF 0.00000000 Waves

{ "type": 13, "id": "smnsNuALuinS5x3D9cwXpRdKm7ZdUGUSjXcV9nCQ6nr", "fee": 5000000, "feeAssetId": null, "timestamp": 1610721067079, "version": 2, "chainId": 84, "sender": "3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL", "senderPublicKey": "DfBpAEVbFfW1EMhjQ2DgbCDVQCY5L1nwL9NdWEmu4j3P", "proofs": [ "5bxRpCwLJhZyb3V86w6LeYQxwhYTy4cEnk4mRFEmPqM8TPwfa69Z7DwYLozMrUQ7zTpCqPgQMwRSa1PU4foMKtqn" ], "script": "base64:AAIEAAAAAAAAAE4IAhIECgIICBIECgIICBIECgIICBIECgIICBIICgYIAQgICAgSBgoECAgIARIECgIICBIECgIICBIGCgQICAgIEgcKBQgICAgBEgMKAQgAAAAeAAAAAAROT05FAgAAAAROT05FAAAAAA5yZWJpcnRoQXNzZXRJZAEAAAAgTlKI9Dsdaklo/AL7ycpGOtB8l2A5+AtTNpm2gXIwDDEBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQA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AAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAMDAwkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAEeGjAAYJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAABfXhAAGCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAdzWUABgMJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAACPDRgAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Bwd8l5rd", "height": 1354659, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 72LyHkEkru9fL4eMdD8UeZqsBNriAnp12EXLj3eTNNqN Next: FMUq6yHPxiTBdgvM3CsPq7YdRGmqfCjQFGnmwRTYjYAx 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
8989 func H (t) = c(s(t))
9090
9191
9292 func I (t) = c(u(t))
9393
9494
9595 func J (t,m,y) = c(x(t, m, y))
9696
9797
9898 func K (t,m) = c(w(t, m))
9999
100100
101101 func L (t,m,y) = g(z(t, m, y))
102102
103103
104104 func M (t,m,y) = c(C(t, m, y))
105105
106106
107107 func N (t,m) = h(v(t, m))
108108
109109
110110 func O (t,m) = c(B(t, m))
111111
112112
113113 func P (E) = c(D(E))
114114
115115
116116 func Q (G) = c(F(G))
117117
118118
119119 @Callable(R)
120120 func registerRetailer (m,S) = if ((this != R.caller))
121121 then throw("Caller is not the Contract owner")
122122 else {
123123 let E = p(m)
124124 [StringEntry(D(E), S)]
125125 }
126126
127127
128128
129129 @Callable(R)
130130 func updateRetailer (m,S) = if ((this != R.caller))
131131 then throw("Caller is not the Contract owner")
132132 else {
133133 let E = p(m)
134134 let T = P(m)
135135 if ((T == a))
136136 then throw("Courier does not exist on the Blockchain")
137137 else [StringEntry(F(E), S)]
138138 }
139139
140140
141141
142142 @Callable(R)
143143 func registerCourier (r,U) = if ((this != R.caller))
144144 then throw("Caller is not the Contract owner")
145145 else {
146146 let G = q(r)
147147 [StringEntry(F(G), U)]
148148 }
149149
150150
151151
152152 @Callable(R)
153153 func updateCourier (r,U) = if ((this != R.caller))
154154 then throw("Caller is not the Contract owner")
155155 else {
156156 let G = q(r)
157157 let V = Q(r)
158158 if ((V == a))
159159 then throw("Courier does not exist on the Blockchain")
160160 else [StringEntry(F(G), U)]
161161 }
162162
163163
164164
165165 @Callable(R)
166166 func addOrder (n,W,X,m,S,j) = if ((this != R.caller))
167167 then throw("Caller is not the Contract owner")
168168 else {
169169 let t = l(m, n)
170170 let Y = i(j, t)
171171 let E = p(m)
172172 let Z = (W * 100000000)
173173 if ((0 >= W))
174174 then throw("You cannot create an order with shipping costs lower than 0")
175175 else if ((I(t) != a))
176176 then throw("An order with the same id already exists")
177177 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")]
178178 }
179179
180180
181181
182182 @Callable(R)
183183 func setOrderIsAccepted (m,n,y,aa) = if ((this != R.caller))
184184 then throw("Caller is not the Contract owner")
185185 else {
186186 let t = l(m, n)
187187 let j = H(t)
188188 let Y = i(j, t)
189189 let X = O(Y, m)
190190 if ((I(t) != m))
191191 then throw("The requested order does not exist")
192192 else if ((J(t, m, "") != "open"))
193193 then throw("The requested order is no longer available")
194194 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)]
195195 }
196196
197197
198198
199199 @Callable(R)
200200 func setOrderIsInDelivery (m,n) = if ((this != R.caller))
201201 then throw("Caller is not the Contract owner")
202202 else {
203203 let t = l(m, n)
204204 let y = K(t, m)
205205 if ((I(t) != m))
206206 then throw("The requested order does not exist")
207207 else if ((y == a))
208208 then throw("The requested order is not accepted yet")
209209 else if ((L(t, m, y) != false))
210210 then throw("The requested order is no longer available")
211211 else [BooleanEntry(z(t, m, y), true), StringEntry(C(t, m, y), "inDelivery")]
212212 }
213213
214214
215215
216216 @Callable(R)
217217 func setOrderIsDelivered (m,n) = if ((this != R.caller))
218218 then throw("Caller is not the Contract owner")
219219 else {
220220 let t = l(m, n)
221221 let y = K(t, m)
222222 let X = J(t, m, y)
223223 let Z = N(t, m)
224224 if ((I(t) != m))
225225 then throw("The requested order does not exist")
226226 else if ((y == a))
227227 then throw("There was no courier set! Something went wrong with the order.")
228228 else if ((M(t, m, y) != "inDelivery"))
229229 then throw("The requested order was already delivered")
230230 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)]
231231 }
232232
233233
234234
235235 @Callable(R)
236236 func cancelAcceptedOrderByCourier (m,n,y,j) = if ((this != R.caller))
237237 then throw("Caller is not the Contract owner")
238238 else {
239239 let t = l(m, n)
240240 let Y = i(j, t)
241241 let X = J(t, m, y)
242242 if ((I(t) != m))
243243 then throw("The requested order does not exist")
244244 else if ((X == a))
245245 then throw("The requested order does not exist or is not accepted yet")
246246 else if ((L(t, m, y) == a))
247247 then throw("The requested order is not accepted yet")
248248 else [DeleteEntry(x(t, m, y)), DeleteEntry(s(t)), DeleteEntry(z(t, m, y)), DeleteEntry(A(t, m, y)), StringEntry(B(Y, m), X), StringEntry(x(t, m, ""), "open")]
249249 }
250250
251251
252252
253253 @Callable(R)
254254 func cancelOpenOrderByRetailer (m,n,j,ab,W) = if ((this != R.caller))
255255 then throw("Caller is not the Contract owner")
256256 else {
257257 let t = l(m, n)
258258 let Y = i(j, t)
259259 let E = p(m)
260260 let Z = (W * 100000000)
261261 if ((I(t) != m))
262262 then throw("The requested order does not exist")
263263 else if ((L(t, m, "") == "open"))
264264 then throw("The requested order is already accepted and can no longer be canceled in this way")
265265 else [DeleteEntry(s(t)), DeleteEntry(u(t)), DeleteEntry(v(t, m)), DeleteEntry(B(Y, m)), DeleteEntry(x(t, m, "")), ScriptTransfer(addressFromStringValue(ab), Z, unit)]
266266 }
267267
268268
269269
270270 @Callable(R)
271271 func deleteEntry (d) = if ((this != R.caller))
272272 then throw("Caller is not the Contract owner")
273273 else [DeleteEntry(d)]
274274
275275
276276 @Verifier(ac)
277277 func ad () = {
278278 let e = ac
279279 if ($isInstanceOf(e, "SetScriptTransaction"))
280280 then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
281281 else if ($isInstanceOf(e, "InvokeScriptTransaction"))
282282 then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
283283 else if ($isInstanceOf(e, "TransferTransaction"))
284284 then {
285285 let ae = e
286286 if (if (if ((ae.amount == 300000000))
287287 then true
288288 else (ae.amount == 400000000))
289289 then true
290290 else (ae.amount == 500000000))
291291 then true
292292 else if ((ae.amount == 600000000))
293293 then sigVerify(ac.bodyBytes, ac.proofs[0], ac.senderPublicKey)
294294 else false
295295 }
296296 else false
297297 }
298298

github/deemru/w8io/873ac7e 
80.22 ms