tx · duok4efBUsJFdMPmzAEv9RYMUPcpeWQHNctEe9AzHnV 3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6: -0.01000000 Waves 2022.07.12 01:19 [2135667] smart account 3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6 > SELF 0.00000000 Waves
{ "type": 13, "id": "duok4efBUsJFdMPmzAEv9RYMUPcpeWQHNctEe9AzHnV", "fee": 1000000, "feeAssetId": null, "timestamp": 1657577950917, "version": 2, "chainId": 84, "sender": "3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6", "senderPublicKey": "6dFJuNWW7URCn8EPKVhjucMZYeWccx9BZJ2HTCZLkENw", "proofs": [ "3vw2dCUVZegrcQtBtvyR4P3u8h4gwAsW8sDNxmarMgSUyqicU3FXDoavLpVTGq7RegNS4JRgBK19u3SdHdY3XG8Y" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAwAAAAAAZCaXRDTzIBAAAAIMUi0QAOPWzHrrHgLgYvt6byvqBTCBHKATKU5thr4LIYAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAGYAAAAABXVzZG53AAAAAAAAAAIjAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIFOThcq+d+G19BoRzRfWbYb5NaT1Wk7n3nmVVmiZYoR0AAAAABpyY3B0TjA4RUNzeXNBZG1BY2hLYXBhd0IxMAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVM3C0La6yM5FJupkd23d/yNjpZqjQhRHkQAAAAAORTJFMDhBZG1Bc29jMTECAAAAIzNOOGczZ0ZRdkptSENKelVjUWIyNnBiRk5tRGZhWnVYVlZTAAAAAA1Bc29jUHJlc3RlYzAxAgAA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W5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgdlASic", "height": 2135667, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5ojHDN5nSUme3uoa5eqsRcRHHBh2y4o4NBhWBs9UMsGV Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let BitCO2 = base58'EGY7HCyeHiHiCiiYpqH1Dmd5E6nzbwrgsdX3FHx5kFWw' | |
5 | + | ||
6 | + | let startTotalQty = 305693 | |
7 | + | ||
8 | + | let FirstFaseQty = 31193 | |
9 | + | ||
10 | + | let SecondFaseQty = 274500 | |
11 | + | ||
12 | + | let wvs = 100000000 | |
13 | + | ||
14 | + | let NONE = "none" | |
15 | + | ||
16 | + | let eurou = 102 | |
17 | + | ||
18 | + | let usdnw = 547 | |
19 | + | ||
20 | + | let bco2e = 10 | |
21 | + | ||
22 | + | let OwnerPubKey = base58'6dFJuNWW7URCn8EPKVhjucMZYeWccx9BZJ2HTCZLkENw' | |
23 | + | ||
24 | + | let rcptN08ECsysAdmAchKapawB10 = Address(base58'3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS') | |
25 | + | ||
26 | + | let E2E08AdmAsoc11 = "3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS" | |
27 | + | ||
28 | + | let AsocPrestec01 = "3N86D2E7pSFD7fJBB1qkcGM8SoR6rZpFw9o" | |
29 | + | ||
30 | + | let AsocPrestec02 = "3N2jHtgSVCtW6jddmQuerN7NSnXjR3KcEfg" | |
31 | + | ||
32 | + | func getNumberByKey (key) = { | |
33 | + | let num = match getInteger(this, key) { | |
34 | + | case a: Int => | |
35 | + | a | |
36 | + | case _ => | |
37 | + | 0 | |
38 | + | } | |
39 | + | num | |
40 | + | } | |
41 | + | ||
42 | + | ||
43 | + | func getStrByKey (key) = { | |
44 | + | let str = match getString(this, key) { | |
45 | + | case a: String => | |
46 | + | a | |
47 | + | case _ => | |
48 | + | NONE | |
49 | + | } | |
50 | + | str | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | func getKeyProjectCategory (item) = "Categoría del Proyecto:" | |
55 | + | ||
56 | + | ||
57 | + | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
58 | + | ||
59 | + | ||
60 | + | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
61 | + | ||
62 | + | ||
63 | + | func getKeyProjectName (item) = "Nombre del Proyecto:" | |
64 | + | ||
65 | + | ||
66 | + | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
67 | + | ||
68 | + | ||
69 | + | func getKeyProjectCountry (item) = "País | Ubicación:" | |
70 | + | ||
71 | + | ||
72 | + | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
73 | + | ||
74 | + | ||
75 | + | func getKeyProjectCode (item) = "Código:" | |
76 | + | ||
77 | + | ||
78 | + | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
79 | + | ||
80 | + | ||
81 | + | func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:" | |
82 | + | ||
83 | + | ||
84 | + | func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item)) | |
85 | + | ||
86 | + | ||
87 | + | func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:" | |
88 | + | ||
89 | + | ||
90 | + | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
91 | + | ||
92 | + | ||
93 | + | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:" | |
94 | + | ||
95 | + | ||
96 | + | func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido, wvs" | |
97 | + | ||
98 | + | ||
99 | + | func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item)) | |
100 | + | ||
101 | + | ||
102 | + | func getKeyFirstFaseQty (item) = "Cantidad de Tokens Ofertados en la F1 PreICO:" | |
103 | + | ||
104 | + | ||
105 | + | func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item)) | |
106 | + | ||
107 | + | ||
108 | + | func getKeySaldoTokenQtyStartEtapa (item) = "Total de Tokens Realizados, PreICO" | |
109 | + | ||
110 | + | ||
111 | + | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
112 | + | ||
113 | + | ||
114 | + | func getKeyBalanceSupplier (supplier) = "Fondos para Proyectos Verdes Naturales, Asociados Bit-CO2:" | |
115 | + | ||
116 | + | ||
117 | + | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
118 | + | ||
119 | + | ||
120 | + | func getKeyUserItemCounter (user,item) = "Order_№:" | |
121 | + | ||
122 | + | ||
123 | + | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
124 | + | ||
125 | + | ||
126 | + | func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:" | |
127 | + | ||
128 | + | ||
129 | + | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
130 | + | ||
131 | + | ||
132 | + | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
133 | + | ||
134 | + | ||
135 | + | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
136 | + | ||
137 | + | ||
138 | + | func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:" | |
139 | + | ||
140 | + | ||
141 | + | func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item)) | |
142 | + | ||
143 | + | ||
144 | + | func getKeyItemUserOrderQty (item) = "Cantidad de tokens adquiridos:" | |
145 | + | ||
146 | + | ||
147 | + | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
148 | + | ||
149 | + | ||
150 | + | @Callable(i) | |
151 | + | func purchase (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = { | |
152 | + | let pmt = extract(i.payment) | |
153 | + | if (isDefined(pmt.assetId)) | |
154 | + | then throw("Ud. puede adquirir tokens BitCO2 usando WavesKeeper y su token de pago Waves.") | |
155 | + | else { | |
156 | + | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
157 | + | case a: String => | |
158 | + | a | |
159 | + | case _ => | |
160 | + | NONE | |
161 | + | } | |
162 | + | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
163 | + | case a: Int => | |
164 | + | a | |
165 | + | case _ => | |
166 | + | 0 | |
167 | + | } | |
168 | + | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
169 | + | case a: Int => | |
170 | + | a | |
171 | + | case _ => | |
172 | + | 0 | |
173 | + | } | |
174 | + | let userAddress = toBase58String(i.caller.bytes) | |
175 | + | if (if (if ((userAddress != E2E08AdmAsoc11)) | |
176 | + | then (userAddress != AsocPrestec01) | |
177 | + | else false) | |
178 | + | then (userAddress != AsocPrestec02) | |
179 | + | else false) | |
180 | + | then throw("Disculpe, Su cuenta no tiene derecho de Asociado Bit-CO2 a Proyectos") | |
181 | + | else { | |
182 | + | let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw) | |
183 | + | let orderQty2 = (orderQty / 10) | |
184 | + | let orderQtyTotal = (orderQty + orderQty2) | |
185 | + | let f1PjDirecAsocB10X11 = ((10 * FirstFaseQty) / 11) | |
186 | + | let f1PjStartAdmFondsB1X11 = ((1 * FirstFaseQty) / 11) | |
187 | + | let pjStartAdmB8 = ((8 * f1PjStartAdmFondsB1X11) / 10) | |
188 | + | let pjStartSysB2 = ((2 * f1PjStartAdmFondsB1X11) / 10) | |
189 | + | if ((0 >= ((startTotalQty - preIcoQty) - orderQtyTotal))) | |
190 | + | then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción") | |
191 | + | else if ((totalAmount > pmt.amount)) | |
192 | + | then throw("Payment Amount can't be less than item Purchase Order") | |
193 | + | else if ((pmt.amount > totalAmount)) | |
194 | + | then throw("Payment Amount can't be higher than item Purchase Order") | |
195 | + | 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, unidades", startTotalQty), DataEntry("Bit-CO2 Ofertados en la F1 PreICO, unidades", FirstFaseQty), DataEntry("Bit-CO2 para Venta Directa a Asociados, F1", f1PjDirecAsocB10X11), DataEntry("Bit-CO2 para Apoyo Administrativo, (a distribuir):", f1PjStartAdmFondsB1X11), DataEntry("Dirección de Apoyo Administrativo en BlockChain:", "3N8g3gFQvJmHCJzUcQb26pbFNmDfaZuXVVS"), DataEntry("tokens de Apoyo para el Desarrollador del Proyecto:", pjStartAdmB8), DataEntry("tokens de Apoyo para el Sistema IT-Nodo, aprox.:", 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) + orderQtyTotal)), DataEntry("Saldo de Tokens Bit-CO2 en oferta, F1 PreICO:", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQtyTotal)), DataEntry("Saldo de Tokens Bit-CO2, PreICO Achuar-Kapawi:", (startTotalQty - ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQtyTotal))), 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, (10000 * orderQty2), BitCO2)])) | |
196 | + | } | |
197 | + | } | |
198 | + | } | |
199 | + | ||
200 | + | ||
201 | + | @Verifier(tx) | |
202 | + | func verify () = match tx { | |
203 | + | case t: SetScriptTransaction => | |
204 | + | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
205 | + | case d: DataTransaction => | |
206 | + | true | |
207 | + | case tx: TransferTransaction => | |
208 | + | true | |
209 | + | case _ => | |
210 | + | false | |
211 | + | } | |
212 | + |
github/deemru/w8io/169f3d6 24.68 ms ◑