tx · DZeD8MK5DK7B5gbFzhVCsk4xFAt4C6g5nLaNwfNjre4o

3N5xYa3t8rCyBcQvxebBM7Qg9Hjix7PzASV:  -0.00900000 Waves

2022.08.05 16:02 [2171219] smart account 3N5xYa3t8rCyBcQvxebBM7Qg9Hjix7PzASV > SELF 0.00000000 Waves

{ "type": 13, "id": "DZeD8MK5DK7B5gbFzhVCsk4xFAt4C6g5nLaNwfNjre4o", "fee": 900000, "feeAssetId": null, "timestamp": 1659704574830, "version": 2, "chainId": 84, "sender": "3N5xYa3t8rCyBcQvxebBM7Qg9Hjix7PzASV", "senderPublicKey": "Cyf33duPHeDukNKXnrekipPBeivui6A3LrRgFxLXuQe5", "proofs": [ "2RghTBMx521AB9FGtwRcQgaEK7bkxwQCYNwZQMCSL5cUqwR7AXgcSKaEJw1NMyoqeM8B4w2dfnCd6uHwEEdLdf3f" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAxAAAAAANTR1QBAAAAILGnwLyipxS3/m8T50CfSy0hX8wn1do2IfMjm00T1WeRAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAGUAAAAABXVzZG53AAAAAAAAAAJBAAAAAAViY28yZQAAAAAAAAAACgAAAAAKYWRtTjA4U0dUVwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVDkEczCkU/Iu9CUnDhaZyqXscP0ID3xwqQAAAAASYWRtTjA4RUNwakFtYXpTR1Q2CQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU0bzI+v0BWU54+fpfjqWsDHFy0/GGgesMAAAAAAphZG1QdWJLZXkxAQAAABoBVBHbBLCFIVQZj6iMNbG8y0EY2yLLPCdidgAAAAAKYWRtUHViS2V5MgEAAAAaAVR5cQ6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AAAAJAAJZAAAAAQIAAAAsQ3lmMzNkdVBIZUR1a05LWG5yZWtpcFBCZWl2dWk2QTNMclJnRnhMWHVRZTUHa3Om3g==", "height": 2171219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2kJb3FysLsraXfLFKa3uHoqznCnRwR8biMSLQD2j4cHU Next: 3eT5RNLMSTknw5P2eesW5U1VtkXeNsZXKPb9TEfqwCpG Diff:
OldNewDifferences
183183 then throw("Payment Amount can't be less than item Purchase Order")
184184 else if ((pmt.amount > totalAmount))
185185 then throw("Payment Amount can't be higher than item Purchase Order")
186- 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 SGT a emitir en F1/F2 PreICO, total:", startTotalQty), DataEntry("tokens SGT en oferta F1 PreICO, unids", FirstFaseQty), DataEntry("tokens SGT en oferta/Intercambio en F1, 90% unids", f1PjOfertaSGT9X10), DataEntry("tokens SGT de Apoyo Admin-Inicial en F1, 10% unids", f1PjStartAdmFondsSGT1X10), DataEntry("tokens SGT en oferta F2 PreICO, unids.", SecondFaseQty), DataEntry("Cta. de Apoyo-Admin del Proyecto, blockchain", "3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR"), 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 SGT en oferta F1 PreICO, unids.", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens SGT en PreICO Achuar-Kapawi:", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Cta. Admin SGT del Ecosistema N08, blockchain:", "3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), SGT), ScriptTransfer(admN08SGTW, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECpjAmazSGT6, ((10 * pmt.amount) / 100), unit)]))
186+ 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 SGT a emitir en F1/F2 PreICO, total:", startTotalQty), DataEntry("tokens SGT en oferta F1 PreICO, unids", FirstFaseQty), DataEntry("tokens SGT en oferta/Intercambio en F1, 90% unids", f1PjOfertaSGT9X10), DataEntry("tokens SGT de Apoyo Admin-Inicial en F1, 10% unids", f1PjStartAdmFondsSGT1X10), DataEntry("tokens SGT en oferta F2 PreICO, unids.", SecondFaseQty), DataEntry("Cta. de Apoyo-Admin del Proyecto, blockchain", "3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR"), 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 SGT en oferta F1 PreICO, unids.", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens SGT en PreICO Achuar-Kapawi:", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Cta. Admin SGT del Ecosistema N08, blockchain:", "3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), SGT), ScriptTransfer(admN08SGTW, ((95 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECpjAmazSGT6, ((5 * pmt.amount) / 100), unit)]))
187187 }
188188 }
189189
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SGT = base58'CxVXPje89EXJUtWEhGAG88t99cxaVWU6DrzniFfjYjig'
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 = 101
1717
1818 let usdnw = 577
1919
2020 let bco2e = 10
2121
2222 let admN08SGTW = Address(base58'3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz')
2323
2424 let admN08ECpjAmazSGT6 = Address(base58'3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR')
2525
2626 let admPubKey1 = base58'3MqYVdqk5vg2TPCjbNj3pmKHqVLMh7yeyVw'
2727
2828 let admPubKey2 = base58'3MzzCyUcpBFkCGjo23eWmQFQfNoGr24JqPi'
2929
3030 let admPubKey3 = base58'3MyifPtwHYvFh2J3zkVsxehJkscEsUKHxCk'
3131
3232 let admPubKey4 = base58'3MyifPtwHYvFh2J3zkVsxehJkscEsUKHxCk'
3333
3434 func getNumberByKey (key) = {
3535 let num = match getInteger(this, key) {
3636 case a: Int =>
3737 a
3838 case _ =>
3939 0
4040 }
4141 num
4242 }
4343
4444
4545 func getStrByKey (key) = {
4646 let str = match getString(this, key) {
4747 case a: String =>
4848 a
4949 case _ =>
5050 NONE
5151 }
5252 str
5353 }
5454
5555
5656 func getKeyProjectCategory (item) = "Categoría del Proyecto:"
5757
5858
5959 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
6060
6161
6262 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
6363
6464
6565 func getKeyProjectName (item) = "Nombre del Proyecto:"
6666
6767
6868 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
6969
7070
7171 func getKeyProjectCountry (item) = "País | Ubicación:"
7272
7373
7474 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
7575
7676
7777 func getKeyProjectCode (item) = "Código:"
7878
7979
8080 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
8181
8282
8383 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
8484
8585
8686 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
8787
8888
8989 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
9090
9191
9292 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
9393
9494
9595 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 SGT:"
9696
9797
9898 func getKeyDescuento6TokPrice (item) = "Precio de 1 SGT con dscto elegido:"
9999
100100
101101 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
102102
103103
104104 func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados, F1 Pre-ICO:"
105105
106106
107107 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
108108
109109
110110 func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, Pre-ICO"
111111
112112
113113 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
114114
115115
116116 func getKeyBalanceSupplier (supplier) = "Fondos desde Tokens SGT, PreICO"
117117
118118
119119 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
120120
121121
122122 func getKeyUserItemCounter (user,item) = "Order_№:"
123123
124124
125125 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
126126
127127
128128 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario"
129129
130130
131131 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
132132
133133
134134 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
135135
136136
137137 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
138138
139139
140140 func getKeyDiscount6User (item) = "Porcentaje de descuento elegido, %:"
141141
142142
143143 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
144144
145145
146146 func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:"
147147
148148
149149 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
150150
151151
152152 @Callable(i)
153153 func purchaseSGT (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
154154 let pmt = extract(i.payment)
155155 if (isDefined(pmt.assetId))
156156 then throw("Ud. puede adquirir tokens SGT usando WavesKeeper y su token de pago Waves.")
157157 else {
158158 let supplier = match getString(this, getKeyItemSupplier(item)) {
159159 case a: String =>
160160 a
161161 case _ =>
162162 NONE
163163 }
164164 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
165165 case a: Int =>
166166 a
167167 case _ =>
168168 0
169169 }
170170 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
171171 case a: Int =>
172172 a
173173 case _ =>
174174 0
175175 }
176176 let userAddress = toBase58String(i.caller.bytes)
177177 let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
178178 let f1PjOfertaSGT9X10 = (((9 * FirstFaseQty) / 10) + 1)
179179 let f1PjStartAdmFondsSGT1X10 = ((1 * FirstFaseQty) / 10)
180180 if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty)))
181181 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
182182 else if ((totalAmount > pmt.amount))
183183 then throw("Payment Amount can't be less than item Purchase Order")
184184 else if ((pmt.amount > totalAmount))
185185 then throw("Payment Amount can't be higher than item Purchase Order")
186- 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 SGT a emitir en F1/F2 PreICO, total:", startTotalQty), DataEntry("tokens SGT en oferta F1 PreICO, unids", FirstFaseQty), DataEntry("tokens SGT en oferta/Intercambio en F1, 90% unids", f1PjOfertaSGT9X10), DataEntry("tokens SGT de Apoyo Admin-Inicial en F1, 10% unids", f1PjStartAdmFondsSGT1X10), DataEntry("tokens SGT en oferta F2 PreICO, unids.", SecondFaseQty), DataEntry("Cta. de Apoyo-Admin del Proyecto, blockchain", "3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR"), 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 SGT en oferta F1 PreICO, unids.", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens SGT en PreICO Achuar-Kapawi:", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Cta. Admin SGT del Ecosistema N08, blockchain:", "3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), SGT), ScriptTransfer(admN08SGTW, ((90 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECpjAmazSGT6, ((10 * pmt.amount) / 100), unit)]))
186+ 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 SGT a emitir en F1/F2 PreICO, total:", startTotalQty), DataEntry("tokens SGT en oferta F1 PreICO, unids", FirstFaseQty), DataEntry("tokens SGT en oferta/Intercambio en F1, 90% unids", f1PjOfertaSGT9X10), DataEntry("tokens SGT de Apoyo Admin-Inicial en F1, 10% unids", f1PjStartAdmFondsSGT1X10), DataEntry("tokens SGT en oferta F2 PreICO, unids.", SecondFaseQty), DataEntry("Cta. de Apoyo-Admin del Proyecto, blockchain", "3N935A2iWuGH3AmifpHVmQjoaA7KNX6E1fR"), 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 SGT en oferta F1 PreICO, unids.", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry("Saldo de Tokens SGT en PreICO Achuar-Kapawi:", ((startTotalQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Cta. Admin SGT del Ecosistema N08, blockchain:", "3Mu7Zd3UsSFicaf45vUFTpVsTZJWgTtvBhz")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), SGT), ScriptTransfer(admN08SGTW, ((95 * pmt.amount) / 100), unit), ScriptTransfer(admN08ECpjAmazSGT6, ((5 * pmt.amount) / 100), unit)]))
187187 }
188188 }
189189
190190
191191 @Verifier(tx)
192192 func verify () = match tx {
193193 case t: SetScriptTransaction =>
194194 sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String("Cyf33duPHeDukNKXnrekipPBeivui6A3LrRgFxLXuQe5"))
195195 case _ =>
196196 false
197197 }
198198

github/deemru/w8io/026f985 
47.05 ms