tx · 66heNHp224G1gGhYGSfBh1uEpoxsG5mRat8XxHxLFD36 3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6: -0.00900000 Waves 2022.07.12 10:45 [2136235] smart account 3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6 > SELF 0.00000000 Waves
{ "type": 13, "id": "66heNHp224G1gGhYGSfBh1uEpoxsG5mRat8XxHxLFD36", "fee": 900000, "feeAssetId": null, "timestamp": 1657612010816, "version": 2, "chainId": 84, "sender": "3N435b56ZjhKuX4ParKVEfv2YCNNZBrh4g6", "senderPublicKey": "6dFJuNWW7URCn8EPKVhjucMZYeWccx9BZJ2HTCZLkENw", "proofs": [ "364MHeonqHvrcUB1LWgT8VJcszoNZU2aqZ36Xxkt9e2cZ6sUZFa1bv7oZ96sbj4zAyKwomUunH2irUexAWPsFXcJ" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAwAAAAAAZCaXRDTzIBAAAAIMUi0QAOPWzHrrHgLgYvt6byvqBTCBHKATKU5thr4LIYAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAAFZXVyb3UAAAAAAAAAAGYAAAAABXVzZG53AAAAAAAAAAIjAAAAAAViY28yZQAAAAAAAAAACgAAAAALT3duZXJQdWJLZXkBAAAAIFOThcq+d+G19BoRzRfWbYb5NaT1Wk7n3nmVVmiZYoR0AAAAABpyY3B0TjA4RUNzeXNBZG1BY2hLYXBhd0IxMAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVM3C0La6yM5FJupkd23d/yNjpZqjQhRHkQAAAAAORTJFMDhBZG1Bc29jMTECAAAAIzNOOGczZ0ZRdkptSENKelVjUWIyNnBiRk5tRGZhWnVYVlZTAAAAAA1Bc29jUHJlc3RlYzAxAgAAACM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XNvYzExIGVuIFdhdmVzLUJsb2NrQ2hhaW46AgAAACMzTjQzNWI1NlpqaEt1WDRQYXJLVkVmdjJZQ05OWkJyaDRnNgUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAALdXNlckFkZHJlc3MJAABoAAAAAgAAAAAAAAAnEAUAAAAIb3JkZXJRdHkFAAAABkJpdENPMgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgcKWiB9", "height": 2136235, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FCJuEpWt7CotTp3FduME4o3t7wVRFFefQ9pf4LtUk5y8 Next: D8ZWkkoxL14N57metxowGhiB1r6E5q373ywV7CfYPq6B Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:" | |
94 | 94 | ||
95 | 95 | ||
96 | - | func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto | |
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)) | |
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 | |
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)])) | |
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 | 16 | let eurou = 102 | |
17 | 17 | ||
18 | 18 | let usdnw = 547 | |
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 | - | func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto | |
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 | 183 | let f1PjDirecAsocB9X10 = ((9 * FirstFaseQty) / 10) | |
184 | 184 | let f1PjStartAdmFondsB1X10 = ((1 * FirstFaseQty) / 10) | |
185 | 185 | let pjStartAdmB8 = ((8 * f1PjStartAdmFondsB1X10) / 10) | |
186 | 186 | let pjStartSysB2 = ((2 * f1PjStartAdmFondsB1X10) / 10) | |
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 | |
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)])) | |
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 115.96 ms ◑