tx · 5h6TYhzPXzLxD84t6xYvXxmVVn5DDnyoSXjW4FkSTiUR 3MuuTnT6CyA33GwqHBpJDmkKkT98hiJonwP: -0.05000000 Waves 2021.01.04 20:29 [1338958] smart account 3MuuTnT6CyA33GwqHBpJDmkKkT98hiJonwP > SELF 0.00000000 Waves
{ "type": 13, "id": "5h6TYhzPXzLxD84t6xYvXxmVVn5DDnyoSXjW4FkSTiUR", "fee": 5000000, "feeAssetId": null, "timestamp": 1609781431075, "version": 2, "chainId": 84, "sender": "3MuuTnT6CyA33GwqHBpJDmkKkT98hiJonwP", "senderPublicKey": "HgH6DMvfVRpE4B8iQtmvvmBxcBqPkgJ3v1s8Kzn37JM2", "proofs": [ "2XeTy3Ck7Y36qa4hduydKsQZAWBrjG3RDuiVNSchnkS4eS48H3XNJUDmM54WXCZfUwD6nLjT3VeDVx5d3dZhvuVX" ], "script": "base64:AAIEAAAAAAAAAEIIAhIECgIICBIECgIICBIICgYIAQgICAgSBQoDCAgIEgQKAggIEgQKAggIEgYKBAgICAgSCAoGCAgICAgBEgMKAQgAAAAbAAAAAAROT05FAgAAAAROT05FAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FAQAAAA9nZXRCb29sZWFuQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoM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FAAAABW9yZGVyBQAAABZyZXRhaWxlcklkZW50aWZpY2F0aW9uAgAAAAAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAFmdldEtleU9yZGVySXNEZWxpdmVyZWQAAAADBQAAAAVvcmRlcgUAAAAWcmV0YWlsZXJJZGVudGlmaWNhdGlvbgIAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAFXJldGFpbGVyV2FsbGV0QWRkcmVzcwUAAAAIc2hpcHBpbmcFAAAABHVuaXQFAAAAA25pbAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAADa2V5CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmYjarR", "height": 1338958, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CC65ZQ3knNgQmyaq1SjmL7ahChuM848rz9Jpqq55y1wb Next: E49YBhNmRotkpS1Wsd63C99JQqRPHVwrJsVNaSdnpQgv Diff:
Old | New | Differences | |
---|---|---|---|
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(O) | |
202 | + | func cancelOpenOrderByRetailer (l,m,x,i,V,U) = { | |
203 | + | let s = k(l, m) | |
204 | + | let T = h(i, s) | |
205 | + | let C = o(l) | |
206 | + | if ((G(s) != l)) | |
207 | + | then throw("The requested order does not exist") | |
208 | + | else if ((J(s, l, x) != a)) | |
209 | + | then throw("The requested order is already accepted and can no longer be canceled in this way") | |
210 | + | else [DeleteEntry(B(C)), DeleteEntry(r(s)), DeleteEntry(t(s)), DeleteEntry(u(s, l)), DeleteEntry(z(T, l)), DeleteEntry(v(s, l)), DeleteEntry(w(s, l, "")), DeleteEntry(y(s, l, "")), DeleteEntry(A(s, l, "")), ScriptTransfer(addressFromStringValue(V), U, unit)] | |
211 | + | } | |
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | @Callable(O) | |
202 | 216 | func deleteEntry (c) = [DeleteEntry(c)] | |
203 | 217 | ||
204 | 218 | ||
205 | - | @Verifier( | |
206 | - | func | |
219 | + | @Verifier(W) | |
220 | + | func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey) | |
207 | 221 |
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) = ((i + "_") + j) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func k (l,m) = { | |
43 | 43 | let n = (l + m) | |
44 | 44 | ("order_" + toBase58String(sha256(toBytes(n)))) | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func o (l) = ("retailer_" + toBase58String(sha256(toBytes(l)))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func p (q) = ("courier_" + toBase58String(sha256(toBytes(q)))) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func r (s) = (s + "_city") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func t (s) = (s + "_retailer") | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func u (s,l) = (((l + "_") + s) + "_shipping") | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func v (s,l) = (((l + "_") + s) + "_courierId") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func w (s,l,x) = ((((l + "_") + s) + "_data_courier_") + x) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func y (s,l,x) = (((((l + "_") + s) + "_data_courier_") + x) + "_isInDelivery") | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func z (s,l) = (((l + "_") + s) + "_data_open") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func A (s,l,x) = ((((l + "_") + s) + "_isDelivered_") + x) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func B (C) = (C + "_data") | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func D (E) = (E + "_data") | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func F (s) = b(r(s)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func G (s) = b(t(s)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func H (s,l,x) = b(w(s, l, x)) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func I (s,l) = b(v(s, l)) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func J (s,l,x) = f(y(s, l, x)) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func K (s,l,x) = b(A(s, l, x)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func L (s,l) = g(u(s, l)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func M (s,l) = b(z(s, l)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func N (C) = b(B(C)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(O) | |
112 | 112 | func registerRetailer (l,P) = { | |
113 | 113 | let C = o(l) | |
114 | 114 | [StringEntry(B(C), P)] | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | ||
119 | 119 | @Callable(O) | |
120 | 120 | func registerCourier (q,Q) = { | |
121 | 121 | let E = p(q) | |
122 | 122 | [StringEntry(D(E), Q)] | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | ||
127 | 127 | @Callable(O) | |
128 | 128 | func addOrder (m,R,S,l,P,i) = { | |
129 | 129 | let s = k(l, m) | |
130 | 130 | let T = h(i, s) | |
131 | 131 | let C = o(l) | |
132 | 132 | let U = (R * 100000000) | |
133 | 133 | if ((0 >= R)) | |
134 | 134 | then throw("You cannot create an order with shipping costs lower than 0") | |
135 | 135 | else if ((G(s) != a)) | |
136 | 136 | then throw("An order with the same id already exists") | |
137 | 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(v(s, l), a), StringEntry(w(s, l, ""), a), StringEntry(y(s, l, ""), a), StringEntry(A(s, l, ""), a)] | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(O) | |
143 | 143 | func setOrderIsAccepted (l,m,x) = { | |
144 | 144 | let s = k(l, m) | |
145 | 145 | let i = F(s) | |
146 | 146 | let T = h(i, s) | |
147 | 147 | let S = M(T, l) | |
148 | 148 | if ((G(s) != l)) | |
149 | 149 | then throw("The requested order does not exist") | |
150 | 150 | else if ((H(s, l, x) != a)) | |
151 | 151 | then throw("The requested order is no longer available") | |
152 | 152 | else [DeleteEntry(z(T, l)), DeleteEntry(w(s, l, "")), DeleteEntry(y(s, l, "")), StringEntry(w(s, l, x), S), BooleanEntry(y(s, l, x), false), StringEntry(v(s, l), x)] | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | ||
157 | 157 | @Callable(O) | |
158 | 158 | func setOrderIsInDelivery (l,m) = { | |
159 | 159 | let s = k(l, m) | |
160 | 160 | let x = I(s, l) | |
161 | 161 | if ((G(s) != l)) | |
162 | 162 | then throw("The requested order does not exist") | |
163 | 163 | else if ((J(s, l, x) != false)) | |
164 | 164 | then throw("The requested order is no longer available") | |
165 | 165 | else [BooleanEntry(y(s, l, x), true)] | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(O) | |
171 | 171 | func setOrderIsDelivered (l,m) = { | |
172 | 172 | let s = k(l, m) | |
173 | 173 | let x = I(s, l) | |
174 | 174 | let S = H(s, l, x) | |
175 | 175 | let U = L(s, l) | |
176 | 176 | if ((G(s) != l)) | |
177 | 177 | then throw("The requested order does not exist") | |
178 | 178 | else if ((x == a)) | |
179 | 179 | then throw("There was no courier set! Something went wrong with the order.") | |
180 | 180 | else if ((K(s, l, x) != a)) | |
181 | 181 | then throw("The requested order is no longer available") | |
182 | 182 | 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)] | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(O) | |
188 | 188 | func cancelAcceptedOrderByCourier (l,m,x,i) = { | |
189 | 189 | let s = k(l, m) | |
190 | 190 | let T = h(i, s) | |
191 | 191 | let S = H(s, l, x) | |
192 | 192 | if ((S == a)) | |
193 | 193 | then throw("The requested order does not exist") | |
194 | 194 | else if ((J(s, l, x) == a)) | |
195 | 195 | then throw("The requested order is not accepted yet") | |
196 | 196 | else [DeleteEntry(w(s, l, x)), DeleteEntry(y(s, l, x)), StringEntry(z(T, l), S), StringEntry(w(s, l, ""), a), StringEntry(y(s, l, ""), a)] | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(O) | |
202 | + | func cancelOpenOrderByRetailer (l,m,x,i,V,U) = { | |
203 | + | let s = k(l, m) | |
204 | + | let T = h(i, s) | |
205 | + | let C = o(l) | |
206 | + | if ((G(s) != l)) | |
207 | + | then throw("The requested order does not exist") | |
208 | + | else if ((J(s, l, x) != a)) | |
209 | + | then throw("The requested order is already accepted and can no longer be canceled in this way") | |
210 | + | else [DeleteEntry(B(C)), DeleteEntry(r(s)), DeleteEntry(t(s)), DeleteEntry(u(s, l)), DeleteEntry(z(T, l)), DeleteEntry(v(s, l)), DeleteEntry(w(s, l, "")), DeleteEntry(y(s, l, "")), DeleteEntry(A(s, l, "")), ScriptTransfer(addressFromStringValue(V), U, unit)] | |
211 | + | } | |
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | @Callable(O) | |
202 | 216 | func deleteEntry (c) = [DeleteEntry(c)] | |
203 | 217 | ||
204 | 218 | ||
205 | - | @Verifier( | |
206 | - | func | |
219 | + | @Verifier(W) | |
220 | + | func X () = sigVerify(W.bodyBytes, W.proofs[0], W.senderPublicKey) | |
207 | 221 |
github/deemru/w8io/026f985 33.68 ms ◑