tx · G7yd65Z7CM17UtgBE7Cn4MeLqAiAzWXG9fTdPyH6Hic2 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k: -0.01400000 Waves 2020.08.18 20:46 [1138631] smart account 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k > SELF 0.00000000 Waves
{ "type": 13, "id": "G7yd65Z7CM17UtgBE7Cn4MeLqAiAzWXG9fTdPyH6Hic2", "fee": 1400000, "feeAssetId": null, "timestamp": 1597772896830, "version": 1, "sender": "3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k", "senderPublicKey": "7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y", "proofs": [ "4aMbADj6XhUPnagvS7mqubvFEX28m66A28GhcWE8GQodFovcdBRBYbHjJ156Cj647dkMbHUf29w97t7WaFd77jbZ" ], "script": "base64:AAIDAAAAAAAAACEIARIECgIICBIGCgQICAgBEgkKBwgICAgBCAgSBAoCCAEAAAArAAAAAAd4Qml0Q08yAQAAACAgBGSmqgN7DW+mqvqXJVizlol6Uwz/77rGaIdsg1TcjQAAAAAHYkJpdENPMgEAAAAgJLm895AWDUgjXTQGcnf0M2daVOHTTVkxMY+I6LgJ4NEAAAAACHN0YXJ0UXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBc10kgzntLYC3wdTXyP6D5J32rgBzym30loQrY6e/2HwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB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AWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAAAl3aXRoV2F2ZXMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAl3aXRoV2F2ZXMHKHqUtQ==", "chainId": 84, "height": 1138631, "spentComplexity": 0 } View: original | compacted Prev: 7mEprpR8Z7yw2UFe42qo1Ar1AEY6RRGgL1ZVsRMU8uqW Next: FrzfEmvF6NsmnQgL6XhG7ek18aansEEi78GSPrKRVWht Diff:
Old | New | Differences | |
---|---|---|---|
159 | 159 | ||
160 | 160 | ||
161 | 161 | @Callable(Z) | |
162 | - | func | |
162 | + | func purchaseGTS2 (D,af,ag,ah) = { | |
163 | 163 | let ac = extract(Z.payment) | |
164 | 164 | if (isDefined(ac.assetId)) | |
165 | 165 | then throw("you can adquire Products only by Waves tokens") | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(Z) | |
214 | - | func | |
214 | + | func purchaseGTS (D,at,af,ag,ah,m,l) = { | |
215 | 215 | let ac = extract(Z.payment) | |
216 | 216 | if (isDefined(ac.assetId)) | |
217 | - | then throw("El Precio | |
217 | + | then throw("El Precio en waves.") | |
218 | 218 | else { | |
219 | 219 | let B = { | |
220 | 220 | let w = getString(this, A(D)) | |
256 | 256 | then throw("Payment Amount can't be less than item Purchase Order") | |
257 | 257 | else if ((ac.amount > ah)) | |
258 | 258 | then throw("Payment Amount can't be higher than item Purchase Order") | |
259 | - | else ScriptResult(WriteSet([DataEntry(E(ak, D), (G(ak, D) + 1)), DataEntry(C(B, D), D), DataEntry(H(D), at), DataEntry(J(D), af), DataEntry(L(D), ag), DataEntry("Payment_amount,_wvs", ah), DataEntry("Imp, %", n), DataEntry("STtl, wvs", al), DataEntry("CP 1 B, wvs", (o * 1000000)), DataEntry(T(D), am), DataEntry("UBI", an), DataEntry(V(D), ao), DataEntry("EcSys", aq), DataEntry(X(D), ar), DataEntry("SBI: b", as), DataEntry(("Order_Status:_" + ak), "Adquisición Confirmada!"), DataEntry(R(B), (aj + ac.amount))]), TransferSet([ScriptTransfer( | |
259 | + | else ScriptResult(WriteSet([DataEntry(E(ak, D), (G(ak, D) + 1)), DataEntry(C(B, D), D), DataEntry(H(D), at), DataEntry(J(D), af), DataEntry(L(D), ag), DataEntry("Payment_amount,_wvs", ah), DataEntry("Imp, %", n), DataEntry("STtl, wvs", al), DataEntry("CP 1 B, wvs", (o * 1000000)), DataEntry(T(D), am), DataEntry("UBI", an), DataEntry(V(D), ao), DataEntry("EcSys", aq), DataEntry(X(D), ar), DataEntry("SBI: b", as), DataEntry(("Order_Status:_" + ak), "Adquisición Confirmada!"), DataEntry(R(B), (aj + ac.amount))]), TransferSet([ScriptTransfer(k, ar, unit), ScriptTransfer(k, as, a)])) | |
260 | 260 | } | |
261 | 261 | } | |
262 | 262 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN' | |
5 | 5 | ||
6 | 6 | let b = base58'3UMwob2PDKVYmDMZZdT9ijK7EdRJZKFoBLCAXnwKtNN4' | |
7 | 7 | ||
8 | 8 | let c = 305693 | |
9 | 9 | ||
10 | 10 | let d = 31193 | |
11 | 11 | ||
12 | 12 | let e = 274500 | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | 16 | let g = 100000000 | |
17 | 17 | ||
18 | 18 | let h = 12 | |
19 | 19 | ||
20 | 20 | let i = "none" | |
21 | 21 | ||
22 | 22 | let j = base58'7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y' | |
23 | 23 | ||
24 | 24 | let k = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
25 | 25 | ||
26 | 26 | let l = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
27 | 27 | ||
28 | 28 | let m = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
29 | 29 | ||
30 | 30 | let n = 18 | |
31 | 31 | ||
32 | 32 | let o = 88 | |
33 | 33 | ||
34 | 34 | let p = 7 | |
35 | 35 | ||
36 | 36 | let q = 10 | |
37 | 37 | ||
38 | 38 | let r = 1 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | func t (u) = { | |
43 | 43 | let v = { | |
44 | 44 | let w = getInteger(this, u) | |
45 | 45 | if ($isInstanceOf(w, "Int")) | |
46 | 46 | then { | |
47 | 47 | let x = w | |
48 | 48 | x | |
49 | 49 | } | |
50 | 50 | else 0 | |
51 | 51 | } | |
52 | 52 | v | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func y (u) = { | |
57 | 57 | let z = { | |
58 | 58 | let w = getString(this, u) | |
59 | 59 | if ($isInstanceOf(w, "String")) | |
60 | 60 | then { | |
61 | 61 | let x = w | |
62 | 62 | x | |
63 | 63 | } | |
64 | 64 | else i | |
65 | 65 | } | |
66 | 66 | z | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func A (B) = (B + "Bit-CO2 Shop, Lima-Perú") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (B,D) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((B + D))))) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func E (F,D) = "Order_№:" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func G (F,D) = t(E(F, D)) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func H (D) = "Categoría del Producto:" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func I (D) = y(H(D)) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func J (D) = "Nombre del Usuario:" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func K (D) = y(J(D)) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func L (D) = "№ de Documento / DNI del Usuario:" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func M (D) = y(L(D)) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func N (D) = "Tokens Ofertados en la presente etapa / Saldo:" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func O (D) = t(N(D)) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func P (D) = "Balance/Saldo GTS, tokens:" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func Q (D) = t(P(D)) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func R (B) = "Ingresos por VentaGTS:" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func S (B) = t(R(B)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func T (D) = "UI,_wvs:" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func U (D) = t(T(D)) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func V (D) = "PI,_%:" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func W (D) = t(V(D)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func X (D) = "SI,_%:" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func Y (D) = t(X(D)) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | @Callable(Z) | |
137 | 137 | func deposit (aa,ab) = { | |
138 | 138 | let ac = extract(Z.payment) | |
139 | 139 | if ((ac.assetId != a)) | |
140 | 140 | then throw("deposito permitido solo en xBitCO2 tokens") | |
141 | 141 | else { | |
142 | 142 | let B = toBase58String(Z.caller.bytes) | |
143 | 143 | let ad = { | |
144 | 144 | let w = getInteger(this, B) | |
145 | 145 | if ($isInstanceOf(w, "Int")) | |
146 | 146 | then { | |
147 | 147 | let x = w | |
148 | 148 | x | |
149 | 149 | } | |
150 | 150 | else c | |
151 | 151 | } | |
152 | 152 | let ae = (ad + ac.amount) | |
153 | 153 | if ((0 >= ae)) | |
154 | 154 | then throw("No hay xBitCO2 en su balance") | |
155 | 155 | else WriteSet([DataEntry(B, ae)]) | |
156 | 156 | } | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | ||
161 | 161 | @Callable(Z) | |
162 | - | func | |
162 | + | func purchaseGTS2 (D,af,ag,ah) = { | |
163 | 163 | let ac = extract(Z.payment) | |
164 | 164 | if (isDefined(ac.assetId)) | |
165 | 165 | then throw("you can adquire Products only by Waves tokens") | |
166 | 166 | else { | |
167 | 167 | let B = { | |
168 | 168 | let w = getString(this, A(D)) | |
169 | 169 | if ($isInstanceOf(w, "String")) | |
170 | 170 | then { | |
171 | 171 | let x = w | |
172 | 172 | x | |
173 | 173 | } | |
174 | 174 | else i | |
175 | 175 | } | |
176 | 176 | let ai = { | |
177 | 177 | let w = getInteger(this, P(D)) | |
178 | 178 | if ($isInstanceOf(w, "Int")) | |
179 | 179 | then { | |
180 | 180 | let x = w | |
181 | 181 | x | |
182 | 182 | } | |
183 | 183 | else c | |
184 | 184 | } | |
185 | 185 | let aj = { | |
186 | 186 | let w = getInteger(this, R(B)) | |
187 | 187 | if ($isInstanceOf(w, "Int")) | |
188 | 188 | then { | |
189 | 189 | let x = w | |
190 | 190 | x | |
191 | 191 | } | |
192 | 192 | else 0 | |
193 | 193 | } | |
194 | 194 | let ak = toBase58String(Z.caller.bytes) | |
195 | 195 | let al = (ah - ((n * ah) / 100)) | |
196 | 196 | let am = ((al * p) / 100) | |
197 | 197 | let an = (am / o) | |
198 | 198 | let ao = ((al * q) / 100) | |
199 | 199 | let ap = ((al * s) / 100) | |
200 | 200 | let aq = ((al * s) / (o * 100)) | |
201 | 201 | let ar = ((ah - ao) - ap) | |
202 | 202 | let as = ((al * r) / (o * 100)) | |
203 | 203 | if ((ah > ac.amount)) | |
204 | 204 | then throw("Payment Amount can't be less than item Purchase Order") | |
205 | 205 | else if ((ac.amount > ah)) | |
206 | 206 | then throw("Payment Amount can't be higher than item Purchase Order") | |
207 | 207 | else ScriptResult(WriteSet([DataEntry(E(ak, D), (G(ak, D) + 1)), DataEntry(J(D), af), DataEntry(L(D), ag), DataEntry("Payment_amount,_wvs", ah), DataEntry("Imp, %", n), DataEntry("STtl, wvs", al), DataEntry("CP 1 B, wvs", (o * 1000000)), DataEntry(T(D), am), DataEntry("UBI", an), DataEntry(V(D), ao), DataEntry("EcSys", aq), DataEntry(("Order_Status:_" + ak), "confirmed"), DataEntry(X(D), ar), DataEntry("SBI: b", as), DataEntry(R(B), (aj + ac.amount))]), TransferSet([ScriptTransfer(Z.caller, an, b), ScriptTransfer(m, ao, unit), ScriptTransfer(k, ar, unit), ScriptTransfer(k, as, b), ScriptTransfer(l, ap, unit), ScriptTransfer(l, aq, b)])) | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(Z) | |
214 | - | func | |
214 | + | func purchaseGTS (D,at,af,ag,ah,m,l) = { | |
215 | 215 | let ac = extract(Z.payment) | |
216 | 216 | if (isDefined(ac.assetId)) | |
217 | - | then throw("El Precio | |
217 | + | then throw("El Precio en waves.") | |
218 | 218 | else { | |
219 | 219 | let B = { | |
220 | 220 | let w = getString(this, A(D)) | |
221 | 221 | if ($isInstanceOf(w, "String")) | |
222 | 222 | then { | |
223 | 223 | let x = w | |
224 | 224 | x | |
225 | 225 | } | |
226 | 226 | else i | |
227 | 227 | } | |
228 | 228 | let ai = { | |
229 | 229 | let w = getInteger(this, P(D)) | |
230 | 230 | if ($isInstanceOf(w, "Int")) | |
231 | 231 | then { | |
232 | 232 | let x = w | |
233 | 233 | x | |
234 | 234 | } | |
235 | 235 | else e | |
236 | 236 | } | |
237 | 237 | let aj = { | |
238 | 238 | let w = getInteger(this, R(B)) | |
239 | 239 | if ($isInstanceOf(w, "Int")) | |
240 | 240 | then { | |
241 | 241 | let x = w | |
242 | 242 | x | |
243 | 243 | } | |
244 | 244 | else 0 | |
245 | 245 | } | |
246 | 246 | let ak = toBase58String(Z.caller.bytes) | |
247 | 247 | let al = (ah - ((n * ah) / 100)) | |
248 | 248 | let am = ((al * p) / 100) | |
249 | 249 | let an = (am / o) | |
250 | 250 | let ao = ((al * q) / 100) | |
251 | 251 | let ap = ((al * s) / 100) | |
252 | 252 | let aq = ((al * s) / (o * 100)) | |
253 | 253 | let ar = ((ah - ao) - ap) | |
254 | 254 | let as = ((al * r) / (o * 100)) | |
255 | 255 | if ((ah > ac.amount)) | |
256 | 256 | then throw("Payment Amount can't be less than item Purchase Order") | |
257 | 257 | else if ((ac.amount > ah)) | |
258 | 258 | then throw("Payment Amount can't be higher than item Purchase Order") | |
259 | - | else ScriptResult(WriteSet([DataEntry(E(ak, D), (G(ak, D) + 1)), DataEntry(C(B, D), D), DataEntry(H(D), at), DataEntry(J(D), af), DataEntry(L(D), ag), DataEntry("Payment_amount,_wvs", ah), DataEntry("Imp, %", n), DataEntry("STtl, wvs", al), DataEntry("CP 1 B, wvs", (o * 1000000)), DataEntry(T(D), am), DataEntry("UBI", an), DataEntry(V(D), ao), DataEntry("EcSys", aq), DataEntry(X(D), ar), DataEntry("SBI: b", as), DataEntry(("Order_Status:_" + ak), "Adquisición Confirmada!"), DataEntry(R(B), (aj + ac.amount))]), TransferSet([ScriptTransfer( | |
259 | + | else ScriptResult(WriteSet([DataEntry(E(ak, D), (G(ak, D) + 1)), DataEntry(C(B, D), D), DataEntry(H(D), at), DataEntry(J(D), af), DataEntry(L(D), ag), DataEntry("Payment_amount,_wvs", ah), DataEntry("Imp, %", n), DataEntry("STtl, wvs", al), DataEntry("CP 1 B, wvs", (o * 1000000)), DataEntry(T(D), am), DataEntry("UBI", an), DataEntry(V(D), ao), DataEntry("EcSys", aq), DataEntry(X(D), ar), DataEntry("SBI: b", as), DataEntry(("Order_Status:_" + ak), "Adquisición Confirmada!"), DataEntry(R(B), (aj + ac.amount))]), TransferSet([ScriptTransfer(k, ar, unit), ScriptTransfer(k, as, a)])) | |
260 | 260 | } | |
261 | 261 | } | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | ||
265 | 265 | @Callable(Z) | |
266 | 266 | func withdraw (D,au) = { | |
267 | 267 | let ak = toBase58String(Z.caller.bytes) | |
268 | 268 | let B = { | |
269 | 269 | let w = getString(this, A(D)) | |
270 | 270 | if ($isInstanceOf(w, "String")) | |
271 | 271 | then { | |
272 | 272 | let x = w | |
273 | 273 | x | |
274 | 274 | } | |
275 | 275 | else i | |
276 | 276 | } | |
277 | 277 | let ai = { | |
278 | 278 | let w = getInteger(this, P(D)) | |
279 | 279 | if ($isInstanceOf(w, "Int")) | |
280 | 280 | then { | |
281 | 281 | let x = w | |
282 | 282 | x | |
283 | 283 | } | |
284 | 284 | else c | |
285 | 285 | } | |
286 | 286 | let ae = (ai - au) | |
287 | 287 | if ((0 > au)) | |
288 | 288 | then throw("El balance de retiro no puede ser negativo!") | |
289 | 289 | else if ((0 >= ae)) | |
290 | 290 | then throw("Ooppss.. Insuficiente balance!") | |
291 | 291 | else ScriptResult(WriteSet([DataEntry(D, ae)]), TransferSet([ScriptTransfer(Z.caller, au, a)])) | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Verifier(av) | |
296 | 296 | func aw () = { | |
297 | 297 | let w = av | |
298 | 298 | if ($isInstanceOf(w, "SetScriptTransaction")) | |
299 | 299 | then { | |
300 | 300 | let ax = w | |
301 | 301 | sigVerify(av.bodyBytes, av.proofs[0], j) | |
302 | 302 | } | |
303 | 303 | else if (if ($isInstanceOf(w, "DataTransaction")) | |
304 | 304 | then true | |
305 | 305 | else $isInstanceOf(w, "ReissueTransaction")) | |
306 | 306 | then { | |
307 | 307 | let ay = w | |
308 | 308 | true | |
309 | 309 | } | |
310 | 310 | else if ($isInstanceOf(w, "TransferTransaction")) | |
311 | 311 | then { | |
312 | 312 | let av = w | |
313 | 313 | true | |
314 | 314 | } | |
315 | 315 | else if ($isInstanceOf(w, "ExchangeTransaction")) | |
316 | 316 | then { | |
317 | 317 | let av = w | |
318 | 318 | let az = if (!(isDefined(av.sellOrder.assetPair.priceAsset))) | |
319 | 319 | then true | |
320 | 320 | else !(isDefined(av.sellOrder.assetPair.amountAsset)) | |
321 | 321 | az | |
322 | 322 | } | |
323 | 323 | else false | |
324 | 324 | } | |
325 | 325 |
github/deemru/w8io/026f985 45.62 ms ◑