tx · 2TEGQk9ww5JK8DPiT5R4fUUEFNfu1NxfjhzWQsHW5HZ5 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8: -0.01000000 Waves 2021.10.20 12:47 [1754440] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves
{ "type": 13, "id": "2TEGQk9ww5JK8DPiT5R4fUUEFNfu1NxfjhzWQsHW5HZ5", "fee": 1000000, "feeAssetId": null, "timestamp": 1634723236981, "version": 2, "chainId": 84, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "4hePoqNCRAKQ5kgvXfQBavQvvthkNPLeqjowAdBpZvn9Q3eVJCTKkVdVJkE5oBoZ9DB6kQHPFgtDS5XwZw2d55Jd" ], "script": "base64:AAIDAAAAAAAAABcIARIECgIICBIHCgUICAgIARIECgIIAQAAAD0AAAAAB3lCaXRDTzIBAAAAIGmM1P/bTQF96Mt4t9+zj8FcPDlb6Qx5aA0hjmfpm0utAAAAAAhzdGFydFF0eQAAAAAAAASqHQAAAAAMRmlyc3RGYXNlUXR5AAAAAAAAAHnZAAAAAA1TZWNvbmRGYXNlUXR5AAAAAAAABDBEAAAAAAN3dnMAAAAAAAX14QAAAAAABE5PTkUCAAAABG5vbmUAAAAABEJDTzIJAQAAAAdBZGRyZXNzAAAAAQEAAAAgaYzU/9tNAX3oy3i337OPwVw8OVvpDHloDSGOZ+mbS60AAAAAC093bmVyUHViS2V5AQAAACB2JYFH9ti5N+7uGrdzKwlrXhDeZ+vMkHOKuVJteEgPDwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAA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leQMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGB8zc0+4=", "height": 1754440, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8iLpZYaGtn5A77QSpZCX1UMJxWSYGUV2XBo8qiUsTB91 Next: 9riBWej53S3SQmUymc8zTUS1QjATVxBK7JvdMLNrTyXY Diff:
Old | New | Differences | |
---|---|---|---|
246 | 246 | } | |
247 | 247 | let ai = toBase58String(g.bytes) | |
248 | 248 | let aF = { | |
249 | - | let y = getInteger(this, ai) | |
249 | + | let y = getInteger(this, ah(ai)) | |
250 | 250 | if ($isInstanceOf(y, "Int")) | |
251 | 251 | then { | |
252 | 252 | let z = y |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx' | |
5 | 5 | ||
6 | 6 | let b = 305693 | |
7 | 7 | ||
8 | 8 | let c = 31193 | |
9 | 9 | ||
10 | 10 | let d = 274500 | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = "none" | |
15 | 15 | ||
16 | 16 | let g = Address(base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx') | |
17 | 17 | ||
18 | 18 | let h = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U' | |
19 | 19 | ||
20 | 20 | let i = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
21 | 21 | ||
22 | 22 | let j = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
23 | 23 | ||
24 | 24 | let k = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
25 | 25 | ||
26 | 26 | let l = 116 | |
27 | 27 | ||
28 | 28 | let m = 2539 | |
29 | 29 | ||
30 | 30 | let n = 100000 | |
31 | 31 | ||
32 | 32 | let o = 3 | |
33 | 33 | ||
34 | 34 | let p = 10 | |
35 | 35 | ||
36 | 36 | let q = 7 | |
37 | 37 | ||
38 | 38 | let r = 2 | |
39 | 39 | ||
40 | 40 | let s = 1 | |
41 | 41 | ||
42 | 42 | let t = 2 | |
43 | 43 | ||
44 | 44 | let u = 11 | |
45 | 45 | ||
46 | 46 | func v (w) = { | |
47 | 47 | let x = { | |
48 | 48 | let y = getInteger(this, w) | |
49 | 49 | if ($isInstanceOf(y, "Int")) | |
50 | 50 | then { | |
51 | 51 | let z = y | |
52 | 52 | z | |
53 | 53 | } | |
54 | 54 | else 0 | |
55 | 55 | } | |
56 | 56 | x | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func A (w) = { | |
61 | 61 | let B = { | |
62 | 62 | let y = getString(this, w) | |
63 | 63 | if ($isInstanceOf(y, "String")) | |
64 | 64 | then { | |
65 | 65 | let z = y | |
66 | 66 | z | |
67 | 67 | } | |
68 | 68 | else f | |
69 | 69 | } | |
70 | 70 | B | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func C (D) = (D + "Vendedor, Lima-Perú") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func E (D,F) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((D + F))))) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func G (F) = "Issuer/Tienda" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func H (F) = A(G(F)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func I (F) = "Project" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func J (F) = A(I(F)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func K (F) = "Nodo" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func L (F) = A(K(F)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func M (N,F) = "Order_№:" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func O (N,F) = v(M(N, F)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func P (F) = "Categoría del Producto:" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func Q (F) = A(P(F)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func R (F) = "Nombre del Usuario:" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func S (F) = A(R(F)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func T (F) = "№ de Documento / DNI del Usuario:" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func U (F) = A(T(F)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func V (F) = "UI, x10e-04 bit:" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func W (F) = v(V(F)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func X (F) = "PI, wvls:" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func Y (F) = v(X(F)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func Z (F) = "SI, x10e-04 bit:" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func aa (F) = v(Z(F)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func ab (F) = "NIb, x10e-04 bit:" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ac (F) = v(ab(F)) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ad (F) = "NIw, wvls:" | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ae (F) = v(ad(F)) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func af (F) = "Tokens Ofertados en la presente etapa / Saldo, ytok:" | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ag (F) = v(af(F)) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ah (ai) = "Saldo ytokens pretokens, x10e-04:" | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func aj (ai) = v(ah(ai)) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ak (F) = "Saldo ytokens Supplier:" | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func al (F) = v(ak(F)) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func am (D) = "Saldo del Vendedor, wvls:" | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func an (D) = v(am(D)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func ao (D) = "Saldo del Issuer:" | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func ap (D) = v(ao(D)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func aq (ar) = "Saldo del Proyecto, wvs:" | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func as (ar) = v(aq(ar)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | @Callable(at) | |
189 | 189 | func deposit (au,av) = { | |
190 | 190 | let aw = extract(at.payment) | |
191 | 191 | if ((aw.assetId != a)) | |
192 | 192 | then throw("deposito permitido solo en yBitCO2 tokens") | |
193 | 193 | else { | |
194 | 194 | let D = toBase58String(at.caller.bytes) | |
195 | 195 | let ax = { | |
196 | 196 | let y = getInteger(this, D) | |
197 | 197 | if ($isInstanceOf(y, "Int")) | |
198 | 198 | then { | |
199 | 199 | let z = y | |
200 | 200 | z | |
201 | 201 | } | |
202 | 202 | else b | |
203 | 203 | } | |
204 | 204 | let ay = (ax + aw.amount) | |
205 | 205 | if ((0 >= ay)) | |
206 | 206 | then throw("No hay yBitCO2 en su balance") | |
207 | 207 | else WriteSet([DataEntry(D, ay)]) | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(at) | |
214 | 214 | func purchaseGTS (F,az,aA,aB,aC) = { | |
215 | 215 | let aw = extract(at.payment) | |
216 | 216 | if (isDefined(aw.assetId)) | |
217 | 217 | then throw("El Precio en waves.") | |
218 | 218 | else { | |
219 | 219 | let D = { | |
220 | 220 | let y = getString(this, C(F)) | |
221 | 221 | if ($isInstanceOf(y, "String")) | |
222 | 222 | then { | |
223 | 223 | let z = y | |
224 | 224 | z | |
225 | 225 | } | |
226 | 226 | else f | |
227 | 227 | } | |
228 | 228 | let aD = { | |
229 | 229 | let y = getString(this, G(F)) | |
230 | 230 | if ($isInstanceOf(y, "String")) | |
231 | 231 | then { | |
232 | 232 | let z = y | |
233 | 233 | z | |
234 | 234 | } | |
235 | 235 | else i | |
236 | 236 | } | |
237 | 237 | let ar = toBase58String(k.bytes) | |
238 | 238 | let aE = { | |
239 | 239 | let y = getInteger(this, ar) | |
240 | 240 | if ($isInstanceOf(y, "Int")) | |
241 | 241 | then { | |
242 | 242 | let z = y | |
243 | 243 | z | |
244 | 244 | } | |
245 | 245 | else 10 | |
246 | 246 | } | |
247 | 247 | let ai = toBase58String(g.bytes) | |
248 | 248 | let aF = { | |
249 | - | let y = getInteger(this, ai) | |
249 | + | let y = getInteger(this, ah(ai)) | |
250 | 250 | if ($isInstanceOf(y, "Int")) | |
251 | 251 | then { | |
252 | 252 | let z = y | |
253 | 253 | z | |
254 | 254 | } | |
255 | 255 | else c | |
256 | 256 | } | |
257 | 257 | let aG = { | |
258 | 258 | let y = getInteger(this, am(D)) | |
259 | 259 | if ($isInstanceOf(y, "Int")) | |
260 | 260 | then { | |
261 | 261 | let z = y | |
262 | 262 | z | |
263 | 263 | } | |
264 | 264 | else 0 | |
265 | 265 | } | |
266 | 266 | let aH = { | |
267 | 267 | let y = getInteger(this, ao(D)) | |
268 | 268 | if ($isInstanceOf(y, "Int")) | |
269 | 269 | then { | |
270 | 270 | let z = y | |
271 | 271 | z | |
272 | 272 | } | |
273 | 273 | else c | |
274 | 274 | } | |
275 | 275 | let aI = toBase58String(at.caller.bytes) | |
276 | 276 | let aJ = aC | |
277 | 277 | let aK = ((p * aJ) / u) | |
278 | 278 | let aL = ((s * aJ) / u) | |
279 | 279 | let aM = aL | |
280 | 280 | let aN = (aE + aK) | |
281 | 281 | let aO = (10000 * aF) | |
282 | 282 | let aP = (((100 - o) * (l * n)) / 10000) | |
283 | 283 | let aQ = (((aC * m) / 100) / aP) | |
284 | 284 | let aR = (aQ * 10000) | |
285 | 285 | let aS = ((q * aQ) / u) | |
286 | 286 | let aT = ((r * aQ) / u) | |
287 | 287 | let aU = ((t * aQ) / u) | |
288 | 288 | let aV = (aG + (aw.amount / e)) | |
289 | 289 | let aW = (aH - (aw.amount / e)) | |
290 | 290 | if ((aC > aw.amount)) | |
291 | 291 | then throw("Payment Amount can't be less than item Purchase Order") | |
292 | 292 | else if ((aw.amount > aC)) | |
293 | 293 | then throw("Payment Amount can't be higher than item Purchase Order") | |
294 | 294 | else ScriptResult(WriteSet([DataEntry(M(aI, F), (O(aI, F) + 1)), DataEntry(C(D), D), DataEntry(E(D, F), F), DataEntry(P(F), az), DataEntry(R(F), aA), DataEntry(T(F), aB), DataEntry(G(F), A(G(F))), DataEntry(I(F), A(I(F))), DataEntry(K(F), A(K(F))), DataEntry("Tienda", D), DataEntry("usdn", m), DataEntry("eurou", l), DataEntry("Apoyo Ecológico, wvls", aC), DataEntry(X(F), aK), DataEntry(ad(F), aL), DataEntry("1 Bit-CO2 Precio Nominal, euros x10e-4", n), DataEntry("1 Bit-CO2 Precio con Descto, usd x10e-4", aP), DataEntry("Total bit-co2 a distribuir, x10e-4", aQ), DataEntry(V(F), aS), DataEntry(Z(F), aT), DataEntry(ab(F), aU), DataEntry(("Order_Status:_" + aI), "Transacción Confirmada!"), DataEntry("PreTokenQty", aO), DataEntry(ah(ai), (aO - aQ)), DataEntry("SeIw", aM), DataEntry("SpIw", aN), DataEntry("projAdd", aE), DataEntry(aq(ar), as(ar)), DataEntry(aq(ar), (as(ar) + aN)), DataEntry("balanceSupplier", aG), DataEntry("balanceTienda", aV), DataEntry("balanceIssuer", aW), DataEntry("startQty", b), DataEntry("FirstFaseQty", c), DataEntry("SecondFaseQty", d), DataEntry(am(D), (aG + aw.amount))]), TransferSet([ScriptTransfer(k, aK, unit), ScriptTransfer(at.caller, aS, a), ScriptTransfer(i, aT, a), ScriptTransfer(j, aL, unit), ScriptTransfer(j, aU, a)])) | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(at) | |
301 | 301 | func withdraw (F,aX) = { | |
302 | 302 | let aI = toBase58String(at.caller.bytes) | |
303 | 303 | let D = { | |
304 | 304 | let y = getString(this, C(F)) | |
305 | 305 | if ($isInstanceOf(y, "String")) | |
306 | 306 | then { | |
307 | 307 | let z = y | |
308 | 308 | z | |
309 | 309 | } | |
310 | 310 | else f | |
311 | 311 | } | |
312 | 312 | let aY = { | |
313 | 313 | let y = getInteger(this, ak(F)) | |
314 | 314 | if ($isInstanceOf(y, "Int")) | |
315 | 315 | then { | |
316 | 316 | let z = y | |
317 | 317 | z | |
318 | 318 | } | |
319 | 319 | else b | |
320 | 320 | } | |
321 | 321 | let ay = (aY - aX) | |
322 | 322 | if ((0 > aX)) | |
323 | 323 | then throw("El balance de retiro no puede ser negativo!") | |
324 | 324 | else if ((0 >= ay)) | |
325 | 325 | then throw("Ooppss.. Insuficiente balance!") | |
326 | 326 | else ScriptResult(WriteSet([DataEntry(F, ay)]), TransferSet([ScriptTransfer(at.caller, aX, a)])) | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Verifier(aZ) | |
331 | 331 | func ba () = { | |
332 | 332 | let y = aZ | |
333 | 333 | if ($isInstanceOf(y, "SetScriptTransaction")) | |
334 | 334 | then { | |
335 | 335 | let bb = y | |
336 | 336 | sigVerify(aZ.bodyBytes, aZ.proofs[0], h) | |
337 | 337 | } | |
338 | 338 | else if (if ($isInstanceOf(y, "ReissueTransaction")) | |
339 | 339 | then true | |
340 | 340 | else $isInstanceOf(y, "DataTransaction")) | |
341 | 341 | then { | |
342 | 342 | let bc = y | |
343 | 343 | true | |
344 | 344 | } | |
345 | 345 | else if ($isInstanceOf(y, "TransferTransaction")) | |
346 | 346 | then { | |
347 | 347 | let aZ = y | |
348 | 348 | true | |
349 | 349 | } | |
350 | 350 | else false | |
351 | 351 | } | |
352 | 352 |
github/deemru/w8io/026f985 45.06 ms ◑