tx · 6aKQV6drCTzvfTXuWmq9n3JjHfFgD29uS5LaVRpifEKr 3N43JYG2V93YFoqRKwVv8wdihrSAzLGAyE9: -0.01300000 Waves 2022.11.03 12:41 [2300764] smart account 3N43JYG2V93YFoqRKwVv8wdihrSAzLGAyE9 > SELF 0.00000000 Waves
{ "type": 13, "id": "6aKQV6drCTzvfTXuWmq9n3JjHfFgD29uS5LaVRpifEKr", "fee": 1300000, "feeAssetId": null, "timestamp": 1667468527385, "version": 2, "chainId": 84, "sender": "3N43JYG2V93YFoqRKwVv8wdihrSAzLGAyE9", "senderPublicKey": "GZ21uawsKqsN4vtEvjBExAk9KuMX97aS3T8otU7RjFn", "proofs": [ "YvtsMrTSoPXLJyyGyiNG9dLd5bn62YfVvP8UnSJy6C8dykeM7S24vQYhq1dQbsFBbtWp22rDFcEWRdHrXwN9Lqf" ], "script": "base64:BgI5CAISBAoCCAgSBAoCBAgSBAoCAQgSBQoDCAEIEgMKAQgSAwoBCBIDCgEIEgUKAwgICBIGCgQICAgIKQAHVkVSU0lPTgIFMS4wLjABCWdldFN0ckJ5SwEDa2V5CQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMFA2tleQIAAAtmZWVSZWNlaXZlcgkBCWdldFN0ckJ5SwECEWNvbmZfZmVlX3JlY2VpdmVyAApldmVudHNEYXBwCQEFdmFsdWUBCQCmCAEJAQlnZXRTdHJCeUsBAhBjb25mX2V2ZW50c19kYXBwAAh1c2VyRGFwcAkBBXZhbHVlAQkApggBCQEJZ2V0U3RyQnlLAQIPY29uZl91c2Vyc19kYXBwAAtzaWduQXNzZXRJZAkA2QQBCQEJZ2V0U3RyQnlLAQIYY29uZl9hY2NlcHRlZF9hc3NldF9TSUdOAAVjaHJpcwkBCWdldFN0ckJ5SwECDGNvbmZfYWRtaW5fMQAHc2lnbkN1dAADAAxvcmdhbml6ZXJDdXQACgANdXNlclN1c3BlbmRlZAIJU1VTUEVOREVEAAxldmVudElsbGVnYWwCB0lMTEVHQUwADmV2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3JORlQFA25pbAULY29tbWlzc2lvbnMBaQELY2FuY2VsT2ZmZXIECHRpY2tldElkB29mZmVySWQKb2ZmZXJPd25lcglzYWxlT3duZXIEDSR0MDEzODM0MTM5MDYJAQxpZENhbGxlckRhdGUBBQFpBAJpZAgFDSR0MDEzODM0MTM5MDYCXzEEBmNhbGxlcggFDSR0MDEzODM0MTM5MDYCXzIEBGRhdGUIBQ0kdDAxMzgzNDEzOTA2Al8zAwMJAQIhPQIFBmNhbGxlcgUKb2ZmZXJPd25lcgkBAiE9AgUGY2FsbGVyBQlzYWxlT3duZXIHCQACAQIdWW91IGNhbm5vdCBjYW5jZWwgdGhpcyBvZmZlci4EBmJpZEtleQkBCWdldEJpZEtleQQFCm9mZmVyT3duZXIFCHRpY2tldElkBQlzYWxlT3duZXIFB29mZmVySWQEDSR0MDE0MDgxMTQxMzYJAQpnZXRCaWREYXRhAQUGYmlkS2V5BApiaWREYXRhQXJyCAUNJHQwMTQwODExNDEzNgJfMQQHYXNzZXRJZAgFDSR0MDE0MDgxMTQxMzYCXzIEB2JpZERhdGEIBQ0kdDAxNDA4MTE0MTM2Al8zCQDMCAIJAQtEZWxldGVFbnRyeQEJAKwCAgUGYmlkS2V5AgVfT1BFTgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBmJpZEtleQIKX0NBTkNFTExFRAkArAICCQCsAgIJAKwCAgkArAICBQdiaWREYXRhAgtfQ0FOQ0VMTEVEXwkApAMBBQRkYXRlAgFfBQJpZAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQUGY2FsbGVyCQENcGFyc2VJbnRWYWx1ZQEJAJEDAgUKYmlkRGF0YUFycgABBQdhc3NldElkBQNuaWwAPQ5Phw==", "height": 2300764, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3BnBQwfJ5Udob2mKaDHcqGMXcLnGoy9TSnn9rADFAeMd Next: W9tAEVSLB2SRMND8KRnbLbJewt543pgeArLyWBZ47nE Diff:
Old | New | Differences | |
---|---|---|---|
194 | 194 | @Callable(ay) | |
195 | 195 | func setConf (c,az) = { | |
196 | 196 | let D = toString(ay.caller) | |
197 | - | if (containsElement([h, toString(this)], D)) | |
198 | - | then if (contains(c, "conf_")) | |
199 | - | then [StringEntry(c, az)] | |
200 | - | else throw("Entries starting with conf_ only") | |
201 | - | else throw("You are not allowed to change this") | |
197 | + | if (true) | |
198 | + | then throw(((D + "_") + toString(this))) | |
199 | + | else if (containsElement([h, toString(this)], D)) | |
200 | + | then if (contains(c, "conf_")) | |
201 | + | then [StringEntry(c, az)] | |
202 | + | else throw("Entries starting with conf_ only") | |
203 | + | else throw("You are not allowed to change this") | |
202 | 204 | } | |
203 | 205 | ||
204 | 206 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | func b (c) = valueOrElse(getString(this, c), "") | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let d = b("conf_fee_receiver") | |
10 | 10 | ||
11 | 11 | let e = value(addressFromString(b("conf_events_dapp"))) | |
12 | 12 | ||
13 | 13 | let f = value(addressFromString(b("conf_users_dapp"))) | |
14 | 14 | ||
15 | 15 | let g = fromBase58String(b("conf_accepted_asset_SIGN")) | |
16 | 16 | ||
17 | 17 | let h = b("conf_admin_1") | |
18 | 18 | ||
19 | 19 | let i = 3 | |
20 | 20 | ||
21 | 21 | let j = 10 | |
22 | 22 | ||
23 | 23 | let k = "SUSPENDED" | |
24 | 24 | ||
25 | 25 | let l = "ILLEGAL" | |
26 | 26 | ||
27 | 27 | let m = "SUSPENDED" | |
28 | 28 | ||
29 | 29 | let n = "conf_dapp_is_running" | |
30 | 30 | ||
31 | 31 | let o = "conf_maintenance_msg" | |
32 | 32 | ||
33 | 33 | let p = valueOrElse(getBoolean(this, n), true) | |
34 | 34 | ||
35 | 35 | let q = valueOrElse(getString(this, o), "") | |
36 | 36 | ||
37 | 37 | let r = "num_sales" | |
38 | 38 | ||
39 | 39 | func s (c) = valueOrElse(getString(f, c), "Error") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func t (c) = valueOrElse(getString(e, c), "") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func u (c) = valueOrElse(getInteger(this, c), 0) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func v (w) = ("user_status_" + w) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func x (y,z) = ((("event_flag_" + z) + "_") + y) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func A (B) = ("nft_" + B) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func C (D,E,z,y) = ((((((("sale2nd_info_" + D) + "_") + E) + "_") + z) + "_") + y) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func F (G,E,H,I) = ((((((("offer2nd_" + G) + "_") + E) + "_") + H) + "_") + I) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func J (K) = if (!(p)) | |
64 | 64 | then throw(q) | |
65 | 65 | else $Tuple3(toBase58String(K.transactionId), toBase58String(K.caller.bytes), lastBlock.timestamp) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func L (K) = if ((size(K.payments) == 0)) | |
69 | 69 | then throw("No payment attached") | |
70 | 70 | else { | |
71 | 71 | let M = value(K.payments[0]) | |
72 | 72 | let N = value(M.amount) | |
73 | 73 | $Tuple2(M, N) | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func O (P) = if (if (if ((P.quantity == 1)) | |
78 | 78 | then (P.decimals == 0) | |
79 | 79 | else false) | |
80 | 80 | then (P.reissuable == false) | |
81 | 81 | else false) | |
82 | 82 | then (P.issuer == e) | |
83 | 83 | else false | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func Q (B) = { | |
87 | 87 | let P = value(assetInfo(B)) | |
88 | 88 | O(P) | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func R (S) = if ((S != toBase58String(g))) | |
93 | 93 | then false | |
94 | 94 | else true | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func T (S) = fromBase58String(S) | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func U (E) = { | |
101 | 101 | let H = b(("current_owner_on_dapp_" + E)) | |
102 | 102 | if ((size(H) == 0)) | |
103 | 103 | then throw("Ticket not found") | |
104 | 104 | else { | |
105 | 105 | let V = b(((("sale2nd_status_" + H) + "_") + E)) | |
106 | 106 | if ((V != "OPEN")) | |
107 | 107 | then throw("Ticket not for sale") | |
108 | 108 | else H | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func W (c) = { | |
114 | 114 | let X = b((c + "_OPEN")) | |
115 | 115 | if ((X == "")) | |
116 | 116 | then throw("Offer not found") | |
117 | 117 | else { | |
118 | 118 | let Y = split(X, "_") | |
119 | 119 | let S = T(Y[2]) | |
120 | 120 | $Tuple3(Y, S, X) | |
121 | 121 | } | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func Z (aa) = if ((aa != l)) | |
126 | 126 | then (aa != m) | |
127 | 127 | else false | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ab (w,B) = { | |
131 | 131 | let aa = t(x(w, B)) | |
132 | 132 | if (Z(aa)) | |
133 | 133 | then true | |
134 | 134 | else throw(("Original event flagged as " + aa)) | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ac (w) = { | |
139 | 139 | let ad = s(v(w)) | |
140 | 140 | if (containsElement([k], ad)) | |
141 | 141 | then throw(("Original organizer " + ad)) | |
142 | 142 | else true | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ae (S) = { | |
147 | 147 | let af = split(t(A(S)), "_") | |
148 | 148 | if (if (!(ab(af[6], af[5]))) | |
149 | 149 | then !(ac(af[6])) | |
150 | 150 | else false) | |
151 | 151 | then $Tuple3(false, af[5], af[6]) | |
152 | 152 | else $Tuple3(true, af[5], af[6]) | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ag (ah,ai) = if (if (!(ab(ai, ah))) | |
157 | 157 | then !(ac(ai)) | |
158 | 158 | else false) | |
159 | 159 | then false | |
160 | 160 | else true | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aj (N,S,E,y,H,D) = { | |
164 | 164 | let ak = fraction(N, i, 100) | |
165 | 165 | let al = fraction(N, j, 100) | |
166 | 166 | let am = (N - (ak + al)) | |
167 | 167 | let an = [ScriptTransfer(Address(fromBase58String(d)), ak, S)] | |
168 | 168 | let ao = ScriptTransfer(Address(fromBase58String(y)), al, S) | |
169 | 169 | let ap = ScriptTransfer(Address(fromBase58String(H)), am, S) | |
170 | 170 | let aq = ScriptTransfer(Address(fromBase58String(D)), 1, fromBase58String(E)) | |
171 | 171 | $Tuple4(an, ao, ap, aq) | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ar (K,E) = { | |
176 | 176 | let as = J(K) | |
177 | 177 | let B = as._1 | |
178 | 178 | let D = as._2 | |
179 | 179 | let at = as._3 | |
180 | 180 | let au = ae(E) | |
181 | 181 | let av = au._1 | |
182 | 182 | let ah = au._2 | |
183 | 183 | let ai = au._3 | |
184 | 184 | $Tuple6(B, D, at, av, ah, ai) | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func aw () = { | |
189 | 189 | let ax = u(r) | |
190 | 190 | IntegerEntry(r, (ax + 1)) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(ay) | |
195 | 195 | func setConf (c,az) = { | |
196 | 196 | let D = toString(ay.caller) | |
197 | - | if (containsElement([h, toString(this)], D)) | |
198 | - | then if (contains(c, "conf_")) | |
199 | - | then [StringEntry(c, az)] | |
200 | - | else throw("Entries starting with conf_ only") | |
201 | - | else throw("You are not allowed to change this") | |
197 | + | if (true) | |
198 | + | then throw(((D + "_") + toString(this))) | |
199 | + | else if (containsElement([h, toString(this)], D)) | |
200 | + | then if (contains(c, "conf_")) | |
201 | + | then [StringEntry(c, az)] | |
202 | + | else throw("Entries starting with conf_ only") | |
203 | + | else throw("You are not allowed to change this") | |
202 | 204 | } | |
203 | 205 | ||
204 | 206 | ||
205 | 207 | ||
206 | 208 | @Callable(ay) | |
207 | 209 | func appRunning (aA,aB) = { | |
208 | 210 | let D = toString(ay.caller) | |
209 | 211 | let B = toBase58String(ay.transactionId) | |
210 | 212 | if (containsElement([h, toString(this)], D)) | |
211 | 213 | then [BooleanEntry(n, aA), StringEntry(o, aB)] | |
212 | 214 | else throw("You are not allowed to change this") | |
213 | 215 | } | |
214 | 216 | ||
215 | 217 | ||
216 | 218 | ||
217 | 219 | @Callable(K) | |
218 | 220 | func sellNFT (aC,aD) = { | |
219 | 221 | let aE = L(K) | |
220 | 222 | let M = aE._1 | |
221 | 223 | let N = aE._2 | |
222 | 224 | if ((N != 1)) | |
223 | 225 | then throw("No Ticket attached") | |
224 | 226 | else { | |
225 | 227 | let E = if (if (isDefined(M.assetId)) | |
226 | 228 | then Q(value(M.assetId)) | |
227 | 229 | else false) | |
228 | 230 | then toBase58String(value(M.assetId)) | |
229 | 231 | else throw("Only SIGN Art NFT accepted.") | |
230 | 232 | let aF = ar(K, E) | |
231 | 233 | let B = aF._1 | |
232 | 234 | let D = aF._2 | |
233 | 235 | let at = aF._3 | |
234 | 236 | let av = aF._4 | |
235 | 237 | let ah = aF._5 | |
236 | 238 | let ai = aF._6 | |
237 | 239 | if (!(av)) | |
238 | 240 | then throw("Not a valid ticket") | |
239 | 241 | else if (!(R(aD))) | |
240 | 242 | then throw("Only SIGN token accepted") | |
241 | 243 | else [StringEntry((C(D, E, ah, ai) + "_OPEN"), ((((((((((((toString(at) + "_") + toString(aC)) + "_") + aD) + "_") + E) + "_") + ah) + "_") + ai) + "_") + B)), StringEntry(((("sale2nd_status_" + D) + "_") + E), "OPEN"), StringEntry(("current_owner_on_dapp_" + E), D)] | |
242 | 244 | } | |
243 | 245 | } | |
244 | 246 | ||
245 | 247 | ||
246 | 248 | ||
247 | 249 | @Callable(K) | |
248 | 250 | func updateSalePrice (E,aC,aD) = { | |
249 | 251 | let aG = ar(K, E) | |
250 | 252 | let B = aG._1 | |
251 | 253 | let D = aG._2 | |
252 | 254 | let at = aG._3 | |
253 | 255 | let av = aG._4 | |
254 | 256 | let ah = aG._5 | |
255 | 257 | let ai = aG._6 | |
256 | 258 | if (!(av)) | |
257 | 259 | then throw("Not a valid ticket") | |
258 | 260 | else { | |
259 | 261 | let H = b(("current_owner_on_dapp_" + E)) | |
260 | 262 | if ((H != D)) | |
261 | 263 | then throw("You don't own this ticket") | |
262 | 264 | else { | |
263 | 265 | let V = b(((("sale2nd_status_" + D) + "_") + E)) | |
264 | 266 | if ((V != "OPEN")) | |
265 | 267 | then throw("Sale not active") | |
266 | 268 | else if (!(R(aD))) | |
267 | 269 | then throw("Only SIGN token accepted") | |
268 | 270 | else { | |
269 | 271 | let aH = C(D, E, ah, ai) | |
270 | 272 | let aI = split(b((aH + "_OPEN")), "_") | |
271 | 273 | [StringEntry((aH + "_OPEN"), ((((((((((((aI[0] + "_") + toString(aC)) + "_") + aD) + "_") + aI[3]) + "_") + aI[4]) + "_") + aI[5]) + "_") + aI[6]))] | |
272 | 274 | } | |
273 | 275 | } | |
274 | 276 | } | |
275 | 277 | } | |
276 | 278 | ||
277 | 279 | ||
278 | 280 | ||
279 | 281 | @Callable(K) | |
280 | 282 | func cancelSale (E) = { | |
281 | 283 | let aJ = ar(K, E) | |
282 | 284 | let B = aJ._1 | |
283 | 285 | let D = aJ._2 | |
284 | 286 | let at = aJ._3 | |
285 | 287 | let av = aJ._4 | |
286 | 288 | let ah = aJ._5 | |
287 | 289 | let ai = aJ._6 | |
288 | 290 | let H = b(("current_owner_on_dapp_" + E)) | |
289 | 291 | if ((H != D)) | |
290 | 292 | then throw("You don't own this ticket") | |
291 | 293 | else { | |
292 | 294 | let V = b(((("sale2nd_status_" + D) + "_") + E)) | |
293 | 295 | if ((V != "OPEN")) | |
294 | 296 | then throw("Sale not active") | |
295 | 297 | else { | |
296 | 298 | let aH = C(D, E, ah, ai) | |
297 | 299 | let aI = b((aH + "_OPEN")) | |
298 | 300 | [DeleteEntry((aH + "_OPEN")), DeleteEntry(((("sale2nd_status_" + D) + "_") + E)), DeleteEntry(("current_owner_on_dapp_" + E)), StringEntry((((aH + "_") + B) + "_CANCELLED"), ((((aI + "_CANCELLED_") + toString(at)) + "_") + B)), ScriptTransfer(Address(fromBase58String(D)), 1, fromBase58String(E))] | |
299 | 301 | } | |
300 | 302 | } | |
301 | 303 | } | |
302 | 304 | ||
303 | 305 | ||
304 | 306 | ||
305 | 307 | @Callable(K) | |
306 | 308 | func buyNFT (E) = { | |
307 | 309 | let aK = ar(K, E) | |
308 | 310 | let B = aK._1 | |
309 | 311 | let D = aK._2 | |
310 | 312 | let at = aK._3 | |
311 | 313 | let av = aK._4 | |
312 | 314 | let ah = aK._5 | |
313 | 315 | let ai = aK._6 | |
314 | 316 | if (!(av)) | |
315 | 317 | then throw("Not a valid ticket") | |
316 | 318 | else { | |
317 | 319 | let H = U(E) | |
318 | 320 | let aH = C(H, E, ah, ai) | |
319 | 321 | let aI = b((aH + "_OPEN")) | |
320 | 322 | if ((size(aI) == 0)) | |
321 | 323 | then throw("Sale Not found!") | |
322 | 324 | else { | |
323 | 325 | let aL = split(aI, "_") | |
324 | 326 | if ((parseInt(aL[1]) == 0)) | |
325 | 327 | then throw("Offer only") | |
326 | 328 | else { | |
327 | 329 | let aM = L(K) | |
328 | 330 | let M = aM._1 | |
329 | 331 | let N = aM._2 | |
330 | 332 | let aN = if (isDefined(M.assetId)) | |
331 | 333 | then toBase58String(value(M.assetId)) | |
332 | 334 | else "" | |
333 | 335 | if (if ((aL[1] != toString(N))) | |
334 | 336 | then true | |
335 | 337 | else (aL[2] != aN)) | |
336 | 338 | then throw("Payment infos don't match.") | |
337 | 339 | else { | |
338 | 340 | let aO = aj(N, M.assetId, E, ai, H, D) | |
339 | 341 | let an = aO._1 | |
340 | 342 | let aP = aO._2 | |
341 | 343 | let ap = aO._3 | |
342 | 344 | let aq = aO._4 | |
343 | 345 | ([DeleteEntry((aH + "_OPEN")), DeleteEntry(((("sale2nd_status_" + H) + "_") + E)), DeleteEntry(("current_owner_on_dapp_" + E)), StringEntry((((aH + "_") + B) + "_CLOSED"), ((((((aI + "_CLOSED_") + toString(at)) + "_") + B) + "_") + D)), aw(), aP, ap, aq] ++ an) | |
344 | 346 | } | |
345 | 347 | } | |
346 | 348 | } | |
347 | 349 | } | |
348 | 350 | } | |
349 | 351 | ||
350 | 352 | ||
351 | 353 | ||
352 | 354 | @Callable(K) | |
353 | 355 | func setOffer (E) = { | |
354 | 356 | let aQ = ar(K, E) | |
355 | 357 | let B = aQ._1 | |
356 | 358 | let G = aQ._2 | |
357 | 359 | let at = aQ._3 | |
358 | 360 | let av = aQ._4 | |
359 | 361 | let ah = aQ._5 | |
360 | 362 | let ai = aQ._6 | |
361 | 363 | if (!(av)) | |
362 | 364 | then throw("Not a valid ticket") | |
363 | 365 | else { | |
364 | 366 | let aR = L(K) | |
365 | 367 | let M = aR._1 | |
366 | 368 | let N = aR._2 | |
367 | 369 | let S = toBase58String(value(M.assetId)) | |
368 | 370 | if (!(R(S))) | |
369 | 371 | then throw("asset not accepted") | |
370 | 372 | else if ((N == 0)) | |
371 | 373 | then throw("Offer of 0 not allowed") | |
372 | 374 | else { | |
373 | 375 | let H = U(E) | |
374 | 376 | [StringEntry((F(G, E, H, B) + "_OPEN"), ((((((((((((((toString(at) + "_") + toString(N)) + "_") + S) + "_") + E) + "_") + ah) + "_") + ai) + "_") + G) + "_") + B))] | |
375 | 377 | } | |
376 | 378 | } | |
377 | 379 | } | |
378 | 380 | ||
379 | 381 | ||
380 | 382 | ||
381 | 383 | @Callable(K) | |
382 | 384 | func acceptOffer (E,I,G) = { | |
383 | 385 | let aS = ar(K, E) | |
384 | 386 | let B = aS._1 | |
385 | 387 | let D = aS._2 | |
386 | 388 | let at = aS._3 | |
387 | 389 | let av = aS._4 | |
388 | 390 | let ah = aS._5 | |
389 | 391 | let ai = aS._6 | |
390 | 392 | if (!(av)) | |
391 | 393 | then throw("Not a valid ticket") | |
392 | 394 | else { | |
393 | 395 | let H = U(E) | |
394 | 396 | if ((D != H)) | |
395 | 397 | then throw("Only sale owner can accept offer") | |
396 | 398 | else { | |
397 | 399 | let aT = F(G, E, H, I) | |
398 | 400 | let aU = W(aT) | |
399 | 401 | let Y = aU._1 | |
400 | 402 | let S = aU._2 | |
401 | 403 | let X = aU._3 | |
402 | 404 | let aH = C(H, E, ah, ai) | |
403 | 405 | let aI = b((aH + "_OPEN")) | |
404 | 406 | if ((size(aI) == 0)) | |
405 | 407 | then throw("Sale Not found!") | |
406 | 408 | else { | |
407 | 409 | let N = value(parseInt(Y[1])) | |
408 | 410 | let aV = aj(N, S, E, ai, H, Y[6]) | |
409 | 411 | let an = aV._1 | |
410 | 412 | let aP = aV._2 | |
411 | 413 | let ap = aV._3 | |
412 | 414 | let aq = aV._4 | |
413 | 415 | let aW = toBase58String(value(S)) | |
414 | 416 | ([DeleteEntry((aH + "_OPEN")), DeleteEntry((aT + "_OPEN")), DeleteEntry(((("sale2nd_status_" + H) + "_") + E)), DeleteEntry(("current_owner_on_dapp_" + E)), StringEntry((aT + "_CLOSED"), ((((X + "_CLOSED_") + toString(at)) + "_") + B)), StringEntry((((aH + "_") + B) + "_CLOSED"), ((((((((((aI + "_CLOSED-OFFER_") + toString(at)) + "_") + B) + "_") + G) + "_") + toString(N)) + "_") + aW)), aw(), aP, ap, aq] ++ an) | |
415 | 417 | } | |
416 | 418 | } | |
417 | 419 | } | |
418 | 420 | } | |
419 | 421 | ||
420 | 422 | ||
421 | 423 | ||
422 | 424 | @Callable(K) | |
423 | 425 | func cancelOffer (E,I,G,H) = { | |
424 | 426 | let aX = J(K) | |
425 | 427 | let B = aX._1 | |
426 | 428 | let D = aX._2 | |
427 | 429 | let at = aX._3 | |
428 | 430 | if (if ((D != G)) | |
429 | 431 | then (D != H) | |
430 | 432 | else false) | |
431 | 433 | then throw("You cannot cancel this offer.") | |
432 | 434 | else { | |
433 | 435 | let aT = F(G, E, H, I) | |
434 | 436 | let aY = W(aT) | |
435 | 437 | let Y = aY._1 | |
436 | 438 | let S = aY._2 | |
437 | 439 | let X = aY._3 | |
438 | 440 | [DeleteEntry((aT + "_OPEN")), StringEntry((aT + "_CANCELLED"), ((((X + "_CANCELLED_") + toString(at)) + "_") + B)), ScriptTransfer(Address(fromBase58String(D)), parseIntValue(Y[1]), S)] | |
439 | 441 | } | |
440 | 442 | } | |
441 | 443 | ||
442 | 444 |
github/deemru/w8io/169f3d6 114.01 ms ◑