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