tx · FvQfm7tJw85rCfmSuSCcMqCZa1MezF315Wmi49Yr59B2 3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja: -0.01400000 Waves 2022.03.15 19:58 [1965341] smart account 3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja > SELF 0.00000000 Waves
{ "type": 13, "id": "FvQfm7tJw85rCfmSuSCcMqCZa1MezF315Wmi49Yr59B2", "fee": 1400000, "feeAssetId": null, "timestamp": 1647363475322, "version": 2, "chainId": 84, "sender": "3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja", "senderPublicKey": "GpwSePQvEor3GgJJdK8ae6n2kZbpasL2UMGTdHHSkWWK", "proofs": [ "5dVUUCWkXW2Cz3FdXVCQVDkZm6ZBaPHiTQuW1wsBRfGHrW5t6HenkwxaB5PmBR1CgMpL6nXTRuSR8LF215eNcgrF" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgBAQEAAAAsAAAAAAd4Qml0Q08yAQAAACAgBGSmqgN7DW+mqvqXJVizlol6Uwz/77rGaIdsg1TcjQAAAAANc3RhcnRUb3RhbFF0eQAAAAAAAASqHQAAAAAMRmlyc3RGYXNlUXR5AAAAAAAAACu5AAAAAA1TZWNvbmRGYXNlUXR5AAAAAAAABDBEAAAAAAN3dnMAAAAAAAX14QAAAAAABE5PTkUCAAAABG5vbmUAAAAABWV1cm91AAAAAAAAAAB0AAAAAAV1c2RudwAAAAAAAAAJ6wAAAAAFYmNvMmUAAAAAAAAAAAoAAAAAC093bmVyUHViS2V5AQAAACDrJyjsQbO0PaxcY5E7zQFOybuP5YiL33M/DpTp+omfAAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAANudW0BAAAAC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AAAEHRydXN0ZWRQcmVzdGVjMDIJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNclNQak5hZXVpZFRoaGlvbUU2dVJwQVhVU2g0d0p0Y1ZvAwkAAAAAAAACCAUAAAABdAAAAAlyZWNpcGllbnQFAAAAEHRydXN0ZWRQcmVzdGVjMDEGCQAAAAAAAAIIBQAAAAF0AAAACXJlY2lwaWVudAUAAAAQdHJ1c3RlZFByZXN0ZWMwMgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwf+QkUE", "height": 1965341, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GJVXYSC63vwrLkJ6ahieTaHLLo3GuW5XC67Nfjx92j3e Next: 65gmkJJxNTsi5nvDbSxnSpkrKdqrjfcKsdzz1dmZQaMB Diff:
Old | New | Differences | |
---|---|---|---|
18 | 18 | let usdnw = 2539 | |
19 | 19 | ||
20 | 20 | let bco2e = 10 | |
21 | - | ||
22 | - | let Prestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE") | |
23 | - | ||
24 | - | let Prestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo") | |
25 | 21 | ||
26 | 22 | let OwnerPubKey = base58'GpwSePQvEor3GgJJdK8ae6n2kZbpasL2UMGTdHHSkWWK' | |
27 | 23 | ||
187 | 183 | case d: DataTransaction|ReissueTransaction => | |
188 | 184 | true | |
189 | 185 | case t: TransferTransaction => | |
190 | - | if ((t.recipient == Prestec01)) | |
186 | + | let trustedPrestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE") | |
187 | + | let trustedPrestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo") | |
188 | + | if ((t.recipient == trustedPrestec01)) | |
191 | 189 | then true | |
192 | - | else (t.recipient == | |
190 | + | else (t.recipient == trustedPrestec02) | |
193 | 191 | case tx: ExchangeTransaction => | |
194 | 192 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
195 | 193 | then true |
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 | 15 | ||
16 | 16 | let eurou = 116 | |
17 | 17 | ||
18 | 18 | let usdnw = 2539 | |
19 | 19 | ||
20 | 20 | let bco2e = 10 | |
21 | - | ||
22 | - | let Prestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE") | |
23 | - | ||
24 | - | let Prestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo") | |
25 | 21 | ||
26 | 22 | let OwnerPubKey = base58'GpwSePQvEor3GgJJdK8ae6n2kZbpasL2UMGTdHHSkWWK' | |
27 | 23 | ||
28 | 24 | func getNumberByKey (key) = { | |
29 | 25 | let num = match getInteger(this, key) { | |
30 | 26 | case a: Int => | |
31 | 27 | a | |
32 | 28 | case _ => | |
33 | 29 | 0 | |
34 | 30 | } | |
35 | 31 | num | |
36 | 32 | } | |
37 | 33 | ||
38 | 34 | ||
39 | 35 | func getStrByKey (key) = { | |
40 | 36 | let str = match getString(this, key) { | |
41 | 37 | case a: String => | |
42 | 38 | a | |
43 | 39 | case _ => | |
44 | 40 | NONE | |
45 | 41 | } | |
46 | 42 | str | |
47 | 43 | } | |
48 | 44 | ||
49 | 45 | ||
50 | 46 | func getKeyProjectCategory (item) = "Categoría del Proyecto:" | |
51 | 47 | ||
52 | 48 | ||
53 | 49 | func getValueProjectCategory (item) = getStrByKey(getKeyProjectCategory(item)) | |
54 | 50 | ||
55 | 51 | ||
56 | 52 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
57 | 53 | ||
58 | 54 | ||
59 | 55 | func getKeyProjectName (item) = "Nombre del Proyecto:" | |
60 | 56 | ||
61 | 57 | ||
62 | 58 | func getValueProjectName (item) = getStrByKey(getKeyProjectName(item)) | |
63 | 59 | ||
64 | 60 | ||
65 | 61 | func getKeyProjectCountry (item) = "País | Ubicación:" | |
66 | 62 | ||
67 | 63 | ||
68 | 64 | func getValueProjectCountry (item) = getStrByKey(getKeyProjectCountry(item)) | |
69 | 65 | ||
70 | 66 | ||
71 | 67 | func getKeyProjectCode (item) = "Código:" | |
72 | 68 | ||
73 | 69 | ||
74 | 70 | func getValueProjectCode (item) = getStrByKey(getKeyProjectCode(item)) | |
75 | 71 | ||
76 | 72 | ||
77 | 73 | func getKeyProjectPropietary (item) = "Propietario | Beneficiario del Proyecto:" | |
78 | 74 | ||
79 | 75 | ||
80 | 76 | func getValueProjectPropietary (item) = getStrByKey(getKeyProjectPropietary(item)) | |
81 | 77 | ||
82 | 78 | ||
83 | 79 | func getKeyProjectDev (supplier) = "Desarrollador | Responsable Legal:" | |
84 | 80 | ||
85 | 81 | ||
86 | 82 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
87 | 83 | ||
88 | 84 | ||
89 | 85 | func getKeyNomTokenPrice (item) = "Precio Nominal, 1 Bit-CO2:" | |
90 | 86 | ||
91 | 87 | ||
92 | 88 | func getKeyDescuento6TokPrice (item) = "Precio de 1 Bit-CO2 con dscto elejido:" | |
93 | 89 | ||
94 | 90 | ||
95 | 91 | func getValueDescuento6TokPrice (item) = getNumberByKey(getKeyDescuento6TokPrice(item)) | |
96 | 92 | ||
97 | 93 | ||
98 | 94 | func getKeyFirstFaseQty (item) = "Cantidad de Tokens ofertados en F1 Pre-ICO:" | |
99 | 95 | ||
100 | 96 | ||
101 | 97 | func getValueFirstFaseQty (item) = getStrByKey(getKeyFirstFaseQty(item)) | |
102 | 98 | ||
103 | 99 | ||
104 | 100 | func getKeySaldoTokenQtyStartEtapa (item) = "Total de tokens realizados, Pre-ICO" | |
105 | 101 | ||
106 | 102 | ||
107 | 103 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
108 | 104 | ||
109 | 105 | ||
110 | 106 | func getKeyBalanceSupplier (supplier) = "Fondos desde Participantes y Asociados, PreICO" | |
111 | 107 | ||
112 | 108 | ||
113 | 109 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
114 | 110 | ||
115 | 111 | ||
116 | 112 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
117 | 113 | ||
118 | 114 | ||
119 | 115 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
120 | 116 | ||
121 | 117 | ||
122 | 118 | func getKeyUserDocument (item) = "Documento Nacional de Identidad, DNI del Usuario:" | |
123 | 119 | ||
124 | 120 | ||
125 | 121 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
126 | 122 | ||
127 | 123 | ||
128 | 124 | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
129 | 125 | ||
130 | 126 | ||
131 | 127 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
132 | 128 | ||
133 | 129 | ||
134 | 130 | func getKeyDiscount6User (item) = "Porcentaje de descuento elejido, %:" | |
135 | 131 | ||
136 | 132 | ||
137 | 133 | func getValueDiscount6User (item) = getNumberByKey(getKeyDiscount6User(item)) | |
138 | 134 | ||
139 | 135 | ||
140 | 136 | func getKeyItemUserOrderQty (item) = "Cantidad de tokens a adquirir:" | |
141 | 137 | ||
142 | 138 | ||
143 | 139 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
144 | 140 | ||
145 | 141 | ||
146 | 142 | @Callable(i) | |
147 | 143 | func purchase (item,userDocument,userCountry,userDiscount,orderQty,totalAmount) = { | |
148 | 144 | let pmt = extract(i.payment) | |
149 | 145 | if (isDefined(pmt.assetId)) | |
150 | 146 | then throw("Ud. puede adquirir tokens BitCO2 usando WavesKeeper y su token de pago Waves.") | |
151 | 147 | else { | |
152 | 148 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
153 | 149 | case a: String => | |
154 | 150 | a | |
155 | 151 | case _ => | |
156 | 152 | NONE | |
157 | 153 | } | |
158 | 154 | let preIcoQty = match getInteger(this, getKeySaldoTokenQtyStartEtapa(item)) { | |
159 | 155 | case a: Int => | |
160 | 156 | a | |
161 | 157 | case _ => | |
162 | 158 | 0 | |
163 | 159 | } | |
164 | 160 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
165 | 161 | case a: Int => | |
166 | 162 | a | |
167 | 163 | case _ => | |
168 | 164 | 0 | |
169 | 165 | } | |
170 | 166 | let userAddress = toBase58String(i.caller.bytes) | |
171 | 167 | let currentTokenPrice = ((((((100 - userDiscount) * bco2e) * eurou) * wvs) / 100) / usdnw) | |
172 | 168 | if ((0 >= ((FirstFaseQty - preIcoQty) - orderQty))) | |
173 | 169 | then throw("Lo sentimos, por ahora no hay oferta de tokens para su transacción") | |
174 | 170 | else if ((totalAmount > pmt.amount)) | |
175 | 171 | then throw("Payment Amount can't be less than item Purchase Order") | |
176 | 172 | else if ((pmt.amount > totalAmount)) | |
177 | 173 | then throw("Payment Amount can't be higher than item Purchase Order") | |
178 | 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("Oferta de tokens utilizada:", "Programa-06 | Programa-11 | Otros"), DataEntry("Descuento máximo ofrecido:", " Según Programa"), DataEntry("Tokens Bit-CO2 a emitir en F1 y F2 Pre-ICO, unidades", startTotalQty), DataEntry(getKeyFirstFaseQty(item), FirstFaseQty), 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(getKeyItemUserOrderQty(item), orderQty), DataEntry("Suma transmitida a la PreICO, wvs", totalAmount), DataEntry("Estado de su pedido, tokens:", "¡Adquisición Confirmada!"), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (getValueSaldoTokenQtyStartEtapa(item) + orderQty)), DataEntry("Saldo de Tokens Bit-CO2 para Participantes y Asociados", ((FirstFaseQty - getValueSaldoTokenQtyStartEtapa(item)) - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (getValueBalanceSupplier(supplier) + pmt.amount)), DataEntry("Dirección del proyecto en Waves-BlockChain:", "3NDDEoGVUcxRDpXiEu7xDW5qeX9wMazp5ja")]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
179 | 175 | } | |
180 | 176 | } | |
181 | 177 | ||
182 | 178 | ||
183 | 179 | @Verifier(tx) | |
184 | 180 | func verify () = match tx { | |
185 | 181 | case t: SetScriptTransaction => | |
186 | 182 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
187 | 183 | case d: DataTransaction|ReissueTransaction => | |
188 | 184 | true | |
189 | 185 | case t: TransferTransaction => | |
190 | - | if ((t.recipient == Prestec01)) | |
186 | + | let trustedPrestec01 = addressFromString("3N7JX4dYydTz297GMwVpQ8EnbxN4SjwxncE") | |
187 | + | let trustedPrestec02 = addressFromString("3MrSPjNaeuidThhiomE6uRpAXUSh4wJtcVo") | |
188 | + | if ((t.recipient == trustedPrestec01)) | |
191 | 189 | then true | |
192 | - | else (t.recipient == | |
190 | + | else (t.recipient == trustedPrestec02) | |
193 | 191 | case tx: ExchangeTransaction => | |
194 | 192 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
195 | 193 | then true | |
196 | 194 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
197 | 195 | withWaves | |
198 | 196 | case _ => | |
199 | 197 | false | |
200 | 198 | } | |
201 | 199 |
github/deemru/w8io/fabc49c 38.50 ms ◑