tx · 5EkGrL6YuR3ZVNQGGyFTkWrVbXpYQS9CUiSMPXdy9Qmc 3MyDV3xfvwKzBV8yidXnLcaeQPSdiCmhX3B: -0.01400000 Waves 2020.04.14 12:59 [953934] smart account 3MyDV3xfvwKzBV8yidXnLcaeQPSdiCmhX3B > SELF 0.00000000 Waves
{ "type": 13, "id": "5EkGrL6YuR3ZVNQGGyFTkWrVbXpYQS9CUiSMPXdy9Qmc", "fee": 1400000, "feeAssetId": null, "timestamp": 1586858380998, "version": 1, "sender": "3MyDV3xfvwKzBV8yidXnLcaeQPSdiCmhX3B", "senderPublicKey": "YmYsKHtsKRVKHxPW2qUzePRZWkwcZDryNtR31EGizkx", "proofs": [ "37vs9FcDSTMoUaS7kao1EK7A2e8As8hyLhaxHppUsi9aVwQ6Y4ndAy8kQDfGDHqeBEjNEBDeLDY4QHFrZiZjPh3V" ], "script": "base64:AAIDAAAAAAAAADIIARIWChQICAgICAgICAgICAgICAgBAQEBARIWChQICAgICAgBAQEIAQEBCAEBAQEBAQAAAHoAAAAAB2JCaXRDTzIBAAAAICS5vPeQFg1II100BnJ39DNnWlTh001ZMTGPiOi4CeDRAAAAAAhub21QcmljZQAAAAAAAAAAAQAAAAADd3ZzAAAAAAAF9eEAAAAAABBzdXBwbGllckRpc2NvdW50AAAAAAAAAAAMAAAAAAROT05FAgAAAARub25lAAAAAAtPd25lclB1YktleQEAAAAgCCNglk3SigSDl5n8m7J2RdsdTn6BXt6R2kclZJ1T43EAAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVCZd6qk0E5TSBdNGgucXKBo+PsGO2tEg/QAAAAAEZUFkZAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMr3Oz7nL9FV4g+t+EWzLN77jdANRWt9bwAAAAAEcEFkZAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVNQ9647ZjWnZOkr44fXhawO5UJXaNwwUVAAAAAADaWd2AAAAAAAAAAASAAAAAANjUEIAAAAAAAAAAFgAAA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AFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwfmQ5/j", "chainId": 84, "height": 953934, "spentComplexity": 0 } View: original | compacted Prev: GVBGhXMHgHwdY4fdHKp2S7zVaj3if7NWzF6HEfpxSzAv Next: HAGQfgA9nTiS9QhXjXiv87y8F97RLrX6NyfrYf3jjFhz Diff:
Old | New | Differences | |
---|---|---|---|
227 | 227 | func getValueIngrEcosystemV (item) = getNumberByKey(getKeyIngrEcosystemV(item)) | |
228 | 228 | ||
229 | 229 | ||
230 | - | func | |
230 | + | func getKeyVendedor (supplier,title) = ("itemVendedor:" + toBase58String(sha256(toBytes((supplier + title))))) | |
231 | 231 | ||
232 | 232 | ||
233 | - | func | |
233 | + | func getKeyVendedorCategoria (itemVendedor) = "Producto, Categoria" | |
234 | 234 | ||
235 | 235 | ||
236 | - | func | |
236 | + | func getValueVendedorCategoria (itemVendedor) = getStrByKey(getKeyVendedorCategoria(itemVendedor)) | |
237 | 237 | ||
238 | 238 | ||
239 | - | func | |
239 | + | func getKeyVendedorSubCategoria (itemVendedor) = "vENDEDOR, Sub-Categoria" | |
240 | 240 | ||
241 | 241 | ||
242 | - | func | |
242 | + | func getValueVendedorSubCategoria (itemVendedor) = getStrByKey(getKeyVendedorSubCategoria(itemVendedor)) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func getKeyProject (pA) = ("ItemProject" + pA) | |
381 | 381 | func addProductosVendedorGTS (title,categoria,subCategoria,vendedor,codigo,nombreProd1,precioProd1,descProd1,cantidadProd1,nombreProd2,precioProd2,descProd2,cantidadProd2,nombreProd3,precioProd3,descProd3,cantidadProd3,ingrProyecto,ingrVendedor,ingrEcosystem) = { | |
382 | 382 | let supplier = toBase58String(i.caller.bytes) | |
383 | 383 | let item = getKeyItem(supplier, title) | |
384 | - | WriteSet([DataEntry( | |
384 | + | WriteSet([DataEntry(getKeyVendedor(supplier, title), title), DataEntry(getKeyVendedorCategoria(item), categoria), DataEntry(getKeyVendedorSubCategoria(item), subCategoria), 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)]) | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 |
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 | - | func | |
230 | + | func getKeyVendedor (supplier,title) = ("itemVendedor:" + toBase58String(sha256(toBytes((supplier + title))))) | |
231 | 231 | ||
232 | 232 | ||
233 | - | func | |
233 | + | func getKeyVendedorCategoria (itemVendedor) = "Producto, Categoria" | |
234 | 234 | ||
235 | 235 | ||
236 | - | func | |
236 | + | func getValueVendedorCategoria (itemVendedor) = getStrByKey(getKeyVendedorCategoria(itemVendedor)) | |
237 | 237 | ||
238 | 238 | ||
239 | - | func | |
239 | + | func getKeyVendedorSubCategoria (itemVendedor) = "vENDEDOR, Sub-Categoria" | |
240 | 240 | ||
241 | 241 | ||
242 | - | func | |
242 | + | func getValueVendedorSubCategoria (itemVendedor) = getStrByKey(getKeyVendedorSubCategoria(itemVendedor)) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func getKeyProject (pA) = ("ItemProject" + pA) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func getValueProject (pA) = getStrByKey(getKeyProject(pA)) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func getKeyProyecto (supplier,title) = ("itemProyecto:" + toBase58String(sha256(toBytes((supplier + title))))) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func getKeyItemProyecto (itemProject) = ("ItemProyecto" + itemProject) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func getKeyProyectoCategoria (itemProject) = "Proyecto, Categoria" | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func getValueProyectoCategoria (itemProject) = getStrByKey(getKeyProyectoCategoria(itemProject)) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func getKeyProyectoSubCategoria (itemProject) = "Proyecto, Sub-Categoria" | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func getValueProyectoSubCategoria (itemProject) = getStrByKey(getKeyProyectoSubCategoria(itemProject)) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func getKeyNombreProyecto (item) = "NombreProyecto:" | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func getValueNombreProyecto (item) = getStrByKey(getKeyNombreProyecto(item)) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func getKeyPaisProyecto (item) = "PaisProyecto:" | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func getValuePaisProyecto (item) = getStrByKey(getKeyPaisProyecto(item)) | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func getKeyDescriptionProyecto (item) = "Descripcion del Proyecto:" | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func getValueDescriptionProyecto (item) = getStrByKey(getKeyDescriptionProyecto(item)) | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func getKeyDesarrolladorProyecto (item) = "Desarrollador del Proyecto:" | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func getValueDesarrolladorProyecto (item) = getStrByKey(getKeyDesarrolladorProyecto(item)) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func getKeyResp1Proyecto (item) = "Responsable №1 del Proyecto:" | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func getValueResp1Proyecto (item) = getStrByKey(getKeyResp1Proyecto(item)) | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func getKeyResp2Proyecto (item) = "Responsable №2 del Proyecto:" | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func getValueResp2Proyecto (item) = getStrByKey(getKeyResp2Proyecto(item)) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func getKeyTelResp1Proyecto (item) = "Responsable №1 del Proyecto / Tel.:" | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func getValueTelResp1Proyecto (item) = getStrByKey(getKeyTelResp1Proyecto(item)) | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | func getKeyTelResp2Proyecto (item) = "Responsable №2 del Proyecto / Tel.:" | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func getValueTelResp2Proyecto (item) = getStrByKey(getKeyTelResp2Proyecto(item)) | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func getKeyMessResp1Proyecto (item) = "Responsable №1 del Proyecto / Messenger.:" | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func getValueMessResp1Proyecto (item) = getStrByKey(getKeyMessResp1Proyecto(item)) | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | func getKeyMessResp2Proyecto (item) = "Responsable №2 del Proyecto / Messenger:" | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | func getValueMessResp2Proyecto (item) = getStrByKey(getKeyMessResp2Proyecto(item)) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func getKeyEmailResp1Proyecto (item) = "Responsable №1 del Proyecto / Email.:" | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func getValueEmailResp1Proyecto (item) = getStrByKey(getKeyEmailResp1Proyecto(item)) | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func getKeyEmailResp2Proyecto (item) = "Responsable №2 del Proyecto / Email:" | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func getValueEmailResp2Proyecto (item) = getStrByKey(getKeyEmailResp2Proyecto(item)) | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func getKeyTokInicialQtyProyecto (item) = "Cantidad Inicial de Tokens del Proyecto:" | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func getValueTokInicialQtyProyecto (item) = getNumberByKey(getKeyTokInicialQtyProyecto(item)) | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func getKeyTokTotalQtyProyecto (item) = "Cantidad Total de Tokens del Proyecto:" | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func getValueTokTotalQtyProyecto (item) = getNumberByKey(getKeyTokTotalQtyProyecto(item)) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | func getKeyIngrClienteProj (item) = "Ingresos para el Cliente, en tokens:" | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | func getValueIngrClienteProj (item) = getNumberByKey(getKeyIngrClienteProj(item)) | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func getKeyIngrVendedorProj (item) = "Ingresos para el Vendedor, en tokens:" | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | func getValueIngrVendedorProj (item) = getNumberByKey(getKeyIngrVendedorProj(item)) | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | func getKeyIngrEcosystemProj (item) = "Ingresos para el Ecosistema, en tokens:" | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | func getValueIngrEcosystemProj (item) = getNumberByKey(getKeyIngrEcosystemProj(item)) | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(i) | |
372 | 372 | func addProyectos (title,categoria,subCategoria,nombreProj,country,description,desarrollador,responsable1,tel1,messenger1,email1,responsable2,tel2,messenger2,email2,tokTotal,tokInicial,ingrCliente,ingrVendedor,ingrEcosystem) = { | |
373 | 373 | let supplier = toBase58String(i.caller.bytes) | |
374 | 374 | let item = getKeyProyecto(supplier, title) | |
375 | 375 | 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)]) | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | ||
380 | 380 | @Callable(i) | |
381 | 381 | func addProductosVendedorGTS (title,categoria,subCategoria,vendedor,codigo,nombreProd1,precioProd1,descProd1,cantidadProd1,nombreProd2,precioProd2,descProd2,cantidadProd2,nombreProd3,precioProd3,descProd3,cantidadProd3,ingrProyecto,ingrVendedor,ingrEcosystem) = { | |
382 | 382 | let supplier = toBase58String(i.caller.bytes) | |
383 | 383 | let item = getKeyItem(supplier, title) | |
384 | - | WriteSet([DataEntry( | |
384 | + | WriteSet([DataEntry(getKeyVendedor(supplier, title), title), DataEntry(getKeyVendedorCategoria(item), categoria), DataEntry(getKeyVendedorSubCategoria(item), subCategoria), 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)]) | |
385 | 385 | } | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | @Verifier(tx) | |
389 | 389 | func verify () = match tx { | |
390 | 390 | case t: SetScriptTransaction => | |
391 | 391 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
392 | 392 | case d: ReissueTransaction|DataTransaction => | |
393 | 393 | true | |
394 | 394 | case tx: TransferTransaction => | |
395 | 395 | true | |
396 | 396 | case tx: ExchangeTransaction => | |
397 | 397 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
398 | 398 | then true | |
399 | 399 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
400 | 400 | withWaves | |
401 | 401 | case _ => | |
402 | 402 | false | |
403 | 403 | } | |
404 | 404 |
github/deemru/w8io/026f985 58.74 ms ◑