tx · 8Xkeuw9mxSc6aFCVkGzJHWrSxstZsX4CxWgb7eyvoq7s

3N7LT19kE1vNvrmjfbSaxeBeCjmYrn4qfD5:  -0.01000000 Waves

2022.07.12 21:56 [2136894] smart account 3N7LT19kE1vNvrmjfbSaxeBeCjmYrn4qfD5 > SELF 0.00000000 Waves

{ "type": 13, "id": "8Xkeuw9mxSc6aFCVkGzJHWrSxstZsX4CxWgb7eyvoq7s", "fee": 1000000, "feeAssetId": null, "timestamp": 1657652199280, "version": 2, "chainId": 84, "sender": "3N7LT19kE1vNvrmjfbSaxeBeCjmYrn4qfD5", "senderPublicKey": "4Tmop8jXZLPuazQmNiEZVovM1qh23xax9XnWhfnkcdae", "proofs": [ "4aCtJoFSqhpWnKxYwABsSe2JVpnerjH5QrBuBFsrraUEHLZzh5zXnYqb3vWf4yPeAsJi2ZUkL1BPpzkmfVYjMTw3" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAyAAAAAAZCaXRDTzIBAAAAIMUi0QAOPWzHrrHgLgYvt6byvqBTCBHKATKU5thr4LIYAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAGUAAAAABXVzZG53AAAAAAAAAAHeAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIDNu00wqXOowRaHQr34C+I4UhBMAhR58xxsNEg+l/9t3AAAAABJhZG1OMDhQakdUU2Fzb2MxMVcJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTUU0wtP8U1YcvOtHcPsUgRON90O0ro8oAAAAAAE2FkbU4wOEVDQWNoS2FwYXdCMTAJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSx6ZAQKsNKBjsbV9b6LztZ8oOM5qqT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MAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgf2kBbJ", "height": 2136894, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gt9TJzo9RyFcjpgrH5d7EPsYa9AFkFignk11gjBkd5M Next: BxXEfEBjMJAagA1na4jzriR2ycEoQxQQuCw5pp4Pp7yh Diff:
OldNewDifferences
2121
2222 let OwnerPubKey = base58'4Tmop8jXZLPuazQmNiEZVovM1qh23xax9XnWhfnkcdae'
2323
24-let rcptN08ECsysAdmAchKapawB10 = Address(base58'3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS')
24+let admN08PjGTSasoc11W = Address(base58'3N9GkpCqYSCDgvguTFFNvj5UJK4ugiUS8ej')
2525
26-let E2E08AdmAsoc11 = "3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS"
26+let admN08ECAchKapawB10 = Address(base58'3N68oB6gAZUHHNbjvav1NLwLccUt2GJYhLy')
27+
28+let AdmN08PjGTSasoc11W = "3N9GkpCqYSCDgvguTFFNvj5UJK4ugiUS8ej"
29+
30+let AdmN08ECAchKapawB10 = "3N68oB6gAZUHHNbjvav1NLwLccUt2GJYhLy"
2731
2832 let AsocPrestec01 = "3N86D2E7pSFD7fJBB1qkcGM8SoR6rZpFw9o"
2933
9397 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:"
9498
9599
96-func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elegido, wvs"
100+func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:"
97101
98102
99103 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
172176 0
173177 }
174178 let userAddress = toBase58String(i.caller.bytes)
175- if (if (if ((userAddress != E2E08AdmAsoc11))
179+ if (if (if (if ((userAddress != AdmN08PjGTSasoc11W))
180+ then (userAddress != AdmN08ECAchKapawB10)
181+ else false)
176182 then (userAddress != AsocPrestec01)
177183 else false)
178184 then (userAddress != AsocPrestec02)
190196 then throw("Payment Amount can't be less than item Purchase Order")
191197 else if ((pmt.amount > totalAmount))
192198 then throw("Payment Amount can't be higher than item Purchase Order")
193- 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("Bit-CO2 emitidos en F1/F2 PreICO, total", startTotalQty), DataEntry("Bit-CO2 en oferta para la F1 PreICO, total", FirstFaseQty), DataEntry("Bit-CO2 en oferta para Asociados, 90% F1", f1PjDirecAsocB9X10), DataEntry("Bit-CO2 para Apoyo Administrativo, 10% F1 ", f1PjStartAdmFondsB1X10), DataEntry("Dirección de la Cta. de Apoyo Administrativo", "3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS"), DataEntry("Apoyo para el Desarrollador-Proyecto, tokens", pjStartAdmB8), DataEntry("Apoyo para el IT System del Proyecto, tokens", pjStartSysB2), 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 - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Progr-Asoc11 en Waves-BlockChain:", "3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(rcptN08ECsysAdmAchKapawB10, pmt.amount, unit)]))
199+ 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("Bit-CO2 emitidos en F1/F2 PreICO, total", startTotalQty), DataEntry("Bit-CO2 en oferta para la F1 PreICO, total", FirstFaseQty), DataEntry("Bit-CO2 en oferta para Asociados, 90% F1", f1PjDirecAsocB9X10), DataEntry("Bit-CO2 para Apoyo Administrativo, 10% F1 ", f1PjStartAdmFondsB1X10), DataEntry("Dirección de la Cta. de Apoyo Administrativo", "3N68oB6gAZUHHNbjvav1NLwLccUt2GJYhLy"), DataEntry("Apoyo para el Desarrollador-Proyecto, tokens", pjStartAdmB8), DataEntry("Apoyo para el IT System del Proyecto, tokens", pjStartSysB2), 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 - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Progr-Asoc11 en Waves-BlockChain:", "3N7LT19kE1vNvrmjfbSaxeBeCjmYrn4qfD5")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(admN08PjGTSasoc11W, pmt.amount, unit)]))
194200 }
195201 }
196202 }
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 = 101
1717
1818 let usdnw = 478
1919
2020 let bco2e = 10
2121
2222 let OwnerPubKey = base58'4Tmop8jXZLPuazQmNiEZVovM1qh23xax9XnWhfnkcdae'
2323
24-let rcptN08ECsysAdmAchKapawB10 = Address(base58'3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS')
24+let admN08PjGTSasoc11W = Address(base58'3N9GkpCqYSCDgvguTFFNvj5UJK4ugiUS8ej')
2525
26-let E2E08AdmAsoc11 = "3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS"
26+let admN08ECAchKapawB10 = Address(base58'3N68oB6gAZUHHNbjvav1NLwLccUt2GJYhLy')
27+
28+let AdmN08PjGTSasoc11W = "3N9GkpCqYSCDgvguTFFNvj5UJK4ugiUS8ej"
29+
30+let AdmN08ECAchKapawB10 = "3N68oB6gAZUHHNbjvav1NLwLccUt2GJYhLy"
2731
2832 let AsocPrestec01 = "3N86D2E7pSFD7fJBB1qkcGM8SoR6rZpFw9o"
2933
3034 let AsocPrestec02 = "3N2jHtgSVCtW6jddmQuerN7NSnXjR3KcEfg"
3135
3236 func getNumberByKey (key) = {
3337 let num = match getInteger(this, key) {
3438 case a: Int =>
3539 a
3640 case _ =>
3741 0
3842 }
3943 num
4044 }
4145
4246
4347 func getStrByKey (key) = {
4448 let str = match getString(this, key) {
4549 case a: String =>
4650 a
4751 case _ =>
4852 NONE
4953 }
5054 str
5155 }
5256
5357
5458 func getKeyProjectCategory (item) = "Categoría del Proyecto:"
5559
5660
5761 func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item))
5862
5963
6064 func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador")
6165
6266
6367 func getKeyProjectName (item) = "Nombre del Proyecto:"
6468
6569
6670 func getValueProjectName (item) = getStrByKey(getKeyProjectName(item))
6771
6872
6973 func getKeyProjectCountry (item) = "País | Ubicación:"
7074
7175
7276 func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item))
7377
7478
7579 func getKeyProjectCode (item) = "Código:"
7680
7781
7882 func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item))
7983
8084
8185 func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:"
8286
8387
8488 func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item))
8589
8690
8791 func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:"
8892
8993
9094 func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier))
9195
9296
9397 func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:"
9498
9599
96-func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elegido, wvs"
100+func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:"
97101
98102
99103 func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item))
100104
101105
102106 func getKeyFirstFaseQty (item) = "Cantidad de Tokens Ofertados en la F1 PreICO:"
103107
104108
105109 func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item))
106110
107111
108112 func getKeySaldoTokenQtyStartEtapa (item) = "Total de Tokens Realizados, PreICO"
109113
110114
111115 func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item))
112116
113117
114118 func getKeyBalanceSupplier (supplier) = "Fondos para Proyectos Verdes Naturales, Asociados Bit-CO2:"
115119
116120
117121 func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier))
118122
119123
120124 func getKeyUserItemCounter (user,item) = "Order_№:"
121125
122126
123127 func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item))
124128
125129
126130 func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:"
127131
128132
129133 func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item))
130134
131135
132136 func getKeyUserCountry (item) = "País de Residencia del Usuario:"
133137
134138
135139 func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item))
136140
137141
138142 func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:"
139143
140144
141145 func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item))
142146
143147
144148 func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:"
145149
146150
147151 func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item))
148152
149153
150154 @Callable(i)
151155 func purchase (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = {
152156 let pmt = extract(i.payment)
153157 if (isDefined(pmt.assetId))
154158 then throw("Ud. puede adquirir tokens BitCO2 usando WavesKeeper y su token de pago Waves.")
155159 else {
156160 let supplier = match getString(this, getKeyItemSupplier(item)) {
157161 case a: String =>
158162 a
159163 case _ =>
160164 NONE
161165 }
162166 let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) {
163167 case a: Int =>
164168 a
165169 case _ =>
166170 0
167171 }
168172 let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) {
169173 case a: Int =>
170174 a
171175 case _ =>
172176 0
173177 }
174178 let userAddress = toBase58String(i.caller.bytes)
175- if (if (if ((userAddress != E2E08AdmAsoc11))
179+ if (if (if (if ((userAddress != AdmN08PjGTSasoc11W))
180+ then (userAddress != AdmN08ECAchKapawB10)
181+ else false)
176182 then (userAddress != AsocPrestec01)
177183 else false)
178184 then (userAddress != AsocPrestec02)
179185 else false)
180186 then throw("Disculpe, Su cuenta no tiene derecho de Asociado Bit-CO2 a Proyectos")
181187 else {
182188 let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw)
183189 let f1PjDirecAsocB9X10 = (((9 * FirstFaseQty) / 10) + 1)
184190 let f1PjStartAdmFondsB1X10 = ((1 * FirstFaseQty) / 10)
185191 let pjStartAdmB8 = ((8 * f1PjStartAdmFondsB1X10) / 10)
186192 let pjStartSysB2 = (((2 * f1PjStartAdmFondsB1X10) / 10) + 1)
187193 if ((0 >= ((startTotalQty - preIcoQty) - orderQty)))
188194 then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción")
189195 else if ((totalAmount > pmt.amount))
190196 then throw("Payment Amount can't be less than item Purchase Order")
191197 else if ((pmt.amount > totalAmount))
192198 then throw("Payment Amount can't be higher than item Purchase Order")
193- 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("Bit-CO2 emitidos en F1/F2 PreICO, total", startTotalQty), DataEntry("Bit-CO2 en oferta para la F1 PreICO, total", FirstFaseQty), DataEntry("Bit-CO2 en oferta para Asociados, 90% F1", f1PjDirecAsocB9X10), DataEntry("Bit-CO2 para Apoyo Administrativo, 10% F1 ", f1PjStartAdmFondsB1X10), DataEntry("Dirección de la Cta. de Apoyo Administrativo", "3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS"), DataEntry("Apoyo para el Desarrollador-Proyecto, tokens", pjStartAdmB8), DataEntry("Apoyo para el IT System del Proyecto, tokens", pjStartSysB2), 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 - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Progr-Asoc11 en Waves-BlockChain:", "3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(rcptN08ECsysAdmAchKapawB10, pmt.amount, unit)]))
199+ 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("Bit-CO2 emitidos en F1/F2 PreICO, total", startTotalQty), DataEntry("Bit-CO2 en oferta para la F1 PreICO, total", FirstFaseQty), DataEntry("Bit-CO2 en oferta para Asociados, 90% F1", f1PjDirecAsocB9X10), DataEntry("Bit-CO2 para Apoyo Administrativo, 10% F1 ", f1PjStartAdmFondsB1X10), DataEntry("Dirección de la Cta. de Apoyo Administrativo", "3N68oB6gAZUHHNbjvav1NLwLccUt2GJYhLy"), DataEntry("Apoyo para el Desarrollador-Proyecto, tokens", pjStartAdmB8), DataEntry("Apoyo para el IT System del Proyecto, tokens", pjStartSysB2), 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 - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del Progr-Asoc11 en Waves-BlockChain:", "3N7LT19kE1vNvrmjfbSaxeBeCjmYrn4qfD5")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), (10000 * orderQty), BitCO2), ScriptTransfer(admN08PjGTSasoc11W, pmt.amount, unit)]))
194200 }
195201 }
196202 }
197203
198204
199205 @Verifier(tx)
200206 func verify () = match tx {
201207 case t: SetScriptTransaction =>
202208 sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey)
203209 case d: DataTransaction =>
204210 true
205211 case tx: TransferTransaction =>
206212 true
207213 case _ =>
208214 false
209215 }
210216

github/deemru/w8io/169f3d6 
61.05 ms