tx · Gorpw2X1q6e3NPPmBVnEsLuquv28jVLo5rY6y5sY8VpE

3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k:  -0.01400000 Waves

2020.08.18 15:34 [1138312] smart account 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k > SELF 0.00000000 Waves

{ "type": 13, "id": "Gorpw2X1q6e3NPPmBVnEsLuquv28jVLo5rY6y5sY8VpE", "fee": 1400000, "feeAssetId": null, "timestamp": 1597754040076, "version": 1, "sender": "3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k", "senderPublicKey": "7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y", "proofs": [ "4exBwGb3R6Yz6pHFxLXzkmKSPq3y2uov86FaRwiUqEfVL1XvJxZ9JzQSEwfVVBDGeQMjxCjkh1qdiXJbnCcx3sH8" ], "script": "base64:AAIDAAAAAAAAABcIARIECgIICBIHCgUICAgIARIECgIIAQAAACoAAAAAB3hCaXRDTzIBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAAhzdGFydFF0eQAAAAAAAASqHQAAAAAMRmlyc3RGYXNlUXR5AAAAAAAAAHnZAAAAAA1TZWNvbmRGYXNlUXR5AAAAAAAABDBEAAAAAAhub21QcmljZQAAAAAAAAAAAQAAAAADd3ZzAAAAAAAF9eEAAAAAABBzdXBwbGllckRpc2NvdW50AAAAAAAAAAAMAAAAAAROT05FAgAAAARub25lAAAAAAtPd25lclB1YktleQEAAAAgXNdJIM57S2At8HU18j+g+Sd9q4Ac8pt9JaEK2Onv9h8AAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABAQAAACAvfl8GuDGccyaiBLhG+5I/bitn0ojPaO02SQ7jH5LcEQAAAAAEZUFkZAkBAAAAB0FkZHJlc3MAAAABAQAAACDpc36Tei0iAGkRGZLM03QiZonvwRKoKxR9Z8j3EmfoRAAAAAAEcEFkZAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVOfaA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JhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJd2l0aFdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAJd2l0aFdhdmVzB5kT99w=", "chainId": 84, "height": 1138312, "spentComplexity": 0 } View: original | compacted Prev: Cqw6iT7EppMQNJKfkYv5RDVG91hTRuSLvBa3R9MJ8piX Next: FYVsBvUck9xhb6rerwM2MuAVokJRp4NgdUEzu6D5fNuA Diff:
OldNewDifferences
148148
149149
150150 @Callable(i)
151-func purchaseGTS (item,userName,userDocument,totalAmount) = {
151+func purchaseGTS (item,itemName,userName,userDocument,totalAmount) = {
152152 let pmt = extract(i.payment)
153153 if (isDefined(pmt.assetId))
154154 then throw("El Precio de los aves.")
185185 then throw("Payment Amount can't be less than item Purchase Order")
186186 else if ((pmt.amount > totalAmount))
187187 then throw("Payment Amount can't be higher than item Purchase Order")
188- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemName(item), item), 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(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(supplier), (SecondFaseQty - QVentasgts)), 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)]))
188+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), 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(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(supplier), (SecondFaseQty - QVentasgts)), 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)]))
189189 }
190190 }
191191
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
55
66 let startQty = 305693
77
88 let FirstFaseQty = 31193
99
1010 let SecondFaseQty = 274500
1111
1212 let nomPrice = 1
1313
1414 let wvs = 100000000
1515
1616 let supplierDiscount = 12
1717
1818 let NONE = "none"
1919
2020 let OwnerPubKey = base58'7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y'
2121
2222 let issuer = Address(base58'4CPvf7HYx8YmgeJPYeXhhC76cvGzV16vxvPwZCxVH8b2')
2323
2424 let eAdd = Address(base58'GiJ8yN72wG35H2Cg1qYERtqFNbZuWav2QskRKnDjggZH')
2525
2626 let pAdd = Address(base58'3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k')
2727
2828 let igv = 18
2929
3030 let cPB = 88
3131
3232 let uIP = 7
3333
3434 let pIP = 10
3535
3636 let sIP = 1
3737
3838 let eIP = 1
3939
4040 func getNumberByKey (key) = {
4141 let num = match getInteger(this, key) {
4242 case a: Int =>
4343 a
4444 case _ =>
4545 0
4646 }
4747 num
4848 }
4949
5050
5151 func getStrByKey (key) = {
5252 let str = match getString(this, key) {
5353 case a: String =>
5454 a
5555 case _ =>
5656 NONE
5757 }
5858 str
5959 }
6060
6161
6262 func getKeyItemSupplier (supplier) = (supplier + "Bit-CO2 Shop, Lima-Perú")
6363
6464
6565 func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item)))))
6666
6767
6868 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
6969
7070
7171 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
7272
7373
7474 func getKeyItemName (item) = "Categoría del Producto:"
7575
7676
7777 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
7878
7979
8080 func getKeyUserName (item) = "Nombre del Usuario:"
8181
8282
8383 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
8484
8585
8686 func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:"
8787
8888
8989 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
9090
9191
9292 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
9393
9494
9595 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
9696
9797
9898 func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, tokens:"
9999
100100
101101 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
102102
103103
104104 func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS:"
105105
106106
107107 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
108108
109109
110110 func getKeyUI (item) = "UI,_wvs:"
111111
112112
113113 func getValueUI (item) = getNumberByKey(getKeyUI(item))
114114
115115
116116 func getKeyPI (item) = "PI,_%:"
117117
118118
119119 func getValuePI (item) = getNumberByKey(getKeyPI(item))
120120
121121
122122 func getKeySI (item) = "SI,_%:"
123123
124124
125125 func getValueSI (item) = getNumberByKey(getKeySI(item))
126126
127127
128128 @Callable(i)
129129 func deposit (title,supplierData) = {
130130 let pmt = extract(i.payment)
131131 if ((pmt.assetId != xBitCO2))
132132 then throw("deposito permitido solo en xBitCO2 tokens")
133133 else {
134134 let supplier = toBase58String(i.caller.bytes)
135135 let currentAmount = match getInteger(this, supplier) {
136136 case a: Int =>
137137 a
138138 case _ =>
139139 startQty
140140 }
141141 let newAmount = (currentAmount + pmt.amount)
142142 if ((0 >= newAmount))
143143 then throw("No hay xBitCO2 en su balance")
144144 else WriteSet([DataEntry(supplier, newAmount)])
145145 }
146146 }
147147
148148
149149
150150 @Callable(i)
151-func purchaseGTS (item,userName,userDocument,totalAmount) = {
151+func purchaseGTS (item,itemName,userName,userDocument,totalAmount) = {
152152 let pmt = extract(i.payment)
153153 if (isDefined(pmt.assetId))
154154 then throw("El Precio de los aves.")
155155 else {
156156 let supplier = match getString(this, getKeyItemSupplier(item)) {
157157 case a: String =>
158158 a
159159 case _ =>
160160 NONE
161161 }
162162 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
163163 case a: Int =>
164164 a
165165 case _ =>
166166 SecondFaseQty
167167 }
168168 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
169169 case a: Int =>
170170 a
171171 case _ =>
172172 0
173173 }
174174 let userAddress = toBase58String(i.caller.bytes)
175175 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
176176 let uI = ((subTotal * uIP) / 100)
177177 let uBI = (uI / cPB)
178178 let pI = ((subTotal * pIP) / 100)
179179 let eI = ((subTotal * eIP) / 100)
180180 let eBI = ((subTotal * eIP) / (cPB * 100))
181181 let sI = ((totalAmount - pI) - eI)
182182 let sBI = ((subTotal * sIP) / (cPB * 100))
183183 let QVentasgts = ((subTotal * 11) / (cPB * 100))
184184 if ((totalAmount > pmt.amount))
185185 then throw("Payment Amount can't be less than item Purchase Order")
186186 else if ((pmt.amount > totalAmount))
187187 then throw("Payment Amount can't be higher than item Purchase Order")
188- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemName(item), item), 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(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(supplier), (SecondFaseQty - QVentasgts)), 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)]))
188+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), 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(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(supplier), (SecondFaseQty - QVentasgts)), 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)]))
189189 }
190190 }
191191
192192
193193
194194 @Callable(i)
195195 func withdraw (item,amount) = {
196196 let userAddress = toBase58String(i.caller.bytes)
197197 let supplier = match getString(this, getKeyItemSupplier(item)) {
198198 case a: String =>
199199 a
200200 case _ =>
201201 NONE
202202 }
203203 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
204204 case a: Int =>
205205 a
206206 case _ =>
207207 startQty
208208 }
209209 let newAmount = (preIcoQty - amount)
210210 if ((0 > amount))
211211 then throw("El balance de retiro no puede ser negativo!")
212212 else if ((0 >= newAmount))
213213 then throw("Ooppss.. Insuficiente balance!")
214214 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)]))
215215 }
216216
217217
218218 @Verifier(tx)
219219 func verify () = match tx {
220220 case t: SetScriptTransaction =>
221221 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
222222 case d: DataTransaction|ReissueTransaction =>
223223 true
224224 case tx: TransferTransaction =>
225225 true
226226 case tx: ExchangeTransaction =>
227227 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
228228 then true
229229 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
230230 withWaves
231231 case _ =>
232232 false
233233 }
234234

github/deemru/w8io/026f985 
56.57 ms