tx · APm91TbfvaXpx3XzD8iYWjGJFGjUEiK5NMqQ3dJcpmUh 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q: -0.01400000 Waves 2020.08.03 20:04 [1116474] smart account 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q > SELF 0.00000000 Waves
{ "type": 13, "id": "APm91TbfvaXpx3XzD8iYWjGJFGjUEiK5NMqQ3dJcpmUh", "fee": 1400000, "feeAssetId": null, "timestamp": 1596474227972, "version": 1, "sender": "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q", "senderPublicKey": "6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67", "proofs": [ "5WTX4MYq39kJt8eSiuLM73B7SEsPhQeLNCbQiAfGifeSUvjDGaTjPS6onX8ufYY5f24DgptcVkXq2BmxSKsgYb4G" ], "script": "base64:AAIDAAAAAAAAADMIARIECgIICBIHCgUICAgBARIICgYICAgBAQgSBgoECAgIARIICgYICAgBAQgSBAoCCAEAAABFAAAAAAd4Qml0Q08yAQAAACAgBGSmqgN7DW+mqvqXJVizlol6Uwz/77rGaIdsg1TcjQAAAAAIc3RhcnRRdHkAAAAAAAAEqh0AAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBXg6Dz9iwxuW6OZN3ObCk6NCcw047cUbg0y/YmycTlFAAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUS0gVj7khTyyW8drcBieKY28h0dbnPZfaAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUTBaoO/bGBDOBrm064MWNCsZzgwdlxMLyAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUr4Vcn4wBB78CoLaGa2WDuKHfP9Hd98MyAAAAAANpZ3YAAAAA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BQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAl3aXRoV2F2ZXMHfh+qpA==", "chainId": 84, "height": 1116474, "spentComplexity": 0 } View: original | compacted Prev: HQvEdVY6Qn5x6HERgesKCpDABeeQ7Gka47kRGwg86kt Next: XHKofwjzd4h99XTAjKRacEucoTZ9Hv32KzLrp7JBvRX Diff:
Old | New | Differences | |
---|---|---|---|
76 | 76 | func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier)) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func getKeyProjectCode (item) = "Código | |
79 | + | func getKeyProjectCode (item) = "Código:" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
118 | 118 | func getValueItemPriceSupplier (item) = getNumberByKey(getKeyItemPriceSupplier(item)) | |
119 | 119 | ||
120 | 120 | ||
121 | - | func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2" | |
121 | + | func getKeyMaxDescuento (item) = "Máximo Descuento Ofrecido en I Etapa, %:" | |
122 | + | ||
123 | + | ||
124 | + | func getValueMaxDescuento (item) = getNumberByKey(getKeyMaxDescuento(item)) | |
122 | 125 | ||
123 | 126 | ||
124 | 127 | func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2" | |
258 | 261 | then throw("Payment Amount can't be less than item Purchase Order") | |
259 | 262 | else if ((pmt.amount > totalAmount)) | |
260 | 263 | then throw("Payment Amount can't be higher than item Purchase Order") | |
261 | - | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), " Reserva Forestal Amazónica"), DataEntry(getKeyProjectType(item), " Conservación / Emisión de CO2 Evitada"), DataEntry( | |
264 | + | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), " Reserva Forestal Amazónica"), DataEntry(getKeyProjectType(item), " Conservación / Emisión de CO2 Evitada"), DataEntry(getKeyProjectCountry(item), " Ecuador"), DataEntry(getKeyProjectName(item), " Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCode(item), " 001-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", " Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), " Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", " 2"), DataEntry("Etapas del Proyecto, en Ejecución:", " Fundación REDD a definir"), DataEntry("Cantidad Total de Tokens Bit-CO2 a Emitir, I y II Etapa Pre-ICO:", " 305693"), DataEntry("Precio Nominal, 1 token Bit-CO2:", " 10.00 Euros"), DataEntry(getKeyMaxDescuento(item), " 12.00"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total tokens emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", currentTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeyBalanceQtySupplier(item), (preIcoQty - orderQty)), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount)), DataEntry((("" + getKeyItem(supplier, item)) + ""), "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q"), DataEntry("Address del Proyecto en BlockChain:", " 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q ")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
262 | 265 | } | |
263 | 266 | } | |
264 | 267 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN' | |
5 | 5 | ||
6 | 6 | let startQty = 305693 | |
7 | 7 | ||
8 | 8 | let nomPrice = 1 | |
9 | 9 | ||
10 | 10 | let wvs = 100000000 | |
11 | 11 | ||
12 | 12 | let supplierDiscount = 12 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | 15 | ||
16 | 16 | let OwnerPubKey = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67' | |
17 | 17 | ||
18 | 18 | let issuer = Address(base58'3Mvn8oonnpiasA3bkq36N9qeqqXWfFW437o') | |
19 | 19 | ||
20 | 20 | let eAdd = Address(base58'3MvrQGkHQtyLTC2QXgPnQ6oCEWhHyUJpU4q') | |
21 | 21 | ||
22 | 22 | let pAdd = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q') | |
23 | 23 | ||
24 | 24 | let igv = 18 | |
25 | 25 | ||
26 | 26 | let cPB = 88 | |
27 | 27 | ||
28 | 28 | let uIP = 5 | |
29 | 29 | ||
30 | 30 | let pIP = 10 | |
31 | 31 | ||
32 | 32 | let sIP = 1 | |
33 | 33 | ||
34 | 34 | let eIP = 1 | |
35 | 35 | ||
36 | 36 | func getNumberByKey (key) = { | |
37 | 37 | let num = match getInteger(this, key) { | |
38 | 38 | case a: Int => | |
39 | 39 | a | |
40 | 40 | case _ => | |
41 | 41 | 0 | |
42 | 42 | } | |
43 | 43 | num | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getStrByKey (key) = { | |
48 | 48 | let str = match getString(this, key) { | |
49 | 49 | case a: String => | |
50 | 50 | a | |
51 | 51 | case _ => | |
52 | 52 | NONE | |
53 | 53 | } | |
54 | 54 | str | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getKeyItem (supplier,item) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((supplier + item))))) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getKeyProjectCategory (item) = "Categoría:" | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func getKeyProjectType (item) = "Tipo de Proyecto:" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getValueProjectType (item) = getStrByKey(getKeyProjectType(item)) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier)) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func getKeyProjectCode (item) = "Código | |
79 | + | func getKeyProjectCode (item) = "Código:" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getKeyProjectName (item) = "Nombre del Proyecto:" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func getKeyProjectEtapa (projectAddress) = "AchuarKapawi, I Etapa: PreICO" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getValueProjectEtapa (projectAddress) = getStrByKey(getKeyProjectEtapa(projectAddress)) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func getKeyProjectCountry (item) = "País / Ubicación:" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func getKeyProjectDev (supplier) = "Desarrollador / Responsable:" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func getKeyTokenStartQty (item) = "15693 tokens Bit-CO2" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getKeyNomTokenPrice (item) = "10.00 Euros" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func getKeyItemPriceSupplier (item) = "_waves" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getValueItemPriceSupplier (item) = getNumberByKey(getKeyItemPriceSupplier(item)) | |
119 | 119 | ||
120 | 120 | ||
121 | - | func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2" | |
121 | + | func getKeyMaxDescuento (item) = "Máximo Descuento Ofrecido en I Etapa, %:" | |
122 | + | ||
123 | + | ||
124 | + | func getValueMaxDescuento (item) = getNumberByKey(getKeyMaxDescuento(item)) | |
122 | 125 | ||
123 | 126 | ||
124 | 127 | func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2" | |
125 | 128 | ||
126 | 129 | ||
127 | 130 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
128 | 131 | ||
129 | 132 | ||
130 | 133 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
131 | 134 | ||
132 | 135 | ||
133 | 136 | func getKeyUserName (item) = "Nombre del Usuario:" | |
134 | 137 | ||
135 | 138 | ||
136 | 139 | func getValueUserName (item) = getStrByKey(getKeyUserName(item)) | |
137 | 140 | ||
138 | 141 | ||
139 | 142 | func getKeyUserDocument (item) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
140 | 143 | ||
141 | 144 | ||
142 | 145 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
143 | 146 | ||
144 | 147 | ||
145 | 148 | func getKeyUserCountry (item) = "País del Usuario:" | |
146 | 149 | ||
147 | 150 | ||
148 | 151 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
149 | 152 | ||
150 | 153 | ||
151 | 154 | func getKeyItemDiscountUser (item) = "Descuento elejido por el Usuario, %:" | |
152 | 155 | ||
153 | 156 | ||
154 | 157 | func getValueItemDiscountUser (item) = getNumberByKey(getKeyItemDiscountUser(item)) | |
155 | 158 | ||
156 | 159 | ||
157 | 160 | func getKeyItemDiscountSupplier (item) = "SupplierDiscount, max_%:" | |
158 | 161 | ||
159 | 162 | ||
160 | 163 | func getValueItemDiscountSupplier (item) = getNumberByKey(getKeyItemDiscountSupplier(item)) | |
161 | 164 | ||
162 | 165 | ||
163 | 166 | func getKeyItemUserOrderQty (item) = "Orden de Compra, cantidad solicitada:" | |
164 | 167 | ||
165 | 168 | ||
166 | 169 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
167 | 170 | ||
168 | 171 | ||
169 | 172 | func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:" | |
170 | 173 | ||
171 | 174 | ||
172 | 175 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
173 | 176 | ||
174 | 177 | ||
175 | 178 | func getKeyBalanceQtySupplier (item) = "Balance/Saldo, tokens:" | |
176 | 179 | ||
177 | 180 | ||
178 | 181 | func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item)) | |
179 | 182 | ||
180 | 183 | ||
181 | 184 | func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:" | |
182 | 185 | ||
183 | 186 | ||
184 | 187 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
185 | 188 | ||
186 | 189 | ||
187 | 190 | func getKeyUI (item) = "UI,_wvs:" | |
188 | 191 | ||
189 | 192 | ||
190 | 193 | func getValueUI (item) = getNumberByKey(getKeyUI(item)) | |
191 | 194 | ||
192 | 195 | ||
193 | 196 | func getKeyPI (item) = "PI,_%:" | |
194 | 197 | ||
195 | 198 | ||
196 | 199 | func getValuePI (item) = getNumberByKey(getKeyPI(item)) | |
197 | 200 | ||
198 | 201 | ||
199 | 202 | func getKeySI (item) = "SI,_%:" | |
200 | 203 | ||
201 | 204 | ||
202 | 205 | func getValueSI (item) = getNumberByKey(getKeySI(item)) | |
203 | 206 | ||
204 | 207 | ||
205 | 208 | func getKeyItemData (item) = "description: " | |
206 | 209 | ||
207 | 210 | ||
208 | 211 | @Callable(i) | |
209 | 212 | func deposit (title,supplierData) = { | |
210 | 213 | let pmt = extract(i.payment) | |
211 | 214 | if ((pmt.assetId != xBitCO2)) | |
212 | 215 | then throw("deposito permitido solo en xBitCO2 tokens") | |
213 | 216 | else { | |
214 | 217 | let supplier = toBase58String(i.caller.bytes) | |
215 | 218 | let currentAmount = match getInteger(this, supplier) { | |
216 | 219 | case a: Int => | |
217 | 220 | a | |
218 | 221 | case _ => | |
219 | 222 | startQty | |
220 | 223 | } | |
221 | 224 | let newAmount = (currentAmount + pmt.amount) | |
222 | 225 | if ((0 >= newAmount)) | |
223 | 226 | then throw("No hay xBitCO2 en su balance") | |
224 | 227 | else WriteSet([DataEntry(supplier, newAmount)]) | |
225 | 228 | } | |
226 | 229 | } | |
227 | 230 | ||
228 | 231 | ||
229 | 232 | ||
230 | 233 | @Callable(i) | |
231 | 234 | func purchase (item,userName,userCountry,userDiscount,orderQty) = { | |
232 | 235 | let pmt = extract(i.payment) | |
233 | 236 | if (isDefined(pmt.assetId)) | |
234 | 237 | then throw("En la presente Plastaforma Ud. puede adquirir sus tokens xBitCO2 usando WavesKeeper y su token de pago Waves.") | |
235 | 238 | else { | |
236 | 239 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
237 | 240 | case a: String => | |
238 | 241 | a | |
239 | 242 | case _ => | |
240 | 243 | NONE | |
241 | 244 | } | |
242 | 245 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
243 | 246 | case a: Int => | |
244 | 247 | a | |
245 | 248 | case _ => | |
246 | 249 | startQty | |
247 | 250 | } | |
248 | 251 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
249 | 252 | case a: Int => | |
250 | 253 | a | |
251 | 254 | case _ => | |
252 | 255 | 0 | |
253 | 256 | } | |
254 | 257 | let userAddress = toBase58String(i.caller.bytes) | |
255 | 258 | let currentTokenPrice = ((((100 - userDiscount) * nomPrice) * wvs) / 100) | |
256 | 259 | let totalAmount = (orderQty * currentTokenPrice) | |
257 | 260 | if ((totalAmount > pmt.amount)) | |
258 | 261 | then throw("Payment Amount can't be less than item Purchase Order") | |
259 | 262 | else if ((pmt.amount > totalAmount)) | |
260 | 263 | then throw("Payment Amount can't be higher than item Purchase Order") | |
261 | - | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), " Reserva Forestal Amazónica"), DataEntry(getKeyProjectType(item), " Conservación / Emisión de CO2 Evitada"), DataEntry( | |
264 | + | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), " Reserva Forestal Amazónica"), DataEntry(getKeyProjectType(item), " Conservación / Emisión de CO2 Evitada"), DataEntry(getKeyProjectCountry(item), " Ecuador"), DataEntry(getKeyProjectName(item), " Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCode(item), " 001-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", " Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), " Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", " 2"), DataEntry("Etapas del Proyecto, en Ejecución:", " Fundación REDD a definir"), DataEntry("Cantidad Total de Tokens Bit-CO2 a Emitir, I y II Etapa Pre-ICO:", " 305693"), DataEntry("Precio Nominal, 1 token Bit-CO2:", " 10.00 Euros"), DataEntry(getKeyMaxDescuento(item), " 12.00"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total tokens emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", currentTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeyBalanceQtySupplier(item), (preIcoQty - orderQty)), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount)), DataEntry((("" + getKeyItem(supplier, item)) + ""), "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q"), DataEntry("Address del Proyecto en BlockChain:", " 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q ")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
262 | 265 | } | |
263 | 266 | } | |
264 | 267 | ||
265 | 268 | ||
266 | 269 | ||
267 | 270 | @Callable(i) | |
268 | 271 | func AddSupplierToken (title,name,country,preIcoQty,supplierDiscount,supplierData) = { | |
269 | 272 | let supplier = toBase58String(i.caller.bytes) | |
270 | 273 | let item = getKeyItem(supplier, title) | |
271 | 274 | if ((0 >= preIcoQty)) | |
272 | 275 | then throw("Sorry, insufficient token offer") | |
273 | 276 | else WriteSet([DataEntry(("Supplier:_" + getKeyProjectDev(item)), supplier), DataEntry(("Title:_" + supplier), title), DataEntry(("ProjectName:_" + supplier), name), DataEntry(("Country:_" + supplier), country), DataEntry(getKeyBalanceQtySupplier(item), preIcoQty), DataEntry(("NomTokenPrice:_" + getKeyItemPriceSupplier(item)), (nomPrice * wvs)), DataEntry(("Max_Descuento_ofrecido:" + getKeyItemDiscountSupplier(item)), supplierDiscount), DataEntry(("Development:_" + getKeyItemData(item)), supplierData)]) | |
274 | 277 | } | |
275 | 278 | ||
276 | 279 | ||
277 | 280 | ||
278 | 281 | @Callable(i) | |
279 | 282 | func purchaseGTS (item,userName,userDocument,totalAmount) = { | |
280 | 283 | let pmt = extract(i.payment) | |
281 | 284 | if (isDefined(pmt.assetId)) | |
282 | 285 | then throw("El Precio de los aves.") | |
283 | 286 | else { | |
284 | 287 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
285 | 288 | case a: String => | |
286 | 289 | a | |
287 | 290 | case _ => | |
288 | 291 | NONE | |
289 | 292 | } | |
290 | 293 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
291 | 294 | case a: Int => | |
292 | 295 | a | |
293 | 296 | case _ => | |
294 | 297 | startQty | |
295 | 298 | } | |
296 | 299 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
297 | 300 | case a: Int => | |
298 | 301 | a | |
299 | 302 | case _ => | |
300 | 303 | 0 | |
301 | 304 | } | |
302 | 305 | let userAddress = toBase58String(i.caller.bytes) | |
303 | 306 | let subTotal = (totalAmount - ((igv * totalAmount) / 100)) | |
304 | 307 | let uI = ((subTotal * uIP) / 100) | |
305 | 308 | let uBI = (uI / cPB) | |
306 | 309 | let pI = ((subTotal * pIP) / 100) | |
307 | 310 | let eI = ((subTotal * eIP) / 100) | |
308 | 311 | let eBI = ((subTotal * eIP) / (cPB * 100)) | |
309 | 312 | let sI = ((totalAmount - pI) - eI) | |
310 | 313 | let sBI = ((subTotal * sIP) / (cPB * 100)) | |
311 | 314 | if ((totalAmount > pmt.amount)) | |
312 | 315 | then throw("Payment Amount can't be less than item Purchase Order") | |
313 | 316 | else if ((pmt.amount > totalAmount)) | |
314 | 317 | then throw("Payment Amount can't be higher than item Purchase Order") | |
315 | 318 | else ScriptResult(WriteSet([DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Payment_amount,_wvs", totalAmount), DataEntry("Imp, %", igv), DataEntry("STtl, wvs", subTotal), DataEntry("CP 1 B, wvs", (cPB * 1000000)), DataEntry(getKeyUI(item), uI), DataEntry("UBI", uBI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys", eBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(pAdd, pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, xBitCO2), ScriptTransfer(eAdd, eI, unit), ScriptTransfer(eAdd, eBI, xBitCO2)])) | |
316 | 319 | } | |
317 | 320 | } | |
318 | 321 | ||
319 | 322 | ||
320 | 323 | ||
321 | 324 | @Callable(i) | |
322 | 325 | func AddVendedorGTS (title,name,country,preIcoQty,supplierDiscount,supplierData) = { | |
323 | 326 | let supplier = toBase58String(i.caller.bytes) | |
324 | 327 | let item = getKeyItem(supplier, title) | |
325 | 328 | if ((0 >= preIcoQty)) | |
326 | 329 | then throw("Sorry, insufficient token offer") | |
327 | 330 | else WriteSet([DataEntry(("Supplier:_" + getKeyProjectDev(item)), supplier), DataEntry(("Title:_" + supplier), title), DataEntry(("ProjectName:_" + supplier), name), DataEntry(("Country:_" + supplier), country), DataEntry(getKeyBalanceQtySupplier(item), preIcoQty), DataEntry(("NomTokenPrice:_" + getKeyItemPriceSupplier(item)), (nomPrice * wvs)), DataEntry(("Max_Descuento_ofrecido:" + getKeyItemDiscountSupplier(item)), supplierDiscount), DataEntry(("Development:_" + getKeyItemData(item)), supplierData)]) | |
328 | 331 | } | |
329 | 332 | ||
330 | 333 | ||
331 | 334 | ||
332 | 335 | @Callable(i) | |
333 | 336 | func withdraw (item,amount) = { | |
334 | 337 | let userAddress = toBase58String(i.caller.bytes) | |
335 | 338 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
336 | 339 | case a: String => | |
337 | 340 | a | |
338 | 341 | case _ => | |
339 | 342 | NONE | |
340 | 343 | } | |
341 | 344 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
342 | 345 | case a: Int => | |
343 | 346 | a | |
344 | 347 | case _ => | |
345 | 348 | startQty | |
346 | 349 | } | |
347 | 350 | let newAmount = (preIcoQty - amount) | |
348 | 351 | if ((0 > amount)) | |
349 | 352 | then throw("El balance de retiro no puede ser negativo!") | |
350 | 353 | else if ((0 >= newAmount)) | |
351 | 354 | then throw("Ooppss.. Insuficiente balance!") | |
352 | 355 | else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)])) | |
353 | 356 | } | |
354 | 357 | ||
355 | 358 | ||
356 | 359 | @Verifier(tx) | |
357 | 360 | func verify () = match tx { | |
358 | 361 | case t: SetScriptTransaction => | |
359 | 362 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
360 | 363 | case d: DataTransaction|ReissueTransaction => | |
361 | 364 | true | |
362 | 365 | case tx: TransferTransaction => | |
363 | 366 | true | |
364 | 367 | case tx: ExchangeTransaction => | |
365 | 368 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
366 | 369 | then true | |
367 | 370 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
368 | 371 | withWaves | |
369 | 372 | case _ => | |
370 | 373 | false | |
371 | 374 | } | |
372 | 375 |
github/deemru/w8io/026f985 77.89 ms ◑