tx · Ec7y5Fso3LPNd9YH1H3kKbSQAZpbRUYRecxHxAy2eBmz 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.03300000 Waves 2022.10.26 13:44 [2289289] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "Ec7y5Fso3LPNd9YH1H3kKbSQAZpbRUYRecxHxAy2eBmz", "fee": 3300000, "feeAssetId": null, "timestamp": 1666781088338, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "ArouAzVgH7p26CgnKFKfaKPpoPagzxg5BZ8xXCXq6WjUNrowrcab1Gu64T52MfWxEmDQ4ShzhbC9KSejzYM6RJe" ], "script": "base64:AAIFAAAAAAAAAEoIAhIGCgQIAQgIEgYKBAgIAQgSBQoDCAgBEgUKAwgBCBIECgIIARIECgIICBIECgIICBIFCgMICAESBAoCCAESAwoBCBIECgIICAAAACwAAAAACnNoaW55d2dnaWQBAAAAIIlpzwL/trq51HGW13m4mXYmsHTQd3n0c26G8PRznwYmAAAAAA90cmVhc3VyeUFkZHJlc3MBAAAAGgFUZfjwFgsEwFlCcBqeSIyX/37cHGLy3bv9AAAAAA1hc3NldHNBZGRyZXNzAQAAABoBVMvmtMF31x0nLWsWEEvKkUjrKYsKGpWnmgAAAAASbWFya2V0cGxhY2VBZGRyZXNzAQAAABoBVB0huZPx/BjDpxtJcRZDllF066xULiW87wAAAAAUY29uZmlndXJhdGlvbkFkZHJlc3MBAAAAGgFU2yDLl5FWP0IObKdlNYKLYb+1dHI4tNAuAAAAAA5uYXRpb25zQWRkcmVzcwEAAAAaAVRNheje9PhEa1kQO3Bfw7e5ZQ5R9URGbaAAAAAAC2FkbWluV2FsbGV0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXBOdGlQU1JTcTZObm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cgkAA/wAAAAECQEAAAAHQWRkcmVzcwAAAAEFAAAAEm1hcmtldHBsYWNlQWRkcmVzcwIAAAAJcHV0T25TYWxlCQAETAAAAAIFAAAAB2Fzc2V0SWQJAARMAAAAAgUAAAAJYXNzZXRTaGVnCQAETAAAAAIFAAAACXNlbGxwcmljZQUAAAADbmlsBQAAAANuaWwEAAAAByRtYXRjaDAFAAAAAnRyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAFmdldEFzc2V0T3duZXJLZXlTdHJpbmcAAAABBQAAAAdhc3NldElkCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAClFcnJvciBwdXR0aW5nIHRoZSBpdGVtIG9uIHRoZSBtYXJrZXRwbGFjZQAAAAFpAQAAAAZEZWxLZXkAAAABAAAAA2tleQMJAQAAAAEhAAAAAQkBAAAACmNoZWNrQWRtaW4AAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAA2tleQUAAAADbmlsAAAAAWkBAAAABlVwZEtleQAAAAIAAAADa2V5AAAAA3ZhbAMJAQAAAAEhAAAAAQkBAAAACmNoZWNrQWRtaW4AAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAADdmFsBQAAAANuaWwAAAAAIuU5tA==", "height": 2289289, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2wMAKjcBSPZwgMTZ2wVggB1CcUB9rgHQy7u53ZB8AbHy Next: CAk16DjNfWsH1XwR3optUHAWesArsjJW6djiWZMFoPbi Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let shinywggid = base58' | |
4 | + | let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | - | let treasuryAddress = base58' | |
6 | + | let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | - | let assetsAddress = base58' | |
8 | + | let assetsAddress = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb' | |
9 | 9 | ||
10 | - | let marketplaceAddress = base58' | |
10 | + | let marketplaceAddress = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | - | let configurationAddress = base58' | |
12 | + | let configurationAddress = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1' | |
13 | 13 | ||
14 | - | let nationsAddress = base58' | |
14 | + | let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
15 | 15 | ||
16 | - | let adminWallet = addressFromStringValue(" | |
16 | + | let adminWallet = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
17 | 17 | ||
18 | - | let dailyGameRewardsWallet = addressFromStringValue(" | |
18 | + | let dailyGameRewardsWallet = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
19 | 19 | ||
20 | - | let dailyStakingRewardsWallet = addressFromStringValue(" | |
20 | + | let dailyStakingRewardsWallet = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
21 | 21 | ||
22 | 22 | func checkAdmin (caller) = if (if (if (if (if ((caller == adminWallet)) | |
23 | 23 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let shinywggid = base58' | |
4 | + | let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | - | let treasuryAddress = base58' | |
6 | + | let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | - | let assetsAddress = base58' | |
8 | + | let assetsAddress = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb' | |
9 | 9 | ||
10 | - | let marketplaceAddress = base58' | |
10 | + | let marketplaceAddress = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | - | let configurationAddress = base58' | |
12 | + | let configurationAddress = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1' | |
13 | 13 | ||
14 | - | let nationsAddress = base58' | |
14 | + | let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
15 | 15 | ||
16 | - | let adminWallet = addressFromStringValue(" | |
16 | + | let adminWallet = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
17 | 17 | ||
18 | - | let dailyGameRewardsWallet = addressFromStringValue(" | |
18 | + | let dailyGameRewardsWallet = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
19 | 19 | ||
20 | - | let dailyStakingRewardsWallet = addressFromStringValue(" | |
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 | 279 | then [IntegerEntry((assetId + "_Qty"), (qtyAsset + qty)), IntegerEntry(assetId, (Coins + (qty * singleCoin)))] | |
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 97.63 ms ◑