tx · QAUsTuUi5YBhUwcK7NZCjVGxvaVBAy16uFne2hzxA5P 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.01000000 Waves 2022.05.16 10:44 [2053943] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "QAUsTuUi5YBhUwcK7NZCjVGxvaVBAy16uFne2hzxA5P", "fee": 1000000, "feeAssetId": null, "timestamp": 1652687095926, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "4sULCha9s2H9JDnRrPBig1FqnGJJbFqDWFmh1g3KgCsCGm8u5LFxrwNo7bdngGGV6W3tRCEvLjNfSdU6BMpMxdpT" ], "script": "base64:AAIFAAAAAAAAADoIAhIFCgMICAgSBQoDCAgIEgQKAggIEgQKAggIEgMKAQgSBAoCCAgSBAoCCAgSBQoDCAgBEgQKAggBAAAAHQAAAAAKc2hpbnl3Z2dpZAEAAAAgiWnPAv+2urnUcZbXebiZdiawdNB3efRzbobw9HOfBiYAAAAAD3RyZWFzdXJ5QWRkcmVzcwEAAAAaAVRl+PAWCwTAWUJwGp5IjJf/ftwcYvLdu/0AAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAAAAAASbWFya2V0cGxhY2VBZGRyZXNzAQAAABoBVB0huZPx/BjDpxtJcRZDllF066xULiW87wAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYVFZazM4QmZXU3paY2dBWVR5clE5AAAAABZkYWlseUdhbWVSZXdhcmRzV2FsbGV0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXVTclhUVGl3bzliZG9ENkZlYUJwTVVZTWlVNXNhRHYyVQAAAA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xkT3duZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAB2Fzc2V0SWQFAAAACWFzc2V0U2hlZwUAAAADbmlsBQAAAAhvbGRPd25lcgAAAAFpAQAAABpUcmFuc2ZlckFzc2V0VG9NYXJrZXRwbGFjZQAAAAIAAAAHYXNzZXRJZAAAAAlzZWxscHJpY2UDCQEAAAABIQAAAAEJAQAAAA9jaGVja0Fzc2V0T3duZXIAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAHYXNzZXRJZAkAAAIAAAABAgAAACNZb3UgYXJlIG5vdCB0aGUgb3duZXIgb2YgdGhpcyBhc3NldAQAAAAJYXNzZXRTaGVnCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEFAAAAB2Fzc2V0SWQEAAAAAnRyCQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAASbWFya2V0cGxhY2VBZGRyZXNzAgAAAAlwdXRPblNhbGUJAARMAAAAAgUAAAAHYXNzZXRJZAkABEwAAAACBQAAAAlhc3NldFNoZWcJAARMAAAAAgUAAAAJc2VsbHByaWNlBQAAAANuaWwFAAAAA25pbAQAAAAHJG1hdGNoMAUAAAACdHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAWZ2V0QXNzZXRPd25lcktleVN0cmluZwAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAKUVycm9yIHB1dHRpbmcgdGhlIGl0ZW0gb24gdGhlIG1hcmtldHBsYWNlAAAAAE7inos=", "height": 2053943, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 37Q5ohmsCNj5zC74uLjtP2xJMoKVkrazLY8zBidUcmoz Next: D7j759sdyeFc1fHRd4DbhL386hUQ3xwpnLLrp1v5sdbq Diff:
Old | New | Differences | |
---|---|---|---|
299 | 299 | else { | |
300 | 300 | let aa = t(z(A)) | |
301 | 301 | let Q = u(A) | |
302 | - | let R = invoke(Address(b), " | |
302 | + | let R = invoke(Address(b), "adminTransfer", [addressFromStringValue(ay), Q], nil) | |
303 | 303 | if ((R == R)) | |
304 | 304 | then { | |
305 | 305 | let S = s((aa + "_Power")) | |
313 | 313 | let ad = q | |
314 | 314 | [DeleteEntry(A)] | |
315 | 315 | } | |
316 | - | else throw(" | |
316 | + | else throw("Error setting user power") | |
317 | 317 | } | |
318 | 318 | else throw("Strict value is not equal to itself.") | |
319 | 319 | } | |
339 | 339 | if ($isInstanceOf(q, "Int")) | |
340 | 340 | then { | |
341 | 341 | let ad = q | |
342 | - | [DeleteEntry(A), ScriptTransfer(ae.caller, Q, a)] | |
342 | + | let az = invoke(Address(b), "adminTransfer", [toString(ae.caller), Q], nil) | |
343 | + | let aq = az | |
344 | + | if ($isInstanceOf(aq, "Int")) | |
345 | + | then { | |
346 | + | let at = aq | |
347 | + | [DeleteEntry(A)] | |
348 | + | } | |
349 | + | else throw("Error transferring coins") | |
343 | 350 | } | |
344 | - | else throw(" | |
351 | + | else throw("Error setting user power") | |
345 | 352 | } | |
346 | 353 | else throw("Strict value is not equal to itself.") | |
347 | 354 | } | |
350 | 357 | ||
351 | 358 | ||
352 | 359 | @Callable(ae) | |
353 | - | func setNationOwner ( | |
354 | - | then $Tuple2([StringEntry(( | |
360 | + | func setNationOwner (aA,Z) = if (G(ae.caller)) | |
361 | + | then $Tuple2([StringEntry((aA + "_Owner"), Z)], true) | |
355 | 362 | else { | |
356 | - | let | |
357 | - | if (( | |
363 | + | let aB = t((aA + "_Owner")) | |
364 | + | if ((aB != toString(ae.caller))) | |
358 | 365 | then throw("You are not the nation owner") | |
359 | - | else [StringEntry(( | |
366 | + | else [StringEntry((aA + "_Owner"), Z)] | |
360 | 367 | } | |
361 | 368 | ||
362 | 369 | ||
364 | 371 | @Callable(ae) | |
365 | 372 | func buyNationItem (A,af) = { | |
366 | 373 | let X = split(A, "_")[0] | |
367 | - | let | |
368 | - | let | |
369 | - | if (( | |
374 | + | let aC = s(toString(ae.caller)) | |
375 | + | let aD = s(af) | |
376 | + | if ((aC != aD)) | |
370 | 377 | then throw("you can buy assets only from your nation") | |
371 | 378 | else if (!(U(af, A))) | |
372 | 379 | then throw("The asset does not belong to the nation") | |
374 | 381 | then throw("this asset cannot be sold by the nation") | |
375 | 382 | else { | |
376 | 383 | let ah = value(indexOf(j, X)) | |
377 | - | let | |
384 | + | let aE = l[ah] | |
378 | 385 | let av = value(ae.payments[0].amount) | |
379 | - | if (( | |
386 | + | if ((aE > av)) | |
380 | 387 | then throw(("You provided less $heg than the needed cost for buying this " + X)) | |
381 | 388 | else if ((ae.payments[0].assetId != a)) | |
382 | 389 | then throw("Only $HEG payments allowed") | |
383 | 390 | else { | |
384 | - | let | |
385 | - | let q = | |
391 | + | let aF = invoke(Address(b), "increaseNationWallet", [af, av], nil) | |
392 | + | let q = aF | |
386 | 393 | if ($isInstanceOf(q, "Int")) | |
387 | 394 | then { | |
388 | 395 | let r = q | |
396 | 403 | ||
397 | 404 | ||
398 | 405 | @Callable(ae) | |
399 | - | func AddAssetFromMarkeplace (A,aa, | |
406 | + | func AddAssetFromMarkeplace (A,aa,aG) = if (!(G(ae.caller))) | |
400 | 407 | then throw("You are not allowed to perform this operation") | |
401 | - | else $Tuple2([StringEntry(z(A), aa), IntegerEntry(A, | |
408 | + | else $Tuple2([StringEntry(z(A), aa), IntegerEntry(A, aG)], aa) | |
402 | 409 | ||
403 | 410 | ||
404 | 411 | ||
405 | 412 | @Callable(ae) | |
406 | - | func TransferAssetToMarketplace (A, | |
413 | + | func TransferAssetToMarketplace (A,aH) = if (!(U(toString(ae.caller), A))) | |
407 | 414 | then throw("You are not the owner of this asset") | |
408 | 415 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let q = | |
416 | + | let aG = u(A) | |
417 | + | let az = invoke(Address(d), "putOnSale", [A, aG, aH], nil) | |
418 | + | let q = az | |
412 | 419 | if ($isInstanceOf(q, "Int")) | |
413 | 420 | then { | |
414 | 421 | let at = q |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let b = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let c = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
9 | 9 | ||
10 | 10 | let d = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | 12 | let e = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
13 | 13 | ||
14 | 14 | let f = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
15 | 15 | ||
16 | 16 | let g = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
17 | 17 | ||
18 | 18 | let h = "BUILD_STARTED" | |
19 | 19 | ||
20 | 20 | let i = "BUILD_FINISHED" | |
21 | 21 | ||
22 | 22 | let j = ["Nation", "City", "Barrack", "Barn", "Warrior", "Settler", "Explorer"] | |
23 | 23 | ||
24 | 24 | let k = [0, 0, 5000000000, 5000000000, 500000000, 10000000000, 100000000] | |
25 | 25 | ||
26 | 26 | let l = [0, 0, 0, 0, 0, 10000000000, 100000000] | |
27 | 27 | ||
28 | 28 | let m = [0, 4, 4, 4, 2, 2, 2] | |
29 | 29 | ||
30 | 30 | let n = [0, 1000, 50, 50, 1, 1, 1] | |
31 | 31 | ||
32 | 32 | func o (p) = { | |
33 | 33 | let q = getInteger(Address(b), p) | |
34 | 34 | if ($isInstanceOf(q, "Int")) | |
35 | 35 | then { | |
36 | 36 | let r = q | |
37 | 37 | r | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s (p) = { | |
44 | 44 | let q = getInteger(Address(c), p) | |
45 | 45 | if ($isInstanceOf(q, "Int")) | |
46 | 46 | then { | |
47 | 47 | let r = q | |
48 | 48 | r | |
49 | 49 | } | |
50 | 50 | else 0 | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func t (p) = { | |
55 | 55 | let q = getString(this, p) | |
56 | 56 | if ($isInstanceOf(q, "String")) | |
57 | 57 | then { | |
58 | 58 | let r = q | |
59 | 59 | r | |
60 | 60 | } | |
61 | 61 | else "" | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func u (p) = { | |
66 | 66 | let q = getInteger(this, p) | |
67 | 67 | if ($isInstanceOf(q, "Int")) | |
68 | 68 | then { | |
69 | 69 | let r = q | |
70 | 70 | r | |
71 | 71 | } | |
72 | 72 | else 0 | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func v (w,x) = ((x + "_") + toBase58String(w)) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func y (w,x) = (v(w, x) + "_Owner") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func z (A) = (A + "_Owner") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func B (C,w,x) = (((C + "_") + v(w, x)) + "_fh") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func D (C,w,x) = (((C + "_") + v(w, x)) + "_status") | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func E (F) = (F + "_Treasury") | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func G (H) = if (if (if (if ((H == e)) | |
95 | 95 | then true | |
96 | 96 | else (H == this)) | |
97 | 97 | then true | |
98 | 98 | else (H.bytes == c)) | |
99 | 99 | then true | |
100 | 100 | else (H.bytes == b)) | |
101 | 101 | then true | |
102 | 102 | else (H.bytes == d) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func I (H,J,K,L,M) = { | |
106 | 106 | let N = getIntegerValue(this, M) | |
107 | 107 | if ((N > height)) | |
108 | 108 | then throw((((("Building is not finished yet " + toString((N - height))) + " blocks remaining, it will take around ") + toString((N - height))) + " minutes")) | |
109 | 109 | else { | |
110 | 110 | let O = value(indexOf(j, J)) | |
111 | 111 | let P = n[O] | |
112 | 112 | let Q = ((k[O] * 20) / 100) | |
113 | 113 | let R = invoke(Address(b), "Pay", [H, Q], nil) | |
114 | 114 | if ((R == R)) | |
115 | 115 | then if ((P > 0)) | |
116 | 116 | then { | |
117 | 117 | let S = s((H + "_Power")) | |
118 | 118 | let T = invoke(Address(c), "setUserPower", [H, (S + P)], nil) | |
119 | 119 | if ((T == T)) | |
120 | 120 | then [IntegerEntry(K, Q), DeleteEntry(L), DeleteEntry(M)] | |
121 | 121 | else throw("Strict value is not equal to itself.") | |
122 | 122 | } | |
123 | 123 | else [IntegerEntry(K, Q), DeleteEntry(L), DeleteEntry(M)] | |
124 | 124 | else throw("Strict value is not equal to itself.") | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func U (H,K) = { | |
130 | 130 | let V = t((K + "_Owner")) | |
131 | 131 | (V == H) | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func W (X) = if ((X == "Settler")) | |
136 | 136 | then true | |
137 | 137 | else (X == "Explorer") | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func Y (A,Z) = { | |
141 | 141 | let X = split(A, "_")[0] | |
142 | 142 | let aa = t(z(A)) | |
143 | 143 | let P = n[value(indexOf(j, X))] | |
144 | 144 | if ((P > 0)) | |
145 | 145 | then { | |
146 | 146 | let S = s((aa + "_Power")) | |
147 | 147 | let T = invoke(Address(c), "setUserPower", [aa, (S - P)], nil) | |
148 | 148 | if ((T == T)) | |
149 | 149 | then if ((T != (S - P))) | |
150 | 150 | then throw("Incorrect invoke result") | |
151 | 151 | else { | |
152 | 152 | let ab = s((Z + "_Power")) | |
153 | 153 | let ac = invoke(Address(c), "setUserPower", [Z, (ab + P)], nil) | |
154 | 154 | if ((ac == ac)) | |
155 | 155 | then { | |
156 | 156 | let q = ac | |
157 | 157 | if ($isInstanceOf(q, "Int")) | |
158 | 158 | then { | |
159 | 159 | let ad = q | |
160 | 160 | [StringEntry(z(A), Z)] | |
161 | 161 | } | |
162 | 162 | else throw("Incorrect invoke result") | |
163 | 163 | } | |
164 | 164 | else throw("Strict value is not equal to itself.") | |
165 | 165 | } | |
166 | 166 | else throw("Strict value is not equal to itself.") | |
167 | 167 | } | |
168 | 168 | else [StringEntry(z(A), Z)] | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(ae) | |
173 | 173 | func StartBuild (X,af,ag) = if (!(containsElement(j, X))) | |
174 | 174 | then throw("This asset is not managed by the system") | |
175 | 175 | else { | |
176 | 176 | let ah = value(indexOf(j, X)) | |
177 | 177 | let ai = m[ah] | |
178 | 178 | let aj = k[ah] | |
179 | 179 | let ak = ((aj * 5) / 100) | |
180 | 180 | let al = ((aj * 10) / 100) | |
181 | 181 | let am = ((aj * 65) / 100) | |
182 | 182 | let an = (((aj - ak) - al) - am) | |
183 | 183 | if (W(X)) | |
184 | 184 | then if (if (!(U(toString(ae.caller), af))) | |
185 | 185 | then !(G(ae.caller)) | |
186 | 186 | else false) | |
187 | 187 | then throw("You are not authorized to perform this operation") | |
188 | 188 | else { | |
189 | 189 | let ao = o(E(af)) | |
190 | 190 | if ((aj > ao)) | |
191 | 191 | then throw("The nation hasn't enough funds") | |
192 | 192 | else { | |
193 | 193 | let ap = invoke(Address(b), "decreaseNationWallet", [af, aj], nil) | |
194 | 194 | let q = ap | |
195 | 195 | if ($isInstanceOf(q, "Int")) | |
196 | 196 | then { | |
197 | 197 | let ad = q | |
198 | 198 | let T = invoke(Address(b), "arbitraryAddCoins", [af, an], nil) | |
199 | 199 | let aq = T | |
200 | 200 | if ($isInstanceOf(aq, "Int")) | |
201 | 201 | then { | |
202 | 202 | let r = aq | |
203 | 203 | let ar = invoke(Address(b), "distributeNationPayRewards", [aj], nil) | |
204 | 204 | let as = ar | |
205 | 205 | if ($isInstanceOf(as, "Int")) | |
206 | 206 | then { | |
207 | 207 | let at = as | |
208 | 208 | [StringEntry(D(toString(ae.originCaller), ae.transactionId, X), h), StringEntry(y(ae.transactionId, X), af), IntegerEntry(B(toString(ae.originCaller), ae.transactionId, X), (height + ai))] | |
209 | 209 | } | |
210 | 210 | else throw("Error Distributing asset rewards") | |
211 | 211 | } | |
212 | 212 | else throw("Error Depositing nation funds") | |
213 | 213 | } | |
214 | 214 | else throw("Error Depositing nation funds") | |
215 | 215 | } | |
216 | 216 | } | |
217 | 217 | else if ((X == "City")) | |
218 | 218 | then if (!(U(toString(ae.caller), ag))) | |
219 | 219 | then throw("You don't own the settler or has been destroyed") | |
220 | 220 | else { | |
221 | 221 | let au = u(ag) | |
222 | 222 | let T = invoke(Address(b), "NoPaymentDeposit", [toString(ae.caller), an], nil) | |
223 | 223 | let q = T | |
224 | 224 | if ($isInstanceOf(q, "Int")) | |
225 | 225 | then { | |
226 | 226 | let ad = q | |
227 | 227 | let ar = invoke(Address(b), "distributeNationPayRewards", [aj], nil) | |
228 | 228 | let aq = ar | |
229 | 229 | if ($isInstanceOf(aq, "Int")) | |
230 | 230 | then { | |
231 | 231 | let at = aq | |
232 | 232 | [DeleteEntry(ag), StringEntry(D(toString(ae.originCaller), ae.transactionId, X), h), StringEntry(y(ae.transactionId, X), af), IntegerEntry(B(toString(ae.originCaller), ae.transactionId, X), (height + ai))] | |
233 | 233 | } | |
234 | 234 | else throw("Error Distributing asset rewards") | |
235 | 235 | } | |
236 | 236 | else throw("Error adding deposit") | |
237 | 237 | } | |
238 | 238 | else { | |
239 | 239 | let av = value(ae.payments[0].amount) | |
240 | 240 | if ((aj > av)) | |
241 | 241 | then throw(("You provided less $heg than the needed cost for building this " + X)) | |
242 | 242 | else if ((ae.payments[0].assetId != a)) | |
243 | 243 | then throw("Only $HEG payments allowed") | |
244 | 244 | else { | |
245 | 245 | let T = invoke(Address(b), "Deposit", nil, [AttachedPayment(a, an)]) | |
246 | 246 | let q = T | |
247 | 247 | if ($isInstanceOf(q, "Int")) | |
248 | 248 | then { | |
249 | 249 | let ad = q | |
250 | 250 | [StringEntry(D(toString(ae.originCaller), ae.transactionId, X), h), StringEntry(y(ae.transactionId, X), toString(ae.originCaller)), IntegerEntry(B(toString(ae.originCaller), ae.transactionId, X), (height + ai)), ScriptTransfer(e, ak, a), ScriptTransfer(f, al, a), ScriptTransfer(g, am, a)] | |
251 | 251 | } | |
252 | 252 | else throw("Incorrect invoke result") | |
253 | 253 | } | |
254 | 254 | } | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | ||
259 | 259 | @Callable(ae) | |
260 | 260 | func FinishBuild (aw,J,af) = { | |
261 | 261 | let w = fromBase58String(aw) | |
262 | 262 | let L = D(toString(ae.caller), w, J) | |
263 | 263 | let M = B(toString(ae.caller), w, J) | |
264 | 264 | let K = v(w, J) | |
265 | 265 | let V = t(y(w, J)) | |
266 | 266 | if (W(J)) | |
267 | 267 | then if (if (!(U(toString(ae.caller), af))) | |
268 | 268 | then !(G(ae.caller)) | |
269 | 269 | else false) | |
270 | 270 | then throw("You are not authorized to perform this operation") | |
271 | 271 | else I(af, J, K, L, M) | |
272 | 272 | else if ((V != toString(ae.caller))) | |
273 | 273 | then throw(("You cannot claim other's players " + J)) | |
274 | 274 | else { | |
275 | 275 | let ax = t(L) | |
276 | 276 | if ((ax == "")) | |
277 | 277 | then throw("No pending operations for this asset") | |
278 | 278 | else I(toString(ae.caller), J, K, L, M) | |
279 | 279 | } | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | ||
284 | 284 | @Callable(ae) | |
285 | 285 | func transferOwnership (A,Z) = { | |
286 | 286 | let X = split(A, "_")[0] | |
287 | 287 | if (!(G(ae.caller))) | |
288 | 288 | then throw("Only the admin can perform this operation") | |
289 | 289 | else $Tuple2(Y(A, Z), Z) | |
290 | 290 | } | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | ||
294 | 294 | @Callable(ae) | |
295 | 295 | func destroyAssetAndTransfer (A,ay) = { | |
296 | 296 | let X = split(A, "_")[0] | |
297 | 297 | if (!(G(ae.caller))) | |
298 | 298 | then throw("Only the admin can perform this operation") | |
299 | 299 | else { | |
300 | 300 | let aa = t(z(A)) | |
301 | 301 | let Q = u(A) | |
302 | - | let R = invoke(Address(b), " | |
302 | + | let R = invoke(Address(b), "adminTransfer", [addressFromStringValue(ay), Q], nil) | |
303 | 303 | if ((R == R)) | |
304 | 304 | then { | |
305 | 305 | let S = s((aa + "_Power")) | |
306 | 306 | let P = n[value(indexOf(j, X))] | |
307 | 307 | let T = invoke(Address(c), "setUserPower", [toString(ae.caller), (S - P)], nil) | |
308 | 308 | if ((T == T)) | |
309 | 309 | then { | |
310 | 310 | let q = T | |
311 | 311 | if ($isInstanceOf(q, "Int")) | |
312 | 312 | then { | |
313 | 313 | let ad = q | |
314 | 314 | [DeleteEntry(A)] | |
315 | 315 | } | |
316 | - | else throw(" | |
316 | + | else throw("Error setting user power") | |
317 | 317 | } | |
318 | 318 | else throw("Strict value is not equal to itself.") | |
319 | 319 | } | |
320 | 320 | else throw("Strict value is not equal to itself.") | |
321 | 321 | } | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(ae) | |
327 | 327 | func destroyAssetFromUser (A) = { | |
328 | 328 | let X = split(A, "_")[0] | |
329 | 329 | if (!(U(toString(ae.caller), A))) | |
330 | 330 | then throw("You don't own this asset") | |
331 | 331 | else { | |
332 | 332 | let Q = u(A) | |
333 | 333 | let S = s((toString(ae.caller) + "_Power")) | |
334 | 334 | let P = n[value(indexOf(j, X))] | |
335 | 335 | let T = invoke(Address(c), "setUserPower", [toString(ae.caller), (S - P)], nil) | |
336 | 336 | if ((T == T)) | |
337 | 337 | then { | |
338 | 338 | let q = T | |
339 | 339 | if ($isInstanceOf(q, "Int")) | |
340 | 340 | then { | |
341 | 341 | let ad = q | |
342 | - | [DeleteEntry(A), ScriptTransfer(ae.caller, Q, a)] | |
342 | + | let az = invoke(Address(b), "adminTransfer", [toString(ae.caller), Q], nil) | |
343 | + | let aq = az | |
344 | + | if ($isInstanceOf(aq, "Int")) | |
345 | + | then { | |
346 | + | let at = aq | |
347 | + | [DeleteEntry(A)] | |
348 | + | } | |
349 | + | else throw("Error transferring coins") | |
343 | 350 | } | |
344 | - | else throw(" | |
351 | + | else throw("Error setting user power") | |
345 | 352 | } | |
346 | 353 | else throw("Strict value is not equal to itself.") | |
347 | 354 | } | |
348 | 355 | } | |
349 | 356 | ||
350 | 357 | ||
351 | 358 | ||
352 | 359 | @Callable(ae) | |
353 | - | func setNationOwner ( | |
354 | - | then $Tuple2([StringEntry(( | |
360 | + | func setNationOwner (aA,Z) = if (G(ae.caller)) | |
361 | + | then $Tuple2([StringEntry((aA + "_Owner"), Z)], true) | |
355 | 362 | else { | |
356 | - | let | |
357 | - | if (( | |
363 | + | let aB = t((aA + "_Owner")) | |
364 | + | if ((aB != toString(ae.caller))) | |
358 | 365 | then throw("You are not the nation owner") | |
359 | - | else [StringEntry(( | |
366 | + | else [StringEntry((aA + "_Owner"), Z)] | |
360 | 367 | } | |
361 | 368 | ||
362 | 369 | ||
363 | 370 | ||
364 | 371 | @Callable(ae) | |
365 | 372 | func buyNationItem (A,af) = { | |
366 | 373 | let X = split(A, "_")[0] | |
367 | - | let | |
368 | - | let | |
369 | - | if (( | |
374 | + | let aC = s(toString(ae.caller)) | |
375 | + | let aD = s(af) | |
376 | + | if ((aC != aD)) | |
370 | 377 | then throw("you can buy assets only from your nation") | |
371 | 378 | else if (!(U(af, A))) | |
372 | 379 | then throw("The asset does not belong to the nation") | |
373 | 380 | else if (!(W(X))) | |
374 | 381 | then throw("this asset cannot be sold by the nation") | |
375 | 382 | else { | |
376 | 383 | let ah = value(indexOf(j, X)) | |
377 | - | let | |
384 | + | let aE = l[ah] | |
378 | 385 | let av = value(ae.payments[0].amount) | |
379 | - | if (( | |
386 | + | if ((aE > av)) | |
380 | 387 | then throw(("You provided less $heg than the needed cost for buying this " + X)) | |
381 | 388 | else if ((ae.payments[0].assetId != a)) | |
382 | 389 | then throw("Only $HEG payments allowed") | |
383 | 390 | else { | |
384 | - | let | |
385 | - | let q = | |
391 | + | let aF = invoke(Address(b), "increaseNationWallet", [af, av], nil) | |
392 | + | let q = aF | |
386 | 393 | if ($isInstanceOf(q, "Int")) | |
387 | 394 | then { | |
388 | 395 | let r = q | |
389 | 396 | (Y(A, toString(ae.caller)) :+ ScriptTransfer(Address(b), av, a)) | |
390 | 397 | } | |
391 | 398 | else throw("Error transferring SHEG to nations wallet") | |
392 | 399 | } | |
393 | 400 | } | |
394 | 401 | } | |
395 | 402 | ||
396 | 403 | ||
397 | 404 | ||
398 | 405 | @Callable(ae) | |
399 | - | func AddAssetFromMarkeplace (A,aa, | |
406 | + | func AddAssetFromMarkeplace (A,aa,aG) = if (!(G(ae.caller))) | |
400 | 407 | then throw("You are not allowed to perform this operation") | |
401 | - | else $Tuple2([StringEntry(z(A), aa), IntegerEntry(A, | |
408 | + | else $Tuple2([StringEntry(z(A), aa), IntegerEntry(A, aG)], aa) | |
402 | 409 | ||
403 | 410 | ||
404 | 411 | ||
405 | 412 | @Callable(ae) | |
406 | - | func TransferAssetToMarketplace (A, | |
413 | + | func TransferAssetToMarketplace (A,aH) = if (!(U(toString(ae.caller), A))) | |
407 | 414 | then throw("You are not the owner of this asset") | |
408 | 415 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let q = | |
416 | + | let aG = u(A) | |
417 | + | let az = invoke(Address(d), "putOnSale", [A, aG, aH], nil) | |
418 | + | let q = az | |
412 | 419 | if ($isInstanceOf(q, "Int")) | |
413 | 420 | then { | |
414 | 421 | let at = q | |
415 | 422 | [DeleteEntry(z(A)), DeleteEntry(A)] | |
416 | 423 | } | |
417 | 424 | else throw("Error putting the item on the marketplace") | |
418 | 425 | } | |
419 | 426 | ||
420 | 427 |
github/deemru/w8io/169f3d6 86.63 ms ◑