tx · ADWHsvHiAEdRJBP3w8b2uNUxPrpsxS7PWuM9cxPuuGuL

3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe:  -0.01700000 Waves

2024.12.27 22:31 [3433355] smart account 3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe > SELF 0.00000000 Waves

{ "type": 13, "id": "ADWHsvHiAEdRJBP3w8b2uNUxPrpsxS7PWuM9cxPuuGuL", "fee": 1700000, "feeAssetId": null, "timestamp": 1735327895167, "version": 2, "chainId": 84, "sender": "3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe", "senderPublicKey": "CqqNd9FdJdY64okp1oAAQ8z3kyrEcd6UKxtboqZgrSaP", "proofs": [ "48kTxHqbHJMy5QXVjegGKGhp9naEc5T9E8dCW58eGujxc5gq1JxzsVvhedusdbUoP4zNE8QjGvAqtUA3Q1HjSYCj" ], "script": "base64:BgIWCAISAwoBCBIAEgQKAgQIEgASAwoBCCEBB2dldEJvb2wBA2tleQQHJG1hdGNoMAkAmwgCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAUBYgcBCWlzVGVzdEVudgAJAQdnZXRCb29sAQIHVEVTVEVOVgEXc3RhdGljS2V5X29yYWNsZUFkZHJlc3MAAhRzdGF0aWNfb3JhY2xlQWRkcmVzcwEYc3RhdGljS2V5X2JyZWVkZXJBZGRyZXNzAAIVc3RhdGljX2JyZWVkZXJBZGRyZXNzARZzdGF0aWNLZXlfaXRlbXNBZGRyZXNzAAITc3RhdGljX2l0ZW1zQWRkcmVzcwESc3RhdGljS2V5X2V4dHJhRmVlAAIPc3RhdGljX2V4dHJhRmVlARhzdGF0aWNLZXlfZXh0cmFGZWVSZW1vdmUAAhVzdGF0aWNfZXh0cmFGZWVSZW1vdmUBF3N0YXRpY0tleV9mZWVBZ2dyZWdhdG9yAAIUc3RhdGljX2ZlZUFnZ3JlZ2F0b3IACXdlYXJhYmxlcwkAzAgCAghBU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cnN0VXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUJZmlyc3RVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQlmaXJzdFVzZXIAAQAABBBzZWNvbmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUKc2Vjb25kVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUKc2Vjb25kVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUKc2Vjb25kVXNlcgABAAAED3RoaXJkVXNlclNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXRoaXJkVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQl0aGlyZFVzZXIAAQAABA9zaWduYXR1cmVzQ291bnQJAGQCCQBkAgUPZmlyc3RVc2VyU2lnbmVkBRBzZWNvbmRVc2VyU2lnbmVkBQ90aGlyZFVzZXJTaWduZWQEByRtYXRjaDAFAnR4CQBnAgUPc2lnbmF0dXJlc0NvdW50AAL6xfYM", "height": 3433355, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A58P45XBxWJVReZM3jtpcTPjNFDBCPrSiJXboKL9HHWK Next: none Diff:
OldNewDifferences
367367
368368 $f0_2($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)
369369 }
370- $Tuple2([IntegerEntry("totalBoost", totalBoost)], totalBoost)
370+ $Tuple2([IntegerEntry((duckId + "_lastBoost"), totalBoost)], totalBoost)
371371 }
372372
373373
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getBool (key) = match getBoolean(this, key) {
55 case b: Boolean =>
66 b
77 case _ =>
88 false
99 }
1010
1111
1212 func isTestEnv () = getBool("TESTENV")
1313
1414
1515 func staticKey_oracleAddress () = "static_oracleAddress"
1616
1717
1818 func staticKey_breederAddress () = "static_breederAddress"
1919
2020
2121 func staticKey_itemsAddress () = "static_itemsAddress"
2222
2323
2424 func staticKey_extraFee () = "static_extraFee"
2525
2626
2727 func staticKey_extraFeeRemove () = "static_extraFeeRemove"
2828
2929
3030 func staticKey_feeAggregator () = "static_feeAggregator"
3131
3232
3333 let wearables = ["ART-CAPE", "ART-HAT", "ART-XSCARF", "ART-XSWEATER"]
3434
3535 func keyArtefactDuck (duckId,wearable) = ((duckId + "_") + wearable)
3636
3737
3838 func keyTypesDuck (duckId,type) = ((duckId + "_") + type)
3939
4040
4141 func tryGetStringExternal (address,key) = match getString(address, key) {
4242 case a: String =>
4343 a
4444 case _ =>
4545 ""
4646 }
4747
4848
4949 func tryGetString (key) = tryGetStringExternal(this, key)
5050
5151
5252 func asInt (value) = match value {
5353 case int: Int =>
5454 int
5555 case _ =>
5656 throw("wrong type, expected: Int")
5757 }
5858
5959
6060 func asString (value) = match value {
6161 case string: String =>
6262 string
6363 case _ =>
6464 throw("wrong type, expected: String")
6565 }
6666
6767
6868 func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress())))
6969
7070
7171 func getBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_breederAddress())))
7272
7373
7474 func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress())))
7575
7676
7777 func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator())))
7878
7979
8080 func getTurtleIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_turtleIncubatorAddress")))
8181
8282
8383 func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_turtleBreederAddress")))
8484
8585
8686 func getIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_incubatorAddress")))
8787
8888
8989 func getCanineIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_canineIncubatorAddress")))
9090
9191
9292 func getCanineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_canineBreederAddress")))
9393
9494
9595 func getFelineIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_felineIncubatorAddress")))
9696
9797
9898 func getFelineBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_felineBreederAddress")))
9999
100100
101101 func getMutantBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), "static_mutantIncubatorAddress")))
102102
103103
104104 func checkAdditionalPayment (payment,amountOverride) = if (isDefined(payment.assetId))
105105 then throw("WCAP: Please attach waves")
106106 else {
107107 let feeAmount = if ((amountOverride != 0))
108108 then amountOverride
109109 else getIntegerValue(getOracle(), staticKey_extraFee())
110110 if ((payment.amount != feeAmount))
111111 then throw((("WCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets"))
112112 else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)]
113113 }
114114
115115
116116 func tryGetCosmeticItem (item) = {
117117 let key = ("direct_cosmetic_" + item)
118118 match getInteger(getItemsAddress(), key) {
119119 case a: Int =>
120120 a
121121 case _ =>
122122 unit
123123 }
124124 }
125125
126126
127127 func tryGetType (wearable) = tryGetStringExternal(getItemsAddress(), ("type_cosmetic_" + wearable))
128128
129129
130130 func wearItem (assetIdWearAble,duckId,allTypes) = {
131131 let artefactName = asString(invoke(getItemsAddress(), "checkArtefactDetails", [assetIdWearAble], nil))
132132 if ((artefactName == artefactName))
133133 then if (if (!(containsElement(wearables, artefactName)))
134134 then !(isDefined(tryGetCosmeticItem(artefactName)))
135135 else false)
136136 then throw("WRITD: Unsupported wearable")
137137 else {
138138 let artefactId = tryGetString(keyArtefactDuck(duckId, artefactName))
139139 let boostDuck = if ((artefactName == "ART-XSCARF"))
140140 then invoke(getItemsAddress(), "manipulateBoost", [69, duckId], nil)
141141 else nil
142142 if ((boostDuck == boostDuck))
143143 then if ((artefactId != ""))
144144 then throw(("Duck is already wearing a " + artefactName))
145145 else {
146146 let type = tryGetType(artefactName)
147147 if (if (!(allTypes))
148148 then (type != "PET")
149149 else false)
150150 then throw("You can't attach this item to your NFT! Pets only!")
151151 else {
152152 let typeOnDuck = if ((type != ""))
153153 then (tryGetString(keyTypesDuck(duckId, type)) != "")
154154 else throw(("Type undefined, please contact admins " + artefactName))
155155 if (typeOnDuck)
156156 then throw("You can only attach 1 from each type to your duck!")
157157 else {
158158 let typeResult = if ((type != ""))
159159 then [StringEntry(keyTypesDuck(duckId, type), assetIdWearAble)]
160160 else nil
161161 ([StringEntry(keyArtefactDuck(duckId, artefactName), assetIdWearAble)] ++ typeResult)
162162 }
163163 }
164164 }
165165 else throw("Strict value is not equal to itself.")
166166 }
167167 else throw("Strict value is not equal to itself.")
168168 }
169169
170170
171171 func tryGetBooleanExternal (address,key) = match getBoolean(address, key) {
172172 case b: Boolean =>
173173 b
174174 case _ =>
175175 false
176176 }
177177
178178
179179 func getIfAllTypesAllowed (assetId) = {
180180 let issuer = value(assetInfo(assetId)).issuer
181181 let blacklisted = tryGetBooleanExternal(issuer, (toBase58String(assetId) + "_blacklisted"))
182182 if (blacklisted)
183183 then throw("GO FUCK YOURSELF")
184184 else {
185185 let name = value(assetInfo(assetId)).name
186186 if (if ((issuer == getIncubatorAddress()))
187187 then true
188188 else (issuer == getBreederAddress()))
189189 then true
190190 else if (if ((issuer == getTurtleIncubatorAddress()))
191191 then true
192192 else (issuer == getTurtleBreederAddress()))
193193 then false
194194 else if (if ((issuer == getCanineIncubatorAddress()))
195195 then true
196196 else (issuer == getCanineBreederAddress()))
197197 then false
198198 else if (if ((issuer == getFelineIncubatorAddress()))
199199 then true
200200 else (issuer == getFelineBreederAddress()))
201201 then false
202202 else if ((issuer == getMutantBreederAddress()))
203203 then false
204204 else throw("MAG: Asset is not supported")
205205 }
206206 }
207207
208208
209209 @Callable(i)
210210 func configureOracle (oracle) = if ((i.caller != this))
211211 then throw("admin only")
212212 else [StringEntry(staticKey_oracleAddress(), oracle)]
213213
214214
215215
216216 @Callable(i)
217217 func wearItemToDuck () = {
218218 let firstPayment = value(i.payments[0])
219219 let secondPayment = value(i.payments[1])
220220 let validPayment = checkAdditionalPayment(i.payments[2], 0)
221221 let duckId = toBase58String(value(firstPayment.assetId))
222222 let secondAssetId = toBase58String(value(secondPayment.assetId))
223223 if (if ((firstPayment.amount != 1))
224224 then true
225225 else (secondPayment.amount != 1))
226226 then throw("WRITD: NFT is not attached")
227227 else {
228228 let allTypes = getIfAllTypesAllowed(value(firstPayment.assetId))
229229 ((wearItem(secondAssetId, duckId, allTypes) ++ [ScriptTransfer(i.caller, 1, firstPayment.assetId)]) ++ validPayment)
230230 }
231231 }
232232
233233
234234
235235 @Callable(i)
236236 func removeItemFromDuck (burnItem,artefactName) = {
237237 let wavesFee = if (burnItem)
238238 then 0
239239 else getIntegerValue(getOracle(), staticKey_extraFeeRemove())
240240 let duckPayment = value(i.payments[0])
241241 let roboDuckPayment = value(i.payments[1])
242242 let validPayment = checkAdditionalPayment(i.payments[2], wavesFee)
243243 let duckId = toBase58String(value(duckPayment.assetId))
244244 let roboDuckId = toBase58String(value(roboDuckPayment.assetId))
245245 if (if ((duckPayment.amount != 1))
246246 then true
247247 else (roboDuckPayment.amount != 1))
248248 then throw("WRITD: NFT is not attached")
249249 else {
250250 let children = asInt(invoke(getBreederAddress(), "validateAndGetChildren", [duckId], nil))
251251 if ((children == children))
252252 then {
253253 let artefactNameRoboduck = asString(invoke(getItemsAddress(), "checkArtefactDetails", [roboDuckId], nil))
254254 if ((artefactNameRoboduck == artefactNameRoboduck))
255255 then if ((artefactNameRoboduck != "ART-ROBODUCK"))
256256 then throw("Only rododuck can remove items!")
257257 else if (if (!(containsElement(wearables, artefactName)))
258258 then !(isDefined(tryGetCosmeticItem(artefactName)))
259259 else false)
260260 then throw("WRITD: Unsupported wearable")
261261 else {
262262 let artefactId = tryGetString(keyArtefactDuck(duckId, artefactName))
263263 let boostDuck = if ((artefactName == "ART-XSCARF"))
264264 then invoke(getItemsAddress(), "manipulateBoost", [69, duckId], nil)
265265 else nil
266266 if ((boostDuck == boostDuck))
267267 then if ((artefactId == ""))
268268 then throw(("Duck not wearing a " + artefactName))
269269 else {
270270 let type = tryGetType(artefactName)
271271 let typeResult = if ((type != ""))
272272 then [DeleteEntry(keyTypesDuck(duckId, type))]
273273 else nil
274274 let burn = if (burnItem)
275275 then [Burn(fromBase58String(artefactId), 1)]
276276 else [ScriptTransfer(i.caller, 1, fromBase58String(artefactId))]
277277 ((([DeleteEntry(keyArtefactDuck(duckId, artefactName)), ScriptTransfer(i.caller, 1, duckPayment.assetId), Burn(fromBase58String(roboDuckId), 1)] ++ burn) ++ validPayment) ++ typeResult)
278278 }
279279 else throw("Strict value is not equal to itself.")
280280 }
281281 else throw("Strict value is not equal to itself.")
282282 }
283283 else throw("Strict value is not equal to itself.")
284284 }
285285 }
286286
287287
288288
289289 @Callable(i)
290290 func wearXItemsToDuck () = {
291291 let validPayment = checkAdditionalPayment(i.payments[1], 0)
292292 if ((3 > size(i.payments)))
293293 then throw("WWXITD: Please attach at least 1 item and 1 duck!")
294294 else if ((size(i.payments) > 7))
295295 then throw("WWXITD: You can only attach 5 items and one duck!")
296296 else {
297297 func handleItem (acc,payment) = {
298298 let index = indexOf(i.payments, payment)
299299 if ((index == 0))
300300 then {
301301 let duckId = toBase58String(value(payment.assetId))
302302 if ((payment.amount != 1))
303303 then throw("WRITD: Duck is not attached")
304304 else {
305305 let children = asInt(invoke(getBreederAddress(), "validateAndGetChildren", [duckId], nil))
306306 if ((children == children))
307307 then (acc ++ [ScriptTransfer(i.caller, 1, payment.assetId)])
308308 else throw("Strict value is not equal to itself.")
309309 }
310310 }
311311 else (acc ++ wearItem(toBase58String(value(payment.assetId)), toBase58String(value(i.payments[1].assetId)), true))
312312 }
313313
314314 ({
315315 let $l = i.payments
316316 let $s = size($l)
317317 let $acc0 = nil
318318 func $f0_1 ($a,$i) = if (($i >= $s))
319319 then $a
320320 else handleItem($a, $l[$i])
321321
322322 func $f0_2 ($a,$i) = if (($i >= $s))
323323 then $a
324324 else throw("List size exceeds 6")
325325
326326 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
327327 } ++ validPayment)
328328 }
329329 }
330330
331331
332332
333333 @Callable(i)
334334 func calculateWearblesBoost (duckId) = {
335335 let back = tryGetString(keyTypesDuck(duckId, "BACK"))
336336 let head = tryGetString(keyTypesDuck(duckId, "HEAD"))
337337 let left_wing = tryGetString(keyTypesDuck(duckId, "LEFT_WING"))
338338 let right_wing = tryGetString(keyTypesDuck(duckId, "RIGHT_WING"))
339339 let top = tryGetString(keyTypesDuck(duckId, "TOP"))
340340 let pet = tryGetString(keyTypesDuck(duckId, "PET"))
341341 let tail = tryGetString(keyTypesDuck(duckId, "TAIL"))
342342 let accessory = tryGetString(keyTypesDuck(duckId, "ACCESSORY"))
343343 let assetIdArray = [back, head, left_wing, right_wing, top, pet, tail, accessory]
344344 func countTotalBoost (acc,assetId) = if ((assetId != ""))
345345 then {
346346 let artefactName = asString(invoke(getItemsAddress(), "checkArtefactDetails", [assetId], nil))
347347 if ((artefactName == artefactName))
348348 then {
349349 let boost = valueOrErrorMessage(getInteger(("boost_" + artefactName)), ("No boost found for " + artefactName))
350350 (acc + boost)
351351 }
352352 else throw("Strict value is not equal to itself.")
353353 }
354354 else acc
355355
356356 let totalBoost = {
357357 let $l = assetIdArray
358358 let $s = size($l)
359359 let $acc0 = 0
360360 func $f0_1 ($a,$i) = if (($i >= $s))
361361 then $a
362362 else countTotalBoost($a, $l[$i])
363363
364364 func $f0_2 ($a,$i) = if (($i >= $s))
365365 then $a
366366 else throw("List size exceeds 8")
367367
368368 $f0_2($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)
369369 }
370- $Tuple2([IntegerEntry("totalBoost", totalBoost)], totalBoost)
370+ $Tuple2([IntegerEntry((duckId + "_lastBoost"), totalBoost)], totalBoost)
371371 }
372372
373373
374374 @Verifier(tx)
375375 func verify () = if (isTestEnv())
376376 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
377377 else {
378378 let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4'
379379 let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8'
380380 let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3'
381381 let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser))
382382 then 1
383383 else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser))
384384 then 1
385385 else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser))
386386 then 1
387387 else 0
388388 let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser))
389389 then 1
390390 else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser))
391391 then 1
392392 else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser))
393393 then 1
394394 else 0
395395 let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser))
396396 then 1
397397 else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser))
398398 then 1
399399 else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser))
400400 then 1
401401 else 0
402402 let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned)
403403 match tx {
404404 case _ =>
405405 (signaturesCount >= 2)
406406 }
407407 }
408408

github/deemru/w8io/169f3d6 
36.22 ms