tx · CAk16DjNfWsH1XwR3optUHAWesArsjJW6djiWZMFoPbi 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.03300000 Waves 2022.10.26 16:57 [2289474] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "CAk16DjNfWsH1XwR3optUHAWesArsjJW6djiWZMFoPbi", "fee": 3300000, "feeAssetId": null, "timestamp": 1666792733983, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "3VensxQ2mksuymFU2iS5wDcpDZg7BJyaKr21TSPEtxoyJtEmmDEDdKFwGYvZYKLZfDQbw6mCTKmH2ApB5V3XqGi9" ], "script": "base64:AAIFAAAAAAAAAEoIAhIGCgQIAQgIEgYKBAgIAQgSBQoDCAgBEgUKAwgBCBIECgIIARIECgIICBIECgIICBIFCgMICAESBAoCCAESAwoBCBIECgIICAAAACwAAAAACnNoaW55d2dnaWQBAAAAIIlpzwL/trq51HGW13m4mXYmsHTQd3n0c26G8PRznwYmAAAAAA90cmVhc3VyeUFkZHJlc3MBAAAAGgFUZfjwFgsEwFlCcBqeSIyX/37cHGLy3bv9AAAAAA1hc3NldHNBZGRyZXNzAQAAABoBVMvmtMF31x0nLWsWEEvKkUjrKYsKGpWnmgAAAAASbWFya2V0cGxhY2VBZGRyZXNzAQAAABoBVB0huZPx/BjDpxtJcRZDllF066xULiW87wAAAAAUY29uZmlndXJhdGlvbkFkZHJlc3MBAAAAGgFU2yDLl5FWP0IObKdlNYKLYb+1dHI4tNAuAAAAAA5uYXRpb25zQWRkcmVzcwEAAAAaAVRNheje9PhEa1kQO3Bfw7e5ZQ5R9URGbaAAAAAAC2FkbWluV2FsbGV0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXBOdGlQU1JTcTZObmFRWWszOEJmV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cGxhY2UEAAAAAnRyCQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAASbWFya2V0cGxhY2VBZGRyZXNzAgAAAAlwdXRPblNhbGUJAARMAAAAAgUAAAAHYXNzZXRJZAkABEwAAAACBQAAAAlhc3NldFNoZWcJAARMAAAAAgUAAAAJc2VsbHByaWNlBQAAAANuaWwFAAAAA25pbAQAAAAHJG1hdGNoMAUAAAACdHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAWZ2V0QXNzZXRPd25lcktleVN0cmluZwAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAKUVycm9yIHB1dHRpbmcgdGhlIGl0ZW0gb24gdGhlIG1hcmtldHBsYWNlAAAAAWkBAAAABkRlbEtleQAAAAEAAAADa2V5AwkBAAAAASEAAAABCQEAAAAKY2hlY2tBZG1pbgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABaQEAAAAGVXBkS2V5AAAAAgAAAANrZXkAAAADdmFsAwkBAAAAASEAAAABCQEAAAAKY2hlY2tBZG1pbgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAADa2V5BQAAAAN2YWwFAAAAA25pbAAAAACiCtLi", "height": 2289474, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ec7y5Fso3LPNd9YH1H3kKbSQAZpbRUYRecxHxAy2eBmz Next: none Diff:
Old | New | Differences | |
---|---|---|---|
276 | 276 | let singleCoin = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
277 | 277 | let pw = invoke(Address(nationsAddress), "setUserPower", [Owner, (ownerPower - qtyPower)], nil) | |
278 | 278 | if ((pw == pw)) | |
279 | - | then [IntegerEntry((assetId + "_Qty"), (qtyAsset + qty)), IntegerEntry(assetId, (Coins + (qty * singleCoin)))] | |
279 | + | then [IntegerEntry((assetId + "_Qty"), (qtyAsset + qty)), IntegerEntry(assetId, (Coins + (qty * singleCoin))), StringEntry(getAssetOwnerKeyString(assetId), Owner)] | |
280 | 280 | else throw("Strict value is not equal to itself.") | |
281 | 281 | } | |
282 | 282 |
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 | func assetsTryGetInteger (key) = match getInteger(Address(assetsAddress), key) { | |
125 | 125 | case b: Int => | |
126 | 126 | b | |
127 | 127 | case _ => | |
128 | 128 | 0 | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | let BuildStarted = "BUILD_STARTED" | |
133 | 133 | ||
134 | 134 | let BuildFinished = "BUILD_FINISHED" | |
135 | 135 | ||
136 | 136 | func getAssetIdKey (txId,assetType) = ((assetType + "_") + toBase58String(txId)) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getAssetOwnerKey (txId,assetType) = (getAssetIdKey(txId, assetType) + "_Owner") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getBuildingFinishHeightKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_fh") | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getBuildingStatusKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_status") | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getAssetTypeLevel (assetStr) = { | |
149 | 149 | let chunks = split(assetStr, "_") | |
150 | 150 | let strAssetType = chunks[0] | |
151 | 151 | let level = parseIntValue(drop(chunks[1], 3)) | |
152 | 152 | $Tuple2(strAssetType, level) | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func internalDistrib (addressStr,amount) = { | |
157 | 157 | let tr = invoke(Address(treasuryAddress), "addReward", [addressFromStringValue(addressStr), amount], nil) | |
158 | 158 | if ((tr == tr)) | |
159 | 159 | then match tr { | |
160 | 160 | case t: Int => | |
161 | 161 | amount | |
162 | 162 | case _ => | |
163 | 163 | 0 | |
164 | 164 | } | |
165 | 165 | else throw("Strict value is not equal to itself.") | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func distribDestroyRewards (accum,nextValue) = { | |
170 | 170 | let val = split(nextValue, "_") | |
171 | 171 | let addr = val[0] | |
172 | 172 | let amnt = val[1] | |
173 | 173 | (accum :+ internalDistrib(addr, parseIntValue(amnt))) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func internalSacrificeFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,transactionId,sacrificekey) = { | |
178 | 178 | let chunks = getAssetTypeLevel(assetStr) | |
179 | 179 | let strAssetType = chunks._1 | |
180 | 180 | let level = chunks._2 | |
181 | 181 | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
182 | 182 | if ((buildingFinishHeight > height)) | |
183 | 183 | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
184 | 184 | else if ((take(strAssetType, 4) == "TECH")) | |
185 | 185 | then { | |
186 | 186 | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
187 | 187 | if ((discovered == true)) | |
188 | 188 | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey), DeleteEntry(getAssetOwnerKey(transactionId, assetStr))] | |
189 | 189 | else throw("error discovering technology") | |
190 | 190 | } | |
191 | 191 | else { | |
192 | 192 | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
193 | 193 | let assetCoins = ((confTryGetInteger((sacrificekey + "_Cost")) * 20) / 100) | |
194 | 194 | if ((assetPower > 0)) | |
195 | 195 | then { | |
196 | 196 | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
197 | 197 | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
198 | 198 | if ((pw == pw)) | |
199 | 199 | then [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
203 | 203 | } | |
204 | 204 | } | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func internalFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,transactionId) = { | |
208 | 208 | let chunks = getAssetTypeLevel(assetStr) | |
209 | 209 | let strAssetType = chunks._1 | |
210 | 210 | let level = chunks._2 | |
211 | 211 | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
212 | 212 | if ((buildingFinishHeight > height)) | |
213 | 213 | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
214 | 214 | else if ((take(strAssetType, 4) == "TECH")) | |
215 | 215 | then { | |
216 | 216 | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
217 | 217 | if ((discovered == true)) | |
218 | 218 | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey), DeleteEntry(getAssetOwnerKey(transactionId, assetStr))] | |
219 | 219 | else throw("error discovering technology") | |
220 | 220 | } | |
221 | 221 | else { | |
222 | 222 | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
223 | 223 | let assetCoins = ((confTryGetInteger((assetStr + "_Cost")) * 20) / 100) | |
224 | 224 | let refCall = invoke(Address(treasuryAddress), "Pay", [caller, assetCoins], nil) | |
225 | 225 | if ((refCall == refCall)) | |
226 | 226 | then if ((assetPower > 0)) | |
227 | 227 | then { | |
228 | 228 | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
229 | 229 | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
230 | 230 | if ((pw == pw)) | |
231 | 231 | then if (confTryGetBoolean((assetStr + "_Aggregated"))) | |
232 | 232 | then { | |
233 | 233 | let aggrAssetkey = ((assetStr + "_") + caller) | |
234 | 234 | let coins = tryGetInteger(aggrAssetkey) | |
235 | 235 | let qty = tryGetInteger((aggrAssetkey + "_Qty")) | |
236 | 236 | [DeleteEntry(getAssetOwnerKey(transactionId, assetStr)), StringEntry((aggrAssetkey + "_Owner"), caller), IntegerEntry(aggrAssetkey, (coins + assetCoins)), IntegerEntry((aggrAssetkey + "_Qty"), (qty + 1)), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
237 | 237 | } | |
238 | 238 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
239 | 239 | else throw("Strict value is not equal to itself.") | |
240 | 240 | } | |
241 | 241 | else if (confTryGetBoolean((assetStr + "_Aggregated"))) | |
242 | 242 | then { | |
243 | 243 | let aggrAssetkey = ((assetStr + "_") + caller) | |
244 | 244 | let coins = tryGetInteger(aggrAssetkey) | |
245 | 245 | let qty = tryGetInteger((aggrAssetkey + "_Qty")) | |
246 | 246 | [DeleteEntry(getAssetOwnerKey(transactionId, assetStr)), StringEntry((aggrAssetkey + "_Owner"), caller), IntegerEntry(aggrAssetkey, (coins + assetCoins)), IntegerEntry((aggrAssetkey + "_Qty"), (qty + 1)), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
247 | 247 | } | |
248 | 248 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
249 | 249 | else throw("Strict value is not equal to itself.") | |
250 | 250 | } | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func checkAssetOwner (caller,assetKey) = { | |
255 | 255 | let assetOwner = tryGetString(getAssetOwnerKeyString(assetKey)) | |
256 | 256 | (assetOwner == caller) | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func isNationReservedAsset (Name,Level) = { | |
261 | 261 | let k = getALKey(Name, Level) | |
262 | 262 | confTryGetBoolean((k + "_NationReserved")) | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func IncreaseAggregatedAsset (assetId,Owner,qty) = { | |
267 | 267 | let chunks = getAssetTypeLevel(assetId) | |
268 | 268 | let strAssetType = chunks._1 | |
269 | 269 | let level = chunks._2 | |
270 | 270 | let k = getALKey(strAssetType, level) | |
271 | 271 | let assetPower = confTryGetInteger((k + "_Power")) | |
272 | 272 | let qtyPower = (assetPower * qty) | |
273 | 273 | let Coins = tryGetInteger(assetId) | |
274 | 274 | let qtyAsset = tryGetInteger((assetId + "_Qty")) | |
275 | 275 | let ownerPower = nationsTryGetInteger((Owner + "_Power")) | |
276 | 276 | let singleCoin = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
277 | 277 | let pw = invoke(Address(nationsAddress), "setUserPower", [Owner, (ownerPower - qtyPower)], nil) | |
278 | 278 | if ((pw == pw)) | |
279 | - | then [IntegerEntry((assetId + "_Qty"), (qtyAsset + qty)), IntegerEntry(assetId, (Coins + (qty * singleCoin)))] | |
279 | + | then [IntegerEntry((assetId + "_Qty"), (qtyAsset + qty)), IntegerEntry(assetId, (Coins + (qty * singleCoin))), StringEntry(getAssetOwnerKeyString(assetId), Owner)] | |
280 | 280 | else throw("Strict value is not equal to itself.") | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func DecreaseAggregatedAsset (assetId,Owner,qty) = { | |
285 | 285 | let qtyAsset = tryGetInteger((assetId + "_Qty")) | |
286 | 286 | if ((0 > (qtyAsset - qty))) | |
287 | 287 | then throw("you don't have enough unit") | |
288 | 288 | else IncreaseAggregatedAsset(assetId, Owner, (0 - qty)) | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func internalTrasnferOwnership (assetId,newOwner,qty) = { | |
293 | 293 | let chunks = getAssetTypeLevel(assetId) | |
294 | 294 | let strAssetType = chunks._1 | |
295 | 295 | let level = chunks._2 | |
296 | 296 | let k = getALKey(strAssetType, level) | |
297 | 297 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
298 | 298 | if (confTryGetBoolean((k + "_Aggregated"))) | |
299 | 299 | then { | |
300 | 300 | let newAggrAssetKey = ((k + "_") + newOwner) | |
301 | 301 | let achunks = split(assetId, "_") | |
302 | 302 | let aoldOwner = achunks[2] | |
303 | 303 | let aggrAssetkey = ((k + "_") + aoldOwner) | |
304 | 304 | let dec = DecreaseAggregatedAsset(aggrAssetkey, aoldOwner, qty) | |
305 | 305 | let inc = IncreaseAggregatedAsset(newAggrAssetKey, newOwner, qty) | |
306 | 306 | (inc ++ dec) | |
307 | 307 | } | |
308 | 308 | else { | |
309 | 309 | let assetPower = confTryGetInteger((k + "_Power")) | |
310 | 310 | if ((assetPower > 0)) | |
311 | 311 | then { | |
312 | 312 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
313 | 313 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
314 | 314 | if ((pw == pw)) | |
315 | 315 | then if ((pw != (currentPower - assetPower))) | |
316 | 316 | then throw("Incorrect invoke result") | |
317 | 317 | else { | |
318 | 318 | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
319 | 319 | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
320 | 320 | if ((pw2 == pw2)) | |
321 | 321 | then match pw2 { | |
322 | 322 | case r: Int => | |
323 | 323 | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
324 | 324 | case _ => | |
325 | 325 | throw("Incorrect invoke result") | |
326 | 326 | } | |
327 | 327 | else throw("Strict value is not equal to itself.") | |
328 | 328 | } | |
329 | 329 | else throw("Strict value is not equal to itself.") | |
330 | 330 | } | |
331 | 331 | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
332 | 332 | } | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | func CheckAssetBuildableSacrifice (ALKey,caller,SacrificeKey) = { | |
337 | 337 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
338 | 338 | let assetSaclvl = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
339 | 339 | if ((assetSac == "")) | |
340 | 340 | then true | |
341 | 341 | else if (!(checkAssetOwner(caller, SacrificeKey))) | |
342 | 342 | then throw("you are not the owner of the Sacrifice asset") | |
343 | 343 | else { | |
344 | 344 | let chunks = getAssetTypeLevel(SacrificeKey) | |
345 | 345 | if (if ((assetSac != chunks._1)) | |
346 | 346 | then true | |
347 | 347 | else (assetSaclvl != chunks._2)) | |
348 | 348 | then throw("the sacrificeAsset has the wrong type or level") | |
349 | 349 | else true | |
350 | 350 | } | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | func CheckAssetBuildableNation (Name,Level,NationKey,SacrificeKey) = { | |
355 | 355 | let cnfgKey = getALKey(Name, Level) | |
356 | 356 | let tec = confTryGetString((cnfgKey + "_Tecnhology_discovered")) | |
357 | 357 | if ((tec != "")) | |
358 | 358 | then if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
359 | 359 | then CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
360 | 360 | else false | |
361 | 361 | else CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | func CheckAssetBuildableUser (Name,Level,caller,SacrificeKey) = { | |
366 | 366 | let cnfKey = getALKey(Name, Level) | |
367 | 367 | let nationId = nationsTryGetInteger(caller) | |
368 | 368 | if ((nationId == 0)) | |
369 | 369 | then false | |
370 | 370 | else { | |
371 | 371 | let tec = confTryGetString((cnfKey + "_Tecnhology_discovered")) | |
372 | 372 | if ((tec != "")) | |
373 | 373 | then { | |
374 | 374 | let NationKey = nationsTryGetString(toString(nationId)) | |
375 | 375 | if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
376 | 376 | then CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
377 | 377 | else false | |
378 | 378 | } | |
379 | 379 | else CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
380 | 380 | } | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func CheckAssetBuildable (Name,Level,Caller,NationKey,SacrificeKey) = if ((NationKey != "")) | |
385 | 385 | then CheckAssetBuildableNation(Name, Level, NationKey, SacrificeKey) | |
386 | 386 | else CheckAssetBuildableUser(Name, Level, Caller, SacrificeKey) | |
387 | 387 | ||
388 | 388 | ||
389 | 389 | @Callable(i) | |
390 | 390 | func StartBuild (strAssetType,Level,NationKey,SacrificeKey) = if (!(CheckAssetBuildable(strAssetType, Level, toString(i.caller), NationKey, SacrificeKey))) | |
391 | 391 | then throw("You cannot build this Item") | |
392 | 392 | else { | |
393 | 393 | let cnfgKey = getALKey(strAssetType, Level) | |
394 | 394 | let delayForBuilding = confTryGetInteger((cnfgKey + "_BuildTime")) | |
395 | 395 | let assetBuildCost = confTryGetInteger((cnfgKey + "_Cost")) | |
396 | 396 | let ToAdminWallet = ((assetBuildCost * 5) / 100) | |
397 | 397 | let ToGameRewardsWallet = ((assetBuildCost * 10) / 100) | |
398 | 398 | let ToStakingRewardsWallet = ((assetBuildCost * 65) / 100) | |
399 | 399 | let UnitStakeSheg = (((assetBuildCost - ToAdminWallet) - ToGameRewardsWallet) - ToStakingRewardsWallet) | |
400 | 400 | if (isNationReservedAsset(strAssetType, Level)) | |
401 | 401 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
402 | 402 | then !(checkAdmin(i.caller)) | |
403 | 403 | else false) | |
404 | 404 | then throw("You are not the owner of the nation") | |
405 | 405 | else { | |
406 | 406 | let nationsheg = treasuryTryGetInteger(getTreasuryKey(NationKey)) | |
407 | 407 | if ((assetBuildCost > nationsheg)) | |
408 | 408 | then throw("The nation hasn't enough funds") | |
409 | 409 | else { | |
410 | 410 | let d = invoke(Address(treasuryAddress), "decreaseNationWallet", [NationKey, assetBuildCost], nil) | |
411 | 411 | match d { | |
412 | 412 | case r: Int => | |
413 | 413 | let pw = invoke(Address(treasuryAddress), "arbitraryAddCoins", [NationKey, UnitStakeSheg], nil) | |
414 | 414 | match pw { | |
415 | 415 | case b: Int => | |
416 | 416 | let transfer = invoke(Address(treasuryAddress), "distributeNationPayRewards", [assetBuildCost], nil) | |
417 | 417 | match transfer { | |
418 | 418 | case t: Int => | |
419 | 419 | [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))] | |
420 | 420 | case _ => | |
421 | 421 | throw("Error Distributing asset rewards") | |
422 | 422 | } | |
423 | 423 | case _ => | |
424 | 424 | throw("Error Depositing nation funds") | |
425 | 425 | } | |
426 | 426 | case _ => | |
427 | 427 | throw("Error Depositing nation funds") | |
428 | 428 | } | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | else { | |
432 | 432 | let assetSac = confTryGetString((cnfgKey + "_SacrificeAsset")) | |
433 | 433 | if ((assetSac != "")) | |
434 | 434 | 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))] | |
435 | 435 | else { | |
436 | 436 | let amountIn = value(i.payments[0].amount) | |
437 | 437 | if ((assetBuildCost > amountIn)) | |
438 | 438 | then throw(("You provided less $heg than the needed cost for building this " + strAssetType)) | |
439 | 439 | else if ((i.payments[0].assetId != shinywggid)) | |
440 | 440 | then throw("Only $HEG payments allowed") | |
441 | 441 | else { | |
442 | 442 | let pw = invoke(Address(treasuryAddress), "Deposit", nil, [AttachedPayment(shinywggid, UnitStakeSheg)]) | |
443 | 443 | match pw { | |
444 | 444 | case r: Int => | |
445 | 445 | [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)] | |
446 | 446 | case _ => | |
447 | 447 | throw("Incorrect invoke result") | |
448 | 448 | } | |
449 | 449 | } | |
450 | 450 | } | |
451 | 451 | } | |
452 | 452 | } | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | ||
456 | 456 | @Callable(i) | |
457 | 457 | func FinishBuild (txIdStr,assetStr,Level,NationKey) = { | |
458 | 458 | let txId = fromBase58String(txIdStr) | |
459 | 459 | let ALKey = getALKey(assetStr, Level) | |
460 | 460 | let BuildingStatusKey = getBuildingStatusKey(toString(i.caller), txId, ALKey) | |
461 | 461 | let finishHeightKey = getBuildingFinishHeightKey(toString(i.caller), txId, ALKey) | |
462 | 462 | let assetKey = getAssetIdKey(txId, ALKey) | |
463 | 463 | let assetOwner = tryGetString(getAssetOwnerKey(txId, ALKey)) | |
464 | 464 | if (isNationReservedAsset(assetStr, Level)) | |
465 | 465 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
466 | 466 | then !(checkAdmin(i.caller)) | |
467 | 467 | else false) | |
468 | 468 | then throw("You are not authorized to perform this operation") | |
469 | 469 | else internalFinishBuild(NationKey, ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
470 | 470 | else if ((assetOwner != toString(i.caller))) | |
471 | 471 | then throw(("You cannot claim other's players " + assetStr)) | |
472 | 472 | else { | |
473 | 473 | let buildingTxStatus = tryGetString(BuildingStatusKey) | |
474 | 474 | if ((buildingTxStatus == "")) | |
475 | 475 | then throw("No pending operations for this asset") | |
476 | 476 | else { | |
477 | 477 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
478 | 478 | let assetSacLevel = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
479 | 479 | if ((assetSac != "")) | |
480 | 480 | then internalSacrificeFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId, getALKey(assetSac, assetSacLevel)) | |
481 | 481 | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
482 | 482 | } | |
483 | 483 | } | |
484 | 484 | } | |
485 | 485 | ||
486 | 486 | ||
487 | 487 | ||
488 | 488 | @Callable(i) | |
489 | 489 | func transferOwnership (assetId,newOwner,qty) = if (!(checkAdmin(i.caller))) | |
490 | 490 | then throw("Only the admin can perform this operation") | |
491 | 491 | else $Tuple2(internalTrasnferOwnership(assetId, newOwner, qty), newOwner) | |
492 | 492 | ||
493 | 493 | ||
494 | 494 | ||
495 | 495 | @Callable(i) | |
496 | 496 | func destroyAssetAndTransfer (assetId,qty,toAddress) = { | |
497 | 497 | let chunks = getAssetTypeLevel(assetId) | |
498 | 498 | let strAssetType = chunks._1 | |
499 | 499 | let level = chunks._2 | |
500 | 500 | let k = getALKey(strAssetType, level) | |
501 | 501 | if (!(checkAdmin(i.caller))) | |
502 | 502 | then throw("Only the admin can perform this operation") | |
503 | 503 | else { | |
504 | 504 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
505 | 505 | let assetCoins = tryGetInteger(assetId) | |
506 | 506 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
507 | 507 | let assetPower = confTryGetInteger((k + "_Power")) | |
508 | 508 | if (confTryGetBoolean((k + "_Aggregated"))) | |
509 | 509 | then { | |
510 | 510 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
511 | 511 | let achunks = split(assetId, "_") | |
512 | 512 | let aoldOwner = achunks[2] | |
513 | 513 | let qtyAsset = tryGetInteger((assetId + "_Qty")) | |
514 | 514 | if ((0 > (qtyAsset - qty))) | |
515 | 515 | then throw(("you don't have enough " + strAssetType)) | |
516 | 516 | else { | |
517 | 517 | let pw = invoke(Address(nationsAddress), "setUserPower", [aoldOwner, (currentPower - (assetPower * qty))], nil) | |
518 | 518 | match pw { | |
519 | 519 | case r: Int => | |
520 | 520 | let attackers = split(toAddress, "#") | |
521 | 521 | let dist = { | |
522 | 522 | let $l = attackers | |
523 | 523 | let $s = size($l) | |
524 | 524 | let $acc0 = nil | |
525 | 525 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
526 | 526 | then $a | |
527 | 527 | else distribDestroyRewards($a, $l[$i]) | |
528 | 528 | ||
529 | 529 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
530 | 530 | then $a | |
531 | 531 | else throw("List size exceeds 50") | |
532 | 532 | ||
533 | 533 | $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) | |
534 | 534 | } | |
535 | 535 | if ((dist == dist)) | |
536 | 536 | then if (((qtyAsset - qty) > 0)) | |
537 | 537 | then [IntegerEntry((assetId + "_Qty"), (qtyAsset - qty))] | |
538 | 538 | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
539 | 539 | else throw("Strict value is not equal to itself.") | |
540 | 540 | case _ => | |
541 | 541 | throw("Error setting user power") | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | } | |
545 | 545 | else { | |
546 | 546 | let attackers = split(toAddress, "#") | |
547 | 547 | let dist = { | |
548 | 548 | let $l = attackers | |
549 | 549 | let $s = size($l) | |
550 | 550 | let $acc0 = nil | |
551 | 551 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
552 | 552 | then $a | |
553 | 553 | else distribDestroyRewards($a, $l[$i]) | |
554 | 554 | ||
555 | 555 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
556 | 556 | then $a | |
557 | 557 | else throw("List size exceeds 50") | |
558 | 558 | ||
559 | 559 | $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) | |
560 | 560 | } | |
561 | 561 | if ((dist == dist)) | |
562 | 562 | then { | |
563 | 563 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
564 | 564 | if ((pw == pw)) | |
565 | 565 | then match pw { | |
566 | 566 | case r: Int => | |
567 | 567 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
568 | 568 | case _ => | |
569 | 569 | throw("Error setting user power") | |
570 | 570 | } | |
571 | 571 | else throw("Strict value is not equal to itself.") | |
572 | 572 | } | |
573 | 573 | else throw("Strict value is not equal to itself.") | |
574 | 574 | } | |
575 | 575 | } | |
576 | 576 | } | |
577 | 577 | ||
578 | 578 | ||
579 | 579 | ||
580 | 580 | @Callable(i) | |
581 | 581 | func destroyAssetFromUser (assetId,qty) = { | |
582 | 582 | let chunks = getAssetTypeLevel(assetId) | |
583 | 583 | let strAssetType = chunks._1 | |
584 | 584 | let level = chunks._2 | |
585 | 585 | let k = getALKey(strAssetType, level) | |
586 | 586 | if (!(checkAssetOwner(toString(i.caller), assetId))) | |
587 | 587 | then throw("You don't own this asset") | |
588 | 588 | else { | |
589 | 589 | let assetCoins = tryGetInteger(assetId) | |
590 | 590 | let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power")) | |
591 | 591 | let assetPower = confTryGetInteger((k + "_Power")) | |
592 | 592 | if (confTryGetBoolean((k + "_Aggregated"))) | |
593 | 593 | then { | |
594 | 594 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
595 | 595 | let aggrAssetkey = ((k + "_") + toString(i.caller)) | |
596 | 596 | let qtyAsset = tryGetInteger((aggrAssetkey + "_Qty")) | |
597 | 597 | if ((0 > (qtyAsset - qty))) | |
598 | 598 | then throw(("you don't have enough " + strAssetType)) | |
599 | 599 | else { | |
600 | 600 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - (assetPower * qty))], nil) | |
601 | 601 | match pw { | |
602 | 602 | case r: Int => | |
603 | 603 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), (unitAssetCoins * qty)], nil) | |
604 | 604 | match tr { | |
605 | 605 | case t: Int => | |
606 | 606 | [IntegerEntry((aggrAssetkey + "_Qty"), (qtyAsset - qty))] | |
607 | 607 | case _ => | |
608 | 608 | throw("Error transferring coins") | |
609 | 609 | } | |
610 | 610 | case _ => | |
611 | 611 | throw("Error setting user power") | |
612 | 612 | } | |
613 | 613 | } | |
614 | 614 | } | |
615 | 615 | else { | |
616 | 616 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil) | |
617 | 617 | match pw { | |
618 | 618 | case r: Int => | |
619 | 619 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), assetCoins], nil) | |
620 | 620 | match tr { | |
621 | 621 | case t: Int => | |
622 | 622 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
623 | 623 | case _ => | |
624 | 624 | throw("Error transferring coins") | |
625 | 625 | } | |
626 | 626 | case _ => | |
627 | 627 | throw("Error setting user power") | |
628 | 628 | } | |
629 | 629 | } | |
630 | 630 | } | |
631 | 631 | } | |
632 | 632 | ||
633 | 633 | ||
634 | 634 | ||
635 | 635 | @Callable(i) | |
636 | 636 | func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller)) | |
637 | 637 | then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true) | |
638 | 638 | else { | |
639 | 639 | let currentOwner = tryGetString((nationKey + "_Owner")) | |
640 | 640 | if ((currentOwner != toString(i.caller))) | |
641 | 641 | then throw("You are not the nation owner") | |
642 | 642 | else [StringEntry((nationKey + "_Owner"), newOwner)] | |
643 | 643 | } | |
644 | 644 | ||
645 | 645 | ||
646 | 646 | ||
647 | 647 | @Callable(i) | |
648 | 648 | func buyNationItem (assetId,NationKey) = { | |
649 | 649 | let chunks = getAssetTypeLevel(assetId) | |
650 | 650 | let strAssetType = chunks._1 | |
651 | 651 | let level = chunks._2 | |
652 | 652 | let k = getALKey(strAssetType, level) | |
653 | 653 | let n = nationsTryGetInteger(toString(i.caller)) | |
654 | 654 | let nid = nationsTryGetInteger(NationKey) | |
655 | 655 | if ((n != nid)) | |
656 | 656 | then throw("you can buy assets only from your nation") | |
657 | 657 | else if (!(checkAssetOwner(NationKey, assetId))) | |
658 | 658 | then throw("The asset does not belong to the nation") | |
659 | 659 | else if (!(isNationReservedAsset(strAssetType, level))) | |
660 | 660 | then throw("this asset cannot be sold by the nation") | |
661 | 661 | else { | |
662 | 662 | let assetPrice = confTryGetInteger((getALKey(strAssetType, level) + "_SellPrice")) | |
663 | 663 | let amountIn = value(i.payments[0].amount) | |
664 | 664 | if ((assetPrice > amountIn)) | |
665 | 665 | then throw(("You provided less $heg than the needed cost for buying this " + strAssetType)) | |
666 | 666 | else if ((i.payments[0].assetId != shinywggid)) | |
667 | 667 | then throw("Only $HEG payments allowed") | |
668 | 668 | else { | |
669 | 669 | let a = invoke(Address(treasuryAddress), "increaseNationWallet", [NationKey, amountIn], nil) | |
670 | 670 | match a { | |
671 | 671 | case b: Int => | |
672 | 672 | (internalTrasnferOwnership(assetId, toString(i.caller), 1) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
673 | 673 | case _ => | |
674 | 674 | throw("Error transferring SHEG to nations wallet") | |
675 | 675 | } | |
676 | 676 | } | |
677 | 677 | } | |
678 | 678 | } | |
679 | 679 | ||
680 | 680 | ||
681 | 681 | ||
682 | 682 | @Callable(i) | |
683 | 683 | func AddAssetFromMarkeplace (assetId,oldOwner,assetSheg) = { | |
684 | 684 | let chunks = getAssetTypeLevel(assetId) | |
685 | 685 | let strAssetType = chunks._1 | |
686 | 686 | let level = chunks._2 | |
687 | 687 | let k = getALKey(strAssetType, level) | |
688 | 688 | if (!(checkAdmin(i.caller))) | |
689 | 689 | then throw("You are not allowed to perform this operation") | |
690 | 690 | else if (confTryGetBoolean((k + "_Aggregated"))) | |
691 | 691 | then { | |
692 | 692 | let achunks = split(assetId, "_") | |
693 | 693 | let aoldOwner = achunks[2] | |
694 | 694 | let inc = IncreaseAggregatedAsset(assetId, aoldOwner, 1) | |
695 | 695 | $Tuple2(inc, oldOwner) | |
696 | 696 | } | |
697 | 697 | else $Tuple2([StringEntry(getAssetOwnerKeyString(assetId), oldOwner), IntegerEntry(assetId, assetSheg)], oldOwner) | |
698 | 698 | } | |
699 | 699 | ||
700 | 700 | ||
701 | 701 | ||
702 | 702 | @Callable(i) | |
703 | 703 | func TransferAssetToMarketplace (assetId,sellprice) = { | |
704 | 704 | let chunks = getAssetTypeLevel(assetId) | |
705 | 705 | let strAssetType = chunks._1 | |
706 | 706 | let level = chunks._2 | |
707 | 707 | let k = getALKey(strAssetType, level) | |
708 | 708 | let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power")) | |
709 | 709 | let assetPower = confTryGetInteger((k + "_Power")) | |
710 | 710 | let assetSheg = tryGetInteger(assetId) | |
711 | 711 | if (!(checkAssetOwner(toString(i.caller), assetId))) | |
712 | 712 | then throw("You are not the owner of this asset") | |
713 | 713 | else if (confTryGetBoolean((k + "_Aggregated"))) | |
714 | 714 | then { | |
715 | 715 | let achunks = split(assetId, "_") | |
716 | 716 | let oldOwner = achunks[2] | |
717 | 717 | let tr = invoke(Address(marketplaceAddress), "putOnSale", [assetId, assetSheg, sellprice], nil) | |
718 | 718 | match tr { | |
719 | 719 | case t: Int => | |
720 | 720 | DecreaseAggregatedAsset(assetId, oldOwner, 1) | |
721 | 721 | case _ => | |
722 | 722 | throw("Error putting the item on the marketplace") | |
723 | 723 | } | |
724 | 724 | } | |
725 | 725 | else { | |
726 | 726 | let tr = invoke(Address(marketplaceAddress), "putOnSale", [assetId, assetSheg, sellprice], nil) | |
727 | 727 | match tr { | |
728 | 728 | case t: Int => | |
729 | 729 | [DeleteEntry(getAssetOwnerKeyString(assetId)), DeleteEntry(assetId)] | |
730 | 730 | case _ => | |
731 | 731 | throw("Error putting the item on the marketplace") | |
732 | 732 | } | |
733 | 733 | } | |
734 | 734 | } | |
735 | 735 | ||
736 | 736 | ||
737 | 737 | ||
738 | 738 | @Callable(i) | |
739 | 739 | func DelKey (key) = if (!(checkAdmin(i.caller))) | |
740 | 740 | then throw("") | |
741 | 741 | else [DeleteEntry(key)] | |
742 | 742 | ||
743 | 743 | ||
744 | 744 | ||
745 | 745 | @Callable(i) | |
746 | 746 | func UpdKey (key,val) = if (!(checkAdmin(i.caller))) | |
747 | 747 | then throw("") | |
748 | 748 | else [StringEntry(key, val)] | |
749 | 749 | ||
750 | 750 |
github/deemru/w8io/169f3d6 74.90 ms ◑