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