tx · CRYSnUnPbE948YdokR2QgzqdmF1nvNu3yjUAaP8roY6c

3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8:  -0.01000000 Waves

2021.10.22 09:16 [1757128] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves

{ "type": 13, "id": "CRYSnUnPbE948YdokR2QgzqdmF1nvNu3yjUAaP8roY6c", "fee": 1000000, "feeAssetId": null, "timestamp": 1634883389554, "version": 2, "chainId": 84, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "4dNu7juT5YaZkR7NZtQ7y4McXoSVQcq6as3YiVb4sUwpmexGafmJqtyzHKUEtQjTaayPZy24vjXgYtf6ZaQD7DC3" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgIAQAAADYAAAAAB3lCaXRDTzIBAAAAIGmM1P/bTQF96Mt4t9+zj8FcPDlb6Qx5aA0hjmfpm0utAAAAABBUb2tUb1ZlbmRlZG9yUXR5AAAAAAAAACcQAAAAAAROT05FAgAAAARub25lAAAAAAtPd25lclB1YktleQEAAAAgdiWBR/bYuTfu7hq3cysJa14Q3mfrzJBzirlSbXhIDw8AAAAABHRBZGQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSytaaY+JrppsPu4EytwHd1G+Id3n5J9CcAAAAABGFBZGQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSxn8sta9KJwYVeSm05ro6/tXJvgonaFpMAAAAABGVBZGQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSZfSwz7guLhVBBDbpt8HuP9dT9VbgebFcAAAAABHBBZGQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRDpa41iJ6abSfWldJnpiA/ZQ4ykLB0pGoAAAAABWV1cm91AAAAAAAAAAB0AAAAAAV1c2RudwAAAAAAAAAJ6wAAAAAFYmNvMmUAAAAAAAABh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", "spentComplexity": 0 } View: original | compacted Prev: JD3zKPydhbGr8ec35jcVBqZJZ46XXK5eFg5MwY7vw3nc Next: 32TCKtNw2KiiBCs3tuTTYuPtPkKD4Cxdjp7BiVjMvr5C Diff:
OldNewDifferences
216216 then throw("Payment Amount can't be less than item Purchase Order")
217217 else if ((pmt.amount > totalAmount))
218218 then throw("Payment Amount can't be higher than item Purchase Order")
219- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemSupplier(supplier), supplier), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Asociado Bit", asociado), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry("1 Bit-CO2 con dscto, usd x10e-4", bco2menosdcto), DataEntry("Total bit-co2 a distribuir, x10e-4", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry("Saldo Proyecto", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens", saldoTienda1), DataEntry("Saldo BCO2, x10e-04", amountBCO2)]), TransferSet([ScriptTransfer(pAdd, pIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(aAdd, sIb, yBitCO2), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
219+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemSupplier(supplier), supplier), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Asociado Bit", asociado), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry("1 Bit-CO2 con dscto, usd x10e-4", bco2menosdcto), DataEntry("Total bit-co2 a distribuir, x10e-4", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry("Saldo Proyecto", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens", saldoTienda1), DataEntry(getKeyBalanToken(tienda), (getValueBalanToken(tienda) + subTotalb)), DataEntry("Saldo BCO2, x10e-04", amountBCO2)]), TransferSet([ScriptTransfer(pAdd, pIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(aAdd, sIb, yBitCO2), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
220220 }
221221 }
222222
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx'
55
66 let TokToVendedorQty = 10000
77
88 let NONE = "none"
99
1010 let OwnerPubKey = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U'
1111
1212 let tAdd = Address(base58'3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8')
1313
1414 let aAdd = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW')
1515
1616 let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c')
1717
1818 let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD')
1919
2020 let eurou = 116
2121
2222 let usdnw = 2539
2323
2424 let bco2e = 100000
2525
2626 let bitdscto = 3
2727
2828 let pIP = 10
2929
3030 let uBP = 7
3131
3232 let sBP = 2
3333
3434 let eIP = 1
3535
3636 let eBP = 2
3737
3838 let relacdcto = 11
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 + "Vendedor, Lima-Perú")
6363
6464
6565 func getKeyItem (supplier,item) = (("Producto-GTS: " + " ") + toBase58String(sha256(toBytes((supplier + item)))))
6666
6767
6868 func getKeyAsociado (asociado) = "Asociado Bit-CO2"
6969
7070
7171 func getValueAsociado (asociado) = getStrByKey(getKeyAsociado(asociado))
7272
7373
7474 func getKeyProject (project) = "Project"
7575
7676
7777 func getValueProject (project) = getStrByKey(getKeyProject(project))
7878
7979
8080 func getKeyNodo (nodo) = "Nodo-Activo"
8181
8282
8383 func getValueNodo (nodo) = getStrByKey(getKeyNodo(nodo))
8484
8585
8686 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
8787
8888
8989 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
9090
9191
9292 func getKeyItemName (item) = "Tienda / Categoría GTS:"
9393
9494
9595 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
9696
9797
9898 func getKeyUserName (item) = "Nombre del Usuario:"
9999
100100
101101 func getValueUserName (item) = getStrByKey(getKeyUserName(item))
102102
103103
104104 func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:"
105105
106106
107107 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
108108
109109
110110 func getKeyUI (item) = "UI, x10e-04 bit:"
111111
112112
113113 func getValueUI (item) = getNumberByKey(getKeyUI(item))
114114
115115
116116 func getKeyPI (item) = "PI, wvls:"
117117
118118
119119 func getValuePI (item) = getNumberByKey(getKeyPI(item))
120120
121121
122122 func getKeySI (item) = "SI, x10e-04 bit:"
123123
124124
125125 func getValueSI (item) = getNumberByKey(getKeySI(item))
126126
127127
128128 func getKeyNIb (item) = "NIb, x10e-04 bit:"
129129
130130
131131 func getValueNIb (item) = getNumberByKey(getKeyNIb(item))
132132
133133
134134 func getKeyNIw (item) = "NIw, wvls:"
135135
136136
137137 func getValueNIw (item) = getNumberByKey(getKeyNIw(item))
138138
139139
140140 func getKeyBalanToken (tienda) = "Tokens Ofertados / Balance, ytok:"
141141
142142
143143 func getValueBalanToken (tienda) = getNumberByKey(getKeyBalanToken(tienda))
144144
145145
146146 func getKeyBalanceProyecto (proyecto) = "Balance del Proyecto, wvs:"
147147
148148
149149 func getValueBalanceProyecto (proyecto) = getNumberByKey(getKeyBalanceProyecto(proyecto))
150150
151151
152152 func getKeyBalanceAsociado (asociado) = "Balance del Asociado:"
153153
154154
155155 func getValueBalanceAsociado (asociado) = getNumberByKey(getKeyBalanceAsociado(asociado))
156156
157157
158158 func getKeyBalanceNodo (nodo) = "Balance del Nodo:"
159159
160160
161161 func getValueBalanceNodo (nodo) = getNumberByKey(getKeyBalanceNodo(nodo))
162162
163163
164164 @Callable(i)
165165 func purchaseGTS (item,itemName,userName,userDocument,totalAmount) = {
166166 let pmt = extract(i.payment)
167167 if (isDefined(pmt.assetId))
168168 then throw("El Precio en waves.")
169169 else {
170170 let supplier = match getString(this, getKeyItemSupplier(item)) {
171171 case a: String =>
172172 a
173173 case _ =>
174174 NONE
175175 }
176176 let tienda = toBase58String(tAdd.bytes)
177177 let saldoTienda1 = match getInteger(this, getKeyBalanToken(tienda)) {
178178 case a: Int =>
179179 a
180180 case _ =>
181181 0
182182 }
183183 let amountBCO2 = ((TokToVendedorQty * 10000) - saldoTienda1)
184184 let proyecto = toBase58String(pAdd.bytes)
185185 let saldoProj = match getInteger(this, getKeyBalanceProyecto(proyecto)) {
186186 case a: Int =>
187187 a
188188 case _ =>
189189 0
190190 }
191191 let asociado = toBase58String(aAdd.bytes)
192192 let saldoAsociado = match getInteger(this, getKeyBalanceAsociado(asociado)) {
193193 case a: Int =>
194194 a
195195 case _ =>
196196 0
197197 }
198198 let nodo = toBase58String(eAdd.bytes)
199199 let saldoNodo = match getInteger(this, getKeyBalanceNodo(nodo)) {
200200 case a: Int =>
201201 a
202202 case _ =>
203203 0
204204 }
205205 let userAddress = toBase58String(i.caller.bytes)
206206 let subTotal = totalAmount
207207 let pIw = ((pIP * subTotal) / relacdcto)
208208 let eIw = ((eIP * subTotal) / relacdcto)
209209 let bco2menosdcto = (((100 - bitdscto) * (eurou * bco2e)) / 10000)
210210 let subTotalb = (((totalAmount * usdnw) / 100) / bco2menosdcto)
211211 let totalb = (subTotalb * 10000)
212212 let uIb = ((uBP * subTotalb) / relacdcto)
213213 let sIb = ((sBP * subTotalb) / relacdcto)
214214 let eIb = ((eBP * subTotalb) / relacdcto)
215215 if ((totalAmount > pmt.amount))
216216 then throw("Payment Amount can't be less than item Purchase Order")
217217 else if ((pmt.amount > totalAmount))
218218 then throw("Payment Amount can't be higher than item Purchase Order")
219- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemSupplier(supplier), supplier), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Asociado Bit", asociado), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry("1 Bit-CO2 con dscto, usd x10e-4", bco2menosdcto), DataEntry("Total bit-co2 a distribuir, x10e-4", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry("Saldo Proyecto", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens", saldoTienda1), DataEntry("Saldo BCO2, x10e-04", amountBCO2)]), TransferSet([ScriptTransfer(pAdd, pIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(aAdd, sIb, yBitCO2), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
219+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemSupplier(supplier), supplier), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Asociado Bit", asociado), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry("1 Bit-CO2 con dscto, usd x10e-4", bco2menosdcto), DataEntry("Total bit-co2 a distribuir, x10e-4", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry("Saldo Proyecto", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens", saldoTienda1), DataEntry(getKeyBalanToken(tienda), (getValueBalanToken(tienda) + subTotalb)), DataEntry("Saldo BCO2, x10e-04", amountBCO2)]), TransferSet([ScriptTransfer(pAdd, pIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(aAdd, sIb, yBitCO2), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
220220 }
221221 }
222222
223223
224224 @Verifier(tx)
225225 func verify () = match tx {
226226 case t: SetScriptTransaction =>
227227 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
228228 case d: ReissueTransaction|DataTransaction =>
229229 true
230230 case tx: TransferTransaction =>
231231 true
232232 case _ =>
233233 false
234234 }
235235

github/deemru/w8io/026f985 
57.82 ms