tx · 8taVdcuQatyTtwzbby1D7LEyefV5DWTnStRiwF3VGYzy 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q: -0.01400000 Waves 2020.08.03 15:20 [1116165] smart account 3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q > SELF 0.00000000 Waves
{ "type": 13, "id": "8taVdcuQatyTtwzbby1D7LEyefV5DWTnStRiwF3VGYzy", "fee": 1400000, "feeAssetId": null, "timestamp": 1596457252920, "version": 1, "sender": "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q", "senderPublicKey": "6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67", "proofs": [ "2UdZAi5wgUsQK5YXXRTyu4Ut1y8pxTAcn5T5YKXr5JzJwXgTwE9tR5gty3um4YECcJkt12WvniLqpFPFQzwABPnQ" ], "script": "base64:AAIDAAAAAAAAADMIARIECgIICBIHCgUICAgBARIICgYICAgBAQgSBgoECAgIARIICgYICAgBAQgSBAoCCAEAAAA+AAAAAAd4Qml0Q08yAQAAACAgBGSmqgN7DW+mqvqXJVizlol6Uwz/77rGaIdsg1TcjQAAAAAIc3RhcnRRdHkAAAAAAAAEqh0AAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBXg6Dz9iwxuW6OZN3ObCk6NCcw047cUbg0y/YmycTlFAAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUS0gVj7khTyyW8drcBieKY28h0dbnPZfaAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUTBaoO/bGBDOBrm064MWNCsZzgwdlxMLyAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUr4Vcn4wBB78CoLaGa2WDuKHfP9Hd98MyAAAAAANpZ3YAAAAAAAAA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AAAAAAAAAAAABQAAAAtPd25lclB1YktleQMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJd2l0aFdhdmVzAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0BgkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAUAAAAJd2l0aFdhdmVzB6LAvWI=", "chainId": 84, "height": 1116165, "spentComplexity": 0 } View: original | compacted Prev: 7uLudroUjddKrPFEeLUw9UqVXJm3d99mcikKdWaavT9v Next: EpXneSi7iwdNZUKE3kLWcQgjpL2KVuRpF9pnhehV7ctJ Diff:
Old | New | Differences | |
---|---|---|---|
64 | 64 | func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier)) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func getKeyProjectCode ( | |
67 | + | func getKeyProjectCode (item) = "01-EC/SGT - ACHUARKAPAWI-prueba" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getKeyProjectName (projectName) = "Reserva Amazónica Achuar-Kapawi" | |
240 | 240 | then throw("Payment Amount can't be less than item Purchase Order") | |
241 | 241 | else if ((pmt.amount > totalAmount)) | |
242 | 242 | then throw("Payment Amount can't be higher than item Purchase Order") | |
243 | - | else ScriptResult(WriteSet([DataEntry("Categoría:", " Reserva Forestal Amazónica"), DataEntry("Tipo de Proyecto:", " Conservación / Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", " Ecuador"), DataEntry("Nombre del Proyecto:", " Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", " 01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", " Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", " Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", " 2"), DataEntry("Etapas del Proyecto, en Ejecución:", " Fundación REDD a definir"), DataEntry("Cantidad Total de Tokens Bit-CO2 a Emitir, I y II Etapa Pre-ICO:", " 305693"), DataEntry("Precio Nominal, 1 token Bit-CO2:", " 10.00 Euros"), DataEntry("Máximo Descuento Ofrecido en I Etapa, %:", " 12.00"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total tokens emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", currentTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeyBalanceQtySupplier(item), (preIcoQty - orderQty)), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount)), DataEntry(getKeyItem(supplier, item), "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q"), DataEntry(getKeyItemSupplier(supplier), (getValueItemSupplier(supplier) + "Prueba2"))]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
243 | + | else ScriptResult(WriteSet([DataEntry("Categoría:", " Reserva Forestal Amazónica"), DataEntry("Tipo de Proyecto:", " Conservación / Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", " Ecuador"), DataEntry("Nombre del Proyecto:", " Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", " 01-EC/SGT - ACHUARKAPAWI-01"), DataEntry(getKeyProjectCode(item), " 02-EC/SGT - ACHUARKAPAWI-02"), DataEntry("Emisor:", " Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", " Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", " 2"), DataEntry("Etapas del Proyecto, en Ejecución:", " Fundación REDD a definir"), DataEntry("Cantidad Total de Tokens Bit-CO2 a Emitir, I y II Etapa Pre-ICO:", " 305693"), DataEntry("Precio Nominal, 1 token Bit-CO2:", " 10.00 Euros"), DataEntry("Máximo Descuento Ofrecido en I Etapa, %:", " 12.00"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total tokens emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", currentTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeyBalanceQtySupplier(item), (preIcoQty - orderQty)), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount)), DataEntry(getKeyItem(supplier, item), "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q"), DataEntry(getKeyItemSupplier(supplier), (getValueItemSupplier(supplier) + "Prueba2"))]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
244 | 244 | } | |
245 | 245 | } | |
246 | 246 |
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 startQty = 305693 | |
7 | 7 | ||
8 | 8 | let nomPrice = 1 | |
9 | 9 | ||
10 | 10 | let wvs = 100000000 | |
11 | 11 | ||
12 | 12 | let supplierDiscount = 12 | |
13 | 13 | ||
14 | 14 | let NONE = "none" | |
15 | 15 | ||
16 | 16 | let OwnerPubKey = base58'6tctCnkRasXYuZWRpzZz9ogLri6aifJ19LTtx9uFQv67' | |
17 | 17 | ||
18 | 18 | let issuer = Address(base58'3Mvn8oonnpiasA3bkq36N9qeqqXWfFW437o') | |
19 | 19 | ||
20 | 20 | let eAdd = Address(base58'3MvrQGkHQtyLTC2QXgPnQ6oCEWhHyUJpU4q') | |
21 | 21 | ||
22 | 22 | let pAdd = Address(base58'3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q') | |
23 | 23 | ||
24 | 24 | let igv = 18 | |
25 | 25 | ||
26 | 26 | let cPB = 88 | |
27 | 27 | ||
28 | 28 | let uIP = 5 | |
29 | 29 | ||
30 | 30 | let pIP = 10 | |
31 | 31 | ||
32 | 32 | let sIP = 1 | |
33 | 33 | ||
34 | 34 | let eIP = 1 | |
35 | 35 | ||
36 | 36 | func getNumberByKey (key) = { | |
37 | 37 | let num = match getInteger(this, key) { | |
38 | 38 | case a: Int => | |
39 | 39 | a | |
40 | 40 | case _ => | |
41 | 41 | 0 | |
42 | 42 | } | |
43 | 43 | num | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getStrByKey (key) = { | |
48 | 48 | let str = match getString(this, key) { | |
49 | 49 | case a: String => | |
50 | 50 | a | |
51 | 51 | case _ => | |
52 | 52 | NONE | |
53 | 53 | } | |
54 | 54 | str | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func getKeyItem (supplier,item) = ("Reserva Forestal Amazónica" + toBase58String(sha256(toBytes((supplier + item))))) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func getKeyItemSupplier (supplier) = (supplier + "Comunidad Achuar Kapawi del Ecuador") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier)) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func getKeyProjectCode ( | |
67 | + | func getKeyProjectCode (item) = "01-EC/SGT - ACHUARKAPAWI-prueba" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func getKeyProjectName (projectName) = "Reserva Amazónica Achuar-Kapawi" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func getValueProjectName (projectName) = getStrByKey(getKeyProjectName(projectName)) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getKeyProjectEtapa (projectAddress) = "AchuarKapawi, I Etapa: PreICO" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getValueProjectEtapa (projectAddress) = getStrByKey(getKeyProjectEtapa(projectAddress)) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getKeyProjectCountry (item) = "República del Ecuador" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getKeyProjectDev (supplier) = "Fundación Ecológica 'NASE'" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func getValueProjectDev (supplier) = getStrByKey(getKeyProjectDev(supplier)) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func getKeyTokenStartQty (item) = "15693 tokens Bit-CO2" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func getKeyNomTokenPrice (item) = "10.00 Euros" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func getKeyItemPriceSupplier (item) = "_waves" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func getValueItemPriceSupplier (item) = getNumberByKey(getKeyItemPriceSupplier(item)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func getKeyMaxDescuento (item) = "12.00% del Precio Nominal de 1 token Bit-CO2" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func getKeyMinTokenPrice (item) = "8.80 Euros por 1 token Bit-CO2" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func getKeyUserItemCounter (user,item) = "Order_№:" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func getKeyUserName (item) = "Nombre del Usuario:" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func getValueUserName (item) = getStrByKey(getKeyUserName(item)) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getKeyUserDocument (item) = "№ de Documento Nacional de Identidad / DNI del Usuario:" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getKeyUserCountry (item) = "País de Residencia del Usuario:" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getValueUserCountry (item) = getStrByKey(getKeyUserCountry(item)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func getKeyItemDiscountUser (item) = "Descuento elejido por el Usuario, %:" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func getValueItemDiscountUser (item) = getNumberByKey(getKeyItemDiscountUser(item)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getKeyItemDiscountSupplier (item) = "SupplierDiscount, max_%:" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getValueItemDiscountSupplier (item) = getNumberByKey(getKeyItemDiscountSupplier(item)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getKeyItemUserOrderQty (item) = "Orden de Compra, cantidad solicitada:" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getValueItemUserOrderQty (item) = getNumberByKey(getKeyItemUserOrderQty(item)) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func getKeyBalanceQtySupplier (item) = "Balance/Saldo, tokens:" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func getKeyBalanceSupplier (supplier) = "Ingresos por Venta Directa / BlockChain:" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func getKeyUI (item) = "UI,_wvs:" | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getValueUI (item) = getNumberByKey(getKeyUI(item)) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func getKeyPI (item) = "PI,_%:" | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func getValuePI (item) = getNumberByKey(getKeyPI(item)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func getKeySI (item) = "SI,_%:" | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func getValueSI (item) = getNumberByKey(getKeySI(item)) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func getKeyItemData (item) = "description: " | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(i) | |
191 | 191 | func deposit (title,supplierData) = { | |
192 | 192 | let pmt = extract(i.payment) | |
193 | 193 | if ((pmt.assetId != xBitCO2)) | |
194 | 194 | then throw("deposito permitido solo en xBitCO2 tokens") | |
195 | 195 | else { | |
196 | 196 | let supplier = toBase58String(i.caller.bytes) | |
197 | 197 | let currentAmount = match getInteger(this, supplier) { | |
198 | 198 | case a: Int => | |
199 | 199 | a | |
200 | 200 | case _ => | |
201 | 201 | startQty | |
202 | 202 | } | |
203 | 203 | let newAmount = (currentAmount + pmt.amount) | |
204 | 204 | if ((0 >= newAmount)) | |
205 | 205 | then throw("No hay xBitCO2 en su balance") | |
206 | 206 | else WriteSet([DataEntry(supplier, newAmount)]) | |
207 | 207 | } | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(i) | |
213 | 213 | func purchase (item,userName,userCountry,userDiscount,orderQty) = { | |
214 | 214 | let pmt = extract(i.payment) | |
215 | 215 | if (isDefined(pmt.assetId)) | |
216 | 216 | then throw("En la presente Plastaforma Ud. puede adquirir sus tokens xBitCO2 usando WavesKeeper y su token de pago Waves.") | |
217 | 217 | else { | |
218 | 218 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
219 | 219 | case a: String => | |
220 | 220 | a | |
221 | 221 | case _ => | |
222 | 222 | NONE | |
223 | 223 | } | |
224 | 224 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
225 | 225 | case a: Int => | |
226 | 226 | a | |
227 | 227 | case _ => | |
228 | 228 | startQty | |
229 | 229 | } | |
230 | 230 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
231 | 231 | case a: Int => | |
232 | 232 | a | |
233 | 233 | case _ => | |
234 | 234 | 0 | |
235 | 235 | } | |
236 | 236 | let userAddress = toBase58String(i.caller.bytes) | |
237 | 237 | let currentTokenPrice = ((((100 - userDiscount) * nomPrice) * wvs) / 100) | |
238 | 238 | let totalAmount = (orderQty * currentTokenPrice) | |
239 | 239 | if ((totalAmount > pmt.amount)) | |
240 | 240 | then throw("Payment Amount can't be less than item Purchase Order") | |
241 | 241 | else if ((pmt.amount > totalAmount)) | |
242 | 242 | then throw("Payment Amount can't be higher than item Purchase Order") | |
243 | - | else ScriptResult(WriteSet([DataEntry("Categoría:", " Reserva Forestal Amazónica"), DataEntry("Tipo de Proyecto:", " Conservación / Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", " Ecuador"), DataEntry("Nombre del Proyecto:", " Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", " 01-EC/SGT - ACHUARKAPAWI-01"), DataEntry("Emisor:", " Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", " Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", " 2"), DataEntry("Etapas del Proyecto, en Ejecución:", " Fundación REDD a definir"), DataEntry("Cantidad Total de Tokens Bit-CO2 a Emitir, I y II Etapa Pre-ICO:", " 305693"), DataEntry("Precio Nominal, 1 token Bit-CO2:", " 10.00 Euros"), DataEntry("Máximo Descuento Ofrecido en I Etapa, %:", " 12.00"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total tokens emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", currentTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeyBalanceQtySupplier(item), (preIcoQty - orderQty)), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount)), DataEntry(getKeyItem(supplier, item), "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q"), DataEntry(getKeyItemSupplier(supplier), (getValueItemSupplier(supplier) + "Prueba2"))]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
243 | + | else ScriptResult(WriteSet([DataEntry("Categoría:", " Reserva Forestal Amazónica"), DataEntry("Tipo de Proyecto:", " Conservación / Emisión de CO2 Evitada"), DataEntry("País/Ubicación:", " Ecuador"), DataEntry("Nombre del Proyecto:", " Reserva Amazónica Achuar-Kapawi"), DataEntry("Código:", " 01-EC/SGT - ACHUARKAPAWI-01"), DataEntry(getKeyProjectCode(item), " 02-EC/SGT - ACHUARKAPAWI-02"), DataEntry("Emisor:", " Comunidad Achuar Kapawi"), DataEntry("Desarrollador/Responsable:", " Fundación Ecológica 'NASE'"), DataEntry("Etapas del Proyecto, Pre-ICO:", " 2"), DataEntry("Etapas del Proyecto, en Ejecución:", " Fundación REDD a definir"), DataEntry("Cantidad Total de Tokens Bit-CO2 a Emitir, I y II Etapa Pre-ICO:", " 305693"), DataEntry("Precio Nominal, 1 token Bit-CO2:", " 10.00 Euros"), DataEntry("Máximo Descuento Ofrecido en I Etapa, %:", " 12.00"), DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry("Total tokens emitidos, I Etapa Pre-ICO", startQty), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserCountry(item), userCountry), DataEntry(getKeyItemDiscountUser(item), userDiscount), DataEntry(getKeyItemUserOrderQty(item), orderQty), DataEntry("tokenPrice/Supplier, wvs", (nomPrice * wvs)), DataEntry("tokenPrice/User, wvs", currentTokenPrice), DataEntry("investedAmount/User, wvs", totalAmount), DataEntry("purchaseOrder/Status:", "¡Adquisición Confirmada!"), DataEntry(getKeyBalanceQtySupplier(item), (preIcoQty - orderQty)), DataEntry(getKeySaldoTokenQtyStartEtapa(item), (preIcoQty - orderQty)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount)), DataEntry(getKeyItem(supplier, item), "3N5v9ndbkGSWy1SfeJSz94tYU8qVNTUJV2q"), DataEntry(getKeyItemSupplier(supplier), (getValueItemSupplier(supplier) + "Prueba2"))]), TransferSet([ScriptTransfer(addressFromStringValue(userAddress), orderQty, xBitCO2)])) | |
244 | 244 | } | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Callable(i) | |
250 | 250 | func AddSupplierToken (title,name,country,preIcoQty,supplierDiscount,supplierData) = { | |
251 | 251 | let supplier = toBase58String(i.caller.bytes) | |
252 | 252 | let item = getKeyItem(supplier, title) | |
253 | 253 | if ((0 >= preIcoQty)) | |
254 | 254 | then throw("Sorry, insufficient token offer") | |
255 | 255 | else WriteSet([DataEntry(("Supplier:_" + getKeyProjectDev(item)), supplier), DataEntry(("Title:_" + supplier), title), DataEntry(("ProjectName:_" + supplier), name), DataEntry(("Country:_" + supplier), country), DataEntry(getKeyBalanceQtySupplier(item), preIcoQty), DataEntry(("NomTokenPrice:_" + getKeyItemPriceSupplier(item)), (nomPrice * wvs)), DataEntry(("Max_Descuento_ofrecido:" + getKeyItemDiscountSupplier(item)), supplierDiscount), DataEntry(("Development:_" + getKeyItemData(item)), supplierData)]) | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | ||
260 | 260 | @Callable(i) | |
261 | 261 | func purchaseGTS (item,userName,userDocument,totalAmount) = { | |
262 | 262 | let pmt = extract(i.payment) | |
263 | 263 | if (isDefined(pmt.assetId)) | |
264 | 264 | then throw("El Precio de los aves.") | |
265 | 265 | else { | |
266 | 266 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
267 | 267 | case a: String => | |
268 | 268 | a | |
269 | 269 | case _ => | |
270 | 270 | NONE | |
271 | 271 | } | |
272 | 272 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
273 | 273 | case a: Int => | |
274 | 274 | a | |
275 | 275 | case _ => | |
276 | 276 | startQty | |
277 | 277 | } | |
278 | 278 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
279 | 279 | case a: Int => | |
280 | 280 | a | |
281 | 281 | case _ => | |
282 | 282 | 0 | |
283 | 283 | } | |
284 | 284 | let userAddress = toBase58String(i.caller.bytes) | |
285 | 285 | let subTotal = (totalAmount - ((igv * totalAmount) / 100)) | |
286 | 286 | let uI = ((subTotal * uIP) / 100) | |
287 | 287 | let uBI = (uI / cPB) | |
288 | 288 | let pI = ((subTotal * pIP) / 100) | |
289 | 289 | let eI = ((subTotal * eIP) / 100) | |
290 | 290 | let eBI = ((subTotal * eIP) / (cPB * 100)) | |
291 | 291 | let sI = ((totalAmount - pI) - eI) | |
292 | 292 | let sBI = ((subTotal * sIP) / (cPB * 100)) | |
293 | 293 | if ((totalAmount > pmt.amount)) | |
294 | 294 | then throw("Payment Amount can't be less than item Purchase Order") | |
295 | 295 | else if ((pmt.amount > totalAmount)) | |
296 | 296 | then throw("Payment Amount can't be higher than item Purchase Order") | |
297 | 297 | else ScriptResult(WriteSet([DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyUserName(item), userName), DataEntry(getKeyUserDocument(item), userDocument), DataEntry("Payment_amount,_wvs", totalAmount), DataEntry("Imp, %", igv), DataEntry("STtl, wvs", subTotal), DataEntry("CP 1 B, wvs", (cPB * 1000000)), DataEntry(getKeyUI(item), uI), DataEntry("UBI", uBI), DataEntry(getKeyPI(item), pI), DataEntry("EcSys", eBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(pAdd, pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, xBitCO2), ScriptTransfer(eAdd, eI, unit), ScriptTransfer(eAdd, eBI, xBitCO2)])) | |
298 | 298 | } | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | ||
303 | 303 | @Callable(i) | |
304 | 304 | func AddVendedorGTS (title,name,country,preIcoQty,supplierDiscount,supplierData) = { | |
305 | 305 | let supplier = toBase58String(i.caller.bytes) | |
306 | 306 | let item = getKeyItem(supplier, title) | |
307 | 307 | if ((0 >= preIcoQty)) | |
308 | 308 | then throw("Sorry, insufficient token offer") | |
309 | 309 | else WriteSet([DataEntry(("Supplier:_" + getKeyProjectDev(item)), supplier), DataEntry(("Title:_" + supplier), title), DataEntry(("ProjectName:_" + supplier), name), DataEntry(("Country:_" + supplier), country), DataEntry(getKeyBalanceQtySupplier(item), preIcoQty), DataEntry(("NomTokenPrice:_" + getKeyItemPriceSupplier(item)), (nomPrice * wvs)), DataEntry(("Max_Descuento_ofrecido:" + getKeyItemDiscountSupplier(item)), supplierDiscount), DataEntry(("Development:_" + getKeyItemData(item)), supplierData)]) | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(i) | |
315 | 315 | func withdraw (item,amount) = { | |
316 | 316 | let userAddress = toBase58String(i.caller.bytes) | |
317 | 317 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
318 | 318 | case a: String => | |
319 | 319 | a | |
320 | 320 | case _ => | |
321 | 321 | NONE | |
322 | 322 | } | |
323 | 323 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
324 | 324 | case a: Int => | |
325 | 325 | a | |
326 | 326 | case _ => | |
327 | 327 | startQty | |
328 | 328 | } | |
329 | 329 | let newAmount = (preIcoQty - amount) | |
330 | 330 | if ((0 > amount)) | |
331 | 331 | then throw("El balance de retiro no puede ser negativo!") | |
332 | 332 | else if ((0 >= newAmount)) | |
333 | 333 | then throw("Ooppss.. Insuficiente balance!") | |
334 | 334 | else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)])) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | @Verifier(tx) | |
339 | 339 | func verify () = match tx { | |
340 | 340 | case t: SetScriptTransaction => | |
341 | 341 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
342 | 342 | case d: DataTransaction|ReissueTransaction => | |
343 | 343 | true | |
344 | 344 | case tx: TransferTransaction => | |
345 | 345 | true | |
346 | 346 | case tx: ExchangeTransaction => | |
347 | 347 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
348 | 348 | then true | |
349 | 349 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
350 | 350 | withWaves | |
351 | 351 | case _ => | |
352 | 352 | false | |
353 | 353 | } | |
354 | 354 |
github/deemru/w8io/026f985 54.28 ms ◑