tx · Cqw6iT7EppMQNJKfkYv5RDVG91hTRuSLvBa3R9MJ8piX

3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k:  -0.01400000 Waves

2020.08.17 00:47 [1135694] smart account 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k > SELF 0.00000000 Waves

{ "type": 13, "id": "Cqw6iT7EppMQNJKfkYv5RDVG91hTRuSLvBa3R9MJ8piX", "fee": 1400000, "feeAssetId": null, "timestamp": 1597614451100, "version": 1, "sender": "3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k", "senderPublicKey": "7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y", "proofs": [ "3A9EmvMQbVMZsBqUTKDc3jNpCVoDV41S1cDrEfaMS99Nc48xZdyjXnEGJMcLBZ1e2Ve1Qy4NUwSUDvWRcKfwiiAs" ], "script": "base64:AAIDAAAAAAAAABYIARIECgIICBIGCgQICAgBEgQKAggBAAAAKgAAAAAHeEJpdENPMgEAAAAgIARkpqoDew1vpqr6lyVYs5aJelMM/++6xmiHbINU3I0AAAAACHN0YXJ0UXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBc10kgzntLYC3wdTXyP6D5J32rgBzym30loQrY6e/2HwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAIC9+Xwa4MZxzJqIEuEb7kj9uK2fSiM9o7TZJDuMfktwRAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAIOlzfpN6LSIAaREZkszTdCJmie/BEqgrFH1nyPcSZ+hEAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGg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YXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcweo770H", "chainId": 84, "height": 1135694, "spentComplexity": 0 } View: original | compacted Prev: 6zRxp8A95XBpyAauPCcpmTM6enmxEANHBN7eYk9m2kRE Next: Gorpw2X1q6e3NPPmBVnEsLuquv28jVLo5rY6y5sY8VpE Diff:
OldNewDifferences
163163 case a: Int =>
164164 a
165165 case _ =>
166- startQty
166+ SecondFaseQty
167167 }
168168 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
169169 case a: Int =>
180180 let eBI = ((subTotal * eIP) / (cPB * 100))
181181 let sI = ((totalAmount - pI) - eI)
182182 let sBI = ((subTotal * sIP) / (cPB * 100))
183+ let QVentasgts = ((subTotal * 11) / (cPB * 100))
183184 if ((totalAmount > pmt.amount))
184185 then throw("Payment Amount can't be less than item Purchase Order")
185186 else if ((pmt.amount > totalAmount))
186187 then throw("Payment Amount can't be higher than item Purchase Order")
187- 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(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(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)]))
188189 }
189190 }
190191
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)
151151 func purchaseGTS (item,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 _ =>
166- startQty
166+ 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))
183+ let QVentasgts = ((subTotal * 11) / (cPB * 100))
183184 if ((totalAmount > pmt.amount))
184185 then throw("Payment Amount can't be less than item Purchase Order")
185186 else if ((pmt.amount > totalAmount))
186187 then throw("Payment Amount can't be higher than item Purchase Order")
187- 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(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(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)]))
188189 }
189190 }
190191
191192
192193
193194 @Callable(i)
194195 func withdraw (item,amount) = {
195196 let userAddress = toBase58String(i.caller.bytes)
196197 let supplier = match getString(this, getKeyItemSupplier(item)) {
197198 case a: String =>
198199 a
199200 case _ =>
200201 NONE
201202 }
202203 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
203204 case a: Int =>
204205 a
205206 case _ =>
206207 startQty
207208 }
208209 let newAmount = (preIcoQty - amount)
209210 if ((0 > amount))
210211 then throw("El balance de retiro no puede ser negativo!")
211212 else if ((0 >= newAmount))
212213 then throw("Ooppss.. Insuficiente balance!")
213214 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)]))
214215 }
215216
216217
217218 @Verifier(tx)
218219 func verify () = match tx {
219220 case t: SetScriptTransaction =>
220221 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
221222 case d: DataTransaction|ReissueTransaction =>
222223 true
223224 case tx: TransferTransaction =>
224225 true
225226 case tx: ExchangeTransaction =>
226227 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
227228 then true
228229 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
229230 withWaves
230231 case _ =>
231232 false
232233 }
233234

github/deemru/w8io/026f985 
37.50 ms