tx · ceK4SEa6ABcUedxNKJsTDHWuhboD313v3YK5wxmMfMr 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL: -0.01000000 Waves 2021.10.28 14:07 [1766065] smart account 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL > SELF 0.00000000 Waves
{ "type": 13, "id": "ceK4SEa6ABcUedxNKJsTDHWuhboD313v3YK5wxmMfMr", "fee": 1000000, "feeAssetId": null, "timestamp": 1635419270092, "version": 2, "chainId": 84, "sender": "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL", "senderPublicKey": "A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo", "proofs": [ "FnWRrJPcFNr4VE6zJdh1khZ2xrrH2H14HN4DRKgN93u7cBSjUqiCu8zc3kqzSsiVPMigNtp4YdkQcPmQvD6WSDp" ], "script": "base64:AAIDAAAAAAAAABEIARIECgIICBIHCgUICAgBAQAAADQAAAAAB3hCaXRDTzIBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAAhzdGFydFF0eQAAAAAAAASqHQAAAAAMRmlyc3RGYXNlUXR5AAAAAAAAAHnZAAAAAA1TZWNvbmRGYXNlUXR5AAAAAAAABDBEAAAAAAhub21QcmljZQAAAAAAAAAAAQAAAAADd3ZzAAAAAAAF9eEAAAAAABBzdXBwbGllckRpc2NvdW50AAAAAAAAAAAMAAAAAAROT05FAgAAAARub25lAAAAAAtPd25lclB1YktleQEAAAAghwo2r32S4n1Z60PhHNuoYGhC3c/vioX75j3CW29sfHYAAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVEtIFY+5IU8slvHa3AYnimNvIdHW5z2X2gAAAAAEZUFkZAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVEwWqDv2xgQzga5tOuDFjQrGc4MHZcTC8gAAAAAEcEFkZAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVNPFIUJMxXdBxNnhCNkHVKgXH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AAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwevVb2+", "height": 1766065, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EY2WkrsHVZeAzkZV1xjJ2exFQffCunHSYJgygcHUSVXV Next: 2L9Yvfhyuxss3yEEn4CMEC1nKzbMhWkPNWBwUW1gMFRb Diff:
Old | New | Differences | |
---|---|---|---|
104 | 104 | func N (D) = x(M(D)) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func O ( | |
107 | + | func O (A) = "Tokens ofertados al 6% en la I Fase Pre-ICO:" | |
108 | 108 | ||
109 | 109 | ||
110 | - | func | |
110 | + | func P (A) = x(O(A)) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func | |
113 | + | func Q (A) = "Precio Nominal, 1 token Bit-CO2:" | |
114 | 114 | ||
115 | 115 | ||
116 | - | func | |
116 | + | func R (A) = "Precio de 1 token Bit-CO2 con el 6% de descuento" | |
117 | 117 | ||
118 | 118 | ||
119 | - | func | |
119 | + | func S (A) = s(R(A)) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func | |
122 | + | func T (A) = "Saldo de tokens al 6% en oferta, actual:" | |
123 | 123 | ||
124 | 124 | ||
125 | - | func | |
125 | + | func U (A) = s(T(A)) | |
126 | 126 | ||
127 | 127 | ||
128 | - | func | |
128 | + | func V (W,A) = "Order_№:" | |
129 | 129 | ||
130 | 130 | ||
131 | - | func X (A) = s(W | |
131 | + | func X (W,A) = s(V(W, A)) | |
132 | 132 | ||
133 | 133 | ||
134 | - | func Y (A) = " | |
134 | + | func Y (A) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
135 | 135 | ||
136 | 136 | ||
137 | - | func Z ( | |
137 | + | func Z (A) = x(Y(A)) | |
138 | 138 | ||
139 | 139 | ||
140 | - | func | |
140 | + | func aa (A) = "País de Residencia del Usuario:" | |
141 | 141 | ||
142 | 142 | ||
143 | - | func | |
143 | + | func ab (A) = x(aa(A)) | |
144 | 144 | ||
145 | 145 | ||
146 | - | func | |
146 | + | func ac (A) = "Descuento para el Usuario, 6%:" | |
147 | 147 | ||
148 | 148 | ||
149 | - | func | |
149 | + | func ad (A) = s(ac(A)) | |
150 | 150 | ||
151 | 151 | ||
152 | - | func | |
152 | + | func ae (A) = "Orden de Compra, cantidad solicitada:" | |
153 | 153 | ||
154 | 154 | ||
155 | - | func | |
155 | + | func af (A) = s(ae(A)) | |
156 | 156 | ||
157 | 157 | ||
158 | - | func | |
158 | + | func ag (D) = "Ingresos por Venta Directa / BlockChain:" | |
159 | 159 | ||
160 | 160 | ||
161 | - | func | |
161 | + | func ah (D) = s(ag(D)) | |
162 | 162 | ||
163 | 163 | ||
164 | - | func aj (A) = s(ai(A)) | |
165 | - | ||
166 | - | ||
167 | - | func ak (A) = "SupplierDiscount, max_%:" | |
168 | - | ||
169 | - | ||
170 | - | func al (A) = s(ak(A)) | |
171 | - | ||
172 | - | ||
173 | - | func am (A) = "Orden de Compra, cantidad solicitada:" | |
174 | - | ||
175 | - | ||
176 | - | func an (A) = s(am(A)) | |
177 | - | ||
178 | - | ||
179 | - | func ao (A) = "Tokens Ofertados en la presente etapa / Saldo:" | |
180 | - | ||
181 | - | ||
182 | - | func ap (A) = s(ao(A)) | |
183 | - | ||
184 | - | ||
185 | - | func aq (A) = "Balance/Saldo, tokens:" | |
186 | - | ||
187 | - | ||
188 | - | func ar (A) = s(aq(A)) | |
189 | - | ||
190 | - | ||
191 | - | func as (D) = "Ingresos por Venta Directa / BlockChain:" | |
192 | - | ||
193 | - | ||
194 | - | func at (D) = s(as(D)) | |
195 | - | ||
196 | - | ||
197 | - | @Callable(au) | |
198 | - | func deposit (av,aw) = { | |
199 | - | let ax = extract(au.payment) | |
200 | - | if ((ax.assetId != a)) | |
164 | + | @Callable(ai) | |
165 | + | func deposit (aj,ak) = { | |
166 | + | let al = extract(ai.payment) | |
167 | + | if ((al.assetId != a)) | |
201 | 168 | then throw("deposito permitido solo en xBitCO2 tokens") | |
202 | 169 | else { | |
203 | - | let D = toBase58String( | |
204 | - | let | |
170 | + | let D = toBase58String(ai.caller.bytes) | |
171 | + | let am = { | |
205 | 172 | let v = getInteger(this, D) | |
206 | 173 | if ($isInstanceOf(v, "Int")) | |
207 | 174 | then { | |
210 | 177 | } | |
211 | 178 | else b | |
212 | 179 | } | |
213 | - | let | |
214 | - | if ((0 >= | |
180 | + | let an = (am + al.amount) | |
181 | + | if ((0 >= an)) | |
215 | 182 | then throw("No hay xBitCO2 en su balance") | |
216 | - | else WriteSet([DataEntry(D, | |
183 | + | else WriteSet([DataEntry(D, an)]) | |
217 | 184 | } | |
218 | 185 | } | |
219 | 186 | ||
220 | 187 | ||
221 | 188 | ||
222 | - | @Callable( | |
223 | - | func purchase (A, | |
224 | - | let | |
225 | - | if (isDefined( | |
189 | + | @Callable(ai) | |
190 | + | func purchase (A,ao,ap,aq,ar) = { | |
191 | + | let al = extract(ai.payment) | |
192 | + | if (isDefined(al.assetId)) | |
226 | 193 | then throw("En la presente Plastaforma Ud. puede adquirir sus tokens xBitCO2 usando WavesKeeper y su token de pago Waves.") | |
227 | 194 | else { | |
228 | 195 | let D = { | |
234 | 201 | } | |
235 | 202 | else h | |
236 | 203 | } | |
237 | - | let | |
238 | - | let v = getInteger(this, | |
204 | + | let as = { | |
205 | + | let v = getInteger(this, T(A)) | |
239 | 206 | if ($isInstanceOf(v, "Int")) | |
240 | 207 | then { | |
241 | 208 | let w = v | |
243 | 210 | } | |
244 | 211 | else b | |
245 | 212 | } | |
246 | - | let | |
247 | - | let v = getInteger(this, | |
213 | + | let at = { | |
214 | + | let v = getInteger(this, ag(D)) | |
248 | 215 | if ($isInstanceOf(v, "Int")) | |
249 | 216 | then { | |
250 | 217 | let w = v | |
252 | 219 | } | |
253 | 220 | else 0 | |
254 | 221 | } | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | if (( | |
222 | + | let au = toBase58String(ai.caller.bytes) | |
223 | + | let av = ((((100 - aq) * e) * f) / 100) | |
224 | + | let aw = (ar * av) | |
225 | + | if ((aw > al.amount)) | |
259 | 226 | then throw("Payment Amount can't be less than item Purchase Order") | |
260 | - | else if (( | |
227 | + | else if ((al.amount > aw)) | |
261 | 228 | then throw("Payment Amount can't be higher than item Purchase Order") | |
262 | - | else ScriptResult(WriteSet([DataEntry(z(A), "Conservación Forestal Amazónica"), DataEntry(E(A), "Reserva Amazónica Achuar-Kapawi"), DataEntry(G(A), "Ecuador"), DataEntry(I(A), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(K(A), "Comunidad Achuar Kapawi"), DataEntry(M(D), "Fundación Alianza Ecológica 'NASE'"), DataEntry(" | |
229 | + | else ScriptResult(WriteSet([DataEntry(z(A), "Conservación Forestal Amazónica"), DataEntry(E(A), "Reserva Amazónica Achuar-Kapawi"), DataEntry(G(A), "Ecuador"), DataEntry(I(A), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(K(A), "Comunidad Achuar Kapawi"), DataEntry(M(D), "Fundación Alianza Ecológica 'NASE'"), DataEntry("Cantidad de Tokens Bit-CO2 a Emitir, I y II Fase Pre-ICO", b), DataEntry(O(A), c), DataEntry(Q(A), "10.00 Euros"), DataEntry(R(A), av), DataEntry(V(au, A), (X(au, A) + 1)), DataEntry(Y(A), ao), DataEntry(aa(A), ap), DataEntry(ac(A), aq), DataEntry(ae(A), ar), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(T(A), ((U(A) + as) - ar)), DataEntry(ag(D), (ah(D) + al.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(au), ar, a)])) | |
263 | 230 | } | |
264 | 231 | } | |
265 | 232 | ||
266 | 233 | ||
267 | - | ||
268 | - | @Callable(au) | |
269 | - | func withdraw (A,aJ) = { | |
270 | - | let aG = toBase58String(au.caller.bytes) | |
271 | - | let D = { | |
272 | - | let v = getString(this, C(A)) | |
273 | - | if ($isInstanceOf(v, "String")) | |
274 | - | then { | |
275 | - | let w = v | |
276 | - | w | |
277 | - | } | |
278 | - | else h | |
279 | - | } | |
280 | - | let aE = { | |
281 | - | let v = getInteger(this, aq(A)) | |
282 | - | if ($isInstanceOf(v, "Int")) | |
283 | - | then { | |
284 | - | let w = v | |
285 | - | w | |
286 | - | } | |
287 | - | else b | |
288 | - | } | |
289 | - | let az = (aE - aJ) | |
290 | - | if ((0 > aJ)) | |
291 | - | then throw("El balance de retiro no puede ser negativo!") | |
292 | - | else if ((0 >= az)) | |
293 | - | then throw("Ooppss.. Insuficiente balance!") | |
294 | - | else ScriptResult(WriteSet([DataEntry(A, az)]), TransferSet([ScriptTransfer(au.caller, aJ, a)])) | |
295 | - | } | |
296 | - | ||
297 | - | ||
298 | - | @Verifier(aK) | |
299 | - | func aL () = { | |
300 | - | let v = aK | |
234 | + | @Verifier(ax) | |
235 | + | func ay () = { | |
236 | + | let v = ax | |
301 | 237 | if ($isInstanceOf(v, "SetScriptTransaction")) | |
302 | 238 | then { | |
303 | - | let | |
304 | - | sigVerify( | |
239 | + | let az = v | |
240 | + | sigVerify(ax.bodyBytes, ax.proofs[0], i) | |
305 | 241 | } | |
306 | 242 | else if (if ($isInstanceOf(v, "ReissueTransaction")) | |
307 | 243 | then true | |
308 | 244 | else $isInstanceOf(v, "DataTransaction")) | |
309 | 245 | then { | |
310 | - | let | |
246 | + | let aA = v | |
311 | 247 | true | |
312 | 248 | } | |
313 | 249 | else if ($isInstanceOf(v, "TransferTransaction")) | |
314 | 250 | then { | |
315 | - | let | |
251 | + | let ax = v | |
316 | 252 | true | |
317 | 253 | } | |
318 | 254 | else if ($isInstanceOf(v, "ExchangeTransaction")) | |
319 | 255 | then { | |
320 | - | let | |
321 | - | let | |
256 | + | let ax = v | |
257 | + | let aB = if (!(isDefined(ax.sellOrder.assetPair.priceAsset))) | |
322 | 258 | then true | |
323 | - | else !(isDefined( | |
324 | - | | |
259 | + | else !(isDefined(ax.sellOrder.assetPair.amountAsset)) | |
260 | + | aB | |
325 | 261 | } | |
326 | 262 | else false | |
327 | 263 | } |
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 = 305693 | |
7 | 7 | ||
8 | 8 | let c = 31193 | |
9 | 9 | ||
10 | 10 | let d = 274500 | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = 12 | |
17 | 17 | ||
18 | 18 | let h = "none" | |
19 | 19 | ||
20 | 20 | let i = base58'A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo' | |
21 | 21 | ||
22 | 22 | let j = Address(base58'3Mvn8oonnpiasA3bkq36N9qeqqXWfFW437o') | |
23 | 23 | ||
24 | 24 | let k = Address(base58'3MvrQGkHQtyLTC2QXgPnQ6oCEWhHyUJpU4q') | |
25 | 25 | ||
26 | 26 | let l = Address(base58'3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL') | |
27 | 27 | ||
28 | 28 | let m = 18 | |
29 | 29 | ||
30 | 30 | let n = 88 | |
31 | 31 | ||
32 | 32 | let o = 5 | |
33 | 33 | ||
34 | 34 | let p = 10 | |
35 | 35 | ||
36 | 36 | let q = 1 | |
37 | 37 | ||
38 | 38 | let r = 1 | |
39 | 39 | ||
40 | 40 | func s (t) = { | |
41 | 41 | let u = { | |
42 | 42 | let v = getInteger(this, t) | |
43 | 43 | if ($isInstanceOf(v, "Int")) | |
44 | 44 | then { | |
45 | 45 | let w = v | |
46 | 46 | w | |
47 | 47 | } | |
48 | 48 | else 0 | |
49 | 49 | } | |
50 | 50 | u | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func x (t) = { | |
55 | 55 | let y = { | |
56 | 56 | let v = getString(this, t) | |
57 | 57 | if ($isInstanceOf(v, "String")) | |
58 | 58 | then { | |
59 | 59 | let w = v | |
60 | 60 | w | |
61 | 61 | } | |
62 | 62 | else h | |
63 | 63 | } | |
64 | 64 | y | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func z (A) = "Categoría:" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func B (A) = x(z(A)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func C (D) = (D + "Comunidad Achuar Kapawi del Ecuador") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func E (A) = "Nombre del Proyecto:" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func F (A) = x(E(A)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func G (A) = "País | Ubicación:" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func H (A) = x(G(A)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func I (A) = "Código:" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func J (A) = x(I(A)) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func K (A) = "Propietario | Beneficiario del Proyecto:" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func L (A) = x(K(A)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func M (D) = "Desarrollador | Responsable Legal:" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func N (D) = x(M(D)) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func O ( | |
107 | + | func O (A) = "Tokens ofertados al 6% en la I Fase Pre-ICO:" | |
108 | 108 | ||
109 | 109 | ||
110 | - | func | |
110 | + | func P (A) = x(O(A)) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func | |
113 | + | func Q (A) = "Precio Nominal, 1 token Bit-CO2:" | |
114 | 114 | ||
115 | 115 | ||
116 | - | func | |
116 | + | func R (A) = "Precio de 1 token Bit-CO2 con el 6% de descuento" | |
117 | 117 | ||
118 | 118 | ||
119 | - | func | |
119 | + | func S (A) = s(R(A)) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func | |
122 | + | func T (A) = "Saldo de tokens al 6% en oferta, actual:" | |
123 | 123 | ||
124 | 124 | ||
125 | - | func | |
125 | + | func U (A) = s(T(A)) | |
126 | 126 | ||
127 | 127 | ||
128 | - | func | |
128 | + | func V (W,A) = "Order_№:" | |
129 | 129 | ||
130 | 130 | ||
131 | - | func X (A) = s(W | |
131 | + | func X (W,A) = s(V(W, A)) | |
132 | 132 | ||
133 | 133 | ||
134 | - | func Y (A) = " | |
134 | + | func Y (A) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
135 | 135 | ||
136 | 136 | ||
137 | - | func Z ( | |
137 | + | func Z (A) = x(Y(A)) | |
138 | 138 | ||
139 | 139 | ||
140 | - | func | |
140 | + | func aa (A) = "País de Residencia del Usuario:" | |
141 | 141 | ||
142 | 142 | ||
143 | - | func | |
143 | + | func ab (A) = x(aa(A)) | |
144 | 144 | ||
145 | 145 | ||
146 | - | func | |
146 | + | func ac (A) = "Descuento para el Usuario, 6%:" | |
147 | 147 | ||
148 | 148 | ||
149 | - | func | |
149 | + | func ad (A) = s(ac(A)) | |
150 | 150 | ||
151 | 151 | ||
152 | - | func | |
152 | + | func ae (A) = "Orden de Compra, cantidad solicitada:" | |
153 | 153 | ||
154 | 154 | ||
155 | - | func | |
155 | + | func af (A) = s(ae(A)) | |
156 | 156 | ||
157 | 157 | ||
158 | - | func | |
158 | + | func ag (D) = "Ingresos por Venta Directa / BlockChain:" | |
159 | 159 | ||
160 | 160 | ||
161 | - | func | |
161 | + | func ah (D) = s(ag(D)) | |
162 | 162 | ||
163 | 163 | ||
164 | - | func aj (A) = s(ai(A)) | |
165 | - | ||
166 | - | ||
167 | - | func ak (A) = "SupplierDiscount, max_%:" | |
168 | - | ||
169 | - | ||
170 | - | func al (A) = s(ak(A)) | |
171 | - | ||
172 | - | ||
173 | - | func am (A) = "Orden de Compra, cantidad solicitada:" | |
174 | - | ||
175 | - | ||
176 | - | func an (A) = s(am(A)) | |
177 | - | ||
178 | - | ||
179 | - | func ao (A) = "Tokens Ofertados en la presente etapa / Saldo:" | |
180 | - | ||
181 | - | ||
182 | - | func ap (A) = s(ao(A)) | |
183 | - | ||
184 | - | ||
185 | - | func aq (A) = "Balance/Saldo, tokens:" | |
186 | - | ||
187 | - | ||
188 | - | func ar (A) = s(aq(A)) | |
189 | - | ||
190 | - | ||
191 | - | func as (D) = "Ingresos por Venta Directa / BlockChain:" | |
192 | - | ||
193 | - | ||
194 | - | func at (D) = s(as(D)) | |
195 | - | ||
196 | - | ||
197 | - | @Callable(au) | |
198 | - | func deposit (av,aw) = { | |
199 | - | let ax = extract(au.payment) | |
200 | - | if ((ax.assetId != a)) | |
164 | + | @Callable(ai) | |
165 | + | func deposit (aj,ak) = { | |
166 | + | let al = extract(ai.payment) | |
167 | + | if ((al.assetId != a)) | |
201 | 168 | then throw("deposito permitido solo en xBitCO2 tokens") | |
202 | 169 | else { | |
203 | - | let D = toBase58String( | |
204 | - | let | |
170 | + | let D = toBase58String(ai.caller.bytes) | |
171 | + | let am = { | |
205 | 172 | let v = getInteger(this, D) | |
206 | 173 | if ($isInstanceOf(v, "Int")) | |
207 | 174 | then { | |
208 | 175 | let w = v | |
209 | 176 | w | |
210 | 177 | } | |
211 | 178 | else b | |
212 | 179 | } | |
213 | - | let | |
214 | - | if ((0 >= | |
180 | + | let an = (am + al.amount) | |
181 | + | if ((0 >= an)) | |
215 | 182 | then throw("No hay xBitCO2 en su balance") | |
216 | - | else WriteSet([DataEntry(D, | |
183 | + | else WriteSet([DataEntry(D, an)]) | |
217 | 184 | } | |
218 | 185 | } | |
219 | 186 | ||
220 | 187 | ||
221 | 188 | ||
222 | - | @Callable( | |
223 | - | func purchase (A, | |
224 | - | let | |
225 | - | if (isDefined( | |
189 | + | @Callable(ai) | |
190 | + | func purchase (A,ao,ap,aq,ar) = { | |
191 | + | let al = extract(ai.payment) | |
192 | + | if (isDefined(al.assetId)) | |
226 | 193 | then throw("En la presente Plastaforma Ud. puede adquirir sus tokens xBitCO2 usando WavesKeeper y su token de pago Waves.") | |
227 | 194 | else { | |
228 | 195 | let D = { | |
229 | 196 | let v = getString(this, C(A)) | |
230 | 197 | if ($isInstanceOf(v, "String")) | |
231 | 198 | then { | |
232 | 199 | let w = v | |
233 | 200 | w | |
234 | 201 | } | |
235 | 202 | else h | |
236 | 203 | } | |
237 | - | let | |
238 | - | let v = getInteger(this, | |
204 | + | let as = { | |
205 | + | let v = getInteger(this, T(A)) | |
239 | 206 | if ($isInstanceOf(v, "Int")) | |
240 | 207 | then { | |
241 | 208 | let w = v | |
242 | 209 | w | |
243 | 210 | } | |
244 | 211 | else b | |
245 | 212 | } | |
246 | - | let | |
247 | - | let v = getInteger(this, | |
213 | + | let at = { | |
214 | + | let v = getInteger(this, ag(D)) | |
248 | 215 | if ($isInstanceOf(v, "Int")) | |
249 | 216 | then { | |
250 | 217 | let w = v | |
251 | 218 | w | |
252 | 219 | } | |
253 | 220 | else 0 | |
254 | 221 | } | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | if (( | |
222 | + | let au = toBase58String(ai.caller.bytes) | |
223 | + | let av = ((((100 - aq) * e) * f) / 100) | |
224 | + | let aw = (ar * av) | |
225 | + | if ((aw > al.amount)) | |
259 | 226 | then throw("Payment Amount can't be less than item Purchase Order") | |
260 | - | else if (( | |
227 | + | else if ((al.amount > aw)) | |
261 | 228 | then throw("Payment Amount can't be higher than item Purchase Order") | |
262 | - | else ScriptResult(WriteSet([DataEntry(z(A), "Conservación Forestal Amazónica"), DataEntry(E(A), "Reserva Amazónica Achuar-Kapawi"), DataEntry(G(A), "Ecuador"), DataEntry(I(A), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(K(A), "Comunidad Achuar Kapawi"), DataEntry(M(D), "Fundación Alianza Ecológica 'NASE'"), DataEntry(" | |
229 | + | else ScriptResult(WriteSet([DataEntry(z(A), "Conservación Forestal Amazónica"), DataEntry(E(A), "Reserva Amazónica Achuar-Kapawi"), DataEntry(G(A), "Ecuador"), DataEntry(I(A), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(K(A), "Comunidad Achuar Kapawi"), DataEntry(M(D), "Fundación Alianza Ecológica 'NASE'"), DataEntry("Cantidad de Tokens Bit-CO2 a Emitir, I y II Fase Pre-ICO", b), DataEntry(O(A), c), DataEntry(Q(A), "10.00 Euros"), DataEntry(R(A), av), DataEntry(V(au, A), (X(au, A) + 1)), DataEntry(Y(A), ao), DataEntry(aa(A), ap), DataEntry(ac(A), aq), DataEntry(ae(A), ar), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(T(A), ((U(A) + as) - ar)), DataEntry(ag(D), (ah(D) + al.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(au), ar, a)])) | |
263 | 230 | } | |
264 | 231 | } | |
265 | 232 | ||
266 | 233 | ||
267 | - | ||
268 | - | @Callable(au) | |
269 | - | func withdraw (A,aJ) = { | |
270 | - | let aG = toBase58String(au.caller.bytes) | |
271 | - | let D = { | |
272 | - | let v = getString(this, C(A)) | |
273 | - | if ($isInstanceOf(v, "String")) | |
274 | - | then { | |
275 | - | let w = v | |
276 | - | w | |
277 | - | } | |
278 | - | else h | |
279 | - | } | |
280 | - | let aE = { | |
281 | - | let v = getInteger(this, aq(A)) | |
282 | - | if ($isInstanceOf(v, "Int")) | |
283 | - | then { | |
284 | - | let w = v | |
285 | - | w | |
286 | - | } | |
287 | - | else b | |
288 | - | } | |
289 | - | let az = (aE - aJ) | |
290 | - | if ((0 > aJ)) | |
291 | - | then throw("El balance de retiro no puede ser negativo!") | |
292 | - | else if ((0 >= az)) | |
293 | - | then throw("Ooppss.. Insuficiente balance!") | |
294 | - | else ScriptResult(WriteSet([DataEntry(A, az)]), TransferSet([ScriptTransfer(au.caller, aJ, a)])) | |
295 | - | } | |
296 | - | ||
297 | - | ||
298 | - | @Verifier(aK) | |
299 | - | func aL () = { | |
300 | - | let v = aK | |
234 | + | @Verifier(ax) | |
235 | + | func ay () = { | |
236 | + | let v = ax | |
301 | 237 | if ($isInstanceOf(v, "SetScriptTransaction")) | |
302 | 238 | then { | |
303 | - | let | |
304 | - | sigVerify( | |
239 | + | let az = v | |
240 | + | sigVerify(ax.bodyBytes, ax.proofs[0], i) | |
305 | 241 | } | |
306 | 242 | else if (if ($isInstanceOf(v, "ReissueTransaction")) | |
307 | 243 | then true | |
308 | 244 | else $isInstanceOf(v, "DataTransaction")) | |
309 | 245 | then { | |
310 | - | let | |
246 | + | let aA = v | |
311 | 247 | true | |
312 | 248 | } | |
313 | 249 | else if ($isInstanceOf(v, "TransferTransaction")) | |
314 | 250 | then { | |
315 | - | let | |
251 | + | let ax = v | |
316 | 252 | true | |
317 | 253 | } | |
318 | 254 | else if ($isInstanceOf(v, "ExchangeTransaction")) | |
319 | 255 | then { | |
320 | - | let | |
321 | - | let | |
256 | + | let ax = v | |
257 | + | let aB = if (!(isDefined(ax.sellOrder.assetPair.priceAsset))) | |
322 | 258 | then true | |
323 | - | else !(isDefined( | |
324 | - | | |
259 | + | else !(isDefined(ax.sellOrder.assetPair.amountAsset)) | |
260 | + | aB | |
325 | 261 | } | |
326 | 262 | else false | |
327 | 263 | } | |
328 | 264 |
github/deemru/w8io/169f3d6 78.69 ms ◑