tx · 6aGr2BgeUpMNDJHpXep1b5mR6vab6be2NtYz5YJdMpJ6 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb: -0.03000000 Waves 2022.06.29 20:30 [2118035] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves
{ "type": 13, "id": "6aGr2BgeUpMNDJHpXep1b5mR6vab6be2NtYz5YJdMpJ6", "fee": 3000000, "feeAssetId": null, "timestamp": 1656523906956, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "5gF6DJwJ6Lci53fQkYakJQMSssaTKmyCwHRgacCNXUbvAJe1CNKmbNZRrqqK5U27D8eEb4dQcUBqNetjNKRRDSEj" ], "script": "base64:AAIFAAAAAAAAAEkIAhIGCgQIAQgIEgYKBAgIAQgSBAoCCAgSBQoDCAEIEgQKAggBEgQKAggIEgQKAggIEgUKAwgIARIECgIIARIDCgEIEgQKAggIAAAAKQAAAAAKc2hpbnl3Z2dpZAEAAAAgiWnPAv+2urnUcZbXebiZdiawdNB3efRzbobw9HOfBiYAAAAAD3RyZWFzdXJ5QWRkcmVzcwEAAAAaAVRl+PAWCwTAWUJwGp5IjJf/ftwcYvLdu/0AAAAADWFzc2V0c0FkZHJlc3MBAAAAGgFUy+a0wXfXHSctaxYQS8qRSOspiwoalaeaAAAAABJtYXJrZXRwbGFjZUFkZHJlc3MBAAAAGgFUHSG5k/H8GMOnG0lxFkOWUXTrrFQuJbzvAAAAABRjb25maWd1cmF0aW9uQWRkcmVzcwEAAAAaAVTbIMuXkVY/Qg5sp2U1gothv7V0cji00C4AAAAADm5hdGlvbnNBZGRyZXNzAQAAABoBVE2F6N70+ERrWRA7cF/Dt7llDlH1REZtoAAAAAALYWRtaW5XYWxsZXQJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNcE50a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AAAAA25pbAQAAAAHJG1hdGNoMAUAAAACdHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAWZ2V0QXNzZXRPd25lcktleVN0cmluZwAAAAEFAAAAB2Fzc2V0SWQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAKUVycm9yIHB1dHRpbmcgdGhlIGl0ZW0gb24gdGhlIG1hcmtldHBsYWNlAAAAAWkBAAAABkRlbEtleQAAAAEAAAADa2V5AwkBAAAAASEAAAABCQEAAAAKY2hlY2tBZG1pbgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwAAAABaQEAAAAGVXBkS2V5AAAAAgAAAANrZXkAAAADdmFsAwkBAAAAASEAAAABCQEAAAAKY2hlY2tBZG1pbgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAADa2V5BQAAAAN2YWwFAAAAA25pbAAAAAAAd7Co", "height": 2118035, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CA5y7adHxU1a2mtqKncxW4AqiW1WAPZ7PUKQMtVndkqE Next: GokZw4JeTL857kKJRan2p3po45ro6bECWFBYASpcDd8N Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | match dist { | |
488 | - | case dd: List[Any] => | |
489 | - | if (((qtyAsset - qty) > 0)) | |
490 | - | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
491 | - | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
492 | - | case _ => | |
493 | - | throw("error distributigmn rewards") | |
494 | - | } | |
487 | + | if (((qtyAsset - qty) > 0)) | |
488 | + | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
489 | + | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
495 | 490 | case _ => | |
496 | 491 | throw("Error setting user power") | |
497 | 492 | } | |
513 | 508 | ||
514 | 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) | |
515 | 510 | } | |
516 | - | match dist { | |
517 | - | case dd: List[Any] => | |
518 | - | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
519 | - | if ((pw == pw)) | |
520 | - | then match pw { | |
521 | - | case r: Int => | |
511 | + | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
512 | + | if ((pw == pw)) | |
513 | + | then match pw { | |
514 | + | case r: Int => | |
522 | 515 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
523 | - | case _ => | |
524 | - | throw("Error setting user power") | |
525 | - | } | |
526 | - | else throw("Strict value is not equal to itself.") | |
527 | - | case _ => | |
528 | - | throw("error distributigmn rewards") | |
529 | - | } | |
516 | + | case _ => | |
517 | + | throw("Error setting user power") | |
518 | + | } | |
519 | + | else throw("Strict value is not equal to itself.") | |
530 | 520 | } | |
531 | 521 | } | |
532 | 522 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf' | |
5 | 5 | ||
6 | 6 | let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ' | |
7 | 7 | ||
8 | 8 | let assetsAddress = base58'3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb' | |
9 | 9 | ||
10 | 10 | let marketplaceAddress = base58'3Mra7mjPipcQd5sJaRmXK8xgS4scb8gPF4A' | |
11 | 11 | ||
12 | 12 | let configurationAddress = base58'3N9tj3b2djcaZozn97VkYchL9S1i6cdEbC1' | |
13 | 13 | ||
14 | 14 | let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy' | |
15 | 15 | ||
16 | 16 | let adminWallet = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9") | |
17 | 17 | ||
18 | 18 | let dailyGameRewardsWallet = addressFromStringValue("3MuSrXTTiwo9bdoD6FeaBpMUYMiU5saDv2U") | |
19 | 19 | ||
20 | 20 | let dailyStakingRewardsWallet = addressFromStringValue("3Mv3mr3uNXdpgkVPApbGEJjMQXqau37DY5i") | |
21 | 21 | ||
22 | 22 | func checkAdmin (caller) = if (if (if (if (if ((caller == adminWallet)) | |
23 | 23 | then true | |
24 | 24 | else (caller == this)) | |
25 | 25 | then true | |
26 | 26 | else (caller.bytes == assetsAddress)) | |
27 | 27 | then true | |
28 | 28 | else (caller.bytes == treasuryAddress)) | |
29 | 29 | then true | |
30 | 30 | else (caller.bytes == marketplaceAddress)) | |
31 | 31 | then true | |
32 | 32 | else (caller.bytes == nationsAddress) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func tryGetInteger (key) = match getInteger(this, key) { | |
36 | 36 | case b: Int => | |
37 | 37 | b | |
38 | 38 | case _ => | |
39 | 39 | 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func tryGetBoolean (key) = match getBoolean(this, key) { | |
44 | 44 | case b: Boolean => | |
45 | 45 | b | |
46 | 46 | case _ => | |
47 | 47 | false | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func tryGetString (key) = match getString(this, key) { | |
52 | 52 | case b: String => | |
53 | 53 | b | |
54 | 54 | case _ => | |
55 | 55 | "" | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getALKey (Name,Level) = ((Name + "_lvl") + toString(Level)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func confTryGetInteger (key) = match getInteger(Address(configurationAddress), key) { | |
63 | 63 | case b: Int => | |
64 | 64 | b | |
65 | 65 | case _ => | |
66 | 66 | 0 | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func confTryGetString (key) = match getString(Address(configurationAddress), key) { | |
71 | 71 | case b: String => | |
72 | 72 | b | |
73 | 73 | case _ => | |
74 | 74 | "" | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func confTryGetBoolean (key) = match getBoolean(Address(configurationAddress), key) { | |
79 | 79 | case b: Boolean => | |
80 | 80 | b | |
81 | 81 | case _ => | |
82 | 82 | false | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getTreasuryKey (nationid) = (nationid + "_Treasury") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func treasuryTryGetInteger (key) = match getInteger(Address(treasuryAddress), key) { | |
90 | 90 | case b: Int => | |
91 | 91 | b | |
92 | 92 | case _ => | |
93 | 93 | 0 | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func nationsTryGetInteger (key) = match getInteger(Address(nationsAddress), key) { | |
98 | 98 | case b: Int => | |
99 | 99 | b | |
100 | 100 | case _ => | |
101 | 101 | 0 | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func nationsTryGetBoolean (key) = match getBoolean(Address(nationsAddress), key) { | |
106 | 106 | case b: Boolean => | |
107 | 107 | b | |
108 | 108 | case _ => | |
109 | 109 | false | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func nationsTryGetString (key) = match getString(Address(nationsAddress), key) { | |
114 | 114 | case b: String => | |
115 | 115 | b | |
116 | 116 | case _ => | |
117 | 117 | "" | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func getAssetOwnerKeyString (assetId) = (assetId + "_Owner") | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | let BuildStarted = "BUILD_STARTED" | |
125 | 125 | ||
126 | 126 | let BuildFinished = "BUILD_FINISHED" | |
127 | 127 | ||
128 | 128 | func getAssetIdKey (txId,assetType) = ((assetType + "_") + toBase58String(txId)) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func getAssetOwnerKey (txId,assetType) = (getAssetIdKey(txId, assetType) + "_Owner") | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func getBuildingFinishHeightKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_fh") | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getBuildingStatusKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_status") | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getAssetTypeLevel (assetStr) = { | |
141 | 141 | let chunks = split(assetStr, "_") | |
142 | 142 | let strAssetType = chunks[0] | |
143 | 143 | let level = parseIntValue(drop(chunks[1], 3)) | |
144 | 144 | $Tuple2(strAssetType, level) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func internalDistrib (addressStr,amount) = { | |
149 | 149 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [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 | - | match dist { | |
488 | - | case dd: List[Any] => | |
489 | - | if (((qtyAsset - qty) > 0)) | |
490 | - | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
491 | - | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
492 | - | case _ => | |
493 | - | throw("error distributigmn rewards") | |
494 | - | } | |
487 | + | if (((qtyAsset - qty) > 0)) | |
488 | + | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
489 | + | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
495 | 490 | case _ => | |
496 | 491 | throw("Error setting user power") | |
497 | 492 | } | |
498 | 493 | } | |
499 | 494 | } | |
500 | 495 | else { | |
501 | 496 | let attackers = split(toAddress, "#") | |
502 | 497 | let dist = { | |
503 | 498 | let $l = attackers | |
504 | 499 | let $s = size($l) | |
505 | 500 | let $acc0 = nil | |
506 | 501 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
507 | 502 | then $a | |
508 | 503 | else distribDestroyRewards($a, $l[$i]) | |
509 | 504 | ||
510 | 505 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
511 | 506 | then $a | |
512 | 507 | else throw("List size exceeds 50") | |
513 | 508 | ||
514 | 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) | |
515 | 510 | } | |
516 | - | match dist { | |
517 | - | case dd: List[Any] => | |
518 | - | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
519 | - | if ((pw == pw)) | |
520 | - | then match pw { | |
521 | - | case r: Int => | |
511 | + | let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil) | |
512 | + | if ((pw == pw)) | |
513 | + | then match pw { | |
514 | + | case r: Int => | |
522 | 515 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
523 | - | case _ => | |
524 | - | throw("Error setting user power") | |
525 | - | } | |
526 | - | else throw("Strict value is not equal to itself.") | |
527 | - | case _ => | |
528 | - | throw("error distributigmn rewards") | |
529 | - | } | |
516 | + | case _ => | |
517 | + | throw("Error setting user power") | |
518 | + | } | |
519 | + | else throw("Strict value is not equal to itself.") | |
530 | 520 | } | |
531 | 521 | } | |
532 | 522 | } | |
533 | 523 | ||
534 | 524 | ||
535 | 525 | ||
536 | 526 | @Callable(i) | |
537 | 527 | func destroyAssetFromUser (assetId,qty) = { | |
538 | 528 | let chunks = getAssetTypeLevel(assetId) | |
539 | 529 | let strAssetType = chunks._1 | |
540 | 530 | let level = chunks._2 | |
541 | 531 | let k = getALKey(strAssetType, level) | |
542 | 532 | if (!(checkAssetOwner(toString(i.caller), assetId))) | |
543 | 533 | then throw("You don't own this asset") | |
544 | 534 | else { | |
545 | 535 | let assetCoins = tryGetInteger(assetId) | |
546 | 536 | let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power")) | |
547 | 537 | let assetPower = confTryGetInteger((k + "_Power")) | |
548 | 538 | if (confTryGetBoolean((k + "_Aggregated"))) | |
549 | 539 | then { | |
550 | 540 | let unitAssetCoins = ((confTryGetInteger((k + "_Cost")) * 20) / 100) | |
551 | 541 | let qtyAsset = tryGetInteger((k + "_Qty")) | |
552 | 542 | if ((0 > (qtyAsset - qty))) | |
553 | 543 | then throw(("you don't have enough " + strAssetType)) | |
554 | 544 | else { | |
555 | 545 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - (assetPower * qty))], nil) | |
556 | 546 | match pw { | |
557 | 547 | case r: Int => | |
558 | 548 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), (unitAssetCoins * qty)], nil) | |
559 | 549 | match tr { | |
560 | 550 | case t: Int => | |
561 | 551 | if (((qtyAsset - qty) > 0)) | |
562 | 552 | then [IntegerEntry((k + "_Qty"), (qtyAsset - qty))] | |
563 | 553 | else [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
564 | 554 | case _ => | |
565 | 555 | throw("Error transferring coins") | |
566 | 556 | } | |
567 | 557 | case _ => | |
568 | 558 | throw("Error setting user power") | |
569 | 559 | } | |
570 | 560 | } | |
571 | 561 | } | |
572 | 562 | else { | |
573 | 563 | let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil) | |
574 | 564 | match pw { | |
575 | 565 | case r: Int => | |
576 | 566 | let tr = invoke(Address(treasuryAddress), "adminTransfer", [toString(i.caller), assetCoins], nil) | |
577 | 567 | match tr { | |
578 | 568 | case t: Int => | |
579 | 569 | [DeleteEntry(assetId), DeleteEntry(getAssetOwnerKeyString(assetId))] | |
580 | 570 | case _ => | |
581 | 571 | throw("Error transferring coins") | |
582 | 572 | } | |
583 | 573 | case _ => | |
584 | 574 | throw("Error setting user power") | |
585 | 575 | } | |
586 | 576 | } | |
587 | 577 | } | |
588 | 578 | } | |
589 | 579 | ||
590 | 580 | ||
591 | 581 | ||
592 | 582 | @Callable(i) | |
593 | 583 | func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller)) | |
594 | 584 | then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true) | |
595 | 585 | else { | |
596 | 586 | let currentOwner = tryGetString((nationKey + "_Owner")) | |
597 | 587 | if ((currentOwner != toString(i.caller))) | |
598 | 588 | then throw("You are not the nation owner") | |
599 | 589 | else [StringEntry((nationKey + "_Owner"), newOwner)] | |
600 | 590 | } | |
601 | 591 | ||
602 | 592 | ||
603 | 593 | ||
604 | 594 | @Callable(i) | |
605 | 595 | func buyNationItem (assetId,NationKey) = { | |
606 | 596 | let chunks = getAssetTypeLevel(assetId) | |
607 | 597 | let strAssetType = chunks._1 | |
608 | 598 | let level = chunks._2 | |
609 | 599 | let k = getALKey(strAssetType, level) | |
610 | 600 | let n = nationsTryGetInteger(toString(i.caller)) | |
611 | 601 | let nid = nationsTryGetInteger(NationKey) | |
612 | 602 | if ((n != nid)) | |
613 | 603 | then throw("you can buy assets only from your nation") | |
614 | 604 | else if (!(checkAssetOwner(NationKey, assetId))) | |
615 | 605 | then throw("The asset does not belong to the nation") | |
616 | 606 | else if (!(isNationReservedAsset(strAssetType, level))) | |
617 | 607 | then throw("this asset cannot be sold by the nation") | |
618 | 608 | else { | |
619 | 609 | let assetPrice = confTryGetInteger((getALKey(strAssetType, level) + "_SellPrice")) | |
620 | 610 | let amountIn = value(i.payments[0].amount) | |
621 | 611 | if ((assetPrice > amountIn)) | |
622 | 612 | then throw(("You provided less $heg than the needed cost for buying this " + strAssetType)) | |
623 | 613 | else if ((i.payments[0].assetId != shinywggid)) | |
624 | 614 | then throw("Only $HEG payments allowed") | |
625 | 615 | else { | |
626 | 616 | let a = invoke(Address(treasuryAddress), "increaseNationWallet", [NationKey, amountIn], nil) | |
627 | 617 | match a { | |
628 | 618 | case b: Int => | |
629 | 619 | (internalTrasnferOwnership(assetId, toString(i.caller)) :+ ScriptTransfer(Address(treasuryAddress), amountIn, shinywggid)) | |
630 | 620 | case _ => | |
631 | 621 | throw("Error transferring SHEG to nations wallet") | |
632 | 622 | } | |
633 | 623 | } | |
634 | 624 | } | |
635 | 625 | } | |
636 | 626 | ||
637 | 627 | ||
638 | 628 | ||
639 | 629 | @Callable(i) | |
640 | 630 | func AddAssetFromMarkeplace (assetId,oldOwner,assetSheg) = if (!(checkAdmin(i.caller))) | |
641 | 631 | then throw("You are not allowed to perform this operation") | |
642 | 632 | else $Tuple2([StringEntry(getAssetOwnerKeyString(assetId), oldOwner), IntegerEntry(assetId, assetSheg)], oldOwner) | |
643 | 633 | ||
644 | 634 | ||
645 | 635 | ||
646 | 636 | @Callable(i) | |
647 | 637 | func TransferAssetToMarketplace (assetId,sellprice) = if (!(checkAssetOwner(toString(i.caller), assetId))) | |
648 | 638 | then throw("You are not the owner of this asset") | |
649 | 639 | else { | |
650 | 640 | let assetSheg = tryGetInteger(assetId) | |
651 | 641 | let tr = invoke(Address(marketplaceAddress), "putOnSale", [assetId, assetSheg, sellprice], nil) | |
652 | 642 | match tr { | |
653 | 643 | case t: Int => | |
654 | 644 | [DeleteEntry(getAssetOwnerKeyString(assetId)), DeleteEntry(assetId)] | |
655 | 645 | case _ => | |
656 | 646 | throw("Error putting the item on the marketplace") | |
657 | 647 | } | |
658 | 648 | } | |
659 | 649 | ||
660 | 650 | ||
661 | 651 | ||
662 | 652 | @Callable(i) | |
663 | 653 | func DelKey (key) = if (!(checkAdmin(i.caller))) | |
664 | 654 | then throw("") | |
665 | 655 | else [DeleteEntry(key)] | |
666 | 656 | ||
667 | 657 | ||
668 | 658 | ||
669 | 659 | @Callable(i) | |
670 | 660 | func UpdKey (key,val) = if (!(checkAdmin(i.caller))) | |
671 | 661 | then throw("") | |
672 | 662 | else [StringEntry(key, val)] | |
673 | 663 | ||
674 | 664 |
github/deemru/w8io/026f985 66.92 ms ◑