tx · CfG3QU1BHJTxY3eFZXD6iJpZ5wRLn7DtG5qhJR6YPHvm

3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe:  -0.01500000 Waves

2025.01.03 22:10 [3443416] smart account 3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe > SELF 0.00000000 Waves

{ "type": 13, "id": "CfG3QU1BHJTxY3eFZXD6iJpZ5wRLn7DtG5qhJR6YPHvm", "fee": 1500000, "feeAssetId": null, "timestamp": 1735931416872, "version": 2, "chainId": 84, "sender": "3N1oZwpYE3p4x63jWiKpszmfLU3Lk3KtSWe", "senderPublicKey": "CqqNd9FdJdY64okp1oAAQ8z3kyrEcd6UKxtboqZgrSaP", "proofs": [ "4w69io9TTs6eersuqWnzq8VSv4araCr4JDTU7zFr8gZEWVh5bALbCHLE6xZ1YUFKSCy8ev6DiZtCMUW9nk8o4bFU" ], "script": "base64:BgIWCAISAwoBCBIAEgQKAgQIEgASAwoBCCEBB2dldEJvb2wBA2tleQQHJG1hdGNoMAkAmwgCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAUBYgcBCWlzVGVzdEVudgAJAQdnZXRCb29sAQIHVEVTVEVOVgEXc3RhdGljS2V5X29yYWNsZUFkZHJlc3MAAhRzdGF0aWNfb3JhY2xlQWRkcmVzcwEYc3RhdGljS2V5X2JyZWVkZXJBZGRyZXNzAAIVc3RhdGljX2JyZWVkZXJBZGRyZXNzARZzdGF0aWNLZXlfaXRlbXNBZGRyZXNzAAITc3RhdGljX2l0ZW1zQWRkcmVzcwESc3RhdGljS2V5X2V4dHJhRmVlAAIPc3RhdGljX2V4dHJhRmVlARhzdGF0aWNLZXlfZXh0cmFGZWVSZW1vdmUAAhVzdGF0aWNfZXh0cmFGZWVSZW1vdmUBF3N0YXRpY0tleV9mZWVBZ2dyZWdhdG9yAAIUc3RhdGljX2ZlZUFnZ3JlZ2F0b3IACXdlYXJhYmxlcwkAzAgCAgh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DCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJZmlyc3RVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQlmaXJzdFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCWZpcnN0VXNlcgABAAAEEHNlY29uZFVzZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAhqBqHg=", "height": 3443416, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 973cNKYfrjYVZRqwRzvBsFQhs89yrFPHsiNkfgPUaf8i Next: none Diff:
OldNewDifferences
145145 else {
146146 let type = tryGetType(artefactName)
147147 if (if (!(allTypes))
148- then !(containsElement(["PET", "BACK", "TAIL", "ACCESSORY"], type))
148+ then !(containsElement(["PET", "BACK", "TAIL", "ACCESSORY", "HEAD"], type))
149149 else false)
150150 then throw("You can't attach this item to your NFT! Pets only!")
151151 else {
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))
148- then !(containsElement(["PET", "BACK", "TAIL", "ACCESSORY"], type))
148+ then !(containsElement(["PET", "BACK", "TAIL", "ACCESSORY", "HEAD"], type))
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 }
370370 $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 
38.31 ms