tx · FwrtiRG5GrwcEs9koPKDQS4DkgqpKcWY4bvirqZJUkNz

3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL:  -0.05000000 Waves

2021.05.10 13:05 [1519449] smart account 3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL > SELF 0.00000000 Waves

{ "type": 13, "id": "FwrtiRG5GrwcEs9koPKDQS4DkgqpKcWY4bvirqZJUkNz", "fee": 5000000, "feeAssetId": null, "timestamp": 1620641206196, "version": 2, "chainId": 84, "sender": "3N8WKW33bRoL6j8jhERSykdsxLepdwF4roL", "senderPublicKey": "DfBpAEVbFfW1EMhjQ2DgbCDVQCY5L1nwL9NdWEmu4j3P", "proofs": [ "4S4cQDQmUQefMPfWMfcg4gWaqTQAKgUakrYqtSZG4NGKZFkY2zT8raoq89uTazYbCVwJFSGcwUkSQBHZRAcKgVbA" ], "script": "base64:AAIEAAAAAAAAAE8IAhIFCgMICAgSBAoCCAgSBAoCCAgSBAoCCAgSCAoGCAEICAgIEgYKBAgICAESBAoCCAgSBAoCCAgSBgoECAgICBIHCgUICAgIARIDCgEIAAAAHwAAAAAETk9ORQIAAAAETk9ORQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0Qm9vbGVhbkJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FAQAAAA9nZXRJbnRlZ2VyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAA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VsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADdHR4BQAAAAckbWF0Y2gwAwMDCQAAAAAAAAIIBQAAAAN0dHgAAAAGYW1vdW50AAAAAAAR4aMABgkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAF9eEAAYJAAAAAAAAAggFAAAAA3R0eAAAAAZhbW91bnQAAAAAAB3NZQAGAwkAAAAAAAACCAUAAAADdHR4AAAABmFtb3VudAAAAAAAI8NGAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHB2iclZ8=", "height": 1519449, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: QDipQwukBdKDYsuEeDmstNiS9Cd2u3MJg87PZr6Yqtr Next: 6BcMbjtATyTQwuvCayaCThgeZc1kNXerjsNeAgNZ9Dhw Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "NONE"
5-
6-let rebirthAssetId = base58'6Gjo6dZNLzun8w7uzWuH1t6hoGph9KrMcf1qjbEzBsVJ'
75
86 func getStringByKey (key) = match getString(this, key) {
97 case a: String =>
117115 func registerRetailer (retailerIdentification,retailerData,walletAddress) = if ((this != i.caller))
118116 then throw("Caller is not the Contract owner")
119117 else {
120- let retailer = getKeyRetailer(retailerIdentification)
121-[BooleanEntry(getKeyRetailerFreeTokens(walletAddress), true), StringEntry(getKeyRetailerData(retailer), retailerData)]
118+ let retailerKey = getKeyRetailer(retailerIdentification)
119+[BooleanEntry(getKeyRetailerFreeTokens(walletAddress), true), StringEntry(getKeyRetailerData(retailerKey), retailerData)]
122120 }
123121
124122
127125 func updateRetailer (retailerIdentification,retailerData) = if ((this != i.caller))
128126 then throw("Caller is not the Contract owner")
129127 else {
130- let retailer = getKeyRetailer(retailerIdentification)
128+ let retailerKey = getKeyRetailer(retailerIdentification)
131129 let oldRetailerData = getValueDataOfRetailer(retailerIdentification)
132130 if ((oldRetailerData == NONE))
133131 then throw("Courier does not exist on the Blockchain")
134- else [StringEntry(getKeyCourierData(retailer), retailerData)]
132+ else [StringEntry(getKeyCourierData(retailerKey), retailerData)]
135133 }
136134
137135
140138 func registerCourier (courierIdentification,courierData) = if ((this != i.caller))
141139 then throw("Caller is not the Contract owner")
142140 else {
143- let courier = getKeyCourier(courierIdentification)
144-[StringEntry(getKeyCourierData(courier), courierData)]
141+ let courierKey = getKeyCourier(courierIdentification)
142+[StringEntry(getKeyCourierData(courierKey), courierData)]
145143 }
146144
147145
150148 func updateCourier (courierIdentification,courierData) = if ((this != i.caller))
151149 then throw("Caller is not the Contract owner")
152150 else {
153- let courier = getKeyCourier(courierIdentification)
151+ let courierKey = getKeyCourier(courierIdentification)
154152 let oldCourierData = getValueDataOfCourier(courierIdentification)
155153 if ((oldCourierData == NONE))
156154 then throw("Courier does not exist on the Blockchain")
157- else [StringEntry(getKeyCourierData(courier), courierData)]
155+ else [StringEntry(getKeyCourierData(courierKey), courierData)]
158156 }
159157
160158
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "NONE"
5-
6-let rebirthAssetId = base58'6Gjo6dZNLzun8w7uzWuH1t6hoGph9KrMcf1qjbEzBsVJ'
75
86 func getStringByKey (key) = match getString(this, key) {
97 case a: String =>
108 a
119 case _ =>
1210 NONE
1311 }
1412
1513
1614 func getBooleanByKey (key) = match getBoolean(this, key) {
1715 case a: Boolean =>
1816 a
1917 case _ =>
2018 NONE
2119 }
2220
2321
2422 func getIntegerByKey (key) = match getInteger(this, key) {
2523 case a: Int =>
2624 a
2725 case _ =>
2826 -1
2927 }
3028
3129
3230 func getOrderString (city,keyOrderString) = ((city + "_") + keyOrderString)
3331
3432
3533 func getKeyOrder (retailerIdentification,orderId) = {
3634 let retailerIdentificationAndOrderId = (retailerIdentification + orderId)
3735 ("order_" + toBase58String(sha256(toBytes(retailerIdentificationAndOrderId))))
3836 }
3937
4038
4139 func getKeyRetailer (retailerIdentification) = ("retailer_" + toBase58String(sha256(toBytes(retailerIdentification))))
4240
4341
4442 func getKeyCourier (courierIdentification) = ("courier_" + toBase58String(sha256(toBytes(courierIdentification))))
4543
4644
4745 func getKeyOrderCity (order) = (order + "_city")
4846
4947
5048 func getKeyOrderRetailerIdentification (order) = (order + "_retailer")
5149
5250
5351 func getKeyOrderShippingCosts (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_shipping")
5452
5553
5654 func getKeyOrderCourier (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_courierId")
5755
5856
5957 func getKeyOrderIsAccepted (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress)
6058
6159
6260 func getKeyOrderIsInDelivery (order,retailerIdentification,courierAddress) = (((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress) + "_isInDelivery")
6361
6462
6563 func getKeyOrderTimeAccepted (order,retailerIdentification,courierAddress) = (((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress) + "_acceptedAt")
6664
6765
6866 func getKeyOrderDataOpen (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_data_open")
6967
7068
7169 func getKeyOrderIsDelivered (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_isDelivered_") + courierAddress)
7270
7371
7472 func getKeyRetailerData (retailer) = (retailer + "_data")
7573
7674
7775 func getKeyCourierData (courier) = (courier + "_data")
7876
7977
8078 func getKeyRetailerFreeTokens (walletAddress) = (walletAddress + "_tokens")
8179
8280
8381 func getValueOrderCity (order) = getStringByKey(getKeyOrderCity(order))
8482
8583
8684 func getValueRetailerFreeTokens (retailer) = getBooleanByKey(getKeyRetailerFreeTokens(retailer))
8785
8886
8987 func getValueRetailerIdentificationOfOrder (order) = getStringByKey(getKeyOrderRetailerIdentification(order))
9088
9189
9290 func getValueIsAcceptedOfOrder (order,retailerIdentification,courierAddress) = getStringByKey(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress))
9391
9492
9593 func getValueCourierIdOfOrder (order,retailerIdentification) = getStringByKey(getKeyOrderCourier(order, retailerIdentification))
9694
9795
9896 func getValueIsInDeliveryOfOrder (order,retailerIdentification,courierAddress) = getBooleanByKey(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress))
9997
10098
10199 func getValueIsDeliveredOfOrder (order,retailerIdentification,courierAddress) = getStringByKey(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress))
102100
103101
104102 func getValueShippingCostsOfOrder (order,retailerIdentification) = getIntegerByKey(getKeyOrderShippingCosts(order, retailerIdentification))
105103
106104
107105 func getValueDataOfOrderOpen (order,retailerIdentification) = getStringByKey(getKeyOrderDataOpen(order, retailerIdentification))
108106
109107
110108 func getValueDataOfRetailer (retailer) = getStringByKey(getKeyRetailerData(retailer))
111109
112110
113111 func getValueDataOfCourier (courier) = getStringByKey(getKeyCourierData(courier))
114112
115113
116114 @Callable(i)
117115 func registerRetailer (retailerIdentification,retailerData,walletAddress) = if ((this != i.caller))
118116 then throw("Caller is not the Contract owner")
119117 else {
120- let retailer = getKeyRetailer(retailerIdentification)
121-[BooleanEntry(getKeyRetailerFreeTokens(walletAddress), true), StringEntry(getKeyRetailerData(retailer), retailerData)]
118+ let retailerKey = getKeyRetailer(retailerIdentification)
119+[BooleanEntry(getKeyRetailerFreeTokens(walletAddress), true), StringEntry(getKeyRetailerData(retailerKey), retailerData)]
122120 }
123121
124122
125123
126124 @Callable(i)
127125 func updateRetailer (retailerIdentification,retailerData) = if ((this != i.caller))
128126 then throw("Caller is not the Contract owner")
129127 else {
130- let retailer = getKeyRetailer(retailerIdentification)
128+ let retailerKey = getKeyRetailer(retailerIdentification)
131129 let oldRetailerData = getValueDataOfRetailer(retailerIdentification)
132130 if ((oldRetailerData == NONE))
133131 then throw("Courier does not exist on the Blockchain")
134- else [StringEntry(getKeyCourierData(retailer), retailerData)]
132+ else [StringEntry(getKeyCourierData(retailerKey), retailerData)]
135133 }
136134
137135
138136
139137 @Callable(i)
140138 func registerCourier (courierIdentification,courierData) = if ((this != i.caller))
141139 then throw("Caller is not the Contract owner")
142140 else {
143- let courier = getKeyCourier(courierIdentification)
144-[StringEntry(getKeyCourierData(courier), courierData)]
141+ let courierKey = getKeyCourier(courierIdentification)
142+[StringEntry(getKeyCourierData(courierKey), courierData)]
145143 }
146144
147145
148146
149147 @Callable(i)
150148 func updateCourier (courierIdentification,courierData) = if ((this != i.caller))
151149 then throw("Caller is not the Contract owner")
152150 else {
153- let courier = getKeyCourier(courierIdentification)
151+ let courierKey = getKeyCourier(courierIdentification)
154152 let oldCourierData = getValueDataOfCourier(courierIdentification)
155153 if ((oldCourierData == NONE))
156154 then throw("Courier does not exist on the Blockchain")
157- else [StringEntry(getKeyCourierData(courier), courierData)]
155+ else [StringEntry(getKeyCourierData(courierKey), courierData)]
158156 }
159157
160158
161159
162160 @Callable(i)
163161 func addOrder (orderId,shippingCosts,orderData,retailerIdentification,retailerData,city) = if ((this != i.caller))
164162 then throw("Caller is not the Contract owner")
165163 else {
166164 let order = getKeyOrder(retailerIdentification, orderId)
167165 let orderCityString = getOrderString(city, order)
168166 let retailer = getKeyRetailer(retailerIdentification)
169167 let shipping = (shippingCosts * 100000000)
170168 if ((0 >= shippingCosts))
171169 then throw("You cannot create an order with shipping costs lower than 0")
172170 else if ((getValueRetailerIdentificationOfOrder(order) != NONE))
173171 then throw("An order with the same id already exists")
174172 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")]
175173 }
176174
177175
178176
179177 @Callable(i)
180178 func setOrderIsAccepted (retailerIdentification,orderId,courierAddress,timeAccepted) = if ((this != i.caller))
181179 then throw("Caller is not the Contract owner")
182180 else {
183181 let order = getKeyOrder(retailerIdentification, orderId)
184182 let city = getValueOrderCity(order)
185183 let orderCityString = getOrderString(city, order)
186184 let orderData = getValueDataOfOrderOpen(orderCityString, retailerIdentification)
187185 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
188186 then throw("The requested order does not exist")
189187 else if ((getValueIsAcceptedOfOrder(order, retailerIdentification, "") != "open"))
190188 then throw("The requested order is no longer available")
191189 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)]
192190 }
193191
194192
195193
196194 @Callable(i)
197195 func setOrderIsInDelivery (retailerIdentification,orderId) = if ((this != i.caller))
198196 then throw("Caller is not the Contract owner")
199197 else {
200198 let order = getKeyOrder(retailerIdentification, orderId)
201199 let courierAddress = getValueCourierIdOfOrder(order, retailerIdentification)
202200 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
203201 then throw("The requested order does not exist")
204202 else if ((courierAddress == NONE))
205203 then throw("The requested order is not accepted yet")
206204 else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, courierAddress) != false))
207205 then throw("The requested order is no longer available")
208206 else [BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), true), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), "inDelivery")]
209207 }
210208
211209
212210
213211 @Callable(i)
214212 func setOrderIsDelivered (retailerIdentification,orderId) = if ((this != i.caller))
215213 then throw("Caller is not the Contract owner")
216214 else {
217215 let order = getKeyOrder(retailerIdentification, orderId)
218216 let courierAddress = getValueCourierIdOfOrder(order, retailerIdentification)
219217 let orderData = getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress)
220218 let shipping = getValueShippingCostsOfOrder(order, retailerIdentification)
221219 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
222220 then throw("The requested order does not exist")
223221 else if ((courierAddress == NONE))
224222 then throw("There was no courier set! Something went wrong with the order.")
225223 else if ((getValueIsDeliveredOfOrder(order, retailerIdentification, courierAddress) != "inDelivery"))
226224 then throw("The requested order was already delivered")
227225 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)]
228226 }
229227
230228
231229
232230 @Callable(i)
233231 func cancelAcceptedOrderByCourier (retailerIdentification,orderId,courierAddress,city) = if ((this != i.caller))
234232 then throw("Caller is not the Contract owner")
235233 else {
236234 let order = getKeyOrder(retailerIdentification, orderId)
237235 let orderCityString = getOrderString(city, order)
238236 let orderData = getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress)
239237 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
240238 then throw("The requested order does not exist")
241239 else if ((orderData == NONE))
242240 then throw("The requested order does not exist or is not accepted yet")
243241 else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, courierAddress) == NONE))
244242 then throw("The requested order is not accepted yet")
245243 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")]
246244 }
247245
248246
249247
250248 @Callable(i)
251249 func cancelOpenOrderByRetailer (retailerIdentification,orderId,city,retailerWalletAddress,shippingCosts) = if ((this != i.caller))
252250 then throw("Caller is not the Contract owner")
253251 else {
254252 let order = getKeyOrder(retailerIdentification, orderId)
255253 let orderCityString = getOrderString(city, order)
256254 let retailer = getKeyRetailer(retailerIdentification)
257255 let shipping = (shippingCosts * 100000000)
258256 if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification))
259257 then throw("The requested order does not exist")
260258 else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, "") == "open"))
261259 then throw("The requested order is already accepted and can no longer be canceled in this way")
262260 else [DeleteEntry(getKeyOrderCity(order)), DeleteEntry(getKeyOrderRetailerIdentification(order)), DeleteEntry(getKeyOrderShippingCosts(order, retailerIdentification)), DeleteEntry(getKeyOrderDataOpen(orderCityString, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), ScriptTransfer(addressFromStringValue(retailerWalletAddress), shipping, unit)]
263261 }
264262
265263
266264
267265 @Callable(i)
268266 func deleteEntry (key) = if ((this != i.caller))
269267 then throw("Caller is not the Contract owner")
270268 else [DeleteEntry(key)]
271269
272270
273271 @Verifier(tx)
274272 func verify () = match tx {
275273 case _: SetScriptTransaction =>
276274 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
277275 case _: InvokeScriptTransaction =>
278276 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
279277 case ttx: TransferTransaction =>
280278 if (if (if ((ttx.amount == 300000000))
281279 then true
282280 else (ttx.amount == 400000000))
283281 then true
284282 else (ttx.amount == 500000000))
285283 then true
286284 else if ((ttx.amount == 600000000))
287285 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
288286 else false
289287 case _ =>
290288 false
291289 }
292290

github/deemru/w8io/026f985 
42.35 ms