tx · 2Yy2AxbNStSMeKy1KY79DLxabc5YE3fzvT4HdtrYXymZ 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8: -0.01000000 Waves 2021.10.24 16:58 [1760482] smart account 3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8 > SELF 0.00000000 Waves
{ "type": 13, "id": "2Yy2AxbNStSMeKy1KY79DLxabc5YE3fzvT4HdtrYXymZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1635083923087, "version": 2, "chainId": 84, "sender": "3N6D1fPBTu4QuZenU7hKNuxEKsxd13USum8", "senderPublicKey": "8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U", "proofs": [ "2EdUNQ3BZL51i6j1taUyCtCyePsP2Y5gnmLzKwqTVykeiTvr3yj6XGTTX9kNFBivZR2twbnW4WLAXcXoGtu1tVJ6" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYBCAgICAgAAAA2AAAAAAd5Qml0Q08yAQAAACBpjNT/200BfejLeLffs4/BXDw5W+kMeWgNIY5n6ZtLrQAAAAAQVG9rVG9WZW5kZWRvclF0eQAAAAAAAAAnEAAAAAAETk9ORQIAAAAEbm9uZQAAAAALT3duZXJQdWJLZXkBAAAAIHYlgUf22Lk37u4at3MrCWteEN5n68yQc4q5Um14SA8PAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuNYiemm0n1pXSZ6YgP2UOMpCwdKRqAAAAAAR0QWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU+7O5a7aYRBMtxWs5cEFVcJFhVa4S5bwWAAAAAARhQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAAR1c2VyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUtVFRCnpPkE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AAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABHBBZGQFAAAAA3BJdwUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAA3VJYgUAAAAHeUJpdENPMgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAARhQWRkBQAAAANlSXcFAAAABHVuaXQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAEZUFkZAUAAAADZUl3BQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABGVBZGQFAAAAA2VJYgUAAAAHeUJpdENPMgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALT3duZXJQdWJLZXkDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgfRu+95", "height": 1760482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 32SPGi9yC4aPRJiTW9CZU4QnKDfsgtfPzB5HAEtNSUHa Next: Dr3i4ZZq8b1TBcm1edjVzuiBxj1yoKCh3quwwdJvd6eq Diff:
Old | New | Differences | |
---|---|---|---|
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | - | func getKeyItemSupplier (supplier) = (supplier + "Vendedor-GTS, Lima-Perú") | |
65 | - | ||
66 | - | ||
67 | - | func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier)) | |
64 | + | func getKeySupplier (item) = (item + "-GTS, Lima-Perú") | |
68 | 65 | ||
69 | 66 | ||
70 | 67 | func getKeyUserItemGtsCounter (user,item) = "Order_№:" | |
169 | 166 | if (isDefined(pmt.assetId)) | |
170 | 167 | then throw("El Precio en waves.") | |
171 | 168 | else { | |
172 | - | let supplier = match getString(this, | |
169 | + | let supplier = match getString(this, getKeySupplier(item)) { | |
173 | 170 | case a: String => | |
174 | 171 | a | |
175 | 172 | case _ => | |
218 | 215 | then throw("Payment Amount can't be less than item Purchase Order") | |
219 | 216 | else if ((pmt.amount > totalAmount)) | |
220 | 217 | then throw("Payment Amount can't be higher than item Purchase Order") | |
221 | - | else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry( | |
218 | + | else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeySupplier(item), item), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry("Nodo Activo", nodo), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("1 Bit-CO2 con dscto, usd x10e-4", bco2menosdcto), DataEntry("Total bit-co2 a distribuir, x10e-4", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry("Saldo Proyecto, wvls", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens, bco2", saldoTienda1), DataEntry(getKeyBalanToken(tienda), (getValueBalanToken(tienda) + subTotalb)), DataEntry("Saldo BCO2, x10e-04", amountBCO2)]), TransferSet([ScriptTransfer(pAdd, pIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(aAdd, eIw, unit), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)])) | |
222 | 219 | } | |
223 | 220 | } | |
224 | 221 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let yBitCO2 = base58'872MvpMoQx7SnV58HMcR9hd6vBWDtQvqmt5javCmYwpx' | |
5 | 5 | ||
6 | 6 | let TokToVendedorQty = 10000 | |
7 | 7 | ||
8 | 8 | let NONE = "none" | |
9 | 9 | ||
10 | 10 | let OwnerPubKey = base58'8xCH82jKi2DM7HXXD45fmftPUDjr3TJpjanUATKMK37U' | |
11 | 11 | ||
12 | 12 | let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
13 | 13 | ||
14 | 14 | let tAdd = Address(base58'3NCrxgXt6u1iuJSLENumENf7NB3WiT3NcHb') | |
15 | 15 | ||
16 | 16 | let aAdd = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
17 | 17 | ||
18 | 18 | let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
19 | 19 | ||
20 | 20 | let user = Address(base58'3N6SoVcgBgBdjv4DqyirCoNuNw1SebS5VFT') | |
21 | 21 | ||
22 | 22 | let eurou = 116 | |
23 | 23 | ||
24 | 24 | let usdnw = 2539 | |
25 | 25 | ||
26 | 26 | let bco2e = 100000 | |
27 | 27 | ||
28 | 28 | let bitdscto = 3 | |
29 | 29 | ||
30 | 30 | let pIP = 10 | |
31 | 31 | ||
32 | 32 | let uBP = 7 | |
33 | 33 | ||
34 | 34 | let sBP = 2 | |
35 | 35 | ||
36 | 36 | let eIP = 1 | |
37 | 37 | ||
38 | 38 | let eBP = 2 | |
39 | 39 | ||
40 | 40 | let relacdcto = 11 | |
41 | 41 | ||
42 | 42 | func getNumberByKey (key) = { | |
43 | 43 | let num = match getInteger(this, key) { | |
44 | 44 | case a: Int => | |
45 | 45 | a | |
46 | 46 | case _ => | |
47 | 47 | 0 | |
48 | 48 | } | |
49 | 49 | num | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getStrByKey (key) = { | |
54 | 54 | let str = match getString(this, key) { | |
55 | 55 | case a: String => | |
56 | 56 | a | |
57 | 57 | case _ => | |
58 | 58 | NONE | |
59 | 59 | } | |
60 | 60 | str | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | - | func getKeyItemSupplier (supplier) = (supplier + "Vendedor-GTS, Lima-Perú") | |
65 | - | ||
66 | - | ||
67 | - | func getValueItemSupplier (supplier) = getStrByKey(getKeyItemSupplier(supplier)) | |
64 | + | func getKeySupplier (item) = (item + "-GTS, Lima-Perú") | |
68 | 65 | ||
69 | 66 | ||
70 | 67 | func getKeyUserItemGtsCounter (user,item) = "Order_№:" | |
71 | 68 | ||
72 | 69 | ||
73 | 70 | func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item)) | |
74 | 71 | ||
75 | 72 | ||
76 | 73 | func getKeyprojectName (item) = "Proyecto a Invertir" | |
77 | 74 | ||
78 | 75 | ||
79 | 76 | func getValueprojectName (item) = getStrByKey(getKeyprojectName(item)) | |
80 | 77 | ||
81 | 78 | ||
82 | 79 | func getKeyUserDocument (item) = "№ de Documento | DNI del Usuario:" | |
83 | 80 | ||
84 | 81 | ||
85 | 82 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
86 | 83 | ||
87 | 84 | ||
88 | 85 | func getKeyItemName (item) = "Producto adquirido | Categoría GTS:" | |
89 | 86 | ||
90 | 87 | ||
91 | 88 | func getValueItemName (item) = getStrByKey(getKeyItemName(item)) | |
92 | 89 | ||
93 | 90 | ||
94 | 91 | func getKeyTName (item) = "Tienda | Vendedor GTS:" | |
95 | 92 | ||
96 | 93 | ||
97 | 94 | func getValueTName (item) = getStrByKey(getKeyTName(item)) | |
98 | 95 | ||
99 | 96 | ||
100 | 97 | func getKeyNodo (nodo) = "Nodo-Activo:" | |
101 | 98 | ||
102 | 99 | ||
103 | 100 | func getValueNodo (nodo) = getStrByKey(getKeyNodo(nodo)) | |
104 | 101 | ||
105 | 102 | ||
106 | 103 | func getKeyAsociado (asociado) = "Asociado Bit-CO2" | |
107 | 104 | ||
108 | 105 | ||
109 | 106 | func getValueAsociado (asociado) = getStrByKey(getKeyAsociado(asociado)) | |
110 | 107 | ||
111 | 108 | ||
112 | 109 | func getKeyUI (item) = "UI, x10e-04 bit:" | |
113 | 110 | ||
114 | 111 | ||
115 | 112 | func getValueUI (item) = getNumberByKey(getKeyUI(item)) | |
116 | 113 | ||
117 | 114 | ||
118 | 115 | func getKeyPI (item) = "PI, wvls:" | |
119 | 116 | ||
120 | 117 | ||
121 | 118 | func getValuePI (item) = getNumberByKey(getKeyPI(item)) | |
122 | 119 | ||
123 | 120 | ||
124 | 121 | func getKeySI (item) = "SI, x10e-04 bit:" | |
125 | 122 | ||
126 | 123 | ||
127 | 124 | func getValueSI (item) = getNumberByKey(getKeySI(item)) | |
128 | 125 | ||
129 | 126 | ||
130 | 127 | func getKeyNIb (item) = "NIb, x10e-04 bit:" | |
131 | 128 | ||
132 | 129 | ||
133 | 130 | func getValueNIb (item) = getNumberByKey(getKeyNIb(item)) | |
134 | 131 | ||
135 | 132 | ||
136 | 133 | func getKeyNIw (item) = "NIw, wvls:" | |
137 | 134 | ||
138 | 135 | ||
139 | 136 | func getValueNIw (item) = getNumberByKey(getKeyNIw(item)) | |
140 | 137 | ||
141 | 138 | ||
142 | 139 | func getKeyBalanToken (tienda) = "Tokens Ofertados / Balance, ytok:" | |
143 | 140 | ||
144 | 141 | ||
145 | 142 | func getValueBalanToken (tienda) = getNumberByKey(getKeyBalanToken(tienda)) | |
146 | 143 | ||
147 | 144 | ||
148 | 145 | func getKeyBalanceProyecto (proyecto) = "Balance del Proyecto, wvls:" | |
149 | 146 | ||
150 | 147 | ||
151 | 148 | func getValueBalanceProyecto (proyecto) = getNumberByKey(getKeyBalanceProyecto(proyecto)) | |
152 | 149 | ||
153 | 150 | ||
154 | 151 | func getKeyBalanceAsociado (asociado) = "Balance del Asociado:" | |
155 | 152 | ||
156 | 153 | ||
157 | 154 | func getValueBalanceAsociado (asociado) = getNumberByKey(getKeyBalanceAsociado(asociado)) | |
158 | 155 | ||
159 | 156 | ||
160 | 157 | func getKeyBalanceNodo (nodo) = "Balance del Nodo:" | |
161 | 158 | ||
162 | 159 | ||
163 | 160 | func getValueBalanceNodo (nodo) = getNumberByKey(getKeyBalanceNodo(nodo)) | |
164 | 161 | ||
165 | 162 | ||
166 | 163 | @Callable(i) | |
167 | 164 | func purchaseGTS (totalAmount,userDocument,projectName,itemName,tName,item) = { | |
168 | 165 | let pmt = extract(i.payment) | |
169 | 166 | if (isDefined(pmt.assetId)) | |
170 | 167 | then throw("El Precio en waves.") | |
171 | 168 | else { | |
172 | - | let supplier = match getString(this, | |
169 | + | let supplier = match getString(this, getKeySupplier(item)) { | |
173 | 170 | case a: String => | |
174 | 171 | a | |
175 | 172 | case _ => | |
176 | 173 | NONE | |
177 | 174 | } | |
178 | 175 | let tienda = toBase58String(tAdd.bytes) | |
179 | 176 | let saldoTienda1 = match getInteger(this, getKeyBalanToken(tienda)) { | |
180 | 177 | case a: Int => | |
181 | 178 | a | |
182 | 179 | case _ => | |
183 | 180 | 0 | |
184 | 181 | } | |
185 | 182 | let amountBCO2 = ((TokToVendedorQty * 10000) - saldoTienda1) | |
186 | 183 | let proyecto = toBase58String(pAdd.bytes) | |
187 | 184 | let saldoProj = match getInteger(this, getKeyBalanceProyecto(proyecto)) { | |
188 | 185 | case a: Int => | |
189 | 186 | a | |
190 | 187 | case _ => | |
191 | 188 | 0 | |
192 | 189 | } | |
193 | 190 | let asociado = toBase58String(aAdd.bytes) | |
194 | 191 | let saldoAsociado = match getInteger(this, getKeyBalanceAsociado(asociado)) { | |
195 | 192 | case a: Int => | |
196 | 193 | a | |
197 | 194 | case _ => | |
198 | 195 | 0 | |
199 | 196 | } | |
200 | 197 | let nodo = toBase58String(eAdd.bytes) | |
201 | 198 | let saldoNodo = match getInteger(this, getKeyBalanceNodo(nodo)) { | |
202 | 199 | case a: Int => | |
203 | 200 | a | |
204 | 201 | case _ => | |
205 | 202 | 0 | |
206 | 203 | } | |
207 | 204 | let userAddress = toBase58String(i.caller.bytes) | |
208 | 205 | let subTotal = totalAmount | |
209 | 206 | let pIw = ((pIP * subTotal) / relacdcto) | |
210 | 207 | let eIw = ((eIP * subTotal) / relacdcto) | |
211 | 208 | let bco2menosdcto = (((100 - bitdscto) * (eurou * bco2e)) / 10000) | |
212 | 209 | let subTotalb = (((totalAmount * usdnw) / 100) / bco2menosdcto) | |
213 | 210 | let totalb = (subTotalb * 10000) | |
214 | 211 | let uIb = ((uBP * subTotalb) / relacdcto) | |
215 | 212 | let sIb = ((sBP * subTotalb) / relacdcto) | |
216 | 213 | let eIb = ((eBP * subTotalb) / relacdcto) | |
217 | 214 | if ((totalAmount > pmt.amount)) | |
218 | 215 | then throw("Payment Amount can't be less than item Purchase Order") | |
219 | 216 | else if ((pmt.amount > totalAmount)) | |
220 | 217 | then throw("Payment Amount can't be higher than item Purchase Order") | |
221 | - | else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry( | |
218 | + | else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeySupplier(item), item), DataEntry("Apoyo Ecológico, wvls", totalAmount), DataEntry(getKeyUserDocument(item), userDocument), DataEntry(getKeyprojectName(item), projectName), DataEntry(getKeyItemName(item), itemName), DataEntry(getKeyTName(item), tName), DataEntry("Nodo Activo", nodo), DataEntry("usdn", usdnw), DataEntry("eurou", eurou), DataEntry("1 Bit-CO2 con dscto, usd x10e-4", bco2menosdcto), DataEntry("Total bit-co2 a distribuir, x10e-4", subTotalb), DataEntry(("Order_Status:_" + userAddress), "Transacción Confirmada!"), DataEntry("Saldo Proyecto, wvls", saldoProj), DataEntry(getKeyBalanceProyecto(proyecto), (getValueBalanceProyecto(proyecto) + pIw)), DataEntry("Saldo Tokens, bco2", saldoTienda1), DataEntry(getKeyBalanToken(tienda), (getValueBalanToken(tienda) + subTotalb)), DataEntry("Saldo BCO2, x10e-04", amountBCO2)]), TransferSet([ScriptTransfer(pAdd, pIw, unit), ScriptTransfer(i.caller, uIb, yBitCO2), ScriptTransfer(aAdd, eIw, unit), ScriptTransfer(eAdd, eIw, unit), ScriptTransfer(eAdd, eIb, yBitCO2)])) | |
222 | 219 | } | |
223 | 220 | } | |
224 | 221 | ||
225 | 222 | ||
226 | 223 | @Verifier(tx) | |
227 | 224 | func verify () = match tx { | |
228 | 225 | case t: SetScriptTransaction => | |
229 | 226 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
230 | 227 | case d: ReissueTransaction|DataTransaction => | |
231 | 228 | true | |
232 | 229 | case tx: TransferTransaction => | |
233 | 230 | true | |
234 | 231 | case _ => | |
235 | 232 | false | |
236 | 233 | } | |
237 | 234 |
github/deemru/w8io/169f3d6 51.22 ms ◑