tx · QDipQwukBdKDYsuEeDmstNiS9Cd2u3MJg87PZr6Yqtr

3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL:  -0.05000000 Waves

2021.01.22 16:43 [1364725] smart account 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL > SELF 0.00000000 Waves

{ "type": 13, "id": "QDipQwukBdKDYsuEeDmstNiS9Cd2u3MJg87PZr6Yqtr", "fee": 5000000, "feeAssetId": null, "timestamp": 1611323019607, "version": 2, "chainId": 84, "sender": "3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL", "senderPublicKey": "DfBpAEVbFfW1EMhjQ2DgbCDVQCY5L1nwL9NdWEmu4j3P", "proofs": [ "5qqczMUCcwtWUvdpdjkQvTEErQt3BTqFDvHEhi4vwT2SvaiSk2BGLYMLpFHDg6uo3Jsbuhvj7SG3za7FhMtULJ5n" ], "script": "base64:AAIEAAAAAAAAAE8IAhIFCgMICAgSBAoCCAgSBAoCCAgSBAoCCAgSCAoGCAEICAgIEgYKBAgICAESBAoCCAgSBAoCCAgSBgoECAgICBIHCgUICAgIARIDCgEIAAAAIAAAAAAETk9ORQIAAAAETk9ORQAAAAAOcmViaXJ0aEFzc2V0SWQBAAAAIE5SiPQ7HWpJaPwC+8nKRjrQfJdgOfgLUzaZtoFyMAwxAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FAQAAAA9nZXRCb29sZWFuQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEludGVnZXJCeUt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QAAAgAAAAECAAAAIENhbGxlciBpcyBub3QgdGhlIENvbnRyYWN0IG93bmVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24JAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDADAwMJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAABHhowAGCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAX14QABgkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAHc1lAAYDCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAjw0YACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQcHJQAIjA==", "height": 1364725, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hm6Y3du1HNRjr838WGhxFkPFUY5UWv3cczMmN9eco3Lx Next: FwrtiRG5GrwcEs9koPKDQS4DkgqpKcWY4bvirqZJUkNz Diff:
OldNewDifferences
6969
7070
7171 func getKeyOrderIsDelivered (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_isDelivered_") + courierAddress)
72-
73-
74-func getKeyOrderSignature (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_signature")
7572
7673
7774 func getKeyRetailerData (retailer) = (retailer + "_data")
214211
215212
216213 @Callable(i)
217-func setOrderIsDelivered (retailerIdentification,orderId,signature) = if ((this != i.caller))
214+func setOrderIsDelivered (retailerIdentification,orderId) = if ((this != i.caller))
218215 then throw("Caller is not the Contract owner")
219216 else {
220217 let order = getKeyOrder(retailerIdentification, orderId)
227224 then throw("There was no courier set! Something went wrong with the order.")
228225 else if ((getValueIsDeliveredOfOrder(order, retailerIdentification, courierAddress) != "inDelivery"))
229226 then throw("The requested order was already delivered")
230- else [DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsDelivered(order, retailerIdentification, "")), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), orderData), StringEntry(getKeyOrderSignature(order, retailerIdentification), signature), ScriptTransfer(addressFromStringValue(courierAddress), shipping, unit)]
227+ else [DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsDelivered(order, retailerIdentification, "")), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), orderData), ScriptTransfer(addressFromStringValue(courierAddress), shipping, unit)]
231228 }
232229
233230
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "NONE"
55
66 let rebirthAssetId = base58'6Gjo6dZNLzun8w7uzWuH1t6hoGph9KrMcf1qjbEzBsVJ'
77
88 func getStringByKey (key) = match getString(this, key) {
99 case a: String =>
1010 a
1111 case _ =>
1212 NONE
1313 }
1414
1515
1616 func getBooleanByKey (key) = match getBoolean(this, key) {
1717 case a: Boolean =>
1818 a
1919 case _ =>
2020 NONE
2121 }
2222
2323
2424 func getIntegerByKey (key) = match getInteger(this, key) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 -1
2929 }
3030
3131
3232 func getOrderString (city,keyOrderString) = ((city + "_") + keyOrderString)
3333
3434
3535 func getKeyOrder (retailerIdentification,orderId) = {
3636 let retailerIdentificationAndOrderId = (retailerIdentification + orderId)
3737 ("order_" + toBase58String(sha256(toBytes(retailerIdentificationAndOrderId))))
3838 }
3939
4040
4141 func getKeyRetailer (retailerIdentification) = ("retailer_" + toBase58String(sha256(toBytes(retailerIdentification))))
4242
4343
4444 func getKeyCourier (courierIdentification) = ("courier_" + toBase58String(sha256(toBytes(courierIdentification))))
4545
4646
4747 func getKeyOrderCity (order) = (order + "_city")
4848
4949
5050 func getKeyOrderRetailerIdentification (order) = (order + "_retailer")
5151
5252
5353 func getKeyOrderShippingCosts (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_shipping")
5454
5555
5656 func getKeyOrderCourier (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_courierId")
5757
5858
5959 func getKeyOrderIsAccepted (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress)
6060
6161
6262 func getKeyOrderIsInDelivery (order,retailerIdentification,courierAddress) = (((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress) + "_isInDelivery")
6363
6464
6565 func getKeyOrderTimeAccepted (order,retailerIdentification,courierAddress) = (((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress) + "_acceptedAt")
6666
6767
6868 func getKeyOrderDataOpen (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_data_open")
6969
7070
7171 func getKeyOrderIsDelivered (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_isDelivered_") + courierAddress)
72-
73-
74-func getKeyOrderSignature (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_signature")
7572
7673
7774 func getKeyRetailerData (retailer) = (retailer + "_data")
7875
7976
8077 func getKeyCourierData (courier) = (courier + "_data")
8178
8279
8380 func getKeyRetailerFreeTokens (walletAddress) = (walletAddress + "_tokens")
8481
8582
8683 func getValueOrderCity (order) = getStringByKey(getKeyOrderCity(order))
8784
8885
8986 func getValueRetailerFreeTokens (retailer) = getBooleanByKey(getKeyRetailerFreeTokens(retailer))
9087
9188
9289 func getValueRetailerIdentificationOfOrder (order) = getStringByKey(getKeyOrderRetailerIdentification(order))
9390
9491
9592 func getValueIsAcceptedOfOrder (order,retailerIdentification,courierAddress) = getStringByKey(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress))
9693
9794
9895 func getValueCourierIdOfOrder (order,retailerIdentification) = getStringByKey(getKeyOrderCourier(order, retailerIdentification))
9996
10097
10198 func getValueIsInDeliveryOfOrder (order,retailerIdentification,courierAddress) = getBooleanByKey(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress))
10299
103100
104101 func getValueIsDeliveredOfOrder (order,retailerIdentification,courierAddress) = getStringByKey(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress))
105102
106103
107104 func getValueShippingCostsOfOrder (order,retailerIdentification) = getIntegerByKey(getKeyOrderShippingCosts(order, retailerIdentification))
108105
109106
110107 func getValueDataOfOrderOpen (order,retailerIdentification) = getStringByKey(getKeyOrderDataOpen(order, retailerIdentification))
111108
112109
113110 func getValueDataOfRetailer (retailer) = getStringByKey(getKeyRetailerData(retailer))
114111
115112
116113 func getValueDataOfCourier (courier) = getStringByKey(getKeyCourierData(courier))
117114
118115
119116 @Callable(i)
120117 func registerRetailer (retailerIdentification,retailerData,walletAddress) = if ((this != i.caller))
121118 then throw("Caller is not the Contract owner")
122119 else {
123120 let retailer = getKeyRetailer(retailerIdentification)
124121 [BooleanEntry(getKeyRetailerFreeTokens(walletAddress), true), StringEntry(getKeyRetailerData(retailer), retailerData)]
125122 }
126123
127124
128125
129126 @Callable(i)
130127 func updateRetailer (retailerIdentification,retailerData) = if ((this != i.caller))
131128 then throw("Caller is not the Contract owner")
132129 else {
133130 let retailer = getKeyRetailer(retailerIdentification)
134131 let oldRetailerData = getValueDataOfRetailer(retailerIdentification)
135132 if ((oldRetailerData == NONE))
136133 then throw("Courier does not exist on the Blockchain")
137134 else [StringEntry(getKeyCourierData(retailer), retailerData)]
138135 }
139136
140137
141138
142139 @Callable(i)
143140 func registerCourier (courierIdentification,courierData) = if ((this != i.caller))
144141 then throw("Caller is not the Contract owner")
145142 else {
146143 let courier = getKeyCourier(courierIdentification)
147144 [StringEntry(getKeyCourierData(courier), courierData)]
148145 }
149146
150147
151148
152149 @Callable(i)
153150 func updateCourier (courierIdentification,courierData) = if ((this != i.caller))
154151 then throw("Caller is not the Contract owner")
155152 else {
156153 let courier = getKeyCourier(courierIdentification)
157154 let oldCourierData = getValueDataOfCourier(courierIdentification)
158155 if ((oldCourierData == NONE))
159156 then throw("Courier does not exist on the Blockchain")
160157 else [StringEntry(getKeyCourierData(courier), courierData)]
161158 }
162159
163160
164161
165162 @Callable(i)
166163 func addOrder (orderId,shippingCosts,orderData,retailerIdentification,retailerData,city) = if ((this != i.caller))
167164 then throw("Caller is not the Contract owner")
168165 else {
169166 let order = getKeyOrder(retailerIdentification, orderId)
170167 let orderCityString = getOrderString(city, order)
171168 let retailer = getKeyRetailer(retailerIdentification)
172169 let shipping = (shippingCosts * 100000000)
173170 if ((0 >= shippingCosts))
174171 then throw("You cannot create an order with shipping costs lower than 0")
175172 else if ((getValueRetailerIdentificationOfOrder(order) != NONE))
176173 then throw("An order with the same id already exists")
177174 else [StringEntry(getKeyRetailerData(retailer), retailerData), StringEntry(getKeyOrderCity(order), city), StringEntry(getKeyOrderRetailerIdentification(order), retailerIdentification), IntegerEntry(getKeyOrderShippingCosts(order, retailerIdentification), shipping), StringEntry(getKeyOrderDataOpen(orderCityString, retailerIdentification), orderData), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, ""), "open")]
178175 }
179176
180177
181178
182179 @Callable(i)
183180 func setOrderIsAccepted (retailerIdentification,orderId,courierAddress,timeAccepted) = if ((this != i.caller))
184181 then throw("Caller is not the Contract owner")
185182 else {
186183 let order = getKeyOrder(retailerIdentification, orderId)
187184 let city = getValueOrderCity(order)
188185 let orderCityString = getOrderString(city, order)
189186 let orderData = getValueDataOfOrderOpen(orderCityString, retailerIdentification)
190187 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
191188 then throw("The requested order does not exist")
192189 else if ((getValueIsAcceptedOfOrder(order, retailerIdentification, "") != "open"))
193190 then throw("The requested order is no longer available")
194191 else [DeleteEntry(getKeyOrderDataOpen(orderCityString, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress), orderData), BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), false), IntegerEntry(getKeyOrderTimeAccepted(order, retailerIdentification, courierAddress), timeAccepted), StringEntry(getKeyOrderCourier(order, retailerIdentification), courierAddress)]
195192 }
196193
197194
198195
199196 @Callable(i)
200197 func setOrderIsInDelivery (retailerIdentification,orderId) = if ((this != i.caller))
201198 then throw("Caller is not the Contract owner")
202199 else {
203200 let order = getKeyOrder(retailerIdentification, orderId)
204201 let courierAddress = getValueCourierIdOfOrder(order, retailerIdentification)
205202 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
206203 then throw("The requested order does not exist")
207204 else if ((courierAddress == NONE))
208205 then throw("The requested order is not accepted yet")
209206 else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, courierAddress) != false))
210207 then throw("The requested order is no longer available")
211208 else [BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), true), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), "inDelivery")]
212209 }
213210
214211
215212
216213 @Callable(i)
217-func setOrderIsDelivered (retailerIdentification,orderId,signature) = if ((this != i.caller))
214+func setOrderIsDelivered (retailerIdentification,orderId) = if ((this != i.caller))
218215 then throw("Caller is not the Contract owner")
219216 else {
220217 let order = getKeyOrder(retailerIdentification, orderId)
221218 let courierAddress = getValueCourierIdOfOrder(order, retailerIdentification)
222219 let orderData = getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress)
223220 let shipping = getValueShippingCostsOfOrder(order, retailerIdentification)
224221 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
225222 then throw("The requested order does not exist")
226223 else if ((courierAddress == NONE))
227224 then throw("There was no courier set! Something went wrong with the order.")
228225 else if ((getValueIsDeliveredOfOrder(order, retailerIdentification, courierAddress) != "inDelivery"))
229226 then throw("The requested order was already delivered")
230- else [DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsDelivered(order, retailerIdentification, "")), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), orderData), StringEntry(getKeyOrderSignature(order, retailerIdentification), signature), ScriptTransfer(addressFromStringValue(courierAddress), shipping, unit)]
227+ else [DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsDelivered(order, retailerIdentification, "")), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), orderData), ScriptTransfer(addressFromStringValue(courierAddress), shipping, unit)]
231228 }
232229
233230
234231
235232 @Callable(i)
236233 func cancelAcceptedOrderByCourier (retailerIdentification,orderId,courierAddress,city) = if ((this != i.caller))
237234 then throw("Caller is not the Contract owner")
238235 else {
239236 let order = getKeyOrder(retailerIdentification, orderId)
240237 let orderCityString = getOrderString(city, order)
241238 let orderData = getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress)
242239 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
243240 then throw("The requested order does not exist")
244241 else if ((orderData == NONE))
245242 then throw("The requested order does not exist or is not accepted yet")
246243 else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, courierAddress) == NONE))
247244 then throw("The requested order is not accepted yet")
248245 else [DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderTimeAccepted(order, retailerIdentification, courierAddress)), StringEntry(getKeyOrderDataOpen(orderCityString, retailerIdentification), orderData), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, ""), "open")]
249246 }
250247
251248
252249
253250 @Callable(i)
254251 func cancelOpenOrderByRetailer (retailerIdentification,orderId,city,retailerWalletAddress,shippingCosts) = if ((this != i.caller))
255252 then throw("Caller is not the Contract owner")
256253 else {
257254 let order = getKeyOrder(retailerIdentification, orderId)
258255 let orderCityString = getOrderString(city, order)
259256 let retailer = getKeyRetailer(retailerIdentification)
260257 let shipping = (shippingCosts * 100000000)
261258 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
262259 then throw("The requested order does not exist")
263260 else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, "") == "open"))
264261 then throw("The requested order is already accepted and can no longer be canceled in this way")
265262 else [DeleteEntry(getKeyOrderCity(order)), DeleteEntry(getKeyOrderRetailerIdentification(order)), DeleteEntry(getKeyOrderShippingCosts(order, retailerIdentification)), DeleteEntry(getKeyOrderDataOpen(orderCityString, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), ScriptTransfer(addressFromStringValue(retailerWalletAddress), shipping, unit)]
266263 }
267264
268265
269266
270267 @Callable(i)
271268 func deleteEntry (key) = if ((this != i.caller))
272269 then throw("Caller is not the Contract owner")
273270 else [DeleteEntry(key)]
274271
275272
276273 @Verifier(tx)
277274 func verify () = match tx {
278275 case _: SetScriptTransaction =>
279276 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
280277 case _: InvokeScriptTransaction =>
281278 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
282279 case ttx: TransferTransaction =>
283280 if (if (if ((ttx.amount == 300000000))
284281 then true
285282 else (ttx.amount == 400000000))
286283 then true
287284 else (ttx.amount == 500000000))
288285 then true
289286 else if ((ttx.amount == 600000000))
290287 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
291288 else false
292289 case _ =>
293290 false
294291 }
295292

github/deemru/w8io/026f985 
44.97 ms