tx · 7fJXystnWQzjTf4rJ8tki8iXHzPxNFnreXTh8iRp8tna

3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR:  -0.01000000 Waves

2022.04.01 11:25 [1989278] smart account 3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR > SELF 0.00000000 Waves

{ "type": 13, "id": "7fJXystnWQzjTf4rJ8tki8iXHzPxNFnreXTh8iRp8tna", "fee": 1000000, "feeAssetId": null, "timestamp": 1648801617955, "version": 2, "chainId": 84, "sender": "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR", "senderPublicKey": "Cjdbq4KUpfnLffutB5MU8a1uUFn9ZjuymuH1Q1mRZ6dJ", "proofs": [ "5mAtaiAzYkgE6sRbZkpsV3DVFTAcah4yWAnYvFxnR37usdnZdNVQwGTssZT1uz2biCNNWEVDut2qJBjDepfnTuX8" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAuAAAAAAZCaXRDTzIBAAAAIMUi0QAOPWzHrrHgLgYvt6byvqBTCBHKATKU5thr4LIYAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAHQAAAAABXVzZG53AAAAAAAAAAnrAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIK5cVaB67a6ovRta5QFiftZvW16UMw5Mv/WLhV91gKFtAAAAAA1Bc29jUHJlc3RlYzAxAgAAACMzTjg2RDJFN3BTRkQ3ZkpCQjFxa2NHTThTb1I2clpwRnc5bwAAAAANQXNvY1ByZXN0ZWMwMgIAAAAjM04yakh0Z1NWQ3RXNmpkZG1RdWVyTjdOU25YalIzS2NFZmcBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAAN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bVN0cmluZykAAAABBQAAAAt1c2VyQWRkcmVzcwkAAGgAAAACAAAAAAAAACcQBQAAAAhvcmRlclF0eQUAAAAGQml0Q08yBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAtPd25lclB1YktleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGBwNQ2xU=", "height": 1989278, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3cYXWedyk1yg4b2zB8bZHKSqUVBbZJHcP78L2Wi62T6d Next: 32ayWZUdSyYjTTxjxyezMGGqghyLEi5nZUnRvY3YQUnD Diff:
OldNewDifferences
180180 then throw("Payment Amount can't be less than item Purchase Order")
181181 else if ((pmt.amount > totalAmount))
182182 then throw("Payment Amount can't be higher than item Purchase Order")
183- else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (100000 * orderQty), BitCO2)]))
183+ else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2)]))
184184 }
185185 }
186186 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let BitCO2 = base58'EGY7HCyeHiHiCiiYpqH1Dmd5E6nzbwrgsdX3FHx5kFWw'
55
66 let startTotalQty = 305693
77
88 let FirstFaseQty = 31193
99
1010 let SecondFaseQty = 274500
1111
1212 let wvs = 100000000
1313
1414 let NONE = "none"
1515
1616 let eurou = 116
1717
1818 let usdnw = 2539
1919
2020 let bco2e = 10
2121
2222 let OwnerPubKey = base58'Cjdbq4KUpfnLffutB5MU8a1uUFn9ZjuymuH1Q1mRZ6dJ'
2323
2424 let AsocPrestec01 = "3N86D2E7pSFD7fJBB1qkcGM8SoR6rZpFw9o"
2525
2626 let AsocPrestec02 = "3N2jHtgSVCtW6jddmQuerN7NSnXjR3KcEfg"
2727
2828 func getNumberByKey (key) = {
2929 let num = match getInteger(this, key) {
3030 case a: Int =>
3131 a
3232 case _ =>
3333 0
3434 }
3535 num
3636 }
3737
3838
3939 func getStrByKey (key) = {
4040 let str = match getString(this, key) {
4141 case a: String =>
4242 a
4343 case _ =>
4444 NONE
4545 }
4646 str
4747 }
4848
4949
5050 func getKeyProjectCategory (item) = "Categoría del Proyecto:"
5151
5252
5353 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
5454
5555
5656 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
5757
5858
5959 func getKeyProjectName (item) = "Nombre del Proyecto:"
6060
6161
6262 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
6363
6464
6565 func getKeyProjectCountry (item) = "País | Ubicación:"
6666
6767
6868 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
6969
7070
7171 func getKeyProjectCode (item) = "Código:"
7272
7373
7474 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
7575
7676
7777 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
7878
7979
8080 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
8181
8282
8383 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
8484
8585
8686 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
8787
8888
8989 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:"
9090
9191
9292 func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:"
9393
9494
9595 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
9696
9797
9898 func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados en F1 PreICO:"
9999
100100
101101 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
102102
103103
104104 func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, PreICO"
105105
106106
107107 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
108108
109109
110110 func getKeyBalanceSupplier (supplier) = "Fondos para Proyectos Verdes Naturales, Asociados Bit-CO2:"
111111
112112
113113 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
114114
115115
116116 func getKeyUserItemCounter (user,item) = "Order_№:"
117117
118118
119119 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
120120
121121
122122 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
123123
124124
125125 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
126126
127127
128128 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
129129
130130
131131 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
132132
133133
134134 func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:"
135135
136136
137137 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
138138
139139
140140 func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:"
141141
142142
143143 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
144144
145145
146146 @Callable(i)
147147 func purchase (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
148148 let pmt = extract(i.payment)
149149 if (isDefined(pmt.assetId))
150150 then throw("Ud. puede adquirir tokens BitCO2 usando WavesKeeper y su token de pago Waves.")
151151 else {
152152 let supplier = match getString(this, getKeyItemSupplier(item)) {
153153 case a: String =>
154154 a
155155 case _ =>
156156 NONE
157157 }
158158 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
159159 case a: Int =>
160160 a
161161 case _ =>
162162 0
163163 }
164164 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let userAddress = toBase58String(i.caller.bytes)
171171 if (if ((userAddress != AsocPrestec01))
172172 then (userAddress != AsocPrestec02)
173173 else false)
174174 then throw("Disculpe, Su cuenta no tiene derecho de Asociado Bit-CO2 a Proyectos")
175175 else {
176176 let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
177177 if ((0 >= ((startTotalQty - preIcoQty) - orderQty)))
178178 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
179179 else if ((totalAmount > pmt.amount))
180180 then throw("Payment Amount can't be less than item Purchase Order")
181181 else if ((pmt.amount > totalAmount))
182182 then throw("Payment Amount can't be higher than item Purchase Order")
183- else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (100000 * orderQty), BitCO2)]))
183+ else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "N08EC-01_ACH-KAPAWI_PREICOF1"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica NASEE 'FAEN'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Tokens Bit-CO2 emitidos en F1/F2 PreICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry("Oferta de tokens utilizada:", "Programa-Asoc11 | Programa-GTS | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty))), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Proyecto en Waves-BlockChain:", "3Mx6LAVfCgSQdS3Lt1cf41ZCLNYqgeXcuWR")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2)]))
184184 }
185185 }
186186 }
187187
188188
189189 @Verifier(tx)
190190 func verify () = match tx {
191191 case t: SetScriptTransaction =>
192192 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
193193 case d: DataTransaction =>
194194 true
195195 case tx: TransferTransaction =>
196196 true
197197 case _ =>
198198 false
199199 }
200200

github/deemru/w8io/169f3d6 
41.39 ms