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 NFTIssuerAddress = base58'3N992tjd7EWM6dSHrdVjjjuJrLD4koNztZ9' | |
5 | + | ||
6 | + | func getAssetGenotype (assetId) = if ((value(assetInfo(assetId)).issuer == Address(NFTIssuerAddress))) | |
7 | + | then "ART" | |
8 | + | else "" | |
9 | + | ||
10 | + | ||
11 | + | @Callable(i) | |
12 | + | func initAuction (startPrice,instantPrice,description,eggSell) = { | |
13 | + | let auctionId = toBase58String(i.transactionId) | |
14 | + | let pmt = value(i.payments[0]) | |
15 | + | let assetId = value(pmt.assetId) | |
16 | + | let asset = getAssetGenotype(assetId) | |
17 | + | if ((asset == "")) | |
18 | + | then throw("You can only sell an NFT-duck created in incubator or breeder") | |
19 | + | else [StringEntry((("auction_" + auctionId) + "_status"), "open"), BooleanEntry((("auction_" + auctionId) + "_eggSell"), (eggSell == "true")), StringEntry((("auction_" + toBase58String(assetId)) + "_last"), auctionId), StringEntry((("auction_" + auctionId) + "_assetGen"), asset), StringEntry((("auction_" + auctionId) + "_assetId"), toBase58String(assetId)), IntegerEntry((("auction_" + auctionId) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + auctionId) + "_owner"), toString(i.originCaller)), StringEntry((("auction_" + auctionId) + "_description"), description), IntegerEntry((("auction_" + auctionId) + "_startPrice"), startPrice), BooleanEntry((("auction_" + auctionId) + "_isArtefact"), (value(assetInfo(assetId)).issuer == Address(NFTIssuerAddress))), IntegerEntry((("auction_" + auctionId) + "_instantPrice"), instantPrice), StringEntry((((("address_" + toString(i.originCaller)) + "_auction_") + auctionId) + "_lockedNFT"), toBase58String(assetId))] | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | @Verifier(tx) | |
24 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
25 | + |
github/deemru/w8io/169f3d6 17.38 ms ◑