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:AAIEAAAAAAAAAC8IAhIECgIICBIECgIICBIHCgUIAQgICBIFCgMICAgSBAoCCAgSBAoCCAgSAwoBCAAAABgAAAAABE5PTkUCAAAABE5PTkUBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAABy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kAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkZUrOr", "height": 1288440, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gyc3o4JPaBo57QNQWiNCY8LzjcbHH5pvWSHgUD4yWqha Next: 2Yq2YgnJ4QsSUfTJttitfgS2RibVnCXrm3ktU4fzdFnz Diff:
Old | New | Differences | |
---|---|---|---|
60 | 60 | func s (p,i,t) = ((((i + "_") + p) + "_data_courier_") + t) | |
61 | 61 | ||
62 | 62 | ||
63 | - | func u (p,i) = (((i + "_") + p) + "_isInDelivery") | |
63 | + | func u (p,i,t) = (((((i + "_") + p) + "_data_courier_") + t) + "_isInDelivery") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func v (p,i) = (((i + "_") + p) + "_data_open") | |
84 | 84 | func D (p,i) = b(r(p, i)) | |
85 | 85 | ||
86 | 86 | ||
87 | - | func E (p,i) = f(u(p, i)) | |
87 | + | func E (p,i,t) = f(u(p, i, t)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func F (p,i,t) = b(w(p, i, t)) | |
124 | 124 | then throw("You cannot create an order with shipping costs lower than 0") | |
125 | 125 | else if ((B(p) != a)) | |
126 | 126 | 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)] | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
137 | 137 | then throw("The requested order does not exist") | |
138 | 138 | else if ((C(p, i, t) != a)) | |
139 | 139 | 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)] | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
145 | 145 | @Callable(J) | |
146 | 146 | func setOrderIsInDelivery (i,j) = { | |
147 | 147 | let p = h(i, j) | |
148 | + | let t = D(p, i) | |
148 | 149 | if ((B(p) != i)) | |
149 | 150 | then throw("The requested order does not exist") | |
150 | - | else if ((E(p, i) != | |
151 | + | else if ((E(p, i, t) != false)) | |
151 | 152 | then throw("The requested order is no longer available") | |
152 | - | else [BooleanEntry(u(p, i), true)] | |
153 | + | else [BooleanEntry(u(p, i, t), true)] | |
153 | 154 | } | |
154 | 155 | ||
155 | 156 |
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 | func b (c) = { | |
7 | 7 | let d = getString(this, c) | |
8 | 8 | if ($isInstanceOf(d, "String")) | |
9 | 9 | then { | |
10 | 10 | let e = d | |
11 | 11 | e | |
12 | 12 | } | |
13 | 13 | else a | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func f (c) = { | |
18 | 18 | let d = getBoolean(this, c) | |
19 | 19 | if ($isInstanceOf(d, "Boolean")) | |
20 | 20 | then { | |
21 | 21 | let e = d | |
22 | 22 | e | |
23 | 23 | } | |
24 | 24 | else a | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func g (c) = { | |
29 | 29 | let d = getInteger(this, c) | |
30 | 30 | if ($isInstanceOf(d, "Int")) | |
31 | 31 | then { | |
32 | 32 | let e = d | |
33 | 33 | e | |
34 | 34 | } | |
35 | 35 | else -1 | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func h (i,j) = { | |
40 | 40 | let k = (i + j) | |
41 | 41 | ("order_" + toBase58String(sha256(toBytes(k)))) | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func l (i) = ("retailer_" + toBase58String(sha256(toBytes(i)))) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func m (n) = ("courier_" + toBase58String(sha256(toBytes(n)))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func o (p) = (p + "_retailer") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func q (p,i) = (((i + "_") + p) + "_shipping") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func r (p,i) = (((i + "_") + p) + "_courierId") | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func s (p,i,t) = ((((i + "_") + p) + "_data_courier_") + t) | |
61 | 61 | ||
62 | 62 | ||
63 | - | func u (p,i) = (((i + "_") + p) + "_isInDelivery") | |
63 | + | func u (p,i,t) = (((((i + "_") + p) + "_data_courier_") + t) + "_isInDelivery") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func v (p,i) = (((i + "_") + p) + "_data_open") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func w (p,i,t) = ((((i + "_") + p) + "_isDelivered_") + t) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func x (y) = (y + "_data") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func z (A) = (A + "_data") | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func B (p) = b(o(p)) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func C (p,i,t) = b(s(p, i, t)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func D (p,i) = b(r(p, i)) | |
85 | 85 | ||
86 | 86 | ||
87 | - | func E (p,i) = f(u(p, i)) | |
87 | + | func E (p,i,t) = f(u(p, i, t)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func F (p,i,t) = b(w(p, i, t)) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func G (p,i) = g(q(p, i)) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func H (p,i) = b(v(p, i)) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func I (y) = b(x(y)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(J) | |
103 | 103 | func registerRetailer (i,K) = { | |
104 | 104 | let y = l(i) | |
105 | 105 | [StringEntry(x(y), K)] | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | ||
110 | 110 | @Callable(J) | |
111 | 111 | func registerCourier (n,L) = { | |
112 | 112 | let A = m(n) | |
113 | 113 | [StringEntry(z(A), L)] | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(J) | |
119 | 119 | func addOrder (j,M,N,i,K) = { | |
120 | 120 | let p = h(i, j) | |
121 | 121 | let y = l(i) | |
122 | 122 | let O = (M * 100000000) | |
123 | 123 | if ((0 >= M)) | |
124 | 124 | then throw("You cannot create an order with shipping costs lower than 0") | |
125 | 125 | else if ((B(p) != a)) | |
126 | 126 | 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)] | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(J) | |
133 | 133 | func setOrderIsAccepted (i,j,t) = { | |
134 | 134 | let p = h(i, j) | |
135 | 135 | let N = H(p, i) | |
136 | 136 | if ((B(p) != i)) | |
137 | 137 | then throw("The requested order does not exist") | |
138 | 138 | else if ((C(p, i, t) != a)) | |
139 | 139 | 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)] | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(J) | |
146 | 146 | func setOrderIsInDelivery (i,j) = { | |
147 | 147 | let p = h(i, j) | |
148 | + | let t = D(p, i) | |
148 | 149 | if ((B(p) != i)) | |
149 | 150 | then throw("The requested order does not exist") | |
150 | - | else if ((E(p, i) != | |
151 | + | else if ((E(p, i, t) != false)) | |
151 | 152 | then throw("The requested order is no longer available") | |
152 | - | else [BooleanEntry(u(p, i), true)] | |
153 | + | else [BooleanEntry(u(p, i, t), true)] | |
153 | 154 | } | |
154 | 155 | ||
155 | 156 | ||
156 | 157 | ||
157 | 158 | @Callable(J) | |
158 | 159 | func setOrderIsDelivered (i,j) = { | |
159 | 160 | let p = h(i, j) | |
160 | 161 | let t = D(p, i) | |
161 | 162 | let N = C(p, i, t) | |
162 | 163 | let O = G(p, i) | |
163 | 164 | if ((B(p) != i)) | |
164 | 165 | then throw("The requested order does not exist") | |
165 | 166 | else if ((t == a)) | |
166 | 167 | then throw("There was no courier set! Something went wrong with the order.") | |
167 | 168 | else if ((F(p, i, t) != a)) | |
168 | 169 | then throw("The requested order is no longer available") | |
169 | 170 | else [DeleteEntry(s(p, i, t)), DeleteEntry(w(p, i, "")), StringEntry(w(p, i, t), N), ScriptTransfer(addressFromStringValue(t), O, unit)] | |
170 | 171 | } | |
171 | 172 | ||
172 | 173 | ||
173 | 174 | ||
174 | 175 | @Callable(J) | |
175 | 176 | func deleteEntry (c) = [DeleteEntry(c)] | |
176 | 177 | ||
177 | 178 | ||
178 | 179 | @Verifier(P) | |
179 | 180 | func Q () = sigVerify(P.bodyBytes, P.proofs[0], P.senderPublicKey) | |
180 | 181 |
github/deemru/w8io/026f985 39.47 ms ◑