tx · 4pTDfY2jzXY2yKp7BKqJ2DK7tu5BY3ytm8HkW2M5PUPg 3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4: -0.01400000 Waves 2020.03.31 22:05 [934035] smart account 3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4 > SELF 0.00000000 Waves
{ "type": 13, "id": "4pTDfY2jzXY2yKp7BKqJ2DK7tu5BY3ytm8HkW2M5PUPg", "fee": 1400000, "feeAssetId": null, "timestamp": 1585677926148, "version": 1, "sender": "3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4", "senderPublicKey": "4AHsCbS9QYVdKNvxrPWwsMwwy3KqXaCMXeAscExJZk9L", "proofs": [ "25W3ry1Rq9eLqxocNxivFiKds9xtrYESYbnoRG7emRvgttULqhrJwRPVs7vkRoXsF3e8NvEV1zQQLhFVAXzy4Gu5" ], "script": "base64:AAIDAAAAAAAAACAIARIDCgEBEggKBggICAEBCBIHCgUICAgBARIECgIIAQAAAB8AAAAAB2FCaXRDTzIBAAAAIMf4egCdN1CfKjJsuySIc91YzhODi96HwhotKBtnwSiWAAAAAAhzdGFydFF0eQAAAAAAAAUUAAAAAAAIbm9tUHJpY2UAAAAAAAAAAAEAAAAAEHN1cHBsaWVyRGlzY291bnQAAAAAAAAAAAwAAAAADk93bmVyRWNvUHViS2V5AQAAACAu9FujQAkaDvA3MFtEeOs3vmzRi69LYN3AJDT/FjZAHwAAAAADd3ZzAAAAAAAF9eEAAAAAAAROT05FAgAAAARub25lAAAAAAZpc3N1ZXIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTK9zs+5y/RVeIPrfhFsyze+43QDUVrfW8BAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAADb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AAAAAIICAUAAAACdHgAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgUAAAAGaXNzdWVyCQAAZwAAAAIIBQAAAAJ0eAAAAAZhbW91bnQFAAAACW1pbkFtb3VudAcJAABnAAAAAgUAAAAJbWF4QW1vdW50CAUAAAACdHgAAAAGYW1vdW50BwYJAAACAAAAAQIAAABTRXJyb3I6IE1pbmltdW0gYW1vdW50OiAxIGFCaXRDTzI7IE1heGltdW0gYW1vdW50IG9mZmVyZWQ6IDQgYUJpdENPMiBieSBVc2VyIEFjY291bnQHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABYwUAAAAHJG1hdGNoMAYHA4u2bg==", "chainId": 84, "height": 934035, "spentComplexity": 0 } View: original | compacted Prev: 4EpBivtxnDB9mi44ojHrDjavnF3kDMerPdg3dn4oEe4X Next: 9LxUFMnHUJ635c4PUGN5Uu7idQtxg7XWa7zUhTU44GPS Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'ETbtNp6MBuSM9EfjmLDwctrYEBBiq8CZ7ti7zbwTktry' | |
5 | 5 | ||
6 | 6 | let b = 332800 | |
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = 12 | |
11 | 11 | ||
12 | 12 | let e = base58'4AHsCbS9QYVdKNvxrPWwsMwwy3KqXaCMXeAscExJZk9L' | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = "none" | |
17 | 17 | ||
18 | 18 | let h = Address(base58'3N8RGScPyKYySaXd5Z3VcpnttH2uBeMpSy4') | |
19 | 19 | ||
20 | 20 | func i (j) = { | |
21 | 21 | let k = { | |
22 | 22 | let l = getInteger(this, j) | |
23 | 23 | if ($isInstanceOf(l, "Int")) | |
24 | 24 | then { | |
25 | 25 | let m = l | |
26 | 26 | m | |
27 | 27 | } | |
28 | 28 | else 0 | |
29 | 29 | } | |
30 | 30 | k | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n (j) = { | |
35 | 35 | let o = { | |
36 | 36 | let l = getString(this, j) | |
37 | 37 | if ($isInstanceOf(l, "String")) | |
38 | 38 | then { | |
39 | 39 | let m = l | |
40 | 40 | m | |
41 | 41 | } | |
42 | 42 | else g | |
43 | 43 | } | |
44 | 44 | o | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func p (q,r) = ("Bit-CO2_token: " + toBase58String(sha256(toBytes((q + r))))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s (t) = (t + "_to_Amazonian_Conservation") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func u (t) = n(s(t)) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func v (t) = "description: " | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func w (t) = "Offered_SupplierDiscount,_max_%" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func x (t) = i(w(t)) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func y (t) = "Offered_Qty, balance:" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func z (t) = i(y(t)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func A (q) = "Seller_Balance:_waves" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func B (q) = i(A(q)) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func C (D,t) = "Order_№:" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func E (D,t) = i(C(D, t)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func F (t) = "UserName:" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func G (t) = n(F(t)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func H (t) = "UserCountry:" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func I (t) = "UserDiscount,_%:" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func J (t) = i(I(t)) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func K (t) = "Order_qty,_tokens:" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func L (t) = i(K(t)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func M (t) = "_waves" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func N (t) = i(M(t)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(O) | |
112 | 112 | func deposit (P) = { | |
113 | 113 | let Q = extract(O.payment) | |
114 | 114 | if ((Q.assetId != a)) | |
115 | 115 | then throw("Use cBitCO2 tokens only for the wallet deposit") | |
116 | 116 | else { | |
117 | 117 | let q = toBase58String(O.caller.bytes) | |
118 | 118 | let R = { | |
119 | 119 | let l = getInteger(this, q) | |
120 | 120 | if ($isInstanceOf(l, "Int")) | |
121 | 121 | then { | |
122 | 122 | let m = l | |
123 | 123 | m | |
124 | 124 | } | |
125 | 125 | else b | |
126 | 126 | } | |
127 | 127 | let S = (R + Q.amount) | |
128 | 128 | WriteSet([DataEntry(q, S)]) | |
129 | 129 | } | |
130 | 130 | } | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | ||
134 | 134 | @Callable(O) | |
135 | 135 | func AddSupplierToken (r,T,U,V,d,W) = { | |
136 | 136 | let q = toBase58String(O.caller.bytes) | |
137 | 137 | let t = p(q, r) | |
138 | 138 | if ((0 >= V)) | |
139 | 139 | then throw("Sorry, insufficient token offer") | |
140 | 140 | else WriteSet([DataEntry(("Supplier:_" + s(t)), q), DataEntry(("Title:_" + q), r), DataEntry(("ProjectName:_" + q), T), DataEntry(("Country:_" + q), U), DataEntry(y(t), V), DataEntry(("NomTokenPrice:_" + M(t)), (c * f)), DataEntry(("Max_Descuento_ofrecido:" + w(t)), d), DataEntry(("Development:_" + v(t)), W)]) | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | ||
145 | 145 | @Callable(O) | |
146 | 146 | func purchase (t,X,Y,Z,aa) = { | |
147 | 147 | let Q = extract(O.payment) | |
148 | 148 | if (isDefined(Q.assetId)) | |
149 | 149 | then throw("you can adquire cBitCO2 only by Waves tokens") | |
150 | 150 | else { | |
151 | 151 | let q = { | |
152 | 152 | let l = getString(this, s(t)) | |
153 | 153 | if ($isInstanceOf(l, "String")) | |
154 | 154 | then { | |
155 | 155 | let m = l | |
156 | 156 | m | |
157 | 157 | } | |
158 | 158 | else g | |
159 | 159 | } | |
160 | 160 | let V = { | |
161 | 161 | let l = getInteger(this, y(t)) | |
162 | 162 | if ($isInstanceOf(l, "Int")) | |
163 | 163 | then { | |
164 | 164 | let m = l | |
165 | 165 | m | |
166 | 166 | } | |
167 | 167 | else b | |
168 | 168 | } | |
169 | 169 | let ab = { | |
170 | 170 | let l = getInteger(this, A(q)) | |
171 | 171 | if ($isInstanceOf(l, "Int")) | |
172 | 172 | then { | |
173 | 173 | let m = l | |
174 | 174 | m | |
175 | 175 | } | |
176 | 176 | else 0 | |
177 | 177 | } | |
178 | 178 | let ac = toBase58String(O.caller.bytes) | |
179 | 179 | let ad = ((((100 - Z) * c) * f) / 100) | |
180 | 180 | let ae = (aa * ad) | |
181 | 181 | if ((ae > Q.amount)) | |
182 | 182 | then throw("Payment Amount cannot be less than item Purchase Order") | |
183 | 183 | else if ((Q.amount > ae)) | |
184 | 184 | then throw("Payment Amount can't be higher than item Purchase Order") | |
185 | 185 | else ScriptResult(WriteSet([DataEntry(C(ac, t), (E(ac, t) + 1)), DataEntry(y(t), (V - aa)), DataEntry(F(t), X), DataEntry(H(t), Y), DataEntry(I(t), Z), DataEntry(K(t), aa), DataEntry(("UserPrice_1_token,_waves:_" + ac), ad), DataEntry(("Payment_amount,_waves:_" + ac), ae), DataEntry(("Order_Status:_" + ac), "confirmed"), DataEntry(A(q), (ab + Q.amount))]), TransferSet([ScriptTransfer(addressFromStringValue(ac), aa, a)])) | |
186 | 186 | } | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | ||
191 | 191 | @Callable(O) | |
192 | 192 | func withdraw (r,P) = { | |
193 | 193 | let q = toBase58String(O.caller.bytes) | |
194 | 194 | let t = p(q, r) | |
195 | 195 | let V = { | |
196 | 196 | let l = getInteger(this, y(t)) | |
197 | 197 | if ($isInstanceOf(l, "Int")) | |
198 | 198 | then { | |
199 | 199 | let m = l | |
200 | 200 | m | |
201 | 201 | } | |
202 | 202 | else b | |
203 | 203 | } | |
204 | 204 | let S = (V - P) | |
205 | 205 | if ((0 > P)) | |
206 | 206 | then throw("Can't withdraw negative amount") | |
207 | 207 | else if ((0 > S)) | |
208 | 208 | then throw("Not enought /suficiente balance") | |
209 | 209 | else ScriptResult(WriteSet([DataEntry(t, S)]), TransferSet([ScriptTransfer(O.caller, P, a)])) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Verifier(af) | |
214 | 214 | func ag () = { | |
215 | 215 | let l = af | |
216 | 216 | if ($isInstanceOf(l, "SetScriptTransaction")) | |
217 | 217 | then { | |
218 | 218 | let ah = l | |
219 | 219 | sigVerify(af.bodyBytes, af.proofs[0], e) | |
220 | 220 | } | |
221 | 221 | else if ($isInstanceOf(l, "DataTransaction")) | |
222 | 222 | then { | |
223 | 223 | let ai = l | |
224 | 224 | true | |
225 | 225 | } | |
226 | 226 | else if ($isInstanceOf(l, "TransferTransaction")) | |
227 | 227 | then { | |
228 | 228 | let af = l | |
229 | 229 | let aj = toBase58String(addressFromRecipient(af.recipient).bytes) | |
230 | 230 | if ((af.sender == h)) | |
231 | 231 | then true | |
232 | 232 | else throw("You can't transferred this token") | |
233 | 233 | } | |
234 | 234 | else if ($isInstanceOf(l, "ExchangeTransaction")) | |
235 | 235 | then { | |
236 | 236 | let af = l | |
237 | 237 | let ak = if (!(isDefined(af.sellOrder.assetPair.priceAsset))) | |
238 | 238 | then true | |
239 | 239 | else !(isDefined(af.sellOrder.assetPair.amountAsset)) | |
240 | 240 | ak | |
241 | 241 | } | |
242 | 242 | else if ($isInstanceOf(l, "ExchangeTransaction")) | |
243 | 243 | then { | |
244 | 244 | let af = l | |
245 | 245 | let al = af.proofs[1] | |
246 | 246 | let am = addressFromPublicKey(al) | |
247 | 247 | let an = 1400000 | |
248 | 248 | let ao = ((wavesBalance(am) - an) >= af.buyOrder.price) | |
249 | 249 | let ap = sigVerify(af.sellOrder.bodyBytes, af.sellOrder.proofs[0], af.sellOrder.senderPublicKey) | |
250 | 250 | let aq = sigVerify(af.buyOrder.bodyBytes, af.buyOrder.proofs[0], af.buyOrder.senderPublicKey) | |
251 | 251 | let ar = toBase58String(af.sellOrder.sender.bytes) | |
252 | 252 | let as = 1 | |
253 | 253 | let at = 4 | |
254 | 254 | let au = (at * c) | |
255 | 255 | if (if (aq) | |
256 | 256 | then if (isDefined((au >= af.buyOrder.price))) | |
257 | 257 | then true | |
258 | 258 | else throw("El monto a pagar no puede ser menor que el precio de venta") | |
259 | 259 | else false) | |
260 | 260 | then true | |
261 | 261 | else if (ap) | |
262 | 262 | then if (if (if ((af.sellOrder.sender == h)) | |
263 | 263 | then (af.amount >= as) | |
264 | 264 | else false) | |
265 | 265 | then (at >= af.amount) | |
266 | 266 | else false) | |
267 | 267 | then true | |
268 | 268 | else throw("Error: Minimum amount: 1 aBitCO2; Maximum amount offered: 4 aBitCO2 by User Account") | |
269 | 269 | else false | |
270 | 270 | } | |
271 | 271 | else if ($isInstanceOf(l, "InvokeScriptTransaction")) | |
272 | 272 | then { | |
273 | 273 | let av = l | |
274 | 274 | true | |
275 | 275 | } | |
276 | 276 | else false | |
277 | 277 | } | |
278 | 278 |
github/deemru/w8io/169f3d6 44.86 ms ◑