tx · 2Yy2AxbNStSMeKy1KY79DLxabc5YE3fzvT4HdtrYXymZ

3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8:  -0.01000000 Waves

2021.10.24 16:58 [1760482] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves

{ "type": 13, "id": "2Yy2AxbNStSMeKy1KY79DLxabc5YE3fzvT4HdtrYXymZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1635083923087, "version": 2, "chainId": 84, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "2EdUNQ3BZL51i6j1taUyCtCyePsP2Y5gnmLzKwqTVykeiTvr3yj6XGTTX9kNFBivZR2twbnW4WLAXcXoGtu1tVJ6" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYBCAgICAgAAAA2AAAAAAd5Qml0Q08yAQAAACBpjNT/200BfejLeLffs4/BXDw5W+kMeWgNIY5n6ZtLrQAAAAAQVG9rVG9WZW5kZWRvclF0eQAAAAAAAAAnEAAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIHYlgUf22Lk37u4at3MrCWteEN5n68yQc4q5Um14SA8PAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuNYiemm0n1pXSZ6YgP2UOMpCwdKRqAAAAAAR0QWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU+7O5a7aYRBMtxWs5cEFVcJFhVa4S5bwWAAAAAARhQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAAR1c2VyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUtVFRCnpPk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AAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABHBBZGQFAAAAA3BJdwUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAA3VJYgUAAAAHeUJpdENPMgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAARhQWRkBQAAAANlSXcFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAEZUFkZAUAAAADZUl3BQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABGVBZGQFAAAAA2VJYgUAAAAHeUJpdENPMgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgfRu+95", "height": 1760482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 32SPGi9yC4aPRJiTW9CZU4QnKDfsgtfPzB5HAEtNSUHa Next: Dr3i4ZZq8b1TBcm1edjVzuiBxj1yoKCh3quwwdJvd6eq Diff:
OldNewDifferences
6161 }
6262
6363
64-func getKeyItemSupplier (supplier) = (supplier + "Vendedor-GTS, Lima-Perú")
65-
66-
67-func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier))
64+func getKeySupplier (item) = (item + "-GTS, Lima-Perú")
6865
6966
7067 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
169166 if (isDefined(pmt.assetId))
170167 then throw("El Precio en waves.")
171168 else {
172- let supplier = match getString(this, getKeyItemSupplier(item)) {
169+ let supplier = match getString(this, getKeySupplier(item)) {
173170 case a: String =>
174171 a
175172 case _ =>
218215 then throw("Payment Amount can't be less than item Purchase Order")
219216 else if ((pmt.amount > totalAmount))
220217 then throw("Payment Amount can't be higher than item Purchase Order")
221- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemSupplier(supplier), supplier), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry("Nodo Activo", nodo), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), 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, wvls", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens, bco2", 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, eIw, unit), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
218+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeySupplier(item), item), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry("Nodo Activo", nodo), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), 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, wvls", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens, bco2", 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, eIw, unit), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
222219 }
223220 }
224221
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 pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD')
1313
1414 let tAdd = Address(base58'3NCrxgXt6u1iuJSLENumENf7NB3WiT3NcHb')
1515
1616 let aAdd = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW')
1717
1818 let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c')
1919
2020 let user = Address(base58'3N6SoVcgBgBdjv4DqyirCoNuNw1SebS5VFT')
2121
2222 let eurou = 116
2323
2424 let usdnw = 2539
2525
2626 let bco2e = 100000
2727
2828 let bitdscto = 3
2929
3030 let pIP = 10
3131
3232 let uBP = 7
3333
3434 let sBP = 2
3535
3636 let eIP = 1
3737
3838 let eBP = 2
3939
4040 let relacdcto = 11
4141
4242 func getNumberByKey (key) = {
4343 let num = match getInteger(this, key) {
4444 case a: Int =>
4545 a
4646 case _ =>
4747 0
4848 }
4949 num
5050 }
5151
5252
5353 func getStrByKey (key) = {
5454 let str = match getString(this, key) {
5555 case a: String =>
5656 a
5757 case _ =>
5858 NONE
5959 }
6060 str
6161 }
6262
6363
64-func getKeyItemSupplier (supplier) = (supplier + "Vendedor-GTS, Lima-Perú")
65-
66-
67-func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier))
64+func getKeySupplier (item) = (item + "-GTS, Lima-Perú")
6865
6966
7067 func getKeyUserItemGtsCounter (user,item) = "Order_№:"
7168
7269
7370 func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item))
7471
7572
7673 func getKeyprojectName (item) = "Proyecto a Invertir"
7774
7875
7976 func getValueprojectName (item) = getStrByKey(getKeyprojectName(item))
8077
8178
8279 func getKeyUserDocument (item) = "№ de Documento | DNI del Usuario:"
8380
8481
8582 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
8683
8784
8885 func getKeyItemName (item) = "Producto adquirido | Categoría GTS:"
8986
9087
9188 func getValueItemName (item) = getStrByKey(getKeyItemName(item))
9289
9390
9491 func getKeyTName (item) = "Tienda | Vendedor GTS:"
9592
9693
9794 func getValueTName (item) = getStrByKey(getKeyTName(item))
9895
9996
10097 func getKeyNodo (nodo) = "Nodo-Activo:"
10198
10299
103100 func getValueNodo (nodo) = getStrByKey(getKeyNodo(nodo))
104101
105102
106103 func getKeyAsociado (asociado) = "Asociado Bit-CO2"
107104
108105
109106 func getValueAsociado (asociado) = getStrByKey(getKeyAsociado(asociado))
110107
111108
112109 func getKeyUI (item) = "UI, x10e-04 bit:"
113110
114111
115112 func getValueUI (item) = getNumberByKey(getKeyUI(item))
116113
117114
118115 func getKeyPI (item) = "PI, wvls:"
119116
120117
121118 func getValuePI (item) = getNumberByKey(getKeyPI(item))
122119
123120
124121 func getKeySI (item) = "SI, x10e-04 bit:"
125122
126123
127124 func getValueSI (item) = getNumberByKey(getKeySI(item))
128125
129126
130127 func getKeyNIb (item) = "NIb, x10e-04 bit:"
131128
132129
133130 func getValueNIb (item) = getNumberByKey(getKeyNIb(item))
134131
135132
136133 func getKeyNIw (item) = "NIw, wvls:"
137134
138135
139136 func getValueNIw (item) = getNumberByKey(getKeyNIw(item))
140137
141138
142139 func getKeyBalanToken (tienda) = "Tokens Ofertados / Balance, ytok:"
143140
144141
145142 func getValueBalanToken (tienda) = getNumberByKey(getKeyBalanToken(tienda))
146143
147144
148145 func getKeyBalanceProyecto (proyecto) = "Balance del Proyecto, wvls:"
149146
150147
151148 func getValueBalanceProyecto (proyecto) = getNumberByKey(getKeyBalanceProyecto(proyecto))
152149
153150
154151 func getKeyBalanceAsociado (asociado) = "Balance del Asociado:"
155152
156153
157154 func getValueBalanceAsociado (asociado) = getNumberByKey(getKeyBalanceAsociado(asociado))
158155
159156
160157 func getKeyBalanceNodo (nodo) = "Balance del Nodo:"
161158
162159
163160 func getValueBalanceNodo (nodo) = getNumberByKey(getKeyBalanceNodo(nodo))
164161
165162
166163 @Callable(i)
167164 func purchaseGTS (totalAmount,userDocument,projectName,itemName,tName,item) = {
168165 let pmt = extract(i.payment)
169166 if (isDefined(pmt.assetId))
170167 then throw("El Precio en waves.")
171168 else {
172- let supplier = match getString(this, getKeyItemSupplier(item)) {
169+ let supplier = match getString(this, getKeySupplier(item)) {
173170 case a: String =>
174171 a
175172 case _ =>
176173 NONE
177174 }
178175 let tienda = toBase58String(tAdd.bytes)
179176 let saldoTienda1 = match getInteger(this, getKeyBalanToken(tienda)) {
180177 case a: Int =>
181178 a
182179 case _ =>
183180 0
184181 }
185182 let amountBCO2 = ((TokToVendedorQty * 10000) - saldoTienda1)
186183 let proyecto = toBase58String(pAdd.bytes)
187184 let saldoProj = match getInteger(this, getKeyBalanceProyecto(proyecto)) {
188185 case a: Int =>
189186 a
190187 case _ =>
191188 0
192189 }
193190 let asociado = toBase58String(aAdd.bytes)
194191 let saldoAsociado = match getInteger(this, getKeyBalanceAsociado(asociado)) {
195192 case a: Int =>
196193 a
197194 case _ =>
198195 0
199196 }
200197 let nodo = toBase58String(eAdd.bytes)
201198 let saldoNodo = match getInteger(this, getKeyBalanceNodo(nodo)) {
202199 case a: Int =>
203200 a
204201 case _ =>
205202 0
206203 }
207204 let userAddress = toBase58String(i.caller.bytes)
208205 let subTotal = totalAmount
209206 let pIw = ((pIP * subTotal) / relacdcto)
210207 let eIw = ((eIP * subTotal) / relacdcto)
211208 let bco2menosdcto = (((100 - bitdscto) * (eurou * bco2e)) / 10000)
212209 let subTotalb = (((totalAmount * usdnw) / 100) / bco2menosdcto)
213210 let totalb = (subTotalb * 10000)
214211 let uIb = ((uBP * subTotalb) / relacdcto)
215212 let sIb = ((sBP * subTotalb) / relacdcto)
216213 let eIb = ((eBP * subTotalb) / relacdcto)
217214 if ((totalAmount > pmt.amount))
218215 then throw("Payment Amount can't be less than item Purchase Order")
219216 else if ((pmt.amount > totalAmount))
220217 then throw("Payment Amount can't be higher than item Purchase Order")
221- else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItemSupplier(supplier), supplier), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry("Nodo Activo", nodo), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), 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, wvls", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens, bco2", 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, eIw, unit), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
218+ else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeySupplier(item), item), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry("Nodo Activo", nodo), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), 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, wvls", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens, bco2", 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, eIw, unit), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)]))
222219 }
223220 }
224221
225222
226223 @Verifier(tx)
227224 func verify () = match tx {
228225 case t: SetScriptTransaction =>
229226 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
230227 case d: ReissueTransaction|DataTransaction =>
231228 true
232229 case tx: TransferTransaction =>
233230 true
234231 case _ =>
235232 false
236233 }
237234

github/deemru/w8io/169f3d6 
51.22 ms