tx · Gf97QsHa5Zf7Ur64KaPbgwF4pMnUkZjGERTNMrkjNckH

3N5uBruA4v5Jbxy7tk6NevzosuhZAMZbeUU:  -0.01000000 Waves

2021.01.06 17:55 [1341693] smart account 3N5uBruA4v5Jbxy7tk6NevzosuhZAMZbeUU > SELF 0.00000000 Waves

{ "type": 13, "id": "Gf97QsHa5Zf7Ur64KaPbgwF4pMnUkZjGERTNMrkjNckH", "fee": 1000000, "feeAssetId": null, "timestamp": 1609944960006, "version": 2, "chainId": 84, "sender": "3N5uBruA4v5Jbxy7tk6NevzosuhZAMZbeUU", "senderPublicKey": "vEruoBTkqfLkvFLZxa1TdkqMyKnhPcbEykqu1BnHvPq", "proofs": [ "34ZrB2y4R8eu1YZN7meqnsLBJNW6zzp1rSvrwDxoqvTF7CT9DkvtsdDcAwjCQXtarA86TFiaaAhAdp7WeM2CEukg" ], "script": "base64:AAIEAAAAAAAAAEEIAhIECgIICBIECgIICBIICgYIAQgICAgSBQoDCAgIEgQKAggIEgQKAggIEgYKBAgICAgSBwoFCAgICAESAwoBCAAAABsAAAAABE5PTkUCAAAABE5PTkUBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2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AAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmdvOMN", "height": 1341693, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 8SainjMAVk1N7GNXCeMcqLj8obxRTgfKxa32Y8KiKKAs Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "NONE"
5+
6+func b (c) = {
7+ let d = getString(this, c)
8+ if ($isInstanceOf(d, "String"))
9+ then {
10+ let e = d
11+ e
12+ }
13+ else a
14+ }
15+
16+
17+func f (c) = {
18+ let d = getBoolean(this, c)
19+ if ($isInstanceOf(d, "Boolean"))
20+ then {
21+ let e = d
22+ e
23+ }
24+ else a
25+ }
26+
27+
28+func g (c) = {
29+ let d = getInteger(this, c)
30+ if ($isInstanceOf(d, "Int"))
31+ then {
32+ let e = d
33+ e
34+ }
35+ else -1
36+ }
37+
38+
39+func h (i,j) = ((i + "_") + j)
40+
41+
42+func k (l,m) = {
43+ let n = (l + m)
44+ ("order_" + toBase58String(sha256(toBytes(n))))
45+ }
46+
47+
48+func o (l) = ("retailer_" + toBase58String(sha256(toBytes(l))))
49+
50+
51+func p (q) = ("courier_" + toBase58String(sha256(toBytes(q))))
52+
53+
54+func r (s) = (s + "_city")
55+
56+
57+func t (s) = (s + "_retailer")
58+
59+
60+func u (s,l) = (((l + "_") + s) + "_shipping")
61+
62+
63+func v (s,l) = (((l + "_") + s) + "_courierId")
64+
65+
66+func w (s,l,x) = ((((l + "_") + s) + "_data_courier_") + x)
67+
68+
69+func y (s,l,x) = (((((l + "_") + s) + "_data_courier_") + x) + "_isInDelivery")
70+
71+
72+func z (s,l) = (((l + "_") + s) + "_data_open")
73+
74+
75+func A (s,l,x) = ((((l + "_") + s) + "_isDelivered_") + x)
76+
77+
78+func B (C) = (C + "_data")
79+
80+
81+func D (E) = (E + "_data")
82+
83+
84+func F (s) = b(r(s))
85+
86+
87+func G (s) = b(t(s))
88+
89+
90+func H (s,l,x) = b(w(s, l, x))
91+
92+
93+func I (s,l) = b(v(s, l))
94+
95+
96+func J (s,l,x) = f(y(s, l, x))
97+
98+
99+func K (s,l,x) = b(A(s, l, x))
100+
101+
102+func L (s,l) = g(u(s, l))
103+
104+
105+func M (s,l) = b(z(s, l))
106+
107+
108+func N (C) = b(B(C))
109+
110+
111+@Callable(O)
112+func registerRetailer (l,P) = {
113+ let C = o(l)
114+[StringEntry(B(C), P)]
115+ }
116+
117+
118+
119+@Callable(O)
120+func registerCourier (q,Q) = {
121+ let E = p(q)
122+[StringEntry(D(E), Q)]
123+ }
124+
125+
126+
127+@Callable(O)
128+func addOrder (m,R,S,l,P,i) = {
129+ let s = k(l, m)
130+ let T = h(i, s)
131+ let C = o(l)
132+ let U = (R * 100000000)
133+ if ((0 >= R))
134+ then throw("You cannot create an order with shipping costs lower than 0")
135+ else if ((G(s) != a))
136+ then throw("An order with the same id already exists")
137+ else [StringEntry(B(C), P), StringEntry(r(s), i), StringEntry(t(s), l), IntegerEntry(u(s, l), U), StringEntry(z(T, l), S), StringEntry(w(s, l, ""), "open")]
138+ }
139+
140+
141+
142+@Callable(O)
143+func setOrderIsAccepted (l,m,x) = {
144+ let s = k(l, m)
145+ let i = F(s)
146+ let T = h(i, s)
147+ let S = M(T, l)
148+ if ((G(s) != l))
149+ then throw("The requested order does not exist")
150+ else if ((H(s, l, "") != "open"))
151+ then throw("The requested order is no longer available")
152+ else [DeleteEntry(z(T, l)), DeleteEntry(w(s, l, "")), StringEntry(w(s, l, x), S), BooleanEntry(y(s, l, x), false), StringEntry(v(s, l), x)]
153+ }
154+
155+
156+
157+@Callable(O)
158+func setOrderIsInDelivery (l,m) = {
159+ let s = k(l, m)
160+ let x = I(s, l)
161+ if ((G(s) != l))
162+ then throw("The requested order does not exist")
163+ else if ((x == a))
164+ then throw("The requested order is not accepted yet")
165+ else if ((J(s, l, x) != false))
166+ then throw("The requested order is no longer available")
167+ else [BooleanEntry(y(s, l, x), true), StringEntry(A(s, l, x), "inDelivery")]
168+ }
169+
170+
171+
172+@Callable(O)
173+func setOrderIsDelivered (l,m) = {
174+ let s = k(l, m)
175+ let x = I(s, l)
176+ let S = H(s, l, x)
177+ let U = L(s, l)
178+ if ((G(s) != l))
179+ then throw("The requested order does not exist")
180+ else if ((x == a))
181+ then throw("There was no courier set! Something went wrong with the order.")
182+ else if ((K(s, l, x) != "inDelivery"))
183+ then throw("The requested order was already delivered")
184+ else [DeleteEntry(w(s, l, x)), DeleteEntry(y(s, l, x)), DeleteEntry(A(s, l, "")), StringEntry(A(s, l, x), S), ScriptTransfer(addressFromStringValue(x), U, unit)]
185+ }
186+
187+
188+
189+@Callable(O)
190+func cancelAcceptedOrderByCourier (l,m,x,i) = {
191+ let s = k(l, m)
192+ let T = h(i, s)
193+ let S = H(s, l, x)
194+ if ((G(s) != l))
195+ then throw("The requested order does not exist")
196+ else if ((S == a))
197+ then throw("The requested order does not exist or is not accepted yet")
198+ else if ((J(s, l, x) == a))
199+ then throw("The requested order is not accepted yet")
200+ else [DeleteEntry(w(s, l, x)), DeleteEntry(r(s)), DeleteEntry(t(s)), DeleteEntry(y(s, l, x)), StringEntry(z(T, l), S), StringEntry(w(s, l, ""), "open")]
201+ }
202+
203+
204+
205+@Callable(O)
206+func cancelOpenOrderByRetailer (l,m,i,V,R) = {
207+ let s = k(l, m)
208+ let T = h(i, s)
209+ let C = o(l)
210+ let U = (R * 100000000)
211+ if ((G(s) != l))
212+ then throw("The requested order does not exist")
213+ else if ((J(s, l, "") == "open"))
214+ then throw("The requested order is already accepted and can no longer be canceled in this way")
215+ else [DeleteEntry(r(s)), DeleteEntry(t(s)), DeleteEntry(u(s, l)), DeleteEntry(z(T, l)), DeleteEntry(w(s, l, "")), ScriptTransfer(addressFromStringValue(V), U, unit)]
216+ }
217+
218+
219+
220+@Callable(O)
221+func deleteEntry (c) = [DeleteEntry(c)]
222+
223+
224+@Verifier(W)
225+func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey)
226+

github/deemru/w8io/026f985 
27.15 ms