tx · 6EZpXxK5TK9p626jp56x6wdgax1AnHoKJVhmWbqAX5Cv 3MyDV3xfvwKzBV8yidXnLcaeQPSdiCmhX3B: -0.01400000 Waves 2020.04.14 11:33 [953837] smart account 3MyDV3xfvwKzBV8yidXnLcaeQPSdiCmhX3B > SELF 0.00000000 Waves
{ "type": 13, "id": "6EZpXxK5TK9p626jp56x6wdgax1AnHoKJVhmWbqAX5Cv", "fee": 1400000, "feeAssetId": null, "timestamp": 1586853130412, "version": 1, "sender": "3MyDV3xfvwKzBV8yidXnLcaeQPSdiCmhX3B", "senderPublicKey": "YmYsKHtsKRVKHxPW2qUzePRZWkwcZDryNtR31EGizkx", "proofs": [ "5YiHLsDN9Y4QMr5yewih3xjKDg8HDopPBWKNaf2XrVvUGSwTJvbh9xrXX9eWxbYvqLd5CJQ5PZ7e9TLb3TjAnxLh" ], "script": "base64:AAIDAAAAAAAAADAIARIWChQICAgICAgICAgICAgICAgBAQEBARIUChIICAEIAQEBCAEBAQgBAQEBCAEAAAB1AAAAAAdiQml0Q08yAQAAACAkubz3kBYNSCNdNAZyd/QzZ1pU4dNNWTExj4jouAng0QAAAAAIbm9tUHJpY2UAAAAAAAAAAAEAAAAAA3d2cwAAAAAABfXhAAAAAAAQc3VwcGxpZXJEaXNjb3VudAAAAAAAAAAADAAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIAgjYJZN0ooEg5eZ/JuydkXbHU5+gV7ekdpHJWSdU+NxAAAAAAZpc3N1ZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVQmXeqpNBOU0gXTRoLnFygaPj7BjtrRIP0AAAAABGVBZGQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTK9zs+5y/RVeIPrfhFsyze+43QDUVrfW8AAAAABHBBZGQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTUPeuO2Y1p2TpK+OH14WsDuVCV2jcMFFQAAAAAA2lndgAAAAAAAAAAEgAAAAADY1BCAAAA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EtleUluZ3JFY29zeXN0ZW1WAAAAAQUAAAAEaXRlbQUAAAANaW5nckVjb3N5c3RlbQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwcbwoKV", "chainId": 84, "height": 953837, "spentComplexity": 0 } View: original | compacted Prev: 12QHGBegRQCwbTZ4Gg2FSdnrxYv15uJUSVb8emCozxSh Next: HoxDmHXgCb3n7uHNJVCoPP94XzfZYSFpbUBnXHoM5FG5 Diff:
Old | New | Differences | |
---|---|---|---|
357 | 357 | func addProyectos (title,categoria,subCategoria,nombreProj,country,description,desarrollador,responsable1,tel1,messenger1,email1,responsable2,tel2,messenger2,email2,tokTotal,tokInicial,ingrCliente,ingrVendedor,ingrEcosystem) = { | |
358 | 358 | let supplier = toBase58String(i.caller.bytes) | |
359 | 359 | let item = getKeyProyecto(supplier, title) | |
360 | - | WriteSet([DataEntry(getKeyProyecto(supplier, title | |
360 | + | WriteSet([DataEntry(getKeyProyecto(supplier, title), title), DataEntry(getKeyProyectoCategoria(item), categoria), DataEntry(getKeyProyectoSubCategoria(item), subCategoria), DataEntry(getKeyNombreProyecto(item), nombreProj), DataEntry(getKeyPaisProyecto(item), country), DataEntry(getKeyDescriptionProyecto(item), description), DataEntry(getKeyDesarrolladorProyecto(item), desarrollador), DataEntry(getKeyResp1Proyecto(item), responsable1), DataEntry(getKeyTelResp1Proyecto(item), tel1), DataEntry(getKeyMessResp1Proyecto(item), messenger1), DataEntry(getKeyEmailResp1Proyecto(item), email1), DataEntry(getKeyTelResp2Proyecto(item), responsable2), DataEntry(getKeyMessResp2Proyecto(item), tel2), DataEntry(getKeyEmailResp2Proyecto(item), messenger2), DataEntry(getKeyTokTotalQtyProyecto(item), tokTotal), DataEntry(getKeyTokInicialQtyProyecto(item), tokInicial), DataEntry(getKeyIngrClienteProj(item), ingrCliente), DataEntry(getKeyIngrVendedorProj(item), ingrVendedor), DataEntry(getKeyIngrEcosystemProj(item), ingrEcosystem)]) | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let bBitCO2 = base58'3UMwob2PDKVYmDMZZdT9ijK7EdRJZKFoBLCAXnwKtNN4' | |
5 | 5 | ||
6 | 6 | let nomPrice = 1 | |
7 | 7 | ||
8 | 8 | let wvs = 100000000 | |
9 | 9 | ||
10 | 10 | let supplierDiscount = 12 | |
11 | 11 | ||
12 | 12 | let NONE = "none" | |
13 | 13 | ||
14 | 14 | let OwnerPubKey = base58'YmYsKHtsKRVKHxPW2qUzePRZWkwcZDryNtR31EGizkx' | |
15 | 15 | ||
16 | 16 | let issuer = Address(base58'3MsQwxepm5q2BG1PYUMwqoD2JLgKrACa3P2') | |
17 | 17 | ||
18 | 18 | let eAdd = Address(base58'3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4') | |
19 | 19 | ||
20 | 20 | let pAdd = Address(base58'3N9GKCsktAL7oPFmaKsgPBoDfu3ijk23Vmm') | |
21 | 21 | ||
22 | 22 | let igv = 18 | |
23 | 23 | ||
24 | 24 | let cPB = 88 | |
25 | 25 | ||
26 | 26 | let uIP = 5 | |
27 | 27 | ||
28 | 28 | let pIP = 10 | |
29 | 29 | ||
30 | 30 | let sIP = 1 | |
31 | 31 | ||
32 | 32 | let eIP = 1 | |
33 | 33 | ||
34 | 34 | func getNumberByKey (key) = { | |
35 | 35 | let num = match getInteger(this, key) { | |
36 | 36 | case a: Int => | |
37 | 37 | a | |
38 | 38 | case _ => | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | num | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getStrByKey (key) = { | |
46 | 46 | let str = match getString(this, key) { | |
47 | 47 | case a: String => | |
48 | 48 | a | |
49 | 49 | case _ => | |
50 | 50 | NONE | |
51 | 51 | } | |
52 | 52 | str | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getKeyItem (supplier,title) = ("A y G:" + toBase58String(sha256(toBytes((supplier + title))))) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getKeyItemSupplier (item) = (item + "_P SAC") | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getValueItemSupplier (item) = getStrByKey(getKeyItemSupplier(item)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getKeySupplier (supplier) = (supplier + "_P SAC") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getValueSupplier (supplier) = getStrByKey(getKeySupplier(supplier)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getKeyEnte (supplier,title) = ("RubroEmpresarial:" + toBase58String(sha256(toBytes((supplier + title))))) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getKeyEnteCategoria (item) = (item + "Vendedor, Categoria") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getValueEnteCategoria (item) = getStrByKey(getKeyEnteCategoria(item)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getKeyEnteSubCategoria (item) = (item + "Vendedor, Sub-Categoria") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getValueEnteSubCategoria (item) = getStrByKey(getKeyEnteSubCategoria(item)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getKeyNombreVendedor (item) = "NombreVendedor:" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getValueNombreVendedor (item) = getStrByKey(getKeyNombreVendedor(item)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getKeyPaisVendedor (item) = "PaisVendedor:" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getValuePaisVendedor (item) = getStrByKey(getKeyPaisVendedor(item)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getKeyTelVendedor (item) = "Tel. Vendedor:" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getValueTelVendedor (item) = getStrByKey(getKeyTelVendedor(item)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getKeyMessVendedor (item) = "Servicio_Messenger(Wapp,Skype,etc):" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getValueMessVendedor (item) = getStrByKey(getKeyMessVendedor(item)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getKeyEmailVendedor (item) = "Email Vendedor:" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getValueEmailVendedor (item) = getStrByKey(getKeyEmailVendedor(item)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getKeyDescriptionVendedor (item) = "Descripcion de la Entidad / Otros:" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getValueDescriptionVendedor (item) = getStrByKey(getKeyDescriptionVendedor(item)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func getKeyListaVendedor (item) = "Lista de VendedoresGTS:" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getValueListaVendedor (item) = getStrByKey(getKeyListaVendedor(item)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getKeyCodigoVendedor (item) = "CodigoGTS del Vendedor:" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getValueCodigoVendedor (item) = getStrByKey(getKeyCodigoVendedor(item)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getKeyNameProd1V (item) = "NombreProducto1:" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getValueNameProd1V (item) = getStrByKey(getKeyNameProd1V(item)) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func getKeyNameProd2V (item) = "NombreProducto2:" | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func getValueNameProd2V (item) = getStrByKey(getKeyNameProd2V(item)) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func getKeyNameProd3V (item) = "NombreProducto3:" | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func getValueNameProd3V (item) = getStrByKey(getKeyNameProd3V(item)) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getKeyPrecioProd1V (item) = "PrecioNominalProducto1:" | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getValuePrecioProd1V (item) = getNumberByKey(getKeyPrecioProd1V(item)) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getKeyPrecioProd2V (item) = "PrecioNominalProducto2:" | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getValuePrecioProd2V (item) = getNumberByKey(getKeyPrecioProd2V(item)) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getKeyPrecioProd3V (item) = "PrecioNominalProducto3:" | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func getValuePrecioProd3V (item) = getNumberByKey(getKeyPrecioProd3V(item)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getKeyDescProd1V (item) = "DescuentoProducto1:" | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func getValueDescProd1V (item) = getNumberByKey(getKeyDescProd1V(item)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getKeyDescProd2V (item) = "DescuentoProducto2:" | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getValueDescProd2V (item) = getNumberByKey(getKeyDescProd2V(item)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getKeyDescProd3V (item) = "DescuentoProducto3:" | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func getValueDescProd3V (item) = getNumberByKey(getKeyDescProd3V(item)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func getKeyQtyProd1V (item) = "CantidadProducto1:" | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func getValueQtyProd1V (item) = getNumberByKey(getKeyQtyProd1V(item)) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func getKeyQtyProd2V (item) = "CantidadProducto2:" | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func getValueQtyProd2V (item) = getNumberByKey(getKeyQtyProd2V(item)) | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func getKeyQtyProd3V (item) = "CantidadProducto3:" | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func getValueQtyProd3V (item) = getNumberByKey(getKeyQtyProd3V(item)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func getKeyIngrProyV (item) = "Ingreso para el Proyecto por VentasGTS:" | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func getValueIngrProyV (item) = getNumberByKey(getKeyIngrProyV(item)) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func getKeyIngrVendedor (item) = "Ingreso para el Vendedor por la Venta:" | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func getValueIngrVendedor (item) = getNumberByKey(getKeyIngrVendedor(item)) | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func getKeyIngrEcosystemV (item) = "Ingreso para el Ecosistema por VentasGTS:" | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func getValueIngrEcosystemV (item) = getNumberByKey(getKeyIngrEcosystemV(item)) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func getKeyProject (pA) = ("ItemProject" + pA) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func getValueProject (pA) = getStrByKey(getKeyProject(pA)) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func getKeyProyecto (supplier,title) = ("itemProyecto:" + toBase58String(sha256(toBytes((supplier + title))))) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func getKeyItemProyecto (itemProject) = ("ItemProyecto" + itemProject) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func getKeyProyectoCategoria (itemProject) = "Proyecto, Categoria" | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func getValueProyectoCategoria (itemProject) = getStrByKey(getKeyProyectoCategoria(itemProject)) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func getKeyProyectoSubCategoria (itemProject) = "Proyecto, Sub-Categoria" | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func getValueProyectoSubCategoria (itemProject) = getStrByKey(getKeyProyectoSubCategoria(itemProject)) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func getKeyNombreProyecto (item) = "NombreProyecto:" | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func getValueNombreProyecto (item) = getStrByKey(getKeyNombreProyecto(item)) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func getKeyPaisProyecto (item) = "PaisProyecto:" | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func getValuePaisProyecto (item) = getStrByKey(getKeyPaisProyecto(item)) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func getKeyDescriptionProyecto (item) = "Descripcion del Proyecto:" | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func getValueDescriptionProyecto (item) = getStrByKey(getKeyDescriptionProyecto(item)) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func getKeyDesarrolladorProyecto (item) = "Desarrollador del Proyecto:" | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func getValueDesarrolladorProyecto (item) = getStrByKey(getKeyDesarrolladorProyecto(item)) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func getKeyResp1Proyecto (item) = "Responsable №1 del Proyecto:" | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func getValueResp1Proyecto (item) = getStrByKey(getKeyResp1Proyecto(item)) | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func getKeyResp2Proyecto (item) = "Responsable №2 del Proyecto:" | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func getValueResp2Proyecto (item) = getStrByKey(getKeyResp2Proyecto(item)) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func getKeyTelResp1Proyecto (item) = "Responsable №1 del Proyecto / Tel.:" | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func getValueTelResp1Proyecto (item) = getStrByKey(getKeyTelResp1Proyecto(item)) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func getKeyTelResp2Proyecto (item) = "Responsable №2 del Proyecto / Tel.:" | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func getValueTelResp2Proyecto (item) = getStrByKey(getKeyTelResp2Proyecto(item)) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func getKeyMessResp1Proyecto (item) = "Responsable №1 del Proyecto / Messenger.:" | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func getValueMessResp1Proyecto (item) = getStrByKey(getKeyMessResp1Proyecto(item)) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func getKeyMessResp2Proyecto (item) = "Responsable №2 del Proyecto / Messenger:" | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func getValueMessResp2Proyecto (item) = getStrByKey(getKeyMessResp2Proyecto(item)) | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func getKeyEmailResp1Proyecto (item) = "Responsable №1 del Proyecto / Email.:" | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func getValueEmailResp1Proyecto (item) = getStrByKey(getKeyEmailResp1Proyecto(item)) | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func getKeyEmailResp2Proyecto (item) = "Responsable №2 del Proyecto / Email:" | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | func getValueEmailResp2Proyecto (item) = getStrByKey(getKeyEmailResp2Proyecto(item)) | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | func getKeyTokInicialQtyProyecto (item) = "Cantidad Inicial de Tokens del Proyecto:" | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func getValueTokInicialQtyProyecto (item) = getNumberByKey(getKeyTokInicialQtyProyecto(item)) | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func getKeyTokTotalQtyProyecto (item) = "Cantidad Total de Tokens del Proyecto:" | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func getValueTokTotalQtyProyecto (item) = getNumberByKey(getKeyTokTotalQtyProyecto(item)) | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func getKeyIngrClienteProj (item) = "Ingresos para el Cliente, en tokens:" | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func getValueIngrClienteProj (item) = getNumberByKey(getKeyIngrClienteProj(item)) | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func getKeyIngrVendedorProj (item) = "Ingresos para el Vendedor, en tokens:" | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func getValueIngrVendedorProj (item) = getNumberByKey(getKeyIngrVendedorProj(item)) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func getKeyIngrEcosystemProj (item) = "Ingresos para el Ecosistema, en tokens:" | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func getValueIngrEcosystemProj (item) = getNumberByKey(getKeyIngrEcosystemProj(item)) | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(i) | |
357 | 357 | func addProyectos (title,categoria,subCategoria,nombreProj,country,description,desarrollador,responsable1,tel1,messenger1,email1,responsable2,tel2,messenger2,email2,tokTotal,tokInicial,ingrCliente,ingrVendedor,ingrEcosystem) = { | |
358 | 358 | let supplier = toBase58String(i.caller.bytes) | |
359 | 359 | let item = getKeyProyecto(supplier, title) | |
360 | - | WriteSet([DataEntry(getKeyProyecto(supplier, title | |
360 | + | WriteSet([DataEntry(getKeyProyecto(supplier, title), title), DataEntry(getKeyProyectoCategoria(item), categoria), DataEntry(getKeyProyectoSubCategoria(item), subCategoria), DataEntry(getKeyNombreProyecto(item), nombreProj), DataEntry(getKeyPaisProyecto(item), country), DataEntry(getKeyDescriptionProyecto(item), description), DataEntry(getKeyDesarrolladorProyecto(item), desarrollador), DataEntry(getKeyResp1Proyecto(item), responsable1), DataEntry(getKeyTelResp1Proyecto(item), tel1), DataEntry(getKeyMessResp1Proyecto(item), messenger1), DataEntry(getKeyEmailResp1Proyecto(item), email1), DataEntry(getKeyTelResp2Proyecto(item), responsable2), DataEntry(getKeyMessResp2Proyecto(item), tel2), DataEntry(getKeyEmailResp2Proyecto(item), messenger2), DataEntry(getKeyTokTotalQtyProyecto(item), tokTotal), DataEntry(getKeyTokInicialQtyProyecto(item), tokInicial), DataEntry(getKeyIngrClienteProj(item), ingrCliente), DataEntry(getKeyIngrVendedorProj(item), ingrVendedor), DataEntry(getKeyIngrEcosystemProj(item), ingrEcosystem)]) | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | ||
365 | 365 | @Callable(i) | |
366 | 366 | func addProductosVendedorGTS (title,vendedor,codigo,nombreProd1,precioProd1,descProd1,cantidadProd1,nombreProd2,precioProd2,descProd2,cantidadProd2,nombreProd3,precioProd3,descProd3,cantidadProd3,ingrProyecto,ingrVendedor,ingrEcosystem) = { | |
367 | 367 | let supplier = toBase58String(i.caller.bytes) | |
368 | 368 | let item = getKeyItem(supplier, title) | |
369 | 369 | WriteSet([DataEntry(getKeyListaVendedor(item), title), DataEntry(("Title:_" + supplier), title), DataEntry(getKeyNombreVendedor(item), vendedor), DataEntry(getKeyCodigoVendedor(item), codigo), DataEntry(getKeyNameProd1V(item), nombreProd1), DataEntry(getKeyPrecioProd1V(item), precioProd1), DataEntry(getKeyDescProd1V(item), descProd1), DataEntry(getKeyQtyProd1V(item), cantidadProd1), DataEntry(getKeyNameProd2V(item), nombreProd2), DataEntry(getKeyPrecioProd2V(item), precioProd2), DataEntry(getKeyDescProd2V(item), descProd2), DataEntry(getKeyQtyProd2V(item), cantidadProd2), DataEntry(getKeyNameProd3V(item), nombreProd3), DataEntry(getKeyPrecioProd3V(item), precioProd3), DataEntry(getKeyDescProd3V(item), descProd3), DataEntry(getKeyQtyProd3V(item), cantidadProd3), DataEntry(getKeyIngrProyV(item), ingrProyecto), DataEntry(getKeyIngrVendedor(item), ingrVendedor), DataEntry(getKeyIngrEcosystemV(item), ingrEcosystem)]) | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | @Verifier(tx) | |
374 | 374 | func verify () = match tx { | |
375 | 375 | case t: SetScriptTransaction => | |
376 | 376 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
377 | 377 | case d: ReissueTransaction|DataTransaction => | |
378 | 378 | true | |
379 | 379 | case tx: TransferTransaction => | |
380 | 380 | true | |
381 | 381 | case tx: ExchangeTransaction => | |
382 | 382 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
383 | 383 | then true | |
384 | 384 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
385 | 385 | withWaves | |
386 | 386 | case _ => | |
387 | 387 | false | |
388 | 388 | } | |
389 | 389 |
github/deemru/w8io/026f985 61.01 ms ◑