tx · 2gFT2F1bizqbB52qBQohof257JkWhKPuJ8mba6u2yBqc

3N61Xs9cTetvoP1uZSrtuRxxJ4A4RCR7a4G:  -0.05000000 Waves

2020.11.30 20:12 [1288440] smart account 3N61Xs9cTetvoP1uZSrtuRxxJ4A4RCR7a4G > SELF 0.00000000 Waves

{ "type": 13, "id": "2gFT2F1bizqbB52qBQohof257JkWhKPuJ8mba6u2yBqc", "fee": 5000000, "feeAssetId": null, "timestamp": 1606756369378, "version": 2, "chainId": 84, "sender": "3N61Xs9cTetvoP1uZSrtuRxxJ4A4RCR7a4G", "senderPublicKey": "DjYkFAzpGaY6gNruMz81SkVbRsemgpfr6KJbXXgyH3UM", "proofs": [ "4VQdZ58x5AvgZH5XGTg1wC6tJdAinVsVTfyNq3C4HEP47FaFdRr8qz6aCLqYuLdG5SX4p6NMNocothcap5iyBS93" ], "script": "base64:AAIEAAAAAAAAAC8IAhIECgIICBIECgIICBIHCgUIAQgICBIFCgMICAgSBAoCCAgSBAoCCAgSAwoBCAAAABgAAAAABE5PTkUCAAAABE5PTkUBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAA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AkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkZUrOr", "height": 1288440, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gyc3o4JPaBo57QNQWiNCY8LzjcbHH5pvWSHgUD4yWqha Next: 2Yq2YgnJ4QsSUfTJttitfgS2RibVnCXrm3ktU4fzdFnz Diff:
OldNewDifferences
6060 func s (p,i,t) = ((((i + "_") + p) + "_data_courier_") + t)
6161
6262
63-func u (p,i) = (((i + "_") + p) + "_isInDelivery")
63+func u (p,i,t) = (((((i + "_") + p) + "_data_courier_") + t) + "_isInDelivery")
6464
6565
6666 func v (p,i) = (((i + "_") + p) + "_data_open")
8484 func D (p,i) = b(r(p, i))
8585
8686
87-func E (p,i) = f(u(p, i))
87+func E (p,i,t) = f(u(p, i, t))
8888
8989
9090 func F (p,i,t) = b(w(p, i, t))
124124 then throw("You cannot create an order with shipping costs lower than 0")
125125 else if ((B(p) != a))
126126 then throw("An order with the same id already exists")
127- else [StringEntry(x(y), K), StringEntry(o(p), i), IntegerEntry(q(p, i), O), StringEntry(v(p, i), N), StringEntry(r(p, i), a), StringEntry(s(p, i, ""), a), StringEntry(u(p, i), a), StringEntry(w(p, i, ""), a)]
127+ else [StringEntry(x(y), K), StringEntry(o(p), i), IntegerEntry(q(p, i), O), StringEntry(v(p, i), N), StringEntry(r(p, i), a), StringEntry(s(p, i, ""), a), StringEntry(u(p, i, ""), a), StringEntry(w(p, i, ""), a)]
128128 }
129129
130130
137137 then throw("The requested order does not exist")
138138 else if ((C(p, i, t) != a))
139139 then throw("The requested order is no longer available")
140- else [DeleteEntry(v(p, i)), DeleteEntry(s(p, i, "")), StringEntry(s(p, i, t), N), StringEntry(r(p, i), t)]
140+ else [DeleteEntry(v(p, i)), DeleteEntry(s(p, i, "")), StringEntry(s(p, i, t), N), BooleanEntry(u(p, i, t), false), StringEntry(r(p, i), t)]
141141 }
142142
143143
145145 @Callable(J)
146146 func setOrderIsInDelivery (i,j) = {
147147 let p = h(i, j)
148+ let t = D(p, i)
148149 if ((B(p) != i))
149150 then throw("The requested order does not exist")
150- else if ((E(p, i) != a))
151+ else if ((E(p, i, t) != false))
151152 then throw("The requested order is no longer available")
152- else [BooleanEntry(u(p, i), true)]
153+ else [BooleanEntry(u(p, i, t), true)]
153154 }
154155
155156
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "NONE"
55
66 func b (c) = {
77 let d = getString(this, c)
88 if ($isInstanceOf(d, "String"))
99 then {
1010 let e = d
1111 e
1212 }
1313 else a
1414 }
1515
1616
1717 func f (c) = {
1818 let d = getBoolean(this, c)
1919 if ($isInstanceOf(d, "Boolean"))
2020 then {
2121 let e = d
2222 e
2323 }
2424 else a
2525 }
2626
2727
2828 func g (c) = {
2929 let d = getInteger(this, c)
3030 if ($isInstanceOf(d, "Int"))
3131 then {
3232 let e = d
3333 e
3434 }
3535 else -1
3636 }
3737
3838
3939 func h (i,j) = {
4040 let k = (i + j)
4141 ("order_" + toBase58String(sha256(toBytes(k))))
4242 }
4343
4444
4545 func l (i) = ("retailer_" + toBase58String(sha256(toBytes(i))))
4646
4747
4848 func m (n) = ("courier_" + toBase58String(sha256(toBytes(n))))
4949
5050
5151 func o (p) = (p + "_retailer")
5252
5353
5454 func q (p,i) = (((i + "_") + p) + "_shipping")
5555
5656
5757 func r (p,i) = (((i + "_") + p) + "_courierId")
5858
5959
6060 func s (p,i,t) = ((((i + "_") + p) + "_data_courier_") + t)
6161
6262
63-func u (p,i) = (((i + "_") + p) + "_isInDelivery")
63+func u (p,i,t) = (((((i + "_") + p) + "_data_courier_") + t) + "_isInDelivery")
6464
6565
6666 func v (p,i) = (((i + "_") + p) + "_data_open")
6767
6868
6969 func w (p,i,t) = ((((i + "_") + p) + "_isDelivered_") + t)
7070
7171
7272 func x (y) = (y + "_data")
7373
7474
7575 func z (A) = (A + "_data")
7676
7777
7878 func B (p) = b(o(p))
7979
8080
8181 func C (p,i,t) = b(s(p, i, t))
8282
8383
8484 func D (p,i) = b(r(p, i))
8585
8686
87-func E (p,i) = f(u(p, i))
87+func E (p,i,t) = f(u(p, i, t))
8888
8989
9090 func F (p,i,t) = b(w(p, i, t))
9191
9292
9393 func G (p,i) = g(q(p, i))
9494
9595
9696 func H (p,i) = b(v(p, i))
9797
9898
9999 func I (y) = b(x(y))
100100
101101
102102 @Callable(J)
103103 func registerRetailer (i,K) = {
104104 let y = l(i)
105105 [StringEntry(x(y), K)]
106106 }
107107
108108
109109
110110 @Callable(J)
111111 func registerCourier (n,L) = {
112112 let A = m(n)
113113 [StringEntry(z(A), L)]
114114 }
115115
116116
117117
118118 @Callable(J)
119119 func addOrder (j,M,N,i,K) = {
120120 let p = h(i, j)
121121 let y = l(i)
122122 let O = (M * 100000000)
123123 if ((0 >= M))
124124 then throw("You cannot create an order with shipping costs lower than 0")
125125 else if ((B(p) != a))
126126 then throw("An order with the same id already exists")
127- else [StringEntry(x(y), K), StringEntry(o(p), i), IntegerEntry(q(p, i), O), StringEntry(v(p, i), N), StringEntry(r(p, i), a), StringEntry(s(p, i, ""), a), StringEntry(u(p, i), a), StringEntry(w(p, i, ""), a)]
127+ else [StringEntry(x(y), K), StringEntry(o(p), i), IntegerEntry(q(p, i), O), StringEntry(v(p, i), N), StringEntry(r(p, i), a), StringEntry(s(p, i, ""), a), StringEntry(u(p, i, ""), a), StringEntry(w(p, i, ""), a)]
128128 }
129129
130130
131131
132132 @Callable(J)
133133 func setOrderIsAccepted (i,j,t) = {
134134 let p = h(i, j)
135135 let N = H(p, i)
136136 if ((B(p) != i))
137137 then throw("The requested order does not exist")
138138 else if ((C(p, i, t) != a))
139139 then throw("The requested order is no longer available")
140- else [DeleteEntry(v(p, i)), DeleteEntry(s(p, i, "")), StringEntry(s(p, i, t), N), StringEntry(r(p, i), t)]
140+ else [DeleteEntry(v(p, i)), DeleteEntry(s(p, i, "")), StringEntry(s(p, i, t), N), BooleanEntry(u(p, i, t), false), StringEntry(r(p, i), t)]
141141 }
142142
143143
144144
145145 @Callable(J)
146146 func setOrderIsInDelivery (i,j) = {
147147 let p = h(i, j)
148+ let t = D(p, i)
148149 if ((B(p) != i))
149150 then throw("The requested order does not exist")
150- else if ((E(p, i) != a))
151+ else if ((E(p, i, t) != false))
151152 then throw("The requested order is no longer available")
152- else [BooleanEntry(u(p, i), true)]
153+ else [BooleanEntry(u(p, i, t), true)]
153154 }
154155
155156
156157
157158 @Callable(J)
158159 func setOrderIsDelivered (i,j) = {
159160 let p = h(i, j)
160161 let t = D(p, i)
161162 let N = C(p, i, t)
162163 let O = G(p, i)
163164 if ((B(p) != i))
164165 then throw("The requested order does not exist")
165166 else if ((t == a))
166167 then throw("There was no courier set! Something went wrong with the order.")
167168 else if ((F(p, i, t) != a))
168169 then throw("The requested order is no longer available")
169170 else [DeleteEntry(s(p, i, t)), DeleteEntry(w(p, i, "")), StringEntry(w(p, i, t), N), ScriptTransfer(addressFromStringValue(t), O, unit)]
170171 }
171172
172173
173174
174175 @Callable(J)
175176 func deleteEntry (c) = [DeleteEntry(c)]
176177
177178
178179 @Verifier(P)
179180 func Q () = sigVerify(P.bodyBytes, P.proofs[0], P.senderPublicKey)
180181

github/deemru/w8io/026f985 
39.47 ms