tx · 6QAaMxdDLH6mgLnB7Pi6sFp152ZqfpuezG1qMBbu5pEJ 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8: -0.01400000 Waves 2020.08.26 12:50 [1149520] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves
{ "type": 13, "id": "6QAaMxdDLH6mgLnB7Pi6sFp152ZqfpuezG1qMBbu5pEJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1598435460737, "version": 1, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "486kSanSGjSbBygqP1uWoMY7182mbw1RX41mPDQEzuTJWfF3yE4arCXDw4N12LXRvvEnBimidCVWwQvNKg1VVbpu" ], "script": "base64:AAIDAAAAAAAAACwIARIECgIICBIECgIICBIHCgUICAgIARIHCgUICAgIARIECgIIARIECgIIAQAAADEAAAAAB3lCaXRDTzIBAAAAIGmM1P/bTQF96Mt4t9+zj8FcPDlb6Qx5aA0hjmfpm0utAAAAAARndHMxAQAAACDDxYMO3SsdGFMCSZ4E3p59+bOpZEBHwTUZ+0J8yxIGZwAAAAAIc3RhcnRRdHkAAAAAALY1DNAAAAAADEZpcnN0RmFzZVF0eQAAAAAAEpeskAAAAAANU2Vjb25kRmFzZVF0eQAAAAAAo51gQAAAAAALc3RhcnRRdHlHVFMAAAAAAAHSc1QAAAAAD0ZpcnN0RmFzZVF0eUdUUwAAAAAAAC+YxAAAAAAQU2Vjb25kRmFzZVF0eUdUUwAAAAAAAaLakAAAAAAIbm9tUHJpY2UAAAAAAAAAAAEAAAAAA3d2cwAAAAAABfXhAAAAAAAQc3VwcGxpZXJEaXNjb3VudAAAAAAAAAAADAAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIHYlgUf22Lk37u4at3MrCWteEN5n68yQc4q5Um14SA8PAAAAAAZpc3N1ZXIJA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l0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwf1qT/U", "chainId": 84, "height": 1149520, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Rp416FtWTQkonwvrGnZKTh84auqaNS3NQzLQg9QYHvh Next: BezRfJK5jpJ4XrLKdFmbq6a1vXkP2PbdiGieWid1SvD2 Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let b = base58'EBDBY14t3xuduZ2GCNqEUpoLoy9eAAYfyQZA5ryVJxzS' | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 3056930000 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 311930000 | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = 2745000000 | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = 30569300 | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = 3119300 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 27450000 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 1 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 100000000 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 12 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = "none" | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U' | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 18 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 10000 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 100000 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 7 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 10 | |
45 | 45 | ||
46 | - | func v (w) = { | |
47 | - | let x = { | |
48 | - | let y = getInteger(this, w) | |
49 | - | if ($isInstanceOf(y, "Int")) | |
46 | + | let v = 1 | |
47 | + | ||
48 | + | let w = 2 | |
49 | + | ||
50 | + | let x = 2 | |
51 | + | ||
52 | + | func y (z) = { | |
53 | + | let A = { | |
54 | + | let B = getInteger(this, z) | |
55 | + | if ($isInstanceOf(B, "Int")) | |
50 | 56 | then { | |
51 | - | let | |
52 | - | | |
57 | + | let C = B | |
58 | + | C | |
53 | 59 | } | |
54 | 60 | else 0 | |
55 | 61 | } | |
56 | - | | |
62 | + | A | |
57 | 63 | } | |
58 | 64 | ||
59 | 65 | ||
60 | - | func | |
61 | - | let | |
62 | - | let | |
63 | - | if ($isInstanceOf( | |
66 | + | func D (z) = { | |
67 | + | let E = { | |
68 | + | let B = getString(this, z) | |
69 | + | if ($isInstanceOf(B, "String")) | |
64 | 70 | then { | |
65 | - | let | |
66 | - | | |
71 | + | let C = B | |
72 | + | C | |
67 | 73 | } | |
68 | - | else | |
74 | + | else l | |
69 | 75 | } | |
70 | - | | |
76 | + | E | |
71 | 77 | } | |
72 | 78 | ||
73 | 79 | ||
74 | - | func | |
80 | + | func F (G) = (G + "Bit-CO2 Shop, Lima-Perú") | |
75 | 81 | ||
76 | 82 | ||
77 | - | func | |
83 | + | func H (G,I) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((G + I))))) | |
78 | 84 | ||
79 | 85 | ||
80 | - | func | |
86 | + | func J (I) = "Project" | |
81 | 87 | ||
82 | 88 | ||
83 | - | func | |
89 | + | func K (I) = "Nodo del Ecosistema" | |
84 | 90 | ||
85 | 91 | ||
86 | - | func | |
92 | + | func L (I) = "GTStable" | |
87 | 93 | ||
88 | 94 | ||
89 | - | func | |
95 | + | func M (N,I) = "Order_№:" | |
90 | 96 | ||
91 | 97 | ||
92 | - | func | |
98 | + | func O (N,I) = y(M(N, I)) | |
93 | 99 | ||
94 | 100 | ||
95 | - | func | |
101 | + | func P (I) = "Categoría del Producto:" | |
96 | 102 | ||
97 | 103 | ||
98 | - | func | |
104 | + | func Q (I) = D(P(I)) | |
99 | 105 | ||
100 | 106 | ||
101 | - | func | |
107 | + | func R (I) = "Nombre del Usuario:" | |
102 | 108 | ||
103 | 109 | ||
104 | - | func | |
110 | + | func S (I) = D(R(I)) | |
105 | 111 | ||
106 | 112 | ||
107 | - | func | |
113 | + | func T (I) = "№ de Documento / DNI del Usuario:" | |
108 | 114 | ||
109 | 115 | ||
110 | - | func | |
116 | + | func U (I) = D(T(I)) | |
111 | 117 | ||
112 | 118 | ||
113 | - | func | |
119 | + | func V (I) = "Balance/Saldo GTS, gts-tokens:" | |
114 | 120 | ||
115 | 121 | ||
116 | - | func | |
122 | + | func W (I) = y(V(I)) | |
117 | 123 | ||
118 | 124 | ||
119 | - | func | |
125 | + | func X (G) = "Monto Bruto por VentaGTS, wvls:" | |
120 | 126 | ||
121 | 127 | ||
122 | - | func | |
128 | + | func Y (G) = y(X(G)) | |
123 | 129 | ||
124 | 130 | ||
125 | - | func | |
131 | + | func Z (I) = "UI,_wvls:" | |
126 | 132 | ||
127 | 133 | ||
128 | - | func | |
134 | + | func aa (I) = y(Z(I)) | |
129 | 135 | ||
130 | 136 | ||
131 | - | func | |
137 | + | func ab (I) = "PI,_wvls:" | |
132 | 138 | ||
133 | 139 | ||
134 | - | func | |
140 | + | func ac (I) = y(ab(I)) | |
135 | 141 | ||
136 | 142 | ||
137 | - | func | |
143 | + | func ad (I) = "SI,_wvls:" | |
138 | 144 | ||
139 | 145 | ||
140 | - | func | |
146 | + | func ae (I) = y(ad(I)) | |
141 | 147 | ||
142 | 148 | ||
143 | - | func ac (F) = "SI,_wvls:" | |
144 | - | ||
145 | - | ||
146 | - | func ad (F) = v(ac(F)) | |
147 | - | ||
148 | - | ||
149 | - | @Callable(ae) | |
150 | - | func deposit (af,ag) = { | |
151 | - | let ah = extract(ae.payment) | |
152 | - | if ((ah.assetId != a)) | |
153 | - | then throw("deposito permitido solo en yBitCO2 tokens") | |
149 | + | @Callable(af) | |
150 | + | func depositGTS (ag,ah) = { | |
151 | + | let ai = extract(af.payment) | |
152 | + | if ((ai.assetId != b)) | |
153 | + | then throw("deposito permitido solo en gts1 tokens") | |
154 | 154 | else { | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | if ($isInstanceOf( | |
155 | + | let G = toBase58String(af.caller.bytes) | |
156 | + | let aj = { | |
157 | + | let B = getInteger(this, G) | |
158 | + | if ($isInstanceOf(B, "Int")) | |
159 | 159 | then { | |
160 | - | let | |
161 | - | | |
160 | + | let C = B | |
161 | + | C | |
162 | 162 | } | |
163 | - | else | |
163 | + | else f | |
164 | 164 | } | |
165 | - | let | |
166 | - | if ((0 >= | |
167 | - | then throw("No hay | |
168 | - | else WriteSet([DataEntry( | |
165 | + | let ak = (aj + ai.amount) | |
166 | + | if ((0 >= ak)) | |
167 | + | then throw("No hay gts1 en su balance") | |
168 | + | else WriteSet([DataEntry(G, ak)]) | |
169 | 169 | } | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | - | @Callable( | |
175 | - | func | |
176 | - | let | |
177 | - | if (( | |
178 | - | then throw(" | |
174 | + | @Callable(af) | |
175 | + | func deposit (ag,ah) = { | |
176 | + | let ai = extract(af.payment) | |
177 | + | if ((ai.assetId != a)) | |
178 | + | then throw("deposito permitido solo en yBitCO2 tokens") | |
179 | 179 | else { | |
180 | - | let D = { | |
181 | - | let y = getString(this, C(F)) | |
182 | - | if ($isInstanceOf(y, "String")) | |
180 | + | let G = toBase58String(af.caller.bytes) | |
181 | + | let aj = { | |
182 | + | let B = getInteger(this, G) | |
183 | + | if ($isInstanceOf(B, "Int")) | |
183 | 184 | then { | |
184 | - | let | |
185 | - | | |
185 | + | let C = B | |
186 | + | C | |
186 | 187 | } | |
187 | - | else | |
188 | + | else c | |
188 | 189 | } | |
189 | - | let ao = { | |
190 | - | let y = getString(this, G(F)) | |
191 | - | if ($isInstanceOf(y, "String")) | |
192 | - | then { | |
193 | - | let z = y | |
194 | - | i | |
195 | - | } | |
196 | - | else m | |
197 | - | } | |
198 | - | let ap = { | |
199 | - | let y = getString(this, H(F)) | |
200 | - | if ($isInstanceOf(y, "String")) | |
201 | - | then { | |
202 | - | let z = y | |
203 | - | i | |
204 | - | } | |
205 | - | else l | |
206 | - | } | |
207 | - | let aq = { | |
208 | - | let y = getInteger(this, U(F)) | |
209 | - | if ($isInstanceOf(y, "Int")) | |
210 | - | then { | |
211 | - | let z = y | |
212 | - | z | |
213 | - | } | |
214 | - | else e | |
215 | - | } | |
216 | - | let ar = { | |
217 | - | let y = getInteger(this, W(D)) | |
218 | - | if ($isInstanceOf(y, "Int")) | |
219 | - | then { | |
220 | - | let z = y | |
221 | - | z | |
222 | - | } | |
223 | - | else 0 | |
224 | - | } | |
225 | - | let as = toBase58String(ae.caller.bytes) | |
226 | - | let at = (an - ((n * an) / 100)) | |
227 | - | let au = ((88 * p) / 100) | |
228 | - | let av = ((at * q) / 100) | |
229 | - | let aw = ((av / au) * 1) | |
230 | - | let ax = ((at * r) / 100) | |
231 | - | let ay = ((at * s) / 100) | |
232 | - | let az = (((at * u) / (100 * au)) * 1) | |
233 | - | let aA = ((an - ax) - ay) | |
234 | - | let aB = (((at * t) / (100 * au)) * 1) | |
235 | - | let aC = (((at * 11) / (au * 100)) * 1) | |
236 | - | if ((an > ah.amount)) | |
237 | - | then throw("Payment Amount can't be less than item Purchase Order") | |
238 | - | else if ((ah.amount > an)) | |
239 | - | then throw("Payment Amount can't be higher than item Purchase Order") | |
240 | - | else ScriptResult(WriteSet([DataEntry(J(as, F), (L(as, F) + 1)), DataEntry(E(D, F), F), DataEntry(M(F), ak), DataEntry(O(F), al), DataEntry(Q(F), am), DataEntry("Payment_amount,_yBitCO2cents", an), DataEntry("Imp, %", n), DataEntry("STtl, yBitCO2cents", at), DataEntry("CP 1 B, yBitCO2cents", au), DataEntry(Y(F), av), DataEntry("UBI, 10e-4 gts1", (aw / 10000)), DataEntry(aa(F), ax), DataEntry("EcSys, yBitCO2cents", ay), DataEntry("EcSys, 10e-4 gts1", (az * 1000000)), DataEntry(ac(F), aA), DataEntry("SBI, 10e-4 gts1", (aB * 1000000)), DataEntry(("Order_Status:_" + as), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 gts1", (aC * 10000)), DataEntry(U(F), (aq - (aC * 10000))), DataEntry(W(D), (ar + ah.amount))]), TransferSet([ScriptTransfer(ae.caller, aw, b), ScriptTransfer(m, ax, a), ScriptTransfer(l, ay, a), ScriptTransfer(l, az, b), ScriptTransfer(k, aA, a), ScriptTransfer(k, aB, b)])) | |
190 | + | let ak = (aj + ai.amount) | |
191 | + | if ((0 >= ak)) | |
192 | + | then throw("No hay yBitCO2 en su balance") | |
193 | + | else WriteSet([DataEntry(G, ak)]) | |
241 | 194 | } | |
242 | 195 | } | |
243 | 196 | ||
244 | 197 | ||
245 | 198 | ||
246 | - | @Callable( | |
247 | - | func | |
248 | - | let | |
249 | - | if ( | |
250 | - | then throw(" | |
199 | + | @Callable(af) | |
200 | + | func purchaseGTS (I,al,am,an,ao) = { | |
201 | + | let ai = extract(af.payment) | |
202 | + | if ((ai.assetId != a)) | |
203 | + | then throw("Use yBitCO2 tokens para adquirir ProductosGTS") | |
251 | 204 | else { | |
252 | - | let | |
253 | - | let | |
254 | - | if ($isInstanceOf( | |
205 | + | let G = { | |
206 | + | let B = getString(this, F(I)) | |
207 | + | if ($isInstanceOf(B, "String")) | |
255 | 208 | then { | |
256 | - | let z = y | |
257 | - | z | |
258 | - | } | |
259 | - | else i | |
260 | - | } | |
261 | - | let ao = { | |
262 | - | let y = getString(this, G(F)) | |
263 | - | if ($isInstanceOf(y, "String")) | |
264 | - | then { | |
265 | - | let z = y | |
266 | - | i | |
267 | - | } | |
268 | - | else m | |
269 | - | } | |
270 | - | let ap = { | |
271 | - | let y = getString(this, H(F)) | |
272 | - | if ($isInstanceOf(y, "String")) | |
273 | - | then { | |
274 | - | let z = y | |
275 | - | i | |
209 | + | let C = B | |
210 | + | C | |
276 | 211 | } | |
277 | 212 | else l | |
278 | 213 | } | |
214 | + | let ap = { | |
215 | + | let B = getString(this, J(I)) | |
216 | + | if ($isInstanceOf(B, "String")) | |
217 | + | then { | |
218 | + | let C = B | |
219 | + | l | |
220 | + | } | |
221 | + | else p | |
222 | + | } | |
279 | 223 | let aq = { | |
280 | - | let | |
281 | - | if ($isInstanceOf( | |
224 | + | let B = getString(this, K(I)) | |
225 | + | if ($isInstanceOf(B, "String")) | |
282 | 226 | then { | |
283 | - | let | |
284 | - | | |
227 | + | let C = B | |
228 | + | l | |
285 | 229 | } | |
286 | - | else | |
230 | + | else o | |
287 | 231 | } | |
288 | 232 | let ar = { | |
289 | - | let | |
290 | - | if ($isInstanceOf( | |
233 | + | let B = getInteger(this, V(I)) | |
234 | + | if ($isInstanceOf(B, "Int")) | |
291 | 235 | then { | |
292 | - | let z = y | |
293 | - | z | |
236 | + | let C = B | |
237 | + | C | |
238 | + | } | |
239 | + | else h | |
240 | + | } | |
241 | + | let as = { | |
242 | + | let B = getInteger(this, X(G)) | |
243 | + | if ($isInstanceOf(B, "Int")) | |
244 | + | then { | |
245 | + | let C = B | |
246 | + | C | |
294 | 247 | } | |
295 | 248 | else 0 | |
296 | 249 | } | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
250 | + | let at = toBase58String(af.caller.bytes) | |
251 | + | let au = (ao - ((q * ao) / 100)) | |
252 | + | let av = ((88 * s) / 100) | |
253 | + | let aw = ((au * t) / 100) | |
254 | + | let ax = ((aw / av) * 1) | |
255 | + | let ay = ((au * u) / 100) | |
256 | + | let az = ((au * v) / 100) | |
257 | + | let aA = (((au * x) / (100 * av)) * 1) | |
258 | + | let aB = ((ao - ay) - az) | |
259 | + | let aC = (((au * w) / (100 * av)) * 1) | |
260 | + | let aD = (((au * 11) / (av * 100)) * 1) | |
261 | + | if ((ao > ai.amount)) | |
309 | 262 | then throw("Payment Amount can't be less than item Purchase Order") | |
310 | - | else if (( | |
263 | + | else if ((ai.amount > ao)) | |
311 | 264 | then throw("Payment Amount can't be higher than item Purchase Order") | |
312 | - | else ScriptResult(WriteSet([DataEntry( | |
265 | + | else ScriptResult(WriteSet([DataEntry(M(at, I), (O(at, I) + 1)), DataEntry(H(G, I), I), DataEntry(P(I), al), DataEntry(R(I), am), DataEntry(T(I), an), DataEntry("Payment_amount,_yBitCO2cents", ao), DataEntry("Imp, %", q), DataEntry("STtl, yBitCO2cents", au), DataEntry("CP 1 B, yBitCO2cents", (av * 100)), DataEntry(Z(I), aw), DataEntry("UBI, 10e-4 gts1", ax), DataEntry(ab(I), ay), DataEntry("EcSys, yBitCO2cents", az), DataEntry("EcSys, 10e-4 gts1", aA), DataEntry(ad(I), aB), DataEntry("SBI, 10e-4 gts1", aC), DataEntry(("Order_Status:_" + at), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 gts1", aD), DataEntry(V(I), (ar - aD)), DataEntry(X(G), (as + ai.amount))]), TransferSet([ScriptTransfer(af.caller, ax, b), ScriptTransfer(p, ay, a), ScriptTransfer(o, az, a), ScriptTransfer(o, aA, b), ScriptTransfer(n, aB, a)])) | |
313 | 266 | } | |
314 | 267 | } | |
315 | 268 | ||
316 | 269 | ||
317 | 270 | ||
318 | - | @Callable(ae) | |
319 | - | func withdraw (F,aD) = { | |
320 | - | let as = toBase58String(ae.caller.bytes) | |
321 | - | let D = { | |
322 | - | let y = getString(this, C(F)) | |
323 | - | if ($isInstanceOf(y, "String")) | |
271 | + | @Callable(af) | |
272 | + | func purchaseGTS2 (I,al,am,an,ao) = { | |
273 | + | let ai = extract(af.payment) | |
274 | + | if (isDefined(ai.assetId)) | |
275 | + | then throw("El Precio en waves.") | |
276 | + | else { | |
277 | + | let G = { | |
278 | + | let B = getString(this, F(I)) | |
279 | + | if ($isInstanceOf(B, "String")) | |
280 | + | then { | |
281 | + | let C = B | |
282 | + | C | |
283 | + | } | |
284 | + | else l | |
285 | + | } | |
286 | + | let ap = { | |
287 | + | let B = getString(this, J(I)) | |
288 | + | if ($isInstanceOf(B, "String")) | |
289 | + | then { | |
290 | + | let C = B | |
291 | + | l | |
292 | + | } | |
293 | + | else p | |
294 | + | } | |
295 | + | let aq = { | |
296 | + | let B = getString(this, K(I)) | |
297 | + | if ($isInstanceOf(B, "String")) | |
298 | + | then { | |
299 | + | let C = B | |
300 | + | l | |
301 | + | } | |
302 | + | else o | |
303 | + | } | |
304 | + | let ar = { | |
305 | + | let B = getInteger(this, V(I)) | |
306 | + | if ($isInstanceOf(B, "Int")) | |
307 | + | then { | |
308 | + | let C = B | |
309 | + | C | |
310 | + | } | |
311 | + | else e | |
312 | + | } | |
313 | + | let as = { | |
314 | + | let B = getInteger(this, X(G)) | |
315 | + | if ($isInstanceOf(B, "Int")) | |
316 | + | then { | |
317 | + | let C = B | |
318 | + | C | |
319 | + | } | |
320 | + | else 0 | |
321 | + | } | |
322 | + | let at = toBase58String(af.caller.bytes) | |
323 | + | let au = (ao - ((q * ao) / 100)) | |
324 | + | let aE = ((88 * r) / 100) | |
325 | + | let aw = ((au * t) / 100) | |
326 | + | let ax = ((aw / aE) * 1) | |
327 | + | let ay = ((au * u) / 100) | |
328 | + | let az = ((au * v) / 100) | |
329 | + | let aA = (((au * x) / (100 * aE)) * 1) | |
330 | + | let aB = ((ao - ay) - az) | |
331 | + | let aC = (((au * w) / (100 * aE)) * 1) | |
332 | + | let aD = (((au * 11) / (aE * 100)) * 1) | |
333 | + | if ((ao > ai.amount)) | |
334 | + | then throw("Payment Amount can't be less than item Purchase Order") | |
335 | + | else if ((ai.amount > ao)) | |
336 | + | then throw("Payment Amount can't be higher than item Purchase Order") | |
337 | + | else ScriptResult(WriteSet([DataEntry(M(at, I), (O(at, I) + 1)), DataEntry(H(G, I), I), DataEntry(P(I), al), DataEntry(R(I), am), DataEntry(T(I), an), DataEntry("Payment_amount,_wvls", ao), DataEntry("Imp, %", q), DataEntry("STtl, wvls", au), DataEntry("CP 1 B, wvls", (aE * 10000)), DataEntry(Z(I), aw), DataEntry("UBI, 10e-4 ybitco2", ax), DataEntry(ab(I), ay), DataEntry("EcSys, wvls", az), DataEntry("EcSys, 10e-4 ybitco2", aA), DataEntry(ad(I), aB), DataEntry("SBI, 10e-4 ybitco2", aC), DataEntry(("Order_Status:_" + at), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 ybitco2", aD), DataEntry(V(I), (ar - (aD / 1))), DataEntry(X(G), (as + ai.amount))]), TransferSet([ScriptTransfer(af.caller, ax, a), ScriptTransfer(p, ay, unit), ScriptTransfer(o, az, unit), ScriptTransfer(o, aA, a), ScriptTransfer(n, aB, unit), ScriptTransfer(n, aC, a)])) | |
338 | + | } | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | ||
343 | + | @Callable(af) | |
344 | + | func withdrawGTS (I,aF) = { | |
345 | + | let at = toBase58String(af.caller.bytes) | |
346 | + | let G = { | |
347 | + | let B = getString(this, F(I)) | |
348 | + | if ($isInstanceOf(B, "String")) | |
324 | 349 | then { | |
325 | - | let | |
326 | - | | |
350 | + | let C = B | |
351 | + | C | |
327 | 352 | } | |
328 | - | else | |
353 | + | else l | |
329 | 354 | } | |
330 | - | let | |
331 | - | let | |
332 | - | if ($isInstanceOf( | |
355 | + | let aG = { | |
356 | + | let B = getInteger(this, V(I)) | |
357 | + | if ($isInstanceOf(B, "Int")) | |
333 | 358 | then { | |
334 | - | let z = y | |
335 | - | z | |
359 | + | let C = B | |
360 | + | C | |
361 | + | } | |
362 | + | else f | |
363 | + | } | |
364 | + | let ak = (aG - aF) | |
365 | + | if ((0 > aF)) | |
366 | + | then throw("El balance de retiro no puede ser negativo!") | |
367 | + | else if ((0 >= ak)) | |
368 | + | then throw("Ooppss.. Insuficiente balance!") | |
369 | + | else ScriptResult(WriteSet([DataEntry(I, ak)]), TransferSet([ScriptTransfer(af.caller, aF, b)])) | |
370 | + | } | |
371 | + | ||
372 | + | ||
373 | + | ||
374 | + | @Callable(af) | |
375 | + | func withdraw (I,aF) = { | |
376 | + | let at = toBase58String(af.caller.bytes) | |
377 | + | let G = { | |
378 | + | let B = getString(this, F(I)) | |
379 | + | if ($isInstanceOf(B, "String")) | |
380 | + | then { | |
381 | + | let C = B | |
382 | + | C | |
383 | + | } | |
384 | + | else l | |
385 | + | } | |
386 | + | let aG = { | |
387 | + | let B = getInteger(this, V(I)) | |
388 | + | if ($isInstanceOf(B, "Int")) | |
389 | + | then { | |
390 | + | let C = B | |
391 | + | C | |
336 | 392 | } | |
337 | 393 | else c | |
338 | 394 | } | |
339 | - | let | |
340 | - | if ((0 > | |
395 | + | let ak = (aG - aF) | |
396 | + | if ((0 > aF)) | |
341 | 397 | then throw("El balance de retiro no puede ser negativo!") | |
342 | - | else if ((0 >= | |
398 | + | else if ((0 >= ak)) | |
343 | 399 | then throw("Ooppss.. Insuficiente balance!") | |
344 | - | else ScriptResult(WriteSet([DataEntry( | |
400 | + | else ScriptResult(WriteSet([DataEntry(I, ak)]), TransferSet([ScriptTransfer(af.caller, aF, a)])) | |
345 | 401 | } | |
346 | 402 | ||
347 | 403 | ||
348 | - | @Verifier( | |
349 | - | func | |
350 | - | let | |
351 | - | if ($isInstanceOf( | |
404 | + | @Verifier(aH) | |
405 | + | func aI () = { | |
406 | + | let B = aH | |
407 | + | if ($isInstanceOf(B, "SetScriptTransaction")) | |
352 | 408 | then { | |
353 | - | let | |
354 | - | sigVerify( | |
409 | + | let aJ = B | |
410 | + | sigVerify(aH.bodyBytes, aH.proofs[0], m) | |
355 | 411 | } | |
356 | - | else if (if ($isInstanceOf( | |
412 | + | else if (if ($isInstanceOf(B, "DataTransaction")) | |
357 | 413 | then true | |
358 | - | else $isInstanceOf( | |
414 | + | else $isInstanceOf(B, "ReissueTransaction")) | |
359 | 415 | then { | |
360 | - | let | |
416 | + | let aK = B | |
361 | 417 | true | |
362 | 418 | } | |
363 | - | else if ($isInstanceOf( | |
419 | + | else if ($isInstanceOf(B, "TransferTransaction")) | |
364 | 420 | then { | |
365 | - | let | |
421 | + | let aH = B | |
366 | 422 | true | |
367 | 423 | } | |
368 | - | else if ($isInstanceOf( | |
424 | + | else if ($isInstanceOf(B, "ExchangeTransaction")) | |
369 | 425 | then { | |
370 | - | let | |
371 | - | let | |
426 | + | let aH = B | |
427 | + | let aL = if (!(isDefined(aH.sellOrder.assetPair.priceAsset))) | |
372 | 428 | then true | |
373 | - | else !(isDefined( | |
374 | - | | |
429 | + | else !(isDefined(aH.sellOrder.assetPair.amountAsset)) | |
430 | + | aL | |
375 | 431 | } | |
376 | 432 | else false | |
377 | 433 | } |
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 = base58'EBDBY14t3xuduZ2GCNqEUpoLoy9eAAYfyQZA5ryVJxzS' | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 3056930000 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 311930000 | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = 2745000000 | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = 30569300 | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = 3119300 | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 27450000 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = 1 | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = 100000000 | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = 12 | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = "none" | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U' | |
29 | 29 | ||
30 | - | let n = | |
30 | + | let n = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
31 | 31 | ||
32 | - | let o = | |
32 | + | let o = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
35 | 35 | ||
36 | - | let q = | |
36 | + | let q = 18 | |
37 | 37 | ||
38 | - | let r = | |
38 | + | let r = 10000 | |
39 | 39 | ||
40 | - | let s = | |
40 | + | let s = 100000 | |
41 | 41 | ||
42 | - | let t = | |
42 | + | let t = 7 | |
43 | 43 | ||
44 | - | let u = | |
44 | + | let u = 10 | |
45 | 45 | ||
46 | - | func v (w) = { | |
47 | - | let x = { | |
48 | - | let y = getInteger(this, w) | |
49 | - | if ($isInstanceOf(y, "Int")) | |
46 | + | let v = 1 | |
47 | + | ||
48 | + | let w = 2 | |
49 | + | ||
50 | + | let x = 2 | |
51 | + | ||
52 | + | func y (z) = { | |
53 | + | let A = { | |
54 | + | let B = getInteger(this, z) | |
55 | + | if ($isInstanceOf(B, "Int")) | |
50 | 56 | then { | |
51 | - | let | |
52 | - | | |
57 | + | let C = B | |
58 | + | C | |
53 | 59 | } | |
54 | 60 | else 0 | |
55 | 61 | } | |
56 | - | | |
62 | + | A | |
57 | 63 | } | |
58 | 64 | ||
59 | 65 | ||
60 | - | func | |
61 | - | let | |
62 | - | let | |
63 | - | if ($isInstanceOf( | |
66 | + | func D (z) = { | |
67 | + | let E = { | |
68 | + | let B = getString(this, z) | |
69 | + | if ($isInstanceOf(B, "String")) | |
64 | 70 | then { | |
65 | - | let | |
66 | - | | |
71 | + | let C = B | |
72 | + | C | |
67 | 73 | } | |
68 | - | else | |
74 | + | else l | |
69 | 75 | } | |
70 | - | | |
76 | + | E | |
71 | 77 | } | |
72 | 78 | ||
73 | 79 | ||
74 | - | func | |
80 | + | func F (G) = (G + "Bit-CO2 Shop, Lima-Perú") | |
75 | 81 | ||
76 | 82 | ||
77 | - | func | |
83 | + | func H (G,I) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((G + I))))) | |
78 | 84 | ||
79 | 85 | ||
80 | - | func | |
86 | + | func J (I) = "Project" | |
81 | 87 | ||
82 | 88 | ||
83 | - | func | |
89 | + | func K (I) = "Nodo del Ecosistema" | |
84 | 90 | ||
85 | 91 | ||
86 | - | func | |
92 | + | func L (I) = "GTStable" | |
87 | 93 | ||
88 | 94 | ||
89 | - | func | |
95 | + | func M (N,I) = "Order_№:" | |
90 | 96 | ||
91 | 97 | ||
92 | - | func | |
98 | + | func O (N,I) = y(M(N, I)) | |
93 | 99 | ||
94 | 100 | ||
95 | - | func | |
101 | + | func P (I) = "Categoría del Producto:" | |
96 | 102 | ||
97 | 103 | ||
98 | - | func | |
104 | + | func Q (I) = D(P(I)) | |
99 | 105 | ||
100 | 106 | ||
101 | - | func | |
107 | + | func R (I) = "Nombre del Usuario:" | |
102 | 108 | ||
103 | 109 | ||
104 | - | func | |
110 | + | func S (I) = D(R(I)) | |
105 | 111 | ||
106 | 112 | ||
107 | - | func | |
113 | + | func T (I) = "№ de Documento / DNI del Usuario:" | |
108 | 114 | ||
109 | 115 | ||
110 | - | func | |
116 | + | func U (I) = D(T(I)) | |
111 | 117 | ||
112 | 118 | ||
113 | - | func | |
119 | + | func V (I) = "Balance/Saldo GTS, gts-tokens:" | |
114 | 120 | ||
115 | 121 | ||
116 | - | func | |
122 | + | func W (I) = y(V(I)) | |
117 | 123 | ||
118 | 124 | ||
119 | - | func | |
125 | + | func X (G) = "Monto Bruto por VentaGTS, wvls:" | |
120 | 126 | ||
121 | 127 | ||
122 | - | func | |
128 | + | func Y (G) = y(X(G)) | |
123 | 129 | ||
124 | 130 | ||
125 | - | func | |
131 | + | func Z (I) = "UI,_wvls:" | |
126 | 132 | ||
127 | 133 | ||
128 | - | func | |
134 | + | func aa (I) = y(Z(I)) | |
129 | 135 | ||
130 | 136 | ||
131 | - | func | |
137 | + | func ab (I) = "PI,_wvls:" | |
132 | 138 | ||
133 | 139 | ||
134 | - | func | |
140 | + | func ac (I) = y(ab(I)) | |
135 | 141 | ||
136 | 142 | ||
137 | - | func | |
143 | + | func ad (I) = "SI,_wvls:" | |
138 | 144 | ||
139 | 145 | ||
140 | - | func | |
146 | + | func ae (I) = y(ad(I)) | |
141 | 147 | ||
142 | 148 | ||
143 | - | func ac (F) = "SI,_wvls:" | |
144 | - | ||
145 | - | ||
146 | - | func ad (F) = v(ac(F)) | |
147 | - | ||
148 | - | ||
149 | - | @Callable(ae) | |
150 | - | func deposit (af,ag) = { | |
151 | - | let ah = extract(ae.payment) | |
152 | - | if ((ah.assetId != a)) | |
153 | - | then throw("deposito permitido solo en yBitCO2 tokens") | |
149 | + | @Callable(af) | |
150 | + | func depositGTS (ag,ah) = { | |
151 | + | let ai = extract(af.payment) | |
152 | + | if ((ai.assetId != b)) | |
153 | + | then throw("deposito permitido solo en gts1 tokens") | |
154 | 154 | else { | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | if ($isInstanceOf( | |
155 | + | let G = toBase58String(af.caller.bytes) | |
156 | + | let aj = { | |
157 | + | let B = getInteger(this, G) | |
158 | + | if ($isInstanceOf(B, "Int")) | |
159 | 159 | then { | |
160 | - | let | |
161 | - | | |
160 | + | let C = B | |
161 | + | C | |
162 | 162 | } | |
163 | - | else | |
163 | + | else f | |
164 | 164 | } | |
165 | - | let | |
166 | - | if ((0 >= | |
167 | - | then throw("No hay | |
168 | - | else WriteSet([DataEntry( | |
165 | + | let ak = (aj + ai.amount) | |
166 | + | if ((0 >= ak)) | |
167 | + | then throw("No hay gts1 en su balance") | |
168 | + | else WriteSet([DataEntry(G, ak)]) | |
169 | 169 | } | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | - | @Callable( | |
175 | - | func | |
176 | - | let | |
177 | - | if (( | |
178 | - | then throw(" | |
174 | + | @Callable(af) | |
175 | + | func deposit (ag,ah) = { | |
176 | + | let ai = extract(af.payment) | |
177 | + | if ((ai.assetId != a)) | |
178 | + | then throw("deposito permitido solo en yBitCO2 tokens") | |
179 | 179 | else { | |
180 | - | let D = { | |
181 | - | let y = getString(this, C(F)) | |
182 | - | if ($isInstanceOf(y, "String")) | |
180 | + | let G = toBase58String(af.caller.bytes) | |
181 | + | let aj = { | |
182 | + | let B = getInteger(this, G) | |
183 | + | if ($isInstanceOf(B, "Int")) | |
183 | 184 | then { | |
184 | - | let | |
185 | - | | |
185 | + | let C = B | |
186 | + | C | |
186 | 187 | } | |
187 | - | else | |
188 | + | else c | |
188 | 189 | } | |
189 | - | let ao = { | |
190 | - | let y = getString(this, G(F)) | |
191 | - | if ($isInstanceOf(y, "String")) | |
192 | - | then { | |
193 | - | let z = y | |
194 | - | i | |
195 | - | } | |
196 | - | else m | |
197 | - | } | |
198 | - | let ap = { | |
199 | - | let y = getString(this, H(F)) | |
200 | - | if ($isInstanceOf(y, "String")) | |
201 | - | then { | |
202 | - | let z = y | |
203 | - | i | |
204 | - | } | |
205 | - | else l | |
206 | - | } | |
207 | - | let aq = { | |
208 | - | let y = getInteger(this, U(F)) | |
209 | - | if ($isInstanceOf(y, "Int")) | |
210 | - | then { | |
211 | - | let z = y | |
212 | - | z | |
213 | - | } | |
214 | - | else e | |
215 | - | } | |
216 | - | let ar = { | |
217 | - | let y = getInteger(this, W(D)) | |
218 | - | if ($isInstanceOf(y, "Int")) | |
219 | - | then { | |
220 | - | let z = y | |
221 | - | z | |
222 | - | } | |
223 | - | else 0 | |
224 | - | } | |
225 | - | let as = toBase58String(ae.caller.bytes) | |
226 | - | let at = (an - ((n * an) / 100)) | |
227 | - | let au = ((88 * p) / 100) | |
228 | - | let av = ((at * q) / 100) | |
229 | - | let aw = ((av / au) * 1) | |
230 | - | let ax = ((at * r) / 100) | |
231 | - | let ay = ((at * s) / 100) | |
232 | - | let az = (((at * u) / (100 * au)) * 1) | |
233 | - | let aA = ((an - ax) - ay) | |
234 | - | let aB = (((at * t) / (100 * au)) * 1) | |
235 | - | let aC = (((at * 11) / (au * 100)) * 1) | |
236 | - | if ((an > ah.amount)) | |
237 | - | then throw("Payment Amount can't be less than item Purchase Order") | |
238 | - | else if ((ah.amount > an)) | |
239 | - | then throw("Payment Amount can't be higher than item Purchase Order") | |
240 | - | else ScriptResult(WriteSet([DataEntry(J(as, F), (L(as, F) + 1)), DataEntry(E(D, F), F), DataEntry(M(F), ak), DataEntry(O(F), al), DataEntry(Q(F), am), DataEntry("Payment_amount,_yBitCO2cents", an), DataEntry("Imp, %", n), DataEntry("STtl, yBitCO2cents", at), DataEntry("CP 1 B, yBitCO2cents", au), DataEntry(Y(F), av), DataEntry("UBI, 10e-4 gts1", (aw / 10000)), DataEntry(aa(F), ax), DataEntry("EcSys, yBitCO2cents", ay), DataEntry("EcSys, 10e-4 gts1", (az * 1000000)), DataEntry(ac(F), aA), DataEntry("SBI, 10e-4 gts1", (aB * 1000000)), DataEntry(("Order_Status:_" + as), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 gts1", (aC * 10000)), DataEntry(U(F), (aq - (aC * 10000))), DataEntry(W(D), (ar + ah.amount))]), TransferSet([ScriptTransfer(ae.caller, aw, b), ScriptTransfer(m, ax, a), ScriptTransfer(l, ay, a), ScriptTransfer(l, az, b), ScriptTransfer(k, aA, a), ScriptTransfer(k, aB, b)])) | |
190 | + | let ak = (aj + ai.amount) | |
191 | + | if ((0 >= ak)) | |
192 | + | then throw("No hay yBitCO2 en su balance") | |
193 | + | else WriteSet([DataEntry(G, ak)]) | |
241 | 194 | } | |
242 | 195 | } | |
243 | 196 | ||
244 | 197 | ||
245 | 198 | ||
246 | - | @Callable( | |
247 | - | func | |
248 | - | let | |
249 | - | if ( | |
250 | - | then throw(" | |
199 | + | @Callable(af) | |
200 | + | func purchaseGTS (I,al,am,an,ao) = { | |
201 | + | let ai = extract(af.payment) | |
202 | + | if ((ai.assetId != a)) | |
203 | + | then throw("Use yBitCO2 tokens para adquirir ProductosGTS") | |
251 | 204 | else { | |
252 | - | let | |
253 | - | let | |
254 | - | if ($isInstanceOf( | |
205 | + | let G = { | |
206 | + | let B = getString(this, F(I)) | |
207 | + | if ($isInstanceOf(B, "String")) | |
255 | 208 | then { | |
256 | - | let z = y | |
257 | - | z | |
258 | - | } | |
259 | - | else i | |
260 | - | } | |
261 | - | let ao = { | |
262 | - | let y = getString(this, G(F)) | |
263 | - | if ($isInstanceOf(y, "String")) | |
264 | - | then { | |
265 | - | let z = y | |
266 | - | i | |
267 | - | } | |
268 | - | else m | |
269 | - | } | |
270 | - | let ap = { | |
271 | - | let y = getString(this, H(F)) | |
272 | - | if ($isInstanceOf(y, "String")) | |
273 | - | then { | |
274 | - | let z = y | |
275 | - | i | |
209 | + | let C = B | |
210 | + | C | |
276 | 211 | } | |
277 | 212 | else l | |
278 | 213 | } | |
214 | + | let ap = { | |
215 | + | let B = getString(this, J(I)) | |
216 | + | if ($isInstanceOf(B, "String")) | |
217 | + | then { | |
218 | + | let C = B | |
219 | + | l | |
220 | + | } | |
221 | + | else p | |
222 | + | } | |
279 | 223 | let aq = { | |
280 | - | let | |
281 | - | if ($isInstanceOf( | |
224 | + | let B = getString(this, K(I)) | |
225 | + | if ($isInstanceOf(B, "String")) | |
282 | 226 | then { | |
283 | - | let | |
284 | - | | |
227 | + | let C = B | |
228 | + | l | |
285 | 229 | } | |
286 | - | else | |
230 | + | else o | |
287 | 231 | } | |
288 | 232 | let ar = { | |
289 | - | let | |
290 | - | if ($isInstanceOf( | |
233 | + | let B = getInteger(this, V(I)) | |
234 | + | if ($isInstanceOf(B, "Int")) | |
291 | 235 | then { | |
292 | - | let z = y | |
293 | - | z | |
236 | + | let C = B | |
237 | + | C | |
238 | + | } | |
239 | + | else h | |
240 | + | } | |
241 | + | let as = { | |
242 | + | let B = getInteger(this, X(G)) | |
243 | + | if ($isInstanceOf(B, "Int")) | |
244 | + | then { | |
245 | + | let C = B | |
246 | + | C | |
294 | 247 | } | |
295 | 248 | else 0 | |
296 | 249 | } | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | if (( | |
250 | + | let at = toBase58String(af.caller.bytes) | |
251 | + | let au = (ao - ((q * ao) / 100)) | |
252 | + | let av = ((88 * s) / 100) | |
253 | + | let aw = ((au * t) / 100) | |
254 | + | let ax = ((aw / av) * 1) | |
255 | + | let ay = ((au * u) / 100) | |
256 | + | let az = ((au * v) / 100) | |
257 | + | let aA = (((au * x) / (100 * av)) * 1) | |
258 | + | let aB = ((ao - ay) - az) | |
259 | + | let aC = (((au * w) / (100 * av)) * 1) | |
260 | + | let aD = (((au * 11) / (av * 100)) * 1) | |
261 | + | if ((ao > ai.amount)) | |
309 | 262 | then throw("Payment Amount can't be less than item Purchase Order") | |
310 | - | else if (( | |
263 | + | else if ((ai.amount > ao)) | |
311 | 264 | then throw("Payment Amount can't be higher than item Purchase Order") | |
312 | - | else ScriptResult(WriteSet([DataEntry( | |
265 | + | else ScriptResult(WriteSet([DataEntry(M(at, I), (O(at, I) + 1)), DataEntry(H(G, I), I), DataEntry(P(I), al), DataEntry(R(I), am), DataEntry(T(I), an), DataEntry("Payment_amount,_yBitCO2cents", ao), DataEntry("Imp, %", q), DataEntry("STtl, yBitCO2cents", au), DataEntry("CP 1 B, yBitCO2cents", (av * 100)), DataEntry(Z(I), aw), DataEntry("UBI, 10e-4 gts1", ax), DataEntry(ab(I), ay), DataEntry("EcSys, yBitCO2cents", az), DataEntry("EcSys, 10e-4 gts1", aA), DataEntry(ad(I), aB), DataEntry("SBI, 10e-4 gts1", aC), DataEntry(("Order_Status:_" + at), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 gts1", aD), DataEntry(V(I), (ar - aD)), DataEntry(X(G), (as + ai.amount))]), TransferSet([ScriptTransfer(af.caller, ax, b), ScriptTransfer(p, ay, a), ScriptTransfer(o, az, a), ScriptTransfer(o, aA, b), ScriptTransfer(n, aB, a)])) | |
313 | 266 | } | |
314 | 267 | } | |
315 | 268 | ||
316 | 269 | ||
317 | 270 | ||
318 | - | @Callable(ae) | |
319 | - | func withdraw (F,aD) = { | |
320 | - | let as = toBase58String(ae.caller.bytes) | |
321 | - | let D = { | |
322 | - | let y = getString(this, C(F)) | |
323 | - | if ($isInstanceOf(y, "String")) | |
271 | + | @Callable(af) | |
272 | + | func purchaseGTS2 (I,al,am,an,ao) = { | |
273 | + | let ai = extract(af.payment) | |
274 | + | if (isDefined(ai.assetId)) | |
275 | + | then throw("El Precio en waves.") | |
276 | + | else { | |
277 | + | let G = { | |
278 | + | let B = getString(this, F(I)) | |
279 | + | if ($isInstanceOf(B, "String")) | |
280 | + | then { | |
281 | + | let C = B | |
282 | + | C | |
283 | + | } | |
284 | + | else l | |
285 | + | } | |
286 | + | let ap = { | |
287 | + | let B = getString(this, J(I)) | |
288 | + | if ($isInstanceOf(B, "String")) | |
289 | + | then { | |
290 | + | let C = B | |
291 | + | l | |
292 | + | } | |
293 | + | else p | |
294 | + | } | |
295 | + | let aq = { | |
296 | + | let B = getString(this, K(I)) | |
297 | + | if ($isInstanceOf(B, "String")) | |
298 | + | then { | |
299 | + | let C = B | |
300 | + | l | |
301 | + | } | |
302 | + | else o | |
303 | + | } | |
304 | + | let ar = { | |
305 | + | let B = getInteger(this, V(I)) | |
306 | + | if ($isInstanceOf(B, "Int")) | |
307 | + | then { | |
308 | + | let C = B | |
309 | + | C | |
310 | + | } | |
311 | + | else e | |
312 | + | } | |
313 | + | let as = { | |
314 | + | let B = getInteger(this, X(G)) | |
315 | + | if ($isInstanceOf(B, "Int")) | |
316 | + | then { | |
317 | + | let C = B | |
318 | + | C | |
319 | + | } | |
320 | + | else 0 | |
321 | + | } | |
322 | + | let at = toBase58String(af.caller.bytes) | |
323 | + | let au = (ao - ((q * ao) / 100)) | |
324 | + | let aE = ((88 * r) / 100) | |
325 | + | let aw = ((au * t) / 100) | |
326 | + | let ax = ((aw / aE) * 1) | |
327 | + | let ay = ((au * u) / 100) | |
328 | + | let az = ((au * v) / 100) | |
329 | + | let aA = (((au * x) / (100 * aE)) * 1) | |
330 | + | let aB = ((ao - ay) - az) | |
331 | + | let aC = (((au * w) / (100 * aE)) * 1) | |
332 | + | let aD = (((au * 11) / (aE * 100)) * 1) | |
333 | + | if ((ao > ai.amount)) | |
334 | + | then throw("Payment Amount can't be less than item Purchase Order") | |
335 | + | else if ((ai.amount > ao)) | |
336 | + | then throw("Payment Amount can't be higher than item Purchase Order") | |
337 | + | else ScriptResult(WriteSet([DataEntry(M(at, I), (O(at, I) + 1)), DataEntry(H(G, I), I), DataEntry(P(I), al), DataEntry(R(I), am), DataEntry(T(I), an), DataEntry("Payment_amount,_wvls", ao), DataEntry("Imp, %", q), DataEntry("STtl, wvls", au), DataEntry("CP 1 B, wvls", (aE * 10000)), DataEntry(Z(I), aw), DataEntry("UBI, 10e-4 ybitco2", ax), DataEntry(ab(I), ay), DataEntry("EcSys, wvls", az), DataEntry("EcSys, 10e-4 ybitco2", aA), DataEntry(ad(I), aB), DataEntry("SBI, 10e-4 ybitco2", aC), DataEntry(("Order_Status:_" + at), "Adquisición Confirmada!"), DataEntry("QporVentasGTS, 10e-4 ybitco2", aD), DataEntry(V(I), (ar - (aD / 1))), DataEntry(X(G), (as + ai.amount))]), TransferSet([ScriptTransfer(af.caller, ax, a), ScriptTransfer(p, ay, unit), ScriptTransfer(o, az, unit), ScriptTransfer(o, aA, a), ScriptTransfer(n, aB, unit), ScriptTransfer(n, aC, a)])) | |
338 | + | } | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | ||
343 | + | @Callable(af) | |
344 | + | func withdrawGTS (I,aF) = { | |
345 | + | let at = toBase58String(af.caller.bytes) | |
346 | + | let G = { | |
347 | + | let B = getString(this, F(I)) | |
348 | + | if ($isInstanceOf(B, "String")) | |
324 | 349 | then { | |
325 | - | let | |
326 | - | | |
350 | + | let C = B | |
351 | + | C | |
327 | 352 | } | |
328 | - | else | |
353 | + | else l | |
329 | 354 | } | |
330 | - | let | |
331 | - | let | |
332 | - | if ($isInstanceOf( | |
355 | + | let aG = { | |
356 | + | let B = getInteger(this, V(I)) | |
357 | + | if ($isInstanceOf(B, "Int")) | |
333 | 358 | then { | |
334 | - | let z = y | |
335 | - | z | |
359 | + | let C = B | |
360 | + | C | |
361 | + | } | |
362 | + | else f | |
363 | + | } | |
364 | + | let ak = (aG - aF) | |
365 | + | if ((0 > aF)) | |
366 | + | then throw("El balance de retiro no puede ser negativo!") | |
367 | + | else if ((0 >= ak)) | |
368 | + | then throw("Ooppss.. Insuficiente balance!") | |
369 | + | else ScriptResult(WriteSet([DataEntry(I, ak)]), TransferSet([ScriptTransfer(af.caller, aF, b)])) | |
370 | + | } | |
371 | + | ||
372 | + | ||
373 | + | ||
374 | + | @Callable(af) | |
375 | + | func withdraw (I,aF) = { | |
376 | + | let at = toBase58String(af.caller.bytes) | |
377 | + | let G = { | |
378 | + | let B = getString(this, F(I)) | |
379 | + | if ($isInstanceOf(B, "String")) | |
380 | + | then { | |
381 | + | let C = B | |
382 | + | C | |
383 | + | } | |
384 | + | else l | |
385 | + | } | |
386 | + | let aG = { | |
387 | + | let B = getInteger(this, V(I)) | |
388 | + | if ($isInstanceOf(B, "Int")) | |
389 | + | then { | |
390 | + | let C = B | |
391 | + | C | |
336 | 392 | } | |
337 | 393 | else c | |
338 | 394 | } | |
339 | - | let | |
340 | - | if ((0 > | |
395 | + | let ak = (aG - aF) | |
396 | + | if ((0 > aF)) | |
341 | 397 | then throw("El balance de retiro no puede ser negativo!") | |
342 | - | else if ((0 >= | |
398 | + | else if ((0 >= ak)) | |
343 | 399 | then throw("Ooppss.. Insuficiente balance!") | |
344 | - | else ScriptResult(WriteSet([DataEntry( | |
400 | + | else ScriptResult(WriteSet([DataEntry(I, ak)]), TransferSet([ScriptTransfer(af.caller, aF, a)])) | |
345 | 401 | } | |
346 | 402 | ||
347 | 403 | ||
348 | - | @Verifier( | |
349 | - | func | |
350 | - | let | |
351 | - | if ($isInstanceOf( | |
404 | + | @Verifier(aH) | |
405 | + | func aI () = { | |
406 | + | let B = aH | |
407 | + | if ($isInstanceOf(B, "SetScriptTransaction")) | |
352 | 408 | then { | |
353 | - | let | |
354 | - | sigVerify( | |
409 | + | let aJ = B | |
410 | + | sigVerify(aH.bodyBytes, aH.proofs[0], m) | |
355 | 411 | } | |
356 | - | else if (if ($isInstanceOf( | |
412 | + | else if (if ($isInstanceOf(B, "DataTransaction")) | |
357 | 413 | then true | |
358 | - | else $isInstanceOf( | |
414 | + | else $isInstanceOf(B, "ReissueTransaction")) | |
359 | 415 | then { | |
360 | - | let | |
416 | + | let aK = B | |
361 | 417 | true | |
362 | 418 | } | |
363 | - | else if ($isInstanceOf( | |
419 | + | else if ($isInstanceOf(B, "TransferTransaction")) | |
364 | 420 | then { | |
365 | - | let | |
421 | + | let aH = B | |
366 | 422 | true | |
367 | 423 | } | |
368 | - | else if ($isInstanceOf( | |
424 | + | else if ($isInstanceOf(B, "ExchangeTransaction")) | |
369 | 425 | then { | |
370 | - | let | |
371 | - | let | |
426 | + | let aH = B | |
427 | + | let aL = if (!(isDefined(aH.sellOrder.assetPair.priceAsset))) | |
372 | 428 | then true | |
373 | - | else !(isDefined( | |
374 | - | | |
429 | + | else !(isDefined(aH.sellOrder.assetPair.amountAsset)) | |
430 | + | aL | |
375 | 431 | } | |
376 | 432 | else false | |
377 | 433 | } | |
378 | 434 |
github/deemru/w8io/169f3d6 1008.92 ms ◑