tx · GokZw4JeTL857kKJRan2p3po45ro6bECWFBYASpcDd8N 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.03000000 Waves 2022.06.30 18:29 [2119344] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "GokZw4JeTL857kKJRan2p3po45ro6bECWFBYASpcDd8N", "fee": 3000000, "feeAssetId": null, "timestamp": 1656602939832, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "2KTWXPMDDquLWE8GKQ5UcW9kntMayMwoXpYk8NqqsnnZe1bzpmSGzQVXHnVymMU18pmGAMub5pzBG3mdKPrNEzxW" ], "script": "base64:AAIFAAAAAAAAAEkIAhIGCgQIAQgIEgYKBAgIAQgSBAoCCAgSBQoDCAEIEgQKAggBEgQKAggIEgQKAggIEgUKAwgIARIECgIIARIDCgEIEgQKAggIAAAAKQAAAAAKc2hpbnl3Z2dpZAEAAAAgiWnPAv+2urnUcZbXebiZdiawdNB3efRzbobw9HOfBiYAAAAAD3RyZWFzdXJ5QWRkcmVzcwEAAAAaAVRl+PAWCwTAWUJwGp5IjJf/ftwcYvLdu/0AAAAADWFzc2V0c0FkZHJlc3MBAAAAGgFUy+a0wXfXHSctaxYQS8qRSOspiwoalaeaAAAAABJtYXJrZXRwbGFjZUFkZHJlc3MBAAAAGgFUHSG5k/H8GMOnG0lxFkOWUXTrrFQuJbzvAAAAABRjb25maWd1cmF0aW9uQWRkcmVzcwEAAAAaAVTbIMuXkVY/Qg5sp2U1gothv7V0cji00C4AAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50aVBTUlNxNk5uYV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AAAJ0cgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF0BQAAAAckbWF0Y2gwCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABZnZXRBc3NldE93bmVyS2V5U3RyaW5nAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAApRXJyb3IgcHV0dGluZyB0aGUgaXRlbSBvbiB0aGUgbWFya2V0cGxhY2UAAAABaQEAAAAGRGVsS2V5AAAAAQAAAANrZXkDCQEAAAABIQAAAAEJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAAAAAFpAQAAAAZVcGRLZXkAAAACAAAAA2tleQAAAAN2YWwDCQEAAAABIQAAAAEJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAA3ZhbAUAAAADbmlsAAAAANBNdPI=", "height": 2119344, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6aGr2BgeUpMNDJHpXep1b5mR6vab6be2NtYz5YJdMpJ6 Next: GRDVgQ8tYUURwJgCs1YvNujrPQLFoB6ANhQvvSZPYPeJ Diff:
Old | New | Differences | |
---|---|---|---|
146 | 146 | ||
147 | 147 | ||
148 | 148 | func internalDistrib (addressStr,amount) = { | |
149 | - | let tr = invoke(Address(treasuryAddress), " | |
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 => |
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 | - | let tr = invoke(Address(treasuryAddress), " | |
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 | 258 | func internalTrasnferOwnership (assetId,newOwner) = { | |
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 | 264 | let assetPower = confTryGetInteger((k + "_Power")) | |
265 | 265 | if ((assetPower > 0)) | |
266 | 266 | then { | |
267 | 267 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
268 | 268 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
269 | 269 | if ((pw == pw)) | |
270 | 270 | then if ((pw != (currentPower - assetPower))) | |
271 | 271 | then throw("Incorrect invoke result") | |
272 | 272 | else { | |
273 | 273 | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
274 | 274 | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
275 | 275 | if ((pw2 == pw2)) | |
276 | 276 | then match pw2 { | |
277 | 277 | case r: Int => | |
278 | 278 | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
279 | 279 | case _ => | |
280 | 280 | throw("Incorrect invoke result") | |
281 | 281 | } | |
282 | 282 | else throw("Strict value is not equal to itself.") | |
283 | 283 | } | |
284 | 284 | else throw("Strict value is not equal to itself.") | |
285 | 285 | } | |
286 | 286 | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func CheckAssetBuildableSacrifice (ALKey,caller,SacrificeKey) = { | |
291 | 291 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
292 | 292 | let assetSaclvl = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
293 | 293 | if ((assetSac == "")) | |
294 | 294 | then true | |
295 | 295 | else if (!(checkAssetOwner(caller, SacrificeKey))) | |
296 | 296 | then throw("you are not the owner of the Sacrifice asset") | |
297 | 297 | else { | |
298 | 298 | let chunks = getAssetTypeLevel(SacrificeKey) | |
299 | 299 | if (if ((assetSac != chunks._1)) | |
300 | 300 | then true | |
301 | 301 | else (assetSaclvl != chunks._2)) | |
302 | 302 | then throw("the sacrificeAsset has the wrong type or level") | |
303 | 303 | else true | |
304 | 304 | } | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func CheckAssetBuildableNation (Name,Level,NationKey,SacrificeKey) = { | |
309 | 309 | let cnfgKey = getALKey(Name, Level) | |
310 | 310 | let tec = confTryGetString((cnfgKey + "_Tecnhology_discovered")) | |
311 | 311 | if ((tec != "")) | |
312 | 312 | then if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
313 | 313 | then CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
314 | 314 | else false | |
315 | 315 | else CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
316 | 316 | } | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | func CheckAssetBuildableUser (Name,Level,caller,SacrificeKey) = { | |
320 | 320 | let cnfKey = getALKey(Name, Level) | |
321 | 321 | let nationId = nationsTryGetInteger(caller) | |
322 | 322 | if ((nationId == 0)) | |
323 | 323 | then false | |
324 | 324 | else { | |
325 | 325 | let tec = confTryGetString((cnfKey + "_Tecnhology_discovered")) | |
326 | 326 | if ((tec != "")) | |
327 | 327 | then { | |
328 | 328 | let NationKey = nationsTryGetString(toString(nationId)) | |
329 | 329 | if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
330 | 330 | then CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
331 | 331 | else false | |
332 | 332 | } | |
333 | 333 | else CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
334 | 334 | } | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | func CheckAssetBuildable (Name,Level,Caller,NationKey,SacrificeKey) = if ((NationKey != "")) | |
339 | 339 | then CheckAssetBuildableNation(Name, Level, NationKey, SacrificeKey) | |
340 | 340 | else CheckAssetBuildableUser(Name, Level, Caller, SacrificeKey) | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(i) | |
344 | 344 | func StartBuild (strAssetType,Level,NationKey,SacrificeKey) = if (!(CheckAssetBuildable(strAssetType, Level, toString(i.caller), NationKey, SacrificeKey))) | |
345 | 345 | then throw("You cannot build this Item") | |
346 | 346 | else { | |
347 | 347 | let cnfgKey = getALKey(strAssetType, Level) | |
348 | 348 | let delayForBuilding = confTryGetInteger((cnfgKey + "_BuildTime")) | |
349 | 349 | let assetBuildCost = confTryGetInteger((cnfgKey + "_Cost")) | |
350 | 350 | let ToAdminWallet = ((assetBuildCost * 5) / 100) | |
351 | 351 | let ToGameRewardsWallet = ((assetBuildCost * 10) / 100) | |
352 | 352 | let ToStakingRewardsWallet = ((assetBuildCost * 65) / 100) | |
353 | 353 | let UnitStakeSheg = (((assetBuildCost - ToAdminWallet) - ToGameRewardsWallet) - ToStakingRewardsWallet) | |
354 | 354 | if (isNationReservedAsset(strAssetType, Level)) | |
355 | 355 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
356 | 356 | then !(checkAdmin(i.caller)) | |
357 | 357 | else false) | |
358 | 358 | then throw("You are not the owner of the nation") | |
359 | 359 | else { | |
360 | 360 | let nationsheg = treasuryTryGetInteger(getTreasuryKey(NationKey)) | |
361 | 361 | if ((assetBuildCost > nationsheg)) | |
362 | 362 | then throw("The nation hasn't enough funds") | |
363 | 363 | else { | |
364 | 364 | let d = invoke(Address(treasuryAddress), "decreaseNationWallet", [NationKey, assetBuildCost], nil) | |
365 | 365 | match d { | |
366 | 366 | case r: Int => | |
367 | 367 | let pw = invoke(Address(treasuryAddress), "arbitraryAddCoins", [NationKey, UnitStakeSheg], nil) | |
368 | 368 | match pw { | |
369 | 369 | case b: Int => | |
370 | 370 | let transfer = invoke(Address(treasuryAddress), "distributeNationPayRewards", [assetBuildCost], nil) | |
371 | 371 | match transfer { | |
372 | 372 | case t: Int => | |
373 | 373 | [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 | 374 | case _ => | |
375 | 375 | throw("Error Distributing asset rewards") | |
376 | 376 | } | |
377 | 377 | case _ => | |
378 | 378 | throw("Error Depositing nation funds") | |
379 | 379 | } | |
380 | 380 | case _ => | |
381 | 381 | throw("Error Depositing nation funds") | |
382 | 382 | } | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | else { | |
386 | 386 | let assetSac = confTryGetString((cnfgKey + "_SacrificeAsset")) | |
387 | 387 | if ((assetSac != "")) | |
388 | 388 | 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 | 389 | else { | |
390 | 390 | let amountIn = value(i.payments[0].amount) | |
391 | 391 | if ((assetBuildCost > amountIn)) | |
392 | 392 | then throw(("You provided less $heg than the needed cost for building this " + strAssetType)) | |
393 | 393 | else if ((i.payments[0].assetId != shinywggid)) | |
394 | 394 | then throw("Only $HEG payments allowed") | |
395 | 395 | else { | |
396 | 396 | let pw = invoke(Address(treasuryAddress), "Deposit", nil, [AttachedPayment(shinywggid, UnitStakeSheg)]) | |
397 | 397 | match pw { | |
398 | 398 | case r: Int => | |
399 | 399 | [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 | 400 | case _ => | |
401 | 401 | throw("Incorrect invoke result") | |
402 | 402 | } | |
403 | 403 | } | |
404 | 404 | } | |
405 | 405 | } | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | ||
410 | 410 | @Callable(i) | |
411 | 411 | func FinishBuild (txIdStr,assetStr,Level,NationKey) = { | |
412 | 412 | let txId = fromBase58String(txIdStr) | |
413 | 413 | let ALKey = getALKey(assetStr, Level) | |
414 | 414 | let BuildingStatusKey = getBuildingStatusKey(toString(i.caller), txId, ALKey) | |
415 | 415 | let finishHeightKey = getBuildingFinishHeightKey(toString(i.caller), txId, ALKey) | |
416 | 416 | let assetKey = getAssetIdKey(txId, ALKey) | |
417 | 417 | let assetOwner = tryGetString(getAssetOwnerKey(txId, ALKey)) | |
418 | 418 | if (isNationReservedAsset(assetStr, Level)) | |
419 | 419 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
420 | 420 | then !(checkAdmin(i.caller)) | |
421 | 421 | else false) | |
422 | 422 | then throw("You are not authorized to perform this operation") | |
423 | 423 | else internalFinishBuild(NationKey, ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
424 | 424 | else if ((assetOwner != toString(i.caller))) | |
425 | 425 | then throw(("You cannot claim other's players " + assetStr)) | |
426 | 426 | else { | |
427 | 427 | let buildingTxStatus = tryGetString(BuildingStatusKey) | |
428 | 428 | if ((buildingTxStatus == "")) | |
429 | 429 | then throw("No pending operations for this asset") | |
430 | 430 | else { | |
431 | 431 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
432 | 432 | let assetSacLevel = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
433 | 433 | if ((assetSac != "")) | |
434 | 434 | then internalSacrificeFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId, getALKey(assetSac, assetSacLevel)) | |
435 | 435 | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | } | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | ||
442 | 442 | @Callable(i) | |
443 | 443 | func transferOwnership (assetId,newOwner) = if (!(checkAdmin(i.caller))) | |
444 | 444 | then throw("Only the admin can perform this operation") | |
445 | 445 | else $Tuple2(internalTrasnferOwnership(assetId, newOwner), newOwner) | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(i) | |
450 | 450 | func destroyAssetAndTransfer (assetId,qty,toAddress) = { | |
451 | 451 | let chunks = getAssetTypeLevel(assetId) | |
452 | 452 | let strAssetType = chunks._1 | |
453 | 453 | let level = chunks._2 | |
454 | 454 | let k = getALKey(strAssetType, level) | |
455 | 455 | if (!(checkAdmin(i.caller))) | |
456 | 456 | then throw("Only the admin can perform this operation") | |
457 | 457 | else { | |
458 | 458 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
459 | 459 | let assetCoins = tryGetInteger(assetId) | |
460 | 460 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
461 | 461 | let assetPower = confTryGetInteger((k + "_Power")) | |
462 | 462 | if (confTryGetBoolean((k + "_Aggregated"))) | |
463 | 463 | then { | |
464 | 464 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
465 | 465 | let qtyAsset = tryGetInteger((k + "_Qty")) | |
466 | 466 | if ((0 > (qtyAsset - qty))) | |
467 | 467 | then throw(("you don't have enough " + strAssetType)) | |
468 | 468 | else { | |
469 | 469 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - (assetPower * qty))], nil) | |
470 | 470 | match pw { | |
471 | 471 | case r: Int => | |
472 | 472 | let attackers = split(toAddress, "#") | |
473 | 473 | let dist = { | |
474 | 474 | let $l = attackers | |
475 | 475 | let $s = size($l) | |
476 | 476 | let $acc0 = nil | |
477 | 477 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
478 | 478 | then $a | |
479 | 479 | else distribDestroyRewards($a, $l[$i]) | |
480 | 480 | ||
481 | 481 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
482 | 482 | then $a | |
483 | 483 | else throw("List size exceeds 50") | |
484 | 484 | ||
485 | 485 | $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 | 486 | } | |
487 | 487 | if (((qtyAsset - qty) > 0)) | |
488 | 488 | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
489 | 489 | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
490 | 490 | case _ => | |
491 | 491 | throw("Error setting user power") | |
492 | 492 | } | |
493 | 493 | } | |
494 | 494 | } | |
495 | 495 | else { | |
496 | 496 | let attackers = split(toAddress, "#") | |
497 | 497 | let dist = { | |
498 | 498 | let $l = attackers | |
499 | 499 | let $s = size($l) | |
500 | 500 | let $acc0 = nil | |
501 | 501 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
502 | 502 | then $a | |
503 | 503 | else distribDestroyRewards($a, $l[$i]) | |
504 | 504 | ||
505 | 505 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
506 | 506 | then $a | |
507 | 507 | else throw("List size exceeds 50") | |
508 | 508 | ||
509 | 509 | $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) | |
510 | 510 | } | |
511 | 511 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
512 | 512 | if ((pw == pw)) | |
513 | 513 | then match pw { | |
514 | 514 | case r: Int => | |
515 | 515 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
516 | 516 | case _ => | |
517 | 517 | throw("Error setting user power") | |
518 | 518 | } | |
519 | 519 | else throw("Strict value is not equal to itself.") | |
520 | 520 | } | |
521 | 521 | } | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | ||
526 | 526 | @Callable(i) | |
527 | 527 | func destroyAssetFromUser (assetId,qty) = { | |
528 | 528 | let chunks = getAssetTypeLevel(assetId) | |
529 | 529 | let strAssetType = chunks._1 | |
530 | 530 | let level = chunks._2 | |
531 | 531 | let k = getALKey(strAssetType, level) | |
532 | 532 | if (!(checkAssetOwner(toString(i.caller), assetId))) | |
533 | 533 | then throw("You don't own this asset") | |
534 | 534 | else { | |
535 | 535 | let assetCoins = tryGetInteger(assetId) | |
536 | 536 | let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power")) | |
537 | 537 | let assetPower = confTryGetInteger((k + "_Power")) | |
538 | 538 | if (confTryGetBoolean((k + "_Aggregated"))) | |
539 | 539 | then { | |
540 | 540 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
541 | 541 | let qtyAsset = tryGetInteger((k + "_Qty")) | |
542 | 542 | if ((0 > (qtyAsset - qty))) | |
543 | 543 | then throw(("you don't have enough " + strAssetType)) | |
544 | 544 | else { | |
545 | 545 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - (assetPower * qty))], nil) | |
546 | 546 | match pw { | |
547 | 547 | case r: Int => | |
548 | 548 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), (unitAssetCoins * qty)], nil) | |
549 | 549 | match tr { | |
550 | 550 | case t: Int => | |
551 | 551 | if (((qtyAsset - qty) > 0)) | |
552 | 552 | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
553 | 553 | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
554 | 554 | case _ => | |
555 | 555 | throw("Error transferring coins") | |
556 | 556 | } | |
557 | 557 | case _ => | |
558 | 558 | throw("Error setting user power") | |
559 | 559 | } | |
560 | 560 | } | |
561 | 561 | } | |
562 | 562 | else { | |
563 | 563 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil) | |
564 | 564 | match pw { | |
565 | 565 | case r: Int => | |
566 | 566 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), assetCoins], nil) | |
567 | 567 | match tr { | |
568 | 568 | case t: Int => | |
569 | 569 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
570 | 570 | case _ => | |
571 | 571 | throw("Error transferring coins") | |
572 | 572 | } | |
573 | 573 | case _ => | |
574 | 574 | throw("Error setting user power") | |
575 | 575 | } | |
576 | 576 | } | |
577 | 577 | } | |
578 | 578 | } | |
579 | 579 | ||
580 | 580 | ||
581 | 581 | ||
582 | 582 | @Callable(i) | |
583 | 583 | func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller)) | |
584 | 584 | then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true) | |
585 | 585 | else { | |
586 | 586 | let currentOwner = tryGetString((nationKey + "_Owner")) | |
587 | 587 | if ((currentOwner != toString(i.caller))) | |
588 | 588 | then throw("You are not the nation owner") | |
589 | 589 | else [StringEntry((nationKey + "_Owner"), newOwner)] | |
590 | 590 | } | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(i) | |
595 | 595 | func buyNationItem (assetId,NationKey) = { | |
596 | 596 | let chunks = getAssetTypeLevel(assetId) | |
597 | 597 | let strAssetType = chunks._1 | |
598 | 598 | let level = chunks._2 | |
599 | 599 | let k = getALKey(strAssetType, level) | |
600 | 600 | let n = nationsTryGetInteger(toString(i.caller)) | |
601 | 601 | let nid = nationsTryGetInteger(NationKey) | |
602 | 602 | if ((n != nid)) | |
603 | 603 | then throw("you can buy assets only from your nation") | |
604 | 604 | else if (!(checkAssetOwner(NationKey, assetId))) | |
605 | 605 | then throw("The asset does not belong to the nation") | |
606 | 606 | else if (!(isNationReservedAsset(strAssetType, level))) | |
607 | 607 | then throw("this asset cannot be sold by the nation") | |
608 | 608 | else { | |
609 | 609 | let assetPrice = confTryGetInteger((getALKey(strAssetType, level) + "_SellPrice")) | |
610 | 610 | let amountIn = value(i.payments[0].amount) | |
611 | 611 | if ((assetPrice > amountIn)) | |
612 | 612 | then throw(("You provided less $heg than the needed cost for buying this " + strAssetType)) | |
613 | 613 | else if ((i.payments[0].assetId != shinywggid)) | |
614 | 614 | then throw("Only $HEG payments allowed") | |
615 | 615 | else { | |
616 | 616 | let a = invoke(Address(treasuryAddress), "increaseNationWallet", [NationKey, amountIn], nil) | |
617 | 617 | match a { | |
618 | 618 | case b: Int => | |
619 | 619 | (internalTrasnferOwnership(assetId, toString(i.caller)) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
620 | 620 | case _ => | |
621 | 621 | throw("Error transferring SHEG to nations wallet") | |
622 | 622 | } | |
623 | 623 | } | |
624 | 624 | } | |
625 | 625 | } | |
626 | 626 | ||
627 | 627 | ||
628 | 628 | ||
629 | 629 | @Callable(i) | |
630 | 630 | func AddAssetFromMarkeplace (assetId,oldOwner,assetSheg) = if (!(checkAdmin(i.caller))) | |
631 | 631 | then throw("You are not allowed to perform this operation") | |
632 | 632 | else $Tuple2([StringEntry(getAssetOwnerKeyString(assetId), oldOwner), IntegerEntry(assetId, assetSheg)], oldOwner) | |
633 | 633 | ||
634 | 634 | ||
635 | 635 | ||
636 | 636 | @Callable(i) | |
637 | 637 | func TransferAssetToMarketplace (assetId,sellprice) = if (!(checkAssetOwner(toString(i.caller), assetId))) | |
638 | 638 | then throw("You are not the owner of this asset") | |
639 | 639 | else { | |
640 | 640 | let assetSheg = tryGetInteger(assetId) | |
641 | 641 | let tr = invoke(Address(marketplaceAddress), "putOnSale", [assetId, assetSheg, sellprice], nil) | |
642 | 642 | match tr { | |
643 | 643 | case t: Int => | |
644 | 644 | [DeleteEntry(getAssetOwnerKeyString(assetId)), DeleteEntry(assetId)] | |
645 | 645 | case _ => | |
646 | 646 | throw("Error putting the item on the marketplace") | |
647 | 647 | } | |
648 | 648 | } | |
649 | 649 | ||
650 | 650 | ||
651 | 651 | ||
652 | 652 | @Callable(i) | |
653 | 653 | func DelKey (key) = if (!(checkAdmin(i.caller))) | |
654 | 654 | then throw("") | |
655 | 655 | else [DeleteEntry(key)] | |
656 | 656 | ||
657 | 657 | ||
658 | 658 | ||
659 | 659 | @Callable(i) | |
660 | 660 | func UpdKey (key,val) = if (!(checkAdmin(i.caller))) | |
661 | 661 | then throw("") | |
662 | 662 | else [StringEntry(key, val)] | |
663 | 663 | ||
664 | 664 |
github/deemru/w8io/026f985 70.42 ms ◑