tx · GMbyUuT3t2XNz7iihoCAfS8Bn2FPTcwWdVogHtmryUWb

3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb:  -0.01000000 Waves

2022.05.11 14:16 [2046927] smart account 3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb > SELF 0.00000000 Waves

{ "type": 13, "id": "GMbyUuT3t2XNz7iihoCAfS8Bn2FPTcwWdVogHtmryUWb", "fee": 1000000, "feeAssetId": null, "timestamp": 1652267785346, "version": 2, "chainId": 84, "sender": "3N8WDKbqGox5Eky326PHHT7rUyrby5MXdmb", "senderPublicKey": "FWSsBbeCwLVkekWhvNKtX6JkrZiruRybKKVuiS3F4bqN", "proofs": [ "64M9QXYd269Sa5LU74ZJrzwpSqAX8SuFniV6E2oQfz9vsANjHKEbxuyQUnshQP2ViBfGApt7W6TCJW33w87CPgT8" ], "script": "base64:AAIFAAAAAAAAACkIAhIECgIICBIFCgMICAgSBQoDCAgIEgUKAwgICBIECgIICBIECgIICAAAABgAAAAACnNoaW55d2dnaWQBAAAAIIlpzwL/trq51HGW13m4mXYmsHTQd3n0c26G8PRznwYmAAAAAA90cmVhc3VyeUFkZHJlc3MBAAAAGgFUZfjwFgsEwFlCcBqeSIyX/37cHGLy3bv9AAAAAA5uYXRpb25zQWRkcmVzcwEAAAAaAVRNheje9PhEa1kQO3Bfw7e5ZQ5R9URGbaAAAAAADGFkbWluQWRkcmVzcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01wTnRpUFNSU3E2Tm5hUVlrMzhCZldTelpjZ0FZVHlyUTkAAAAADEJ1aWxkU3RhcnRlZAIAAAANQlVJTERfU1RBUlRFRAAAAAANQnVpbGRGaW5pc2hlZAIAAAAOQlVJTERfRklOSVNIRUQAAAAABkFzc2V0cwkABEwAAAACAgAAAAZOYXRpb24JAARMAAAAAgIAAAAEQ2l0eQkABEwAAAACAgAAAAdCYXJyYWNrCQAETAAAAAICAAAABEJhcm4JAARMAAAAAgIAAAAHV2F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yaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACmFzc2V0Q29pbnMFAAAACnNoaW55d2dnaWQFAAAAA25pbAkAAAIAAAABAgAAABdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAOc2V0TmF0aW9uT3duZXIAAAACAAAACW5hdGlvbktleQAAAAhuZXdPd25lcgMJAQAAAApjaGVja0FkbWluAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAFFAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAluYXRpb25LZXkCAAAABl9Pd25lcgUAAAAIbmV3T3duZXIFAAAAA25pbAYEAAAADGN1cnJlbnRPd25lcgkBAAAADHRyeUdldFN0cmluZwAAAAEJAAEsAAAAAgUAAAAJbmF0aW9uS2V5AgAAAAZfT3duZXIDCQEAAAACIT0AAAACBQAAAAxjdXJyZW50T3duZXIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAAHFlvdSBhcmUgbm90IHRoZSBuYXRpb24gb3duZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAluYXRpb25LZXkCAAAABl9Pd25lcgUAAAAIbmV3T3duZXIFAAAAA25pbAAAAAAS7TBM", "height": 2046927, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A8et2oNQnuJ8XYKd38qhzmUTW7pcdoJgqVS15ceCie8p Next: 4W3xtbVdcV5UVKjcPwGATnA8SsBry968uSD5VTTVDc8a Diff:
OldNewDifferences
265265
266266
267267 @Callable(i)
268-func setNationOwner (nationKey,newOwner) = if (!(checkAdmin(i.caller)))
268+func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller))
269269 then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true)
270270 else {
271271 let currentOwner = tryGetString((nationKey + "_Owner"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let shinywggid = base58'AFQS5E4ELtxex3iANtWtUU2V2oWJZSo8VVnK8z3VFmqf'
55
66 let treasuryAddress = base58'3MyDGEoKp1gF4LSRknk9vSuDEyrwuYXcQEQ'
77
88 let nationsAddress = base58'3MvyzDtzWWV5MZ1GP8JfQhhQqiGU4Nbifdy'
99
1010 let adminAddress = addressFromStringValue("3MpNtiPSRSq6NnaQYk38BfWSzZcgAYTyrQ9")
1111
1212 let BuildStarted = "BUILD_STARTED"
1313
1414 let BuildFinished = "BUILD_FINISHED"
1515
1616 let Assets = ["Nation", "City", "Barrack", "Barn", "Warrior", "Settler", "Explorer"]
1717
1818 let assetsCost = [0, 1000000000, 5000000000, 5000000000, 500000000, 10000000000, 100000000]
1919
2020 let assetsDelay = [0, 4, 4, 4, 2, 2, 2]
2121
2222 let assetsPower = [0, 1000, 500, 500, 0, 0, 0]
2323
2424 func treasuryTryGetInteger (key) = match getInteger(Address(treasuryAddress), key) {
2525 case b: Int =>
2626 b
2727 case _ =>
2828 0
2929 }
3030
3131
3232 func nationsTryGetInteger (key) = match getInteger(Address(nationsAddress), key) {
3333 case b: Int =>
3434 b
3535 case _ =>
3636 0
3737 }
3838
3939
4040 func tryGetString (key) = match getString(this, key) {
4141 case b: String =>
4242 b
4343 case _ =>
4444 ""
4545 }
4646
4747
4848 func tryGetInteger (key) = match getInteger(this, key) {
4949 case b: Int =>
5050 b
5151 case _ =>
5252 0
5353 }
5454
5555
5656 func getAssetIdKey (txId,assetType) = ((assetType + "_") + toBase58String(txId))
5757
5858
5959 func getAssetOwnerKey (txId,assetType) = (getAssetIdKey(txId, assetType) + "_Owner")
6060
6161
6262 func getBuildingFinishHeightKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_fh")
6363
6464
6565 func getBuildingStatusKey (address,txId,assetType) = (((address + "_") + getAssetIdKey(txId, assetType)) + "_status")
6666
6767
6868 func getTreasuryKey (nationid) = (nationid + "_Treasury")
6969
7070
7171 func checkAdmin (caller) = if (if (if ((caller == adminAddress))
7272 then true
7373 else (caller == this))
7474 then true
7575 else (caller.bytes == nationsAddress))
7676 then true
7777 else (caller.bytes == treasuryAddress)
7878
7979
8080 func internalFinishBuild (caller,assetStr,assetKey,BuildingStatusKey,finishHeightKey) = {
8181 let buildingFinishHeight = getIntegerValue(this, finishHeightKey)
8282 if ((buildingFinishHeight > height))
8383 then throw((((("Building is not finished yet " + toString((buildingFinishHeight - height))) + " blocks remaining, it will take around ") + toString((buildingFinishHeight - height))) + " minutes"))
8484 else {
8585 let idx = value(indexOf(Assets, assetStr))
8686 let assetPower = assetsPower[idx]
8787 let assetCoins = assetsCost[idx]
8888 let refCall = invoke(Address(treasuryAddress), "Pay", [caller, assetCoins], nil)
8989 if ((refCall == refCall))
9090 then if ((assetPower > 0))
9191 then {
9292 let currentPower = nationsTryGetInteger((caller + "_Power"))
9393 let pw = invoke(Address(nationsAddress), "setUserPower", [caller, (currentPower + assetPower)], nil)
9494 if ((pw == pw))
9595 then [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)]
9696 else throw("Strict value is not equal to itself.")
9797 }
9898 else [IntegerEntry(assetKey, assetCoins), DeleteEntry(BuildingStatusKey), DeleteEntry(finishHeightKey)]
9999 else throw("Strict value is not equal to itself.")
100100 }
101101 }
102102
103103
104104 func checkNationOwner (caller,NationKey) = {
105105 let nationOwner = tryGetString((NationKey + "_Owner"))
106106 (nationOwner == toString(caller))
107107 }
108108
109109
110110 func checkAssetOwner (caller,assetKey) = {
111111 let assetOwner = tryGetString((assetKey + "_Owner"))
112112 (assetOwner == toString(caller))
113113 }
114114
115115
116116 func isNationReservedAsset (strAssetType) = if ((strAssetType == "Settler"))
117117 then true
118118 else (strAssetType == "Explorer")
119119
120120
121121 @Callable(i)
122122 func StartBuild (strAssetType,NationKey) = if (!(containsElement(Assets, strAssetType)))
123123 then throw("This asset is not amanged by the system")
124124 else {
125125 let ind = value(indexOf(Assets, strAssetType))
126126 let delayForBuilding = assetsDelay[ind]
127127 let assetBuildCost = assetsCost[ind]
128128 if (isNationReservedAsset(strAssetType))
129129 then if (if (!(checkNationOwner(i.caller, NationKey)))
130130 then !(checkAdmin(i.caller))
131131 else false)
132132 then throw("You are not authorized to perform this operation")
133133 else {
134134 let nationsheg = treasuryTryGetInteger(getTreasuryKey(NationKey))
135135 if ((assetBuildCost > nationsheg))
136136 then throw("The nation hasn't enough funds")
137137 else {
138138 let d = invoke(Address(treasuryAddress), "decreaseNationWallet", [NationKey, assetBuildCost], nil)
139139 let pw = invoke(Address(treasuryAddress), "arbitraryAddCoins", [NationKey, assetBuildCost], nil)
140140 match pw {
141141 case r: Int =>
142142 [StringEntry(getBuildingStatusKey(toString(i.originCaller), i.transactionId, strAssetType), BuildStarted), StringEntry(getAssetOwnerKey(i.transactionId, strAssetType), NationKey), IntegerEntry(getBuildingFinishHeightKey(toString(i.originCaller), i.transactionId, strAssetType), (height + delayForBuilding))]
143143 case _ =>
144144 throw("Incorrect invoke result")
145145 }
146146 }
147147 }
148148 else {
149149 let amountIn = value(i.payments[0].amount)
150150 if ((assetBuildCost > amountIn))
151151 then throw(("You provided less $heg than the needed cost for building this " + strAssetType))
152152 else if ((i.payments[0].assetId != shinywggid))
153153 then throw("Only $HEG payments allowed")
154154 else {
155155 let pw = invoke(Address(treasuryAddress), "Deposit", nil, i.payments)
156156 match pw {
157157 case r: Int =>
158158 [StringEntry(getBuildingStatusKey(toString(i.originCaller), i.transactionId, strAssetType), BuildStarted), StringEntry(getAssetOwnerKey(i.transactionId, strAssetType), toString(i.originCaller)), IntegerEntry(getBuildingFinishHeightKey(toString(i.originCaller), i.transactionId, strAssetType), (height + delayForBuilding))]
159159 case _ =>
160160 throw("Incorrect invoke result")
161161 }
162162 }
163163 }
164164 }
165165
166166
167167
168168 @Callable(i)
169169 func FinishBuild (txIdStr,assetStr,NationKey) = {
170170 let txId = fromBase58String(txIdStr)
171171 let BuildingStatusKey = getBuildingStatusKey(toString(i.caller), txId, assetStr)
172172 let finishHeightKey = getBuildingFinishHeightKey(toString(i.caller), txId, assetStr)
173173 let assetKey = getAssetIdKey(txId, assetStr)
174174 let assetOwner = tryGetString(getAssetOwnerKey(txId, assetStr))
175175 if (isNationReservedAsset(assetStr))
176176 then if (if (!(checkNationOwner(i.caller, NationKey)))
177177 then !(checkAdmin(i.caller))
178178 else false)
179179 then throw("You are not authorized to perform this operation")
180180 else internalFinishBuild(NationKey, assetStr, assetKey, BuildingStatusKey, finishHeightKey)
181181 else if ((assetOwner != toString(i.caller)))
182182 then throw(("You cannot claim other's players " + assetStr))
183183 else {
184184 let buildingTxStatus = tryGetString(BuildingStatusKey)
185185 if ((buildingTxStatus == ""))
186186 then throw("No pending operations for this asset")
187187 else internalFinishBuild(toString(i.caller), assetStr, assetKey, BuildingStatusKey, finishHeightKey)
188188 }
189189 }
190190
191191
192192
193193 @Callable(i)
194194 func transferOwnership (assetId,newOwner,strAssetType) = if (!(checkAdmin(i.caller)))
195195 then throw("Only the admin can perform this operation")
196196 else {
197197 let oldOwner = tryGetString((assetId + "_Owner"))
198198 let currentPower = nationsTryGetInteger((oldOwner + "_Power"))
199199 let assetPower = assetsPower[value(indexOf(Assets, strAssetType))]
200200 let pw = invoke(Address(nationsAddress), "setUserPower", [oldOwner, (currentPower - assetPower)], nil)
201201 if ((pw == pw))
202202 then if ((pw != (currentPower - assetPower)))
203203 then throw("Incorrect invoke result")
204204 else {
205205 let newcurrentPower = nationsTryGetInteger((newOwner + "_Power"))
206206 let pw2 = invoke(Address(nationsAddress), "setUserPower", [newOwner, (newcurrentPower + assetPower)], nil)
207207 if ((pw2 == pw2))
208208 then match pw2 {
209209 case r: Int =>
210210 [StringEntry((assetId + "_Owner"), newOwner)]
211211 case _ =>
212212 throw("Incorrect invoke result")
213213 }
214214 else throw("Strict value is not equal to itself.")
215215 }
216216 else throw("Strict value is not equal to itself.")
217217 }
218218
219219
220220
221221 @Callable(i)
222222 func destroyAssetAndTransfer (assetId,toAddress,strAssetType) = if (!(checkAdmin(i.caller)))
223223 then throw("Only the admin can perform this operation")
224224 else {
225225 let oldOwner = tryGetString((assetId + "_Owner"))
226226 let assetCoins = tryGetInteger(assetId)
227227 let refCall = invoke(Address(treasuryAddress), "arbitraryAddCoins", [toAddress, assetCoins], nil)
228228 if ((refCall == refCall))
229229 then {
230230 let currentPower = nationsTryGetInteger((oldOwner + "_Power"))
231231 let assetPower = assetsPower[value(indexOf(Assets, strAssetType))]
232232 let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil)
233233 if ((pw == pw))
234234 then match pw {
235235 case r: Int =>
236236 [DeleteEntry(assetId)]
237237 case _ =>
238238 throw("Incorrect invoke result")
239239 }
240240 else throw("Strict value is not equal to itself.")
241241 }
242242 else throw("Strict value is not equal to itself.")
243243 }
244244
245245
246246
247247 @Callable(i)
248248 func destroyAssetFromUser (assetId,strAssetType) = if (!(checkAssetOwner(i.caller, assetId)))
249249 then throw("You don't own this asset")
250250 else {
251251 let assetCoins = tryGetInteger(assetId)
252252 let currentPower = nationsTryGetInteger((toString(i.caller) + "_Power"))
253253 let assetPower = assetsPower[value(indexOf(Assets, strAssetType))]
254254 let pw = invoke(Address(nationsAddress), "setUserPower", [toString(i.caller), (currentPower - assetPower)], nil)
255255 if ((pw == pw))
256256 then match pw {
257257 case r: Int =>
258258 [DeleteEntry(assetId), ScriptTransfer(i.caller, assetCoins, shinywggid)]
259259 case _ =>
260260 throw("Incorrect invoke result")
261261 }
262262 else throw("Strict value is not equal to itself.")
263263 }
264264
265265
266266
267267 @Callable(i)
268-func setNationOwner (nationKey,newOwner) = if (!(checkAdmin(i.caller)))
268+func setNationOwner (nationKey,newOwner) = if (checkAdmin(i.caller))
269269 then $Tuple2([StringEntry((nationKey + "_Owner"), newOwner)], true)
270270 else {
271271 let currentOwner = tryGetString((nationKey + "_Owner"))
272272 if ((currentOwner != toString(i.caller)))
273273 then throw("You are not the nation owner")
274274 else [StringEntry((nationKey + "_Owner"), newOwner)]
275275 }
276276
277277

github/deemru/w8io/026f985 
147.92 ms