tx · 4F1vez2yNtiSrsLLDam2PvL8SzZ4fBu9nfYsMk4dfuAm 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.02500000 Waves 2022.06.27 17:06 [2114945] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "4F1vez2yNtiSrsLLDam2PvL8SzZ4fBu9nfYsMk4dfuAm", "fee": 2500000, "feeAssetId": null, "timestamp": 1656338806825, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "bQXtgxwUNDB8BTzFSfrFzTDTKRBbG43ejDvYYKUMhJL22xCcreDuncPdEqKZq5oJiv7C8nsRtYRxHKaHinPoMQN" ], "script": "base64:AAIFAAAAAAAAAEgIAhIGCgQIAQgIEgYKBAgIAQgSBAoCCAgSBAoCCAgSBAoCCAESBAoCCAgSBAoCCAgSBQoDCAgBEgQKAggBEgMKAQgSBAoCCAgAAAAnAAAAAApzaGlueXdnZ2lkAQAAACCJac8C/7a6udRxltd5uJl2JrB00Hd59HNuhvD0c58GJgAAAAAPdHJlYXN1cnlBZGRyZXNzAQAAABoBVGX48BYLBMBZQnAankiMl/9+3Bxi8t27/QAAAAANYXNzZXRzQWRkcmVzcwEAAAAaAVTL5rTBd9cdJy1rFhBLypFI6ymLChqVp5oAAAAAEm1hcmtldHBsYWNlQWRkcmVzcwEAAAAaAVQdIbmT8fwYw6cbSXEWQ5ZRdOusVC4lvO8AAAAAFGNvbmZpZ3VyYXRpb25BZGRyZXNzAQAAABoBVNsgy5eRVj9CDmynZTWCi2G/tXRyOLTQLgAAAAAObmF0aW9uc0FkZHJlc3MBAAAAGgFUTYXo3vT4RGtZEDtwX8O3uWUOUfVERm2gAAAAAAthZG1pbldhbGxldAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01wT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AAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAApRXJyb3IgcHV0dGluZyB0aGUgaXRlbSBvbiB0aGUgbWFya2V0cGxhY2UAAAABaQEAAAAGRGVsS2V5AAAAAQAAAANrZXkDCQEAAAABIQAAAAEJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANrZXkFAAAAA25pbAAAAAFpAQAAAAZVcGRLZXkAAAACAAAAA2tleQAAAAN2YWwDCQEAAAABIQAAAAEJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAAA3ZhbAUAAAADbmlsAAAAAOvSjwE=", "height": 2114945, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Zs2KL3wx7DTg1GfkBK2n1U8Hsci1eA9d8qxpy5YKnfd Next: 8sX18uh244jTMgRJK7pBqyXMxpPnJXs2nTMR2XfgLw3K Diff:
Old | New | Differences | |
---|---|---|---|
142 | 142 | let strAssetType = chunks[0] | |
143 | 143 | let level = parseIntValue(drop(chunks[1], 3)) | |
144 | 144 | $Tuple2(strAssetType, level) | |
145 | + | } | |
146 | + | ||
147 | + | ||
148 | + | func internalSacrificeFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,sacrificekey) = { | |
149 | + | let chunks = getAssetTypeLevel(assetStr) | |
150 | + | let strAssetType = chunks._1 | |
151 | + | let level = chunks._2 | |
152 | + | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
153 | + | if ((buildingFinishHeight > height)) | |
154 | + | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
155 | + | else if ((take(strAssetType, 4) == "TECH")) | |
156 | + | then { | |
157 | + | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
158 | + | if ((discovered == true)) | |
159 | + | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
160 | + | else throw("error discovering technology") | |
161 | + | } | |
162 | + | else { | |
163 | + | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
164 | + | let assetCoins = ((confTryGetInteger((sacrificekey + "_Cost")) * 20) / 100) | |
165 | + | if ((assetPower > 0)) | |
166 | + | then { | |
167 | + | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
168 | + | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
169 | + | if ((pw == pw)) | |
170 | + | then [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
171 | + | else throw("Strict value is not equal to itself.") | |
172 | + | } | |
173 | + | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
174 | + | } | |
145 | 175 | } | |
146 | 176 | ||
147 | 177 | ||
334 | 364 | else { | |
335 | 365 | let assetSac = confTryGetString((cnfgKey + "_SacrificeAsset")) | |
336 | 366 | if ((assetSac != "")) | |
337 | - | then { | |
338 | - | let pw = invoke(Address(treasuryAddress), "NoPaymentDeposit", [toString(i.caller), UnitStakeSheg], nil) | |
339 | - | match pw { | |
340 | - | case r: Int => | |
341 | - | let transfer = invoke(Address(treasuryAddress), "distributeNationPayRewards", [assetBuildCost], nil) | |
342 | - | match transfer { | |
343 | - | case t: Int => | |
344 | - | [DeleteEntry(SacrificeKey), 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))] | |
345 | - | case _ => | |
346 | - | throw("Error Distributing asset rewards") | |
347 | - | } | |
348 | - | case _ => | |
349 | - | throw("Error adding deposit") | |
350 | - | } | |
351 | - | } | |
367 | + | then [DeleteEntry(SacrificeKey), 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))] | |
352 | 368 | else { | |
353 | 369 | let amountIn = value(i.payments[0].amount) | |
354 | 370 | if ((assetBuildCost > amountIn)) | |
390 | 406 | let buildingTxStatus = tryGetString(BuildingStatusKey) | |
391 | 407 | if ((buildingTxStatus == "")) | |
392 | 408 | then throw("No pending operations for this asset") | |
393 | - | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
409 | + | else { | |
410 | + | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
411 | + | if ((assetSac != "")) | |
412 | + | then internalSacrificeFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, assetSac) | |
413 | + | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
414 | + | } | |
394 | 415 | } | |
395 | 416 | } | |
396 | 417 |
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 | + | } | |
146 | + | ||
147 | + | ||
148 | + | func internalSacrificeFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,sacrificekey) = { | |
149 | + | let chunks = getAssetTypeLevel(assetStr) | |
150 | + | let strAssetType = chunks._1 | |
151 | + | let level = chunks._2 | |
152 | + | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
153 | + | if ((buildingFinishHeight > height)) | |
154 | + | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
155 | + | else if ((take(strAssetType, 4) == "TECH")) | |
156 | + | then { | |
157 | + | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
158 | + | if ((discovered == true)) | |
159 | + | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
160 | + | else throw("error discovering technology") | |
161 | + | } | |
162 | + | else { | |
163 | + | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
164 | + | let assetCoins = ((confTryGetInteger((sacrificekey + "_Cost")) * 20) / 100) | |
165 | + | if ((assetPower > 0)) | |
166 | + | then { | |
167 | + | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
168 | + | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
169 | + | if ((pw == pw)) | |
170 | + | then [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
171 | + | else throw("Strict value is not equal to itself.") | |
172 | + | } | |
173 | + | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
174 | + | } | |
145 | 175 | } | |
146 | 176 | ||
147 | 177 | ||
148 | 178 | func internalFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey,transactionId) = { | |
149 | 179 | let chunks = getAssetTypeLevel(assetStr) | |
150 | 180 | let strAssetType = chunks._1 | |
151 | 181 | let level = chunks._2 | |
152 | 182 | let buildingFinishHeight = getIntegerValue(this, finishHeightKey) | |
153 | 183 | if ((buildingFinishHeight > height)) | |
154 | 184 | then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes")) | |
155 | 185 | else if ((take(strAssetType, 4) == "TECH")) | |
156 | 186 | then { | |
157 | 187 | let discovered = invoke(Address(nationsAddress), "setTecnhnologyDiscovered", [caller, assetStr], nil) | |
158 | 188 | if ((discovered == true)) | |
159 | 189 | then [DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
160 | 190 | else throw("error discovering technology") | |
161 | 191 | } | |
162 | 192 | else { | |
163 | 193 | let assetPower = confTryGetInteger((assetStr + "_Power")) | |
164 | 194 | let assetCoins = ((confTryGetInteger((assetStr + "_Cost")) * 20) / 100) | |
165 | 195 | let refCall = invoke(Address(treasuryAddress), "Pay", [caller, assetCoins], nil) | |
166 | 196 | if ((refCall == refCall)) | |
167 | 197 | then if ((assetPower > 0)) | |
168 | 198 | then { | |
169 | 199 | let currentPower = nationsTryGetInteger((caller + "_Power")) | |
170 | 200 | let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil) | |
171 | 201 | if ((pw == pw)) | |
172 | 202 | then if (confTryGetBoolean((assetStr + "_Aggregated"))) | |
173 | 203 | then { | |
174 | 204 | let aggrAssetkey = ((assetStr + "_") + caller) | |
175 | 205 | let coins = tryGetInteger(aggrAssetkey) | |
176 | 206 | let qty = tryGetInteger((aggrAssetkey + "_Qty")) | |
177 | 207 | [DeleteEntry(getAssetOwnerKey(transactionId, assetStr)), StringEntry((aggrAssetkey + "_Owner"), caller), IntegerEntry(aggrAssetkey, (coins + assetCoins)), IntegerEntry((aggrAssetkey + "_Qty"), (qty + 1)), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
178 | 208 | } | |
179 | 209 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
180 | 210 | else throw("Strict value is not equal to itself.") | |
181 | 211 | } | |
182 | 212 | else if (confTryGetBoolean((assetStr + "_Aggregated"))) | |
183 | 213 | then { | |
184 | 214 | let aggrAssetkey = ((assetStr + "_") + caller) | |
185 | 215 | let coins = tryGetInteger(aggrAssetkey) | |
186 | 216 | let qty = tryGetInteger((aggrAssetkey + "_Qty")) | |
187 | 217 | [DeleteEntry(getAssetOwnerKey(transactionId, assetStr)), StringEntry((aggrAssetkey + "_Owner"), caller), IntegerEntry(aggrAssetkey, (coins + assetCoins)), IntegerEntry((aggrAssetkey + "_Qty"), (qty + 1)), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
188 | 218 | } | |
189 | 219 | else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)] | |
190 | 220 | else throw("Strict value is not equal to itself.") | |
191 | 221 | } | |
192 | 222 | } | |
193 | 223 | ||
194 | 224 | ||
195 | 225 | func checkAssetOwner (caller,assetKey) = { | |
196 | 226 | let assetOwner = tryGetString(getAssetOwnerKeyString(assetKey)) | |
197 | 227 | (assetOwner == caller) | |
198 | 228 | } | |
199 | 229 | ||
200 | 230 | ||
201 | 231 | func isNationReservedAsset (Name,Level) = { | |
202 | 232 | let k = getALKey(Name, Level) | |
203 | 233 | confTryGetBoolean((k + "_NationReserved")) | |
204 | 234 | } | |
205 | 235 | ||
206 | 236 | ||
207 | 237 | func internalTrasnferOwnership (assetId,newOwner) = { | |
208 | 238 | let chunks = getAssetTypeLevel(assetId) | |
209 | 239 | let strAssetType = chunks._1 | |
210 | 240 | let level = chunks._2 | |
211 | 241 | let k = getALKey(strAssetType, level) | |
212 | 242 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
213 | 243 | let assetPower = confTryGetInteger((k + "_Power")) | |
214 | 244 | if ((assetPower > 0)) | |
215 | 245 | then { | |
216 | 246 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
217 | 247 | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
218 | 248 | if ((pw == pw)) | |
219 | 249 | then if ((pw != (currentPower - assetPower))) | |
220 | 250 | then throw("Incorrect invoke result") | |
221 | 251 | else { | |
222 | 252 | let newcurrentPower = nationsTryGetInteger((newOwner + "_Power")) | |
223 | 253 | let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil) | |
224 | 254 | if ((pw2 == pw2)) | |
225 | 255 | then match pw2 { | |
226 | 256 | case r: Int => | |
227 | 257 | [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
228 | 258 | case _ => | |
229 | 259 | throw("Incorrect invoke result") | |
230 | 260 | } | |
231 | 261 | else throw("Strict value is not equal to itself.") | |
232 | 262 | } | |
233 | 263 | else throw("Strict value is not equal to itself.") | |
234 | 264 | } | |
235 | 265 | else [StringEntry(getAssetOwnerKeyString(assetId), newOwner)] | |
236 | 266 | } | |
237 | 267 | ||
238 | 268 | ||
239 | 269 | func CheckAssetBuildableSacrifice (ALKey,caller,SacrificeKey) = { | |
240 | 270 | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
241 | 271 | let assetSaclvl = confTryGetInteger((ALKey + "_SacrificeAssetLevel")) | |
242 | 272 | if ((assetSac == "")) | |
243 | 273 | then true | |
244 | 274 | else if (!(checkAssetOwner(caller, SacrificeKey))) | |
245 | 275 | then throw("you are not the owner of the asset") | |
246 | 276 | else { | |
247 | 277 | let chunks = getAssetTypeLevel(SacrificeKey) | |
248 | 278 | if (if ((assetSac != chunks._1)) | |
249 | 279 | then true | |
250 | 280 | else (assetSaclvl != chunks._2)) | |
251 | 281 | then throw("the sacrificeAsset has the wrong type or level") | |
252 | 282 | else true | |
253 | 283 | } | |
254 | 284 | } | |
255 | 285 | ||
256 | 286 | ||
257 | 287 | func CheckAssetBuildableNation (Name,Level,NationKey,SacrificeKey) = { | |
258 | 288 | let cnfgKey = getALKey(Name, Level) | |
259 | 289 | let tec = confTryGetString((cnfgKey + "_Tecnhology_discovered")) | |
260 | 290 | if ((tec != "")) | |
261 | 291 | then if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
262 | 292 | then CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
263 | 293 | else false | |
264 | 294 | else CheckAssetBuildableSacrifice(cnfgKey, NationKey, SacrificeKey) | |
265 | 295 | } | |
266 | 296 | ||
267 | 297 | ||
268 | 298 | func CheckAssetBuildableUser (Name,Level,caller,SacrificeKey) = { | |
269 | 299 | let cnfKey = getALKey(Name, Level) | |
270 | 300 | let nationId = nationsTryGetInteger(caller) | |
271 | 301 | if ((nationId == 0)) | |
272 | 302 | then false | |
273 | 303 | else { | |
274 | 304 | let tec = confTryGetString((cnfKey + "_Tecnhology_discovered")) | |
275 | 305 | if ((tec != "")) | |
276 | 306 | then { | |
277 | 307 | let NationKey = nationsTryGetString(toString(nationId)) | |
278 | 308 | if (nationsTryGetBoolean(((NationKey + "_") + tec))) | |
279 | 309 | then CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
280 | 310 | else false | |
281 | 311 | } | |
282 | 312 | else CheckAssetBuildableSacrifice(cnfKey, caller, SacrificeKey) | |
283 | 313 | } | |
284 | 314 | } | |
285 | 315 | ||
286 | 316 | ||
287 | 317 | func CheckAssetBuildable (Name,Level,Caller,NationKey,SacrificeKey) = if ((NationKey != "")) | |
288 | 318 | then CheckAssetBuildableNation(Name, Level, NationKey, SacrificeKey) | |
289 | 319 | else CheckAssetBuildableUser(Name, Level, Caller, SacrificeKey) | |
290 | 320 | ||
291 | 321 | ||
292 | 322 | @Callable(i) | |
293 | 323 | func StartBuild (strAssetType,Level,NationKey,SacrificeKey) = if (!(CheckAssetBuildable(strAssetType, Level, toString(i.caller), NationKey, SacrificeKey))) | |
294 | 324 | then throw("You cannot build this Item") | |
295 | 325 | else { | |
296 | 326 | let cnfgKey = getALKey(strAssetType, Level) | |
297 | 327 | let delayForBuilding = confTryGetInteger((cnfgKey + "_BuildTime")) | |
298 | 328 | let assetBuildCost = confTryGetInteger((cnfgKey + "_Cost")) | |
299 | 329 | let ToAdminWallet = ((assetBuildCost * 5) / 100) | |
300 | 330 | let ToGameRewardsWallet = ((assetBuildCost * 10) / 100) | |
301 | 331 | let ToStakingRewardsWallet = ((assetBuildCost * 65) / 100) | |
302 | 332 | let UnitStakeSheg = (((assetBuildCost - ToAdminWallet) - ToGameRewardsWallet) - ToStakingRewardsWallet) | |
303 | 333 | if (isNationReservedAsset(strAssetType, Level)) | |
304 | 334 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
305 | 335 | then !(checkAdmin(i.caller)) | |
306 | 336 | else false) | |
307 | 337 | then throw("You are not the owner of the nation") | |
308 | 338 | else { | |
309 | 339 | let nationsheg = treasuryTryGetInteger(getTreasuryKey(NationKey)) | |
310 | 340 | if ((assetBuildCost > nationsheg)) | |
311 | 341 | then throw("The nation hasn't enough funds") | |
312 | 342 | else { | |
313 | 343 | let d = invoke(Address(treasuryAddress), "decreaseNationWallet", [NationKey, assetBuildCost], nil) | |
314 | 344 | match d { | |
315 | 345 | case r: Int => | |
316 | 346 | let pw = invoke(Address(treasuryAddress), "arbitraryAddCoins", [NationKey, UnitStakeSheg], nil) | |
317 | 347 | match pw { | |
318 | 348 | case b: Int => | |
319 | 349 | let transfer = invoke(Address(treasuryAddress), "distributeNationPayRewards", [assetBuildCost], nil) | |
320 | 350 | match transfer { | |
321 | 351 | case t: Int => | |
322 | 352 | [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))] | |
323 | 353 | case _ => | |
324 | 354 | throw("Error Distributing asset rewards") | |
325 | 355 | } | |
326 | 356 | case _ => | |
327 | 357 | throw("Error Depositing nation funds") | |
328 | 358 | } | |
329 | 359 | case _ => | |
330 | 360 | throw("Error Depositing nation funds") | |
331 | 361 | } | |
332 | 362 | } | |
333 | 363 | } | |
334 | 364 | else { | |
335 | 365 | let assetSac = confTryGetString((cnfgKey + "_SacrificeAsset")) | |
336 | 366 | if ((assetSac != "")) | |
337 | - | then { | |
338 | - | let pw = invoke(Address(treasuryAddress), "NoPaymentDeposit", [toString(i.caller), UnitStakeSheg], nil) | |
339 | - | match pw { | |
340 | - | case r: Int => | |
341 | - | let transfer = invoke(Address(treasuryAddress), "distributeNationPayRewards", [assetBuildCost], nil) | |
342 | - | match transfer { | |
343 | - | case t: Int => | |
344 | - | [DeleteEntry(SacrificeKey), 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))] | |
345 | - | case _ => | |
346 | - | throw("Error Distributing asset rewards") | |
347 | - | } | |
348 | - | case _ => | |
349 | - | throw("Error adding deposit") | |
350 | - | } | |
351 | - | } | |
367 | + | then [DeleteEntry(SacrificeKey), 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))] | |
352 | 368 | else { | |
353 | 369 | let amountIn = value(i.payments[0].amount) | |
354 | 370 | if ((assetBuildCost > amountIn)) | |
355 | 371 | then throw(("You provided less $heg than the needed cost for building this " + strAssetType)) | |
356 | 372 | else if ((i.payments[0].assetId != shinywggid)) | |
357 | 373 | then throw("Only $HEG payments allowed") | |
358 | 374 | else { | |
359 | 375 | let pw = invoke(Address(treasuryAddress), "Deposit", nil, [AttachedPayment(shinywggid, UnitStakeSheg)]) | |
360 | 376 | match pw { | |
361 | 377 | case r: Int => | |
362 | 378 | [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)] | |
363 | 379 | case _ => | |
364 | 380 | throw("Incorrect invoke result") | |
365 | 381 | } | |
366 | 382 | } | |
367 | 383 | } | |
368 | 384 | } | |
369 | 385 | } | |
370 | 386 | ||
371 | 387 | ||
372 | 388 | ||
373 | 389 | @Callable(i) | |
374 | 390 | func FinishBuild (txIdStr,assetStr,Level,NationKey) = { | |
375 | 391 | let txId = fromBase58String(txIdStr) | |
376 | 392 | let ALKey = getALKey(assetStr, Level) | |
377 | 393 | let BuildingStatusKey = getBuildingStatusKey(toString(i.caller), txId, ALKey) | |
378 | 394 | let finishHeightKey = getBuildingFinishHeightKey(toString(i.caller), txId, ALKey) | |
379 | 395 | let assetKey = getAssetIdKey(txId, ALKey) | |
380 | 396 | let assetOwner = tryGetString(getAssetOwnerKey(txId, ALKey)) | |
381 | 397 | if (isNationReservedAsset(assetStr, Level)) | |
382 | 398 | then if (if (!(checkAssetOwner(toString(i.caller), NationKey))) | |
383 | 399 | then !(checkAdmin(i.caller)) | |
384 | 400 | else false) | |
385 | 401 | then throw("You are not authorized to perform this operation") | |
386 | 402 | else internalFinishBuild(NationKey, ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
387 | 403 | else if ((assetOwner != toString(i.caller))) | |
388 | 404 | then throw(("You cannot claim other's players " + assetStr)) | |
389 | 405 | else { | |
390 | 406 | let buildingTxStatus = tryGetString(BuildingStatusKey) | |
391 | 407 | if ((buildingTxStatus == "")) | |
392 | 408 | then throw("No pending operations for this asset") | |
393 | - | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
409 | + | else { | |
410 | + | let assetSac = confTryGetString((ALKey + "_SacrificeAsset")) | |
411 | + | if ((assetSac != "")) | |
412 | + | then internalSacrificeFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, assetSac) | |
413 | + | else internalFinishBuild(toString(i.caller), ALKey, assetKey, BuildingStatusKey, finishHeightKey, txId) | |
414 | + | } | |
394 | 415 | } | |
395 | 416 | } | |
396 | 417 | ||
397 | 418 | ||
398 | 419 | ||
399 | 420 | @Callable(i) | |
400 | 421 | func transferOwnership (assetId,newOwner) = if (!(checkAdmin(i.caller))) | |
401 | 422 | then throw("Only the admin can perform this operation") | |
402 | 423 | else $Tuple2(internalTrasnferOwnership(assetId, newOwner), newOwner) | |
403 | 424 | ||
404 | 425 | ||
405 | 426 | ||
406 | 427 | @Callable(i) | |
407 | 428 | func destroyAssetAndTransfer (assetId,toAddress) = { | |
408 | 429 | let chunks = getAssetTypeLevel(assetId) | |
409 | 430 | let strAssetType = chunks._1 | |
410 | 431 | let level = chunks._2 | |
411 | 432 | let k = getALKey(strAssetType, level) | |
412 | 433 | if (!(checkAdmin(i.caller))) | |
413 | 434 | then throw("Only the admin can perform this operation") | |
414 | 435 | else { | |
415 | 436 | let oldOwner = tryGetString(getAssetOwnerKeyString(assetId)) | |
416 | 437 | let assetCoins = tryGetInteger(assetId) | |
417 | 438 | let refCall = invoke(Address(treasuryAddress), "adminTransfer", [addressFromStringValue(toAddress), assetCoins], nil) | |
418 | 439 | if ((refCall == refCall)) | |
419 | 440 | then { | |
420 | 441 | let currentPower = nationsTryGetInteger((oldOwner + "_Power")) | |
421 | 442 | let assetPower = confTryGetInteger((k + "_Power")) | |
422 | 443 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil) | |
423 | 444 | if ((pw == pw)) | |
424 | 445 | then match pw { | |
425 | 446 | case r: Int => | |
426 | 447 | [DeleteEntry(assetId)] | |
427 | 448 | case _ => | |
428 | 449 | throw("Error setting user power") | |
429 | 450 | } | |
430 | 451 | else throw("Strict value is not equal to itself.") | |
431 | 452 | } | |
432 | 453 | else throw("Strict value is not equal to itself.") | |
433 | 454 | } | |
434 | 455 | } | |
435 | 456 | ||
436 | 457 | ||
437 | 458 | ||
438 | 459 | @Callable(i) | |
439 | 460 | func destroyAssetFromUser (assetId,qty) = { | |
440 | 461 | let chunks = getAssetTypeLevel(assetId) | |
441 | 462 | let strAssetType = chunks._1 | |
442 | 463 | let level = chunks._2 | |
443 | 464 | let k = getALKey(strAssetType, level) | |
444 | 465 | if (!(checkAssetOwner(toString(i.caller), assetId))) | |
445 | 466 | then throw("You don't own this asset") | |
446 | 467 | else { | |
447 | 468 | let assetCoins = tryGetInteger(assetId) | |
448 | 469 | let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power")) | |
449 | 470 | let assetPower = confTryGetInteger((k + "_Power")) | |
450 | 471 | if (confTryGetBoolean((k + "_Aggregated"))) | |
451 | 472 | then { | |
452 | 473 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
453 | 474 | let qtyAsset = tryGetInteger((k + "_Qty")) | |
454 | 475 | if ((0 > (qtyAsset - qty))) | |
455 | 476 | then throw(("you don't have enough " + strAssetType)) | |
456 | 477 | else { | |
457 | 478 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - (assetPower * qty))], nil) | |
458 | 479 | match pw { | |
459 | 480 | case r: Int => | |
460 | 481 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), (unitAssetCoins * qty)], nil) | |
461 | 482 | match tr { | |
462 | 483 | case t: Int => | |
463 | 484 | if (((qtyAsset - qty) > 0)) | |
464 | 485 | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
465 | 486 | else [DeleteEntry(assetId)] | |
466 | 487 | case _ => | |
467 | 488 | throw("Error transferring coins") | |
468 | 489 | } | |
469 | 490 | case _ => | |
470 | 491 | throw("Error setting user power") | |
471 | 492 | } | |
472 | 493 | } | |
473 | 494 | } | |
474 | 495 | else { | |
475 | 496 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil) | |
476 | 497 | match pw { | |
477 | 498 | case r: Int => | |
478 | 499 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), assetCoins], nil) | |
479 | 500 | match tr { | |
480 | 501 | case t: Int => | |
481 | 502 | [DeleteEntry(assetId)] | |
482 | 503 | case _ => | |
483 | 504 | throw("Error transferring coins") | |
484 | 505 | } | |
485 | 506 | case _ => | |
486 | 507 | throw("Error setting user power") | |
487 | 508 | } | |
488 | 509 | } | |
489 | 510 | } | |
490 | 511 | } | |
491 | 512 | ||
492 | 513 | ||
493 | 514 | ||
494 | 515 | @Callable(i) | |
495 | 516 | func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller)) | |
496 | 517 | then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true) | |
497 | 518 | else { | |
498 | 519 | let currentOwner = tryGetString((nationKey + "_Owner")) | |
499 | 520 | if ((currentOwner != toString(i.caller))) | |
500 | 521 | then throw("You are not the nation owner") | |
501 | 522 | else [StringEntry((nationKey + "_Owner"), newOwner)] | |
502 | 523 | } | |
503 | 524 | ||
504 | 525 | ||
505 | 526 | ||
506 | 527 | @Callable(i) | |
507 | 528 | func buyNationItem (assetId,NationKey) = { | |
508 | 529 | let chunks = getAssetTypeLevel(assetId) | |
509 | 530 | let strAssetType = chunks._1 | |
510 | 531 | let level = chunks._2 | |
511 | 532 | let k = getALKey(strAssetType, level) | |
512 | 533 | let n = nationsTryGetInteger(toString(i.caller)) | |
513 | 534 | let nid = nationsTryGetInteger(NationKey) | |
514 | 535 | if ((n != nid)) | |
515 | 536 | then throw("you can buy assets only from your nation") | |
516 | 537 | else if (!(checkAssetOwner(NationKey, assetId))) | |
517 | 538 | then throw("The asset does not belong to the nation") | |
518 | 539 | else if (!(isNationReservedAsset(strAssetType, level))) | |
519 | 540 | then throw("this asset cannot be sold by the nation") | |
520 | 541 | else { | |
521 | 542 | let assetPrice = confTryGetInteger((getALKey(strAssetType, level) + "_SellPrice")) | |
522 | 543 | let amountIn = value(i.payments[0].amount) | |
523 | 544 | if ((assetPrice > amountIn)) | |
524 | 545 | then throw(("You provided less $heg than the needed cost for buying this " + strAssetType)) | |
525 | 546 | else if ((i.payments[0].assetId != shinywggid)) | |
526 | 547 | then throw("Only $HEG payments allowed") | |
527 | 548 | else { | |
528 | 549 | let a = invoke(Address(treasuryAddress), "increaseNationWallet", [NationKey, amountIn], nil) | |
529 | 550 | match a { | |
530 | 551 | case b: Int => | |
531 | 552 | (internalTrasnferOwnership(assetId, toString(i.caller)) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
532 | 553 | case _ => | |
533 | 554 | throw("Error transferring SHEG to nations wallet") | |
534 | 555 | } | |
535 | 556 | } | |
536 | 557 | } | |
537 | 558 | } | |
538 | 559 | ||
539 | 560 | ||
540 | 561 | ||
541 | 562 | @Callable(i) | |
542 | 563 | func AddAssetFromMarkeplace (assetId,oldOwner,assetSheg) = if (!(checkAdmin(i.caller))) | |
543 | 564 | then throw("You are not allowed to perform this operation") | |
544 | 565 | else $Tuple2([StringEntry(getAssetOwnerKeyString(assetId), oldOwner), IntegerEntry(assetId, assetSheg)], oldOwner) | |
545 | 566 | ||
546 | 567 | ||
547 | 568 | ||
548 | 569 | @Callable(i) | |
549 | 570 | func TransferAssetToMarketplace (assetId,sellprice) = if (!(checkAssetOwner(toString(i.caller), assetId))) | |
550 | 571 | then throw("You are not the owner of this asset") | |
551 | 572 | else { | |
552 | 573 | let assetSheg = tryGetInteger(assetId) | |
553 | 574 | let tr = invoke(Address(marketplaceAddress), "putOnSale", [assetId, assetSheg, sellprice], nil) | |
554 | 575 | match tr { | |
555 | 576 | case t: Int => | |
556 | 577 | [DeleteEntry(getAssetOwnerKeyString(assetId)), DeleteEntry(assetId)] | |
557 | 578 | case _ => | |
558 | 579 | throw("Error putting the item on the marketplace") | |
559 | 580 | } | |
560 | 581 | } | |
561 | 582 | ||
562 | 583 | ||
563 | 584 | ||
564 | 585 | @Callable(i) | |
565 | 586 | func DelKey (key) = if (!(checkAdmin(i.caller))) | |
566 | 587 | then throw("") | |
567 | 588 | else [DeleteEntry(key)] | |
568 | 589 | ||
569 | 590 | ||
570 | 591 | ||
571 | 592 | @Callable(i) | |
572 | 593 | func UpdKey (key,val) = if (!(checkAdmin(i.caller))) | |
573 | 594 | then throw("") | |
574 | 595 | else [StringEntry(key, val)] | |
575 | 596 | ||
576 | 597 |
github/deemru/w8io/169f3d6 75.58 ms ◑