tx · 2Yq2YgnJ4QsSUfTJttitfgS2RibVnCXrm3ktU4fzdFnz 3N61Xs9cTetvoP1uZSrtuRxxJ4A4RCR7a4G: -0.05000000 Waves 2020.11.30 20:18 [1288446] smart account 3N61Xs9cTetvoP1uZSrtuRxxJ4A4RCR7a4G > SELF 0.00000000 Waves
{ "type": 13, "id": "2Yq2YgnJ4QsSUfTJttitfgS2RibVnCXrm3ktU4fzdFnz", "fee": 5000000, "feeAssetId": null, "timestamp": 1606756704745, "version": 2, "chainId": 84, "sender": "3N61Xs9cTetvoP1uZSrtuRxxJ4A4RCR7a4G", "senderPublicKey": "DjYkFAzpGaY6gNruMz81SkVbRsemgpfr6KJbXXgyH3UM", "proofs": [ "5tSin8NFTgx7QA5yMQ1C7jZRtxJBmYquj9uxLW8vbHU5pRiB2oS3YM1StSBbuu6rPrNA4eaRr36ybgHs6v18Vs5F" ], "script": "base64:AAIEAAAAAAAAAC8IAhIECgIICBIECgIICBIHCgUIAQgICBIFCgMICAgSBAoCCAgSBAoCCAgSAwoBCAAAABgAAAAABE5PTkUCAAAABE5PTkUBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQ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hzaGlwcGluZwUAAAAEdW5pdAUAAAADbmlsAAAAAWkBAAAAC2RlbGV0ZUVudHJ5AAAAAQAAAANrZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleWaP8BY=", "height": 1288446, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2gFT2F1bizqbB52qBQohof257JkWhKPuJ8mba6u2yBqc Next: Gz5niGJLwNXNJbb7PWDCcMvxJFd2vQhCzrECewqw9EFg Diff:
Old | New | Differences | |
---|---|---|---|
128 | 128 | then throw("The requested order does not exist") | |
129 | 129 | else if ((getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress) != NONE)) | |
130 | 130 | then throw("The requested order is no longer available") | |
131 | - | else [DeleteEntry(getKeyOrderDataOpen(order, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress), orderData), BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), false), StringEntry(getKeyOrderCourier(order, retailerIdentification), courierAddress)] | |
131 | + | else [DeleteEntry(getKeyOrderDataOpen(order, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, "")), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress), orderData), BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), false), StringEntry(getKeyOrderCourier(order, retailerIdentification), courierAddress)] | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NONE = "NONE" | |
5 | 5 | ||
6 | 6 | func getStringByKey (key) = match getString(this, key) { | |
7 | 7 | case a: String => | |
8 | 8 | a | |
9 | 9 | case _ => | |
10 | 10 | NONE | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func getBooleanByKey (key) = match getBoolean(this, key) { | |
15 | 15 | case a: Boolean => | |
16 | 16 | a | |
17 | 17 | case _ => | |
18 | 18 | NONE | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func getIntegerByKey (key) = match getInteger(this, key) { | |
23 | 23 | case a: Int => | |
24 | 24 | a | |
25 | 25 | case _ => | |
26 | 26 | -1 | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func getKeyOrder (retailerIdentification,orderId) = { | |
31 | 31 | let retailerIdentificationAndOrderId = (retailerIdentification + orderId) | |
32 | 32 | ("order_" + toBase58String(sha256(toBytes(retailerIdentificationAndOrderId)))) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getKeyRetailer (retailerIdentification) = ("retailer_" + toBase58String(sha256(toBytes(retailerIdentification)))) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getKeyCourier (courierIdentification) = ("courier_" + toBase58String(sha256(toBytes(courierIdentification)))) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getKeyOrderRetailerIdentification (order) = (order + "_retailer") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getKeyOrderShippingCosts (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_shipping") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getKeyOrderCourier (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_courierId") | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getKeyOrderIsAccepted (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getKeyOrderIsInDelivery (order,retailerIdentification,courierAddress) = (((((retailerIdentification + "_") + order) + "_data_courier_") + courierAddress) + "_isInDelivery") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getKeyOrderDataOpen (order,retailerIdentification) = (((retailerIdentification + "_") + order) + "_data_open") | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getKeyOrderIsDelivered (order,retailerIdentification,courierAddress) = ((((retailerIdentification + "_") + order) + "_isDelivered_") + courierAddress) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getKeyRetailerData (retailer) = (retailer + "_data") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func getKeyCourierData (courier) = (courier + "_data") | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func getValueRetailerIdentificationOfOrder (order) = getStringByKey(getKeyOrderRetailerIdentification(order)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func getValueIsAcceptedOfOrder (order,retailerIdentification,courierAddress) = getStringByKey(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getValueCourierIdOfOrder (order,retailerIdentification) = getStringByKey(getKeyOrderCourier(order, retailerIdentification)) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func getValueIsInDeliveryOfOrder (order,retailerIdentification,courierAddress) = getBooleanByKey(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress)) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func getValueIsDeliveredOfOrder (order,retailerIdentification,courierAddress) = getStringByKey(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func getValueShippingCostsOfOrder (order,retailerIdentification) = getIntegerByKey(getKeyOrderShippingCosts(order, retailerIdentification)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func getValueDataOfOrderOpen (order,retailerIdentification) = getStringByKey(getKeyOrderDataOpen(order, retailerIdentification)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getValueDataOfRetailer (retailer) = getStringByKey(getKeyRetailerData(retailer)) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(i) | |
94 | 94 | func registerRetailer (retailerIdentification,retailerData) = { | |
95 | 95 | let retailer = getKeyRetailer(retailerIdentification) | |
96 | 96 | [StringEntry(getKeyRetailerData(retailer), retailerData)] | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Callable(i) | |
102 | 102 | func registerCourier (courierIdentification,courierData) = { | |
103 | 103 | let courier = getKeyCourier(courierIdentification) | |
104 | 104 | [StringEntry(getKeyCourierData(courier), courierData)] | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | ||
109 | 109 | @Callable(i) | |
110 | 110 | func addOrder (orderId,shippingCosts,orderData,retailerIdentification,retailerData) = { | |
111 | 111 | let order = getKeyOrder(retailerIdentification, orderId) | |
112 | 112 | let retailer = getKeyRetailer(retailerIdentification) | |
113 | 113 | let shipping = (shippingCosts * 100000000) | |
114 | 114 | if ((0 >= shippingCosts)) | |
115 | 115 | then throw("You cannot create an order with shipping costs lower than 0") | |
116 | 116 | else if ((getValueRetailerIdentificationOfOrder(order) != NONE)) | |
117 | 117 | then throw("An order with the same id already exists") | |
118 | 118 | else [StringEntry(getKeyRetailerData(retailer), retailerData), StringEntry(getKeyOrderRetailerIdentification(order), retailerIdentification), IntegerEntry(getKeyOrderShippingCosts(order, retailerIdentification), shipping), StringEntry(getKeyOrderDataOpen(order, retailerIdentification), orderData), StringEntry(getKeyOrderCourier(order, retailerIdentification), NONE), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, ""), NONE), StringEntry(getKeyOrderIsInDelivery(order, retailerIdentification, ""), NONE), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, ""), NONE)] | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | ||
123 | 123 | @Callable(i) | |
124 | 124 | func setOrderIsAccepted (retailerIdentification,orderId,courierAddress) = { | |
125 | 125 | let order = getKeyOrder(retailerIdentification, orderId) | |
126 | 126 | let orderData = getValueDataOfOrderOpen(order, retailerIdentification) | |
127 | 127 | if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification)) | |
128 | 128 | then throw("The requested order does not exist") | |
129 | 129 | else if ((getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress) != NONE)) | |
130 | 130 | then throw("The requested order is no longer available") | |
131 | - | else [DeleteEntry(getKeyOrderDataOpen(order, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress), orderData), BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), false), StringEntry(getKeyOrderCourier(order, retailerIdentification), courierAddress)] | |
131 | + | else [DeleteEntry(getKeyOrderDataOpen(order, retailerIdentification)), DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, "")), DeleteEntry(getKeyOrderIsInDelivery(order, retailerIdentification, "")), StringEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress), orderData), BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), false), StringEntry(getKeyOrderCourier(order, retailerIdentification), courierAddress)] | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | ||
136 | 136 | @Callable(i) | |
137 | 137 | func setOrderIsInDelivery (retailerIdentification,orderId) = { | |
138 | 138 | let order = getKeyOrder(retailerIdentification, orderId) | |
139 | 139 | let courierAddress = getValueCourierIdOfOrder(order, retailerIdentification) | |
140 | 140 | if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification)) | |
141 | 141 | then throw("The requested order does not exist") | |
142 | 142 | else if ((getValueIsInDeliveryOfOrder(order, retailerIdentification, courierAddress) != false)) | |
143 | 143 | then throw("The requested order is no longer available") | |
144 | 144 | else [BooleanEntry(getKeyOrderIsInDelivery(order, retailerIdentification, courierAddress), true)] | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | ||
149 | 149 | @Callable(i) | |
150 | 150 | func setOrderIsDelivered (retailerIdentification,orderId) = { | |
151 | 151 | let order = getKeyOrder(retailerIdentification, orderId) | |
152 | 152 | let courierAddress = getValueCourierIdOfOrder(order, retailerIdentification) | |
153 | 153 | let orderData = getValueIsAcceptedOfOrder(order, retailerIdentification, courierAddress) | |
154 | 154 | let shipping = getValueShippingCostsOfOrder(order, retailerIdentification) | |
155 | 155 | if ((getValueRetailerIdentificationOfOrder(order) != retailerIdentification)) | |
156 | 156 | then throw("The requested order does not exist") | |
157 | 157 | else if ((courierAddress == NONE)) | |
158 | 158 | then throw("There was no courier set! Something went wrong with the order.") | |
159 | 159 | else if ((getValueIsDeliveredOfOrder(order, retailerIdentification, courierAddress) != NONE)) | |
160 | 160 | then throw("The requested order is no longer available") | |
161 | 161 | else [DeleteEntry(getKeyOrderIsAccepted(order, retailerIdentification, courierAddress)), DeleteEntry(getKeyOrderIsDelivered(order, retailerIdentification, "")), StringEntry(getKeyOrderIsDelivered(order, retailerIdentification, courierAddress), orderData), ScriptTransfer(addressFromStringValue(courierAddress), shipping, unit)] | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | ||
166 | 166 | @Callable(i) | |
167 | 167 | func deleteEntry (key) = [DeleteEntry(key)] | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Verifier(tx) | |
171 | 171 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
172 | 172 |
github/deemru/w8io/026f985 33.86 ms ◑