tx · FxAYk1ZofeowrNMVp5CwYjNX16njAXdvbwihLKWta4Ds 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k: -0.01400000 Waves 2020.08.18 23:16 [1138778] smart account 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k > SELF 0.00000000 Waves
{ "type": 13, "id": "FxAYk1ZofeowrNMVp5CwYjNX16njAXdvbwihLKWta4Ds", "fee": 1400000, "feeAssetId": null, "timestamp": 1597781795539, "version": 1, "sender": "3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k", "senderPublicKey": "7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y", "proofs": [ "2e1XLRqNif9tbw4kbJYAtXJU11dLSDWV69FNVaZbvQf9c8YJAgcEHG7fwmnRVibpTWicaNdXZr5XAHXC2fmqp8Ct" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAAKgAAAAAHeEJpdENPMgEAAAAgIARkpqoDew1vpqr6lyVYs5aJelMM/++6xmiHbINU3I0AAAAACHN0YXJ0UXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBc10kgzntLYC3wdTXyP6D5J32rgBzym30loQrY6e/2HwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkAQAAACCV+Qp/oC76gE7OzxSsdBBm+3q3lqJT80DKpVfXFCJJXgAAA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gQAAAACdHgFAAAAByRtYXRjaDAEAAAACXdpdGhXYXZlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAYJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAnR4AAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAACXdpdGhXYXZlcwdvQjz9", "chainId": 84, "height": 1138778, "spentComplexity": 0 } View: original | compacted Prev: 7M9ADWTUxzAuu5YHYnYA8XaXWEKnCHejiNCLd3ZkCbpa Next: 3YEEZp9ys9XdYRKwPQ2sjbJWfvhK2bUDpWLdXXXNasZv Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | ||
24 | 24 | let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
25 | 25 | ||
26 | - | let pAdd = | |
26 | + | let pAdd = base58'B6S11L8tiE1tkdBiTQrae6mPzpr9XXqSCRcHTmL2YBhX' | |
27 | 27 | ||
28 | 28 | let igv = 18 | |
29 | 29 |
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 FirstFaseQty = 31193 | |
9 | 9 | ||
10 | 10 | let SecondFaseQty = 274500 | |
11 | 11 | ||
12 | 12 | let nomPrice = 1 | |
13 | 13 | ||
14 | 14 | let wvs = 100000000 | |
15 | 15 | ||
16 | 16 | let supplierDiscount = 12 | |
17 | 17 | ||
18 | 18 | let NONE = "none" | |
19 | 19 | ||
20 | 20 | let OwnerPubKey = base58'7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y' | |
21 | 21 | ||
22 | 22 | let issuer = Address(base58'3N67GoXrZo4iwmEjLhS9iNUCbzpPEjoYgNW') | |
23 | 23 | ||
24 | 24 | let eAdd = Address(base58'3N3uf7RK8Aed4v5ufGB8xV2Wsz4WNoHj21c') | |
25 | 25 | ||
26 | - | let pAdd = | |
26 | + | let pAdd = base58'B6S11L8tiE1tkdBiTQrae6mPzpr9XXqSCRcHTmL2YBhX' | |
27 | 27 | ||
28 | 28 | let igv = 18 | |
29 | 29 | ||
30 | 30 | let cPB = 88 | |
31 | 31 | ||
32 | 32 | let uIP = 7 | |
33 | 33 | ||
34 | 34 | let pIP = 10 | |
35 | 35 | ||
36 | 36 | let sIP = 1 | |
37 | 37 | ||
38 | 38 | let eIP = 1 | |
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 + "Bit-CO2 Shop, 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 getKeyUserItemGtsCounter (user,item) = "Order_№:" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getValueUserItemGtsCounter (user,item) = getNumberByKey(getKeyUserItemGtsCounter(user, item)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getKeyItemName (item) = "Categoría del Producto:" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getValueItemName (item) = getStrByKey(getKeyItemName(item)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getKeyUserName (item) = "Nombre del Usuario:" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getValueUserName (item) = getStrByKey(getKeyUserName(item)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getKeyUserDocument (item) = "№ de Documento / DNI del Usuario:" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getValueUserDocument (item) = getStrByKey(getKeyUserDocument(item)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getKeySaldoTokenQtyStartEtapa (item) = "Tokens Ofertados en la presente etapa / Saldo:" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getValueSaldoTokenQtyStartEtapa (item) = getNumberByKey(getKeySaldoTokenQtyStartEtapa(item)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getKeyBalanceQtySupplier (item) = "Balance/Saldo GTS, tokens:" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getValueBalanceQtySupplier (item) = getNumberByKey(getKeyBalanceQtySupplier(item)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getKeyBalanceSupplier (supplier) = "Ingresos por VentaGTS:" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getValueBalanceSupplier (supplier) = getNumberByKey(getKeyBalanceSupplier(supplier)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getKeyUI (item) = "UI,_wvs:" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func getValueUI (item) = getNumberByKey(getKeyUI(item)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func getKeyPI (item) = "PI,_%:" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getValuePI (item) = getNumberByKey(getKeyPI(item)) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func getKeySI (item) = "SI,_%:" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getValueSI (item) = getNumberByKey(getKeySI(item)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | @Callable(i) | |
129 | 129 | func deposit (title,supplierData) = { | |
130 | 130 | let pmt = extract(i.payment) | |
131 | 131 | if ((pmt.assetId != xBitCO2)) | |
132 | 132 | then throw("deposito permitido solo en xBitCO2 tokens") | |
133 | 133 | else { | |
134 | 134 | let supplier = toBase58String(i.caller.bytes) | |
135 | 135 | let currentAmount = match getInteger(this, supplier) { | |
136 | 136 | case a: Int => | |
137 | 137 | a | |
138 | 138 | case _ => | |
139 | 139 | startQty | |
140 | 140 | } | |
141 | 141 | let newAmount = (currentAmount + pmt.amount) | |
142 | 142 | if ((0 >= newAmount)) | |
143 | 143 | then throw("No hay xBitCO2 en su balance") | |
144 | 144 | else WriteSet([DataEntry(supplier, newAmount)]) | |
145 | 145 | } | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | ||
150 | 150 | @Callable(i) | |
151 | 151 | func purchaseGTS (item,itemName,userName,userDocument,totalAmount,pAdd,eAdd) = { | |
152 | 152 | let pmt = extract(i.payment) | |
153 | 153 | if (isDefined(pmt.assetId)) | |
154 | 154 | then throw("El Precio en waves.") | |
155 | 155 | else { | |
156 | 156 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
157 | 157 | case a: String => | |
158 | 158 | a | |
159 | 159 | case _ => | |
160 | 160 | NONE | |
161 | 161 | } | |
162 | 162 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
163 | 163 | case a: Int => | |
164 | 164 | a | |
165 | 165 | case _ => | |
166 | 166 | SecondFaseQty | |
167 | 167 | } | |
168 | 168 | let balanceSupplier = match getInteger(this, getKeyBalanceSupplier(supplier)) { | |
169 | 169 | case a: Int => | |
170 | 170 | a | |
171 | 171 | case _ => | |
172 | 172 | 0 | |
173 | 173 | } | |
174 | 174 | let userAddress = toBase58String(i.caller.bytes) | |
175 | 175 | let subTotal = (totalAmount - ((igv * totalAmount) / 100)) | |
176 | 176 | let uI = ((subTotal * uIP) / 100) | |
177 | 177 | let uBI = (uI / cPB) | |
178 | 178 | let pI = ((subTotal * pIP) / 100) | |
179 | 179 | let eI = ((subTotal * eIP) / 100) | |
180 | 180 | let eBI = ((subTotal * eIP) / (cPB * 100)) | |
181 | 181 | let sI = ((totalAmount - pI) - eI) | |
182 | 182 | let sBI = ((subTotal * sIP) / (cPB * 100)) | |
183 | 183 | let QVentasgts = ((subTotal * 11) / (cPB * 100)) | |
184 | 184 | if ((totalAmount > pmt.amount)) | |
185 | 185 | then throw("Payment Amount can't be less than item Purchase Order") | |
186 | 186 | else if ((pmt.amount > totalAmount)) | |
187 | 187 | then throw("Payment Amount can't be higher than item Purchase Order") | |
188 | 188 | else ScriptResult(WriteSet([DataEntry(getKeyUserItemGtsCounter(userAddress, item), (getValueUserItemGtsCounter(userAddress, item) + 1)), DataEntry(getKeyItem(supplier, item), item), DataEntry(getKeyItemName(item), itemName), 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(getKeySI(item), sI), DataEntry("SBI: b", sBI), DataEntry(("Order_Status:_" + userAddress), "Adquisición Confirmada!"), DataEntry("QporVentasGTS", QVentasgts), DataEntry(getKeyBalanceQtySupplier(item), (SecondFaseQty - QVentasgts)), DataEntry(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(addressFromStringValue(pAdd), pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, xBitCO2)])) | |
189 | 189 | } | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(i) | |
195 | 195 | func withdraw (item,amount) = { | |
196 | 196 | let userAddress = toBase58String(i.caller.bytes) | |
197 | 197 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
198 | 198 | case a: String => | |
199 | 199 | a | |
200 | 200 | case _ => | |
201 | 201 | NONE | |
202 | 202 | } | |
203 | 203 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
204 | 204 | case a: Int => | |
205 | 205 | a | |
206 | 206 | case _ => | |
207 | 207 | startQty | |
208 | 208 | } | |
209 | 209 | let newAmount = (preIcoQty - amount) | |
210 | 210 | if ((0 > amount)) | |
211 | 211 | then throw("El balance de retiro no puede ser negativo!") | |
212 | 212 | else if ((0 >= newAmount)) | |
213 | 213 | then throw("Ooppss.. Insuficiente balance!") | |
214 | 214 | else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)])) | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | @Verifier(tx) | |
219 | 219 | func verify () = match tx { | |
220 | 220 | case t: SetScriptTransaction => | |
221 | 221 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
222 | 222 | case d: DataTransaction|ReissueTransaction => | |
223 | 223 | true | |
224 | 224 | case tx: TransferTransaction => | |
225 | 225 | true | |
226 | 226 | case tx: ExchangeTransaction => | |
227 | 227 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
228 | 228 | then true | |
229 | 229 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
230 | 230 | withWaves | |
231 | 231 | case _ => | |
232 | 232 | false | |
233 | 233 | } | |
234 | 234 |
github/deemru/w8io/026f985 38.95 ms ◑