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