tx · 91C2GFWuWgVXb1cGNeDFGRYcVGjmaSLgbJT51d5Ruw8Z 3MtVYGt1cJJB8g21cvSzJScK3hxUi9JHdcN: -0.01000000 Waves 2021.12.23 11:59 [1846696] smart account 3MtVYGt1cJJB8g21cvSzJScK3hxUi9JHdcN > SELF 0.00000000 Waves
{ "type": 13, "id": "91C2GFWuWgVXb1cGNeDFGRYcVGjmaSLgbJT51d5Ruw8Z", "fee": 1000000, "feeAssetId": null, "timestamp": 1640250001539, "version": 2, "chainId": 84, "sender": "3MtVYGt1cJJB8g21cvSzJScK3hxUi9JHdcN", "senderPublicKey": "65qdY9G3EVQgF1GhvrT6rw2zPmUsFirt9Kjm5q5fdJvu", "proofs": [ "3At6gmovWPQyyhrvYdAfCrHCSe6h2xqnKaZiFGM4Y3C96voUZ7fk5cSMheJmjQwFhtm67UY7w8cK215hQ8ySanKf" ], "script": "base64:AAIFAAAAAAAAAM4IAhIGCgQBAQgIGhUKAWESEE5GVElzc3VlckFkZHJlc3MaFQoBYhIQZ2V0QXNzZXRHZW5vdHlwZRoMCgFjEgdhc3NldElkGgYKAWQSAWkaDwoBZRIKc3RhcnRQcmljZRoRCgFmEgxpbnN0YW50UHJpY2UaEAoBZxILZGVzY3JpcHRpb24aDAoBaBIHZWdnU2VsbBoOCgFpEglhdWN0aW9uSWQaCAoBahIDcG10GgoKAWsSBWFzc2V0GgcKAWwSAnR4GgsKAW0SBnZlcmlmeQAAAAIAAAAAAWEBAAAAGgFU0t1kJimk0QfLjhnM4dx9SI3rWpJESD+sAQAAAAFiAAAAAQAAAAFjAwkAAAAAAAACCAkBAAAABXZhbHVlAAAAAQkAA+wAAAABBQAAAAFjAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABBQAAAAFhAgAAAANBUlQCAAAAAAAAAAEAAAABZAEAAAALaW5pdEF1Y3Rpb24AAAAEAAAAAWUAAAABZgAAAAFnAAAAAWgEAAAAAWkJAAJYAAAAAQgFAAAAAWQAAAANdHJhbnNhY3R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sAAAAAgkAASwAAAACAgAAAAhhdWN0aW9uXwUAAAABaQIAAAAGX293bmVyCQAEJQAAAAEIBQAAAAFkAAAADG9yaWdpbkNhbGxlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIYXVjdGlvbl8FAAAAAWkCAAAADF9kZXNjcmlwdGlvbgUAAAABZwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACGF1Y3Rpb25fBQAAAAFpAgAAAAtfc3RhcnRQcmljZQUAAAABZQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAACGF1Y3Rpb25fBQAAAAFpAgAAAAtfaXNBcnRlZmFjdAkAAAAAAAACCAkBAAAABXZhbHVlAAAAAQkAA+wAAAABBQAAAAFjAAAABmlzc3VlcgkBAAAAB0FkZHJlc3MAAAABBQAAAAFhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIYXVjdGlvbl8FAAAAAWkCAAAADV9pbnN0YW50UHJpY2UFAAAAAWYJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAhhZGRyZXNzXwkABCUAAAABCAUAAAABZAAAAAxvcmlnaW5DYWxsZXICAAAACV9hdWN0aW9uXwUAAAABaQIAAAAKX2xvY2tlZE5GVAkAAlgAAAABBQAAAAFjBQAAAANuaWwAAAABAAAAAWwBAAAAAW0AAAAACQAB9AAAAAMIBQAAAAFsAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABbAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFsAAAAD3NlbmRlclB1YmxpY0tleRHbpng=", "height": 1846696, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: C9bYyTpag8remkfU4bhBbXWThdpduKHrJDA2zcCDDerV Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'3N992tjd7EWM6dSHrdVjjjuJrLD4koNztZ9' | |
5 | + | ||
6 | + | func b (c) = if ((value(assetInfo(c)).issuer == Address(a))) | |
7 | + | then "ART" | |
8 | + | else "" | |
9 | + | ||
10 | + | ||
11 | + | @Callable(d) | |
12 | + | func initAuction (e,f,g,h) = { | |
13 | + | let i = toBase58String(d.transactionId) | |
14 | + | let j = value(d.payments[0]) | |
15 | + | let c = value(j.assetId) | |
16 | + | let k = b(c) | |
17 | + | if ((k == "")) | |
18 | + | then throw("You can only sell an NFT-duck created in incubator or breeder") | |
19 | + | else [StringEntry((("auction_" + i) + "_status"), "open"), BooleanEntry((("auction_" + i) + "_eggSell"), (h == "true")), StringEntry((("auction_" + toBase58String(c)) + "_last"), i), StringEntry((("auction_" + i) + "_assetGen"), k), StringEntry((("auction_" + i) + "_assetId"), toBase58String(c)), IntegerEntry((("auction_" + i) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + i) + "_owner"), toString(d.originCaller)), StringEntry((("auction_" + i) + "_description"), g), IntegerEntry((("auction_" + i) + "_startPrice"), e), BooleanEntry((("auction_" + i) + "_isArtefact"), (value(assetInfo(c)).issuer == Address(a))), IntegerEntry((("auction_" + i) + "_instantPrice"), f), StringEntry((((("address_" + toString(d.originCaller)) + "_auction_") + i) + "_lockedNFT"), toBase58String(c))] | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | @Verifier(l) | |
24 | + | func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey) | |
25 | + |
github/deemru/w8io/169f3d6 20.61 ms ◑