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