tx · 7cQ13Mq2ZBvW8EaqEjpS14BXuvTs3h5nVKHgBg3mtxeP 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL: -0.01000000 Waves 2021.10.31 20:15 [1770773] smart account 3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL > SELF 0.00000000 Waves
{ "type": 13, "id": "7cQ13Mq2ZBvW8EaqEjpS14BXuvTs3h5nVKHgBg3mtxeP", "fee": 1000000, "feeAssetId": null, "timestamp": 1635700586027, "version": 2, "chainId": 84, "sender": "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL", "senderPublicKey": "A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo", "proofs": [ "5so3y2SxgmrdoFtmtmwBbejzCaqfS5raaFuNL75wz6DBqkUycYPQ1ijGhaKU7x4JfSJDV9gRo4yeom8xyWBujCMc" ], "script": "base64:AAIDAAAAAAAAAAsIARIHCgUICAgBAQAAAC0AAAAAB3hCaXRDTzIBAAAAICAEZKaqA3sNb6aq+pclWLOWiXpTDP/vusZoh2yDVNyNAAAAAA1zdGFydFRvdGFsUXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAK7kAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAAA3d2cwAAAAAABfXhAAAAAAAETk9ORQIAAAAEbm9uZQAAAAALdG90YWxBbW91bnQAAAAAAAKZwvcAAAAABWV1cm91AAAAAAAAAAB0AAAAAAV1c2RudwAAAAAAAAAJ6wAAAAAFYmNvMmUAAAAAAAAAAAoAAAAAC093bmVyUHViS2V5AQAAACCHCjavfZLifVnrQ+Ec26hgaELdz++KhfvmPcJbb2x8dgEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2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gkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAJd2l0aFdhdmVzB22cmr0=", "height": 1770773, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gy5VD2jhMzfpbgh72z1PBSqKHS77mwGnxRGyXfELZ13A Next: AQJYmaiJ8DFd9hD7gkyQK4b9oQXLVuefTCB9Bk7hYpRF Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | let wvs = 100000000 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | + | ||
16 | + | let totalAmount = 43631351 | |
15 | 17 | ||
16 | 18 | let eurou = 116 | |
17 | 19 | ||
166 | 168 | let userAddress = toBase58String(i.caller.bytes) | |
167 | 169 | let desc1 = (1000 - userDiscount) | |
168 | 170 | let currentTokenPrice = (((((desc1 * bco2e) * eurou) * 1000000000000) / 1000) / usdnw) | |
169 | - | let | |
171 | + | let totalAmount1 = (((orderQty * 10000) * currentTokenPrice) / 10000000) | |
170 | 172 | if ((totalAmount > pmt.amount)) | |
171 | 173 | then throw("Payment Amount can't be less than item Purchase Order") | |
172 | 174 | else if ((pmt.amount > totalAmount)) | |
173 | 175 | then throw("Payment Amount can't be higher than item Purchase Order") | |
174 | - | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Prueba currentTokenPrice", currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
176 | + | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Prueba currentTokenPrice", currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Suma 2, wvs", totalAmount1), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
175 | 177 | } | |
176 | 178 | } | |
177 | 179 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let xBitCO2 = base58'39yw38hm342hiK43SqELTaZRkTWJoBc22XpxmsSiBrsN' | |
5 | 5 | ||
6 | 6 | let startTotalQty = 305693 | |
7 | 7 | ||
8 | 8 | let FirstFaseQty = 11193 | |
9 | 9 | ||
10 | 10 | let SecondFaseQty = 274500 | |
11 | 11 | ||
12 | 12 | let wvs = 100000000 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | + | ||
16 | + | let totalAmount = 43631351 | |
15 | 17 | ||
16 | 18 | let eurou = 116 | |
17 | 19 | ||
18 | 20 | let usdnw = 2539 | |
19 | 21 | ||
20 | 22 | let bco2e = 10 | |
21 | 23 | ||
22 | 24 | let OwnerPubKey = base58'A695BnQcmLqEPwcN5kdhv4bHipgdE4FnM5CBEMtA95Mo' | |
23 | 25 | ||
24 | 26 | func getNumberByKey (key) = { | |
25 | 27 | let num = match getInteger(this, key) { | |
26 | 28 | case a: Int => | |
27 | 29 | a | |
28 | 30 | case _ => | |
29 | 31 | 0 | |
30 | 32 | } | |
31 | 33 | num | |
32 | 34 | } | |
33 | 35 | ||
34 | 36 | ||
35 | 37 | func getStrByKey (key) = { | |
36 | 38 | let str = match getString(this, key) { | |
37 | 39 | case a: String => | |
38 | 40 | a | |
39 | 41 | case _ => | |
40 | 42 | NONE | |
41 | 43 | } | |
42 | 44 | str | |
43 | 45 | } | |
44 | 46 | ||
45 | 47 | ||
46 | 48 | func getKeyProjectCategory (item) = "Categoría:" | |
47 | 49 | ||
48 | 50 | ||
49 | 51 | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
50 | 52 | ||
51 | 53 | ||
52 | 54 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
53 | 55 | ||
54 | 56 | ||
55 | 57 | func getKeyProjectName (item) = "Nombre del Proyecto:" | |
56 | 58 | ||
57 | 59 | ||
58 | 60 | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
59 | 61 | ||
60 | 62 | ||
61 | 63 | func getKeyProjectCountry (item) = "País | Ubicación:" | |
62 | 64 | ||
63 | 65 | ||
64 | 66 | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
65 | 67 | ||
66 | 68 | ||
67 | 69 | func getKeyProjectCode (item) = "Código:" | |
68 | 70 | ||
69 | 71 | ||
70 | 72 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
71 | 73 | ||
72 | 74 | ||
73 | 75 | func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:" | |
74 | 76 | ||
75 | 77 | ||
76 | 78 | func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item)) | |
77 | 79 | ||
78 | 80 | ||
79 | 81 | func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:" | |
80 | 82 | ||
81 | 83 | ||
82 | 84 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
83 | 85 | ||
84 | 86 | ||
85 | 87 | func getKeyFirstFaseQty (item) = "Tokens ofertados para Usuarios|inversores en Fase I Pre-ICO:" | |
86 | 88 | ||
87 | 89 | ||
88 | 90 | func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item)) | |
89 | 91 | ||
90 | 92 | ||
91 | 93 | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 token Bit-CO2:" | |
92 | 94 | ||
93 | 95 | ||
94 | 96 | func getKeyDescuento6TokPrice (item) = "Precio de 1 token Bit-CO2 con descuento elejido:" | |
95 | 97 | ||
96 | 98 | ||
97 | 99 | func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item)) | |
98 | 100 | ||
99 | 101 | ||
100 | 102 | func getKeySaldoTokenQtyStartEtapa (item) = "Saldo de tokens en oferta con dcto máx. del 6%:" | |
101 | 103 | ||
102 | 104 | ||
103 | 105 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
104 | 106 | ||
105 | 107 | ||
106 | 108 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
107 | 109 | ||
108 | 110 | ||
109 | 111 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
110 | 112 | ||
111 | 113 | ||
112 | 114 | func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:" | |
113 | 115 | ||
114 | 116 | ||
115 | 117 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
116 | 118 | ||
117 | 119 | ||
118 | 120 | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
119 | 121 | ||
120 | 122 | ||
121 | 123 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
122 | 124 | ||
123 | 125 | ||
124 | 126 | func getKeyDiscount6User (item) = "Descuento a elección voluntaria, máximo 6%:" | |
125 | 127 | ||
126 | 128 | ||
127 | 129 | func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item)) | |
128 | 130 | ||
129 | 131 | ||
130 | 132 | func getKeyItemUserOrderQty (item) = "Cantidad de tokens a adquirir:" | |
131 | 133 | ||
132 | 134 | ||
133 | 135 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
134 | 136 | ||
135 | 137 | ||
136 | 138 | func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:" | |
137 | 139 | ||
138 | 140 | ||
139 | 141 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
140 | 142 | ||
141 | 143 | ||
142 | 144 | @Callable(i) | |
143 | 145 | func purchase (item,userDocument,userCountry,userDiscount,orderQty) = { | |
144 | 146 | let pmt = extract(i.payment) | |
145 | 147 | if (isDefined(pmt.assetId)) | |
146 | 148 | then throw("Ud. puede adquirir tokens xBitCO2 usando WavesKeeper y su token de pago Waves.") | |
147 | 149 | else { | |
148 | 150 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
149 | 151 | case a: String => | |
150 | 152 | a | |
151 | 153 | case _ => | |
152 | 154 | NONE | |
153 | 155 | } | |
154 | 156 | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
155 | 157 | case a: Int => | |
156 | 158 | a | |
157 | 159 | case _ => | |
158 | 160 | 0 | |
159 | 161 | } | |
160 | 162 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
161 | 163 | case a: Int => | |
162 | 164 | a | |
163 | 165 | case _ => | |
164 | 166 | 0 | |
165 | 167 | } | |
166 | 168 | let userAddress = toBase58String(i.caller.bytes) | |
167 | 169 | let desc1 = (1000 - userDiscount) | |
168 | 170 | let currentTokenPrice = (((((desc1 * bco2e) * eurou) * 1000000000000) / 1000) / usdnw) | |
169 | - | let | |
171 | + | let totalAmount1 = (((orderQty * 10000) * currentTokenPrice) / 10000000) | |
170 | 172 | if ((totalAmount > pmt.amount)) | |
171 | 173 | then throw("Payment Amount can't be less than item Purchase Order") | |
172 | 174 | else if ((pmt.amount > totalAmount)) | |
173 | 175 | then throw("Payment Amount can't be higher than item Purchase Order") | |
174 | - | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Prueba currentTokenPrice", currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
176 | + | else ScriptResult(WriteSet([DataEntry(getKeyProjectCategory(item), "Conservación Forestal"), DataEntry(getKeyProjectName(item), "Reserva Amazónica Achuar-Kapawi"), DataEntry(getKeyProjectCountry(item), "Ecuador"), DataEntry(getKeyProjectCode(item), "01-EC_ACH-KAPAWI_01PREICO"), DataEntry(getKeyProjectPropietary(item), "Comunidad Achuar Kapawi"), DataEntry(getKeyProjectDev(supplier), "Fundación Alianza Ecológica 'NASE'"), DataEntry(getKeyNomTokenPrice(item), "10.00 Euros"), DataEntry("Cantidad de Tokens Bit-CO2 a emitir en Fase I y II Pre-ICO", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), DataEntry(getKeyDescuento6TokPrice(item), currentTokenPrice), DataEntry("Prueba currentTokenPrice", currentTokenPrice), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyDiscount6User(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma invertida, wvs", totalAmount), DataEntry("Suma 2, wvs", totalAmount1), DataEntry("Estado de su pedido:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3N9DpWDvNPnq3wuuyh2cGk9hcKfoke9CCfL")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
175 | 177 | } | |
176 | 178 | } | |
177 | 179 | ||
178 | 180 | ||
179 | 181 | @Verifier(tx) | |
180 | 182 | func verify () = match tx { | |
181 | 183 | case t: SetScriptTransaction => | |
182 | 184 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
183 | 185 | case d: ReissueTransaction|DataTransaction => | |
184 | 186 | true | |
185 | 187 | case tx: TransferTransaction => | |
186 | 188 | true | |
187 | 189 | case tx: ExchangeTransaction => | |
188 | 190 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
189 | 191 | then true | |
190 | 192 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
191 | 193 | withWaves | |
192 | 194 | case _ => | |
193 | 195 | false | |
194 | 196 | } | |
195 | 197 |
github/deemru/w8io/169f3d6 58.05 ms ◑