tx · wvzsaVXda5ZPst1b99WxCG78DWEuo1a6itDFGtRcWNu 3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo: -0.01400000 Waves 2021.07.27 14:10 [1631988] smart account 3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo > SELF 0.00000000 Waves
{ "type": 13, "id": "wvzsaVXda5ZPst1b99WxCG78DWEuo1a6itDFGtRcWNu", "fee": 1400000, "feeAssetId": null, "timestamp": 1627384232349, "version": 2, "chainId": 84, "sender": "3N326J7QkXn43DXQnE733QHpFw7T2vdWRRo", "senderPublicKey": "FnirbVvcP4uztniZBesicevXStVuTv73ifvcvisbsSk2", "proofs": [ "5NUFfWW4VGhG3RdCBJwfym6UZTMzbwwNrZ8eeAibVMVc9ek8Pyg9rT4GyGeyK47VMPvTznHHumHbQ6Sfp5scb8FT" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEIEgUKAwgBCBIDCgEIEgQKAggBAAAAAAAAAAQAAAABaQEAAAALaW5zdGFudFNhbGUAAAABAAAABW5mdElkBAAAAAVwcmljZQIAAAAINTAwMDAwMDAEAAAABnN0YXR1cwIAAAAJY29tcGxldGVkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAvrwgAUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAVuZnRJZAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMeyJzZWxsZXIiOiAiCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAANIiwgInByaWNlIjogIgUAAAAFcHJpY2UCAAAADiIsICJzdGF0dXMiOiAiBQAAAAZzdGF0dXMCAAAAAiJ9BQAAAANuaWwAAAABaQEAAAAIYnV5T2ZmZXIAAAADAAAABW5mdElkAAAABXByaWNlAAAADXNlbGxlckFkZHJlc3MEAAAABnN0YXR1cwIAAAAEc29sZAk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AQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABW5mdElkCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAx7InNlbGxlciI6ICIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAA0iLCAicHJpY2UiOiAiCQABpAAAAAEFAAAABXByaWNlAgAAAA4iLCAic3RhdHVzIjogIgUAAAAGc3RhdHVzAgAAAAIifQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl1CAH4", "height": 1631988, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AXnVJnPP74K5gGPcKt8GERYrMUwCcsRiwMBnjYNxvJtY Next: none Diff:
Old | New | Differences | |
---|---|---|---|
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func buyOffer (nftId,price,sellerAddress) = { | |
17 | - | let status = " | |
17 | + | let status = "sold" | |
18 | 18 | [ScriptTransfer(i.caller, 1, fromBase58String(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), price, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] | |
19 | 19 | } | |
20 | 20 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func instantSale (nftId) = { | |
8 | 8 | let price = "50000000" | |
9 | 9 | let status = "completed" | |
10 | 10 | [ScriptTransfer(i.caller, 50000000, unit), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))] | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func buyOffer (nftId,price,sellerAddress) = { | |
17 | - | let status = " | |
17 | + | let status = "sold" | |
18 | 18 | [ScriptTransfer(i.caller, 1, fromBase58String(nftId)), ScriptTransfer(addressFromStringValue(sellerAddress), price, unit), StringEntry(nftId, (((((("{\"seller\": \"" + sellerAddress) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(i) | |
24 | 24 | func cancelOffer (nftId) = { | |
25 | 25 | let status = "cancelled" | |
26 | 26 | let price = "undefined" | |
27 | 27 | [ScriptTransfer(i.caller, 1, fromBase58String(nftId)), StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + price) + "\", \"status\": \"") + status) + "\"}"))] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func makeOffer (nftId,price) = { | |
34 | 34 | let status = "pending" | |
35 | 35 | [StringEntry(nftId, (((((("{\"seller\": \"" + toString(i.caller)) + "\", \"price\": \"") + toString(price)) + "\", \"status\": \"") + status) + "\"}"))] | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Verifier(tx) | |
40 | 40 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
41 | 41 |
github/deemru/w8io/169f3d6 48.16 ms ◑