tx · BJfiAUaLVyTcmCcEvJ7NLPebhPLr2hThECMZxxTphTiy 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k: -0.01400000 Waves 2020.08.18 16:57 [1138398] smart account 3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k > SELF 0.00000000 Waves
{ "type": 13, "id": "BJfiAUaLVyTcmCcEvJ7NLPebhPLr2hThECMZxxTphTiy", "fee": 1400000, "feeAssetId": null, "timestamp": 1597759071510, "version": 1, "sender": "3NB412VeXkiWqruYpeEEWkm364Xc9MskZ2k", "senderPublicKey": "7FQufF9XhJBsTdvrn67eWxYT7ZxDwzjuXAprkWiHrS3Y", "proofs": [ "NDG4P3N41Ttr1PYG9rRems1MAbPGc7ZjX5s3rUzH9tu4LgQZzpEo8MYPD1amn1ZrHGbfCzgQ44qacU2WQF5DHKR" ], "script": "base64:AAIDAAAAAAAAABkIARIECgIICBIJCgcICAgIAQgIEgQKAggBAAAAKgAAAAAHeEJpdENPMgEAAAAgAb2pGFYqMso6zVjGzvudYmkQDa7cUlNjkYASGo7FCtwAAAAACHN0YXJ0UXR5AAAAAAAABKodAAAAAAxGaXJzdEZhc2VRdHkAAAAAAAAAedkAAAAADVNlY29uZEZhc2VRdHkAAAAAAAAEMEQAAAAACG5vbVByaWNlAAAAAAAAAAABAAAAAAN3dnMAAAAAAAX14QAAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAABE5PTkUCAAAABG5vbmUAAAAAC093bmVyUHViS2V5AQAAACBc10kgzntLYC3wdTXyP6D5J32rgBzym30loQrY6e/2HwAAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUsZ/LLWvSicGFXkptOa6Ov7Vyb4KJ2haTAAAAAARlQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUmX0sM+4Li4VQQQ26bfB7j/XU/VW4HmxXAAAAAARwQWRkCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUQ6WuNYiemm0n1p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AAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQGCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAJ0eAAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0BQAAAAl3aXRoV2F2ZXMHknLsAA==", "chainId": 84, "height": 1138398, "spentComplexity": 0 } View: original | compacted Prev: EnWviQ9AZz3CaqG9sVkpnnDXfFFKqc4gbvRpFRAFLJjH Next: 8dLDT84ktugDQRicLdTVXPK6KXLVed85hbN7nkJoRNU3 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let xBitCO2 = base58' | |
4 | + | let xBitCO2 = base58'7o9Nrzapg5GoTzhZrZKfvq1JDc3TKHVHXzSGKyCBXZd' | |
5 | 5 | ||
6 | 6 | let startQty = 305693 | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let xBitCO2 = base58' | |
4 | + | let xBitCO2 = base58'7o9Nrzapg5GoTzhZrZKfvq1JDc3TKHVHXzSGKyCBXZd' | |
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 | 26 | let pAdd = Address(base58'3Mv5mXTRhpWZxZxstmnsBhckWNgErMTFEaD') | |
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 de los aves.") | |
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 | if ((totalAmount > pmt.amount)) | |
184 | 184 | then throw("Payment Amount can't be less than item Purchase Order") | |
185 | 185 | else if ((pmt.amount > totalAmount)) | |
186 | 186 | then throw("Payment Amount can't be higher than item Purchase Order") | |
187 | 187 | 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(getKeyBalanceSupplier(supplier), (balanceSupplier + pmt.amount))]), TransferSet([ScriptTransfer(i.caller, uBI, xBitCO2), ScriptTransfer(addressFromStringValue(pAdd), pI, unit), ScriptTransfer(issuer, sI, unit), ScriptTransfer(issuer, sBI, xBitCO2), ScriptTransfer(addressFromStringValue(eAdd), eI, unit), ScriptTransfer(addressFromStringValue(eAdd), eBI, xBitCO2)])) | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(i) | |
194 | 194 | func withdraw (item,amount) = { | |
195 | 195 | let userAddress = toBase58String(i.caller.bytes) | |
196 | 196 | let supplier = match getString(this, getKeyItemSupplier(item)) { | |
197 | 197 | case a: String => | |
198 | 198 | a | |
199 | 199 | case _ => | |
200 | 200 | NONE | |
201 | 201 | } | |
202 | 202 | let preIcoQty = match getInteger(this, getKeyBalanceQtySupplier(item)) { | |
203 | 203 | case a: Int => | |
204 | 204 | a | |
205 | 205 | case _ => | |
206 | 206 | startQty | |
207 | 207 | } | |
208 | 208 | let newAmount = (preIcoQty - amount) | |
209 | 209 | if ((0 > amount)) | |
210 | 210 | then throw("El balance de retiro no puede ser negativo!") | |
211 | 211 | else if ((0 >= newAmount)) | |
212 | 212 | then throw("Ooppss.. Insuficiente balance!") | |
213 | 213 | else ScriptResult(WriteSet([DataEntry(item, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, xBitCO2)])) | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Verifier(tx) | |
218 | 218 | func verify () = match tx { | |
219 | 219 | case t: SetScriptTransaction => | |
220 | 220 | sigVerify(tx.bodyBytes, tx.proofs[0], OwnerPubKey) | |
221 | 221 | case d: DataTransaction|ReissueTransaction => | |
222 | 222 | true | |
223 | 223 | case tx: TransferTransaction => | |
224 | 224 | true | |
225 | 225 | case tx: ExchangeTransaction => | |
226 | 226 | let withWaves = if (!(isDefined(tx.sellOrder.assetPair.priceAsset))) | |
227 | 227 | then true | |
228 | 228 | else !(isDefined(tx.sellOrder.assetPair.amountAsset)) | |
229 | 229 | withWaves | |
230 | 230 | case _ => | |
231 | 231 | false | |
232 | 232 | } | |
233 | 233 |
github/deemru/w8io/026f985 43.59 ms ◑