tx · AXnVJnPP74K5gGPcKt8GERYrMUwCcsRiwMBnjYNxvJtY

3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo:  -0.01000000 Waves

2021.07.21 15:50 [1623401] smart account 3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo > SELF 0.00000000 Waves

{ "type": 13, "id": "AXnVJnPP74K5gGPcKt8GERYrMUwCcsRiwMBnjYNxvJtY", "fee": 1000000, "feeAssetId": null, "timestamp": 1626871884417, "version": 2, "chainId": 84, "sender": "3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo", "senderPublicKey": "FnirbVvcP4uztniZBesicevXStVuTv73ifvcvisbsSk2", "proofs": [ "679KqsKnQPfstvLeqBwu1wPvhcJcyGv4kJye7eJQZWH8iqMySQq3NQ7Eo8PkquKKqgXhYxzPxJiPw3SRcYXhM1JB" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJlc3MEAAAABnN0YXR1cwIAAAAJY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AgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAFbmZ0SWQJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADHsic2VsbGVyIjogIgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAADSIsICJwcmljZSI6ICIJAAGkAAAAAQUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleag6RRw=", "height": 1623401, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: wvzsaVXda5ZPst1b99WxCG78DWEuo1a6itDFGtRcWNu Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func instantSale (nftId) = {
8+ let price = "50000000"
9+ let status = "completed"
10+[ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
11+ }
12+
13+
14+
15+@Callable(i)
16+func buyOffer (nftId,price,sellerAddress) = {
17+ let status = "completed"
18+[ScriptTransfer(i.caller, 1, fromBase58String(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), price, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
19+ }
20+
21+
22+
23+@Callable(i)
24+func cancelOffer (nftId) = {
25+ let status = "cancelled"
26+ let price = "undefined"
27+[ScriptTransfer(i.caller, 1, fromBase58String(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))]
28+ }
29+
30+
31+
32+@Callable(i)
33+func makeOffer (nftId,price) = {
34+ let status = "pending"
35+[StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))]
36+ }
37+
38+
39+@Verifier(tx)
40+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
41+

github/deemru/w8io/169f3d6 
21.16 ms