tx · D9hSjsYxjrYbE63CLrsb5BK6bRW4tbiZvxLaMuY1NhAU 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.03200000 Waves 2022.07.07 13:00 [2129125] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "D9hSjsYxjrYbE63CLrsb5BK6bRW4tbiZvxLaMuY1NhAU", "fee": 3200000, "feeAssetId": null, "timestamp": 1657188015115, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "3gtRhKSXwWPoK9GC2cECeDeaF1eF7exDzwo2twgB4nw7YquqX1DMxceTAQbawiJe6PryUWfZNCEmLhSUwYYYT6rW" ], "script": "base64:AAIFAAAAAAAAAEoIAhIGCgQIAQgIEgYKBAgIAQgSBQoDCAgBEgUKAwgBCBIECgIIARIECgIICBIECgIICBIFCgMICAESBAoCCAESAwoBCBIECgIICAAAACkAAAAACnNoaW55d2dnaWQBAAAAIIlpzwL/trq51HGW13m4mXYmsHTQd3n0c26G8PRznwYmAAAAAA90cmVhc3VyeUFkZHJlc3MBAAAAGgFUZfjwFgsEwFlCcBqeSIyX/37cHGLy3bv9AAAAAA1hc3NldHNBZGRyZXNzAQAAABoBVMvmtMF31x0nLWsWEEvKkUjrKYsKGpWnmgAAAAASbWFya2V0cGxhY2VBZGRyZXNzAQAAABoBVB0huZPx/BjDpxtJcRZDllF066xULiW87wAAAAAUY29uZmlndXJhdGlvbkFkZHJlc3MBAAAAGgFU2yDLl5FWP0IObKdlNYKLYb+1dHI4tNAuAAAAAA5uYXRpb25zQWRkcmVzcwEAAAAaAVRNheje9PhEa1kQO3Bfw7e5ZQ5R9URGbaAAAAAAC2FkbWluV2FsbGV0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXBOdGlQU1JTcTZObmFRW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gb2YgdGhpcyBhc3NldAQAAAAJYXNzZXRTaGVnCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEFAAAAB2Fzc2V0SWQEAAAAAnRyCQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAASbWFya2V0cGxhY2VBZGRyZXNzAgAAAAlwdXRPblNhbGUJAARMAAAAAgUAAAAHYXNzZXRJZAkABEwAAAACBQAAAAlhc3NldFNoZWcJAARMAAAAAgUAAAAJc2VsbHByaWNlBQAAAANuaWwFAAAAA25pbAQAAAAHJG1hdGNoMAUAAAACdHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAWZ2V0QXNzZXRPd25lcktleVN0cmluZwAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAKUVycm9yIHB1dHRpbmcgdGhlIGl0ZW0gb24gdGhlIG1hcmtldHBsYWNlAAAAAWkBAAAABkRlbEtleQAAAAEAAAADa2V5AwkBAAAAASEAAAABCQEAAAAKY2hlY2tBZG1pbgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABaQEAAAAGVXBkS2V5AAAAAgAAAANrZXkAAAADdmFsAwkBAAAAASEAAAABCQEAAAAKY2hlY2tBZG1pbgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAADa2V5BQAAAAN2YWwFAAAAA25pbAAAAACKl8lW", "height": 2129125, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GRDVgQ8tYUURwJgCs1YvNujrPQLFoB6ANhQvvSZPYPeJ Next: Hdr93jgyU83ubtkarjBnNLPPg835LkU1CY1m58bdD9B4 Diff:
Old | New | Differences | |
---|---|---|---|
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | - | func internalTrasnferOwnership (assetId,newOwner) = { | |
258 | + | func internalTrasnferOwnership (assetId,newOwner,qty) = { | |
259 | 259 | let chunks = getAssetTypeLevel(assetId) | |
260 | 260 | let strAssetType = chunks._1 | |
261 | 261 | let level = chunks._2 | |
262 | 262 | let k = getALKey(strAssetType, level) | |
263 | 263 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
264 | - | let assetPower = confTryGetInteger((k + "_Power")) | |
265 | - | if ((assetPower > 0)) | |
264 | + | if (confTryGetBoolean((k + "_Aggregated"))) | |
266 | 265 | then { | |
267 | - | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
268 | - | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
269 | - | if ((pw == pw)) | |
270 | - | then if ((pw != (currentPower - assetPower))) | |
271 | - | then throw("Incorrect invoke result") | |
272 | - | else { | |
273 | - | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
274 | - | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
275 | - | if ((pw2 == pw2)) | |
276 | - | then match pw2 { | |
277 | - | case r: Int => | |
278 | - | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
279 | - | case _ => | |
280 | - | throw("Incorrect invoke result") | |
281 | - | } | |
282 | - | else throw("Strict value is not equal to itself.") | |
283 | - | } | |
266 | + | let assetPower = confTryGetInteger((k + "_Power")) | |
267 | + | let qtyPower = (assetPower * qty) | |
268 | + | let aggrAssetkey = ((k + "_") + oldOwner) | |
269 | + | let oldPower = nationsTryGetInteger((oldOwner + "_Power")) | |
270 | + | let oldCoins = tryGetInteger(aggrAssetkey) | |
271 | + | let singleCoin = fraction(oldCoins, 1, qty) | |
272 | + | let oldItemqty = tryGetInteger((aggrAssetkey + "_Qty")) | |
273 | + | let newAggrAssetKey = ((k + "_") + newOwner) | |
274 | + | let newCoins = tryGetInteger(newAggrAssetKey) | |
275 | + | let newItemqty = tryGetInteger((newAggrAssetKey + "_Qty")) | |
276 | + | let newPower = nationsTryGetInteger((newOwner + "_Power")) | |
277 | + | let pwOld = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (oldPower - qtyPower)], nil) | |
278 | + | if ((pwOld == pwOld)) | |
279 | + | then { | |
280 | + | let pwNew = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newPower + qtyPower)], nil) | |
281 | + | if ((pwNew == pwNew)) | |
282 | + | then [IntegerEntry((aggrAssetkey + "_Qty"), (oldItemqty - qty)), IntegerEntry((newAggrAssetKey + "_Qty"), (newItemqty + qty)), IntegerEntry(aggrAssetkey, (oldCoins - (qty * singleCoin))), IntegerEntry(newAggrAssetKey, (newCoins + (qty * singleCoin)))] | |
283 | + | else throw("Strict value is not equal to itself.") | |
284 | + | } | |
284 | 285 | else throw("Strict value is not equal to itself.") | |
285 | 286 | } | |
286 | - | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
287 | + | else { | |
288 | + | let assetPower = confTryGetInteger((k + "_Power")) | |
289 | + | if ((assetPower > 0)) | |
290 | + | then { | |
291 | + | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
292 | + | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
293 | + | if ((pw == pw)) | |
294 | + | then if ((pw != (currentPower - assetPower))) | |
295 | + | then throw("Incorrect invoke result") | |
296 | + | else { | |
297 | + | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
298 | + | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
299 | + | if ((pw2 == pw2)) | |
300 | + | then match pw2 { | |
301 | + | case r: Int => | |
302 | + | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
303 | + | case _ => | |
304 | + | throw("Incorrect invoke result") | |
305 | + | } | |
306 | + | else throw("Strict value is not equal to itself.") | |
307 | + | } | |
308 | + | else throw("Strict value is not equal to itself.") | |
309 | + | } | |
310 | + | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
311 | + | } | |
287 | 312 | } | |
288 | 313 | ||
289 | 314 | ||
440 | 465 | ||
441 | 466 | ||
442 | 467 | @Callable(i) | |
443 | - | func transferOwnership (assetId,newOwner) = if (!(checkAdmin(i.caller))) | |
468 | + | func transferOwnership (assetId,newOwner,qty) = if (!(checkAdmin(i.caller))) | |
444 | 469 | then throw("Only the admin can perform this operation") | |
445 | - | else $Tuple2(internalTrasnferOwnership(assetId, newOwner), newOwner) | |
470 | + | else $Tuple2(internalTrasnferOwnership(assetId, newOwner, qty), newOwner) | |
446 | 471 | ||
447 | 472 | ||
448 | 473 | ||
622 | 647 | let a = invoke(Address(treasuryAddress), "increaseNationWallet", [NationKey, amountIn], nil) | |
623 | 648 | match a { | |
624 | 649 | case b: Int => | |
625 | - | (internalTrasnferOwnership(assetId, toString(i.caller)) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
650 | + | (internalTrasnferOwnership(assetId, toString(i.caller), 1) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
626 | 651 | case _ => | |
627 | 652 | throw("Error transferring SHEG to nations wallet") | |
628 | 653 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let assetsAddress = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb' | |
9 | 9 | ||
10 | 10 | let marketplaceAddress = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | 12 | let configurationAddress = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1' | |
13 | 13 | ||
14 | 14 | let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
15 | 15 | ||
16 | 16 | let adminWallet = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
17 | 17 | ||
18 | 18 | let dailyGameRewardsWallet = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
19 | 19 | ||
20 | 20 | let dailyStakingRewardsWallet = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
21 | 21 | ||
22 | 22 | func checkAdmin (caller) = if (if (if (if (if ((caller == adminWallet)) | |
23 | 23 | then true | |
24 | 24 | else (caller == this)) | |
25 | 25 | then true | |
26 | 26 | else (caller.bytes == assetsAddress)) | |
27 | 27 | then true | |
28 | 28 | else (caller.bytes == treasuryAddress)) | |
29 | 29 | then true | |
30 | 30 | else (caller.bytes == marketplaceAddress)) | |
31 | 31 | then true | |
32 | 32 | else (caller.bytes == nationsAddress) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func tryGetInteger (key) = match getInteger(this, key) { | |
36 | 36 | case b: Int => | |
37 | 37 | b | |
38 | 38 | case _ => | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
44 | 44 | case b: Boolean => | |
45 | 45 | b | |
46 | 46 | case _ => | |
47 | 47 | false | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func tryGetString (key) = match getString(this, key) { | |
52 | 52 | case b: String => | |
53 | 53 | b | |
54 | 54 | case _ => | |
55 | 55 | "" | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getALKey (Name,Level) = ((Name + "_lvl") + toString(Level)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func confTryGetInteger (key) = match getInteger(Address(configurationAddress), key) { | |
63 | 63 | case b: Int => | |
64 | 64 | b | |
65 | 65 | case _ => | |
66 | 66 | 0 | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func confTryGetString (key) = match getString(Address(configurationAddress), key) { | |
71 | 71 | case b: String => | |
72 | 72 | b | |
73 | 73 | case _ => | |
74 | 74 | "" | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func confTryGetBoolean (key) = match getBoolean(Address(configurationAddress), key) { | |
79 | 79 | case b: Boolean => | |
80 | 80 | b | |
81 | 81 | case _ => | |
82 | 82 | false | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getTreasuryKey (nationid) = (nationid + "_Treasury") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func treasuryTryGetInteger (key) = match getInteger(Address(treasuryAddress), key) { | |
90 | 90 | case b: Int => | |
91 | 91 | b | |
92 | 92 | case _ => | |
93 | 93 | 0 | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func nationsTryGetInteger (key) = match getInteger(Address(nationsAddress), key) { | |
98 | 98 | case b: Int => | |
99 | 99 | b | |
100 | 100 | case _ => | |
101 | 101 | 0 | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func nationsTryGetBoolean (key) = match getBoolean(Address(nationsAddress), key) { | |
106 | 106 | case b: Boolean => | |
107 | 107 | b | |
108 | 108 | case _ => | |
109 | 109 | false | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func nationsTryGetString (key) = match getString(Address(nationsAddress), key) { | |
114 | 114 | case b: String => | |
115 | 115 | b | |
116 | 116 | case _ => | |
117 | 117 | "" | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getAssetOwnerKeyString (assetId) = (assetId + "_Owner") | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | let BuildStarted = "BUILD_STARTED" | |
125 | 125 | ||
126 | 126 | let BuildFinished = "BUILD_FINISHED" | |
127 | 127 | ||
128 | 128 | func getAssetIdKey (txId,assetType) = ((assetType + "_") + toBase58String(txId)) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getAssetOwnerKey (txId,assetType) = (getAssetIdKey(txId, assetType) + "_Owner") | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getBuildingFinishHeightKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_fh") | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getBuildingStatusKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_status") | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getAssetTypeLevel (assetStr) = { | |
141 | 141 | let chunks = split(assetStr, "_") | |
142 | 142 | let strAssetType = chunks[0] | |
143 | 143 | let level = parseIntValue(drop(chunks[1], 3)) | |
144 | 144 | $Tuple2(strAssetType, level) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func internalDistrib (addressStr,amount) = { | |
149 | 149 | let tr = invoke(Address(treasuryAddress), "addReward", [addressFromStringValue(addressStr), amount], nil) | |
150 | 150 | if ((tr == tr)) | |
151 | 151 | then match tr { | |
152 | 152 | case t: Int => | |
153 | 153 | amount | |
154 | 154 | case _ => | |
155 | 155 | 0 | |
156 | 156 | } | |
157 | 157 | else throw("Strict value is not equal to itself.") | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func distribDestroyRewards (accum,nextValue) = { | |
162 | 162 | let val = split(nextValue, "_") | |
163 | 163 | let addr = val[0] | |
164 | 164 | let amnt = val[1] | |
165 | 165 | (accum :+ internalDistrib(addr, parseIntValue(amnt))) | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func internalSacrificeFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,transactionId,sacrificekey) = { | |
170 | 170 | let chunks = getAssetTypeLevel(assetStr) | |
171 | 171 | let strAssetType = chunks._1 | |
172 | 172 | let level = chunks._2 | |
173 | 173 | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
174 | 174 | if ((buildingFinishHeight > height)) | |
175 | 175 | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
176 | 176 | else if ((take(strAssetType, 4) == "TECH")) | |
177 | 177 | then { | |
178 | 178 | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
179 | 179 | if ((discovered == true)) | |
180 | 180 | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey), DeleteEntry(getAssetOwnerKey(transactionId, assetStr))] | |
181 | 181 | else throw("error discovering technology") | |
182 | 182 | } | |
183 | 183 | else { | |
184 | 184 | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
185 | 185 | let assetCoins = ((confTryGetInteger((sacrificekey + "_Cost")) * 20) / 100) | |
186 | 186 | if ((assetPower > 0)) | |
187 | 187 | then { | |
188 | 188 | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
189 | 189 | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
190 | 190 | if ((pw == pw)) | |
191 | 191 | then [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
192 | 192 | else throw("Strict value is not equal to itself.") | |
193 | 193 | } | |
194 | 194 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func internalFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,transactionId) = { | |
200 | 200 | let chunks = getAssetTypeLevel(assetStr) | |
201 | 201 | let strAssetType = chunks._1 | |
202 | 202 | let level = chunks._2 | |
203 | 203 | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
204 | 204 | if ((buildingFinishHeight > height)) | |
205 | 205 | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
206 | 206 | else if ((take(strAssetType, 4) == "TECH")) | |
207 | 207 | then { | |
208 | 208 | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
209 | 209 | if ((discovered == true)) | |
210 | 210 | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey), DeleteEntry(getAssetOwnerKey(transactionId, assetStr))] | |
211 | 211 | else throw("error discovering technology") | |
212 | 212 | } | |
213 | 213 | else { | |
214 | 214 | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
215 | 215 | let assetCoins = ((confTryGetInteger((assetStr + "_Cost")) * 20) / 100) | |
216 | 216 | let refCall = invoke(Address(treasuryAddress), "Pay", [caller, assetCoins], nil) | |
217 | 217 | if ((refCall == refCall)) | |
218 | 218 | then if ((assetPower > 0)) | |
219 | 219 | then { | |
220 | 220 | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
221 | 221 | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
222 | 222 | if ((pw == pw)) | |
223 | 223 | then if (confTryGetBoolean((assetStr + "_Aggregated"))) | |
224 | 224 | then { | |
225 | 225 | let aggrAssetkey = ((assetStr + "_") + caller) | |
226 | 226 | let coins = tryGetInteger(aggrAssetkey) | |
227 | 227 | let qty = tryGetInteger((aggrAssetkey + "_Qty")) | |
228 | 228 | [DeleteEntry(getAssetOwnerKey(transactionId, assetStr)), StringEntry((aggrAssetkey + "_Owner"), caller), IntegerEntry(aggrAssetkey, (coins + assetCoins)), IntegerEntry((aggrAssetkey + "_Qty"), (qty + 1)), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
229 | 229 | } | |
230 | 230 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
231 | 231 | else throw("Strict value is not equal to itself.") | |
232 | 232 | } | |
233 | 233 | else if (confTryGetBoolean((assetStr + "_Aggregated"))) | |
234 | 234 | then { | |
235 | 235 | let aggrAssetkey = ((assetStr + "_") + caller) | |
236 | 236 | let coins = tryGetInteger(aggrAssetkey) | |
237 | 237 | let qty = tryGetInteger((aggrAssetkey + "_Qty")) | |
238 | 238 | [DeleteEntry(getAssetOwnerKey(transactionId, assetStr)), StringEntry((aggrAssetkey + "_Owner"), caller), IntegerEntry(aggrAssetkey, (coins + assetCoins)), IntegerEntry((aggrAssetkey + "_Qty"), (qty + 1)), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
239 | 239 | } | |
240 | 240 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
241 | 241 | else throw("Strict value is not equal to itself.") | |
242 | 242 | } | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func checkAssetOwner (caller,assetKey) = { | |
247 | 247 | let assetOwner = tryGetString(getAssetOwnerKeyString(assetKey)) | |
248 | 248 | (assetOwner == caller) | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func isNationReservedAsset (Name,Level) = { | |
253 | 253 | let k = getALKey(Name, Level) | |
254 | 254 | confTryGetBoolean((k + "_NationReserved")) | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | - | func internalTrasnferOwnership (assetId,newOwner) = { | |
258 | + | func internalTrasnferOwnership (assetId,newOwner,qty) = { | |
259 | 259 | let chunks = getAssetTypeLevel(assetId) | |
260 | 260 | let strAssetType = chunks._1 | |
261 | 261 | let level = chunks._2 | |
262 | 262 | let k = getALKey(strAssetType, level) | |
263 | 263 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
264 | - | let assetPower = confTryGetInteger((k + "_Power")) | |
265 | - | if ((assetPower > 0)) | |
264 | + | if (confTryGetBoolean((k + "_Aggregated"))) | |
266 | 265 | then { | |
267 | - | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
268 | - | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
269 | - | if ((pw == pw)) | |
270 | - | then if ((pw != (currentPower - assetPower))) | |
271 | - | then throw("Incorrect invoke result") | |
272 | - | else { | |
273 | - | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
274 | - | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
275 | - | if ((pw2 == pw2)) | |
276 | - | then match pw2 { | |
277 | - | case r: Int => | |
278 | - | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
279 | - | case _ => | |
280 | - | throw("Incorrect invoke result") | |
281 | - | } | |
282 | - | else throw("Strict value is not equal to itself.") | |
283 | - | } | |
266 | + | let assetPower = confTryGetInteger((k + "_Power")) | |
267 | + | let qtyPower = (assetPower * qty) | |
268 | + | let aggrAssetkey = ((k + "_") + oldOwner) | |
269 | + | let oldPower = nationsTryGetInteger((oldOwner + "_Power")) | |
270 | + | let oldCoins = tryGetInteger(aggrAssetkey) | |
271 | + | let singleCoin = fraction(oldCoins, 1, qty) | |
272 | + | let oldItemqty = tryGetInteger((aggrAssetkey + "_Qty")) | |
273 | + | let newAggrAssetKey = ((k + "_") + newOwner) | |
274 | + | let newCoins = tryGetInteger(newAggrAssetKey) | |
275 | + | let newItemqty = tryGetInteger((newAggrAssetKey + "_Qty")) | |
276 | + | let newPower = nationsTryGetInteger((newOwner + "_Power")) | |
277 | + | let pwOld = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (oldPower - qtyPower)], nil) | |
278 | + | if ((pwOld == pwOld)) | |
279 | + | then { | |
280 | + | let pwNew = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newPower + qtyPower)], nil) | |
281 | + | if ((pwNew == pwNew)) | |
282 | + | then [IntegerEntry((aggrAssetkey + "_Qty"), (oldItemqty - qty)), IntegerEntry((newAggrAssetKey + "_Qty"), (newItemqty + qty)), IntegerEntry(aggrAssetkey, (oldCoins - (qty * singleCoin))), IntegerEntry(newAggrAssetKey, (newCoins + (qty * singleCoin)))] | |
283 | + | else throw("Strict value is not equal to itself.") | |
284 | + | } | |
284 | 285 | else throw("Strict value is not equal to itself.") | |
285 | 286 | } | |
286 | - | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
287 | + | else { | |
288 | + | let assetPower = confTryGetInteger((k + "_Power")) | |
289 | + | if ((assetPower > 0)) | |
290 | + | then { | |
291 | + | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
292 | + | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
293 | + | if ((pw == pw)) | |
294 | + | then if ((pw != (currentPower - assetPower))) | |
295 | + | then throw("Incorrect invoke result") | |
296 | + | else { | |
297 | + | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
298 | + | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
299 | + | if ((pw2 == pw2)) | |
300 | + | then match pw2 { | |
301 | + | case r: Int => | |
302 | + | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
303 | + | case _ => | |
304 | + | throw("Incorrect invoke result") | |
305 | + | } | |
306 | + | else throw("Strict value is not equal to itself.") | |
307 | + | } | |
308 | + | else throw("Strict value is not equal to itself.") | |
309 | + | } | |
310 | + | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
311 | + | } | |
287 | 312 | } | |
288 | 313 | ||
289 | 314 | ||
290 | 315 | func CheckAssetBuildableSacrifice (ALKey,caller,SacrificeKey) = { | |
291 | 316 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
292 | 317 | let assetSaclvl = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
293 | 318 | if ((assetSac == "")) | |
294 | 319 | then true | |
295 | 320 | else if (!(checkAssetOwner(caller, SacrificeKey))) | |
296 | 321 | then throw("you are not the owner of the Sacrifice asset") | |
297 | 322 | else { | |
298 | 323 | let chunks = getAssetTypeLevel(SacrificeKey) | |
299 | 324 | if (if ((assetSac != chunks._1)) | |
300 | 325 | then true | |
301 | 326 | else (assetSaclvl != chunks._2)) | |
302 | 327 | then throw("the sacrificeAsset has the wrong type or level") | |
303 | 328 | else true | |
304 | 329 | } | |
305 | 330 | } | |
306 | 331 | ||
307 | 332 | ||
308 | 333 | func CheckAssetBuildableNation (Name,Level,NationKey,SacrificeKey) = { | |
309 | 334 | let cnfgKey = getALKey(Name, Level) | |
310 | 335 | let tec = confTryGetString((cnfgKey + "_Tecnhology_discovered")) | |
311 | 336 | if ((tec != "")) | |
312 | 337 | then if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
313 | 338 | then CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
314 | 339 | else false | |
315 | 340 | else CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
316 | 341 | } | |
317 | 342 | ||
318 | 343 | ||
319 | 344 | func CheckAssetBuildableUser (Name,Level,caller,SacrificeKey) = { | |
320 | 345 | let cnfKey = getALKey(Name, Level) | |
321 | 346 | let nationId = nationsTryGetInteger(caller) | |
322 | 347 | if ((nationId == 0)) | |
323 | 348 | then false | |
324 | 349 | else { | |
325 | 350 | let tec = confTryGetString((cnfKey + "_Tecnhology_discovered")) | |
326 | 351 | if ((tec != "")) | |
327 | 352 | then { | |
328 | 353 | let NationKey = nationsTryGetString(toString(nationId)) | |
329 | 354 | if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
330 | 355 | then CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
331 | 356 | else false | |
332 | 357 | } | |
333 | 358 | else CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
334 | 359 | } | |
335 | 360 | } | |
336 | 361 | ||
337 | 362 | ||
338 | 363 | func CheckAssetBuildable (Name,Level,Caller,NationKey,SacrificeKey) = if ((NationKey != "")) | |
339 | 364 | then CheckAssetBuildableNation(Name, Level, NationKey, SacrificeKey) | |
340 | 365 | else CheckAssetBuildableUser(Name, Level, Caller, SacrificeKey) | |
341 | 366 | ||
342 | 367 | ||
343 | 368 | @Callable(i) | |
344 | 369 | func StartBuild (strAssetType,Level,NationKey,SacrificeKey) = if (!(CheckAssetBuildable(strAssetType, Level, toString(i.caller), NationKey, SacrificeKey))) | |
345 | 370 | then throw("You cannot build this Item") | |
346 | 371 | else { | |
347 | 372 | let cnfgKey = getALKey(strAssetType, Level) | |
348 | 373 | let delayForBuilding = confTryGetInteger((cnfgKey + "_BuildTime")) | |
349 | 374 | let assetBuildCost = confTryGetInteger((cnfgKey + "_Cost")) | |
350 | 375 | let ToAdminWallet = ((assetBuildCost * 5) / 100) | |
351 | 376 | let ToGameRewardsWallet = ((assetBuildCost * 10) / 100) | |
352 | 377 | let ToStakingRewardsWallet = ((assetBuildCost * 65) / 100) | |
353 | 378 | let UnitStakeSheg = (((assetBuildCost - ToAdminWallet) - ToGameRewardsWallet) - ToStakingRewardsWallet) | |
354 | 379 | if (isNationReservedAsset(strAssetType, Level)) | |
355 | 380 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
356 | 381 | then !(checkAdmin(i.caller)) | |
357 | 382 | else false) | |
358 | 383 | then throw("You are not the owner of the nation") | |
359 | 384 | else { | |
360 | 385 | let nationsheg = treasuryTryGetInteger(getTreasuryKey(NationKey)) | |
361 | 386 | if ((assetBuildCost > nationsheg)) | |
362 | 387 | then throw("The nation hasn't enough funds") | |
363 | 388 | else { | |
364 | 389 | let d = invoke(Address(treasuryAddress), "decreaseNationWallet", [NationKey, assetBuildCost], nil) | |
365 | 390 | match d { | |
366 | 391 | case r: Int => | |
367 | 392 | let pw = invoke(Address(treasuryAddress), "arbitraryAddCoins", [NationKey, UnitStakeSheg], nil) | |
368 | 393 | match pw { | |
369 | 394 | case b: Int => | |
370 | 395 | let transfer = invoke(Address(treasuryAddress), "distributeNationPayRewards", [assetBuildCost], nil) | |
371 | 396 | match transfer { | |
372 | 397 | case t: Int => | |
373 | 398 | [StringEntry(getBuildingStatusKey(toString(i.originCaller), i.transactionId, cnfgKey), BuildStarted), StringEntry(getAssetOwnerKey(i.transactionId, cnfgKey), NationKey), IntegerEntry(getBuildingFinishHeightKey(toString(i.originCaller), i.transactionId, cnfgKey), (height + delayForBuilding))] | |
374 | 399 | case _ => | |
375 | 400 | throw("Error Distributing asset rewards") | |
376 | 401 | } | |
377 | 402 | case _ => | |
378 | 403 | throw("Error Depositing nation funds") | |
379 | 404 | } | |
380 | 405 | case _ => | |
381 | 406 | throw("Error Depositing nation funds") | |
382 | 407 | } | |
383 | 408 | } | |
384 | 409 | } | |
385 | 410 | else { | |
386 | 411 | let assetSac = confTryGetString((cnfgKey + "_SacrificeAsset")) | |
387 | 412 | if ((assetSac != "")) | |
388 | 413 | then [DeleteEntry(SacrificeKey), DeleteEntry((SacrificeKey + "_Owner")), StringEntry(getBuildingStatusKey(toString(i.originCaller), i.transactionId, cnfgKey), BuildStarted), StringEntry(getAssetOwnerKey(i.transactionId, cnfgKey), toString(i.originCaller)), IntegerEntry(getBuildingFinishHeightKey(toString(i.originCaller), i.transactionId, cnfgKey), (height + delayForBuilding))] | |
389 | 414 | else { | |
390 | 415 | let amountIn = value(i.payments[0].amount) | |
391 | 416 | if ((assetBuildCost > amountIn)) | |
392 | 417 | then throw(("You provided less $heg than the needed cost for building this " + strAssetType)) | |
393 | 418 | else if ((i.payments[0].assetId != shinywggid)) | |
394 | 419 | then throw("Only $HEG payments allowed") | |
395 | 420 | else { | |
396 | 421 | let pw = invoke(Address(treasuryAddress), "Deposit", nil, [AttachedPayment(shinywggid, UnitStakeSheg)]) | |
397 | 422 | match pw { | |
398 | 423 | case r: Int => | |
399 | 424 | [StringEntry(getBuildingStatusKey(toString(i.originCaller), i.transactionId, cnfgKey), BuildStarted), StringEntry(getAssetOwnerKey(i.transactionId, cnfgKey), toString(i.originCaller)), IntegerEntry(getBuildingFinishHeightKey(toString(i.originCaller), i.transactionId, cnfgKey), (height + delayForBuilding)), ScriptTransfer(adminWallet, ToAdminWallet, shinywggid), ScriptTransfer(dailyGameRewardsWallet, ToGameRewardsWallet, shinywggid), ScriptTransfer(dailyStakingRewardsWallet, ToStakingRewardsWallet, shinywggid)] | |
400 | 425 | case _ => | |
401 | 426 | throw("Incorrect invoke result") | |
402 | 427 | } | |
403 | 428 | } | |
404 | 429 | } | |
405 | 430 | } | |
406 | 431 | } | |
407 | 432 | ||
408 | 433 | ||
409 | 434 | ||
410 | 435 | @Callable(i) | |
411 | 436 | func FinishBuild (txIdStr,assetStr,Level,NationKey) = { | |
412 | 437 | let txId = fromBase58String(txIdStr) | |
413 | 438 | let ALKey = getALKey(assetStr, Level) | |
414 | 439 | let BuildingStatusKey = getBuildingStatusKey(toString(i.caller), txId, ALKey) | |
415 | 440 | let finishHeightKey = getBuildingFinishHeightKey(toString(i.caller), txId, ALKey) | |
416 | 441 | let assetKey = getAssetIdKey(txId, ALKey) | |
417 | 442 | let assetOwner = tryGetString(getAssetOwnerKey(txId, ALKey)) | |
418 | 443 | if (isNationReservedAsset(assetStr, Level)) | |
419 | 444 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
420 | 445 | then !(checkAdmin(i.caller)) | |
421 | 446 | else false) | |
422 | 447 | then throw("You are not authorized to perform this operation") | |
423 | 448 | else internalFinishBuild(NationKey, ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
424 | 449 | else if ((assetOwner != toString(i.caller))) | |
425 | 450 | then throw(("You cannot claim other's players " + assetStr)) | |
426 | 451 | else { | |
427 | 452 | let buildingTxStatus = tryGetString(BuildingStatusKey) | |
428 | 453 | if ((buildingTxStatus == "")) | |
429 | 454 | then throw("No pending operations for this asset") | |
430 | 455 | else { | |
431 | 456 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
432 | 457 | let assetSacLevel = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
433 | 458 | if ((assetSac != "")) | |
434 | 459 | then internalSacrificeFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId, getALKey(assetSac, assetSacLevel)) | |
435 | 460 | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
436 | 461 | } | |
437 | 462 | } | |
438 | 463 | } | |
439 | 464 | ||
440 | 465 | ||
441 | 466 | ||
442 | 467 | @Callable(i) | |
443 | - | func transferOwnership (assetId,newOwner) = if (!(checkAdmin(i.caller))) | |
468 | + | func transferOwnership (assetId,newOwner,qty) = if (!(checkAdmin(i.caller))) | |
444 | 469 | then throw("Only the admin can perform this operation") | |
445 | - | else $Tuple2(internalTrasnferOwnership(assetId, newOwner), newOwner) | |
470 | + | else $Tuple2(internalTrasnferOwnership(assetId, newOwner, qty), newOwner) | |
446 | 471 | ||
447 | 472 | ||
448 | 473 | ||
449 | 474 | @Callable(i) | |
450 | 475 | func destroyAssetAndTransfer (assetId,qty,toAddress) = { | |
451 | 476 | let chunks = getAssetTypeLevel(assetId) | |
452 | 477 | let strAssetType = chunks._1 | |
453 | 478 | let level = chunks._2 | |
454 | 479 | let k = getALKey(strAssetType, level) | |
455 | 480 | if (!(checkAdmin(i.caller))) | |
456 | 481 | then throw("Only the admin can perform this operation") | |
457 | 482 | else { | |
458 | 483 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
459 | 484 | let assetCoins = tryGetInteger(assetId) | |
460 | 485 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
461 | 486 | let assetPower = confTryGetInteger((k + "_Power")) | |
462 | 487 | if (confTryGetBoolean((k + "_Aggregated"))) | |
463 | 488 | then { | |
464 | 489 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
465 | 490 | let qtyAsset = tryGetInteger((k + "_Qty")) | |
466 | 491 | if ((0 > (qtyAsset - qty))) | |
467 | 492 | then throw(("you don't have enough " + strAssetType)) | |
468 | 493 | else { | |
469 | 494 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - (assetPower * qty))], nil) | |
470 | 495 | match pw { | |
471 | 496 | case r: Int => | |
472 | 497 | let attackers = split(toAddress, "#") | |
473 | 498 | let dist = { | |
474 | 499 | let $l = attackers | |
475 | 500 | let $s = size($l) | |
476 | 501 | let $acc0 = nil | |
477 | 502 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
478 | 503 | then $a | |
479 | 504 | else distribDestroyRewards($a, $l[$i]) | |
480 | 505 | ||
481 | 506 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
482 | 507 | then $a | |
483 | 508 | else throw("List size exceeds 50") | |
484 | 509 | ||
485 | 510 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
486 | 511 | } | |
487 | 512 | if ((dist == dist)) | |
488 | 513 | then if (((qtyAsset - qty) > 0)) | |
489 | 514 | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
490 | 515 | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
491 | 516 | else throw("Strict value is not equal to itself.") | |
492 | 517 | case _ => | |
493 | 518 | throw("Error setting user power") | |
494 | 519 | } | |
495 | 520 | } | |
496 | 521 | } | |
497 | 522 | else { | |
498 | 523 | let attackers = split(toAddress, "#") | |
499 | 524 | let dist = { | |
500 | 525 | let $l = attackers | |
501 | 526 | let $s = size($l) | |
502 | 527 | let $acc0 = nil | |
503 | 528 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
504 | 529 | then $a | |
505 | 530 | else distribDestroyRewards($a, $l[$i]) | |
506 | 531 | ||
507 | 532 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
508 | 533 | then $a | |
509 | 534 | else throw("List size exceeds 50") | |
510 | 535 | ||
511 | 536 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
512 | 537 | } | |
513 | 538 | if ((dist == dist)) | |
514 | 539 | then { | |
515 | 540 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
516 | 541 | if ((pw == pw)) | |
517 | 542 | then match pw { | |
518 | 543 | case r: Int => | |
519 | 544 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
520 | 545 | case _ => | |
521 | 546 | throw("Error setting user power") | |
522 | 547 | } | |
523 | 548 | else throw("Strict value is not equal to itself.") | |
524 | 549 | } | |
525 | 550 | else throw("Strict value is not equal to itself.") | |
526 | 551 | } | |
527 | 552 | } | |
528 | 553 | } | |
529 | 554 | ||
530 | 555 | ||
531 | 556 | ||
532 | 557 | @Callable(i) | |
533 | 558 | func destroyAssetFromUser (assetId,qty) = { | |
534 | 559 | let chunks = getAssetTypeLevel(assetId) | |
535 | 560 | let strAssetType = chunks._1 | |
536 | 561 | let level = chunks._2 | |
537 | 562 | let k = getALKey(strAssetType, level) | |
538 | 563 | if (!(checkAssetOwner(toString(i.caller), assetId))) | |
539 | 564 | then throw("You don't own this asset") | |
540 | 565 | else { | |
541 | 566 | let assetCoins = tryGetInteger(assetId) | |
542 | 567 | let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power")) | |
543 | 568 | let assetPower = confTryGetInteger((k + "_Power")) | |
544 | 569 | if (confTryGetBoolean((k + "_Aggregated"))) | |
545 | 570 | then { | |
546 | 571 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
547 | 572 | let qtyAsset = tryGetInteger((k + "_Qty")) | |
548 | 573 | if ((0 > (qtyAsset - qty))) | |
549 | 574 | then throw(("you don't have enough " + strAssetType)) | |
550 | 575 | else { | |
551 | 576 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - (assetPower * qty))], nil) | |
552 | 577 | match pw { | |
553 | 578 | case r: Int => | |
554 | 579 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), (unitAssetCoins * qty)], nil) | |
555 | 580 | match tr { | |
556 | 581 | case t: Int => | |
557 | 582 | if (((qtyAsset - qty) > 0)) | |
558 | 583 | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
559 | 584 | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
560 | 585 | case _ => | |
561 | 586 | throw("Error transferring coins") | |
562 | 587 | } | |
563 | 588 | case _ => | |
564 | 589 | throw("Error setting user power") | |
565 | 590 | } | |
566 | 591 | } | |
567 | 592 | } | |
568 | 593 | else { | |
569 | 594 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil) | |
570 | 595 | match pw { | |
571 | 596 | case r: Int => | |
572 | 597 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), assetCoins], nil) | |
573 | 598 | match tr { | |
574 | 599 | case t: Int => | |
575 | 600 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
576 | 601 | case _ => | |
577 | 602 | throw("Error transferring coins") | |
578 | 603 | } | |
579 | 604 | case _ => | |
580 | 605 | throw("Error setting user power") | |
581 | 606 | } | |
582 | 607 | } | |
583 | 608 | } | |
584 | 609 | } | |
585 | 610 | ||
586 | 611 | ||
587 | 612 | ||
588 | 613 | @Callable(i) | |
589 | 614 | func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller)) | |
590 | 615 | then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true) | |
591 | 616 | else { | |
592 | 617 | let currentOwner = tryGetString((nationKey + "_Owner")) | |
593 | 618 | if ((currentOwner != toString(i.caller))) | |
594 | 619 | then throw("You are not the nation owner") | |
595 | 620 | else [StringEntry((nationKey + "_Owner"), newOwner)] | |
596 | 621 | } | |
597 | 622 | ||
598 | 623 | ||
599 | 624 | ||
600 | 625 | @Callable(i) | |
601 | 626 | func buyNationItem (assetId,NationKey) = { | |
602 | 627 | let chunks = getAssetTypeLevel(assetId) | |
603 | 628 | let strAssetType = chunks._1 | |
604 | 629 | let level = chunks._2 | |
605 | 630 | let k = getALKey(strAssetType, level) | |
606 | 631 | let n = nationsTryGetInteger(toString(i.caller)) | |
607 | 632 | let nid = nationsTryGetInteger(NationKey) | |
608 | 633 | if ((n != nid)) | |
609 | 634 | then throw("you can buy assets only from your nation") | |
610 | 635 | else if (!(checkAssetOwner(NationKey, assetId))) | |
611 | 636 | then throw("The asset does not belong to the nation") | |
612 | 637 | else if (!(isNationReservedAsset(strAssetType, level))) | |
613 | 638 | then throw("this asset cannot be sold by the nation") | |
614 | 639 | else { | |
615 | 640 | let assetPrice = confTryGetInteger((getALKey(strAssetType, level) + "_SellPrice")) | |
616 | 641 | let amountIn = value(i.payments[0].amount) | |
617 | 642 | if ((assetPrice > amountIn)) | |
618 | 643 | then throw(("You provided less $heg than the needed cost for buying this " + strAssetType)) | |
619 | 644 | else if ((i.payments[0].assetId != shinywggid)) | |
620 | 645 | then throw("Only $HEG payments allowed") | |
621 | 646 | else { | |
622 | 647 | let a = invoke(Address(treasuryAddress), "increaseNationWallet", [NationKey, amountIn], nil) | |
623 | 648 | match a { | |
624 | 649 | case b: Int => | |
625 | - | (internalTrasnferOwnership(assetId, toString(i.caller)) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
650 | + | (internalTrasnferOwnership(assetId, toString(i.caller), 1) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
626 | 651 | case _ => | |
627 | 652 | throw("Error transferring SHEG to nations wallet") | |
628 | 653 | } | |
629 | 654 | } | |
630 | 655 | } | |
631 | 656 | } | |
632 | 657 | ||
633 | 658 | ||
634 | 659 | ||
635 | 660 | @Callable(i) | |
636 | 661 | func AddAssetFromMarkeplace (assetId,oldOwner,assetSheg) = if (!(checkAdmin(i.caller))) | |
637 | 662 | then throw("You are not allowed to perform this operation") | |
638 | 663 | else $Tuple2([StringEntry(getAssetOwnerKeyString(assetId), oldOwner), IntegerEntry(assetId, assetSheg)], oldOwner) | |
639 | 664 | ||
640 | 665 | ||
641 | 666 | ||
642 | 667 | @Callable(i) | |
643 | 668 | func TransferAssetToMarketplace (assetId,sellprice) = if (!(checkAssetOwner(toString(i.caller), assetId))) | |
644 | 669 | then throw("You are not the owner of this asset") | |
645 | 670 | else { | |
646 | 671 | let assetSheg = tryGetInteger(assetId) | |
647 | 672 | let tr = invoke(Address(marketplaceAddress), "putOnSale", [assetId, assetSheg, sellprice], nil) | |
648 | 673 | match tr { | |
649 | 674 | case t: Int => | |
650 | 675 | [DeleteEntry(getAssetOwnerKeyString(assetId)), DeleteEntry(assetId)] | |
651 | 676 | case _ => | |
652 | 677 | throw("Error putting the item on the marketplace") | |
653 | 678 | } | |
654 | 679 | } | |
655 | 680 | ||
656 | 681 | ||
657 | 682 | ||
658 | 683 | @Callable(i) | |
659 | 684 | func DelKey (key) = if (!(checkAdmin(i.caller))) | |
660 | 685 | then throw("") | |
661 | 686 | else [DeleteEntry(key)] | |
662 | 687 | ||
663 | 688 | ||
664 | 689 | ||
665 | 690 | @Callable(i) | |
666 | 691 | func UpdKey (key,val) = if (!(checkAdmin(i.caller))) | |
667 | 692 | then throw("") | |
668 | 693 | else [StringEntry(key, val)] | |
669 | 694 | ||
670 | 695 |
github/deemru/w8io/169f3d6 75.95 ms ◑