tx · 5GYwzCMXDPv25LKYbSJpyitnBZTXGWn4tjU43Bx1pZfZ

3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q:  -0.01400000 Waves

2020.08.02 14:36 [1114675] smart account 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q > SELF 0.00000000 Waves

{ "type": 13, "id": "5GYwzCMXDPv25LKYbSJpyitnBZTXGWn4tjU43Bx1pZfZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1596368209744, "version": 1, "sender": "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q", "senderPublicKey": "6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67", "proofs": [ "4EXvyQyMTQq7ZAsR3ZF7ojwMrwnM8UVm25UZCjbwTUrkWXe7xbwkThKQvGC4ojYit3XezEqrRpCeeinuDxwDgAiV" ], "script": "base64:AAIDAAAAAAAAADMIARIECgIICBIHCgUICAgBARIICgYICAgBAQgSBgoECAgIARIICgYICAgBAQgSBAoCCAEAAAA+AAAAAAd4Qml0Q08yAQAAACAgBGSmqgN7DW+mqvqXJVizlol6Uwz/77rGaIdsg1TcjQAAAAAIc3RhcnRRdHkAAAAAAABMS0AAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBXg6Dz9iwxuW6OZN3ObCk6NCcw047cUbg0y/YmycTlFAAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUS0gVj7khTyyW8drcBieKY28h0dbnPZfaAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUTBaoO/bGBDOBrm064MWNCsZzgwdlxMLyAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUr4Vcn4wBB78CoLaGa2WDuKHfP9Hd98MyAAAAAANpZ3Y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DAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwcyx0Bk", "chainId": 84, "height": 1114675, "spentComplexity": 0 } View: original | compacted Prev: 5JVjnq7HYPBhwiE9pYncuKsAaJY4csinJQCf2H8s5t8k Next: 81epmhosU1kesfkWSuZdwgNqwDP1ybmYmtDAXW7orYAw Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
55
66 let startQty = 5000000
77
88 let nomPrice = 1
99
1010 let wvs = 100000000
1111
1212 let supplierDiscount = 12
1313
1414 let NONE = "none"
1515
1616 let OwnerPubKey = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67'
1717
1818 let issuer = Address(base58'3Mvn8oonnpiasA3bkq36N9qeqqXWfFW437o')
1919
2020 let eAdd = Address(base58'3MvrQGkHQtyLTC2QXgPnQ6oCEWhHyUJpU4q')
2121
2222 let pAdd = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q')
2323
2424 let igv = 18
2525
2626 let cPB = 88
2727
2828 let uIP = 5
2929
3030 let pIP = 10
3131
3232 let sIP = 1
3333
3434 let eIP = 1
3535
3636 func getNumberByKey (key) = {
3737 let num = match getInteger(this, key) {
3838 case a: Int =>
3939 a
4040 case _ =>
4141 0
4242 }
4343 num
4444 }
4545
4646
4747 func getStrByKey (key) = {
4848 let str = match getString(this, key) {
4949 case a: String =>
5050 a
5151 case _ =>
5252 NONE
5353 }
5454 str
5555 }
5656
5757
5858 func getKeyItem (supplier,title) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((supplier + title)))))
5959
6060
6161 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
6262
6363
6464 func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier))
6565
6666
6767 func getKeyProjectCode (projectCode) = "01-EC/SGT - ACHUARKAPAWI-01"
6868
6969
7070 func getKeyProjectName (projectName) = "Reserva Amazónica Achuar-Kapawi"
7171
7272
7373 func getValueProjectName (projectName) = getStrByKey(getKeyProjectName(projectName))
7474
7575
7676 func getKeyProjectEtapa (projectAddress) = "AchuarKapawi, I Etapa: PreICO"
7777
7878
7979 func getValueProjectEtapa (projectAddress) = getStrByKey(getKeyProjectEtapa(projectAddress))
8080
8181
8282 func getKeyProjectCountry (item) = "República del Ecuador"
8383
8484
8585 func getKeyProjectDev (supplier) = "Fundación Ecológica 'NASE'"
8686
8787
8888 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
8989
9090
9191 func getKeyTokenStartQty (item) = "15693 tokens Bit-CO2"
9292
9393
9494 func getKeyNomTokenPrice (item) = "10.00 Euros"
9595
9696
9797 func getKeyItemPriceSupplier (item) = "_waves"
9898
9999
100100 func getValueItemPriceSupplier (item) = getNumberByKey(getKeyItemPriceSupplier(item))
101101
102102
103103 func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2"
104104
105105
106106 func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2"
107107
108108
109109 func getKeyUserItemCounter (user,item) = "Order_№:"
110110
111111
112112 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
113113
114114
115115 func getKeyUserName (item) = "Nombre del Usuario:"
116116
117117
118118 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
119119
120120
121121 func getKeyUserDocument (item) = "№ de Documento Nacional de Identidad / DNI del Usuario:"
122122
123123
124124 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
125125
126126
127127 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
128128
129129
130130 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
131131
132132
133133 func getKeyItemDiscountUser (item) = "Descuento elejido por el Usuario, %:"
134134
135135
136136 func getValueItemDiscountUser (item) = getNumberByKey(getKeyItemDiscountUser(item))
137137
138138
139139 func getKeyItemDiscountSupplier (item) = "SupplierDiscount, max_%:"
140140
141141
142142 func getValueItemDiscountSupplier (item) = getNumberByKey(getKeyItemDiscountSupplier(item))
143143
144144
145145 func getKeyItemUserOrderQty (item) = "Orden de Compra, cantidad solicitada:"
146146
147147
148148 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
149149
150150
151151 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
152152
153153
154154 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
155155
156156
157157 func getKeyBalanceQtySupplier (item) = "Balance/Saldo, tokens:"
158158
159159
160160 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
161161
162162
163163 func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:"
164164
165165
166166 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
167167
168168
169169 func getKeyUI (item) = "UI,_wvs:"
170170
171171
172172 func getValueUI (item) = getNumberByKey(getKeyUI(item))
173173
174174
175175 func getKeyPI (item) = "PI,_%:"
176176
177177
178178 func getValuePI (item) = getNumberByKey(getKeyPI(item))
179179
180180
181181 func getKeySI (item) = "SI,_%:"
182182
183183
184184 func getValueSI (item) = getNumberByKey(getKeySI(item))
185185
186186
187187 func getKeyItemData (item) = "description: "
188188
189189
190190 @Callable(i)
191191 func deposit (title,supplierData) = {
192192 let pmt = extract(i.payment)
193193 if ((pmt.assetId != xBitCO2))
194194 then throw("deposito permitido solo en xBitCO2 tokens")
195195 else {
196196 let supplier = toBase58String(i.caller.bytes)
197197 let currentAmount = match getInteger(this, supplier) {
198198 case a: Int =>
199199 a
200200 case _ =>
201201 startQty
202202 }
203203 let newAmount = (currentAmount + pmt.amount)
204204 if ((0 >= newAmount))
205205 then throw("No hay xBitCO2 en su balance")
206206 else WriteSet([DataEntry(supplier, newAmount)])
207207 }
208208 }
209209
210210
211211
212212 @Callable(i)
213213 func purchase (item,userName,userCountry,userDiscount,orderQty) = {
214214 let pmt = extract(i.payment)
215215 if (isDefined(pmt.assetId))
216216 then throw("En la presente Plastaforma Ud. puede adquirir sus tokens xBitCO2 usando WavesKeeper y su token de pago Waves.")
217217 else {
218218 let supplier = match getString(this, getKeyItemSupplier(item)) {
219219 case a: String =>
220220 a
221221 case _ =>
222222 NONE
223223 }
224224 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
225225 case a: Int =>
226226 a
227227 case _ =>
228228 startQty
229229 }
230230 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
231231 case a: Int =>
232232 a
233233 case _ =>
234234 0
235235 }
236236 let userAddress = toBase58String(i.caller.bytes)
237237 let currentTokenPrice = ((((100 - userDiscount) * nomPrice) * wvs) / 100)
238238 let totalAmount = (orderQty * currentTokenPrice)
239239 if ((totalAmount > pmt.amount))
240240 then throw("Payment Amount can't be less than item Purchase Order")
241241 else if ((pmt.amount > totalAmount))
242242 then throw("Payment Amount can't be higher than item Purchase Order")
243243 else ScriptResult(WriteSet([DataEntry("Tipo de Proyecto:", "Reserva Forestal Amazónica"), DataEntry("Categoría:", "Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", "República del Ecuador"), DataEntry("Nombre del Proyecto:", "Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", "01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", "Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", "Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", "2 Etapas"), DataEntry("Etapas del Proyecto, en Ejecución:", "A Definir, Fundación REDD"), 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("Máximo Descuento ofrecido, I Etapa:", "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("Cuenta del Proyecto en BlockChain:", supplier)]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)]))
244244 }
245245 }
246246
247247
248248
249249 @Callable(i)
250250 func AddSupplierToken (title,name,country,preIcoQty,supplierDiscount,supplierData) = {
251251 let supplier = toBase58String(i.caller.bytes)
252252 let item = getKeyItem(supplier, title)
253253 if ((0 >= preIcoQty))
254254 then throw("Sorry, insufficient token offer")
255255 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)])
256256 }
257257
258258
259259
260260 @Callable(i)
261261 func purchaseGTS (item,userName,userDocument,totalAmount) = {
262262 let pmt = extract(i.payment)
263263 if (isDefined(pmt.assetId))
264264 then throw("El Precio de los aves.")
265265 else {
266266 let supplier = match getString(this, getKeyItemSupplier(item)) {
267267 case a: String =>
268268 a
269269 case _ =>
270270 NONE
271271 }
272272 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
273273 case a: Int =>
274274 a
275275 case _ =>
276276 startQty
277277 }
278278 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
279279 case a: Int =>
280280 a
281281 case _ =>
282282 0
283283 }
284284 let userAddress = toBase58String(i.caller.bytes)
285285 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
286286 let uI = ((subTotal * uIP) / 100)
287287 let uBI = (uI / cPB)
288288 let pI = ((subTotal * pIP) / 100)
289289 let eI = ((subTotal * eIP) / 100)
290290 let eBI = ((subTotal * eIP) / (cPB * 100))
291291 let sI = ((totalAmount - pI) - eI)
292292 let sBI = ((subTotal * sIP) / (cPB * 100))
293293 if ((totalAmount > pmt.amount))
294294 then throw("Payment Amount can't be less than item Purchase Order")
295295 else if ((pmt.amount > totalAmount))
296296 then throw("Payment Amount can't be higher than item Purchase Order")
297297 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)]))
298298 }
299299 }
300300
301301
302302
303303 @Callable(i)
304304 func AddVendedorGTS (title,name,country,preIcoQty,supplierDiscount,supplierData) = {
305305 let supplier = toBase58String(i.caller.bytes)
306306 let item = getKeyItem(supplier, title)
307307 if ((0 >= preIcoQty))
308308 then throw("Sorry, insufficient token offer")
309309 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)])
310310 }
311311
312312
313313
314314 @Callable(i)
315315 func withdraw (item,amount) = {
316316 let userAddress = toBase58String(i.caller.bytes)
317317 let supplier = match getString(this, getKeyItemSupplier(item)) {
318318 case a: String =>
319319 a
320320 case _ =>
321321 NONE
322322 }
323323 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
324324 case a: Int =>
325325 a
326326 case _ =>
327327 startQty
328328 }
329329 let newAmount = (preIcoQty - amount)
330330 if ((0 > amount))
331331 then throw("El balance de retiro no puede ser negativo!")
332332 else if ((0 >= newAmount))
333333 then throw("Ooppss.. Insuficiente balance!")
334334 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)]))
335335 }
336336
337337
338338 @Verifier(tx)
339339 func verify () = match tx {
340340 case t: SetScriptTransaction =>
341341 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
342342 case d: DataTransaction|ReissueTransaction =>
343343 true
344344 case tx: TransferTransaction =>
345345 true
346346 case tx: ExchangeTransaction =>
347347 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
348348 then true
349349 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
350350 withWaves
351351 case _ =>
352352 false
353353 }
354354

github/deemru/w8io/026f985 
39.67 ms