tx · 7M9ADWTUxzAuu5YHYnYA8XaXWEKnCHejiNCLd3ZkCbpa

3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k:  -0.01400000 Waves

2020.08.18 22:45 [1138752] smart account 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k > SELF 0.00000000 Waves

{ "type": 13, "id": "7M9ADWTUxzAuu5YHYnYA8XaXWEKnCHejiNCLd3ZkCbpa", "fee": 1400000, "feeAssetId": null, "timestamp": 1597779881146, "version": 1, "sender": "3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k", "senderPublicKey": "7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y", "proofs": [ "5KJpmyLtu3sxVBXc9xL6hVPHz6ubp4TzJAfewt1UvAZWcfzRPFiAnzWHPsmaXvb3PQnbaDqT1rGHuPUnaLK4dGKD" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAAKgAAAAAHeEJpdENPMgEAAAAgIARkpqoDew1vpqr6lyVYs5aJelMM/++6xmiHbINU3I0AAAAACHN0YXJ0UXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBc10kgzntLYC3wdTXyP6D5J32rgBzym30loQrY6e/2HwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuN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dGNoMAQAAAAJd2l0aFdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAJd2l0aFdhdmVzB9HWVAw=", "chainId": 84, "height": 1138752, "spentComplexity": 0 } View: original | compacted Prev: FrzfEmvF6NsmnQgL6XhG7ek18aansEEi78GSPrKRVWht Next: FxAYk1ZofeowrNMVp5CwYjNX16njAXdvbwihLKWta4Ds Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
5-
6-let bBitCO2 = base58'3UMwob2PDKVYmDMZZdT9ijK7EdRJZKFoBLCAXnwKtNN4'
75
86 let startQty = 305693
97
150148
151149
152150 @Callable(i)
153-func purchaseGTS2 (item,userName,userDocument,totalAmount) = {
154- let pmt = extract(i.payment)
155- if (isDefined(pmt.assetId))
156- then throw("you can adquire Products only by Waves tokens")
157- else {
158- let supplier = match getString(this, getKeyItemSupplier(item)) {
159- case a: String =>
160- a
161- case _ =>
162- NONE
163- }
164- let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
165- case a: Int =>
166- a
167- case _ =>
168- startQty
169- }
170- let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
171- case a: Int =>
172- a
173- case _ =>
174- 0
175- }
176- let userAddress = toBase58String(i.caller.bytes)
177- let subTotal = (totalAmount - ((igv * totalAmount) / 100))
178- let uI = ((subTotal * uIP) / 100)
179- let uBI = (uI / cPB)
180- let pI = ((subTotal * pIP) / 100)
181- let eI = ((subTotal * eIP) / 100)
182- let eBI = ((subTotal * eIP) / (cPB * 100))
183- let sI = ((totalAmount - pI) - eI)
184- let sBI = ((subTotal * sIP) / (cPB * 100))
185- if ((totalAmount > pmt.amount))
186- then throw("Payment Amount can't be less than item Purchase Order")
187- else if ((pmt.amount > totalAmount))
188- then throw("Payment Amount can't be higher than item Purchase Order")
189- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(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), "confirmed"), DataEntry(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, bBitCO2), ScriptTransfer(pAdd, pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, bBitCO2), ScriptTransfer(eAdd, eI, unit), ScriptTransfer(eAdd, eBI, bBitCO2)]))
190- }
191- }
192-
193-
194-
195-@Callable(i)
196151 func purchaseGTS (item,itemName,userName,userDocument,totalAmount,pAdd,eAdd) = {
197152 let pmt = extract(i.payment)
198153 if (isDefined(pmt.assetId))
230185 then throw("Payment Amount can't be less than item Purchase Order")
231186 else if ((pmt.amount > totalAmount))
232187 then throw("Payment Amount can't be higher than item Purchase Order")
233- 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(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, 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(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(addressFromStringValue(pAdd), pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, xBitCO2)]))
234189 }
235190 }
236191
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN'
5-
6-let bBitCO2 = base58'3UMwob2PDKVYmDMZZdT9ijK7EdRJZKFoBLCAXnwKtNN4'
75
86 let startQty = 305693
97
108 let FirstFaseQty = 31193
119
1210 let SecondFaseQty = 274500
1311
1412 let nomPrice = 1
1513
1614 let wvs = 100000000
1715
1816 let supplierDiscount = 12
1917
2018 let NONE = "none"
2119
2220 let OwnerPubKey = base58'7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y'
2321
2422 let issuer = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW')
2523
2624 let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c')
2725
2826 let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD')
2927
3028 let igv = 18
3129
3230 let cPB = 88
3331
3432 let uIP = 7
3533
3634 let pIP = 10
3735
3836 let sIP = 1
3937
4038 let eIP = 1
4139
4240 func getNumberByKey (key) = {
4341 let num = match getInteger(this, key) {
4442 case a: Int =>
4543 a
4644 case _ =>
4745 0
4846 }
4947 num
5048 }
5149
5250
5351 func getStrByKey (key) = {
5452 let str = match getString(this, key) {
5553 case a: String =>
5654 a
5755 case _ =>
5856 NONE
5957 }
6058 str
6159 }
6260
6361
6462 func getKeyItemSupplier (supplier) = (supplier + "Bit-CO2 Shop, Lima-Perú")
6563
6664
6765 func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item)))))
6866
6967
7068 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
7169
7270
7371 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
7472
7573
7674 func getKeyItemName (item) = "Categoría del Producto:"
7775
7876
7977 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
8078
8179
8280 func getKeyUserName (item) = "Nombre del Usuario:"
8381
8482
8583 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
8684
8785
8886 func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:"
8987
9088
9189 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
9290
9391
9492 func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:"
9593
9694
9795 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
9896
9997
10098 func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, tokens:"
10199
102100
103101 func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item))
104102
105103
106104 func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS:"
107105
108106
109107 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
110108
111109
112110 func getKeyUI (item) = "UI,_wvs:"
113111
114112
115113 func getValueUI (item) = getNumberByKey(getKeyUI(item))
116114
117115
118116 func getKeyPI (item) = "PI,_%:"
119117
120118
121119 func getValuePI (item) = getNumberByKey(getKeyPI(item))
122120
123121
124122 func getKeySI (item) = "SI,_%:"
125123
126124
127125 func getValueSI (item) = getNumberByKey(getKeySI(item))
128126
129127
130128 @Callable(i)
131129 func deposit (title,supplierData) = {
132130 let pmt = extract(i.payment)
133131 if ((pmt.assetId != xBitCO2))
134132 then throw("deposito permitido solo en xBitCO2 tokens")
135133 else {
136134 let supplier = toBase58String(i.caller.bytes)
137135 let currentAmount = match getInteger(this, supplier) {
138136 case a: Int =>
139137 a
140138 case _ =>
141139 startQty
142140 }
143141 let newAmount = (currentAmount + pmt.amount)
144142 if ((0 >= newAmount))
145143 then throw("No hay xBitCO2 en su balance")
146144 else WriteSet([DataEntry(supplier, newAmount)])
147145 }
148146 }
149147
150148
151149
152150 @Callable(i)
153-func purchaseGTS2 (item,userName,userDocument,totalAmount) = {
154- let pmt = extract(i.payment)
155- if (isDefined(pmt.assetId))
156- then throw("you can adquire Products only by Waves tokens")
157- else {
158- let supplier = match getString(this, getKeyItemSupplier(item)) {
159- case a: String =>
160- a
161- case _ =>
162- NONE
163- }
164- let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
165- case a: Int =>
166- a
167- case _ =>
168- startQty
169- }
170- let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
171- case a: Int =>
172- a
173- case _ =>
174- 0
175- }
176- let userAddress = toBase58String(i.caller.bytes)
177- let subTotal = (totalAmount - ((igv * totalAmount) / 100))
178- let uI = ((subTotal * uIP) / 100)
179- let uBI = (uI / cPB)
180- let pI = ((subTotal * pIP) / 100)
181- let eI = ((subTotal * eIP) / 100)
182- let eBI = ((subTotal * eIP) / (cPB * 100))
183- let sI = ((totalAmount - pI) - eI)
184- let sBI = ((subTotal * sIP) / (cPB * 100))
185- if ((totalAmount > pmt.amount))
186- then throw("Payment Amount can't be less than item Purchase Order")
187- else if ((pmt.amount > totalAmount))
188- then throw("Payment Amount can't be higher than item Purchase Order")
189- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(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), "confirmed"), DataEntry(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, bBitCO2), ScriptTransfer(pAdd, pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, bBitCO2), ScriptTransfer(eAdd, eI, unit), ScriptTransfer(eAdd, eBI, bBitCO2)]))
190- }
191- }
192-
193-
194-
195-@Callable(i)
196151 func purchaseGTS (item,itemName,userName,userDocument,totalAmount,pAdd,eAdd) = {
197152 let pmt = extract(i.payment)
198153 if (isDefined(pmt.assetId))
199154 then throw("El Precio en waves.")
200155 else {
201156 let supplier = match getString(this, getKeyItemSupplier(item)) {
202157 case a: String =>
203158 a
204159 case _ =>
205160 NONE
206161 }
207162 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
208163 case a: Int =>
209164 a
210165 case _ =>
211166 SecondFaseQty
212167 }
213168 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
214169 case a: Int =>
215170 a
216171 case _ =>
217172 0
218173 }
219174 let userAddress = toBase58String(i.caller.bytes)
220175 let subTotal = (totalAmount - ((igv * totalAmount) / 100))
221176 let uI = ((subTotal * uIP) / 100)
222177 let uBI = (uI / cPB)
223178 let pI = ((subTotal * pIP) / 100)
224179 let eI = ((subTotal * eIP) / 100)
225180 let eBI = ((subTotal * eIP) / (cPB * 100))
226181 let sI = ((totalAmount - pI) - eI)
227182 let sBI = ((subTotal * sIP) / (cPB * 100))
228183 let QVentasgts = ((subTotal * 11) / (cPB * 100))
229184 if ((totalAmount > pmt.amount))
230185 then throw("Payment Amount can't be less than item Purchase Order")
231186 else if ((pmt.amount > totalAmount))
232187 then throw("Payment Amount can't be higher than item Purchase Order")
233- 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(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, 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(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(addressFromStringValue(pAdd), pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, xBitCO2)]))
234189 }
235190 }
236191
237192
238193
239194 @Callable(i)
240195 func withdraw (item,amount) = {
241196 let userAddress = toBase58String(i.caller.bytes)
242197 let supplier = match getString(this, getKeyItemSupplier(item)) {
243198 case a: String =>
244199 a
245200 case _ =>
246201 NONE
247202 }
248203 let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) {
249204 case a: Int =>
250205 a
251206 case _ =>
252207 startQty
253208 }
254209 let newAmount = (preIcoQty - amount)
255210 if ((0 > amount))
256211 then throw("El balance de retiro no puede ser negativo!")
257212 else if ((0 >= newAmount))
258213 then throw("Ooppss.. Insuficiente balance!")
259214 else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)]))
260215 }
261216
262217
263218 @Verifier(tx)
264219 func verify () = match tx {
265220 case t: SetScriptTransaction =>
266221 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
267222 case d: DataTransaction|ReissueTransaction =>
268223 true
269224 case tx: TransferTransaction =>
270225 true
271226 case tx: ExchangeTransaction =>
272227 let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset)))
273228 then true
274229 else !(isDefined(tx.sellOrder.assetPair.amountAsset))
275230 withWaves
276231 case _ =>
277232 false
278233 }
279234

github/deemru/w8io/026f985 
52.58 ms